Use toastr notifications and alerts instead dedupe alert feedback code

This commit is contained in:
johnnyq
2022-05-14 13:03:03 -04:00
parent 205c4e1bec
commit 334766e567
7 changed files with 16 additions and 40 deletions

View File

@@ -3,29 +3,4 @@
<!-- Main content -->
<div class="content mt-3">
<div class="container-fluid">
<?php
//Alert Feedback
if(!empty($_SESSION['alert_message'])){
if (!isset($_SESSION['alert_type'])){
$_SESSION['alert_type'] = "info";
}
?>
<div class="alert alert-<?php echo $_SESSION['alert_type']; ?>" id="alert">
<?php echo $_SESSION['alert_message']; ?>
<button class='close' data-dismiss='alert'>&times;</button>
</div>
<?php
unset($_SESSION['alert_type']);
unset($_SESSION['alert_message']);
}
//Set Records Per Page
if(empty($_SESSION['records_per_page'])){
$_SESSION['records_per_page'] = 10;
}
?>
<div class="container-fluid">