From 5077445d5dc909b655df9c92d540d22492ef9462 Mon Sep 17 00:00:00 2001 From: James Pattinson Date: Sat, 1 Mar 2025 21:05:36 +0000 Subject: [PATCH] Filtering of status --- tower.php | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 66 insertions(+), 5 deletions(-) diff --git a/tower.php b/tower.php index 8d7383f..1950a8d 100644 --- a/tower.php +++ b/tower.php @@ -27,6 +27,28 @@ require_db_auth(); Swansea Daily PPR @@ -124,6 +162,15 @@ require_db_auth();

Swansea Inbound PPR

+
+ + +
+ query($sql); @@ -157,7 +204,7 @@ if ($result->num_rows > 0) { // Output table headers (assuming column names are known) $fields = $result->fetch_fields(); foreach ($fields as $field) { - if ($field->name != 'id' && $field->name != 'ac_call') { + if ($field->name != 'status' && $field->name != 'id' && $field->name != 'ac_call') { echo '' . htmlspecialchars($field->name ?? '') . ''; } @@ -170,9 +217,9 @@ if ($result->num_rows > 0) { // Output table rows while ($row = $result->fetch_assoc()) { - echo ''; + echo ''; foreach ($row as $key => $value) { - if ($key != 'id' && $key != 'ac_call') { + if ($key != 'status' && $key != 'id' && $key != 'ac_call') { if ($key == 'ac_reg' && $row['ac_call'] != NULL) { echo '' . htmlspecialchars($row['ac_call'] ?? '') . "
" . $value . ''; } else { @@ -180,7 +227,7 @@ if ($result->num_rows > 0) { } } } - echo ''; + echo '' . $row['status'] .'
'; echo ''; } @@ -209,6 +256,20 @@ $conn->close();