2020-03-09 16:49:36 +01:00
|
|
|
<?php include "../php/index.php" ?>
|
|
|
|
|
2020-03-12 18:10:22 +01:00
|
|
|
<header>
|
|
|
|
<h1>Gymrooster</h1>
|
|
|
|
<h3><?=date("D d M Y", strtotime($date))?></h3>
|
|
|
|
<a href="/?date=<?=date("Y-m-d", strtotime("-1 day", strtotime($date)))?>">< Dag eerder</a>
|
|
|
|
<a href="/?date=<?=date("Y-m-d", strtotime("+1 day", strtotime($date)))?>">Dag later ></a>
|
|
|
|
</header>
|
2020-03-09 16:49:36 +01:00
|
|
|
|
2020-03-09 18:05:36 +01:00
|
|
|
<?php if ($result->num_rows !== 0): ?>
|
2020-03-09 16:49:36 +01:00
|
|
|
<div>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Docent</th>
|
|
|
|
<th>Locatie</th>
|
|
|
|
<th>Opmerkingen</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php
|
|
|
|
foreach ($rooster as $record) { ?>
|
|
|
|
<tr>
|
|
|
|
<td><?=$record["naam"]?></td>
|
2020-03-09 18:05:36 +01:00
|
|
|
<td><?=$record["locatie"] === '1' ? 'Binnen' : 'Buiten'?></td>
|
2020-03-09 16:49:36 +01:00
|
|
|
<td><?=$record["opmerking"]?></td>
|
|
|
|
</tr>
|
|
|
|
<?php } ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2020-03-09 18:05:36 +01:00
|
|
|
</div>
|
|
|
|
<?php else: ?>
|
|
|
|
<h3>Er zijn geen ingevingen gevonden voor deze dag.</h3>
|
|
|
|
<?php endif; ?>
|