Autosave: 20260217-084155
This commit is contained in:
parent
4ce50d5774
commit
7788a6a03f
BIN
assets/pasted-20260217-083613-64f678ce.png
Normal file
BIN
assets/pasted-20260217-083613-64f678ce.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
25
index.php
25
index.php
@ -1408,10 +1408,27 @@ $projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Accounting System';
|
||||
</header>
|
||||
|
||||
<?php if ($message): ?>
|
||||
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
||||
<?= $message ?>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
|
||||
</div>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
let msg = <?= json_encode($message) ?>;
|
||||
let type = 'success';
|
||||
let title = 'Success';
|
||||
|
||||
if (msg.toLowerCase().includes('error') || msg.toLowerCase().includes('failed')) {
|
||||
type = 'error';
|
||||
title = 'Error';
|
||||
}
|
||||
|
||||
Swal.fire({
|
||||
icon: type,
|
||||
title: title,
|
||||
text: msg,
|
||||
timer: 3000,
|
||||
timerProgressBar: true,
|
||||
showConfirmButton: false
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($page === 'dashboard'): ?>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user