* @copyright Copyright (c) 2014 The University of Nottingham * @package */ require '../include/invigilator_auth.inc'; require_once '../include/errors.inc'; require_once '../classes/noteutils.class.php'; require_once '../classes/paperutils.class.php'; $paperID = check_var('paperID', 'REQUEST', true, false, true); // Does the paper exist? if (!Paper_utils::paper_exists($paperID, $mysqli)) { $msg = sprintf($string['furtherassistance'], $configObject->get('support_email'), $configObject->get('support_email')); $notice->display_notice_and_exit($mysqli, $string['pagenotfound'], $msg, $string['pagenotfound'], '../artwork/page_not_found.png', '#C00000', true, true); } if (isset($_POST['submit'])) { if ($_POST['note_id'] == '' or $_POST['note_id'] == '0') { PaperNotes::add_note($_POST['note'], $paperID, $userObject->get_user_ID(), $mysqli); } else { PaperNotes::update_note($_POST['note'], $_POST['note_id'], $mysqli); } ?> <!DOCTYPE html> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="content-type" content="text/html;charset=<?php echo $configObject->get('cfg_page_charset'); ?> " /> <title><?php echo $string['note'];