} $logtype = $_POST["logtype{$i}"]; $log_id = $_POST["log_id{$i}"]; $result = $mysqli->prepare("UPDATE log{$logtype} SET mark = ?, adjmark = ? WHERE id = ?"); $result->bind_param('ddi', $tmp_mark, $tmp_mark, $log_id); $result->execute(); $result->close(); } header("location: ../reports/textbox_select_q.php?action=finalise&paperID={$paperID}&startdate=" . $_POST['startdate'] . "&enddate=" . $_POST['enddate'] . "&module=" . $_GET['module'] . "&folder=" . $_GET['folder'] . "&repcourse=" . $_GET['repcourse']); exit; } else { $q_id = check_var('q_id', 'GET', true, false, true); $startdate = check_var('startdate', 'GET', true, false, true); $enddate = check_var('enddate', 'GET', true, false, true); // Check the question exists. if (!QuestionUtils::question_exists($q_id, $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); } $primary_marks = load_marks($paperID, $q_id, 1, $mysqli); $secondary_marks = load_marks($paperID, $q_id, 2, $mysqli); $marks_correct = load_question_mark($q_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'); ?> " />
*/ require '../include/staff_auth.inc'; require '../include/errors.inc'; require '../include/media.inc'; require '../classes/dateutils.class.php'; require_once '../classes/questionutils.class.php'; require_once '../classes/paperutils.class.php'; require_once '../classes/logger.class.php'; require_once '../classes/question_status.class.php'; require_once '../classes/paperproperties.class.php'; require_once '../include/mapping.inc'; require_once '../classes/mappingutils.class.php'; require_once '../classes/moduleutils.class.php'; require_once '../classes/questionbank.class.php'; check_var('q_id', 'GET', true, false, false); if (!QuestionUtils::question_exists(substr($_GET['q_id'], 1), $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($_GET['type']) and $_GET['type'] == 'objective') { $module_code = module_utils::get_moduleid_from_id($_GET['module'], $mysqli); $qbank = new QuestionBank($_GET['module'], $module_code, $string, $notice, $mysqli); $map_outcomes = true; } else { $map_outcomes = false; } if (!isset($_POST['submit'])) { ?> <!DOCTYPE html> <html style="margin:0px; width:100%; height:100%;"> <head>