diff --git a/db.update.12.sql b/db.update.12.sql
new file mode 100644
index 0000000..058f961
--- /dev/null
+++ b/db.update.12.sql
@@ -0,0 +1 @@
+UPDATE `config` SET `description` = 'Self nominations for special awards are due either with registration or on a specific date. If "date" is used, it must be configured under "Important Dates" section. If you do not wish to allow students to self-nominate for special awards, set to "none" (none|date|registration)' WHERE `var` = 'specialawardnomination';
diff --git a/register_participants_main.php b/register_participants_main.php
index ebc8f46..73d4cc0 100644
--- a/register_participants_main.php
+++ b/register_participants_main.php
@@ -176,26 +176,32 @@ echo "
";
echo " | ";
echo "";
- if($config['specawardnom']!="none")
+ if($config['specialawardnomination']!="none")
{
echo "";
echo "".i18n("Special Award Nominations")." | ";
if(registrationFormsReceived())
{
- $q=mysql_query("SELECT (NOW()>'".$config['dates']['specawardregopen']."' AND NOW()<'".$config['dates']['specawardregclose']."') AS datecheck");
- $r=mysql_fetch_object($q);
- //this will return 1 if its between the dates, 0 otherwise.
- if($r->datecheck==1)
+ if($config['specialawardnomination']=="date")
+ {
+ $q=mysql_query("SELECT (NOW()>'".$config['dates']['specawardregopen']."' AND NOW()<'".$config['dates']['specawardregclose']."') AS datecheck");
+ $r=mysql_fetch_object($q);
+ //this will return 1 if its between the dates, 0 otherwise.
+ if($r->datecheck==1)
+ {
+ echo "".i18n("Self-nominate for special awards")." | ";
+ }
+ else
+ {
+ echo "".error(i18n("Special award self-nomination is only available from %1 to %2",array($config['dates']['specawardregopen'],$config['dates']['specawardregclose'])),"inline")." | ";
+
+ }
+ }
+ else if($config['specialawardnomination']=="registration")
{
echo "".i18n("Self-nominate for special awards")." | ";
}
- else
- {
- echo "".error(i18n("Special award self-nomination is only available from %1 to %2",array($config['dates']['specawardregopen'],$config['dates']['specawardregclose'])),"inline")." | ";
-
- }
-
$q=mysql_query("SELECT * FROM projects WHERE registrations_id='".$_SESSION['registration_id']."'");
$project=mysql_fetch_object($q);
|