mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
15 lines
436 B
PHP
Executable File
15 lines
436 B
PHP
Executable File
<?php
|
|
|
|
require_once("../../../config.php");
|
|
require_once($CFG->dirroot.'/grade/export/lib.php');
|
|
require_once('grade_export_xls.php');
|
|
|
|
$id = required_param('id', PARAM_INT); // course id
|
|
$itemids = explode(",", required_param('itemids', PARAM_RAW));
|
|
$feedback = optional_param('feedback', '', PARAM_ALPHA);
|
|
|
|
// print all the exported data here
|
|
$export = new grade_export_xls($id, $itemids);
|
|
$export->print_grades($feedback);
|
|
|
|
?>
|