From: moodler Date: Sat, 10 Jan 2004 16:49:17 +0000 (+0000) Subject: Use the new print_user function for the group X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=548ef30e8b1fe668eb1195f5176dc3fb1178eda3;p=moodle.git Use the new print_user function for the group --- diff --git a/course/group.php b/course/group.php index 2d3ecc0446..feb00ca5da 100644 --- a/course/group.php +++ b/course/group.php @@ -76,21 +76,9 @@ echo '
'; if ($users = get_users_in_group($group->id)) { - $table->align = array('left', 'left'); - $table->width = array('100', '*'); foreach ($users as $user) { - if (!$lastaccess = get_field("user_students", "timeaccess", "userid", $user->id, "course", $course->id)) { - if (!$lastaccess = get_field("user_teachers", "timeaccess", "userid", $user->id, "course", $course->id)) { - $datestring = get_string("never"); - } - } - if ($lastaccess) { - $datestring = userdate($lastaccess)."  (".format_time(time() - $lastaccess).")"; - } - $information = '

'.fullname($user).'

'.get_string("lastaccess").": $datestring"; - $table->data[] = array(print_user_picture($user->id, $course->id, $user->picture, true, true), $information); + print_user($user, $course); } - print_table($table); } else { print_heading(get_string('nousersyet')); }