Add division preference

Add highest post secondary degree
Fix table rows to have full 4 columns (Was missing the 4th column)
This commit is contained in:
james 2005-02-11 15:49:39 +00:00
parent 5915103b55
commit 920cb297b7

View File

@ -49,8 +49,11 @@
if($_POST['action']=="save")
{
$dob=$_POST['year']."-".$_POST['month']."-".$_POST['day'];
if($_POST['catpref']) $catpref="'".$_POST['catpref']."'";
else $catpref="null";
if($_POST['divpref']) $divpref="'".$_POST['divpref']."'";
else $divpref="null";
mysql_query("UPDATE judges SET ".
"firstname='".mysql_escape_string(stripslashes($_POST['firstname']))."', ".
@ -67,6 +70,8 @@
"phonecell='".mysql_escape_string(stripslashes($_POST['phonecell']))."', ".
"organization='".mysql_escape_string(stripslashes($_POST['organization']))."', ".
"catpref=$catpref, ".
"divpref=$divpref, ".
"highest_psd='".mysql_escape_string(stripslashes($_POST['highest_psd']))."', ".
"years_school='".mysql_escape_string(stripslashes($_POST['years_school']))."', ".
"years_regional='".mysql_escape_string(stripslashes($_POST['years_regional']))."', ".
"years_national='".mysql_escape_string(stripslashes($_POST['years_national']))."', ".
@ -126,7 +131,7 @@ echo "</tr>";
echo "<tr><td colspan=\"4\"><hr /></td></tr>";
echo "<tr>\n";
echo " <td colspan=\"2\">".i18n("Age category preference")."</td><td>";
echo " <td colspan=\"2\">".i18n("Age category preference")."</td><td colspan=\"2\">";
$q=mysql_query("SELECT * FROM projectcategories ORDER BY mingrade");
echo "<select name=\"catpref\">";
echo "<option value=\"\">".i18n("Doesn't Matter")."</option>\n";
@ -143,7 +148,7 @@ echo "</tr>\n";
echo "<tr>\n";
echo " <td colspan=\"2\">".i18n("Division preference")."</td><td>";
echo " <td colspan=\"2\">".i18n("Division preference")."</td><td colspan=\"2\">";
$q=mysql_query("SELECT * FROM projectdivisions ORDER BY division");
echo "<select name=\"divpref\">";
echo "<option value=\"\">".i18n("Doesn't Matter")."</option>\n";
@ -157,18 +162,30 @@ echo "</select>";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td colspan=\"2\">".i18n("Years of judging experience at school/local level")."</td><td><input type=\"text\" name=\"years_school\" value=\"$judgeinfo->years_school\" size=\"3\" /></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td colspan=\"2\">".i18n("Years of judging experience at regional level")."</td><td><input type=\"text\" name=\"years_regional\" value=\"$judgeinfo->years_regional\" size=\"3\" /></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td colspan=\"2\">".i18n("Years of judging experience at national level")."</td><td><input type=\"text\" name=\"years_national\" value=\"$judgeinfo->years_national\" size=\"3\" /></td>\n";
echo " <td colspan=\"2\">".i18n("Highest post-secondary degree")."</td>";
echo " <td colspan=\"2\"><input type=\"text\" name=\"highest_psd\" size=\"35\" value=\"$judgeinfo->highest_psd\" /></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td colspan=\"2\">".i18n("Willing to act as a division chair?")."</td><td>";
echo " <td colspan=\"2\">".i18n("Years of judging experience at school/local level")."</td>\n";
echo " <td colspan=\"2\"><input type=\"text\" name=\"years_school\" value=\"$judgeinfo->years_school\" size=\"3\" /></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td colspan=\"2\">".i18n("Years of judging experience at regional level")."</td>\n";
echo " <td colspan=\"2\"><input type=\"text\" name=\"years_regional\" value=\"$judgeinfo->years_regional\" size=\"3\" /></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td colspan=\"2\">".i18n("Years of judging experience at national level")."</td>\n";
echo " <td colspan=\"2\"><input type=\"text\" name=\"years_national\" value=\"$judgeinfo->years_national\" size=\"3\" /></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td colspan=\"2\">".i18n("Willing to act as a division chair?")."</td>\n";
echo " <td colspan=\"2\">";
if($judgeinfo->willing_chair=="no") $ch="checked=\"checked\""; else $ch="";
echo "<input $ch type=\"radio\" name=\"willing_chair\" value=\"no\" />No";
echo "&nbsp; &nbsp; ";
@ -178,7 +195,8 @@ echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td colspan=\"2\">".i18n("Attending lunch?")."</td><td>";
echo " <td colspan=\"2\">".i18n("Attending lunch?")."</td>\n";
echo " <td colspan=\"2\">";
if($judgeinfo->attending_lunch=="no") $ch="checked=\"checked\""; else $ch="";
echo "<input $ch type=\"radio\" name=\"attending_lunch\" value=\"no\" />No";
echo "&nbsp; &nbsp; ";