ÿØÿà JFIF    ÿÛ „  ( %"1!%)+...383,7(-.+  -+++--++++---+-+-----+---------------+---+-++7-----ÿÀ  ß â" ÿÄ     ÿÄ H    !1AQaq"‘¡2B±ÁÑð#R“Ò Tbr‚²á3csƒ’ÂñDS¢³$CÿÄ   ÿÄ %  !1AQa"23‘ÿÚ   ? ôÿ ¨pŸªáÿ —åYõõ\?àÒü©ŠÄï¨pŸªáÿ —åYõõ\?àÓü©ŠÄá 0Ÿªáÿ Ÿå[úƒ ú®ði~TÁbqÐ8OÕpÿ ƒOò¤Oè`–RÂáœá™êi€ßÉ< FtŸI“öÌ8úDf´°å}“¾œ6  öFá°y¥jñÇh†ˆ¢ã/ÃÐ:ªcÈ "Y¡ðÑl>ÿ ”ÏËte:qž\oäŠe÷󲍷˜HT4&ÿ ÓÐü6ö®¿øþßèô Ÿ•7Ñi’•j|“ñì>b…þS?*Óôÿ ÓÐü*h¥£ír¶ü UãS炟[AÐaè[ûª•õ&õj?†Éö+EzP—WeÒírJFt ‘BŒ†Ï‡%#tE Øz ¥OÛ«!1›üä±Í™%ºÍãö]°î(–:@<‹ŒÊö×òÆt¦ãº+‡¦%ÌÁ²h´OƒJŒtMÜ>ÀÜÊw3Y´•牋4ǍýʏTì>œú=Íwhyë,¾Ôò×õ¿ßÊa»«þˆѪQ|%6ž™A õ%:øj<>É—ÿ Å_ˆCbõ¥š±ý¯Ýƒï…¶|RëócÍf溪“t.СøTÿ *Ä¿-{†çàczůŽ_–^XþŒ±miB[X±d 1,é”zEù»& î9gœf™9Ð'.;—™i}!ôšåîqêÛ٤ёý£½ÆA–àôe"A$˝Úsäÿ ÷Û #°xŸëí(l »ý3—¥5m! rt`†0~'j2(]S¦¦kv,ÚÇ l¦øJA£Šƒ J3E8ÙiŽ:cÉžúeZ°€¯\®kÖ(79«Ž:¯X”¾³Š&¡* ….‰Ž(ÜíŸ2¥ª‡×Hi²TF¤ò[¨íÈRëÉ䢍mgÑ.Ÿ<öäS0í„ǹÁU´f#Vß;Õ–…P@3ío<ä-±»Ž.L|kªÀê›fÂ6@»eu‚|ÓaÞÆŸ…¨ááå>åŠ?cKü6ùTÍÆ”†sĤÚ;H2RÚ†õ\Ö·Ÿn'¾ ñ#ºI¤Å´%çÁ­‚â7›‹qT3Iï¨ÖÚ5I7Ë!ÅOóŸ¶øÝñØôת¦$Tcö‘[«Ö³šÒ';Aþ ¸èíg A2Z"i¸vdÄ÷.iõ®§)¿]¤À†–‡É&ä{V¶iŽ”.Ó×Õÿ û?h¬Mt–íª[ÿ Ñÿ ÌV(í}=ibÔ¡›¥¢±b Lô¥‡piη_Z<‡z§èŒ)iÖwiÇ 2hÙ3·=’d÷8éŽ1¦¸c¤µ€7›7Ø ð\á)} ¹fËí›pAÃL%âc2 í§æQz¿;T8sæ°qø)QFMð‰XŒÂ±N¢aF¨…8¯!U  Z©RÊ ÖPVÄÀÍin™Ì-GˆªÅËŠ›•zË}º±ŽÍFò¹}Uw×#ä5B¤{î}Ð<ÙD é©¤&‡ïDbàÁôMÁ.. /** * Add/remove group from grouping. * * @copyright 1999 Martin Dougiamas http://dougiamas.com * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @package core_group */ require_once('../config.php'); require_once('lib.php'); $groupingid = required_param('id', PARAM_INT); $PAGE->set_url('/group/assign.php', array('id'=>$groupingid)); if (!$grouping = $DB->get_record('groupings', array('id'=>$groupingid))) { throw new \moodle_exception('invalidgroupid'); } if (!$course = $DB->get_record('course', array('id'=>$grouping->courseid))) { throw new \moodle_exception('invalidcourse'); } $courseid = $course->id; require_login($course); $context = context_course::instance($courseid); require_capability('moodle/course:managegroups', $context); $returnurl = $CFG->wwwroot.'/group/groupings.php?id='.$courseid; if ($frm = data_submitted() and confirm_sesskey()) { if (isset($frm->cancel)) { redirect($returnurl); } else if (isset($frm->add) and !empty($frm->addselect)) { foreach ($frm->addselect as $groupid) { // Ask this method not to purge the cache, we'll do it ourselves afterwards. groups_assign_grouping($grouping->id, (int)$groupid, null, false); } // Invalidate the course groups cache seeing as we've changed it. cache_helper::invalidate_by_definition('core', 'groupdata', array(), array($courseid)); // Invalidate the user_group_groupings cache, too. cache_helper::purge_by_definition('core', 'user_group_groupings'); } else if (isset($frm->remove) and !empty($frm->removeselect)) { foreach ($frm->removeselect as $groupid) { // Ask this method not to purge the cache, we'll do it ourselves afterwards. groups_unassign_grouping($grouping->id, (int)$groupid, false); } // Invalidate the course groups cache seeing as we've changed it. cache_helper::invalidate_by_definition('core', 'groupdata', array(), array($courseid)); // Invalidate the user_group_groupings cache, too. cache_helper::purge_by_definition('core', 'user_group_groupings'); } } $currentmembers = array(); $potentialmembers = array(); if ($groups = $DB->get_records('groups', array('courseid'=>$courseid), 'name')) { if ($assignment = $DB->get_records('groupings_groups', array('groupingid'=>$grouping->id))) { foreach ($assignment as $ass) { $currentmembers[$ass->groupid] = $groups[$ass->groupid]; unset($groups[$ass->groupid]); } } $potentialmembers = $groups; } $currentmembersoptions = ''; $currentmemberscount = 0; if ($currentmembers) { foreach($currentmembers as $group) { $currentmembersoptions .= ''; $currentmemberscount ++; } // Get course managers so they can be highlighted in the list if ($managerroles = get_config('', 'coursecontact')) { $coursecontactroles = explode(',', $managerroles); foreach ($coursecontactroles as $roleid) { $role = $DB->get_record('role', array('id'=>$roleid)); $managers = get_role_users($roleid, $context, true, 'u.id', 'u.id ASC'); } } } else { $currentmembersoptions .= ''; } $potentialmembersoptions = ''; $potentialmemberscount = 0; if ($potentialmembers) { foreach($potentialmembers as $group) { $potentialmembersoptions .= ''; $potentialmemberscount ++; } } else { $potentialmembersoptions .= ''; } // Print the page and form $strgroups = get_string('groups'); $strparticipants = get_string('participants'); $straddgroupstogroupings = get_string('addgroupstogroupings', 'group'); $groupingname = format_string($grouping->name); navigation_node::override_active_url(new moodle_url('/group/index.php', array('id'=>$course->id))); $PAGE->set_pagelayout('admin'); $PAGE->navbar->add($strparticipants, new moodle_url('/user/index.php', array('id'=>$courseid))); $PAGE->navbar->add(get_string('groupings', 'group'), new moodle_url('/group/groupings.php', ['id' => $courseid])); $PAGE->navbar->add($straddgroupstogroupings); /// Print header $PAGE->set_title("$course->shortname: $strgroups"); $PAGE->set_heading($course->fullname); echo $OUTPUT->header(); ?>


footer();