]> git.mjollnir.org Git - moodle.git/commitdiff
Mucking with the formtting
authormoodler <moodler>
Mon, 14 Apr 2003 02:48:40 +0000 (02:48 +0000)
committermoodler <moodler>
Mon, 14 Apr 2003 02:48:40 +0000 (02:48 +0000)
user/index.php

index e847b5377fad6a6f9dc78f1c670069dd98ae1219..40ecea023291bcaa32d128d73910ddb58c1be6b2 100644 (file)
 
         } 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 "<p align=center>".get_string("displayingfirst", "", $a);
-                echo "(<a href=\"index.php?id=$course->id&sort=$sort&dir=$dir&showall=1\">".get_string("showallusers")."</a>)";
-                echo "</p>";
+                $moreinfo->count  = $USER_LARGE_CLASS;
+                $moreinfo->things = strtolower($course->students);
+                echo "<center><p>".get_string("displayingfirst", "", $moreinfo);
+                echo " (<a href=\"index.php?id=$course->id&sort=$sort&dir=$dir&showall=1\">".get_string("showallusers")."</a>)";
+                echo "</p></center>";
             }
             $columns = array("name", "city", "country", "lastaccess");
 
             }
             print_table($table);
 
+            if ($numstudents > $USER_LARGE_CLASS and $showall == "0") {
+                echo "<center><p>";
+                echo "<a href=\"index.php?id=$course->id&sort=$sort&dir=$dir&showall=1\">".get_string("showallusers")."</a>";
+                echo "</p></center>";
+            }
+
         }
         if ($CFG->longtimenosee < 500) {
             echo "<CENTER><P><FONT SIZE=1>(";