?> <div id="container"> <?php include '../include/header.php'; ?> <div id="contentTitre"> <h1>Historique des notifications</h1> </div> <div id="content"> <?php echo Tool::getFlash(); ?> <div id="notifications"> <?php $sql = $bdd->query("SELECT DATE(notificationCreated) as dateFormat, notificationCreated FROM notification\n\t\t\t\t\t\t\t\t\t\t WHERE notificationUtilisateur = {$utilisateurId}\n\t\t\t\t\t\t\t\t\t\t GROUP BY dateFormat\n\t\t\t\t\t\t\t\t\t\t ORDER BY notificationCreated DESC "); if ($sql->rowCount() == 0) { echo '<p>Aucune notification</p>'; } while ($data = $sql->fetchObject()) { $dateFormat = $data->dateFormat; echo '<table class="table">'; echo '<tr>'; echo '<th width="5%"></th>'; echo '<th width="93%" class="left">' . Tool::dateTime("l d F", $data->notificationCreated) . '</th>'; echo '</tr>';