-
Notifications
You must be signed in to change notification settings - Fork 0
/
schedule.php
47 lines (41 loc) · 2.31 KB
/
schedule.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
<?php include 'connection.php';
include 'topnav.php'; ?>
<div class="col-lg-12">
<div>
<i class="fas fa-table"></i>
Schedule Records <br></br>
Add New <a></a>
<a href="schedule_add.php?action=add" type="button" class="btn btn-xs fa fa-user-plus"></a>
</div>
<br> </br>
<div class="table-responsive">
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
<thead>
<tr>
<th>schedule ID</th>
<th>DATE</th>
<th>START TIME</th>
<th>END TIME</th>
<th>Option</th>
</tr>
</thead>
<tbody>
<?php
$query = 'SELECT * FROM schedule';
$result = mysqli_query($db, $query) or die (mysqli_error($db));
while ($row = mysqli_fetch_assoc($result)) {
echo '<tr>';
echo '<td>'. $row['schedule_id'].'</td>';
echo '<td>'. $row['DAY'].'</td>';
echo '<td>'. $row['START_TIME'].'</td>';
echo '<td>'. $row['END_TIME'].'</td>';
echo '<td>';
echo ' <a type="button" class="btn btn-xs btn-warning fa fa-edit" href="schedule_edit.php?action=edit & id='.$row['schedule_id'] . '"> </a> ';
echo ' <a type="button" class="btn btn-xs btn-danger fa fa-trash" href="schedule_del.php?type=schedule&delete & id=' . $row['schedule_id'] . '"> </a> </td>';
echo '</tr> ';
}
?>
</tbody>
</table>
</div>
<?php include 'footer.php'; ?>