From a5116515361f05bf3124f908aa5c4fdc9ef9c417 Mon Sep 17 00:00:00 2001 From: James Shiffer Date: Fri, 25 Feb 2022 21:49:32 -0800 Subject: [PATCH] Add volunteer, sign request forms, about portrait, paid for declaration --- inc/footer.php | 3 +- inc/header.php | 2 + public/admin/index.php | 86 ++++++++++++++++++++++++++++++ public/assets/portrait.png | Bin 0 -> 210507 bytes public/css/main.css | 35 +++++++++--- public/index.php | 68 ++++++++++++++++++++++-- public/js/app.js | 2 + public/requestSign.php | 80 ++++++++++++++++++++++++++++ public/volunteer.php | 106 +++++++++++++++++++++++++++++++++++++ 9 files changed, 369 insertions(+), 13 deletions(-) create mode 100644 public/assets/portrait.png create mode 100644 public/requestSign.php create mode 100644 public/volunteer.php diff --git a/inc/footer.php b/inc/footer.php index 7fb2bd6..10f48f7 100755 --- a/inc/footer.php +++ b/inc/footer.php @@ -1,2 +1,3 @@ - +

PAID FOR BY MILES C. LINDEN FOR CITY COUNCIL DISTRICT THREE

+ diff --git a/inc/header.php b/inc/header.php index ad88e5a..a7be31e 100755 --- a/inc/header.php +++ b/inc/header.php @@ -13,7 +13,9 @@ diff --git a/public/admin/index.php b/public/admin/index.php index 9a47a40..098f383 100755 --- a/public/admin/index.php +++ b/public/admin/index.php @@ -30,6 +30,28 @@ $messages = []; while ($row = $result->fetch_assoc()) { $messages[] = $row; } + +$result = $conn->query("SELECT * FROM volunteers"); +if (!$result) { + http_response_code(500); + die("Error retrieving volunteers: {$conn->error}"); +} + +$volunteers = []; +while ($row = $result->fetch_assoc()) { + $volunteers[] = $row; +} + +$result = $conn->query("SELECT * FROM signs"); +if (!$result) { + http_response_code(500); + die("Error retrieving sign requests: {$conn->error}"); +} + +$signs = []; +while ($row = $result->fetch_assoc()) { + $signs[] = $row; +} ?> @@ -116,6 +138,70 @@ while ($row = $result->fetch_assoc()) { ?> +
+

Volunteers

+ + + + + + + + + + + + + + + + + + + + + + + +
NameEmailPhonePositionJoin DateActions
+ + +
+
+
+

Sign Requests

+ + + + + + + + + + + + + + + + + + + + +
AddressQuantityWire stake?Fulfilled?
+ +
+