From 4ad385c60a4235a866ae57b57cbb8fe89ac3ed1f Mon Sep 17 00:00:00 2001 From: TiaraChontesa Date: Wed, 3 Jun 2026 05:07:26 +0000 Subject: [PATCH] Upload files to "includes" --- includes/footer.php | 35 +++++ includes/sidebar.php | 318 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 353 insertions(+) create mode 100644 includes/footer.php create mode 100644 includes/sidebar.php diff --git a/includes/footer.php b/includes/footer.php new file mode 100644 index 0000000..e7a4c6c --- /dev/null +++ b/includes/footer.php @@ -0,0 +1,35 @@ + + + + + + + \ No newline at end of file diff --git a/includes/sidebar.php b/includes/sidebar.php new file mode 100644 index 0000000..8a9fa37 --- /dev/null +++ b/includes/sidebar.php @@ -0,0 +1,318 @@ + 'Administrator', + 'pemerintah' => 'Pemerintah', + 'pengurus' => 'Operator Lembaga', + 'relawan' => 'Relawan', +]; + +// Badge bencana aktif & konfirmasi menunggu +$bAktif = 0; +$menungguKonf = 0; +if (isset($conn)) { + $bAktif = $conn->query("SELECT COUNT(*) AS c FROM bencana WHERE status='Aktif'")->fetch_assoc()['c'] ?? 0; + if (in_array($current_role, ['pengurus','relawan'])) { + $menungguKonf = $conn->query("SELECT COUNT(*) AS c FROM bantuan_tersalur WHERE status_konfirmasi='Menunggu'")->fetch_assoc()['c'] ?? 0; + } +} +?> + + + + + +<?= htmlspecialchars($pageTitle ?? 'WebGIS Poverty Mapping') ?> + + + + + + + +
+ + + + + +
+
+
+ + +
+
+ +
+
+
+
\ No newline at end of file