mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
fixing broken headers
This commit is contained in:
parent
b9dba084ea
commit
b263e53907
7 changed files with 76 additions and 32 deletions
|
@ -28,8 +28,12 @@ require_once('grade_export_ods.php');
|
|||
$id = required_param('id', PARAM_INT); // course id
|
||||
$course = get_record('course', 'id', $id);
|
||||
$feedback = optional_param('feedback', '', PARAM_ALPHA);
|
||||
$action = 'exportods';
|
||||
print_header($course->shortname.': '.get_string('grades'), $course->fullname, grade_nav($course, $action));
|
||||
$strgrades = get_string('grades', 'grades');
|
||||
$actionstr = get_string('exportods', 'grades');
|
||||
$gradenav = "<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a>";
|
||||
$gradenav .= " -> <a href=\"$CFG->wwwroot/grade/index.php?id=$course->id\">$strgrades</a>";
|
||||
$gradenav .= " -> $actionstr";
|
||||
print_header($course->shortname.': '.get_string('grades'), $course->fullname, $gradenav);
|
||||
// process post information
|
||||
if (($data = data_submitted()) && confirm_sesskey()) {
|
||||
|
||||
|
|
|
@ -28,8 +28,12 @@ require_once('grade_export_txt.php');
|
|||
$id = required_param('id', PARAM_INT); // course id
|
||||
$feedback = optional_param('feedback', '', PARAM_ALPHA);
|
||||
$course = get_record('course', 'id', $id);
|
||||
$action = 'exporttxt'; // for printing header
|
||||
print_header($course->shortname.': '.get_string('grades'), $course->fullname, grade_nav($course, $action));
|
||||
$strgrades = get_string('grades', 'grades');
|
||||
$actionstr = get_string('exporttxt', 'grades');
|
||||
$gradenav = "<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a>";
|
||||
$gradenav .= " -> <a href=\"$CFG->wwwroot/grade/index.php?id=$course->id\">$strgrades</a>";
|
||||
$gradenav .= " -> $actionstr";
|
||||
print_header($course->shortname.': '.get_string('grades'), $course->fullname, $gradenav);
|
||||
|
||||
// process post information
|
||||
if (($data = data_submitted()) && confirm_sesskey()) {
|
||||
|
|
|
@ -29,8 +29,12 @@ $id = required_param('id', PARAM_INT); // course id
|
|||
$course = get_record('course', 'id', $id);
|
||||
$feedback = optional_param('feedback', '', PARAM_ALPHA);
|
||||
|
||||
$action = 'exporttxt';
|
||||
print_header($course->shortname.': '.get_string('grades'), $course->fullname, grade_nav($course, $action));
|
||||
$strgrades = get_string('grades', 'grades');
|
||||
$actionstr = get_string('exportxls', 'grades');
|
||||
$gradenav = "<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a>";
|
||||
$gradenav .= " -> <a href=\"$CFG->wwwroot/grade/index.php?id=$course->id\">$strgrades</a>";
|
||||
$gradenav .= " -> $actionstr";
|
||||
print_header($course->shortname.': '.get_string('grades'), $course->fullname, $gradenav);
|
||||
|
||||
// process post information
|
||||
if (($data = data_submitted()) && confirm_sesskey()) {
|
||||
|
|
|
@ -29,8 +29,12 @@ $id = required_param('id', PARAM_INT); // course id
|
|||
$course = get_record('course', 'id', $id);
|
||||
$feedback = optional_param('feedback', '', PARAM_ALPHA);
|
||||
|
||||
$action = 'exportxml';
|
||||
print_header($course->shortname.': '.get_string('grades'), $course->fullname, grade_nav($course, $action));
|
||||
$strgrades = get_string('grades', 'grades');
|
||||
$actionstr = get_string('exportxml', 'grades');
|
||||
$gradenav = "<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a>";
|
||||
$gradenav .= " -> <a href=\"$CFG->wwwroot/grade/index.php?id=$course->id\">$strgrades</a>";
|
||||
$gradenav .= " -> $actionstr";
|
||||
print_header($course->shortname.': '.get_string('grades'), $course->fullname, $gradenav);
|
||||
|
||||
// process post information
|
||||
if (($data = data_submitted()) && confirm_sesskey()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue