Made the php includes much more modular and simpler by lumping them all in 1 file inc_all.php instead of all over the place

This commit is contained in:
johnnyq
2022-02-22 00:29:39 -05:00
parent 7af0c11720
commit 1829c7299e
59 changed files with 145 additions and 105 deletions

31
inc_wrapper.php Normal file
View File

@@ -0,0 +1,31 @@
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- 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;
}
?>