-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstudent.php
286 lines (276 loc) · 13.6 KB
/
student.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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
<?php include('includes/connection.php') ?>
<?php //include('includes/session.php') ?>
<?php include('includes/messege.php') ?>
<?php
//Unauthorized Access Check
// checkSession();
if(!isset($_SESSION['user_type']) || $_SESSION['user_type'] != 'Student'){
$message = base64_encode(urlencode("Please Login"));
header('Location:login.php?msg=' . $message);
exit();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title> Student-Dashboard Home</title>
<meta name="description" content="">
<meta name="author" content="templatemo">
<!--
Visual Admin Template
https://templatemo.com/tm-455-visual-admin
-->
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,400italic,700' rel='stylesheet' type='text/css'>
<link href="<?php echo base_url();?>assets/css/font-awesome.min.css" rel="stylesheet">
<link href="<?php echo base_url();?>assets/css/bootstrap.min.css" rel="stylesheet">
<link href="<?php echo base_url();?>assets/css/templatemo-style.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- Left column -->
<div class="templatemo-flex-row">
<div class="templatemo-sidebar">
<header class="templatemo-site-header">
<div class="square"></div>
<h1> Student</h1>
</header>
<!--div class="profile-photo-container">
<img src="<?php echo base_url();?>assets/images/team-02.jpg" alt="Profile Photo" class="img-responsive">
<div class="profile-photo-overlay"></div>
</div -->
<!-- Search box -->
<form class="templatemo-search-form" role="search">
<div class="input-group">
<button type="submit" class="fa fa-search"></button>
<input type="text" class="form-control" placeholder="Search" name="srch-term" id="srch-term">
</div>
</form>
<div class="mobile-menu-icon">
<i class="fa fa-bars"></i>
</div>
<nav class="templatemo-left-nav">
<ul>
<li><a href="#" class="active"><i class="fa fa-home fa-fw"></i>Dashboard</a></li>
<li><a href="<?php echo base_url();?>index.php/Welcome/editusers"><i class="fa fa-bar-chart fa-fw"></i>Edit Profile</a></li>
<li><a href="data-visualization.html"><i class="fa fa-database fa-fw"></i>Notification</a></li>
<li><a href="maps.html"><i class="fa fa-map-marker fa-fw"></i>Payment</a></li>
<li><a href="manage-users.html"><i class="fa fa-users fa-fw"></i>VLE</a></li>
<li><a href="preferences.html"><i class="fa fa-sliders fa-fw"></i>Attendence</a></li>
<li><a href="login.html"><i class="fa fa-eject fa-fw"></i>Sign Out</a></li>
</ul>
</nav>
</div>
<!-- Main content -->
<div class="templatemo-content col-1 light-gray-bg">
<div class="templatemo-top-nav-container">
<div class="row">
<nav class="templatemo-top-nav col-lg-12 col-md-12">
<ul class="text-uppercase">
<li><a href="" class="active">Admin panel</a></li>
<!-- <li><a href="">Dashboard</a></li>
<li><a href="">Overview</a></li>
<li><a href="login.html">Sign in form</a></li> -->
</ul>
</nav>
</div>
</div>
<div class="templatemo-content-container">
<div class="templatemo-flex-row flex-content-row">
<div class="templatemo-content-widget white-bg col-2">
<i class="fa fa-times"></i>
<div class="square"></div>
<h2 class="templatemo-inline-block">NOTIFICATIONS</h2><hr>
<p>Works on all major browsers. IE 10+. Visual Admin is <a href="http://www.templatemo.com/tag/admin" target="_parent">free responsive admin template</a> for everyone. Feel free to use this template for your backend user interfaces. Please tell your friends about <a href="http://www.templatemo.com" target="_parent">templatemo.com</a> website. You may <a href="http://www.templatemo.com/contact" target="_parent">contact us</a> if you have anything to say.</p>
<p>Nunc placerat purus eu tincidunt consequat. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus dapibus nulla quis risus auctor, non placerat augue consectetur. Fusce mi lacus, semper sit amet mattis eu.</p>
</div>
<!-- div class="templatemo-content-widget white-bg col-1 text-center">
<i class="fa fa-times"></i>
<h2 class="text-uppercase">Maris</h2>
<h3 class="text-uppercase margin-bottom-10">Design Project</h3>
<img src="<?php echo base_url();?>assets/images/bicycle.jpg" alt="Bicycle" class="img-circle img-thumbnail">
</div-->
<!--div class="templatemo-content-widget white-bg col-1">
<i class="fa fa-times"></i>
<h2 class="text-uppercase">Dictum</h2>
<h3 class="text-uppercase">Sedvel Erat Non</h3><hr>
<div class="progress">
<div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;"></div>
</div-->
<!--div class="progress">
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 50%;"></div>
</div-->
<!--div class="progress">
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;"></div>
</div-->
</div>
</div>
<div class="templatemo-flex-row flex-content-row">
<div class="col-1">
<!--div class="templatemo-content-widget orange-bg">
<i class="fa fa-times"></i>
<div class="media">
<div class="media-left">
<a href="#">
<!--img class="media-object img-circle" src="<?php echo base_url();?>assets/images/sunset.jpg" alt="Sunset"-->
</a>
<!--/div-->
<!--div class="media-body">
<h2 class="media-heading text-uppercase">Consectur Fusce Enim</h2>
<p>Phasellus dapibus nulla quis risus auctor, non placerat augue consectetur.</p>
</div-->
</div>
</div>
<!--div class="templatemo-content-widget white-bg">
<i class="fa fa-times"></i>
<div class="media">
<div class="media-left">
<a href="#">
<!--img class="media-object img-circle" src="<?php echo base_url();?>assets/images/sunset.jpg" alt="Sunset"-->
</a>
<!--/div-->
<!--div class="media-body">
<h2 class="media-heading text-uppercase">Consectur Fusce Enim</h2>
<p>Phasellus dapibus nulla quis risus auctor, non placerat augue consectetur.</p>
</div-->
</div>
</div>
</div>
<!--div class="col-1">
<div class="panel panel-default templatemo-content-widget white-bg no-padding templatemo-overflow-hidden">
<i class="fa fa-times"></i>
<div class="panel-heading templatemo-position-relative"><!--h2 class="text-uppercase">User Table</h2--><!--/div-->
<div class="table-responsive">
<!--table class="table table-striped table-bordered">
<thead>
<!--tr>
<td>No.</td>
<td>First Name</td>
<td>Last Name</td>
<td>Username</td>
</tr>
</thead>
<tbody>
<tr>
<td>1.</td>
<td>John</td>
<td>Smith</td>
<td>@jS</td>
</tr>
<tr>
<td>2.</td>
<td>Bill</td>
<td>Jones</td>
<td>@bJ</td>
</tr>
<tr>
<td>3.</td>
<td>Mary</td>
<td>James</td>
<td>@mJ</td>
</tr>
<tr>
<td>4.</td>
<td>Steve</td>
<td>Bride</td>
<td>@sB</td>
</tr>
<tr>
<td>5.</td>
<td>Paul</td>
<td>Richard</td>
<td>@pR</td>
</tr-->
<!--/tbody-->
<!--/table-->
</div>
</div>
</div>
</div> <!-- Second row ends -->
<!--div class="templatemo-flex-row flex-content-row templatemo-overflow-hidden"> <!-- overflow hidden for iPad mini landscape view-->
<!--div class="col-1 templatemo-overflow-hidden">
<div class="templatemo-content-widget white-bg templatemo-overflow-hidden">
<i class="fa fa-times"></i>
<div class="templatemo-flex-row flex-content-row">
<div class="col-1 col-lg-6 col-md-12">
<h2 class="text-center">Modular<span class="badge">new</span></h2>
<div id="pie_chart_div" class="templatemo-chart"></div> <!-- Pie chart div -->
</div>
<div class="col-1 col-lg-6 col-md-12">
<h2 class="text-center">Interactive<span class="badge">new</span></h2>
<div id="bar_chart_div" class="templatemo-chart"></div> <!-- Bar chart div -->
</div>
</div>
</div>
</div>
</div>
<footer class="text-right">
<p>Copyright © 2084 Company Name
| Design: Template Mo</p>
</footer>
</div>
</div>
</div>
<!-- JS -->
<script src="js/jquery-1.11.2.min.js"></script> <!-- jQuery -->
<script src="js/jquery-migrate-1.2.1.min.js"></script> <!-- jQuery Migrate Plugin -->
<script src="https://www.google.com/jsapi"></script> <!-- Google Chart -->
<script>
/* Google Chart
-------------------------------------------------------------------*/
// Load the Visualization API and the piechart package.
google.load('visualization', '1.0', {'packages':['corechart']});
// Set a callback to run when the Google Visualization API is loaded.
google.setOnLoadCallback(drawChart);
// Callback that creates and populates a data table,
// instantiates the pie chart, passes in the data and
// draws it.
function drawChart() {
// Create the data table.
var data = new google.visualization.DataTable();
data.addColumn('string', 'Topping');
data.addColumn('number', 'Slices');
data.addRows([
['Mushrooms', 3],
['Onions', 1],
['Olives', 1],
['Zucchini', 1],
['Pepperoni', 2]
]);
// Set chart options
var options = {'title':'How Much Pizza I Ate Last Night'};
// Instantiate and draw our chart, passing in some options.
var pieChart = new google.visualization.PieChart(document.getElementById('pie_chart_div'));
pieChart.draw(data, options);
var barChart = new google.visualization.BarChart(document.getElementById('bar_chart_div'));
barChart.draw(data, options);
}
$(document).ready(function(){
if($.browser.mozilla) {
//refresh page on browser resize
// http://www.sitepoint.com/jquery-refresh-page-browser-resize/
$(window).bind('resize', function(e)
{
if (window.RT) clearTimeout(window.RT);
window.RT = setTimeout(function()
{
this.location.reload(false); /* false to get page from cache */
}, 200);
});
} else {
$(window).resize(function(){
drawChart();
});
}
});
</script>
<script type="text/javascript" src="js/templatemo-script.js"></script> <!-- Templatemo Script -->
</body>
</html>