From 920cb297b7caa1c529910b155a4047ec7e7208de Mon Sep 17 00:00:00 2001 From: james Date: Fri, 11 Feb 2005 15:49:39 +0000 Subject: [PATCH] Add division preference Add highest post secondary degree Fix table rows to have full 4 columns (Was missing the 4th column) --- register_judges_personal.php | 40 ++++++++++++++++++++++++++---------- 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/register_judges_personal.php b/register_judges_personal.php index 62c51cb..e503ba8 100644 --- a/register_judges_personal.php +++ b/register_judges_personal.php @@ -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 ""; echo "
"; echo "\n"; -echo " ".i18n("Age category preference").""; +echo " ".i18n("Age category preference").""; $q=mysql_query("SELECT * FROM projectcategories ORDER BY mingrade"); echo ""; echo "\n"; @@ -157,18 +162,30 @@ echo ""; echo "\n"; echo "\n"; + echo "\n"; -echo " ".i18n("Years of judging experience at school/local level")."years_school\" size=\"3\" />\n"; -echo "\n"; -echo "\n"; -echo " ".i18n("Years of judging experience at regional level")."years_regional\" size=\"3\" />\n"; -echo "\n"; -echo "\n"; -echo " ".i18n("Years of judging experience at national level")."years_national\" size=\"3\" />\n"; +echo " ".i18n("Highest post-secondary degree").""; +echo " highest_psd\" />\n"; echo "\n"; echo "\n"; -echo " ".i18n("Willing to act as a division chair?").""; +echo " ".i18n("Years of judging experience at school/local level")."\n"; +echo " years_school\" size=\"3\" />\n"; +echo "\n"; + +echo "\n"; +echo " ".i18n("Years of judging experience at regional level")."\n"; +echo " years_regional\" size=\"3\" />\n"; +echo "\n"; + +echo "\n"; +echo " ".i18n("Years of judging experience at national level")."\n"; +echo " years_national\" size=\"3\" />\n"; +echo "\n"; + +echo "\n"; +echo " ".i18n("Willing to act as a division chair?")."\n"; +echo " "; if($judgeinfo->willing_chair=="no") $ch="checked=\"checked\""; else $ch=""; echo "No"; echo "    "; @@ -178,7 +195,8 @@ echo "\n"; echo "\n"; echo "\n"; -echo " ".i18n("Attending lunch?").""; +echo " ".i18n("Attending lunch?")."\n"; +echo " "; if($judgeinfo->attending_lunch=="no") $ch="checked=\"checked\""; else $ch=""; echo "No"; echo "    ";