mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-26 07:49:28 +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 = '')
|
||||
{
|
||||
$states = array(
|
||||
'' => 'non US',
|
||||
'' => lang('Select one'),
|
||||
'--' => 'non US',
|
||||
'AL' => 'Alabama',
|
||||
'AK' => 'Alaska',
|
||||
'AZ' => 'Arizona',
|
||||
@ -599,7 +600,12 @@
|
||||
|
||||
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>';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user