function show_image(image,width,height) { width = parseInt(width) + 20; height = parseInt(height) + 20; window_x = window.open(image,\'windowX\',\'width=\'+ width + \', height=\'+ height + \'\'); } '; $editMainUserInfo = Security::remove_XSS($_REQUEST['editMainUserInfo']); $uInfo = $editMainUserInfo; $this_section = SECTION_COURSES; $nameTools = get_lang('Users'); api_protect_course_script(true); $tool_info = api_get_tool_information_by_name(TOOL_USER); if (api_is_anonymous()) { api_not_allowed(true); } //prepare variables used in userInfoLib.php functions $TBL_USERINFO_DEF = Database:: get_course_table(TABLE_USER_INFO_DEF); $TBL_USERINFO_CONTENT = Database:: get_course_table(TABLE_USER_INFO_CONTENT); if ($tool_info['visibility'] == 1) { $interbreadcrumb[] = ['url' => 'user.php', 'name' => get_lang('Users')]; } if ($origin != 'learnpath') { //so we are not in learnpath tool Display :: display_header($nameTools, "User"); $origin = Security::remove_XSS($_GET['origin']); } else { ?> '; if ($origin == 'users') { echo ''. Display::return_icon('back.png', get_lang('BackUser'), '', ICON_SIZE_MEDIUM).''; } else { echo ''. Display::return_icon('back.png', get_lang('Back'), '', ICON_SIZE_MEDIUM).''; } if (!is_numeric($_GET['editMainUserInfo'])) { if (api_get_setting('allow_user_course_subscription_by_course_admin') == 'true') { echo ''. Display::return_icon('edit.png', get_lang('EditUser'), '', ICON_SIZE_MEDIUM).get_lang( 'EditUser' ).''; } } else { if (api_get_setting('allow_user_course_subscription_by_course_admin') == 'true') { echo ''. Display::return_icon( 'user.png', get_lang('ViewUser'), '', ICON_SIZE_MEDIUM ).get_lang('ViewUser').''; } } echo ''.Display::return_icon('statistics.png', get_lang('UserStatistics'), '', ICON_SIZE_MEDIUM).get_lang('UserStatistics').''; echo ''; } else { if ($tool_info['visibility'] == 1) { echo '
", "".htmlize($thisCat['title'])."
\n", "".htmlize($thisCat['comment'])."\n", "
\n", "\n"; for ($i = 1; $i <= $thisCat['nbline']; $i++) { echo "\n"; // displays commands echo "", "", "", "", "", "", "", "", "", "", "", "\n"; } // end for each } // end if ($catList) echo "
__________________________________________\n"; } echo "\n", "
".Display:: encrypted_mailto_link($mainUserInfo['email'], $mainUserInfo['email'])."
"; } if (api_get_setting('extended_profile') == 'true') { if (!empty($mainUserInfo['competences'])) { echo '".get_lang('Name')." | \n", "".get_lang('Description')." | \n", "", get_lang('OfficialCode'), " | \n"; echo "||
".$online.' '.htmlize(api_get_person_name($mainUserInfo['firstName'], $mainUserInfo['lastName']))." | \n", "", $mainUserInfo['official_code'], " | "; // DISPLAY TABLE CONTENT if ($current_session_id) { if ($user_info_viewed['status'] == COURSEMANAGER) { echo "- | \n"; } } else { if ($user_info_viewed['status'] == STUDENT) { echo "- | \n"; } else { echo "- | \n"; } } echo "
".Display::encrypted_mailto_link($mainUserInfo['email'], $mainUserInfo['email'])."
"; } if (api_get_setting('extended_profile') == 'true') { if (!empty($mainUserInfo['competences'])) { echo '", $thisCat['title'], "
\n"; // Category content echo "\n"; if ($thisCat['content']) { echo htmlize($thisCat['content'])."\n"; } else { echo "...."; } // Edit command if ($allowedToEditContent) { echo "\n"; } } } Display::display_footer();
\n", "", "", "\n"; } echo "