function news() { global $secteur, $page, $_path; if ($page == 'news') { $liste_news = news_read(); if (!empty($liste_news)) { echo '<table class="newsboard" >'; foreach ($liste_news as $id => $news) { $News = array_map('htmlspecialchars', $news); // update by Dimitri if (isset($_SESSION['admin']) && $_SESSION['admin'] === true) { echo '<tr>'; echo '<th>'; echo LanguageValidation::iMsg("intro.news.record", news_date($News), $News['auteur']); //"News publiée le " .. " Par " .. ""; echo '</th>'; echo '</tr>'; } echo '<tr>'; echo '<td>'; echo '<h4>' . $News['titre'] . '</h4>'; echo '' . news_message($News) . ''; echo '</td>'; echo '</tr>'; echo '<tr>'; echo '<td>' . news_details_form($id) . '</td>'; echo '</tr>'; //none affiche un espace vide entre les news echo '<tr><td class="none" ></td></tr>'; } echo '</table>'; } else { echo 'Il n\'y a aucune news pour le moment<br />'; } echo '<a href="' . get_link("news_add", 'Install') . '">Ajouter une news</a>'; } }
<?php echo '<table class="newsboard" >'; // update by Dimitri echo '<tr>'; echo '<th>'; echo LanguageValidation::iMsg("intro.news.record", news_date($News), $News['News_Account_Pseudo']); //"News publiée le " .. " Par " .. ""; //echo "News publiée le " . news_date($News). " Par " .$News['News_Account_Pseudo']. ""; echo '</th>'; echo '</tr>'; echo '<tr>'; echo '<td>'; echo '<h4>' . $News['News_Title'] . '</h4>'; echo '<p>' . news_intro($News) . '</p>'; echo '' . news_message($News) . ''; echo '</td>'; echo '</tr>'; //none affiche un espace vide entre les news echo '<tr><td class="none" ></td></tr>'; if (verif_connect(true)) { echo "<tr><th>" . LanguageValidation::iMsg("label.comment.content") . "</th></tr>"; //Message echo '<tr><td>' . news_comment_form($News) . '</td></tr>'; //none affiche un espace vide entre les news echo '<tr><td class="none" ></td></tr>'; } if (!empty($list_comment)) { foreach ($list_comment as $comment) { echo '<tr>'; echo '<th>';