Fix issue #66 by adding space before "selected"
This commit is contained in:
parent
fdd8fb2be2
commit
e5aab50ac4
1 changed files with 2 additions and 2 deletions
|
@ -2167,13 +2167,13 @@ function templateTZform($ptz=false)
|
||||||
$continent=substr($tz,0,$spos); $city=substr($tz,$spos+1);
|
$continent=substr($tz,0,$spos); $city=substr($tz,$spos+1);
|
||||||
$continents[$continent]=1;
|
$continents[$continent]=1;
|
||||||
if (!isset($cities[$continent])) $cities[$continent]='';
|
if (!isset($cities[$continent])) $cities[$continent]='';
|
||||||
$cities[$continent].='<option value="'.$city.'"'.($pcity==$city?'selected':'').'>'.$city.'</option>';
|
$cities[$continent].='<option value="'.$city.'"'.($pcity==$city?' selected':'').'>'.$city.'</option>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$continents_html = '';
|
$continents_html = '';
|
||||||
$continents = array_keys($continents);
|
$continents = array_keys($continents);
|
||||||
foreach($continents as $continent)
|
foreach($continents as $continent)
|
||||||
$continents_html.='<option value="'.$continent.'"'.($pcontinent==$continent?'selected':'').'>'.$continent.'</option>';
|
$continents_html.='<option value="'.$continent.'"'.($pcontinent==$continent?' selected':'').'>'.$continent.'</option>';
|
||||||
$cities_html = $cities[$pcontinent];
|
$cities_html = $cities[$pcontinent];
|
||||||
$timezone_form = "Continent: <select name=\"continent\" id=\"continent\" onChange=\"onChangecontinent();\">${continents_html}</select>";
|
$timezone_form = "Continent: <select name=\"continent\" id=\"continent\" onChange=\"onChangecontinent();\">${continents_html}</select>";
|
||||||
$timezone_form .= " City: <select name=\"city\" id=\"city\">${cities[$pcontinent]}</select><br />";
|
$timezone_form .= " City: <select name=\"city\" id=\"city\">${cities[$pcontinent]}</select><br />";
|
||||||
|
|
Loading…
Reference in a new issue