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>
|
</header>
|
||||||
|
|
||||||
<?php if ($message): ?>
|
<?php if ($message): ?>
|
||||||
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
<script>
|
||||||
<?= $message ?>
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
|
let msg = <?= json_encode($message) ?>;
|
||||||
</div>
|
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 endif; ?>
|
||||||
|
|
||||||
<?php if ($page === 'dashboard'): ?>
|
<?php if ($page === 'dashboard'): ?>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user