aboutsummaryrefslogtreecommitdiff
path: root/src/judge/runchief.php
diff options
context:
space:
mode:
authorBruno Ribas <brunoribas@gmail.com>2020-11-05 18:27:21 +0000
committerBruno Ribas <brunoribas@gmail.com>2020-11-05 18:27:21 +0000
commit8f0e78886c5d9acb79efb670510125c217ce2049 (patch)
tree12f7a5a4f58f6f9e2a352aa3f3456f5a34d33b00 /src/judge/runchief.php
parentf2ebd9e0c37b461b608fb62ac5b8d14422f830cc (diff)
downloadboca-8f0e78886c5d9acb79efb670510125c217ce2049.tar.gz
boca-8f0e78886c5d9acb79efb670510125c217ce2049.zip
judge/{claredit,header,runchief}.php updates from 2019
Signed-off-by: Bruno Ribas <brunoribas@gmail.com>
Diffstat (limited to 'src/judge/runchief.php')
-rw-r--r--src/judge/runchief.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/judge/runchief.php b/src/judge/runchief.php
index 7238bed..b124fd8 100644
--- a/src/judge/runchief.php
+++ b/src/judge/runchief.php
@@ -87,8 +87,13 @@ if(isset($_POST)) {
}
}
-
+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";
@@ -160,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>";