mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 08:19:45 +01:00
I fixed something, just forget what it was
This commit is contained in:
parent
c577eb203b
commit
4152c9f4b9
@ -544,7 +544,8 @@
|
|||||||
function list_states($name, $selected = '')
|
function list_states($name, $selected = '')
|
||||||
{
|
{
|
||||||
$states = array(
|
$states = array(
|
||||||
'' => 'non US',
|
'' => lang('Select one'),
|
||||||
|
'--' => 'non US',
|
||||||
'AL' => 'Alabama',
|
'AL' => 'Alabama',
|
||||||
'AK' => 'Alaska',
|
'AK' => 'Alaska',
|
||||||
'AZ' => 'Arizona',
|
'AZ' => 'Arizona',
|
||||||
@ -599,7 +600,12 @@
|
|||||||
|
|
||||||
while (list($sn,$ln) = each($states))
|
while (list($sn,$ln) = each($states))
|
||||||
{
|
{
|
||||||
$s .= '<option value="' . $sn . '">' . $ln . '</option>';
|
$s .= '<option value="' . $sn . '"';
|
||||||
|
if ($selected == $sn)
|
||||||
|
{
|
||||||
|
$s .= ' selected';
|
||||||
|
}
|
||||||
|
$s .= '>' . $ln . '</option>';
|
||||||
}
|
}
|
||||||
return '<select name="' . $name . '">' . $s . '</select>';
|
return '<select name="' . $name . '">' . $s . '</select>';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user