-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.php
148 lines (109 loc) · 3.83 KB
/
admin.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
<?php session_start();
include_once 'admin/include/class.user.php';
$user=new User();
$uid=$_SESSION[ 'uid'];
if(!$user->get_session())
{
header("location:admin/login.php");
}
if(isset($_GET['q']))
{
$user->user_logout();
header("location:index.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Admin Panel</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css">
<style>
.well {
background: rgba(0, 0, 0, 0.7);
border: none;
height: 200px;
}
body {
background-image: url('images/home_bg.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
}
h4 {
color: #ffbb2b;
}
ul {
color: white;
font-size: 13px;
}
</style>
</head>
<body>
<div class="container">
<img class="img-responsive" src="images/home_banner.jpg" style="width:100%; height:180px;">
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<ul class="nav navbar-nav">
<li><a href="index.php">Home</a></li>
<li><a href="room.php">Room & Facilities</a></li>
<li><a href="reservation.php">Online Reservation</a></li>
<li class="active"><a href="admin.php">Admin</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="admin.php?q=logout">
<button type="button" class="btn btn-danger">Logout</button>
</a>
</li>
</ul>
</div>
</nav>
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6 well">
<h4>Room Category</h4>
<hr>
<ul>
<li><a href="admin/addroom.php">Add Room Category</a></li>
<li><a href="show_room_cat.php">Show All Room Category</a></li>
<li><a href="show_room_cat.php">Edit Room Category</a></li>
</ul>
</div>
<div class="col-md-3"></div>
</div>
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6 well">
<h4>Bookings</h4>
<hr>
<ul>
<li><a href="room.php">Book Now</a></li>
<li><a href="show_all_room.php">Show All Booked Rooms</a></li>
<li><a href="show_all_room.php">Edit Booked Room</a></li>
</ul>
</div>
<div class="col-md-3"></div>
</div>
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6 well">
<h4>Add Manager</h4>
<hr>
<ul>
<li><a href="admin/registration.php">Add Manager</a></li>
</ul>
</div>
<div class="col-md-3"></div>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>