From a9aa438ea0558eb0044cf1e54a9190ddb41b65e5 Mon Sep 17 00:00:00 2001 From: cassio Date: Tue, 2 Jul 2013 09:44:46 +0400 Subject: restructuring of boca's git --- boca-1.5.2/src/judge/history.php | 129 --------------------------------------- 1 file changed, 129 deletions(-) delete mode 100644 boca-1.5.2/src/judge/history.php (limited to 'boca-1.5.2/src/judge/history.php') diff --git a/boca-1.5.2/src/judge/history.php b/boca-1.5.2/src/judge/history.php deleted file mode 100644 index b612f9a..0000000 --- a/boca-1.5.2/src/judge/history.php +++ /dev/null @@ -1,129 +0,0 @@ -. -//////////////////////////////////////////////////////////////////////////////// -// Last modified 05/aug/2012 by cassio@ime.usp.br -// updated 20/oct/08 by cassio@ime.usp.br -// - bugfix of Marcelo Cezar Pinto (mcpinto@unipampa.edu.br) - div by zero at counts -require('header.php'); -?> -
- - - - - - - - - -\n"; - if($clar[$i]["judge"] == $_SESSION["usertable"]["usernumber"] && - $clar[$i]["judgesite"] == $_SESSION["usertable"]["usersitenumber"]) { - echo " \n"; - $myclars++; - } - else - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - if ($clar[$i]["question"] == "") $clar[$i]["question"] = " "; - if ($clar[$i]["answer"] == "") $clar[$i]["answer"] = " "; - - echo " \n"; - if (trim($clar[$i]["answer"]) == "") $clar[$i]["answer"] = "Not answered yet"; - echo " \n"; - - echo " \n"; -} -echo "
Clar # (site)TimeProblemStatusQuestionAnswer
" . $clar[$i]["number"] . "(" . $clar[$i]["site"] . ")" . $clar[$i]["number"] . "(" . $clar[$i]["site"] . ")" . dateconvminutes($clar[$i]["timestamp"]) . "" . $clar[$i]["problem"] . "" . $clar[$i]["status"] . ""; -// echo "
" . $clar[$i]["question"] . "
"; -// echo $clar[$i]["question"]; - echo " \n"; - echo "
"; -// echo "
" . $clar[$i]["answer"] . "
"; -// echo $clar[$i]["answer"]; - echo " \n"; - echo "
"; -if (count($clar) == 0) echo "
NO CLARIFICATIONS AVAILABLE
"; -else echo "
* Shadowed clars and runs were judged by this judge"; - -?> -

- - - - - - - - - -\n"; - if($run[$i]["yes"]=="t") $yes++; - if(($_SESSION["usertable"]["usersitenumber"] == $run[$i]["judgesite1"] && - $_SESSION["usertable"]["usernumber"] == $run[$i]["judge1"]) || - ($_SESSION["usertable"]["usersitenumber"] == $run[$i]["judgesite2"] && - $_SESSION["usertable"]["usernumber"] == $run[$i]["judge2"])) { - echo " \n"; - if($run[$i]["yes"]=="t") $myyes++; - $myruns++; - } - else - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - if ($run[$i]["answer"] == "") $run[$i]["answer"] = " "; - echo " \n"; - echo " \n"; -} -echo "
Run #TimeProblemLanguageStatusAnswer
" . $run[$i]["number"] . "" . $run[$i]["number"] . "" . dateconvminutes($run[$i]["timestamp"]) . "" . $run[$i]["problem"] . "" . $run[$i]["language"] . "" . $run[$i]["status"] . "" . $run[$i]["answer"] . "
"; -if (count($run) == 0) echo "
NO RUNS AVAILABLE
"; - -echo "

\n"; -echo "My answered clars: " . $myclars . "/" . count($clar) . " ("; -if(count($clar)>0) echo ((int) ($myclars*1000/count($clar)))/10 . "%)
\n"; -else echo "0%)
\n"; -echo "My judged runs: " . $myruns . "/" . count($run) ." ("; -if(count($run)>0) echo ((int) ($myruns*1000/count($run)))/10 . "%)
\n"; -else echo "0%)
\n"; -echo "Accepted runs that I've judged: " . $myyes . "/" . $yes . " ("; -if($yes>0) echo ((int) ($myyes*1000/$yes))/10 ."%)
\n"; -else echo "0%)
\n"; -?> - - -- cgit v1.2.3