Ejemplo n.º 1
0
        if ($_GET['userID'] != '') {
            $userID = $_GET['userID'];
        } else {
            display_error($string['idmissing'], $string['idmissing_msg'], false, true, false);
        }
    } else {
        // Student is trying to hack into another students userID on the URL.
        header("HTTP/1.0 404 Not Found");
        $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);
    }
} else {
    $userID = $userObject->get_user_ID();
}
// Get some paper properties
$propertyObj = PaperProperties::get_paper_properties_by_crypt_name($_GET['id'], $mysqli, $string, true);
// Check the feedback has been released !!!
if ($userObject->has_role('Student')) {
    if (!$propertyObj->is_objective_fb_released()) {
        $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['ordering'])) {
    $ordering = 'screen';
    $direction = 'asc';
}
$paperID = $propertyObj->get_property_id();
$paper_title = $propertyObj->get_paper_title();
$paper_type = $propertyObj->get_paper_type();
$session = $propertyObj->get_calendar_year();
Ejemplo n.º 2
0
/**
*
* This screen presents a list of students assigned to a particular cohort.
* You click on the student name of interest and the OSCE station marking
* form comes up.
*
* @author Simon Wilkinson
* @version 1.0
* @copyright Copyright (c) 2014 The University of Nottingham
* @package
*/
require '../include/staff_auth.inc';
require_once '../include/errors.inc';
require_once '../classes/paperproperties.class.php';
$id = check_var('id', 'GET', true, false, true);
$properties = PaperProperties::get_paper_properties_by_crypt_name($id, $mysqli, $string, true);
$paperID = $properties->get_property_id();
$paper_title = $properties->get_paper_title();
$calendar_year = $properties->get_calendar_year();
$modules = $properties->get_modules();
function quick_links()
{
    $html = '';
    $html .= "<table style=\"width:100%; text-align:center\">\n<tr>\n";
    for ($i = 1; $i <= 26; $i++) {
        $html .= "<td class=\"qlink\"><a href=\"#" . chr($i + 64) . "\" class=\"qlink\">" . chr($i + 64) . "</a></td>";
    }
    $html .= "</tr>\n</table>\n";
    return $html;
}
?>