From 2377be335a87b993e7be6c857660f0747473f7d2 Mon Sep 17 00:00:00 2001 From: Farhan Karmali Date: Wed, 7 Feb 2018 12:03:41 +0530 Subject: [PATCH] MDL-61183 user: Added total participants count on paricipants page --- lang/en/moodle.php | 1 + user/index.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lang/en/moodle.php b/lang/en/moodle.php index 8d286cabfeb..e947138d89a 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -1477,6 +1477,7 @@ $string['parentcategory'] = 'Parent category'; $string['parentcoursenotfound'] = 'Parent course not found!'; $string['parentfolder'] = 'Parent folder'; $string['participants'] = 'Participants'; +$string['participantscount'] = 'Number of participants: {$a}'; $string['participantslist'] = 'Participants list'; $string['participationratio'] = 'Participation ratio'; $string['participationreport'] = 'Participation report'; diff --git a/user/index.php b/user/index.php index af2f71e9240..1ee8596ea83 100644 --- a/user/index.php +++ b/user/index.php @@ -234,6 +234,8 @@ $participanttable->out($perpage, true); $participanttablehtml = ob_get_contents(); ob_end_clean(); +echo html_writer::tag('p', get_string('participantscount', 'moodle', $participanttable->totalrows)); + if ($bulkoperations) { echo '
'; echo '
';