From 866658cded5b92ddb2681dead1ebaf111d712fcc Mon Sep 17 00:00:00 2001 From: cassiopc Date: Mon, 6 Aug 2012 11:09:10 +0200 Subject: init --- boca-1.5.0/src/team/clar.php | 117 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 boca-1.5.0/src/team/clar.php (limited to 'boca-1.5.0/src/team/clar.php') diff --git a/boca-1.5.0/src/team/clar.php b/boca-1.5.0/src/team/clar.php new file mode 100644 index 0000000..7b391b9 --- /dev/null +++ b/boca-1.5.0/src/team/clar.php @@ -0,0 +1,117 @@ +. +//////////////////////////////////////////////////////////////////////////////// +// Last modified 05/aug/2012 by cassio@ime.usp.br +require('header.php'); + +if (isset($_POST["message"]) && isset($_POST["problem"]) && isset($_POST["Submit"]) && is_numeric($_POST["problem"])) { + if ($_POST["confirmation"] == "confirm") { + $param['contest']=$_SESSION["usertable"]["contestnumber"]; + $param['site']=$_SESSION["usertable"]["usersitenumber"]; + $param['user']= $_SESSION["usertable"]["usernumber"]; + $param['problem'] = htmlspecialchars($_POST["problem"]); + $param['question'] = htmlspecialchars($_POST["message"]); + DBNewClar($param); + } + ForceLoad("clar.php"); +} +?> +
+ + + + + + + + + +\n"; +// echo " \n"; + echo " \n"; + echo " \n"; +// echo " \n"; + if ($clar[$i]["question"] == "") $clar[$i]["question"] = " "; + echo " \n"; + + if ($clar[$i]["timestamp"]>$_SESSION["usertable"]["userlastlogin"]-$st["sitestartdate"] && $clar[$i]["timestamp"] < $st['siteduration'] && + trim($clar[$i]["answer"])!='' && !isset($_SESSION["popups"]['clar' . $i . '-' . $clar[$i]["timestamp"]])) { + $_SESSION["popups"]['clar' . $i . '-' . $clar[$i]["timestamp"]] = "Clarification for problem ".$clar[$i]["problem"]." answered
"; + } + + if (trim($clar[$i]["answer"]) == "") $clar[$i]["answer"] = "Not answered yet"; + echo " \n"; + echo " \n"; +} +echo "
TimeProblemQuestionAnswer
" . $clar[$i]["number"] . "" . dateconvminutes($clar[$i]["timestamp"]) . "" . $clar[$i]["problem"] . "" . $clar[$i]["status"] . ""; +// echo "
" . $clar[$i]["question"] . "
"; + echo " \n"; + echo "
"; +// echo "
" . $clar[$i]["answer"] . "
"; + echo " \n"; + echo "
"; +if (count($clar) == 0) echo "
NO CLARIFICATIONS AVAILABLE
"; + +?> + +

To submit a clarification, just fill in the following fields
+
+ +
+ + + + + + + + + +
Problem: + +
Clarification: + +
+
+ +
+ + +
+
+ + + -- cgit v1.2.3