"; // DISPLAYING THE ROLES LIST if (api_get_setting('group_roles') == 'true') { // the list of the roles for the user echo ''.get_lang('GroupRoles').'
'; $current_group_course_roles = get_roles('group', $group_id); $current_group_platform_roles = get_roles('group', $group_id, 'platform'); display_role_list($current_group_course_roles, $current_group_platform_roles); echo '
'; } // DISPLAYING THE MATRIX (group permissions) echo "\n"; // the header echo "\t\n"; echo "\t\t\n"; foreach ($header_array as $header_key => $header_value) { echo "\t\t\n"; } echo "\t\n"; // the main area with the checkboxes or images foreach ($tool_rights as $tool => $rights) // $tool_rights contains all the possible tools and their rights { echo "\t\n"; echo "\t\t\n"; foreach ($header_array as $key => $value) { echo "\t\t\n"; } echo "\t\n"; } echo "
".get_lang('Module')."".get_lang($header_value)."
\n"; echo get_lang($tool); echo "\t\t\n"; if (in_array($value, $rights)) { if ($setting_visualisation == 'checkbox') { //display_checkbox_matrix($current_group_permissions, $tool, $value); display_checkbox_matrix( $current_group_permissions, $tool, $value, $inherited_permissions, $course_admin ); } if ($setting_visualisation == 'image') { //display_image_matrix($current_group_permissions, $tool, $value); display_image_matrix( $current_group_permissions, $tool, $value, $inherited_permissions, $course_admin ); } } // note: in a later stage this part will be replaced by a function // so that we can easily switch between a checkbox approach or an image approach // where every click is in fact a change of status. In the checkbox approach you first have to // do the changes and then store them by clicking the submit button. echo "\t\t
\n"; if ($setting_visualisation == 'checkbox') { echo ""; } echo ""; // LEGEND echo ''.get_lang('Legend').'
'; echo ' '.get_lang('UserHasPermissionNot').'
'; echo ' '.get_lang('UserHasPermission').'
'; echo ' '.get_lang('UserHasPermissionByRoleGroup').'
';