-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.php
116 lines (94 loc) · 2.35 KB
/
main.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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Main</title>
<style>
body {
background-color: darkslategrey
}
#header {
position: absolute;
top: 0%;
left: 0%;
height: 30%;
width: 100%;
background-color: darkviolet;
}
#title {
position: absolute;
top: 20%;
left: 30%;
font-size: 80px;
color: whitesmoke
}
.link {
font-size: 50px;
color: whitesmoke
}
.link:visited {
color: whitesmoke;
}
#reg {
position: absolute;
top: 5%;
left: 90%;
}
#login {
position: absolute;
top: 5%;
left: 80%;
}
#logout {
position: absolute;
top: 5%;
left: 90%;
}
#res {
position: absolute;
top: 5%;
left: 40%;
}
#filmadd {
position: absolute;
top: 5%;
left: 5%;
}
#seans {
position: absolute;
top: 5%;
left: 20%;
}
</style>
</head>
<body>
<div id="header">
<h1 id="title">KINO DOMINO</h1>
<?php
if (isset($_SESSION["logged"]) && $_SESSION["logged"] == true) {
if (isset($_SESSION["admin"]) && $_SESSION["admin"] == true) {
?>
<a href="filmAdd.php" id="filmadd" class="link">Add Film</a>
<a href="createSens.php" id="seans" class="link">Create Seans</a>
<?php
}
?>
<a href="reservation.php" id="res" class="link">reservation</a>
<a href="logout.php" id="logout" class="link">logout</a>
<?php
} else {
?>
<a href="reservation.php" id="res" class="link">reservation</a>
<a href="register.php" id="reg" class="link">register</a>
<a href="login.php" id="login" class="link">login</a>
<?php
}
?>
</div>
</body>
</html>