"; // --------------------------------------------------- // DISPLAYING THE ROLES LIST // --------------------------------------------------- if (api_get_setting('user_roles') == 'true') { // the list of the roles for the user echo ''.get_lang('User roles').'
'; $current_user_course_roles = get_roles('user', $user_id); $current_user_platform_roles = get_roles('user', $user_id, 'platform'); display_role_list($current_user_course_roles, $current_user_platform_roles); echo '
'; } // --------------------------------------------------- // DISPLAYING THE MATRIX (user permissions) // --------------------------------------------------- echo "\n"; // the header echo "\t\n"; echo "\t\t\n"; echo "\t\t\n"; echo "\t\t\n"; echo "\t\t\n"; echo "\t\n"; // Subheader echo "\t\n"; echo "\t\t\n"; echo "\t\t\n"; echo "\t\t\n"; echo "\t\t\n"; echo "\t\t\n"; echo "\t\t\n"; echo "\t\t\n"; echo "\t\t\n"; echo "\t\t\n"; echo "\t\t\n"; echo "\t\n"; // the main area with the checkboxes or images foreach ($blog_users as $user_id => $user_name) { // $blog_users contains all the users in this blog // --------------------------------------------------- // RETRIEVING THE PERMISSIONS OF THE USER // --------------------------------------------------- $current_user_permissions = []; $current_user_permissions = get_permissions('user', $user_id); echo "\t\n"; echo "\t\t\n"; foreach ($rights_full as $key => $value) { echo "\t\t\n"; } echo "\t\n"; } echo "
".get_lang('Module')."".get_lang('Tasks manager')."".get_lang('Comment manager')."".get_lang('Project manager')."
".get_lang('Add')."".get_lang('Delete')."".get_lang('Edit')."".get_lang('Rate')."".get_lang('Add')."".get_lang('Delete')."".get_lang('Rate')."".get_lang('Tasks')."".get_lang('Members')."".get_lang('Roles')."
\n"; echo $user_name; echo "\t\t\n"; if (in_array($value, $rights_blog)) { display_image_matrix_for_blogs( $current_user_permissions, $user_id, 'BLOG_'.$blog_id, $value, (isset($inherited_permissions) ? $inherited_permissions : null), (isset($course_admin) ? $course_admin : null) ); } // 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"; echo "
"; // LEGEND echo ''.get_lang('Legend').'
'; echo ' '.get_lang('The user hasn\'t rights').'
'; echo ' '.get_lang('The user has rights').'
'; echo ' '.get_lang('The user has rightsByRoleGroup').'
';