-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebar.php
More file actions
183 lines (162 loc) · 6.26 KB
/
sidebar.php
File metadata and controls
183 lines (162 loc) · 6.26 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
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<?php
include('connect.php');
session_start();
if(!isset($_SESSION['SESS_FIRST_NAME'])){
header("location: login.php");
}
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/png" href="assets/img/favicon.ico">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<?php
$result = $db->prepare("SELECT * FROM site_settings WHERE id=1");
$result->execute();
for($i=0; $row = $result->fetch(); $i++){
?>
<title><?php echo $row['site_name']; ?></title>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
<meta name="viewport" content="width=device-width" />
<meta name="keywords" content="Traffic" />
<meta name="description" content="<?php echo $row['site_desc']; ?>">
<meta name="author" content="">
<!-- Bootstrap core CSS -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
<!-- Animation library for notifications -->
<link href="assets/css/animate.min.css" rel="stylesheet"/>
<!-- Light Bootstrap Table core CSS -->
<link href="assets/css/light-bootstrap-dashboard.css?v=1.4.0" rel="stylesheet"/>
<!-- CSS for Demo Purpose, don't include it in your project -->
<link href="assets/css/demo.css" rel="stylesheet" />
<script src="assets/js/jeffartagame.js" type="text/javascript" charset="utf-8"></script>
<script src="assets/js/lib/jquery.js" type="text/javascript"></script>
<script src="assets/js/facebox.js" type="text/javascript"></script>
<script src="js/application.js" type="text/javascript" charset="utf-8"></script>
<!-- Fonts and icons -->
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300' rel='stylesheet' type='text/css'>
<link href="assets/css/pe-icon-7-stroke.css" rel="stylesheet" />
</head>
<body>
<div class="wrapper">
<div class="sidebar" data-color="purple" data-image="assets/img/sidebar-5.jpg">
<!--
Tip 1: you can change the color of the sidebar using: data-color="blue | azure | green | orange | red | purple"
Tip 2: you can also add an image using data-image tag
-->
<div class="sidebar-wrapper">
<div class="logo">
<a href="#" class="simple-text">
<?php echo $row['site_name']; ?>
</a>
</div>
<?php }?>
<?php
$position=$_SESSION['SESS_LAST_NAME'];
if($position=='officer') {
?>
<ul class="nav">
<li class="">
<a href="index.php">
<i class="pe-7s-graph"></i>
<p>Dashboard</p>
</a>
</li>
<li>
<a href="report-offence.php">
<i class="pe-7s-look"></i>
<p>Report Offence</p>
</a>
</li>
<li>
<a href="user.php">
<i class="pe-7s-user"></i>
<p>Edit Profile</p>
</a>
</li>
</ul>
<?php
}
if($position=='admin') {
?>
<ul class="nav">
<li class="">
<a href="index.php">
<i class="pe-7s-graph"></i>
<p>Dashboard</p>
</a>
</li>
<li>
<a href="report-offence.php">
<i class="pe-7s-look"></i>
<p>Report Offense</p>
</a>
</li>
<li>
<a href="view-offence.php">
<i class="pe-7s-note2"></i>
<p>Offense List</p>
</a>
</li>
<li>
<a href="add-user.php">
<i class="pe-7s-user"></i>
<p>Add User</p>
</a>
</li>
<li>
<a href="view-users.php">
<i class="pe-7s-news-paper"></i>
<p>User List</p>
</a>
</li>
<li>
<a href="site-settings.php">
<i class="pe-7s-tools"></i>
<p>Settings</p>
</a>
</li>
</ul>
<?php
}
?>
</div>
</div>
<div class="main-panel">
<nav class="navbar navbar-default navbar-fixed">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navigation-example-2">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-left">
<li>
<a href="index.php" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-dashboard"></i>
<p class="hidden-lg hidden-md">Dashboard</p>
</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="user.php">
<p>My Account</p>
</a>
</li>
<li>
<a href="logout.php">
<p>Log out</p>
</a>
</li>
<li class="separator hidden-lg hidden-md"></li>
</ul>
</div>
</div>
</nav>