Hi,
I have a problem with the width of the states field. Changing the width does not have any effect on the size of the field. Can someone please tell me what is wrong with the following code?
Thanks a lot!
<tr>
<td class="main" width="30%"><?php echo ENTRY_CITY; ?></td>
<td class="main" width="70%"><?php 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="30%"><?php echo ENTRY_STATE; ?></td>
<td class="main" width="70%"><?php
// +Country-State Selector
$zones_array = array();
$zones_array[] = array('id' => 0, 'text' => PULL_DOWN_DEFAULT);
$zones_query = tep_db_query("select zone_id, zone_name from " . TABLE_ZONES . " where zone_country_id = " .
(int)$country . " order by zone_name");
while ($zones_values = tep_db_fetch_array($zones_query)) {
$zones_array[] = array('id' => $zones_values['zone_id'], 'text' => $zones_values['zone_name'] . '');
}
if (count($zones_array) > 1) {
echo tep_draw_pull_down_menu('zone_id', $zones_array);
} else {
echo tep_draw_input_field('state');
}
// -Country-State Selector
if (tep_not_null(ENTRY_STATE_TEXT)) echo ' <span class="inputRequirement">' . ENTRY_STATE_TEXT;
?>
</td>
</tr>
<?php
}
?>