-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcurrent-students.php
71 lines (61 loc) · 2.5 KB
/
current-students.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
<?php
error_reporting(0);
session_start();
include_once('db.php');
if(!isset($_SESSION['chem_user']))
{
header('location:login');
}
?>
<?php include("variables.php"); ?>
<?php include("header.php"); ?>
<?php include("db.php");
$today_date=date("j m Y");
$q=mysqli_query($con,"SELECT * FROM chemical.data order by id ");
?>
<script type="text/javascript" src="assets/plugins/jquery-1.12.3.min.js"></script>
<script type="text/javascript" src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="assets/js/dataTables.buttons.min.js"></script>
<link rel="stylesheet" href="assets/dataTables.bootstrap.min.css">
<link rel="stylesheet" href="assets/plugins/bootstrap/css/bootstrap.min.css">
<div class="panel panel-primary table-responsive"" style="margin-right: 5%;margin-left: 5%;">
<div class="container" style="background:">
<table id="mydata" class="table table-striped table-bordered table-hover table-boxed" cellspacing="0" width="100%">
<thead >
<tr class="text-center">
<td class="theading" width="5%"><font color="grey">S.no</font></td>
<td class="theading" width="20%"><font color="grey">University ID</font></td>
<td class="theading" width="50%"><font color="grey">Full name</font></td>
<td class="theading" width="20%"><font color="grey">Batch</font></td>
</tr>
</thead>
<tbody>
<?php
while($row = mysqli_fetch_array($q,MYSQLI_BOTH))
{
?>
<tr class="text-center">
<td><b><span class="" style="color: Tomato"><?php echo $row["sno"] ?></span></b></td>
<td><span class="" style="color:SlateBlue"><?php echo $row["id"] ?></span></td>
<td><span class="" style="color: MediumSeaGreen"><?php echo $row["name"]; ?></span></td>
<td><span class="badge badge-warning"><?php echo $row["year"]; ?></span></td>
</tr>
<?php
}
?>
</tbody>
</table>
<br>
</div>
</div>
<?php include("footer1.php"); ?>
<script type="text/Javascript" src="assets/js/jquery.dataTables.min.js"></script>
<script type="text/Javascript" src="assets/js/dataTables.bootstrap.min.js"></script>
<script src="assets/js/dataTables.buttons.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#mydata').DataTable( {
"pagingType": "full_numbers"
} );
} );
</script>