-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdashboard.php
147 lines (142 loc) · 4.55 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
<?php
session_start();
extract($_REQUEST);
include('../connection.php');
$admin=$_SESSION['admin_logged_in'];
if($admin=="")
{
header('location:index.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>La Velle</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<link href="dashboard.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<style>
/* Remove the navbar's default margin-bottom and rounded borders */
.navbar {
margin-bottom: 0;
border-radius: 0;
}
</style>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Welcome <?php echo $admin; ?></a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="dashboard.php?option=admin_profile">Profile</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</div>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<div class="col-sm-3 col-md-2 sidebar">
<ul class="nav nav-sidebar">
<li><a href="dashboard.php?option=update_password">Update Password</a></li>
<li><a href="dashboard.php?option=feedback">Feedback</a></li>
<li><a href="dashboard.php?option=rooms">Services</a></li>
<li><a href="dashboard.php?option=booking_details">Booking Details</a></li>
<li><a href="dashboard.php?option=user_registration">User Registration</a></li>
<li><a href="dashboard.php?option=slider">Slider</a></li>
<li><a href="#">Payment</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Setting <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Logo Update</a></li>
<li><a href="#">Address Update</a></li>
</ul>
</li>
</ul>
</div>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<?php
@$opt=$_GET['option'];
if($opt=="")
{
include('reports.php');
}
else
{
if($opt=="feedback")
{
include('feedback.php');
}
else if($opt=="slider")
{
include('slider.php');
}
else if($opt=="update_slider")
{
include('update_slider.php');
}
else if($opt=="add_slider")
{
include('add_slider.php');
}
else if($opt=="update_password")
{
include('update_password.php');
}
else if($opt=="rooms")
{
include('services.php');
}
else if($opt=="add_services")
{
include('add_services.php');
}
else if($opt=="delete_service")
{
include('delete_service.php');
}
else if($opt=="update_service")
{
include('update_service.php');
}
else if($opt=="booking_details")
{
include('reservation_details.php');
}
else if($opt=="user_registration")
{
include('user_registration.php');
}
else if($opt=="admin_profile")
{
include('admin_profile.php');
}
}
?>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
<script src="../../dist/js/bootstrap.min.js"></script>
<!-- Just to make our placeholder images work. Don't actually copy the next line! -->
<script src="../../assets/js/vendor/holder.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
</body>
</html>