mirror of
https://github.com/moodle/moodle.git
synced 2025-02-22 10:57:20 +01:00
Removed hard coded message strings from scripts and moved them to the language file. Fixed a display bug in multimenu field. Removed rounded help buttons from fields, made the fields use html title to display the descriptions instead.
31 lines
950 B
PHP
Executable File
31 lines
950 B
PHP
Executable File
<?php
|
|
|
|
require_once('../../config.php');
|
|
require_once('lib.php');
|
|
require_once($CFG->libdir.'/blocklib.php');
|
|
|
|
require_once('pagelib.php');
|
|
require_login();
|
|
|
|
if (!isteacher()) {
|
|
error(get_string('errormustbeteacher', 'data'));
|
|
}
|
|
|
|
if (confirm_sesskey()
|
|
&& ($recordid = required_param('recordid',PARAM_INT))
|
|
&& ($d = required_param('d',PARAM_INT))) {
|
|
data_approve_record($recordid);
|
|
}
|
|
|
|
$page=optional_param('page','0',PARAM_INT);
|
|
$rid = optional_param('rid','0', PARAM_INT);
|
|
$search =optional_param('search','',PARAM_ALPHA);
|
|
$sort= optional_param('sort','',PARAM_ALPHA);
|
|
$order=optional_param('order','',PARAM_ALPHA);
|
|
|
|
print_heading(get_string('recordapproved','data'));
|
|
redirect('view.php?d='.$d.'&approved=1&page='.$page.'&rid='.$rid.'&search='.$search.'&sort='.$sort.'&order='.$order.'&');
|
|
|
|
|
|
?>
|