?> </td> </tr> <?php if (ACCOUNT_STATE == 'true') { ?> <tr> <td class="main" width="170"> <?php echo ENTRY_STATE; ?> </td> <td class="main"><div id="states"> <?php $state = sbs_get_zone_name($country, $zone_id); if ($is_read_only) { echo sbs_get_zone_name($account['entry_country_id'], $account['entry_zone_id']); } else { // +Country-State Selector echo ajax_get_zones_html($country, '', false); // -Country-State Selector } ?> </div></td> </tr> <?php } ?> <tr> <td class="main" width="170"> <?php echo ENTRY_COUNTRY; ?>
</tr> <?php if (ACCOUNT_STATE == 'true') { ?> <tr> <td class="main"> <?php echo ENTRY_STATE; ?> </td> <td class="main"> <?php $state = sbs_get_zone_name($country, $zone_id, $state); if ($is_read_only) { echo sbs_get_zone_name($address['entry_country_id'], $account['entry_zone_id'], $account['entry_state']); } else { echo tep_draw_input_field('state', sbs_get_zone_name($address['entry_country_id'], $address['entry_zone_id'], $address['entry_state'])) . ' <font color="#FF0000">*</font>'; } ?> </td> </tr> <?php } ?> <tr> <td class="main"> <?php echo ENTRY_COUNTRY; ?> </td> <td class="main"> <?php if ($is_read_only) {
if ($entry_state_error) { if ($entry_state_has_zones) { $zones_array = array(); $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . tep_db_input($country) . "' order by zone_name"); while ($zones_values = tep_db_fetch_array($zones_query)) { $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']); } echo tep_draw_pull_down_menu('state', $zones_array) . ' ' . ENTRY_STATE_ERROR; } else { echo tep_draw_input_field('state') . ' ' . ENTRY_STATE_ERROR; } } else { echo $state . tep_draw_hidden_field('zone_id') . tep_draw_hidden_field('state'); } } else { echo tep_draw_input_field('state', sbs_get_zone_name($account['entry_country_id'], $account['entry_zone_id'], $account['entry_state'])) . ' '; } ?> </td> </tr> <?php } ?> <tr> <td class="main"> <?php echo ENTRY_COUNTRY; ?> </td> <td class="main"> <?php $account['entry_country_id'] = STORE_COUNTRY;