-
Notifications
You must be signed in to change notification settings - Fork 23
/
rep_div.php
53 lines (50 loc) · 1.76 KB
/
rep_div.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
<?php
include './Database/Controler.php';
include 'role.php';
?>
<form method="post">
<button type="submit" id="back2" name="back2" class="btn btn-primary">Back</button>
</form>
<h2>Division Vise Report</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["dr"];
?>
<table class="table table-striped table-bordered table-hover" id="dataTables-example">
<thead>
<th>Date</th>
<th>Roll Number</th>
<th>Name</th>
<th>Subject</th>
<th>P/A</th>
</thead>
<tbody>
<?php
foreach ($dr as $d)
{
?>
<tr>
<td><?php echo $d->date; ?></td>
<td><?php echo $d->s_rn; ?></td>
<td><?php echo $d->fnm." ".$d->lnm; ?></td>
<td><?php echo $d->sub_name; ?></td>
<td><?php if($d->present==1){
echo "<i class='fa fa-check fa-3x' style='color:green'><i>";
}
else {
echo "<font color='red' fontphase='Showcard Gothic' size='10%'><b>X</b></font>";
}; ?></td>
</tr>
<?php
}
?>
<?php
include 'footer.php';
?>