-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathalumni.php
98 lines (85 loc) · 3.31 KB
/
alumni.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
<?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"); ?>
<style>
#mydata {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#mydata td, #mydata thead {
border: 1px solid #ddd;
padding: 8px;
}
#mydata tr:nth-child(even){background-color: #f2f2f2;}
#mydata tr:hover {background-color: #ddd;}
#mydata thead {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color:white;
color: white;
}
</style>
<?php include("db.php");
$today_date=date("j m Y");
$q=mysqli_query($con,"SELECT * FROM chemical.alumni 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="50%"><font color="grey">Batch</font></td>
<td class="theading" width="20%"><font color="grey">Full name</font></td>
<td class="theading" width="20%"><font color="grey">Current Status</font></td>
<td class="theading" width="20%"><font color="grey">org</font></td>
<td class="theading" width="20%"><font color="grey">location</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["id"] ?></span></b></td>
<td><span class="badge badge-primary" ><?php echo $row["batch"] ?></span></td>
<td><span class="" style="color:DodgerBlue"><?php echo $row["fullname"]; ?></span></td>
<td><span class="badge badge-warning" ><?php echo $row["currentstatus"]; ?></span></td>
<td><span class="badge badge-success" "><?php echo $row["org"]; ?></span></td>
<td><span class="" style="color: MediumSeaGreen"><?php echo $row["location"]; ?></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>