forked from science-ation/science-ation
Allow turning off the special awards self-nominations.
This commit is contained in:
parent
9881ddb968
commit
0076c5f360
1
db.update.12.sql
Normal file
1
db.update.12.sql
Normal file
@ -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';
|
@ -176,12 +176,14 @@ echo "<table><tr><td>";
|
|||||||
|
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
echo "<td align=\"left\" width=\"50%\">";
|
echo "<td align=\"left\" width=\"50%\">";
|
||||||
if($config['specawardnom']!="none")
|
if($config['specialawardnomination']!="none")
|
||||||
{
|
{
|
||||||
echo "<table class=\"summarytable\">";
|
echo "<table class=\"summarytable\">";
|
||||||
echo "<tr><th>".i18n("Special Award Nominations")."</th></tr>";
|
echo "<tr><th>".i18n("Special Award Nominations")."</th></tr>";
|
||||||
|
|
||||||
if(registrationFormsReceived())
|
if(registrationFormsReceived())
|
||||||
|
{
|
||||||
|
if($config['specialawardnomination']=="date")
|
||||||
{
|
{
|
||||||
$q=mysql_query("SELECT (NOW()>'".$config['dates']['specawardregopen']."' AND NOW()<'".$config['dates']['specawardregclose']."') AS datecheck");
|
$q=mysql_query("SELECT (NOW()>'".$config['dates']['specawardregopen']."' AND NOW()<'".$config['dates']['specawardregclose']."') AS datecheck");
|
||||||
$r=mysql_fetch_object($q);
|
$r=mysql_fetch_object($q);
|
||||||
@ -195,7 +197,11 @@ echo "<table><tr><td>";
|
|||||||
echo "<tr><td>".error(i18n("Special award self-nomination is only available from %1 to %2",array($config['dates']['specawardregopen'],$config['dates']['specawardregclose'])),"inline")."</td></tr>";
|
echo "<tr><td>".error(i18n("Special award self-nomination is only available from %1 to %2",array($config['dates']['specawardregopen'],$config['dates']['specawardregclose'])),"inline")."</td></tr>";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else if($config['specialawardnomination']=="registration")
|
||||||
|
{
|
||||||
|
echo "<tr><td><a href=\"register_participants_spawards.php\">".i18n("Self-nominate for special awards")."</a></td></tr>";
|
||||||
|
}
|
||||||
|
|
||||||
$q=mysql_query("SELECT * FROM projects WHERE registrations_id='".$_SESSION['registration_id']."'");
|
$q=mysql_query("SELECT * FROM projects WHERE registrations_id='".$_SESSION['registration_id']."'");
|
||||||
$project=mysql_fetch_object($q);
|
$project=mysql_fetch_object($q);
|
||||||
|
Loading…
Reference in New Issue
Block a user