Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 42... Línea 42...
42
if (empty($CFG->enableoutcomes)) {
42
if (empty($CFG->enableoutcomes)) {
43
    redirect(course_get_url($course), get_string('outcomesdisabled', 'core_grades'));
43
    redirect(course_get_url($course), get_string('outcomesdisabled', 'core_grades'));
44
}
44
}
Línea 45... Línea 45...
45
 
45
 
-
 
46
// First make sure we have proper final grades.
-
 
47
$regradetask = \core_course\task\regrade_final_grades::create($courseid);
-
 
48
$indicatormessage = get_string('recalculatinggradesadhoc', 'grades');
-
 
49
$indicatorheading = get_string('recalculatinggrades', 'grades');
-
 
50
$taskindicator = new \core\output\task_indicator($regradetask, $indicatorheading, $indicatormessage, $PAGE->url);
46
// First make sure we have proper final grades.
51
if (!$taskindicator->has_task_record()) {
-
 
52
    grade_regrade_final_grades_if_required($course);
Línea 47... Línea 53...
47
grade_regrade_final_grades_if_required($course);
53
}
48
 
54
 
49
// Grab all outcomes used in course.
55
// Grab all outcomes used in course.
Línea 94... Línea 100...
94
            $report_info[$outcomeid]['items'][$itemid]->count = $count;
100
            $report_info[$outcomeid]['items'][$itemid]->count = $count;
95
        }
101
        }
96
    }
102
    }
97
}
103
}
Línea -... Línea 104...
-
 
104
 
-
 
105
print_grade_page_head($courseid, 'report', 'outcomes');
-
 
106
 
-
 
107
if ($taskindicator->has_task_record()) {
-
 
108
    echo $OUTPUT->render($taskindicator);
-
 
109
    echo $OUTPUT->footer();
-
 
110
    exit;
-
 
111
}
98
 
112
 
99
$html = '<table class="generaltable boxaligncenter" width="90%" cellspacing="1" cellpadding="5" summary="Outcomes Report">' . "\n";
113
$html = '<table class="generaltable boxaligncenter" width="90%" cellspacing="1" cellpadding="5" summary="Outcomes Report">' . "\n";
100
$html .= '<tr><th class="header c0" scope="col">' . get_string('outcomeshortname', 'grades') . '</th>';
114
$html .= '<tr><th class="header c0" scope="col">' . get_string('outcomeshortname', 'grades') . '</th>';
101
$html .= '<th class="header c1" scope="col">' . get_string('courseavg', 'grades') . '</th>';
115
$html .= '<th class="header c1" scope="col">' . get_string('courseavg', 'grades') . '</th>';
102
$html .= '<th class="header c2" scope="col">' . get_string('sitewide', 'grades') . '</th>';
116
$html .= '<th class="header c2" scope="col">' . get_string('sitewide', 'grades') . '</th>';
Línea 174... Línea 188...
174
    $row++;
188
    $row++;
175
}
189
}
Línea 176... Línea 190...
176
 
190
 
Línea 177... Línea -...
177
$html .= '</table>';
-
 
178
 
-
 
179
print_grade_page_head($courseid, 'report', 'outcomes');
191
$html .= '</table>';
Línea 180... Línea 192...
180
 
192
 
181
echo $html;
193
echo $html;
182
 
194