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); 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); $interbreadcrumb[] = array ('url' => 'user.php', 'name' => get_lang('Users')); if ($origin != 'learnpath') { //so we are not in learnpath tool Display :: display_header($nameTools, "User"); } else { ?> '; echo ''.Display::return_icon('back.png',get_lang('BackUser')).get_lang('BackUser').''; if (api_is_allowed_to_edit()) { if (!is_numeric($_GET['editMainUserInfo'])) { echo ''.Display::return_icon('edit.gif',get_lang('EditUser')).get_lang('EditUser').''; } else { 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 ''; if ($displayMode == "viewDefEdit") { /*>>>>>>>>>>>> CATEGORIES DEFINITIONS : EDIT <<<<<<<<<<<<*/ $catToEdit = get_cat_def($_GET['editDef']); $edit_heading_form = new FormValidator('edit_heading_form'); $edit_heading_form->addElement('hidden', 'id'); $edit_heading_form->add_textfield('title', get_lang('Title')); $edit_heading_form->addElement('textarea', 'comment', get_lang('Comment'), array ('cols' => 60, 'rows' => 4)); $possible_line_nrs[1] = '1 '.get_lang('Line'); $possible_line_nrs[3] = '3 '.get_lang('Lines'); $possible_line_nrs[5] = '5 '.get_lang('Lines'); $possible_line_nrs[10] = '10 '.get_lang('Lines'); $possible_line_nrs[15] = '15 '.get_lang('Lines'); $edit_heading_form->addElement('select', 'nbline', get_lang('LineNumber'), $possible_line_nrs); $edit_heading_form->addElement('submit', 'submitDef', get_lang('Ok')); $edit_heading_form->setDefaults($catToEdit); $edit_heading_form->display(); } elseif ($displayMode == "viewDefList") { /*>>>>>>>>>>>> CATEGORIES DEFINITIONS : LIST <<<<<<<<<<<<*/ $catList = get_cat_def_list(); if ($catList) { foreach ($catList as $thisCat) { // displays Title and comments 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", "",get_lang('Tutor')," | \n", "",get_lang('CourseManager')," | \n", ($allowedToEditDef?"".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 // deprecated feature if ($mainUserInfo['tutor_id'] == 1) { echo "",get_lang('Tutor')," | \n"; } else { echo "- | \n"; } if ($mainUserInfo['status'] == 1) { echo "",get_lang('CourseManager')," | "; } else { echo "- | \n"; } if ($allowedToEditDef) { 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 "