add division preference

remove check for dob from status indicator
This commit is contained in:
james 2005-02-11 15:32:29 +00:00
parent 6183be32f9
commit 5915103b55
2 changed files with 18 additions and 1 deletions

View File

@ -25,7 +25,7 @@
function personalStatus()
{
global $config;
$required_fields=array("firstname","lastname","address","city","postalcode","phonehome","email","dateofbirth");
$required_fields=array("firstname","lastname","address","city","postalcode","phonehome","email");
$q=mysql_query("SELECT * FROM judges WHERE id='".$_SESSION['judges_id']."'");

View File

@ -138,6 +138,23 @@ while($r=mysql_fetch_object($q))
}
echo "</select>";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td colspan=\"2\">".i18n("Division preference")."</td><td>";
$q=mysql_query("SELECT * FROM projectdivisions ORDER BY division");
echo "<select name=\"divpref\">";
echo "<option value=\"\">".i18n("Doesn't Matter")."</option>\n";
while($r=mysql_fetch_object($q))
{
if($judgeinfo->divpref==$r->id) $sel="selected=\"selected\""; else $sel="";
echo "<option $sel value=\"$r->id\">".i18n($r->division)."</option>\n";
}
echo "</select>";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";