Skip to content

Commit 4dbb86d

Browse files
authored
Update alerts.php
1 parent 13536a0 commit 4dbb86d

File tree

1 file changed

+45
-47
lines changed

1 file changed

+45
-47
lines changed

elements/alerts.php

Lines changed: 45 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,49 @@
11
<div class="container">
22
<div class="row pt-2">
3-
<?php if (!empty($_SESSION['SuccessMessage'])) { ?>
4-
<div class="alert alert-success alert-container" id="alert">
5-
<strong><?php echo htmlentities($_SESSION['SuccessMessage']) ?></strong>
6-
<?php unset($_SESSION['SuccessMessage']); ?>
7-
<meta http-equiv="Refresh" content="3; url='<?php echo $alertpg; ?>'" />
8-
</div>
9-
<?php } ?>
10-
<?php if (!empty($_SESSION['ErrorMessage'])) { ?>
11-
<div class="alert alert-warning alert-container" id="alert">
12-
<strong><?php echo htmlentities($_SESSION['ErrorMessage']) ?></strong>
13-
<?php unset($_SESSION['ErrorMessage']); ?>
14-
<meta http-equiv="Refresh" content="3; url='<?php echo $alertpg; ?>'" />
15-
</div>
16-
<?php } ?>
17-
<?php if (!empty($_SESSION['AlertMessage'])) { ?>
18-
<div class="alert alert-danger alert-container" id="alert">
19-
<strong><?php echo htmlentities($_SESSION['AlertMessage']) ?></strong>
20-
<?php unset($_SESSION['AlertMessage']); ?>
21-
<meta http-equiv="Refresh" content="3; url='<?php echo $alertpg; ?>'" />
22-
</div>
23-
<?php } ?>
24-
<?php
25-
if (!empty($_SESSION['error'])) {
26-
?>
27-
<div class="alert alert-danger alert-container" id="alert">
28-
<strong><center><?php echo $_SESSION['error']; ?></center></strong>
29-
<?php unset($_SESSION['error']); ?>
30-
<meta http-equiv="Refresh" content="3; url='<?php echo $alertpg; ?>'" />
31-
</div>
32-
<?php } ?>
33-
<?php
34-
if (!empty($_SESSION['success'])) {
35-
?>
36-
<div class="alert alert-success alert-container" id="alert">
37-
<strong><center><?php echo $_SESSION['success']; ?></center></strong>
38-
<?php unset($_SESSION['success']); ?>
39-
<meta http-equiv="Refresh" content="3; url='<?php echo $alertpg; ?>'" />
40-
</div>
41-
<?php } ?>
42-
<?php
43-
if (!empty($_SESSION['FullSuccess'])) {
44-
?>
45-
<div class="alert alert-success alert-container" id="alert">
46-
<strong><center><?php echo $_SESSION['FullSuccess']; ?></center></strong>
47-
<?php unset($_SESSION['FullSuccess']); ?>
48-
</div>
49-
<?php } ?>
3+
<?php if (!empty($_SESSION['SuccessMessage'])) { ?>
4+
<div class="alert alert-success alert-container" id="alert">
5+
<strong><?php echo htmlentities($_SESSION['SuccessMessage']) ?></strong>
6+
<?php unset($_SESSION['SuccessMessage']); ?>
7+
<meta http-equiv="Refresh" content="3; url='<?php echo $alertpg; ?>'" />
8+
</div>
9+
<?php } ?>
10+
<?php if (!empty($_SESSION['ErrorMessage'])) { ?>
11+
<div class="alert alert-warning alert-container" id="alert">
12+
<strong><?php echo htmlentities($_SESSION['ErrorMessage']) ?></strong>
13+
<?php unset($_SESSION['ErrorMessage']); ?>
14+
<meta http-equiv="Refresh" content="3; url='<?php echo $alertpg; ?>'" />
15+
</div>
16+
<?php } ?>
17+
<?php if (!empty($_SESSION['AlertMessage'])) { ?>
18+
<div class="alert alert-danger alert-container" id="alert">
19+
<strong><?php echo htmlentities($_SESSION['AlertMessage']) ?></strong>
20+
<?php unset($_SESSION['AlertMessage']); ?>
21+
<meta http-equiv="Refresh" content="3; url='<?php echo $alertpg; ?>'" />
22+
</div>
23+
<?php } ?>
24+
<?php if (!empty($_SESSION['error'])) { ?>
25+
<div class="alert alert-danger alert-container" id="alert">
26+
<strong><center><?php echo $_SESSION['error']; ?></center></strong>
27+
<?php unset($_SESSION['error']); ?>
28+
<meta http-equiv="Refresh" content="3; url='<?php echo $alertpg; ?>'" />
29+
</div>
30+
<?php } ?>
31+
<?php
32+
if (!empty($_SESSION['success'])) {
33+
?>
34+
<div class="alert alert-success alert-container" id="alert">
35+
<strong><center><?php echo $_SESSION['success']; ?></center></strong>
36+
<?php unset($_SESSION['success']); ?>
37+
<meta http-equiv="Refresh" content="3; url='<?php echo $alertpg; ?>'" />
38+
</div>
39+
<?php } ?>
40+
<?php
41+
if (!empty($_SESSION['FullSuccess'])) {
42+
?>
43+
<div class="alert alert-success alert-container" id="alert">
44+
<strong><center><?php echo $_SESSION['FullSuccess']; ?></center></strong>
45+
<?php unset($_SESSION['FullSuccess']); ?>
46+
</div>
47+
<?php } ?>
5048
</div>
5149
</div>

0 commit comments

Comments
 (0)