'.get_lang('GotoCourse').'';
$my_course_info_db=explode('_',$course_db);
$course_id=$my_course_info_db[1];
if (api_is_user_of_course($course_id,api_get_user_id())) {
//------Forum messages
api_display_tool_title(get_lang('Forum'));
//print_r($course);
$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
echo '
';
get_all_post_from_user($user_id, $course_db);
echo '
';
echo '
';
//------Blog posts
$result = get_blog_post_from_user($course_db, $user_id);
if (!empty($result)) {
echo '
';
api_display_tool_title(get_lang('BlogPosts'));
echo '';
echo $result;
echo '
';
echo '
';
}
//------Blog comments
$result = get_blog_comment_from_user($course_db, $user_id);
if (!empty($result)) {
api_display_tool_title(get_lang('BlogComments'));
echo '';
echo $result;
echo '
';
echo '
';
}
} else {
echo '
';
api_display_tool_title(get_lang('Details'));
echo '';
echo get_lang('UserNonRegisteredAtTheCourse');
echo '
';
echo '
';
echo '
';
}
break;
case 'unload_course' :
//echo 'load2';
break;
default:
}
} else {
// normal behavior
echo '';
echo '';
echo '
';
echo '

';
echo '
';
echo '
';
echo '
'.mb_convert_encoding(get_lang('UserName'),'UTF-8',$charset).'
'. mb_convert_encoding($user_info['username'],'UTF-8',$charset).' ';
echo ''.mb_convert_encoding(get_lang('FirstName'),'UTF-8',$charset).'
'. mb_convert_encoding($user_info['firstname'],'UTF-8',$charset).'';
echo ''.mb_convert_encoding(get_lang('LastName'),'UTF-8',$charset).'
'. mb_convert_encoding($user_info['lastname'],'UTF-8',$charset).'';
echo ''.mb_convert_encoding(get_lang('OfficialCode'),'UTF-8',$charset).'
'. mb_convert_encoding($user_info['official_code'],'UTF-8',$charset).'';
echo ''.mb_convert_encoding(get_lang('Email'),'UTF-8',$charset).'
'. mb_convert_encoding($user_info['email'],'UTF-8',$charset).'';
echo ''.mb_convert_encoding(get_lang('Phone'),'UTF-8',$charset).'
'. mb_convert_encoding($user_info['phone'],'UTF-8',$charset).'';
echo '';
echo '
';
}
?>