-
Notifications
You must be signed in to change notification settings - Fork 3
/
navbar.php
50 lines (45 loc) · 1.78 KB
/
navbar.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
<script src="logout.js"></script>
<?php include('config.php'); ?>
<script>
function logoutfully(safeLocation, redirUrl) {
$.post("update_session.php?logout");
logout(safeLocation, redirUrl);
};
function backup() {
$.get("backup-db.php?geturl", function(backupurl) {
location.href = backupurl;
});
}
</script>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<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="index.html"><?php echo HEADING;?></a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="calendar.php">Calendar</a></li>
<li><a href="bookings.php">Bookings</a></li>
<li><a href="bookers.php">Bookers</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Manage<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="rooms.php">Rooms</a></li>
<li><a href="facilities.php">Facilities</a></li>
<li><a href="bookers_merge.php">Merge Bookers</a></li>
<li><a href="javascript:backup()">Backup</a></li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a role="button" onclick="logoutfully('bookings.php', '<?php echo LOGOUT_URL; ?>')">Logout</a>
</ul>
</div>
</div>
</nav>