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" ); $id = intval($_GET['id']); send_popup_header("Judge Information"); if($id < 1) { echo error(i18n("No Judge ID passed to Judges Info")); send_popup_footer(); exit; } $judgeinfo = user_load($id); send_popup_header(i18n("Judge Information - %1 %2",array($judgeinfo['firstname'],$judgeinfo['lastname']))); echo "Complete for {$config['FAIRYEAR']}: ".(($judgeinfo['complete']=="yes") ? "Yes" : "No"); echo "
"; 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 "
".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($config['provincestate']).": {$judgeinfo['province']}
".i18n("Address 2").":{$judgeinfo['address2']}".i18n("Phone (Home)").":{$judgeinfo['phonehome']}
".i18n($config['postalzip']).":{$judgeinfo['postalcode']}".i18n("Phone (Work)").":{$judgeinfo['phonework']}
".i18n("Organization").":{$judgeinfo['organization']}".i18n("Phone (Cell)").":{$judgeinfo['phonecell']}

"; echo ""; echo "\n"; echo " "; echo ""; echo " \n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo " "; echo " \n"; echo "\n"; echo "\n"; echo " "; echo " \n"; echo "\n"; //questions_print_answers('judgereg',$judgeinfo['id'], $config['FAIRYEAR']); echo "
".i18n("Time Availability").":"; $q = mysql_query("SELECT * FROM judges_availability WHERE users_id=\"{$judgeinfo['id']}\" ORDER BY `start`"); $sel = array(); while($r=mysql_fetch_object($q)) { $st = substr($r->start, 0, 5); $end = substr($r->end, 0, 5); echo "$st - $end
"; } echo "
".i18n("Age category preference").":"; $q=mysql_query("SELECT * FROM projectcategories WHERE year='{$config['FAIRYEAR']}'"); echo mysql_error(); while($r=mysql_fetch_object($q)) { $p = intval($judgeinfo['cat_prefs'][$r->id]); echo i18n($r->category).": {$preferencechoices[$p]}
"; } echo "
".i18n("Highest post-secondary degree").":{$judgeinfo['highest_psd']}
".i18n("Languages").":".join(', ', $judgeinfo['languages']). "
"; 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) { $p = $judgeinfo['div_prefs'][$div]; echo ""; echo " "; echo ""; echo ""; } echo "\n"; echo " "; echo " \n"; echo "\n"; echo "
".i18n($divnames[$div]).":$p/5"; $subq=mysql_query("SELECT * FROM projectsubdivisions WHERE projectdivisions_id='$div' AND year='{$config['FAIRYEAR']}' ORDER BY subdivision"); $sd = array(); while($subr=mysql_fetch_object($subq)) { if($u['div_prefs_sub'][$subr->id] == 1) { $sd[] = $subdivr->subdivision; } } /* Only show subdiv if main div >=3 */ if($p >= 3) echo implode(", ",$sd); else echo " "; echo "
".i18n("Other").":{$judgeinfo['expertise_other']}
"; echo "
"; send_popup_footer(); ?>