-
Notifications
You must be signed in to change notification settings - Fork 0
/
student.php
455 lines (429 loc) · 22 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
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
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
<?php
# Initialize the session
session_start();
# If user is not logged in then redirect him to login page
if (!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== TRUE) {
echo "<script>" . "window.location.href='login/login.php';" . "</script>";
exit;
}
?>
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Trainer Details</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Favicon -->
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.png">
<!-- Normalize CSS -->
<link rel="stylesheet" href="css/normalize.css">
<!-- Main CSS -->
<link rel="stylesheet" href="css/main.css">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<!-- Fontawesome CSS -->
<link rel="stylesheet" href="css/all.min.css">
<!-- Flaticon CSS -->
<link rel="stylesheet" href="fonts/flaticon.css">
<!-- Animate CSS -->
<link rel="stylesheet" href="css/animate.min.css">
<!-- Data Table CSS -->
<link rel="stylesheet" href="css/jquery.dataTables.min.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="style.css">
<!-- Modernize js -->
<style>
</style>
<script src="js/modernizr-3.6.0.min.js"></script>
</head>
<body>
<!-- Preloader Start Here -->
<div id="preloader"></div>
<!-- Preloader End Here -->
<div id="wrapper" class="wrapper bg">
<!-- Header Menu Area Start Here -->
<div class="navbar navbar-expand-md header-menu-one bg-light">
<div class="nav-bar-header-one"
style="background: green; border-right: 2px solid black; text-align: center; padding-left:35px">
<div class="header-logo">
<a href="index.php">
<img src="img/logo.png" alt="logo">
</a>
</div>
<div class="toggle-button sidebar-toggle">
<button type="button" class="item-link">
<span class="btn-icon-wrap">
<span></span>
<span></span>
<span></span>
</span>
</button>
</div>
</div>
<div class="d-md-none mobile-nav-bar">
<button class="navbar-toggler pulse-animation" type="button" data-toggle="collapse"
data-target="#mobile-navbar" aria-expanded="false">
<i class="far fa-arrow-alt-circle-down"></i>
</button>
<button type="button" class="navbar-toggler sidebar-toggle-mobile">
<i class="fas fa-bars"></i>
</button>
</div>
<div class="header-main-menu collapse navbar-collapse" id="mobile-navbar">
<ul class="navbar-nav">
<li class="navbar-item header-search-bar">
<div class="input-group stylish-input-group">
<span class="input-group-addon">
<button type="submit">
<span class="flaticon-search" aria-hidden="true"></span>
</button>
</span>
<input type="text" class="form-control" placeholder="Find Something . . .">
</div>
</li>
</ul>
<ul class="navbar-nav">
<li class="navbar-item dropdown header-admin">
<a class="navbar-nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown"
aria-expanded="false">
<div class="admin-title">
<span>
<?= strtoupper(htmlspecialchars($_SESSION["username"])); ?>
</span>
</div>
<div>
<img src="img/klu.png" alt="Admin" style="width: 150px; height: auto;">
</div>
</a>
<div class="dropdown-menu dropdown-menu-right">
<div class="item-content">
<ul class="settings-list">
<li><a href="login/logout.php"><i class="flaticon-turn-off"></i>Log Out</a></li>
</ul>
</div>
</div>
</li>
<li class="navbar-item dropdown header-message">
<a class="navbar-nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown"
aria-expanded="false">
<i class="far fa-envelope"></i>
<div class="item-title d-md-none text-16 mg-l-10">Message</div>
<span>5</span>
</a>
<div class="dropdown-menu dropdown-menu-right">
<div class="item-header">
<h6 class="item-title">05 Message</h6>
</div>
<div class="item-content">
<div class="media">
<div class="item-img bg-skyblue author-online">
<img src="img/figure/student11.png" alt="img">
</div>
<div class="media-body space-sm">
<div class="item-title">
<a href="#">
<span class="item-name">Maria Zaman</span>
<span class="item-time">18:30</span>
</a>
</div>
<p>What is the reason of buy this item.
Is it usefull for me.....</p>
</div>
</div>
<div class="media">
<div class="item-img bg-yellow author-online">
<img src="img/figure/student12.png" alt="img">
</div>
<div class="media-body space-sm">
<div class="item-title">
<a href="#">
<span class="item-name">Benny Roy</span>
<span class="item-time">10:35</span>
</a>
</div>
<p>What is the reason of buy this item.
Is it usefull for me.....</p>
</div>
</div>
<div class="media">
<div class="item-img bg-pink">
<img src="img/figure/student13.png" alt="img">
</div>
<div class="media-body space-sm">
<div class="item-title">
<a href="#">
<span class="item-name">Steven</span>
<span class="item-time">02:35</span>
</a>
</div>
<p>What is the reason of buy this item.
Is it usefull for me.....</p>
</div>
</div>
<div class="media">
<div class="item-img bg-violet-blue">
<img src="img/figure/student11.png" alt="img">
</div>
<div class="media-body space-sm">
<div class="item-title">
<a href="#">
<span class="item-name">Joshep Joe</span>
<span class="item-time">12:35</span>
</a>
</div>
<p>What is the reason of buy this item.
Is it usefull for me.....</p>
</div>
</div>
</div>
</div>
</li>
<li class="navbar-item dropdown header-notification">
<a class="navbar-nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown"
aria-expanded="false">
<i class="far fa-bell"></i>
<div class="item-title d-md-none text-16 mg-l-10">Notification</div>
<span>8</span>
</a>
<div class="dropdown-menu dropdown-menu-right">
<div class="item-header">
<h6 class="item-title">03 Notifications</h6>
</div>
<div class="item-content">
<div class="media">
<div class="item-icon bg-skyblue">
<i class="fas fa-check"></i>
</div>
<div class="media-body space-sm">
<div class="post-title">Complete Today Task</div>
<span>1 Mins ago</span>
</div>
</div>
<div class="media">
<div class="item-icon bg-orange">
<i class="fas fa-calendar-alt"></i>
</div>
<div class="media-body space-sm">
<div class="post-title">Director Metting</div>
<span>20 Mins ago</span>
</div>
</div>
<div class="media">
<div class="item-icon bg-violet-blue">
<i class="fas fa-cogs"></i>
</div>
<div class="media-body space-sm">
<div class="post-title">Update Password</div>
<span>45 Mins ago</span>
</div>
</div>
</div>
</div>
</li>
<li class="navbar-item dropdown header-language">
<a class="navbar-nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown"
aria-expanded="false"><i class="fas fa-globe-americas"></i>EN</a>
<div class="dropdown-menu dropdown-menu-right">
<a class="dropdown-item" href="#">English</a>
<a class="dropdown-item" href="#">Spanish</a>
<a class="dropdown-item" href="#">French</a>
<a class="dropdown-item" href="#">Chinese</a>
</div>
</li>
</ul>
</div>
</div>
<!-- Header Menu Area End Here -->
<!-- Page Area Start Here -->
<div class="dashboard-page-one">
<!-- Sidebar Area Start Here -->
<div class="sidebar-main sidebar-menu-one sidebar-expand-md sidebar-color">
<div class="mobile-sidebar-header d-md-none">
<div class="header-logo">
<a href="index.php"><img src="img/logo.png" alt="logo"></a>
</div>
</div>
<div class="sidebar-menu-content">
<ul class="nav nav-sidebar-menu sidebar-toggle-view">
<li class="nav-item sidebar-nav-item">
<a href="index.php" class="nav-link"><i class="flaticon-dashboard"></i><span>Progress
Dashboard</span></a>
<ul class="nav sub-group-menu">
<!-- <li class="nav-item">
<a href="index.php" class="nav-link"><i class="fas fa-angle-right"></i>Admin</a>
</li> -->
<li class="nav-item">
<a href="student.php" class="nav-link"><i class="fas fa-angle-right"></i>Student
details</a>
</li>
<li class="nav-item">
<a href="trainer.php" class="nav-link"><i class="fas fa-angle-right"></i>Trainer
Details</a>
</li>
<li class="nav-item">
<a href="coverage.php" class="nav-link"><i class="fas fa-angle-right"></i>Coverage
Status</a>
</li>
<li class="nav-item">
<a href="section.php" class="nav-link"><i class="fas fa-angle-right"></i>Section
Details</a>
</li>
</ul>
</li>
</ul>
<ul class="nav nav-sidebar-menu sidebar-toggle-view">
<li class="nav-item sidebar-nav-item">
<a href="index.php" class="nav-link"><i class="flaticon-dashboard"></i><span>Performance
Dashboard</span></a>
<ul class="nav sub-group-menu">
<!-- <li class="nav-item">
<a href="index.php" class="nav-link"><i class="fas fa-angle-right"></i>Admin</a>
</li> -->
<li class="nav-item">
<a href="aptitude.php" class="nav-link"><i class="fas fa-angle-right"></i>Aptitude
Details</a>
</li>
<li class="nav-item">
<a href="communication.php" class="nav-link"><i
class="fas fa-angle-right"></i>Communication Details</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- Sidebar Area End Here -->
<div class="dashboard-content-one">
<!-- Breadcubs Area Start Here -->
<div class="breadcrumbs-area">
<h3>Students</h3>
<ul>
<li>
<a href="index.html">Home</a>
</li>
<li>All Students</li>
</ul>
</div>
<!-- Breadcubs Area End Here -->
<!-- Student Table Area Start Here -->
<div class="card height-auto">
<div class="card-body">
<div class="heading-layout1">
<div class="item-title">
<h3>All Students Data</h3>
</div>
<div class="dropdown">
<a class="dropdown-toggle" href="#" role="button" data-toggle="dropdown"
aria-expanded="false">...</a>
<div class="dropdown-menu dropdown-menu-right">
<a class="dropdown-item" href="#"><i
class="fas fa-times text-orange-red"></i>Close</a>
<a class="dropdown-item" href="#"><i
class="fas fa-cogs text-dark-pastel-green"></i>Edit</a>
<a class="dropdown-item" href="#"><i
class="fas fa-redo-alt text-orange-peel"></i>Refresh</a>
</div>
</div>
</div>
<!-- <form class="mg-b-20">
<div class="row gutters-8">
<div class="col-3-xxxl col-xl-3 col-lg-3 col-12 form-group">
<input type="text" placeholder="Search by Roll ..." class="form-control">
</div>
<div class="col-4-xxxl col-xl-4 col-lg-3 col-12 form-group">
<input type="text" placeholder="Search by Name ..." class="form-control">
</div>
<div class="col-4-xxxl col-xl-3 col-lg-3 col-12 form-group">
<input type="text" placeholder="Search by Class ..." class="form-control">
</div>
<div class="col-1-xxxl col-xl-2 col-lg-3 col-12 form-group">
<button type="submit" class="fw-btn-fill btn-gradient-yellow">SEARCH</button>
</div>
</div>
</form> -->
<?php
// Database connection parameters
include 'conn.php';
// SQL query to fetch trainer details
$sql = "SELECT * FROM student_detail";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
echo "<div class='table-responsive'>
<table class='table display data-table text-nowrap'>
<thead>
<tr>
<th>Studnet ID</th>
<th>Reg.NO</th>
<th>Name</th>
<th>Dept</th>
<th>E-mail</th>
</tr>
</thead>
<tbody>";
// Output data of each row
while ($row = $result->fetch_assoc()) {
echo "<tr>
<td>
<div class='form-check'>
<input type='checkbox' class='form-check-input'>
<label class='form-check-label'>" . $row["s_id"] . "</label>
</div>
</td>
<td>" . $row["reg_no"] . "</td>
<td>" . $row["s_name"] . "</td>
<td>" . $row["s_dept"] . "</td>
<td>" . $row["s_email"] . "</td>
</tr>";
}
echo " </tbody>
</table>
</div>";
} else {
echo "0 results";
}
$conn->close();
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- Student Table Area End Here -->
<!-- <footer class="footer-wrap-layout1">
<div class="copyright">© Copyrights <a href="#">akkhor</a> 2019. All rights reserved. Designed by <a
href="#">PsdBosS</a></div>
</footer> -->
</div>
</div>
<!-- Page Area End Here -->
</div>
<!-- jquery-->
<script src="js/jquery-3.3.1.min.js"></script>
<!-- Plugins js -->
<script src="js/plugins.js"></script>
<!-- Popper js -->
<script src="js/popper.min.js"></script>
<!-- Bootstrap js -->
<script src="js/bootstrap.min.js"></script>
<!-- Scroll Up Js -->
<script src="js/jquery.scrollUp.min.js"></script>
<!-- Data Table Js -->
<!-- <script src="js/jquery.dataTables.min.js"></script> -->
<!-- Custom Js -->
<script src="js/main.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
<script src="https://cdn.datatables.net/1.11.3/js/jquery.dataTables.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script>
$(document).ready(function() {
$('.data-table').DataTable({
"pageLength": 10
});
});
</script>
</body>
</html>