gymrooster_php/templates/dashboard.html.php

24 lines
942 B
PHP
Raw Normal View History

<?php require __DIR__ . '/../php/dashboard.php' ?>
2020-03-09 19:09:41 +01:00
Welkom <?=$docent['naam']?>
<h1>Gymrooster voor <?=date("D d M Y", strtotime($date))?></h1>
<a href="/dashboard?date=<?=date("Y-m-d", strtotime("-1 day", strtotime($date)))?>">Dag eerder</a>
<a href="/dashboard?date=<?=date("Y-m-d", strtotime("+1 day", strtotime($date)))?>">Dag later</a>
<form action="update?date=<?=$date?>&docent=<?=$docent['id']?>" method="post">
<textarea name="opmerking" placeholder="Opmerkingen"><?=$rooster['opmerking']?></textarea><br>
<select name="locatie">
<?php if ($rooster['locatie'] === "1"): ?>
<option value="1">Binnen</option>
<option value="2">Buiten</option>
<?php else: ?>
<option value="2">Buiten</option>
<option value="1">Binnen</option>
<?php endif; ?>
</select><br>
<input type="submit" value="Verzenden">
2020-03-14 12:13:15 +01:00
</form>
<a href="/delete?date=<?=$date?>&docent=<?=$docent['id']?>">
Verwijder record in de database
</a>