osCmax e-Commerce http://www.oscmax.com Copyright 2000 - 2011 osCmax Released under the GNU General Public License */ // Most of this file is changed or moved to BTS - Basic Template System - format. // For adding in contribution or modification - parts of this file has been moved to: catalog\templates\fallback\contents\<filename>.tpl.php as a default (sub 'fallback' with your current template to see if there is a template specife change). // catalog\templates\fallback\contents\<filename>.tpl.php as a default (sub 'fallback' with your current template to see if there is a template specife change). // (Sub 'fallback' with your current template to see if there is a template specific file.) require 'includes/application_top.php'; // +Country-State Selector require DIR_WS_FUNCTIONS . 'ajax.php'; if (isset($HTTP_POST_VARS['action']) && $HTTP_POST_VARS['action'] == 'getStates' && isset($HTTP_POST_VARS['country'])) { ajax_get_zones_html(tep_db_prepare_input($HTTP_POST_VARS['country']), true); } else { // -Country-State Selector require bts_select('language', FILENAME_AFFILIATE_SIGNUP); if (isset($_POST['action'])) { $a_gender = tep_db_prepare_input($_POST['a_gender']); $a_firstname = tep_db_prepare_input($_POST['a_firstname']); $a_lastname = tep_db_prepare_input($_POST['a_lastname']); $a_dob = tep_db_prepare_input($_POST['a_dob']); $a_email_address = tep_db_prepare_input($_POST['a_email_address']); $a_company = tep_db_prepare_input($_POST['a_company']); $a_company_taxid = tep_db_prepare_input($_POST['a_company_taxid']); $a_payment_check = tep_db_prepare_input($_POST['a_payment_check']); $a_payment_paypal = tep_db_prepare_input($_POST['a_payment_paypal']); $a_payment_bank_name = tep_db_prepare_input($_POST['a_payment_bank_name']); $a_payment_bank_branch_number = tep_db_prepare_input($_POST['a_payment_bank_branch_number']);
osCmax e-Commerce http://www.oscmax.com Copyright 2000 - 2011 osCmax Released under the GNU General Public License */ // Most of this file is changed or moved to BTS - Basic Template System - format. // For adding in contribution or modification - parts of this file has been moved to: catalog\templates\fallback\contents\<filename>.tpl.php as a default (sub 'fallback' with your current template to see if there is a template specife change). // catalog\templates\fallback\contents\<filename>.tpl.php as a default (sub 'fallback' with your current template to see if there is a template specife change). // (Sub 'fallback' with your current template to see if there is a template specific file.) require 'includes/application_top.php'; // +Country-State Selector require DIR_WS_FUNCTIONS . 'ajax.php'; if (isset($_POST['action']) && $_POST['action'] == 'getStates' && isset($P_POST['country'])) { ajax_get_zones_html(tep_db_prepare_input($_POST['country']), true); } else { // -Country-State Selector // if the customer is not logged on, redirect them to the login page if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } // if there is nothing in the customers cart, redirect them to the shopping cart page if ($cart->count_contents() < 1) { tep_redirect(tep_href_link(FILENAME_SHOPPING_CART)); } // needs to be included earlier to set the success message in the messageStack require bts_select('language', FILENAME_CHECKOUT_SHIPPING_ADDRESS); require DIR_WS_CLASSES . 'order.php'; $order = new order();
?> </td> </tr> <?php if (ACCOUNT_STATE == 'true') { ?> <tr> <td class="main" width="150"> <?php echo ENTRY_STATE; ?> </td> <td class="main"> <div id="states"> <?php // +Country-State Selector echo ajax_get_zones_html($entry['entry_country_id'], $entry['entry_zone_id'] == 0 ? $entry['entry_state'] : $entry['entry_zone_id'], false); // -Country-State Selector ?> </div></td> </tr> <?php } ?> <tr> <td class="main" width="150"> <?php echo ENTRY_COUNTRY; ?> <div id="indicator"><?php echo tep_image(DIR_WS_ICONS . 'ajax-loader.gif'); ?> </div></td>
echo tep_draw_input_field('city') . ' ' . (tep_not_null(ENTRY_CITY_TEXT) ? '<span class="inputRequirement">' . ENTRY_CITY_TEXT . '</span>' : ''); ?> </td> </tr> <?php if (ACCOUNT_STATE == 'true') { ?> <tr> <td class="main" width="150"><?php echo ENTRY_STATE; ?> </td> <td class="main"><div id="states"> <?php // +Country-State Selector echo ajax_get_zones_html($country, '', false); // -Country-State Selector ?> </div></td> </tr> <?php } ?> <tr> <td class="main" width="150"><?php echo ENTRY_COUNTRY; ?> <span id="indicator"><?php echo tep_image(DIR_WS_ICONS . 'ajax-loader.gif'); ?> </span></td>
?> </td> </tr> <?php if (ACCOUNT_STATE == 'true') { ?> <tr> <td class="main"><?php echo ENTRY_STATE; ?> </td> <td class="main"> <div id="states"> <?php // +Country-State Selector echo ajax_get_zones_html($entry['entry_country_id'], isset($entry['entry_zone_id']) && $entry['entry_zone_id'] != 0 ? $entry['entry_zone_id'] : 0, false); // -Country-State Selector ?> </div> </td> </tr> <?php } ?> <tr> <td class="main"><?php echo ENTRY_COUNTRY; ?> <div id="indicator"><?php echo tep_image(DIR_WS_ICONS . 'ajax-loader.gif'); ?>
?> </td> </tr> <?php if (ACCOUNT_STATE == 'true') { ?> <tr> <td class="main" width="230"> <?php echo ENTRY_STATE; ?> </td> <td class="main"> <div id="states"> <?php // +Country-State Selector echo ajax_get_zones_html($affiliate['affiliate_country_id'], $affiliate['affiliate_zone_id'] == 0 ? $affiliate['affiliate_state'] : $affiliate['affiliate_zone_id'], false); // -Country-State Selector ?> </div></td> </tr> <?php } ?> <tr> <td class="main" width="230"> <?php echo ENTRY_COUNTRY; ?> <span id="indicator"><?php echo tep_image(DIR_WS_ICONS . 'ajax-loader.gif'); ?> </span></td>