Ejemplo n.º 1
0
    echo '<Cell ss:StyleID="s23"><Data ss:Type="String">' . $string['meanmark'] . '</Data></Cell>';
    echo '<Cell><Data ss:Type="Number">' . $stats['mean_mark'] . '</Data></Cell>';
    echo '</Row>';
} elseif ($marking == '1') {
    echo '<Row>';
    echo '<Cell ss:StyleID="s23"><Data ss:Type="String">' . $string['randommark'] . '</Data></Cell>';
    echo '<Cell><Data ss:Type="Number">' . number_format($report->get_total_random_mark(), 2, '.', ',') . '</Data></Cell>';
    echo '</Row>';
    echo '<Row>';
    echo '<Cell ss:StyleID="s23"><Data ss:Type="String">' . $string['meanmark'] . '</Data></Cell>';
    echo '<Cell><Data ss:Type="Number">' . $stats['mean_mark'] . '</Data></Cell>';
    echo '</Row>';
} else {
    echo '<Row>';
    echo '<Cell ss:StyleID="s23"><Data ss:Type="String">' . $string['ss'] . '</Data></Cell>';
    echo '<Cell ss:StyleID="s69"><Data ss:Type="Number">' . $report->get_ss_pass() / 100 . '</Data></Cell>';
    echo '</Row>';
    echo '<Row>';
    echo '<Cell ss:StyleID="s23"><Data ss:Type="String">' . $string['ssdistinction'] . '</Data></Cell>';
    echo '<Cell ss:StyleID="s69"><Data ss:Type="Number">' . $report->get_ss_hon() / 100 . '</Data></Cell>';
    echo '</Row>';
    echo '<Row>';
    echo '<Cell ss:StyleID="s23"><Data ss:Type="String">' . $string['meanmark'] . '</Data></Cell>';
    echo '<Cell><Data ss:Type="Number">' . $stats['mean_mark'] . '</Data></Cell>';
    echo '</Row>';
}
echo '<Row>';
echo '<Cell ss:StyleID="s23"><Data ss:Type="String">' . $string['medianmark'] . '</Data></Cell>';
echo '<Cell><Data ss:Type="Number">' . $stats['median_mark'] . '</Data></Cell>';
echo '</Row>';
if ($stats['completed_no'] == 1) {
Ejemplo n.º 2
0
$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';
    } else {
        $marking_label = 'adjusted%';
Ejemplo n.º 3
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);
if (isset($_GET['recache']) and $_GET['recache'] == '1') {
    $report->compile_report(true);
    // Force a re-cache
} else {
    $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 = $report->get_user_no();
if ($paper_type == '2' and $propertyObj->unmarked_enhancedcalc() and !$propertyObj->is_active() or $paper_type == '1' and $report->unmarked_enhancedcalc()) {
    // Only mark calculation questions when the exam is not active.
    ?>
<!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');
    ?>
" />