3 ///////////////////////////////////////////////////////////////////////////
5 // NOTICE OF COPYRIGHT //
7 // Moodle - Modular Object-Oriented Dynamic Learning Environment //
8 // http://moodle.com //
10 // Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
12 // This program is free software; you can redistribute it and/or modify //
13 // it under the terms of the GNU General Public License as published by //
14 // the Free Software Foundation; either version 2 of the License, or //
15 // (at your option) any later version. //
17 // This program is distributed in the hope that it will be useful, //
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
20 // GNU General Public License for more details: //
22 // http://www.gnu.org/copyleft/gpl.html //
24 ///////////////////////////////////////////////////////////////////////////
25 $row = $tabs = array();
27 $row[] = new tabobject('lettersview',
28 $CFG->wwwroot
.'/grade/edit/letter/index.php?id='.$COURSE->id
,
29 get_string('letters', 'grades'));
31 if (has_capability('moodle/grade:manageletters', $context)) {
32 $row[] = new tabobject('lettersedit',
33 $CFG->wwwroot
.'/grade/edit/letter/edit.php?id='.$context->id
,
39 echo '<div class="letterdisplay">';
40 print_tabs($tabs, $currenttab);