-
Notifications
You must be signed in to change notification settings - Fork 0
/
status.php
43 lines (37 loc) · 2.06 KB
/
status.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
<?php include 'connection.php';
include 'topnav.php'; ?>
<div class="col-lg-12">
<div>
<i class="fas fa-table"></i>
Year Status Records <br></br>
Add New <a></a>
<a href="status_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>Status ID</th>
<th>Status Name</th>
<th>Option</th>
</tr>
</thead>
<tbody>
<?php
$query = 'SELECT * FROM status';
$result = mysqli_query($db, $query) or die (mysqli_error($db));
while ($row = mysqli_fetch_assoc($result)) {
echo '<tr>';
echo '<td>'. $row['Status_id'].'</td>';
echo '<td>'. $row['status_name'].'</td>';
echo '<td>';
echo ' <a type="button" class="btn btn-xs btn-warning fa fa-edit" href="status_edit.php?action=edit & id='.$row['Status_id'] . '"> </a> ';
echo ' <a type="button" class="btn btn-xs btn-danger fa fa-trash" href="status_del.php?type=level&delete & id=' . $row['Status_id'] . '"> </a> </td>';
echo '</tr> ';
}
?>
</tbody>
</table>
</div>
<?php include 'footer.php'; ?>