From 0ba89a18a7e85dac200f2cdfbbd251e9f6cbedee Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 21 Jan 2007 05:45:36 +0000 Subject: [PATCH] - Add a new config variable 'specialawardnomination_aftersignatures'. Default='yes', meaning the behaviour is the same as the default. 'no' means that students can self-nominate for awards before the committee receives their signature form. --- db/db.code.version.txt | 2 +- db/db.update.39.sql | 3 +++ register_participants_main.php | 9 ++++++++- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 db/db.update.39.sql diff --git a/db/db.code.version.txt b/db/db.code.version.txt index e522732c..a2720097 100644 --- a/db/db.code.version.txt +++ b/db/db.code.version.txt @@ -1 +1 @@ -38 +39 diff --git a/db/db.update.39.sql b/db/db.update.39.sql new file mode 100644 index 00000000..72831cef --- /dev/null +++ b/db/db.update.39.sql @@ -0,0 +1,3 @@ +INSERT INTO `config` ( `var` , `val` , `category` , `type` , `type_values` , `ord` , `description` , `year` ) VALUES ( 'specialawardnomination_aftersignatures', 'yes', 'Participant Registration', 'yesno', '', '1390', 'Does the signature page need to be received BEFORE students are allowed to self nominate for special awards?', '-1'); + +UPDATE `config` SET `type_values` = 'none=None|date=By Date|registration=With Registration', `description` = 'Select when students may self nominate for special awards.
' WHERE `var` = 'specialawardnomination'; diff --git a/register_participants_main.php b/register_participants_main.php index 1d639e30..ea62b490 100644 --- a/register_participants_main.php +++ b/register_participants_main.php @@ -227,7 +227,14 @@ echo "
"; echo ""; echo ""; - if(registrationFormsReceived()) + $special_awards_open = false; + if($config['specialawardnomination_aftersignatures']=="no") { + $special_awards_open = true; + } else { + $special_awards_open = (registrationFormsReceived()) ? true : false; + } + + if($special_awards_open == true) { if($config['specialawardnomination']=="date") {
".i18n("Special Award Nominations")."