aboutsummaryrefslogtreecommitdiff
path: root/src/admin/run.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/admin/run.php')
-rw-r--r--src/admin/run.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/admin/run.php b/src/admin/run.php
index cc0bb46..6de559f 100644
--- a/src/admin/run.php
+++ b/src/admin/run.php
@@ -88,7 +88,16 @@ if(isset($_POST)) {
}
$us = DBAllUserNames($_SESSION["usertable"]["contestnumber"]);
+
+for($judged=0; $judged<2; $judged++) {
for ($i=0; $i<count($run); $i++) {
+ if($run[$i]["status"] == 'gone') continue;
+ if(($run[$i]['status'] != 'judged' && $judged==0) ||
+ ($run[$i]['status'] == 'judged' && $judged==1)) {
+
+
+
+#for ($i=0; $i<count($run); $i++) {
if($run[$i]["answer1"] != 0 && $run[$i]["answer2"] != 0 && ($run[$i]["status"] != "judged" && $run[$i]["status"] != 'deleted')) {
if($runphp == "runchief.php")
echo " <tr bgcolor=\"ff0000\">\n";
@@ -156,6 +165,8 @@ for ($i=0; $i<count($run); $i++) {
}
echo " </tr>\n";
}
+}
+}
echo "</table>";
if (count($run) == 0) echo "<br><center><b><font color=\"#ff0000\">NO RUNS AVAILABLE</font></b></center>";