$course = get_record('course', 'id', $id);
$feedback = optional_param('feedback', '', PARAM_ALPHA);
$strgrades = get_string('grades', 'grades');
-$actionstr = get_string('exportods', 'grades');
+$actionstr = get_string('modulename', 'gradeexport_ods');
$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_gradeitem_selections($id);
print_footer();
-?>
\ No newline at end of file
+?>
$feedback = optional_param('feedback', '', PARAM_ALPHA);
$course = get_record('course', 'id', $id);
$strgrades = get_string('grades', 'grades');
-$actionstr = get_string('exporttxt', 'grades');
+$actionstr = get_string('modulename', 'gradeexport_txt');
$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";
$mform->display();
print_footer();
-?>
\ No newline at end of file
+?>
$feedback = optional_param('feedback', '', PARAM_ALPHA);
$strgrades = get_string('grades', 'grades');
-$actionstr = get_string('exportxls', 'grades');
+$actionstr = get_string('modulename', 'gradeexport_xls');
$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_gradeitem_selections($id);
print_footer();
-?>
\ No newline at end of file
+?>
$feedback = optional_param('feedback', '', PARAM_ALPHA);
$strgrades = get_string('grades', 'grades');
-$actionstr = get_string('exportxml', 'grades');
+$actionstr = get_string('modulename', 'gradeexport_xml');
$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_gradeitem_selections($id);
print_footer();
-?>
\ No newline at end of file
+?>
if ($active_type == 'report' and $active_plugin == $plugin ) {
$active = $url;
}
- $reportnames[$url] = get_string('modulename', 'gradereport_'.$plugin);
+ $reportnames[$url] = get_string('modulename', 'gradereport_'.$plugin, NULL, $CFG->dirroot.'/grade/report/'.$plugin.'lang/');
}
asort($reportnames);
}
}
/// standard import plugins
- if ($imports = get_list_of_plugins('grade/import', 'CVS')) { // Get all installed reports
+ if ($imports = get_list_of_plugins('grade/import', 'CVS')) { // Get all installed import plugins
foreach ($imports as $key => $plugin) { // Remove ones we can't see
if (!has_capability('gradeimport/'.$plugin.':view', $context)) {
unset($imports[$key]);
if ($active_type == 'impot' and $active_plugin == $plugin ) {
$active = $url;
}
- $importnames[$url] = get_string('modulename', 'gradeimport_'.$plugin);
+ $importnames[$url] = get_string('modulename', 'gradeimport_'.$plugin, NULL, $CFG->dirroot.'/grade/import/'.$plugin.'lang/');
}
asort($importnames);
}
}
/// standard export plugins
- if ($exports = get_list_of_plugins('grade/export', 'CVS')) { // Get all installed reports
+ if ($exports = get_list_of_plugins('grade/export', 'CVS')) { // Get all installed export plugins
foreach ($exports as $key => $plugin) { // Remove ones we can't see
if (!has_capability('gradeexport/'.$plugin.':view', $context)) {
unset($exports[$key]);
if ($active_type == 'impot' and $active_plugin == $plugin ) {
$active = $url;
}
- $exportnames[$url] = get_string('modulename', 'gradeexport_'.$plugin);
+ $exportnames[$url] = get_string('modulename', 'gradeexport_'.$plugin, NULL, $CFG->dirroot.'/grade/export/'.$plugin.'lang/');
}
asort($exportnames);
}
return $url;
}
}
-?>
\ No newline at end of file
+?>
return false;
}
-print_heading('Grader Report');
-
// Add tabs
$currenttab = 'graderreport';
include('tabs.php');
set_time_limit(0);
require_once '../../../config.php';
require_once $CFG->libdir . '/gradelib.php';
+require_once '../../lib.php';
$courseid = required_param('id', PARAM_INT);
}
$strgrades = get_string('grades');
-$strgraderreport = get_string('graderreport', 'grades');
+$strgraderreport = get_string('modulename', 'gradereport_grader');
$strgradepreferences = get_string('gradepreferences', 'grades');
$navlinks = array();
print_header_simple($strgrades.': '.$strgraderreport . ': ' . $strgradepreferences,': '.$strgradepreferences, $navigation,
'', '', true, '', navmenu($course));
-print_heading(get_string('preferences'));
+
+/// Print the plugin selector at the top
+print_grade_plugin_selector($course->id, 'report', 'grader');
+
// Add tabs
$currenttab = 'preferences';
include('tabs.php');
$row = $tabs = array();
$row[] = new tabobject('graderreport',
$CFG->wwwroot.'/grade/report.php?id='.$courseid.'&report=grader',
- get_string('graderreport', 'grades'));
+ get_string('modulename', 'gradereport_grader'));
$row[] = new tabobject('preferences',
$CFG->wwwroot.'/grade/report/grader/preferences.php?id='.$courseid,
$gradesum = 0;
// print the page
-print_heading(get_string('userreport', 'grades'). " - ".fullname($report->user));
+print_heading(get_string('modulename', 'gradereport_user'). " - ".fullname($report->user));
if ($report->fill_table()) {
echo $report->print_table(true);
<?PHP // $Id$
-$string['modulename'] = 'Grader';
+$string['modulename'] = 'Grader report';
$string['grader:manage'] = 'Manage the grader report';
$string['grader:view'] = 'View the grader report';
<?PHP // $Id$
-$string['modulename'] = 'User';
+$string['modulename'] = 'User report';
$string['user:view'] = 'View your own grade report';
?>
$string['exceptions'] = 'Exceptions';
$string['excluded'] = 'Excluded';
$string['expand'] = 'Expand Category';
-$string['exportods'] = 'Export ODS';
$string['exportplugins'] = 'Export plugins';
-$string['exporttxt'] = 'Export TXT';
-$string['exportxml'] = 'Export XML';
$string['extracredit'] = 'Extra Credit';
$string['extracreditwarning'] = 'Note: Setting all items for a category to extra credit will effectively remove them from the grade calculation. Since there will be no point total';
$string['feedback'] = 'Feedback';
$string['gradepreferences'] = 'Grade Preferences';
$string['gradepreferenceshelp'] = 'Grade Preferences Help';
$string['grades'] = 'Grades';
-$string['gradereports'] = 'Grades report';
-$string['graderreport'] = 'Grader report';
$string['gradetype'] = 'Grade type';
$string['gradeview'] = 'View Grade';
$string['gradeweighthelp'] = 'Grade Weight Help';
$string['usenoscale'] = 'Use no scale';
$string['usepercent'] = 'Use Percent';
$string['userpreferences'] = 'User preferences';
-$string['userreport'] = 'User grade report';
$string['useweighted'] = 'Use Weighted';
$string['viewbygroup'] = 'Group';
$string['viewgrades'] = 'View Grades';