mirror of
https://github.com/moodle/moodle.git
synced 2025-07-25 00:02:18 +02:00
46 lines
2.3 KiB
PHP
46 lines
2.3 KiB
PHP
<?php // $Id$
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
// //
|
|
// NOTICE OF COPYRIGHT //
|
|
// //
|
|
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
|
|
// http://moodle.com //
|
|
// //
|
|
// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
|
|
// //
|
|
// This program is free software; you can redistribute it and/or modify //
|
|
// it under the terms of the GNU General Public License as published by //
|
|
// the Free Software Foundation; either version 2 of the License, or //
|
|
// (at your option) any later version. //
|
|
// //
|
|
// This program is distributed in the hope that it will be useful, //
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
|
// GNU General Public License for more details: //
|
|
// //
|
|
// http://www.gnu.org/copyleft/gpl.html //
|
|
// //
|
|
///////////////////////////////////////////////////////////////////////////
|
|
$row = $tabs = array();
|
|
|
|
$coursecontext = get_context_instance(CONTEXT_COURSE, $courseid);
|
|
|
|
$row[] = new tabobject('courseoutcomes',
|
|
$CFG->wwwroot.'/grade/edit/outcome/course.php?id='.$courseid,
|
|
get_string('outcomescourse', 'grades'));
|
|
|
|
if (has_capability('moodle/grade:manage', $context)) {
|
|
$row[] = new tabobject('outcomes',
|
|
$CFG->wwwroot.'/grade/edit/outcome/index.php?id='.$courseid,
|
|
get_string('editoutcomes', 'grades'));
|
|
}
|
|
|
|
$tabs[] = $row;
|
|
|
|
echo '<div class="outcomedisplay">';
|
|
print_tabs($tabs, $currenttab);
|
|
echo '</div>';
|
|
|
|
?>
|