From acf000b0774821a3ed17622354cd5d8ac1d4a2ff Mon Sep 17 00:00:00 2001 From: mattc-catalyst Date: Mon, 24 Sep 2007 21:55:15 +0000 Subject: [PATCH] MDL-11419 - groups: interface enhancements + new features: * Display the grouping a course module belongs to on the course page - for course managers only. * When adding users to groups, display the groups a user already belongs to. * Added an overview report that shows groupings, groups and members for a course. * Added a dialogue to automatically create groups and assign members based on either the number of desired groups or the number of desired users per group. --- course/lib.php | 5 + group/autogroup.php | 160 ++++++++++++++++++++++++ group/autogroup_form.php | 99 +++++++++++++++ group/index.php | 7 ++ group/lib.php | 113 ++++++++++++++++- group/members.php | 100 +++++++++++++-- group/overview.php | 207 +++++++++++++++++++++++++++++++ group/tabs.php | 4 +- lang/en_utf8/group.php | 22 ++++ lib/grouplib.php | 24 +++- theme/standard/styles_fonts.css | 3 + theme/standard/styles_layout.css | 39 ++++++ 12 files changed, 768 insertions(+), 15 deletions(-) create mode 100644 group/autogroup.php create mode 100644 group/autogroup_form.php create mode 100644 group/overview.php diff --git a/course/lib.php b/course/lib.php index 3ad961bc10..197394ac2c 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1343,6 +1343,8 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false, /// Casting $course->modinfo to string prevents one notice when the field is null $modinfo = unserialize((string)$course->modinfo); + + $groupings = groups_get_all_groupings($course->id); //Acccessibility: replace table with list