Avoid show gradebook from all courses in a gradebook tool for teacher Student View is enabled - refs BT#12567

The deleted code is old. It showed the gradebook from all courses in the gradebook tool
in one course
In 2a47c02329 (diff-1d631270fe7275a032eddd085533ee73) a part was deleted
pull/2487/head
Angel Fernando Quiroz Campos 9 years ago
parent 47c11fc515
commit ccc929a4b2
  1. 35
      main/gradebook/index.php

@ -113,41 +113,6 @@ if (isset($_GET['isStudentView'])) {
}
}
if ($selectCat > 0 && (isset($_SESSION['studentview']) && $_SESSION['studentview']=='true')) {
} else {
if (empty($selectCat) && (
$_SESSION['studentview']=='studentview') || (isset($_GET['isStudentView']) && $_GET['isStudentView']=='true')
) {
Display :: display_header(get_lang('Gradebook'));
//Introduction tool: student view
Display::display_introduction_section(
TOOL_GRADEBOOK,
array('ToolbarSet' => 'AssessmentsIntroduction')
);
$addparams = array();
$cats = Category:: load(0, null, null, null, null, null, false);
$allcat = $cats[0]->get_subcategories(
$stud_id,
$course_code,
$session_id
);
$alleval = $cats[0]->get_evaluations($stud_id);
$alllink = $cats[0]->get_links($stud_id);
$gradebooktable = new GradebookTable(
$cats[0],
$allcat,
$alleval,
$alllink,
$addparams
);
$gradebooktable->display();
Display:: display_footer();
exit;
}
}
// ACTIONS
//this is called when there is no data for the course admin
if (isset($_GET['createallcategories'])) {

Loading…
Cancel
Save