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/team/clar.php | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 src/team/clar.php (limited to 'src/team/clar.php') diff --git a/src/team/clar.php b/src/team/clar.php new file mode 100644 index 0000000..a1e3972 --- /dev/null +++ b/src/team/clar.php @@ -0,0 +1,113 @@ +. +//////////////////////////////////////////////////////////////////////////////// +// 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"); +} +$_SESSION["popuptime"] = time(); +?> +
+ + + + + + + + + +\n"; +// echo " \n"; + echo " \n"; + echo " \n"; +// echo " \n"; + if ($clar[$i]["question"] == "") $clar[$i]["question"] = " "; + echo " \n"; + + 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