$state_input = vam_draw_pull_down_menuNote(array('name' => 'state', 'text' => ' ' . (vam_not_null(ENTRY_STATE_TEXT) ? '<span class="Requirement">' . ENTRY_STATE_TEXT . '</span>' : '')), $zones_array, vam_get_zone_name($entry['entry_country_id'], $entry['entry_zone_id'], $entry['entry_state']), ' id="state"'); } else { $state_input = vam_draw_input_fieldNote(array('name' => 'state', 'text' => ' ' . (vam_not_null(ENTRY_STATE_TEXT) ? '<span class="Requirement">' . ENTRY_STATE_TEXT . '</span>' : '')), vam_get_zone_name(STORE_COUNTRY, STORE_ZONE), ' id="state"'); } $module->assign('INPUT_STATE', $state_input); } else { $module->assign('state', '0'); } if ($_POST['country']) { $selected = $_POST['country']; } else { $selected = $entry['entry_country_id']; } if (ACCOUNT_COUNTRY == 'true') { $module->assign('country', '1'); if ($process == true) { $entry['entry_country_id'] = (int) $_POST['country']; } $module->assign('SELECT_COUNTRY', vam_get_country_list('country', $entry['entry_country_id'], 'id="country"') . (vam_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="Requirement">' . ENTRY_COUNTRY_TEXT . '</span>' : '')); $module->assign('SELECT_COUNTRY_NOSCRIPT', '<noscript><br />' . vam_image_submit('update.png', IMAGE_BUTTON_UPDATE, 'name=loadStateXML') . '<br />' . ENTRY_STATE_RELOAD . '</noscript>'); } else { $vamTemplate->assign('country', '0'); } if (isset($_GET['edit']) && $_SESSION['customer_default_address_id'] != $_GET['edit'] || isset($_GET['edit']) == false) { $module->assign('new', '1'); $module->assign('CHECKBOX_PRIMARY', vam_draw_checkbox_field('primary', 'on', false, 'id="primary"')); } $module->assign('language', $_SESSION['language']); $module->caching = 0; $main_content = $module->fetch(CURRENT_TEMPLATE . '/module/address_book_details.html'); $vamTemplate->assign('MODULE_address_book_details', $main_content);
echo vam_draw_input_field('entry_city', $entry_city, 'maxlength="32"'); } ?> </td> </tr> <?php } if (ACCOUNT_COUNTRY == 'true') { ?> <tr> <td class="main"><?php echo ENTRY_COUNTRY; ?> </td> <td class="main"><?php echo vam_get_country_list('country', STORE_COUNTRY, 'onChange="changeselect();"') . ' ' . (defined(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>' : ''); ?> </td> </tr> <?php } if (ACCOUNT_STATE == 'true') { ?> <tr> <td class="main"><?php echo ENTRY_STATE; ?> </td> <td class="main"> <script language="javascript"> <!--
$state_input = vam_draw_pull_down_menuNote(array('name' => 'state', 'text' => ' ' . (vam_not_null(ENTRY_STATE_TEXT) ? '<span class="Requirement">' . ENTRY_STATE_TEXT . '</span>' : '')), $zones_array, $process == true ? $state : vam_get_zone_name(STORE_COUNTRY, STORE_ZONE, ''), ' id="state"'); } else { $state_input = vam_draw_input_fieldNote(array('name' => 'state', 'text' => ' ' . (vam_not_null(ENTRY_STATE_TEXT) ? '<span class="Requirement">' . ENTRY_STATE_TEXT . '</span>' : '')), '', 'id="state"'); } $vamTemplate->assign('INPUT_STATE', $state_input); } else { $vamTemplate->assign('state', '0'); } if ($_POST['country']) { $selected = $_POST['country']; } else { $selected = STORE_COUNTRY; } if (ACCOUNT_COUNTRY == 'true') { $vamTemplate->assign('country', '1'); $vamTemplate->assign('SELECT_COUNTRY', vam_get_country_list(array('name' => 'country', 'text' => ' ' . (vam_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="Requirement">' . ENTRY_COUNTRY_TEXT . '</span>' : '')), $selected, 'id="country"')); } else { $vamTemplate->assign('country', '0'); } if (ACCOUNT_TELE == 'true') { $vamTemplate->assign('telephone', '1'); $vamTemplate->assign('INPUT_TEL', vam_draw_input_fieldNote(array('name' => 'telephone', 'text' => ' ' . (vam_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="Requirement">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>' : '')), '', 'id="telephone"')); } else { $vamTemplate->assign('telephone', '0'); } if (ACCOUNT_FAX == 'true') { $vamTemplate->assign('fax', '1'); $vamTemplate->assign('INPUT_FAX', vam_draw_input_fieldNote(array('name' => 'fax', 'text' => ' ' . (vam_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="Requirement">' . ENTRY_FAX_NUMBER_TEXT . '</span>' : '')))); } else { $vamTemplate->assign('fax', '0'); }
if ($is_read_only == true) { $country_id_content = vam_get_country_name($affiliate['affiliate_country_id']); } elseif ($error == true) { if ($entry_country_error == true) { $country_id_content = vam_get_country_list(array('name' => 'a_country', 'text' => ' ' . ENTRY_COUNTRY_ERROR)); } else { $country_id_content = vam_get_country_name($a_country) . vam_draw_hidden_field('a_country'); } } else { if (!isset($affiliate['affiliate_country_id'])) { $affiliate['affiliate_country_id'] = STORE_COUNTRY; } if (!isset($affiliate['affiliate_zone_id'])) { $affiliate['affiliate_zone_id'] = STORE_ZONE; } $country_id_content = vam_get_country_list('a_country', $affiliate['affiliate_country_id'], 'id="country"') . (vam_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="Requirement">' . ENTRY_COUNTRY_TEXT . '</span>' : ''); } $module->assign('country_id_content', $country_id_content); if (ACCOUNT_STATE == 'true') { if (!isset($affiliate['affiliate_country_id'])) { $affiliate['affiliate_country_id'] = STORE_COUNTRY; } if (!isset($affiliate['affiliate_zone_id'])) { $affiliate['affiliate_zone_id'] = STORE_ZONE; } $module->assign('ACCOUNT_STATE', 'true'); $state = vam_get_zone_name($affiliate['affiliate_country_id'], $affiliate['affiliate_zone_id'], $a_state); if ($is_read_only == true) { $state_content = vam_get_zone_name($affiliate['affiliate_country_id'], $affiliate['affiliate_zone_id'], $affiliate['affiliate_state']); } if ($processed != true) {