From 15c715211e59a4da163d133926cb8480d04d52b4 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 14 Apr 2003 02:48:40 +0000 Subject: [PATCH] Mucking with the formtting --- user/index.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/user/index.php b/user/index.php index e847b5377f..40ecea0232 100644 --- a/user/index.php +++ b/user/index.php @@ -72,11 +72,11 @@ } else { // Print one big table with abbreviated info if ($numstudents > $USER_LARGE_CLASS and $showall == "0") { - $a->count = $USER_LARGE_CLASS; - $a->things = strtolower($course->students); - echo "

".get_string("displayingfirst", "", $a); - echo "(id&sort=$sort&dir=$dir&showall=1\">".get_string("showallusers").")"; - echo "

"; + $moreinfo->count = $USER_LARGE_CLASS; + $moreinfo->things = strtolower($course->students); + echo "

".get_string("displayingfirst", "", $moreinfo); + echo " (id&sort=$sort&dir=$dir&showall=1\">".get_string("showallusers").")"; + echo "

"; } $columns = array("name", "city", "country", "lastaccess"); @@ -142,6 +142,12 @@ } print_table($table); + if ($numstudents > $USER_LARGE_CLASS and $showall == "0") { + echo "

"; + echo "id&sort=$sort&dir=$dir&showall=1\">".get_string("showallusers").""; + echo "

"; + } + } if ($CFG->longtimenosee < 500) { echo "

("; -- 2.39.5