-
Notifications
You must be signed in to change notification settings - Fork 6
/
home.php
57 lines (45 loc) · 1.53 KB
/
home.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
51
52
53
54
55
56
57
<?php
require_once('code/Util.php');
require_once('code/dao/AbstractDAO.php');
require_once('code/AuthenticationManager.php');
SessionContext::create();
if (!isset($_SESSION['userId'])) {
header('Location: index.php');
}
$user = AuthenticationManager::getAuthenticatedUser();
if ($user->getRole() === 'admin') {
header('Location: admin.php');
die();
}
if ($user->getRole() === 'teacher') {
header('Location: teacher.php');
die();
}
?>
<?php include_once 'inc/header.php'; ?>
<script type='text/javascript' src='js/mySlots.js'></script>
<p id='pageName' hidden>Home</p>
<div class='container'>
<div id='tabs-1'>
<h1>Meine gebuchten Termine</h1>
<h3>Hier können Sie Ihre gebuchten Termine einsehen und löschen!<br><br></h3>
</div>
</div>
<div class='container'>
<div>
<form id='chooseMySlotsForm'>
<div class='form-group'>
<label for='selectType'>Darstellungstyp</label>
<select class='form-control' id='selectType' name='type'>
<option value='1' selected>Kompakt</option>
<option value='0'>Vollständig</option>
</select>
</div>
</form>
<button class="btn btn-primary" onclick="window.print()">
<span class='glyphicon glyphicon-print'></span> Zeitplan ausdrucken
</button>
<div id='timeTable' class="section-to-print"></div>
</div>
</div>
<?php include_once 'inc/footer.php'; ?>