From: moodler Date: Tue, 29 Apr 2003 12:51:21 +0000 (+0000) Subject: Always print full number of student at the top X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=dc95f4a11bff7df8bac87dc7b2dc68221e2daa9d;p=moodle.git Always print full number of student at the top --- diff --git a/user/index.php b/user/index.php index 7681e77507..df04ead044 100644 --- a/user/index.php +++ b/user/index.php @@ -70,9 +70,10 @@ $numstudentsall = count_records("user_students", "course", $course->id); + echo "

$numstudentsall $course->students

"; + if ($students = get_course_students($course->id, "$dsort $dir $limit")) { $numstudents = count($students); - echo "

$numstudents $course->students

"; if ($numstudents < USER_SMALL_CLASS) { foreach ($students as $student) { print_user($student, $course, $string); @@ -92,7 +93,7 @@ if ($columnsort == $sort) { $$column = $colname["$column"]; } else { - $$column = "id&sort=$columnsort&dir=$columndir&showall=$showall\">".$colname["$column"].""; + $$column = "id&sort=$columnsort&dir=$columndir&showall=$showall\">".$colname["$column"].""; } } @@ -132,10 +133,10 @@ } $table->data[] = array ($picture, - "wwwroot/user/view.php?id=$student->id&course=$course->id\">$student->firstname $student->lastname", - "$student->city", - "$student->country", - "$lastaccess"); + "wwwroot/user/view.php?id=$student->id&course=$course->id\">$student->firstname $student->lastname", + "$student->city", + "$student->country", + "$lastaccess"); } print_table($table); @@ -149,9 +150,9 @@ } if ($CFG->longtimenosee < 500) { - echo "

("; + echo "

("; print_string("unusedaccounts","",$CFG->longtimenosee); - echo ")

"; + echo ")

"; } }