-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbook.php
50 lines (40 loc) · 1.66 KB
/
book.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
require_once('code/dao/EventDAO.php');
include_once 'inc/header.php';
date_default_timezone_set('Europe/Vienna');
?>
<script type='text/javascript' src='js/book.js'></script>
<p id='pageName' hidden>Book</p>
<div class='container'>
<div id='tabs-1'>
<h1>Zeitübersicht</h1>
<h3>Hier können Sie Termine beim gewünschten Lehrer/Lehrerin buchen!<br><br></h3>
</div>
</div>
<?php $activeEvent = EventDAO::getActiveEvent(); ?>
<div class='container'>
<div>
<?php if ($activeEvent != null): ?>
<?php if ($activeEvent->getFinalPostDate() > time() && $activeEvent->getStartPostDate() < time()): ?>
<form id='chooseTeacherForm'>
<div class='form-group'>
<label for='selectTeacher'>Lehrer / Lehrerin</label>
<select class='form-control' id='selectTeacher' name='teacher'>
<?php echo(getTeacherOptions()); ?>
</select>
</div>
</form>
<div id='timeTable'></div>
<?php else: ?>
<?php if ($activeEvent->getFinalPostDate() < time()): ?>
<h3>Buchungen sind nicht mehr möglich!</h3>
<?php else: ?>
<h3>Buchungen sind noch nicht möglich. Start: <?php echo date("d.m.Y H:i",$activeEvent->getStartPostDate()) ?></h3>
<?php endif; ?>
<?php endif; ?>
<?php else: ?>
<h3>Es gibt momentan keinen Elternsprechtag!</h3>
<?php endif; ?>
</div>
</div>
<?php include_once 'inc/footer.php'; ?>