header(); echo '
' . $OUTPUT->heading(get_string('st_report', 'grades')) . '
'; if (isset($user_role) && $user_role != '' || is_siteadmin()) { if ($user_role == 'student') { require_once $CFG->dirroot . '/statistics/lib/studentstart.php'; echo $out_st; } elseif ($user_role == 'editingteacher') { require_once $CFG->dirroot . '/statistics/lib/teacherstart.php'; echo $out_tr; } elseif ($user_role == 'curator' or is_siteadmin()) { require_once $CFG->dirroot . '/statistics/lib/curatorstart.php'; echo $out_cr; } } else { echo ('' . get_string('no_courses', 'block_am_mycourses') . '
'); } echo $OUTPUT->footer();