]> git.mjollnir.org Git - moodle.git/commitdiff
Slight improvement to groups listing. I'm not happy with it though.
authormoodler <moodler>
Fri, 6 Feb 2004 17:04:09 +0000 (17:04 +0000)
committermoodler <moodler>
Fri, 6 Feb 2004 17:04:09 +0000 (17:04 +0000)
course/groups-summary.html
course/groups.php

index 8304c3a93a0fae01533716bfe435c1921bc81c64..6ea2ba218eb6b485a6a5119d21bc720791c108ca 100644 (file)
@@ -1,14 +1,17 @@
-<table align="center" class="generalbox">
+<table align="center" class="generalbox" width="70%">
  <tr>
-   <td valign="top" width="100"><?php echo $t->picture ?></td>
-   <td><p style="font-size: larger"><?php echo $t->name ?></p>
+   <th colspan="2"><?php echo $t->name ?></th>
+ </tr>
+ <tr>
+   <td valign="top">
+   <p><?php echo $t->picture ?></p>
    <p><?php echo $t->description ?></p>
-   <p><ul><?php 
+   </td>
+   <td align="right">
+   <p style="font-size: x-small"><?php 
       if ($t->users) {
           foreach ($t->users as $user) {
-              echo '<li style="font-size: x-small">';
-              echo "<a href=\"$CFG->wwwroot/user/view.php?id=$user->id&course=$t->courseid\">$user->fullname</a>";
-              echo '</li>';
+              echo "<a href=\"$CFG->wwwroot/user/view.php?id=$user->id&course=$t->courseid\">$user->fullname</a><br />";
           }
       }
       ?>
index 2ac4ca66bb507786217d620b20762268b99474f4..fb72fb707f630f8946297f6a0c5250cd50c3f630 100644 (file)
@@ -56,7 +56,7 @@
             foreach ($groups as $group) {
                 $t = $group;
                 $t->picture = print_group_picture($group, $course->id, true, true, true);
-                if ($t->users = get_users_in_group($group->id)) {
+                if ($t->users = get_users_in_group($group->id, 'u.lastname ASC')) {
                     foreach ($t->users as $key => $user) {
                         $t->users[$key]->fullname = fullname($user, $isteacher);
                     }