[TEP-COMMIT] [CVS catalog] replace calls to tep_draw_* to osc_draw_* form field functions

anonymous-OfajU3CKLf1/[email protected] 22 Jul 2004 16:56:09 -0000
Newsgroups gmane.comp.web.oscommerce.cvs
Message-ID <[email protected]>
Commit in catalog/catalog/includes/boxes on MAIN

currencies.php +3 -3 1.20 -> 1.21

manufacturers.php +1 -1 1.21 -> 1.22

search.php +2 -2 1.22 -> 1.23

tell_a_friend.php +2 -2 1.17 -> 1.18

+8 -8

4 modified files

replace calls to tep_draw_* to osc_draw_* form field functions

----------

catalog /catalog /includes /boxes

currencies.php 1.20 -> 1.21

diff -u -r1.20 -r1.21
--- currencies.php 2004/04/13 07:53:42 1.20
+++ currencies.php 2004/07/22 16:56:08 1.21
@@ -5,7 +5,7 @@

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

- Copyright (c) 2003 osCommerce

+ Copyright (c) 2004 osCommerce

Released under the GNU General Public License
*/

@@ -31,14 +31,14 @@

reset($_GET);
while (list($key, $value) = each($_GET)) {
if ( ($key != 'currency') && ($key != $osC_Session->name) && ($key != 'x') && ($key != 'y') ) {

- $hidden_get_variables .= tep_draw_hidden_field($key, $value);

+ $hidden_get_variables .= osc_draw_hidden_field($key, $value);

}
}

$info_box_contents = array();
$info_box_contents[] = array('form' => tep_draw_form('currencies', tep_href_link(basename($_SERVER['PHP_SELF']), '', $request_type, false), 'get'),
'align' => 'center',

- 'text' => tep_draw_pull_down_menu('currency', $currencies_array, $osC_Session->value('currency'), 'onChange="this.form.submit();" style="width: 100%"') . $hidden_get_variables . tep_hide_session_id());

+ 'text' => osc_draw_pull_down_menu('currency', $currencies_array, $osC_Session->value('currency'), 'onChange="this.form.submit();" style="width: 100%"') . $hidden_get_variables . tep_hide_session_id());

new infoBox($info_box_contents);
?>

----------

catalog /catalog /includes /boxes

manufacturers.php 1.21 -> 1.22

diff -u -r1.21 -r1.22
--- manufacturers.php 2004/02/16 07:26:45 1.21
+++ manufacturers.php 2004/07/22 16:56:08 1.22
@@ -70,7 +70,7 @@

$info_box_contents = array();
$info_box_contents[] = array('form' => tep_draw_form('manufacturers', tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get'),

- 'text' => tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, (isset($_GET['manufacturers_id']) ? $_GET['manufacturers_id'] : ''), 'onChange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 100%"') . tep_hide_session_id());

+ 'text' => osc_draw_pull_down_menu('manufacturers_id', $manufacturers_array, (isset($_GET['manufacturers_id']) ? $_GET['manufacturers_id'] : ''), 'onChange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 100%"') . tep_hide_session_id());

}

new infoBox($info_box_contents);

----------

catalog /catalog /includes /boxes

search.php 1.22 -> 1.23

diff -u -r1.22 -r1.23
--- search.php 2003/02/10 22:31:05 1.22
+++ search.php 2004/07/22 16:56:08 1.23
@@ -5,7 +5,7 @@

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

- Copyright (c) 2003 osCommerce

+ Copyright (c) 2004 osCommerce

Released under the GNU General Public License
*/

@@ -22,7 +22,7 @@

$info_box_contents = array();
$info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),
'align' => 'center',

- 'text' => tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . '&nbsp;' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>');

+ 'text' => osc_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . '&nbsp;' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>');

new infoBox($info_box_contents);
?>

----------

catalog /catalog /includes /boxes

tell_a_friend.php 1.17 -> 1.18

diff -u -r1.17 -r1.18
--- tell_a_friend.php 2003/11/17 20:06:51 1.17
+++ tell_a_friend.php 2004/07/22 16:56:08 1.18
@@ -5,7 +5,7 @@

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

- Copyright (c) 2003 osCommerce

+ Copyright (c) 2004 osCommerce

Released under the GNU General Public License
*/

@@ -22,7 +22,7 @@

$info_box_contents = array();
$info_box_contents[] = array('form' => tep_draw_form('tell_a_friend', tep_href_link(FILENAME_TELL_A_FRIEND, '', 'NONSSL', false), 'get'),
'align' => 'center',

- 'text' => tep_draw_input_field('to_email_address', '', 'size="10"') . '&nbsp;' . tep_image_submit('button_tell_a_friend.gif', BOX_HEADING_TELL_A_FRIEND) . tep_draw_hidden_field('products_id', $_GET['products_id']) . tep_hide_session_id() . '<br>' . BOX_TELL_A_FRIEND_TEXT);

+ 'text' => osc_draw_input_field('to_email_address', '', 'size="10"') . '&nbsp;' . tep_image_submit('button_tell_a_friend.gif', BOX_HEADING_TELL_A_FRIEND) . osc_draw_hidden_field('products_id', $_GET['products_id']) . tep_hide_session_id() . '<br>' . BOX_TELL_A_FRIEND_TEXT);

new infoBox($info_box_contents);
?>

CVSspam 0.2.8

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click