49 lignes
1,2 Kio
PHP
49 lignes
1,2 Kio
PHP
|
<?php
|
|||
|
|
|||
|
ini_set('display_errors', '1');
|
|||
|
ini_set('error_reporting', E_ALL);
|
|||
|
|
|||
|
require dirname(__FILE__).'/../classes/NewsManager.php';
|
|||
|
include 'include/head.php';
|
|||
|
?>
|
|||
|
<div id="main">
|
|||
|
|
|||
|
|
|||
|
<h2>Gérér les best-of</h2>
|
|||
|
<div id="archnews_liste">
|
|||
|
<!-- entete du tableau-->
|
|||
|
<div id="listnews_cat">
|
|||
|
<span class="listnews_titre">Titre</span>
|
|||
|
<span class="listnews_date">Date</span>
|
|||
|
<span class="listnews_statut">Statut</span>
|
|||
|
<span class="listnews_modif">Modifier</span>
|
|||
|
</div>
|
|||
|
<!-- entete du tableau-->
|
|||
|
<?php
|
|||
|
$listeNews = new NewsManager();
|
|||
|
//Utilisation de la fonction de liste des news
|
|||
|
$tabn = $listeNews->bestofNews();
|
|||
|
foreach($tabn as $elem)
|
|||
|
{
|
|||
|
?>
|
|||
|
<!-- dynamique-->
|
|||
|
<div class="listnews_line">
|
|||
|
<span class="listnews_titre"><?php echo $elem['titre']; ?></span>
|
|||
|
<span class="listnews_date"><?php echo date('d/m/Y', $elem['timestamp']); ?></span>
|
|||
|
<span class="listnews_statut">Publiée</span>
|
|||
|
<!-- liens ci dessous à modifier en fonction de tes manager-->
|
|||
|
<span class="listnews_modif"><a href="modifierbestof.php?idMo=<?php echo $elem['id']; ?>">Modifier</a></span>
|
|||
|
|
|||
|
</div>
|
|||
|
<?php
|
|||
|
}
|
|||
|
?>
|
|||
|
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
|
|||
|
<?php
|
|||
|
include 'include/foot.php';
|
|||
|
?>
|