-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader.php
126 lines (96 loc) · 4.31 KB
/
header.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
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="en" />
<meta name="robots" content="noindex,nofollow" />
<link rel="stylesheet" media="screen,projection" type="text/css" href="css/reset.css" /> <!-- RESET -->
<link rel="stylesheet" media="screen,projection" type="text/css" href="css/main.css" /> <!-- MAIN STYLE SHEET -->
<link rel="stylesheet" media="screen,projection" type="text/css" href="css/2col.css" title="2col" /> <!-- DEFAULT: 2 COLUMNS -->
<link rel="alternate stylesheet" media="screen,projection" type="text/css" href="css/1col.css" title="1col" /> <!-- ALTERNATE: 1 COLUMN -->
<!--[if lte IE 6]><link rel="stylesheet" media="screen,projection" type="text/css" href="css/main-ie6.css" /><![endif]--> <!-- MSIE6 -->
<link rel="stylesheet" media="screen,projection" type="text/css" href="css/style.css" /> <!-- GRAPHIC THEME -->
<link rel="stylesheet" media="screen,projection" type="text/css" href="css/mystyle.css" /> <!-- WRITE YOUR CSS CODE HERE -->
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.tablesorter.js"></script>
<script type="text/javascript" src="js/jquery.switcher.js"></script>
<script type="text/javascript" src="js/toggle.js"></script>
<script type="text/javascript" src="js/ui.core.js"></script>
<script type="text/javascript" src="js/ui.tabs.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".tabs > ul").tabs();
$.tablesorter.defaults.sortList = [[1,0]];
$("table").tablesorter({
headers: {
0: { sorter: false },
7: { sorter: false }
}
});
});
</script>
<title>Reception Desk Scheduler</title>
</head>
<body>
<?php
//permissions management
$management=on_manage();
?>
<div id="main">
<!-- Tray -->
<div id="tray" class="box">
<p class="f-left box">
<!-- Switcher -->
<span class="f-left" id="switcher">
<a href="#" rel="1col" class="styleswitch ico-col1" title="Display one column"><img src="design/switcher-1col.gif" alt="1 Column" /></a>
<a href="#" rel="2col" class="styleswitch ico-col2" title="Display two columns"><img src="design/switcher-2col.gif" alt="2 Columns" /></a>
</span>
Toggle sidebar
</p>
<p class="f-right">User: <strong><a href="#">User</a></strong> <strong><a href="logout.php" id="logout">Log out</a></strong></p>
</div> <!-- /tray -->
<hr class="noscreen" />
<!-- Menu -->
<!-- /header -->
<hr class="noscreen" />
<!-- Columns -->
<div id="cols" class="box">
<!-- Aside (Left Column) -->
<div id="aside" class="box">
<div class="padding box">
<!-- Logo (Max. width = 200px) -->
<p><a href="#"><img src="img/logo.png" alt="Our logo" title="Visit Site" /></a></p>
</div> <!-- /padding -->
<ul class="box">
<?php
$curr_page = basename($_SERVER["SCRIPT_NAME"]);
echo "<li "; if ($curr_page=="index.php") echo "id=\"submenu-active\""; echo "><a href=\"index.php\">Schedule</a></li>";
echo "<li "; if ($curr_page=="status.php") echo "id=\"submenu-active\""; echo "><a href=\"status.php\">Status</a></li>";
if ($management) {
echo "<li "; if (on_manage()) echo "id=\"submenu-active\""; echo "><a href=\"manage.php\">Manage</a></li>";
echo " <ul>";
echo " <li><a href=\"list.php\">List Users</a></li>";
echo " <li><a href=\"master.php\">Master Availability Sheet</a></li>";
echo " <li><a href=\"place.php\">Place Deskies at Desks</a></li>";
echo " <li><a href=\"schedule.php\">Schedule Deskies</a></li>";
echo " <li><a href=\"ClearDB.php\">Clear Database</a></li>";
echo " <li><a href=\"byhour.php\">By Hour</a></li>";
echo " </ul>";
}
?>
</ul>
</div> <!-- /aside -->
<hr class="noscreen" />
<!-- Content (Right Column) -->
<div id="content" class="box">
<?php
function on_manage()
{
$page = basename($_SERVER["SCRIPT_NAME"]);
if ($page == "manage.php" || $page == "list.php" || $page == "byhour.php" || $page == "cleardb.php" || $page == "master.php" || $page == "place.php" || $page == "schedule.php")
return true;
else
return false;
}
?>