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

59 lines
2.7 KiB
PHP

<?php
// includes/footer.php
$custom_footer = get_setting($pdo_sys, 'footer_text');
$year_th = date('Y') + 543;
if ($custom_footer) {
if (strpos($custom_footer, '{year}') !== false) {
$footer_text = str_replace('{year}', $year_th, $custom_footer);
} else {
$footer_text = 'สงวนลิขสิทธิ์ &copy; ' . $year_th . ' ' . htmlspecialchars($custom_footer);
}
} else {
$footer_text = 'สงวนลิขสิทธิ์ &copy; ' . $year_th . ' MOPH System';
}
?>
<!-- App Footer -->
<footer class="app-footer d-flex align-items-center justify-content-center mt-auto" style="min-height: 73px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.85rem; background-color: var(--bg-surface-hover);">
<?= $footer_text ?>
</footer>
</div> <!-- End Main Content -->
</div> <!-- End Wrapper -->
<!-- Command Palette -->
<div id="commandPalette">
<div class="cmd-palette-box">
<div class="cmd-input-wrap">
<i class="bi bi-search"></i>
<input type="text" id="cmdInput" placeholder="Search commands..." autocomplete="off">
</div>
<div class="cmd-list">
<div class="cmd-item" onclick="window.location.href='dashboard.php'"><i class="bi bi-grid-1x2-fill"></i> Go to Dashboard</div>
<div class="cmd-item" onclick="window.location.href='requests.php'"><i class="bi bi-calendar-event"></i> ตารางห้องประชุม (Requests)</div>
<div class="cmd-item" onclick="window.location.href='logs.php'"><i class="bi bi-activity"></i> Activity Log</div>
<div class="cmd-item" onclick="window.location.href='settings.php'"><i class="bi bi-gear-fill"></i> Settings</div>
<div class="cmd-item text-danger" onclick="window.location.href='auth/logout.php'"><i class="bi bi-box-arrow-right"></i> Logout</div>
</div>
</div>
</div>
<!-- Toast Container -->
<div id="toastContainer" class="toast-container p-3"></div>
<!-- Bootstrap 5 JS Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<!-- SweetAlert2 -->
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<!-- Chart.js -->
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<!-- DataTables & jQuery -->
<script src="https://code.jquery.com/jquery-3.7.0.min.js"></script>
<script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.13.6/js/dataTables.bootstrap5.min.js"></script>
<!-- App Scripts -->
<script src="assets/js/app.js"></script>
<script src="assets/js/dashboard.js"></script>
</body>
</html>