mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
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:
25
inc_alert_feedback.php
Normal file
25
inc_alert_feedback.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?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'>×</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;
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user