1
0
This repository has been archived on 2017-06-06. You can view files and clone it, but cannot push or open issues or pull requests.
informaticaD4P-2017/templates/berichten.phtml

33 lines
672 B
PHTML

<?php include '__header.phtml'; ?>
<h2 class="page-header">Berichten</h2>
<?php foreach ($berichten as $bericht) {
?>
<div class="panel panel-default">
<div class="panel-heading">
<?php if (!$bericht['gelezen']) {
?>
<span class="label label-info">Nieuw bericht</span><br/><br/>
<?php
} ?>
<h3 class="panel-title"><?php echo $bericht['datum']; ?></h3>
<small>Afzender: </small><?php echo $bericht['afzender']; ?></div>
<div class="panel-body">
<?php echo $bericht['bericht']; ?>
</div>
</div>
<?php
}
if (count($berichten) === 0) {
?>U heeft geen berichten.<?php
}
?>
<?php include '__footer.phtml'; ?>