forked from science-ation/science-ation
Fix the dropdowns
This commit is contained in:
parent
c204e0ccd2
commit
b14b0eb356
@ -135,15 +135,16 @@
|
||||
|
||||
echo "<form name=\"fairselect\" action=\"$PHPSELF\" method=\"get\">";
|
||||
$q=mysql_query("SELECT * FROM fairs WHERE `type`='sfiab' OR `type`='ysc'");
|
||||
echo "<select name=\"id\" \">";
|
||||
echo "<select name=\"id\">";
|
||||
echo "<option value=\"\">".i18n("Choose a destination")."</option>\n";
|
||||
while($r=mysql_fetch_object($q)) {
|
||||
if($fairs_id==$r->id) $sel="selected=\"selected\""; else $sel="";
|
||||
echo "<option $sel value=\"{$r->id}\">{$r->name} ({$r->abbrv})</option>\n";
|
||||
}
|
||||
echo "</select>\n";
|
||||
|
||||
$q=mysql_query("SELECT DISTINCT(year) AS year FROM config WHERE year>0 ORDER BY year");
|
||||
echo "<select name=\"year\" >";
|
||||
echo "<select name=\"year\">";
|
||||
echo "<option value=\"\">".i18n("Choose a year")."</option>\n";
|
||||
while($r=mysql_fetch_object($q)) {
|
||||
if($year==$r->year) $sel="selected=\"selected\""; else $sel="";
|
||||
|
Loading…
x
Reference in New Issue
Block a user