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. */ ?> "Very Low", -1=>"Low", 0=>"Indifferent", 1=>"Medium", 2=>"High" ); if($_GET['id']) { //include "../register_judges.inc.php"; $q=mysql_query("SELECT judges.* FROM judges WHERE judges.id='".$_GET['id']."'"); echo mysql_error(); $judgeinfo=mysql_fetch_object($q); send_popup_header(i18n("Judge Information - %1 %2",array($judgeinfo->firstname,$judgeinfo->lastname))); echo "

".i18n("Personal Info")."

"; 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"; echo " \n"; echo ""; echo "\n"; echo " \n"; echo " \n"; echo ""; echo ""; echo "\n"; echo " \n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo " "; echo " \n"; echo "\n"; echo "\n"; echo " "; echo " \n"; echo "\n"; echo "\n"; 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 " \n"; echo " \n"; echo "
".i18n("First Name")."$judgeinfo->firstname".i18n("Last Name")."$judgeinfo->lastname
".i18n("Email Address")."$judgeinfo->email".i18n("City")."$judgeinfo->city
".i18n("Address 1")."$judgeinfo->address".i18n("Province")."$judgeinfo->province"; echo "
".i18n("Address 2")."$judgeinfo->address2".i18n("Phone (Home)")."$judgeinfo->phonehome
".i18n("Postal Code")."$judgeinfo->postalcode".i18n("Phone (Work)")."$judgeinfo->phonework ext $judgeinfo->phoneworkext
".i18n("Organization")."$judgeinfo->organization".i18n("Phone (Cell)")."$judgeinfo->phonecell

".i18n("Age category preference").""; $q=mysql_query("SELECT judges_catpref.*,projectcategories.category FROM judges_catpref,projectcategories WHERE judges_id='{$_GET['id']}' AND judges_catpref.year='".$config['FAIRYEAR']."' AND projectcategories.year='".$config['FAIRYEAR']."' AND judges_catpref.projectcategories_id=projectcategories.id"); echo mysql_error(); while($r=mysql_fetch_object($q)) echo i18n($r->category).": ".$preferencechoices[$r->rank]."
"; echo "
".i18n("Highest post-secondary degree")."$judgeinfo->highest_psd
".i18n("Other professional qualifications")."$judgeinfo->professional_quals
".i18n("Languages").""; $q=mysql_query("SELECT languages_lang FROM judges_languages WHERE judges_id='$judgeinfo->id'"); while($r=mysql_fetch_object($q)) { echo $r->languages_lang; echo "
"; } echo "
".i18n("Judging experience at school/local level")."$judgeinfo->years_school ".i18n("years")."
".i18n("Judging experience at regional level")."$judgeinfo->years_regional ".i18n("years")."
".i18n("Judging experience at national level")."$judgeinfo->years_national ".i18n("years")."
".i18n("Willing to act as a division chair?")."$judgeinfo->willing_chair"; echo "
".i18n("Attending lunch?")."$judgeinfo->attending_lunch"; echo "
"; echo "
"; echo "
"; echo "

Areas of Expertise

"; echo ""; //grab the list of divisions, because the last fields of the table will be the sub-divisions $q=mysql_query("SELECT * FROM projectdivisions WHERE year='".$config['FAIRYEAR']."' ORDER BY id"); $divs=array(); while($r=mysql_fetch_object($q)) { $divs[]=$r->id; $divnames[$r->id]=$r->division; } $subdivq=mysql_query("SELECT judges_expertise.*, projectsubdivisions.subdivision, projectsubdivisions.projectdivisions_id AS parent_id FROM judges_expertise LEFT JOIN projectsubdivisions ON judges_expertise.projectsubdivisions_id=projectsubdivisions.id WHERE judges_id='$judgeinfo->id' AND judges_expertise.year='".$config['FAIRYEAR']."' ORDER BY projectdivisions_id, projectsubdivisions_id"); echo mysql_error(); $judge_divs=array(); $judge_subdivs=array(); $divdata=array(); while($subdivr=mysql_fetch_object($subdivq)) { if($subdivr->projectdivisions_id) { $judge_divs[$subdivr->projectdivisions_id]=$subdivr->val; } else $judge_subdivs[$subdivr->parent_id][]=$subdivr->subdivision; } foreach($divs as $div) { echo ""; echo " "; echo ""; echo ""; } echo "
".i18n($divnames[$div])."".$judge_divs[$div]."/5"; if(count($judge_subdivs[$div])) { $divdata=implode(", ",$judge_subdivs[$div]); echo "$divdata"; } else echo " "; echo "
"; } else { send_popup_header("Judge Information"); echo error(i18n("No Judge ID passed to Judges Info")); } send_popup_footer(); ?>