enrol MDL-23231 Added total enrolled users count to the overview page heading + title

This commit is contained in:
Sam Hemelryk
2010-07-13 02:42:01 +00:00
parent 5ac851fba1
commit 2c770b7af2
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -210,8 +210,8 @@ foreach ($users as $userid=>&$user) {
}
$table->set_users($users);
$PAGE->set_title($PAGE->course->fullname.': '.get_string('enrolledusers', 'enrol'));
$PAGE->set_heading($PAGE->course->fullname);
$PAGE->set_title($PAGE->course->fullname.': '.get_string('totalenrolledusers', 'enrol', $manager->get_total_users()));
$PAGE->set_heading($PAGE->title);
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('enrolledusers', 'enrol'));
+1
View File
@@ -70,6 +70,7 @@ $string['periodstart'] = 'from {$a}';
$string['periodstartend'] = 'from {$a->start} until {$a->end}';
$string['startdatetoday'] = 'Today';
$string['synced'] = 'Synced';
$string['totalenrolledusers'] = '{$a} enrolled users';
$string['unenrol'] = 'Unenrol';
$string['unenrolconfirm'] = 'Do you really want to unenrol user "{$a->user}" from course "{$a->course}"?';
$string['unenrolme'] = 'Unenrol me from {$a}';