31 lines
861 B
PHP
Executable File
31 lines
861 B
PHP
Executable File
<?php include "../php/index.php" ?>
|
|
|
|
<h1>Gymrooster voor <?=date("D d M Y", strtotime($date))?></h1>
|
|
<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>
|
|
|
|
<?php if ($result->num_rows !== 0): ?>
|
|
<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>
|
|
<td><?=$record["locatie"] === '1' ? 'Binnen' : 'Buiten'?></td>
|
|
<td><?=$record["opmerking"]?></td>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<?php else: ?>
|
|
<h3>Er zijn geen ingevingen gevonden voor deze dag.</h3>
|
|
<?php endif; ?>
|