\n";
// the style depends on the status of the message: approved or not
//echo 'dd'.$row['status'];
if ($row['visible']=='0') {
$titleclass='forum_message_post_title_2_be_approved';
$messageclass='forum_message_post_text_2_be_approved';
$leftclass='forum_message_left_2_be_approved';
} else {
$titleclass='forum_message_post_title';
$messageclass='forum_message_post_text';
$leftclass='forum_message_left';
}
echo "\t\n";
echo "\t\t";
echo ' '.$row['post_date'].' ';
if (api_is_allowed_to_edit()) {
echo $url_post;
}
echo " | \n";
// The post title
echo "\t\t".prepare4display($row['post_title'])." | \n";
echo "\t
\n";
// The post message
echo "\t\n";
echo "\t\t| ".prepare4display($row['post_text'])." | \n";
echo "\t
\n";
// The check if there is an attachment
$attachment_list=get_attachment($row['post_id']);
if (!empty($attachment_list)) {
echo '';
$realname=$attachment_list['path'];
$user_filename=$attachment_list['filename'];
echo Display::return_icon('attachment.gif',get_lang('Attachment'));
echo ' '.$user_filename.' ';
echo ' ';
echo ' |
';
}
// The post has been displayed => it can be removed from the what's new array
unset($whatsnew_post_info[$current_forum['forum_id']][$current_thread['thread_id']][$row['post_id']]);
unset($whatsnew_post_info[$current_forum['forum_id']][$current_thread['thread_id']]);
unset($_SESSION['whatsnew_post_info'][$current_forum['forum_id']][$current_thread['thread_id']][$row['post_id']]);
unset($_SESSION['whatsnew_post_info'][$current_forum['forum_id']][$current_thread['thread_id']]);
echo "