Esempio n. 1
0
require_once $_SERVER["DOCUMENT_ROOT"] . '/../Support/configEnglishContestJudging.php';
require_once $_SERVER["DOCUMENT_ROOT"] . '/../Support/basicLib.php';
if (session_status() == PHP_SESSION_NONE) {
    session_start();
}
if ($_SESSION["isJudge"]) {
    if (isset($_POST["evaluate"])) {
        //scrub data
        $evaluator = htmlspecialchars($_POST["evaluator"]);
        $rating = htmlspecialchars($_POST["rating"]);
        $contestantComments = $db->real_escape_string(htmlspecialchars($_POST["contestantComments"]));
        $committeeComments = $db->real_escape_string(htmlspecialchars($_POST["committeeComments"]));
        $entryid = htmlspecialchars($_POST["entryid"]);
        $panelid = htmlspecialchars($_POST["panelid"]);
        if ($rating == "") {
            nonDbError("User: "******" -evaluation submission error- User did not select rating");
            exit($user_err_message);
        }
        $sqlInsert = <<<SQL
          INSERT INTO `tbl_evaluations`
          (`evaluator`,
          `rating`,
          `contestantcomment`,
          `committeecomment`,
          `entry_id`)
          VALUES
          ('{$evaluator}',
          {$rating},
          '{$contestantComments}',
          '{$committeeComments}',
          {$entryid})
Esempio n. 2
0
                      </li>
                    </ul>
          </div>
        </div>
        <?php 
    include "footer.php";
    ?>
        <!-- //additional script specific to this page -->
        <script src="js/jdgMyScript.js"></script>
        </div><!-- End Container of all things -->
      </body>
    </html>
    <?php 
    $db->close();
} else {
    nonDbError(" -ranking submission error- isJudge set to: " . $_SESSION["isJudge"], $login_name);
    ?>
    <!doctype html>
    <html lang="en">
      <head>
        <meta charset="utf-8">
        <title><?php 
    echo $siteTitle;
    ?>
</title>
        <meta name="description" content="<?php 
    echo $siteTitle;
    ?>
">
        <meta name="rsmoke" content="LSA_MIS">
        <link rel="shortcut icon" href="ico/favicon.ico">