Beispiel #1
0
$marking = $propertyObj->get_marking();
$pass_mark = $propertyObj->get_pass_mark();
$distinction_mark = $propertyObj->get_distinction_mark();
$paper_type = $propertyObj->get_paper_type();
$percent = isset($_GET['percent']) ? $_GET['percent'] : 100;
$ordering = isset($_GET['ordering']) ? $_GET['ordering'] : 'asc';
$absent = isset($_GET['absent']) ? $_GET['absent'] : 0;
$sortby = isset($_GET['sortby']) ? $_GET['sortby'] : 'name';
$studentsonly = isset($_GET['studentsonly']) ? $_GET['studentsonly'] : 1;
$repcourse = isset($_GET['repcourse']) ? $_GET['repcourse'] : '%';
$repmodule = isset($_GET['repmodule']) ? $_GET['repmodule'] : '';
$report = new ClassTotals($studentsonly, $percent, $ordering, $absent, $sortby, $userObject, $propertyObj, $startdate, $enddate, $repcourse, $repmodule, $mysqli, $string);
$report->compile_report(false);
$user_results = $report->get_user_results();
$paper_buffer = $report->get_paper_buffer();
$cohort_size = $report->get_cohort_size();
$stats = $report->get_stats();
$ss_pass = $report->get_ss_pass();
$ss_hon = $report->get_ss_hon();
$question_no = $report->get_question_no();
$log_late = $report->get_log_late();
$user_no = count($user_results);
header('Pragma: public');
header("Content-type: application/vnd.ms-excel");
header("Content-Disposition: attachment; filename=" . str_replace(' ', '_', $paper) . "_CT.csv");
$csv = '';
$percent_decimals = $configObject->get('percent_decimals');
if ($cohort_size > 0) {
    if ($marking == '0') {
        $marking_label = '%';
        $marking_key = 'percent';