forked from science-ation/science-ation
Fix some missing tranaslations on the special awards signup page
This commit is contained in:
parent
369542ecde
commit
4a6f9d0e4e
@ -27,13 +27,11 @@
|
|||||||
include "projects.inc.php";
|
include "projects.inc.php";
|
||||||
|
|
||||||
//authenticate based on email address and registration number from the SESSION
|
//authenticate based on email address and registration number from the SESSION
|
||||||
if(!$_SESSION['email'])
|
if(!$_SESSION['email']) {
|
||||||
{
|
|
||||||
header("Location: register_participants.php");
|
header("Location: register_participants.php");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
if(!$_SESSION['registration_number'])
|
if(!$_SESSION['registration_number']) {
|
||||||
{
|
|
||||||
header("Location: register_participants.php");
|
header("Location: register_participants.php");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
@ -47,8 +45,7 @@
|
|||||||
"AND students.year=".$config['FAIRYEAR']);
|
"AND students.year=".$config['FAIRYEAR']);
|
||||||
echo mysql_error();
|
echo mysql_error();
|
||||||
|
|
||||||
if(mysql_num_rows($q)==0)
|
if(mysql_num_rows($q)==0) {
|
||||||
{
|
|
||||||
header("Location: register_participants.php");
|
header("Location: register_participants.php");
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
@ -171,8 +168,8 @@ else if($newstatus=="complete")
|
|||||||
$nominatedawards=getSpecialAwardsNominatedForProject($project->id);
|
$nominatedawards=getSpecialAwardsNominatedForProject($project->id);
|
||||||
|
|
||||||
$eligibleawards = array_merge(array(array( 'id'=> -1,
|
$eligibleawards = array_merge(array(array( 'id'=> -1,
|
||||||
'name' => "I do not wish to self-nominate for any special awards",
|
'name' => i18n("I do not wish to self-nominate for any special awards"),
|
||||||
'criteria' => "Select this option if you do not wish to self-nominate you project for any special awards.<hr>",
|
'criteria' => i18n("Select this option if you do not wish to self-nominate you project for any special awards.")."<hr>",
|
||||||
'self_nominate' => 'yes')),
|
'self_nominate' => 'yes')),
|
||||||
$eligibleawards);
|
$eligibleawards);
|
||||||
/* See if they have the -1 award selected */
|
/* See if they have the -1 award selected */
|
||||||
@ -202,10 +199,10 @@ else if($newstatus=="complete")
|
|||||||
if(in_array($eaward['id'],$nominatedawards_list)) $ch="checked=\"checked\""; else $ch="";
|
if(in_array($eaward['id'],$nominatedawards_list)) $ch="checked=\"checked\""; else $ch="";
|
||||||
echo "<input onclick=\"checkboxclicked(this)\" $ch type=\"checkbox\" name=\"spaward[]\" value=\"".$eaward['id']."\" />";
|
echo "<input onclick=\"checkboxclicked(this)\" $ch type=\"checkbox\" name=\"spaward[]\" value=\"".$eaward['id']."\" />";
|
||||||
echo "</td><td>";
|
echo "</td><td>";
|
||||||
echo "<b>".$eaward['name']."</b>";
|
echo "<b>".i18n($eaward['name'])."</b>";
|
||||||
echo "</td></tr>";
|
echo "</td></tr>";
|
||||||
echo "<tr><td>";
|
echo "<tr><td>";
|
||||||
echo $eaward['criteria'];
|
echo i18n($eaward['criteria']);
|
||||||
if($eaward['id'] != -1) echo '<br /><br />';
|
if($eaward['id'] != -1) echo '<br /><br />';
|
||||||
echo "</td></tr>";
|
echo "</td></tr>";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user