'.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(get_lang('UserNonRegisteredAtTheCourse'));
echo '
';
echo '
';
echo '';
echo '
';
echo '
'.api_xml_http_response_encode(get_lang('UserName')).'
'. api_xml_http_response_encode($user_info['username']).' ';
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']).'';
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=UserFriend::get_message_number_invitation_by_user_id(api_get_user_id());
//echo '
'.get_lang('ViewMessages').'
';
echo '
'.get_lang('Messages').'
'.get_lang('Inbox').$cant_msg.'
'.get_lang('Outbox').$cant_out_box.'
';
echo '

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