From be2491b093b1f0ca430bede679ecbb670041e483 Mon Sep 17 00:00:00 2001 From: cassio Date: Tue, 2 Jul 2013 09:46:45 +0400 Subject: restructuring of boca's git --- src/admin/report/site.php | 128 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 src/admin/report/site.php (limited to 'src/admin/report/site.php') diff --git a/src/admin/report/site.php b/src/admin/report/site.php new file mode 100644 index 0000000..001d48e --- /dev/null +++ b/src/admin/report/site.php @@ -0,0 +1,128 @@ +. +//////////////////////////////////////////////////////////////////////////////// +// Last modified 05/aug/2012 by cassio@ime.usp.br + +require('header.php'); + +$sitetime = DBAllSiteTime($_SESSION["usertable"]["contestnumber"], $site); +?> +
+

Site Start/Stop Logs

+ + +Start date (contest=" . dateconv($ct["conteststartdate"]) . "):"; +echo "\n"; +echo ""; +if (!$st["siterunning"]) { + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + if($st["siteautoended"]) { + $w = (int) ($st["siteduration"]/60); + $ww = $st["siteduration"] % 60; + } + else { + $w = (int) ($st["currenttime"]/60); + $ww = $st["currenttime"] % 60; + } + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; +} +echo "\n"; +echo " "; +?> + + + +Stop answering (contest="; +echo $ct["contestlastmileanswer"]/60; +echo "):"; +?> + + + +Stop scoreboard (contest="; +echo $ct["contestlastmilescore"]/60; +echo "):"; +?> + + + + + + + + + + + + + + +
" . dateconv($st["sitestartdate"]) . "
Finished at:" . dateconv($st["siteendeddate"]); + if($st["siteautoended"]) echo " (auto)"; + echo "
Real duration:$w minutes"; + if($ww != 0) echo " plus $ww seconds"; + echo "
Planned Duration (contest="; +echo $ct["contestduration"]/60; +echo "): + +
+ +
+ +
Number of Clars: +
Number of Runs: +
Number of Tasks: +
+ +
+
+ + + + +"; + echo ""; + echo ""; + echo ""; +} +?> +
Starting atEnding at
"; + echo dateconv($sitetime[$i]["sitestartdate"]); + echo ""; + if($sitetime[$i]["siteenddate"] == 0) { + if($st["siterunning"]) + echo "still open"; + else echo "auto-ended"; + } + else + echo dateconv($sitetime[$i]["siteenddate"]); + echo "
+
+ + -- cgit v1.2.3