From 7efa3c6bed391b7cb1def75a9ddf837354fc1f52 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 6 Feb 2004 17:04:09 +0000 Subject: [PATCH] Slight improvement to groups listing. I'm not happy with it though. --- course/groups-summary.html | 17 ++++++++++------- course/groups.php | 2 +- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/course/groups-summary.html b/course/groups-summary.html index 8304c3a93a..6ea2ba218e 100644 --- a/course/groups-summary.html +++ b/course/groups-summary.html @@ -1,14 +1,17 @@ - +
- - + + +
picture ?>

name ?>

+
name ?>
+

picture ?>

description ?>

-

    +
+

users) { foreach ($t->users as $user) { - echo '

  • '; - echo "wwwroot/user/view.php?id=$user->id&course=$t->courseid\">$user->fullname"; - echo '
  • '; + echo "wwwroot/user/view.php?id=$user->id&course=$t->courseid\">$user->fullname
    "; } } ?> diff --git a/course/groups.php b/course/groups.php index 2ac4ca66bb..fb72fb707f 100644 --- a/course/groups.php +++ b/course/groups.php @@ -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); } -- 2.39.5