-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathallcourses.php
438 lines (400 loc) · 25.2 KB
/
allcourses.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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
<?php
session_start();
require 'connect.php';
$sum = 0;
$id = $_SESSION['user_id'];
$query = "SELECT * FROM student WHERE id = '$id'";
$result = mysql_query($query);
$data = mysql_fetch_assoc($result);
$matric = $data['matric'];
$query = "SELECT * FROM biodata WHERE matric= '$matric'";
$result = mysql_query($query);
$data = mysql_fetch_assoc($result);
$fullname = $data['fullname'];
$query = "SELECT COUNT(*) as total FROM course WHERE matric='$matric'";
$result = mysql_query($query);
$data = mysql_fetch_assoc($result);
$all = $data['total'];
$resource = "SELECT * FROM course WHERE matric='$matric'";
$resource_query= mysql_query($resource);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>All courses</title>
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
<meta name="description" content="Elephant is a front-end template created to help you build modern web applications, fast and in a professional manner.">
<meta property="og:url" content="http://demo.naksoid.com/elephant">
<meta property="og:type" content="website">
<meta property="og:title" content="The fastest way to build modern admin site for any platform, browser, or device">
<meta property="og:description" content="Elephant is a front-end template created to help you build modern web applications, fast and in a professional manner.">
<meta property="og:image" content="../../elephant/img/ae165ef33d137d3f18b7707466aa774d.jpg">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@naksoid">
<meta name="twitter:creator" content="@naksoid">
<meta name="twitter:title" content="The fastest way to build modern admin site for any platform, browser, or device">
<meta name="twitter:description" content="Elephant is a front-end template created to help you build modern web applications, fast and in a professional manner.">
<meta name="twitter:image" content="../../elephant/img/ae165ef33d137d3f18b7707466aa774d.jpg">
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
<link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="manifest.json">
<link rel="mask-icon" href="safari-pinned-tab.svg" color="#0ac29d">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,400italic,500,700">
<link rel="stylesheet" href="css/vendor.min.css">
<link rel="stylesheet" href="css/elephant.min.css">
<link rel="stylesheet" href="css/application.min.css">
</head>
<body class="layout layout-header-fixed" style="font-family:consolas">
<div class="layout-header">
<div class="navbar navbar-default">
<div class="navbar-header">
<a class="navbar-brand navbar-brand-center" href="index.html">
<img class="navbar-brand-logo" src="img/logo-inverse.svg" alt="Elephant">
</a>
<button class="navbar-toggler visible-xs-block collapsed" type="button" data-toggle="collapse" data-target="#sidenav">
<span class="sr-only">Toggle navigation</span>
<span class="bars">
<span class="bar-line bar-line-1 out"></span>
<span class="bar-line bar-line-2 out"></span>
<span class="bar-line bar-line-3 out"></span>
</span>
<span class="bars bars-x">
<span class="bar-line bar-line-4"></span>
<span class="bar-line bar-line-5"></span>
</span>
</button>
<button class="navbar-toggler visible-xs-block collapsed" type="button" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="arrow-up"></span>
<span class="ellipsis ellipsis-vertical">
<img class="ellipsis-object" width="32" height="32" src="img/0180441436.jpg" alt="Teddy Wilson">
</span>
</button>
</div>
<div class="navbar-toggleable">
<nav id="navbar" class="navbar-collapse collapse">
<button class="sidenav-toggler hidden-xs" title="Collapse sidenav ( [ )" aria-expanded="true" type="button">
<span class="sr-only">Toggle navigation</span>
<span class="bars">
<span class="bar-line bar-line-1 out"></span>
<span class="bar-line bar-line-2 out"></span>
<span class="bar-line bar-line-3 out"></span>
<span class="bar-line bar-line-4 in"></span>
<span class="bar-line bar-line-5 in"></span>
<span class="bar-line bar-line-6 in"></span>
</span>
</button>
<h4 style="text-align:center;padding-top:5px;color:#0ac29d;">STUDENT REGISTRATION SYSTEM</h4>
</nav>
</div>
</div>
</div>
<div class="layout-main">
<div class="layout-sidebar">
<div class="layout-sidebar-backdrop"></div>
<div class="layout-sidebar-body">
<div class="custom-scrollbar">
<nav id="sidenav" class="sidenav-collapse collapse">
<ul class="sidenav">
<li class="sidenav-search hidden-md hidden-lg">
<form class="sidenav-form" action="http://demo.naksoid.com/">
<div class="form-group form-group-sm">
<div class="input-with-icon">
<input class="form-control" type="text" placeholder="Search…">
<span class="icon icon-search input-icon"></span>
</div>
</div>
</form>
</li>
<li class="sidenav-heading">Navigation</li>
<li class="sidenav-item has-subnav active">
<a href="dashboard-1.html" aria-haspopup="true">
<span class="sidenav-icon icon icon-home"></span>
<span class="sidenav-label">Dashboards</span>
</a>
<ul class="sidenav-subnav collapse">
<li class="sidenav-subheading">Dashboard</li>
<li><a href="index.php">Home</a></li>
</ul>
</li>
<li class="sidenav-heading">Pages</li>
<li class="sidenav-item has-subnav">
<a href="#" aria-haspopup="true">
<span class="sidenav-icon icon icon-edit"></span>
<span class="sidenav-label">Bio data</span>
</a>
<ul class="sidenav-subnav collapse">
<li class="sidenav-subheading">Biod data</li>
<li><a href="bio.php">Enter Biodata</a></li>
<li><a href="allbio.php">View Biodata</a></li>
</ul>
</li>
<li class="sidenav-item has-subnav">
<a href="#" aria-haspopup="true">
<span class="sidenav-icon icon icon-list"></span>
<span class="sidenav-label">Course Registration</span>
</a>
<ul class="sidenav-subnav collapse">
<li class="sidenav-subheading">Course Registration</li>
<li><a href="course.php">Register courses</a></li>
<li><a href="allcourses.php">View Registered courses</a></li>
</ul>
</li>
<li class="sidenav-heading">Core</li>
<li class="sidenav-item has-subnav">
<a href="#" aria-haspopup="true">
<span class="sidenav-icon icon icon-lock"></span>
<span class="sidenav-label">Uploads</span>
</a>
<ul class="sidenav-subnav collapse">
<li class="sidenav-subheading">Uploads</li>
<li><a href="upload.php" >Upload files</a></li>
<li><a href="allUploads.php">Uploaded Files</a></li>
</ul>
</li>
<li class="sidenav-item has-subnav">
<a href="#" aria-haspopup="true">
<span class="sidenav-icon icon icon-edit"></span>
<span class="sidenav-label">Registered students</span>
</a>
<ul class="sidenav-subnav collapse">
<li class="sidenav-subheading">Registered students</li>
<li><a href="view.php">View all</a></li>
</ul>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="layout-content">
<div class="layout-content-body">
<h5 style="color:#0ac29d;text-align: center"> DATATABLE OF REGISTERED COURSES</h5>
<div class="row gutter-xs" style="width:80%;margin-left: 8pc">
<div class="col-xs-12">
<div class="card">
<div class="card-header">
<strong style="color:#0ac29d;text-align:center;">Name: <?php echo $fullname?><br>Matric : <?php echo $matric?></strong>
<button type="button" onclick="window.print()" style="background:#0ac29d;color:white;width:120px;float: right;margin-right:3pc;margin-top:5px" class="btn" >PRNT COURSES</button>
</div>
<div class="card-body">
<table id="demo-datatables-1" class="table table-striped table-hover table-nowrap dataTable" cellspacing="0" width="100%">
<thead style="color:#0ac29d">
<tr>
<th style="text-align: center;">COURSE NAME</th>
<th style="text-align: center;">COURSE CODE</th>
<th style="text-align: center;">COURSE UNIT</th>
</tr>
</thead >
<tfoot style="color:#0ac29d">
<tr>
<th style="text-align: center;">COURSE NAME</th>
<th style="text-align: center;">COURSE CODE</th>
<th style="text-align: center;">COURSE UNIT</th>
</tr>
</tfoot>
<?php while($row = mysql_fetch_array($resource_query)):;?>
<tbody style="text-align: center;color: grey">
<?php $sum = $sum + $row['3'] ?>
<tr></tr>
<tr>
<td><?php echo $row['1']?></td>
<td><?php echo $row['2']?></td>
<td><?php echo $row['3']?></td>
</tr>
</tbody>
<?php endwhile;?>
<tr>
<td style="text-align: center;"></td>
<td style="text-align: center;"> TOTAL UNITS</td>
<td style="text-align: center;"><?php echo $sum?></td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="layout-footer">
<div class="layout-footer-body">
<small class="version">Version 1.2.0</small>
<small class="copyright">2016 © Elephant By <a href="http://naksoid.com/">Naksoid</a></small>
</div>
</div>
</div>
<div class="theme">
<div class="theme-panel theme-panel-collapsed">
<div class="theme-panel-body">
<div class="custom-scrollbar">
<div class="custom-scrollbar-inner">
<h5 class="theme-heading">
<a href="http://demo.naksoid.com/elephant-v1.2.0/buy" class="btn btn-primary btn-block">Buy Elephant Now!</a>
</h5>
<ul class="theme-settings">
<li class="theme-settings-heading">
<div class="divider">
<div class="divider-content">Theme Settings</div>
</div>
</li>
<li class="theme-settings-item">
<div class="theme-settings-label">Header fixed</div>
<div class="theme-settings-switch">
<label class="switch switch-primary">
<input class="switch-input" type="checkbox" name="layout-header-fixed" data-sync="true">
<span class="switch-track"></span>
<span class="switch-thumb"></span>
</label>
</div>
</li>
<li class="theme-settings-item">
<div class="theme-settings-label">Sidebar fixed</div>
<div class="theme-settings-switch">
<label class="switch switch-primary">
<input class="switch-input" type="checkbox" name="layout-sidebar-fixed" data-sync="true">
<span class="switch-track"></span>
<span class="switch-thumb"></span>
</label>
</div>
</li>
<li class="theme-settings-item">
<div class="theme-settings-label">Sidebar sticky*</div>
<div class="theme-settings-switch">
<label class="switch switch-primary">
<input class="switch-input" type="checkbox" name="layout-sidebar-sticky" data-sync="true">
<span class="switch-track"></span>
<span class="switch-thumb"></span>
</label>
</div>
</li>
<li class="theme-settings-item">
<div class="theme-settings-label">Sidebar collapsed</div>
<div class="theme-settings-switch">
<label class="switch switch-primary">
<input class="switch-input" type="checkbox" name="layout-sidebar-collapsed" data-sync="false">
<span class="switch-track"></span>
<span class="switch-thumb"></span>
</label>
</div>
</li>
<li class="theme-settings-item">
<div class="theme-settings-label">Footer fixed</div>
<div class="theme-settings-switch">
<label class="switch switch-primary">
<input class="switch-input" type="checkbox" name="layout-footer-fixed" data-sync="true">
<span class="switch-track"></span>
<span class="switch-thumb"></span>
</label>
</div>
</li>
<li class="theme-settings-description">
<span>
<strong>Sidebar sticky*</strong> - by scrolling up and down the page, the menu placed on the sidebar moves along with the content until the bottom of the menu is reached. <a href="page-layouts.html">Learn more</a></span>
</li>
</ul>
<hr class="theme-divider">
<ul class="theme-variants">
<li class="theme-variants-item">
<a class="theme-variants-link" href="http://demo.naksoid.com/elephant-v1.2.0/flaming-red/" title="Flaming Red (default)" data-container="body" data-trigger="hover" data-placement="top" data-toggle="tooltip">
<img class="img-responsive" src="img/9722110524.jpg" alt="Flaming Red Theme">
</a>
<a class="theme-variants-alt" href="http://demo.naksoid.com/elephant-v1.2.0/flaming-red-rounded/" title="Rounded Corners Version" data-container="body" data-trigger="hover" data-placement="top" data-toggle="tooltip">Rounded</a>
</li>
<li class="theme-variants-item">
<a class="theme-variants-link" href="http://demo.naksoid.com/elephant-v1.2.0/flaming-red-inverse/" title="Flaming Red (inverse)" data-container="body" data-trigger="hover" data-placement="top" data-toggle="tooltip">
<img class="img-responsive" src="img/9870681590.jpg" alt="Flaming Red Theme">
</a>
<a class="theme-variants-alt" href="http://demo.naksoid.com/elephant-v1.2.0/flaming-red-inverse-rounded/" title="Rounded Corners Version" data-container="body" data-trigger="hover" data-placement="top" data-toggle="tooltip">Rounded</a>
</li>
<li class="theme-variants-item">
<a class="theme-variants-link" href="http://demo.naksoid.com/elephant-v1.2.0/theme-4/" title="Flatistic Green (default)" data-container="body" data-trigger="hover" data-placement="top" data-toggle="tooltip">
<img class="img-responsive" src="img/9964167452.jpg" alt="Flatistic Green Theme">
</a>
<a class="theme-variants-alt" href="http://demo.naksoid.com/elephant-v1.2.0/theme-4-rounded/" title="Rounded Corners Version" data-container="body" data-trigger="hover" data-placement="top" data-toggle="tooltip">Rounded</a>
</li>
<li class="theme-variants-item">
<a class="theme-variants-link" href="http://demo.naksoid.com/elephant-v1.2.0/theme-4-inverse/" title="Flatistic Green (inverse)" data-container="body" data-trigger="hover" data-placement="top" data-toggle="tooltip">
<img class="img-responsive" src="img/1007517980.jpg" alt="Flatistic Green Theme">
</a>
<a class="theme-variants-alt" href="http://demo.naksoid.com/elephant-v1.2.0/theme-4-inverse-rounded/" title="Rounded Corners Version" data-container="body" data-trigger="hover" data-placement="top" data-toggle="tooltip">Rounded</a>
</li>
<li class="theme-variants-item">
<a class="theme-variants-link" href="http://demo.naksoid.com/elephant-v1.2.0/theme-3/" title="Midnight Blue (default)" data-container="body" data-trigger="hover" data-placement="top" data-toggle="tooltip">
<img class="img-responsive" src="img/1015664515.jpg" alt="Midnight Blue Theme">
</a>
<a class="theme-variants-alt" href="http://demo.naksoid.com/elephant-v1.2.0/theme-3-rounded/" title="Rounded Corners Version" data-container="body" data-trigger="hover" data-placement="top" data-toggle="tooltip">Rounded</a>
</li>
<li class="theme-variants-item">
<a class="theme-variants-link" href="http://demo.naksoid.com/elephant-v1.2.0/theme-3-inverse/" title="Midnight Blue (inverse)" data-container="body" data-trigger="hover" data-placement="top" data-toggle="tooltip">
<img class="img-responsive" src="img/1025453682.jpg" alt="Midnight Blue Theme">
</a>
<a class="theme-variants-alt" href="http://demo.naksoid.com/elephant-v1.2.0/theme-3-inverse-rounded/" title="Rounded Corners Version" data-container="body" data-trigger="hover" data-placement="top" data-toggle="tooltip">Rounded</a>
</li>
<li class="theme-variants-item">
<a class="theme-variants-link" href="http://demo.naksoid.com/elephant-v1.2.0/theme-5/" title="Materialistic Blue (default)" data-container="body" data-trigger="hover" data-placement="top" data-toggle="tooltip">
<img class="img-responsive" src="img/1033422797.jpg" alt="Materialistic Blue Theme">
</a>
<a class="theme-variants-alt" href="http://demo.naksoid.com/elephant-v1.2.0/theme-5-rounded/" title="Rounded Corners Version" data-container="body" data-trigger="hover" data-placement="top" data-toggle="tooltip">Rounded</a>
</li>
<li class="theme-variants-item">
<a class="theme-variants-link" href="http://demo.naksoid.com/elephant-v1.2.0/theme-5-inverse/" title="Materialistic Blue (inverse)" data-container="body" data-trigger="hover" data-placement="top" data-toggle="tooltip">
<img class="img-responsive" src="img/1044368407.jpg" alt="Materialistic Blue Theme">
</a>
<a class="theme-variants-alt" href="http://demo.naksoid.com/elephant-v1.2.0/theme-5-inverse-rounded/" title="Rounded Corners Version" data-container="body" data-trigger="hover" data-placement="top" data-toggle="tooltip">Rounded</a>
</li>
<li class="theme-variants-item">
<a class="theme-variants-link" href="http://demo.naksoid.com/elephant-v1.2.0/theme-6/" title="Eerie Black (default)" data-container="body" data-trigger="hover" data-placement="top" data-toggle="tooltip">
<img class="img-responsive" src="img/1050099119.jpg" alt="Eerie Black Theme">
</a>
<a class="theme-variants-alt" href="http://demo.naksoid.com/elephant-v1.2.0/theme-6-rounded/" title="Rounded Corners Version" data-container="body" data-trigger="hover" data-placement="top" data-toggle="tooltip">Rounded</a>
</li>
<li class="theme-variants-item">
<a class="theme-variants-link" href="http://demo.naksoid.com/elephant-v1.2.0/theme-6-inverse/" title="Eerie Black (inverse)" data-container="body" data-trigger="hover" data-placement="top" data-toggle="tooltip">
<img class="img-responsive" src="img/1067123558.jpg" alt="Eerie Black Theme">
</a>
<a class="theme-variants-alt" href="http://demo.naksoid.com/elephant-v1.2.0/theme-6-inverse-rounded/" title="Rounded Corners Version" data-container="body" data-trigger="hover" data-placement="top" data-toggle="tooltip">Rounded</a>
</li>
</ul>
</div>
</div>
</div>
<div class="theme-panel-footer">
<a class="rounded sq-36 bg-facebook" href="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fdemo.naksoid.com%2Felephant&t=The%20fastest%20way%20to%20build%20modern%20admin%20site%20for%20any%20platform%2C%20browser%2C%20or%20device" title="Share on Facebook" target="_blank">
<span class="icon icon-facebook"></span>
</a>
<a class="rounded sq-36 bg-twitter" href="https://twitter.com/intent/tweet?source=http%3A%2F%2Fdemo.naksoid.com%2Felephant&text=The%20fastest%20way%20to%20build%20modern%20admin%20site%20for%20any%20platform%2C%20browser%2C%20or%20device:%20http%3A%2F%2Fdemo.naksoid.com%2Felephant&via=naksoid" title="Tweet" target="_blank">
<span class="icon icon-twitter"></span>
</a>
<a class="rounded sq-36 bg-googleplus" href="https://plus.google.com/share?url=http%3A%2F%2Fdemo.naksoid.com%2Felephant" title="Share on Google+" target="_blank">
<span class="icon icon-google-plus"></span>
</a>
<a class="rounded sq-36 bg-linkedin" href="http://www.linkedin.com/shareArticle?mini=true&url=http%3A%2F%2Fdemo.naksoid.com%2Felephant&title=The%20fastest%20way%20to%20build%20modern%20admin%20site%20for%20any%20platform%2C%20browser%2C%20or%20device&summary=Elephant%20is%20a%20front-end%20template%20created%20to%20help%20you%20build%20modern%20web%20applications%2C%20fast%20and%20in%20a%20professional%20manner.&source=http%3A%2F%2Fdemo.naksoid.com%2Felephant" title="Share on LinkedIn" target="_blank">
<span class="icon icon-linkedin"></span>
</a>
<a class="rounded sq-36 bg-pinterest" href="http://pinterest.com/pin/create/button/?url=http%3A%2F%2Fdemo.naksoid.com%2Felephant&media=http://demo.naksoid.com/elephant/img/ae165ef33d137d3f18b7707466aa774d.jpg&description=Elephant%20is%20a%20front-end%20template%20created%20to%20help%20you%20build%20modern%20web%20applications%2C%20fast%20and%20in%20a%20professional%20manner." title="Pin it" target="_blank">
<span class="icon icon-pinterest-p"></span>
</a>
<a class="rounded sq-36 bg-default" href="mailto:?subject=The%20fastest%20way%20to%20build%20modern%20admin%20site%20for%20any%20platform%2C%20browser%2C%20or%20device&body=Elephant%20is%20a%20front-end%20template%20created%20to%20help%20you%20build%20modern%20web%20applications%2C%20fast%20and%20in%20a%20professional%20manner.:%20http%3A%2F%2Fdemo.naksoid.com%2Felephant" title="Send email" target="_blank">
<span class="icon icon-envelope-o"></span>
</a>
</div>
</div>
</div>
<script src="js/vendor.min.js"></script>
<script src="js/elephant.min.js"></script>
<script src="js/application.min.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','../../../www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-83990101-1', 'auto');
ga('send', 'pageview');
</script>
</body>
<!-- Mirrored from demo.naksoid.com/elephant-v1.2.0/theme-2/dashboard-2.html by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 07 Apr 2017 18:47:09 GMT -->
</html>