Files
2026-09-16 23:20:08 +07:00

38 lines
1.3 KiB
PHP

<?php if(isLoggedIn()): ?>
</main>
</div> <!-- End Main Content Flex Row -->
<!-- Fixed Bottom Footer (Full Width) -->
<footer class="bg-white border-t border-slate-200/80 p-3 text-center flex-shrink-0 z-40 shadow-sm relative w-full">
<p class="text-[10px] text-slate-400 font-bold tracking-wider">
&copy; <?php echo date('Y'); ?> <?php echo htmlspecialchars(getSetting($pdo, 'footer_text', 'ศูนย์รับแจ้งเหตุและสั่งการนเรนทรอ่าวไทย ระบบบริหารจัดการ. สงวนลิขสิทธิ์.')); ?>
</p>
</footer>
<?php endif; ?>
<!-- Initialize Lucide Icons -->
<script>
lucide.createIcons();
</script>
<?php
// Flash Messages for SweetAlert2
if (isset($_SESSION['flash'])) {
$flash = $_SESSION['flash'];
echo "<script>
Swal.fire({
icon: '{$flash['type']}',
title: '{$flash['title']}',
text: '{$flash['message']}',
confirmButtonColor: '#4f46e5',
customClass: {
container: 'font-sans'
}
});
</script>";
unset($_SESSION['flash']);
}
?>
</body>
</html>