<?php $object = new ArticleControls(); $navigation = new navigationControls(); ?> <div id="sidebar"> <div class="box"> <h3>Derniers articles</h3> <div class="dateList"> <?php $list = $object->getFiveLast(); if ($list != null) { ?> <ul class="linkedList dateList"> <?php foreach ($list as $article_current) { echo '<li class="first"><span class="date">' . ($ret = $object->dateReducted($article_current->News_date) . '</span><a href="news.php?art_id=' . $article_current->News_id . '">' . $article_current->News_title . '</a></li>'); ?> <?php } } ?> </ul> </div> </div> <div class="box"> <h3>Bienvenue chez les geeks !</h3> <?php $list = null; $list = $object->getFavorites();
?> </h2> </div> <img src="images/banner.jpg" alt="" /> </div> <div id="main"> <div class="box"> <?php $list = $object->getFiveLast(); foreach ($list as $article) { echo "<div class='index'>"; echo '<a class="indexLink" href="news.php?art_id=' . $article->News_id . '">'; echo "<h3>" . $article->News_title . " - " . $object->dateReducted($article->News_date) . "</h3>"; echo "</a>"; echo "<p>" . $article->News_sumup . "</p>"; echo "<em> Author : " . $article->News_author . "</em>"; echo "<div class='marged'>"; // echo "<table><tr>"; foreach ($object->splitTags($article->News_tag) as $tag) { // echo "<td>".$tag."</td>"; echo "<span>" . $tag . "</span>"; } echo "</div>"; // echo "</tr></table>"; echo "</div>"; } ?>