-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdate_view.php
76 lines (67 loc) · 1.85 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
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
<?php
include "includes/header.php";
include "includes/navbar.php";
include "classes/Student.php";
$stu = new Student();
?>
<?php
$cur_date = date('Y-m-d');
?>
<div class="container-fluid">
<?php
if (isset($insertattend)) {
echo $insertattend;
}
?>
<h1 class="h3 mb-2 text-gray-800">Datewise Attendance Report</h1>
<p class="mb-4">Here the teacher can see the date wise report of the students. please visit <a target="_blank"
href="https://localhost/group-18/studentsection.php">Date Wise Report</a>.</p>
<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">DataTable</h6>
</div>
<div class="card">
<div class="card-header">
<h2>
<a class="btn btn-success" href="teachersection.php">Take Attendance</a>
<a class="btn btn-info float-right" href="teachersection.php">Back</a>
</h2>
</div>
<div class="card-body">
<div class="card bg-light text-center mb-3">
<h4 class="m-0 py-3 text-dark"><strong>Date</strong>: <?php echo $cur_date; ?></h4>
</div>
<form action="" method="post">
<table class="table table-striped table-bordered">
<thead class="table-dark ">
<tr>
<th width="30%">S/L</th>
<th width="50%">Attendance Date</th>
<th width="20%">Action</th>
</tr>
</thead>
<?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/Update</a>
</td>
</tr>
<?php } } ?>
</table>
</form>
</div>
</div>
</div>
</div>
<?php
include "includes/scripts.php";
include "includes/footer.php";
?>