From 72bb303da6eb5a9e91216c94f576c52e4d76574b Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 18 Mar 2010 05:22:56 +0000 Subject: [PATCH] Add a judge scheudle page that lists the times, teams, and projects (with a link to a project info page) the judge will judge Put a link on the main judge page, and a bigger link if they've actually been assigned to a judging team. --- judge_main.php | 16 ++++ judge_project_summary.php | 90 ++++++++++++++++++++++ judge_schedule.php | 155 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 261 insertions(+) create mode 100644 judge_project_summary.php create mode 100644 judge_schedule.php diff --git a/judge_main.php b/judge_main.php index 8c075d44..7837e24a 100644 --- a/judge_main.php +++ b/judge_main.php @@ -47,6 +47,21 @@ } echo "
"; + /* Check for any judging team assignment this year for this judge, + * if there is one, print the judge scheule link in an obvious place, + * it's less obvious below */ + $q = mysql_query("SELECT id FROM judges_teams_link WHERE + users_id='{$u['id']}' AND year='{$config['FAIRYEAR']}'"); + if(mysql_num_rows($q) > 0) { + echo ''; + echo i18n("You have been assigned to a judging team. %1Click here%2 to view the judging schedule", + array("","")); + echo ''; + echo '

'; + } + + + //first, we need to see if they havec the current FAIRYEAR activated, if not, we'll keep their acocunt 'dormant' and it wont //be used for anything, but will still be available for them to login in the following years. @@ -91,6 +106,7 @@ echo i18n('Other Options and Things To Do').':
'; echo '