-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.php
76 lines (63 loc) · 1.54 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php session_start(); ?>
<?php require_once('inc/confrig.php'); ?>
<?php require_once('inc/functions.php'); ?>
<?php
if (!isset($_SESSION['id'])){
header('Location: login.php');
}
?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Home</title>
<link rel="stylesheet" href="style/main.css">
<style>
body{
margin: 0;
padding: 0;
}
body {
background: url(images/parking.jpg);
background-size: cover;
background-attachment: fixed;
background-repeat: no-repeat;
width:100%;
height:100vh;
display: flex;
}
.mainbody{
height: 100vh;
width: 100%;
}
header .name {
float: left;
font-family: cursive;
text-transform: uppercase;
color:white;
text-align: center;
font-size: 2em;
background-repeat: repeat-x;
}
</style>
</head>
<body>
<div class="mainbody clearfix">
<header>
<div class="name">Park me</div>
<div class="loggedin"> <?php echo $_SESSION['name']; ?>
<a href="logout.php">Log out</a>
</div>
</header>
<section class="mbody clearfix">
<div class="menubar">
<ul>
<li><a href="upload.php">PARKING LOT</a></li> <br>
<li><a href="admin.php">ADMIN</a></li> <br>
<li><a href="user.php">USER</a></li>
</ul>
</div>
</section>
</div>
</body>
</html>