Copyright (C) 2005 James Grant This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ ?> << ".i18n("Back to Judges Registration Summary")."
"; echo "
"; if($_POST['action']=="save") { $dob=$_POST['year']."-".$_POST['month']."-".$_POST['day']; if($_POST['catpref']) $catpref="'".$_POST['catpref']."'"; else $catpref="null"; mysql_query("UPDATE judges SET ". "firstname='".mysql_escape_string(stripslashes($_POST['firstname']))."', ". "lastname='".mysql_escape_string(stripslashes($_POST['lastname']))."', ". "email='".mysql_escape_string(stripslashes($_POST['email']))."', ". "address='".mysql_escape_string(stripslashes($_POST['address']))."', ". "city='".mysql_escape_string(stripslashes($_POST['city']))."', ". "province='".mysql_escape_string(stripslashes($_POST['province']))."', ". "postalcode='".mysql_escape_string(stripslashes($_POST['postalcode']))."', ". "phonehome='".mysql_escape_string(stripslashes($_POST['phonehome']))."', ". "phonework='".mysql_escape_string(stripslashes($_POST['phonework']))."', ". "phonecell='".mysql_escape_string(stripslashes($_POST['phonecell']))."', ". "organization='".mysql_escape_string(stripslashes($_POST['organization']))."', ". "catpref=$catpref, ". "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']))."', ". "willing_chair='".mysql_escape_string(stripslashes($_POST['willing_chair']))."', ". "attending_lunch='".mysql_escape_string(stripslashes($_POST['attending_lunch']))."' ". "WHERE id='".$_SESSION['judges_id']."'"); echo mysql_error(); echo notice(i18n("%1 %2 successfully updated",array($_POST['firstname'],$_POST['lastname']))); } $q=mysql_query("SELECT * FROM judges WHERE email='".$_SESSION['email']."' AND id='".$_SESSION['judges_id']."'"); $judgeinfo=mysql_fetch_object($q); //output the current status $newstatus=personalStatus(); if($newstatus!="complete") { echo error(i18n("Personal Information Incomplete")); } else { echo happy(i18n("Personal Information Complete")); } echo "
\n"; echo "\n"; echo "\n"; echo "\n"; echo " \n"; echo " \n"; echo "\n"; echo "\n"; echo " \n"; echo " \n"; echo "\n"; echo "\n"; echo " \n"; echo " \n"; echo "\n"; echo "\n"; echo " \n"; echo " \n"; echo "\n"; /* //remove date of birth... its really not something that we should be asking echo "\n"; echo " \n"; echo " \n"; echo ""; */ echo "\n"; echo " \n"; echo " \n"; echo ""; echo ""; echo "\n"; echo " \n"; echo "\n"; echo "\n"; echo " \n"; echo "\n"; echo "\n"; echo " \n"; echo "\n"; echo "\n"; echo " \n"; echo "\n"; echo "\n"; echo " \n"; echo "\n"; echo "\n"; echo " \n"; echo "\n"; echo "
".i18n("First Name")."firstname\" />".i18n("Last Name")."lastname\" />
".i18n("Email Address")."email\" />".i18n("City")."city\" />
".i18n("Address")."address\" />".i18n("Province").""; emit_province_selector("province",$judgeinfo->province); echo "
".i18n("Postal Code")."postalcode\" />".i18n("Phone (Home)")."phonehome\" />
".i18n("Date of Birth")."\n"; list($year,$month,$day)=split("-",$judgeinfo->dateofbirth); echo "
"; emit_day_selector("day",$day); echo "\n"; emit_month_selector("month",$month); echo "\n"; emit_year_selector("year",$year,date("Y")-$config['maxjudgeage'],date("Y")-$config['minjudgeage']); echo "
\n"; echo "
".i18n("Phone (Work)")."phonework\" />
".i18n("Organization")."organization\" />".i18n("Phone (Cell)")."phonecell\" />

".i18n("Age category preference").""; $q=mysql_query("SELECT * FROM projectcategories ORDER BY mingrade"); echo ""; echo "
".i18n("Years of judging experience at school/local level")."years_school\" size=\"3\" />
".i18n("Years of judging experience at regional level")."years_regional\" size=\"3\" />
".i18n("Years of judging experience at national level")."years_national\" size=\"3\" />
".i18n("Willing to act as a division chair?").""; if($judgeinfo->willing_chair=="no") $ch="checked=\"checked\""; else $ch=""; echo "No"; echo "    "; if($judgeinfo->willing_chair=="yes") $ch="checked=\"checked\""; else $ch=""; echo "Yes"; echo "
".i18n("Attending lunch?").""; if($judgeinfo->attending_lunch=="no") $ch="checked=\"checked\""; else $ch=""; echo "No"; echo "    "; if($judgeinfo->attending_lunch=="yes") $ch="checked=\"checked\""; else $ch=""; echo "Yes"; echo "
"; echo "\n"; echo "
"; send_footer(); ?>