-<?php // $Id$
+<?php
///////////////////////////////////////////////////////////////////////////
// //
}
/// Print heading.
- print_heading_with_help($title, 'assignroles');
+ $helpicon = new moodle_help_icon();
+ $helpicon->text = $title;
+ $helpicon->page = 'assignroles';
+ echo $OUTPUT->heading_with_help($helpicon);
if ($roleid) {
/// Show UI for assigning a particular role to users.
-<?php // $Id$
+<?php
///////////////////////////////////////////////////////////////////////////
// //
}
/// Print heading.
- print_heading_with_help($title, 'checkpermissions');
+ $helpicon = new moodle_help_icon();
+ $helpicon->text = $title;
+ $helpicon->page = 'checkpermissions';
+ echo $OUTPUT->heading_with_help($helpicon);
/// If a user has been chosen, show all the permissions for this user.
$reportuser = $userselector->get_selected_user();
-<?php // $Id$
+<?php
///////////////////////////////////////////////////////////////////////////
// //
} else if ($action == 'edit') {
$title = get_string('editingrolex', 'role', $rolenames[$roleid]->localname);
}
- print_heading_with_help($title, 'roles');
+ $helpicon = new moodle_help_icon();
+ $helpicon->text = $title;
+ $helpicon->page = 'roles';
+ echo $OUTPUT->heading_with_help($helpicon);
/// Work out some button labels.
if ($action == 'add' || $action == 'duplicate') {
-<?php // $Id$
+<?php
///////////////////////////////////////////////////////////////////////////
// //
include_once('tabs.php');
}
- print_heading_with_help($title, 'overrides');
+ $helpicon = new moodle_help_icon();
+ $helpicon->text = $title;
+ $helpicon->page = 'overrides';
+ echo $OUTPUT->heading_with_help($helpicon);
if ($roleid) {
/// Show UI for overriding roles.
-<?php // $Id$
+<?php
///////////////////////////////////////////////////////////////////////////
// //
/// Print the header
admin_externalpage_print_header();
-print_heading_with_help($struploadpictures, 'uploadpictures');
+
+$helpicon = new moodle_help_icon();
+$helpicon->text = $struploadpictures;
+$helpicon->page = 'uploadpictures';
+echo $OUTPUT->heading_with_help($helpicon);
$mform = new admin_uploadpicture_form(null, $userfields);
if ($formdata = $mform->get_data()) {
-<?php // $Id$
+<?php
/// Bulk user registration script from a comma separated file
/// Returns list of users with their user ids
} else {
admin_externalpage_print_header();
- print_heading_with_help(get_string('uploadusers'), 'uploadusers3');
+
+ $helpicon = new moodle_help_icon();
+ $helpicon->text = get_string('uploadusers');
+ $helpicon->page = 'uploadusers3';
+ echo $OUTPUT->heading_with_help($helpicon);
+
$mform->display();
echo $OUTPUT->footer();
die;
admin_externalpage_print_header();
/// Print the form
-print_heading_with_help(get_string('uploaduserspreview', 'admin'), 'uploadusers2');
+
+$helpicon = new moodle_help_icon();
+$helpicon->text = get_string('uploaduserspreview', 'admin');
+$helpicon->page = 'uploadusers2';
+echo $OUTPUT->heading_with_help($helpicon);
$ci = 0;
$ri = 0;
function add_selection_all($ufiltering) {
global $SESSION, $DB;
- $guest = get_guest();
+ $guest = get_complete_user_data('username', 'guest');
list($sqlwhere, $params) = $ufiltering->get_sql_filter("id<>:exguest AND deleted <> 1", array('exguest'=>$guest->id));
if ($rs = $DB->get_recordset_select('user', $sqlwhere, $params, 'fullname', 'id,'.$DB->sql_fullname().' AS fullname')) {
global $SESSION, $DB;
// get the SQL filter
- $guest = get_guest();
+ $guest = get_complete_user_data('username', 'guest');
list($sqlwhere, $params) = $ufiltering->get_sql_filter("id<>:exguest AND deleted <> 1", array('exguest'=>$guest->id));
$total = $DB->count_records_select('user', "id<>:exguest AND deleted <> 1", array('exguest'=>$guest->id));