am: 02. März 2012, 06:35:50
in user Registration page if we select country auto change the state pulldown field in the appropriate country - state
how to change that?
create_account.php
if (ACCOUNT_STATE
== 'true') { $smarty->assign('state', '1'); if ($process == true) { if ($entry_state_has_zones == true) { $zones_array = array (); $zones_query = xtc_db_query
("select zone_name from ".TABLE_ZONES
." where zone_country_id = '".(int
) $country."' order by zone_name"); while ($zones_values = xtc_db_fetch_array
($zones_query)) { $zones_array[] = array ( 'id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name'] ); } $state_input = xtc_draw_pull_down_menuNote
(array ('name' => 'state', 'text' => ' '. (xtc_not_null
(ENTRY_STATE_TEXT
) ?
'<span class="inputRequirement">'.ENTRY_STATE_TEXT
.'</span>' : '')), $zones_array); } else { $state_input = xtc_draw_input_fieldNote
(array ('name' => 'state', 'text' => ' '. (xtc_not_null
(ENTRY_STATE_TEXT
) ?
'<span class="inputRequirement">'.ENTRY_STATE_TEXT
.'</span>' : ''))); } } else { $state_input = xtc_draw_input_fieldNote
(array ('name' => 'state', 'text' => ' '. (xtc_not_null
(ENTRY_STATE_TEXT
) ?
'<span class="inputRequirement">'.ENTRY_STATE_TEXT
.'</span>' : ''))); } $smarty->assign('INPUT_STATE', $state_input);} else { $smarty->assign('state', '0');}$smarty->assign('SELECT_COUNTRY', xtc_get_country_list
(array ('name' => 'country', 'text' => ' '. (xtc_not_null
(ENTRY_COUNTRY_TEXT
) ?
'<span class="inputRequirement">'.ENTRY_COUNTRY_TEXT
.'</span>' : '')), $country)); Linkback: https://www.modified-shop.org/forum/index.php?topic=18613.0