Portal - allow editing client contacts, few tweaks to header incl session notifications

This commit is contained in:
wrongecho
2024-09-05 15:16:11 +01:00
parent a23005babe
commit 49fddd4f1e
6 changed files with 171 additions and 6 deletions

View File

@@ -112,3 +112,22 @@ header("X-Frame-Options: DENY"); // Legacy
<hr>
</div>
</div>
<?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 nullable_htmlentities($_SESSION['alert_message']); ?>
<button class='close' data-dismiss='alert'>&times;</button>
</div>
<?php
unset($_SESSION['alert_type']);
unset($_SESSION['alert_message']);
}
?>