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); $TBL_USERINFO_CONTENT = Database :: get_course_table(TABLE_USER_INFO_CONTENT); if ($tool_info['visibility'] == 1 ) { $interbreadcrumb[] = array ('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')).get_lang('BackUser').''; } else{ echo ''.Display::return_icon('back.png',get_lang('Back')).get_lang('Back').''; } if (!is_numeric($_GET['editMainUserInfo'])) { if (api_get_setting('allow_user_course_subscription_by_course_admin') == 'true') { echo ''.Display::return_icon('edit.gif',get_lang('EditUser')).get_lang('EditUser').''; } } else { if (api_get_setting('allow_user_course_subscription_by_course_admin') == 'true') { echo ''.Display::return_icon('members.gif',get_lang('ViewUser')).get_lang('ViewUser').''; } } echo ''.Display::return_icon('statistics.gif',get_lang('UserStatistics')).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') { echo '".get_lang('Name')." | \n", "".get_lang('Description')." | \n"; if ($current_session_id) { if ($user_info_viewed['status'] == COURSEMANAGER) { echo "".get_lang('Tutor')." | \n"; } } else { if ($user_info_viewed['status'] == STUDENT) { echo "".get_lang('Tutor')." | \n"; } else { echo "".get_lang('CourseManager')." | \n"; } } echo ($allowedToEditDef && api_get_setting('allow_user_course_subscription_by_course_admin') == 'true'?"".get_lang('Edit')." | \n":""), ($is_allowedToTrack?"".get_lang('Tracking')." | \n":""), "|||
".$online.' '.htmlize(api_get_person_name($mainUserInfo['firstName'], $mainUserInfo['lastName']))." | \n", "".htmlize($mainUserInfo['role'])." | "; //DISPLAY TABLE CONTENT if ($current_session_id) { if ($user_info_viewed['status'] == COURSEMANAGER) { if ($is_session_course_coach) { echo "",get_lang('Tutor')," | \n"; } else { echo "- | \n"; } } } else { if ($user_info_viewed['status'] == STUDENT) { if ($mainUserInfo['tutor_id'] == 1) { echo "",get_lang('Tutor')," | \n"; } else { echo "- | \n"; } } else { if ($mainUserInfo['status'] == 1) { echo "",get_lang('CourseManager')," | "; } else { echo "- | \n"; } } } if ($allowedToEditDef && api_get_setting('allow_user_course_subscription_by_course_admin') == 'true') { echo "", "", "", "", " | "; } if ($is_allowedToTrack) { echo "", "", "", "", " | "; } echo "
",$mainUserInfo['email'],"", if (api_get_setting("show_email_addresses") == "true") { echo "
". Display::encrypted_mailto_link($mainUserInfo['email'],$mainUserInfo['email']). "
"; } else { if (api_is_allowed_to_edit()) { echo "". Display::encrypted_mailto_link($mainUserInfo['email'],$mainUserInfo['email']). "
"; } } if (api_get_setting('extended_profile') == 'true') { echo '",$thisCat['title'],"
\n"; // Category content echo "\n"; if ($thisCat['content']) { echo htmlize($thisCat['content'])."\n"; } else { echo "...."; } // Edit command if ($allowedToEditContent) { echo "\n"; } } } // Back button for each display mode (bottom) //echo "\n"; /* FOOTER */ Display :: display_footer();
\n", "", "", "\n"; } echo "