Distinguish externally imported prizes from manually added ones

This commit is contained in:
james 2007-11-28 22:06:17 +00:00
parent 566c1d1573
commit a70413b92d

View File

@ -199,9 +199,11 @@
echo "</tr>\n";
$hasexternal=false;
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>$r->prize</td>\n";
echo " <td align=\"right\">";
@ -226,6 +228,8 @@
echo " </td>\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 "<input type=\"submit\" value=\"".i18n("Re-order prizes")."\" />";