-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard.php
More file actions
66 lines (63 loc) · 2.18 KB
/
Copy pathdashboard.php
File metadata and controls
66 lines (63 loc) · 2.18 KB
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
<?php include 'includes/config.php';
if(!(isset($_SESSION['email'])&&$_SESSION['role']=="houser"))
{
header('Location: login.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Hostel Tracker</title>
<?php include 'includes/links.php';?>
</head>
<body>
<?php include 'includes/header.php' ?>
<!-- Main Content -->
<main>
<aside>
<nav>
<div class="d-inline-block options w-95p">
<p>Dashboard</p>
<ul>
<li id="ah">Add Hostel</li>
<li id="ap">Add Packages</li>
<li id="af">Add Features</li>
<li id="ag">Add Gallery</li>
<li id="vah">View All Hostels</li>
</ul>
</div>
</nav>
</aside>
<article>
<div id="content">
<?php include 'view_hostels.php'; ?>
</div>
</article>
</main>
<?php include 'includes/footer.php' ?>
<script>
$(document).ready(function () {
$('#ah').click(function () {
$('#content').load('add_hostel.php', 'status=view');
$('#content').html("<img src='graphics/loading.gif' alt='Loading Packages...'>");
});
$('#ap').click(function () {
$('#content').load('add_package.php', 'status=view');
$('#content').html("<img src='graphics/loading.gif' alt='Loading Packages...'>");
});
$('#af').click(function () {
$('#content').load('add_feature.php', 'status=view');
$('#content').html("<img src='graphics/loading.gif' alt='Loading Packages...'>");
});
$('#ag').click(function () {
$('#content').load('add_gallery.php', 'status=view');
$('#content').html("<img src='graphics/loading.gif' alt='Loading Packages...'>");
});
$('#vah').click(function () {
$('#content').load('view_hostels.php', 'status=view');
$('#content').html("<img src='graphics/loading.gif' alt='Loading Packages...'>");
});
});
</script>
</body>
</html>