'.get_lang('GotoCourse').''; $course_id=CourseManager::get_course_id_by_database_name($course_db); if (api_is_user_of_course($course_id,api_get_user_id())) { $table_forums = Database :: get_course_table(TABLE_FORUM,$course_db); $table_threads = Database :: get_course_table(TABLE_FORUM_THREAD,$course_db); $table_posts = Database :: get_course_table(TABLE_FORUM_POST,$course_db); $table_item_property = Database :: get_course_table(TABLE_ITEM_PROPERTY,$course_db); $table_users = Database :: get_main_table(TABLE_MAIN_USER); //------Forum messages $forum_result = get_all_post_from_user($user_id, $course_db); $all_result_data = 0; if ($forum_result !='') { api_display_tool_title(get_lang('Forum')); echo '
'; echo api_xml_http_response_encode($forum_result); echo '
'; echo '
'; $all_result_data++; } //------Blog posts $result = get_blog_post_from_user($course_db, $user_id); if (!empty($result)) { echo '

'; api_display_tool_title(api_xml_http_response_encode(get_lang('BlogPosts'))); echo '
'; echo api_xml_http_response_encode($result); echo '
'; echo '
'; $all_result_data++; } //------Blog comments $result = get_blog_comment_from_user($course_db, $user_id); if (!empty($result)) { api_display_tool_title(api_xml_http_response_encode(get_lang('BlogComments'))); echo '
'; echo api_xml_http_response_encode($result); echo '
'; echo '
'; $all_result_data++; } if ($all_result_data == 0) { echo api_xml_http_response_encode(get_lang('NoDataAvailable')); } } else { echo '

'; api_display_tool_title(api_xml_http_response_encode(get_lang('Details'))); echo '
'; echo api_xml_http_response_encode(get_lang('UserNonRegisteredAtTheCourse')); echo '

'; echo '
'; echo '

'; } break; case 'unload_course' : //echo 'load2'; break; default: } } else { // normal behavior $request=api_is_xml_http_request(); $language_variable=api_xml_http_response_encode(get_lang('PersonalData')); //api_display_tool_title($language_variable); echo '
'; echo ''.Display::return_icon('edit.gif',api_xml_http_response_encode(get_lang('EditInformation'))).' '.api_xml_http_response_encode(get_lang('EditInformation')).'  '; if (api_get_setting('allow_social_tool')=='true' && api_get_setting('allow_message_tool')=='true' && api_get_user_id()<>2 && api_get_user_id()<>0) { echo ''.Display::return_icon('shared_profile.png',api_xml_http_response_encode(get_lang('ViewSharedProfile'))).' '.api_xml_http_response_encode(get_lang('ViewSharedProfile')).''; } echo '
'; echo '
'; echo '
'; echo '
'.api_xml_http_response_encode(get_lang('UserName')).'
'. api_xml_http_response_encode($user_info['username']).'
'; if (api_is_western_name_order()) { echo '
'.api_xml_http_response_encode(get_lang('FirstName')).'
'. api_xml_http_response_encode($user_info['firstname']).'
'; echo '
'.api_xml_http_response_encode(get_lang('LastName')).'
'. api_xml_http_response_encode($user_info['lastname']).'
'; } else { echo '
'.api_xml_http_response_encode(get_lang('LastName')).'
'. api_xml_http_response_encode($user_info['lastname']).'
'; echo '
'.api_xml_http_response_encode(get_lang('FirstName')).'
'. api_xml_http_response_encode($user_info['firstname']).'
'; } echo '
'.api_xml_http_response_encode(get_lang('OfficialCode')).'
'. api_xml_http_response_encode($user_info['official_code']).'
'; echo '
'.api_xml_http_response_encode(get_lang('Email')).'
'. api_xml_http_response_encode($user_info['email']).'
'; echo '
'.api_xml_http_response_encode(get_lang('Phone')).'
'. api_xml_http_response_encode($user_info['phone']).'
'; echo '
'; echo '
'; echo '
'; echo ''; echo '
'; /*if (api_get_setting('allow_message_tool')=='true') { require_once api_get_path(LIBRARY_PATH).'message.lib.php'; $number_of_new_messages = MessageManager::get_new_messages(); $number_of_outbox_message=MessageManager::get_number_of_messages_sent(); $cant_out_box=' ('.$number_of_outbox_message.')'; $cant_msg = ' ('.$number_of_new_messages.')'; $number_of_new_messages_of_friend=SocialManager::get_message_number_invitation_by_user_id(api_get_user_id()); //echo ''; echo '

'.get_lang('Messages').'

'.get_lang('Inbox').$cant_msg.'
'.get_lang('Outbox').$cant_out_box.'

'; echo ''.get_lang('Close').''; if ($number_of_new_messages_of_friend>0) { echo '
'; } echo '
'; }*/ echo '
'; } ?>