From c158b9aad138501897c9b33ff91c1c0b569145a6 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 9 Feb 2009 07:09:09 +0000 Subject: [PATCH] - Judge timeslot selection page, default: disabled. The scheduler doesn't use it yet, but here it is. --- admin/user_editor_window.php | 21 ++++-- admin/user_list.php | 2 +- db/db.code.version.txt | 2 +- db/db.update.124.sql | 11 +++ judge.inc.php | 13 ++++ judge_availability.php | 140 +++++++++++++++++++++++++++++++++++ judge_main.php | 5 ++ 7 files changed, 186 insertions(+), 8 deletions(-) create mode 100644 db/db.update.124.sql create mode 100644 judge_availability.php diff --git a/admin/user_editor_window.php b/admin/user_editor_window.php index dfee6b3..cee98da 100644 --- a/admin/user_editor_window.php +++ b/admin/user_editor_window.php @@ -31,32 +31,37 @@ $tabs = array('personal' => array( 'name' => 'Personal', 'types' => array('student','judge','committee','volunteer','sponsor'), 'file' => '../user_personal.php', - ), + 'enabled' => true), 'roles' => array( 'name' => 'Roles/Account', 'types' => array('student','judge','committee','volunteer','sponsor'), 'file' => '../user_activate.php', - ), + 'enabled' => true), 'judgeother' => array( 'name' => 'Judge Other', 'types' => array('judge'), 'file' => '../judge_other.php', - ), + 'enabled' => true), 'judgeexpertise' => array( 'name' => 'Expertise', 'types' => array('judge'), 'file' => '../judge_expertise.php', - ), + 'enabled' => true), + 'judgeavailability' => array( + 'name' => 'Time Avail.', + 'types' => array('judge'), + 'file' => '../judge_availability.php', + 'enabled' => $config['judges_availability_enable'] == 'yes' ? true : false), 'judgesa' => array( 'name' => 'Special Awards', 'types' => array('judge'), 'file' => '../judge_special_awards.php', - ), + 'enabled' => true,), 'volunteerpos' => array( 'name' => 'Volunteer Positions', 'types' => array('volunteer'), 'file' => '../volunteer_position.php', - ), + 'enabled' => true,), ); @@ -90,8 +95,12 @@ send_popup_header(i18n("User Editor").": {$u['name']}"); echo '