-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
101 lines (91 loc) · 2.37 KB
/
index.php
File metadata and controls
101 lines (91 loc) · 2.37 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?php require_once 'controllers/functions.php'?>
<!doctype html>
<html lang="en">
<head>
<?php include 'style.php'?>
<?php include 'script.php'?>
<meta charset="utf-8">
<title>JANRenovation</title>
</head>
<body>
<div class="p-5">
<?php include 'navbar.php';?>
</div>
<?php
$user_type = getPrivilege();
if($user_type == "employee"){?>
<div class="container-fluid pt-5">
<div class="row">
<div class="col-sm-12">
<h1 class="pt-5 pb-2 text-center">Your Work Schedule</h1>
</div>
</div>
<div class="row">
<div class="col-lg-2 col-md-12 mx-auto">
<table class="table table-bordered">
<thead class='thead-dark'>
<tr><th scope="col-sm-1">Monday</th></tr>
</thead>
<tbody id="Monday"></tbody>
</table>
</div>
<div class="col-lg-2 col-md-12 mx-auto">
<table class="table table-bordered">
<thead class='thead-dark'>
<tr><th scope="col-sm-1">Tuesday</th></tr>
</thead>
<tbody id="Tuesday"></tbody>
</table>
</div>
<div class="col-lg-2 col-md-12 mx-auto">
<table class="table table-bordered">
<thead class='thead-dark'>
<tr><th scope="col-sm-1">Wednesday</th></tr>
</thead>
<tbody id="Wednesday"></tbody>
</table>
</div>
<div class="col-lg-2 col-md-12 mx-auto">
<table class="table table-bordered">
<thead class='thead-dark'>
<tr><th scope="col-sm-1">Thursday</th></tr>
</thead>
<tbody id="Thursday"></tbody>
</table>
</div>
<div class="col-lg-2 col-md-12 mx-auto">
<table class="table table-bordered">
<thead class='thead-dark'>
<tr><th scope="col-sm-1">Friday</th></tr>
</thead>
<tbody id="Friday"></tbody>
</table>
</div>
</div>
</div>
<?php generateUserSchedule();
} elseif($user_type == "scheduler"){
include 'borough_colors.php';
?>
<div class="container">
<?php
include 'scheduler_index.php';
?>
</div>
</body>
</html>
<?php
} elseif($user_type == "admin"){
include 'borough_colors.php';
?>
<div class="container">
<?php
include 'admin_index.php';
?>
</div>
<?php
} else {
header("Location: login.php");
}?>
</body>
</html>