Skip to content

Commit

Permalink
Update alerts.php
Browse files Browse the repository at this point in the history
  • Loading branch information
pepiuox authored Apr 14, 2024
1 parent 13536a0 commit 4dbb86d
Showing 1 changed file with 45 additions and 47 deletions.
92 changes: 45 additions & 47 deletions elements/alerts.php
Original file line number Diff line number Diff line change
@@ -1,51 +1,49 @@
<div class="container">
<div class="row pt-2">
<?php if (!empty($_SESSION['SuccessMessage'])) { ?>
<div class="alert alert-success alert-container" id="alert">
<strong><?php echo htmlentities($_SESSION['SuccessMessage']) ?></strong>
<?php unset($_SESSION['SuccessMessage']); ?>
<meta http-equiv="Refresh" content="3; url='<?php echo $alertpg; ?>'" />
</div>
<?php } ?>
<?php if (!empty($_SESSION['ErrorMessage'])) { ?>
<div class="alert alert-warning alert-container" id="alert">
<strong><?php echo htmlentities($_SESSION['ErrorMessage']) ?></strong>
<?php unset($_SESSION['ErrorMessage']); ?>
<meta http-equiv="Refresh" content="3; url='<?php echo $alertpg; ?>'" />
</div>
<?php } ?>
<?php if (!empty($_SESSION['AlertMessage'])) { ?>
<div class="alert alert-danger alert-container" id="alert">
<strong><?php echo htmlentities($_SESSION['AlertMessage']) ?></strong>
<?php unset($_SESSION['AlertMessage']); ?>
<meta http-equiv="Refresh" content="3; url='<?php echo $alertpg; ?>'" />
</div>
<?php } ?>
<?php
if (!empty($_SESSION['error'])) {
?>
<div class="alert alert-danger alert-container" id="alert">
<strong><center><?php echo $_SESSION['error']; ?></center></strong>
<?php unset($_SESSION['error']); ?>
<meta http-equiv="Refresh" content="3; url='<?php echo $alertpg; ?>'" />
</div>
<?php } ?>
<?php
if (!empty($_SESSION['success'])) {
?>
<div class="alert alert-success alert-container" id="alert">
<strong><center><?php echo $_SESSION['success']; ?></center></strong>
<?php unset($_SESSION['success']); ?>
<meta http-equiv="Refresh" content="3; url='<?php echo $alertpg; ?>'" />
</div>
<?php } ?>
<?php
if (!empty($_SESSION['FullSuccess'])) {
?>
<div class="alert alert-success alert-container" id="alert">
<strong><center><?php echo $_SESSION['FullSuccess']; ?></center></strong>
<?php unset($_SESSION['FullSuccess']); ?>
</div>
<?php } ?>
<?php if (!empty($_SESSION['SuccessMessage'])) { ?>
<div class="alert alert-success alert-container" id="alert">
<strong><?php echo htmlentities($_SESSION['SuccessMessage']) ?></strong>
<?php unset($_SESSION['SuccessMessage']); ?>
<meta http-equiv="Refresh" content="3; url='<?php echo $alertpg; ?>'" />
</div>
<?php } ?>
<?php if (!empty($_SESSION['ErrorMessage'])) { ?>
<div class="alert alert-warning alert-container" id="alert">
<strong><?php echo htmlentities($_SESSION['ErrorMessage']) ?></strong>
<?php unset($_SESSION['ErrorMessage']); ?>
<meta http-equiv="Refresh" content="3; url='<?php echo $alertpg; ?>'" />
</div>
<?php } ?>
<?php if (!empty($_SESSION['AlertMessage'])) { ?>
<div class="alert alert-danger alert-container" id="alert">
<strong><?php echo htmlentities($_SESSION['AlertMessage']) ?></strong>
<?php unset($_SESSION['AlertMessage']); ?>
<meta http-equiv="Refresh" content="3; url='<?php echo $alertpg; ?>'" />
</div>
<?php } ?>
<?php if (!empty($_SESSION['error'])) { ?>
<div class="alert alert-danger alert-container" id="alert">
<strong><center><?php echo $_SESSION['error']; ?></center></strong>
<?php unset($_SESSION['error']); ?>
<meta http-equiv="Refresh" content="3; url='<?php echo $alertpg; ?>'" />
</div>
<?php } ?>
<?php
if (!empty($_SESSION['success'])) {
?>
<div class="alert alert-success alert-container" id="alert">
<strong><center><?php echo $_SESSION['success']; ?></center></strong>
<?php unset($_SESSION['success']); ?>
<meta http-equiv="Refresh" content="3; url='<?php echo $alertpg; ?>'" />
</div>
<?php } ?>
<?php
if (!empty($_SESSION['FullSuccess'])) {
?>
<div class="alert alert-success alert-container" id="alert">
<strong><center><?php echo $_SESSION['FullSuccess']; ?></center></strong>
<?php unset($_SESSION['FullSuccess']); ?>
</div>
<?php } ?>
</div>
</div>

0 comments on commit 4dbb86d

Please sign in to comment.