forward port translation changes on participant special award pages

This commit is contained in:
james 2011-03-10 16:17:21 +00:00
parent 81fafb609c
commit badc2e9378

View File

@ -138,8 +138,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 */
@ -156,23 +156,21 @@ else if($newstatus=="complete")
*/ */
$nominatedawards_list=array(); $nominatedawards_list=array();
foreach($nominatedawards AS $naward) foreach($nominatedawards AS $naward) {
{
$nominatedawards_list[]=$naward['id']; $nominatedawards_list[]=$naward['id'];
} }
echo "<table>"; echo "<table>";
foreach($eligibleawards AS $eaward) foreach($eligibleawards AS $eaward) {
{
if($eaward['self_nominate'] == 'no') continue; if($eaward['self_nominate'] == 'no') continue;
echo "<tr><td rowspan=\"2\">"; echo "<tr><td rowspan=\"2\">";
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>";
} }