-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathstu_list.php
83 lines (79 loc) · 2.88 KB
/
stu_list.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
<?php
include './Database/Controler.php';
include 'role.php';
?>
<form method="post">
<button type="submit" id="back7" name="back7" class="btn btn-primary">Back</button>
</form>
<h2>Students List</h2>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-body">
<div class="row">
<div class="col-md-12">
<?php
$dr=$_SESSION["sl"];
?>
<form method="post">
<table class="table table-striped table-bordered table-hover" id="dataTables-example">
<thead>
<th>Sr No.</th>
<th>Roll Number</th>
<th>Name</th>
<th>Update</th>
<th>View More</th>
<th>Delete</th>
</thead>
<tbody>
<?php
$cnt=0;
if(isset($dr)){
foreach ($dr as $d)
{
$cnt++;
?>
<tr>
<td><?php echo $cnt; ?></td>
<td><?php echo $d->s_rn; ?></td>
<td><?php echo $d->fnm." ".$d->lnm; ?></td>
<td><center><a href="stu_update.php?s_enrlup=<?php echo $d->s_enrl; ?>"><button class="btn btn-primary btn-circle" type="button" name="stu_update"><i class="fa fa-refresh fa-2x" style="color: white;"></i></button></a></td>
<td><center><a href="view_more.php?s_enrlvm=<?php echo $d->s_enrl; ?>"><button class="btn btn-success btn-circle" type="button"><i class="fa fa-info-circle fa-2x" style="color: white;"></i></button></a></td>
<td><center><a href="stu_list.php?s_enrldel=<?php echo $d->s_enrl; ?>"><button class="btn btn-danger btn-circle" type="button"><i class="fa fa-trash-o fa-2x" style="color: white;"></i></button></a></td>
</tr>
<?php
}}
?>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /. PAGE WRAPPER -->
<!-- /. WRAPPER -->
<!-- SCRIPTS -AT THE BOTOM TO REDUCE THE LOAD TIME-->
<!-- JQUERY SCRIPTS -->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- BOOTSTRAP SCRIPTS -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- METISMENU SCRIPTS -->
<script src="assets/js/jquery.metisMenu.js"></script>
<!-- DATA TABLE SCRIPTS -->
<script src="assets/js/dataTables/jquery.dataTables.js"></script>
<script src="assets/js/dataTables/dataTables.bootstrap.js"></script>
<script>
$(document).ready(function () {
$('#dataTables-example').dataTable();
});
</script>
<!-- CUSTOM SCRIPTS -->
<script src="assets/js/custom.js"></script>
</body>
</html>