Added Ack all Alerts and view alerts, you can now ack alerts now

This commit is contained in:
root
2019-04-19 15:44:25 -04:00
parent 8e9c694f2b
commit 37f99eb093
3 changed files with 43 additions and 17 deletions

View File

@@ -15,8 +15,7 @@
<th>Date</th>
<th>Type</th>
<th>Alert</th>
<th>Ack</th>
<th class="text-center">Actions</th>
<th class="text-center">Ack</th>
</tr>
</thead>
<tbody>
@@ -27,23 +26,19 @@
$alert_type = $row['alert_type'];
$alert_message = $row['alert_message'];
$alert_date = $row['alert_date'];
$alert_read = $row['alert_read'];
$alert_ack_date = $row['alert_ack_date'];
?>
<tr>
<tr class="row-danger">
<td><?php echo $alert_date; ?></td>
<td><?php echo $alert_type; ?></td>
<td><?php echo $alert_message; ?></td>
<td><?php echo $alert_read; ?></td>
<td>
<div class="dropdown dropleft text-center">
<button class="btn btn-secondary btn-sm" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-ellipsis-h"></i>
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="post.php?delete_alert=<?php echo $client_id; ?>">Delete</a>
</div>
</div>
<td class="text-center">
<?php if($alert_ack_date == 0){ ?>
<a class="btn btn-success btn-sm" href="post.php?alert_ack=<?php echo $alert_id; ?>"><i class="fa fa-check"></i></a>
<?php }else{ ?>
<?php echo $alert_ack_date; ?>
<?php } ?>
</td>
</tr>