forked from science-ation/science-ation
Distinguish externally imported prizes from manually added ones
This commit is contained in:
parent
566c1d1573
commit
a70413b92d
@ -199,9 +199,11 @@
|
|||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
|
|
||||||
|
|
||||||
|
$hasexternal=false;
|
||||||
while($r=mysql_fetch_object($q))
|
while($r=mysql_fetch_object($q))
|
||||||
{
|
{
|
||||||
echo "<tr>\n";
|
if($r->external_identifier){ $cl="class=\"externalaward\""; $hasexternal=true; } else $cl="";
|
||||||
|
echo "<tr $cl>\n";
|
||||||
echo " <td><input type=\"text\" name=\"reorder[$r->id]\" value=\"$r->order\" size=\"3\" /></td>\n";
|
echo " <td><input type=\"text\" name=\"reorder[$r->id]\" value=\"$r->order\" size=\"3\" /></td>\n";
|
||||||
echo " <td>$r->prize</td>\n";
|
echo " <td>$r->prize</td>\n";
|
||||||
echo " <td align=\"right\">";
|
echo " <td align=\"right\">";
|
||||||
@ -226,6 +228,8 @@
|
|||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
}
|
}
|
||||||
|
if($hasexternal)
|
||||||
|
echo "<tr class=\"externalaward\"><td colspan=\"7\">".i18n("Indicates prize imported from an external source")."</td></tr>";
|
||||||
|
|
||||||
echo "</table>\n";
|
echo "</table>\n";
|
||||||
echo "<input type=\"submit\" value=\"".i18n("Re-order prizes")."\" />";
|
echo "<input type=\"submit\" value=\"".i18n("Re-order prizes")."\" />";
|
||||||
|
Loading…
Reference in New Issue
Block a user