-
Notifications
You must be signed in to change notification settings - Fork 9
/
date_view.php
49 lines (47 loc) · 1.08 KB
/
date_view.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
<?php
include "inc/header.php";
include "classes/Student.php";
$stu = new Student();
?>
<div class="container">
<?php
if (isset($insertattend)) {
echo $insertattend;
}
?>
<div class="card">
<div class="card-header">
<h2>
<a class="btn btn-success" href="add.php">Add Student</a>
<a class="btn btn-info float-right" href="index.php">Take Addendance</a>
</h2>
</div>
<div class="card-body">
<form action="" method="post">
<table class="table table-striped">
<tr>
<th width="30%">S/L</th>
<th width="50%">Attendance Date</th>
<th width="20%">Action</th>
</tr>
<?php
$getdate = $stu->getDateList();
if ($getdate) {
$i = 0;
while ($value = $getdate->fetch_assoc()) {
$i++;
?>
<tr>
<td><?php echo $i; ?></td>
<td><?php echo $value['att_time']; ?></td>
<td>
<a class="btn btn-primary" href="student_view.php?dt=<?php echo $value['att_time']; ?>">View</a>
</td>
</tr>
<?php } } ?>
</table>
</form>
</div>
</div>
</div>
<?php include("inc/footer.php"); ?>