-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
217 lines (172 loc) · 9.54 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
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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<?php
@session_start();
@ob_start();
include "dbconnect.php";
if (isset($_SESSION['loggedin']) && $_SESSION['loggedin'] == true) {
$myusername= $_SESSION['username'];
$mypassword=$_SESSION['mypassword'];
$student_id=$_SESSION['id'];
$_SESSION['loggedin'] = true;
$_SESSION['username'] = $myusername;
$_SESSION['password'] = $mypassword;
//echo $student_id;
}
else
{
echo "Please log in first to see this page.";
header("Location:adminlogin.php");
}
//$query=mysql_query("select role_of_admin from admin where id='".$student_id."'");
$query=mysql_query("select user_type from users where user_id=(select role_of_admin from admin where id='".$student_id."')");
$find_role=mysql_fetch_array($query);
$role_of_admin=$find_role['user_type'];
//echo "Role of admin:".$role_of_admin;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Canadian College Of Business Science & Technology, a fully featured, responsive, HTML5, Bootstrap admin template.">
<!-- The styles -->
<link id="bs-css" href="css/bootstrap-cerulean.min.css" rel="stylesheet">
<link href="css/Canadian International Education System-app.css" rel="stylesheet">
<link href='bower_components/fullcalendar/dist/fullcalendar.css' rel='stylesheet'>
<link href='bower_components/fullcalendar/dist/fullcalendar.print.css' rel='stylesheet' media='print'>
<link href='bower_components/chosen/chosen.min.css' rel='stylesheet'>
<link href='bower_components/colorbox/example3/colorbox.css' rel='stylesheet'>
<link href='bower_components/responsive-tables/responsive-tables.css' rel='stylesheet'>
<link href='bower_components/bootstrap-tour/build/css/bootstrap-tour.min.css' rel='stylesheet'>
<link href='css/jquery.noty.css' rel='stylesheet'>
<link href='css/noty_theme_default.css' rel='stylesheet'>
<link href='css/elfinder.min.css' rel='stylesheet'>
<link href='css/elfinder.theme.css' rel='stylesheet'>
<link href='css/jquery.iphone.toggle.css' rel='stylesheet'>
<link href='css/uploadify.css' rel='stylesheet'>
<link href='css/animate.min.css' rel='stylesheet'>
<!-- jQuery -->
<script src="bower_components/jquery/jquery.min.js"></script>
<!-- The fav icon -->
<link rel="shortcut icon" href="img/favicon.ico">
</head>
<body>
<!-- topbar starts -->
<div class="navbar navbar-default" role="navigation">
<div class="navbar-inner">
<button type="button" class="navbar-toggle pull-left animated flip">
<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.php"> <img alt="Canadian College Of Business Science & Technology Logo" src="img/logo20.png" class="hidden-xs"/>
CCBST</a>
<!-- user dropdown starts -->
<div class="btn-group pull-right">
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<i class="glyphicon glyphicon-user"></i><span class="hidden-sm hidden-xs"><?php echo $myusername;?></span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="my_profile.php">Profile</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</div>
<!-- user dropdown ends -->
<ul class="collapse navbar-collapse nav navbar-nav top-menu">
<li><a href="#"><i class="glyphicon glyphicon-globe"></i> Visit Site</a></li>
<li><font color="white"><br><?
echo $today = date("Y-m-d H:i:s");
?></font></li>
</ul>
</div>
</div>
<!-- topbar ends -->
<div class="ch-container">
<div class="row">
<!-- left menu starts -->
<div class="col-sm-2 col-lg-2">
<div class="sidebar-nav">
<div class="nav-canvas">
<div class="nav-sm nav nav-stacked">
</div>
<ul class="nav nav-pills nav-stacked main-menu">
<li><a class="ajax-link" href="index.php"><i class="glyphicon glyphicon-home"></i><span> Dashboard</span></a>
</li>
<li><a class="ajax-link" href="my_view.php"><i
class="glyphicon glyphicon-edit"></i><span>Projects Assigned To Me</span></a></li>
<?php
if($role_of_admin=="admin")
{
?>
<li><a class="ajax-link" href="view_project.php"><i
class="glyphicon glyphicon-edit"></i><span>View All Projects</span></a></li>
<li><a class="ajax-link" href="view_task.php"><i class="glyphicon glyphicon-edit"></i><span>View All Tasks</span></a>
</li>
<li><a class="ajax-link" href="add_schedule.php"><i
class="glyphicon glyphicon-edit"></i><span>Add Project</span></a></li>
<li><a class="ajax-link" href="add_task.php"><i class="glyphicon glyphicon-edit"></i><span>Add Task</span></a>
</li>
<li><a class="ajax-link" href="addadmin.php"><i class="glyphicon glyphicon-edit"></i><span>Add Users</span></a>
</li>
<li><a class="ajax-link" href="admin.php"><i class="glyphicon glyphicon-edit"></i><span>View All Users</span></a>
</li>
<li><a class="ajax-link" href="add_type_of_users.php"><i class="glyphicon glyphicon-edit"></i><span>Add Type of User</span></a>
</li>
<li><a class="ajax-link" href="view_user_types.php"><i class="glyphicon glyphicon-edit"></i><span>View Type of Users</span></a>
</li>
<li><a class="ajax-link" href="add_day_to_day_work.php"><i class="glyphicon glyphicon-edit"></i><span>Update today's work</span></a> </li>
<li><a class="ajax-link" href="add_hourly_work.php"><i class="glyphicon glyphicon-edit"></i><span>Update Hourly work</span></a> </li>
<li><a class="ajax-link" href="add_task_manually.php"><i class="glyphicon glyphicon-edit"></i><span>Add Task Assigned To You</span></a> </li>
<li><a class="ajax-link" href="performance_measurement.php"><i
class="glyphicon glyphicon-edit"></i><span>Performance Measurement</span></a></li>
<?php
}
?>
<?php
if($role_of_admin=="employee")
{
?>
<li><a class="ajax-link" href="add_task_manually.php"><i class="glyphicon glyphicon-edit"></i><span>Add Task Assigned To You</span></a> </li>
<li><a class="ajax-link" href="add_day_to_day_work.php"><i class="glyphicon glyphicon-edit"></i><span>Update today's work</span></a> </li> <li><a class="ajax-link" href="add_hourly_work.php"><i class="glyphicon glyphicon-edit"></i><span>Update Hourly work</span></a> </li>
<li><a class="ajax-link" href="add_schedule.php"><i
class="glyphicon glyphicon-edit"></i><span>Add Project</span></a></li>
<li><a class="ajax-link" href="add_task.php"><i class="glyphicon glyphicon-edit"></i><span>Add Task</span></a>
</li>
<?php
}
if($role_of_admin=="developer")
{
?>
<li><a class="ajax-link" href="add_task_manually.php"><i class="glyphicon glyphicon-edit"></i><span>Add Task Assigned To You</span></a>
</li>
<li><a class="ajax-link" href="add_day_to_day_work.php"><i class="glyphicon glyphicon-edit"></i><span>Update today's work</span></a>
</li>
<li><a class="ajax-link" href="add_hourly_work.php"><i class="glyphicon glyphicon-edit"></i><span>Update Hourly work</span></a> </li>
<?php
}?>
<!-- <li><a class="ajax-link" href="form.html"><i
class="glyphicon glyphicon-edit"></i><span> Forms</span></a></li>-->
</ul>
</div>
</div>
</div>
<!--/span-->
<!-- left menu ends -->
<noscript>
<div class="alert alert-block col-md-12">
<h4 class="alert-heading">Warning!</h4>
<p>You need to have <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a>
enabled to use this site.</p>
</div>
</noscript>
<div id="content" class="col-lg-10 col-sm-10">
<!-- content starts -->
<div class=" row">
<div class="box col-md-12">
<div class="box-inner">
<div class="box-header well">
</div>
<div class="box-content row">
<div class="col-lg-7 col-md-12">