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. */ ?> "; display_messages(); echo "

".i18n('Special Awards')."

"; echo "
"; } else { //send the header send_header('Special Awards', array('Judge Registration' => 'judge_main.php') ); } judge_status_update($u); if($_SESSION['embed'] != true) { //output the current status $newstatus=judge_status_special_awards($u); if($newstatus!='complete') echo error(i18n("Special Award Preferences Incomplete")); else echo happy(i18n("Special Award Preferences Complete")); } if($_SESSION['embed'] == true) { echo "
\n"; } else { echo "\n"; } echo "\n"; if($u['special_award_only'] == 'yes') { echo i18n("Please select the special award you are supposed to judge."); } else { echo i18n("Please select any special awards you would prefer to judge."); echo "  "; echo i18n("We assign judges to divisional awards first. So please note that by selecting awards here it does not guarantee that you will be judging special awards. This selects your special award judging preferences IF you are not assigned to a divisional judging team."); } echo "
"; echo "
"; $q=mysql_query("SELECT * FROM judges_specialaward_sel WHERE users_id='{$u['id']}'"); $spawards = array(); while($r=mysql_fetch_object($q)) $spawards[] = $r->award_awards_id; echo "\n"; //query all of the awards $q=mysql_query("SELECT award_awards.id, award_awards.name, award_awards.criteria, sponsors.organization FROM award_awards, award_types, sponsors WHERE award_types.id=award_awards.award_types_id AND sponsors.id=award_awards.sponsors_id AND (award_types.type='Special' OR award_types.type='Other') AND award_awards.year='{$config['FAIRYEAR']}' AND award_types.year='{$config['FAIRYEAR']}' ORDER BY name"); echo mysql_error(); while($r=mysql_fetch_object($q)) { echo ""; echo ""; } echo "
"; $ch = (in_array($r->id,$spawards)) ? "checked=\"checked\"" : ""; echo "id}\" />"; echo ""; echo "{$r->name} ({$r->organization})"; echo "
"; echo "{$r->criteria}"; echo "

"; echo "
"; echo "\n"; echo "
"; if($_SESSION['embed'] != true) send_footer(); ?>