-
Notifications
You must be signed in to change notification settings - Fork 2
/
dashboard.php
176 lines (153 loc) · 5.84 KB
/
dashboard.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<?php
session_start();
include('config.php');
include('sessioncheck.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Free Lots</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="keywords">
<meta content="" name="description">
<!-- Facebook Opengraph integration: https://developers.facebook.com/docs/sharing/opengraph -->
<meta property="og:title" content="">
<meta property="og:image" content="">
<meta property="og:url" content="">
<meta property="og:site_name" content="">
<meta property="og:description" content="">
<!-- Twitter Cards integration: https://dev.twitter.com/cards/ -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="">
<meta name="twitter:title" content="">
<meta name="twitter:description" content="">
<meta name="twitter:image" content="">
<!-- Place your favicon.ico and apple-touch-icon.png in the template root directory -->
<link href="img/favicon.png" rel="shortcut icon" type="image/png">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,700,700i|Raleway:300,400,500,700,800" rel="stylesheet">
<!-- Bootstrap CSS File -->
<link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Libraries CSS Files -->
<link href="lib/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="lib/animate-css/animate.min.css" rel="stylesheet">
<!-- Main Stylesheet File -->
<link href="css/style.css" rel="stylesheet">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/util.css">
<style type="text/css">
table{
border: 1px solid #1a1a1a;
width: 100%;
text-align: center;
}
td{
height: 250px;
}
a{
color: skyblue;
}
.dash{
padding-top: 20px;
padding-right: 23px;
padding-left: 23px;
padding-bottom: 17px;
}
</style>
</head>
<body>
<div id="preloader"></div>
<?php include('header.php'); ?>
<!-- #header -->
<div class="limiter">
<div class="container-login100" style="background-image: url('img/carbgdash.jpg');">
<div class="wrap-login100 dash" style="width: 75%;">
<span class="login100-form-title p-b-53">
Current Status
</span>
<table rules="all">
<tr>
<?php
$qry = mysqli_query($con,"SELECT * FROM lot ");
$c=0;
while($row = mysqli_fetch_array($qry) and $c < 5)
{
$c = $c+1;
if($row['status']=='Free')
{
?>
<td>
<span><a href="book.php">Book Now<br>Parking Lot - <?php echo $row['lotname']; ?></a></span>
</td>
<?php
}
else if($row['status']=='Leaving')
{
?>
<td style="background: #1a1a1a;">
<span><a href="book.php">Leaving Soon<br>Parking Lot - <?php echo $row['lotname']; ?></a></span>
</td>
<?php
}
else
{
?>
<td style="background: #1a1a1a;">
<span><a href="#">Booked<br>Parking Lot - <?php echo $row['lotname']; ?></a></span>
</td>
<?php
}
}
?>
</tr>
<tr>
<?php
$qry = mysqli_query($con,"SELECT * FROM lot ");
$c=0;
while($row = mysqli_fetch_array($qry) )
{
$c = $c+1;
if($c > 5)
{
if($row['status']=='Free')
{
?>
<td>
<span><a href="book.php">Book Now<br>Parking Lot - <?php echo $row['lotname']; ?></a></span>
</td>
<?php
}
else
{
?>
<td style="background: #1a1a1a;">
<span><a href="#">Booked<br>Parking Lot - <?php echo $row['lotname']; ?></a></span>
</td>
<?php
}
}
}
?>
</tr>
</table>
</div>
</div>
</div>
<?php include('footer.php'); ?>
<!-- #footer -->
<a href="#" class="back-to-top"><i class="fa fa-chevron-up"></i></a>
<!-- Required JavaScript Libraries -->
<script src="lib/jquery/jquery.min.js"></script>
<script src="lib/bootstrap/js/bootstrap.min.js"></script>
<script src="lib/superfish/hoverIntent.js"></script>
<script src="lib/superfish/superfish.min.js"></script>
<script src="lib/morphext/morphext.min.js"></script>
<script src="lib/wow/wow.min.js"></script>
<script src="lib/stickyjs/sticky.js"></script>
<script src="lib/easing/easing.js"></script>
<!-- Template Specisifc Custom Javascript File -->
<script src="js/custom.js"></script>
<script src="contactform/contactform.js"></script>
</body>
</html>