From 15b2d36bf643191f9a51e33a81b6be7e5afc2d7d Mon Sep 17 00:00:00 2001 From: James Pattinson Date: Mon, 17 Mar 2025 20:37:43 +0000 Subject: [PATCH] Notes on main screen --- tower.php | 53 ++++++++++------------------------------------------- 1 file changed, 10 insertions(+), 43 deletions(-) diff --git a/tower.php b/tower.php index 07884d9..beca3c4 100644 --- a/tower.php +++ b/tower.php @@ -140,35 +140,6 @@ require_db_auth(); cursor: pointer; } - /* Add this CSS for the red triangle */ - .red-triangle { - position: relative; - } - - .red-triangle::before { - content: ""; - position: absolute; - top: 0; - left: 0; - width: 0; - height: 0; - border-left: 10px solid red; - border-bottom: 10px solid transparent; - } - - .red-triangle:hover::after { - content: attr(data-notes); - position: absolute; - top: 20px; - left: 0; - background: #fff; - border: 1px solid #ddd; - padding: 5px; - border-radius: 5px; - white-space: nowrap; - z-index: 10; - } - @@ -240,7 +211,7 @@ function openDetail(id) { --> -
Inbound Aircraft
+
Inbound PPR
connect_error) { } // Define your SQL query -$sql = "SELECT id, status, ac_reg, ac_type, ac_call, TIME_FORMAT(eta,'%H:%i') AS ETA, fuel, in_from, pob_in, notes FROM submitted WHERE DATE(eta) = CURDATE() AND (status = 'NEW' OR status = 'CANCELED') ORDER BY eta ASC;"; // Replace with your table name +$sql = "SELECT id, status, ac_reg, ac_type, ac_call, TIME_FORMAT(eta,'%H:%i') AS ETA, fuel, in_from, pob_in FROM submitted WHERE DATE(eta) = CURDATE() AND (status = 'NEW' OR status = 'CANCELED') ORDER BY eta ASC;"; // Replace with your table name // Execute the query $result = $conn->query($sql); @@ -268,7 +239,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 != 'notes' && $field->name != 'status' && $field->name != 'id' && $field->name != 'ac_call') { + if ($field->name != 'status' && $field->name != 'id' && $field->name != 'ac_call') { echo '' . htmlspecialchars($field->name ?? '') . ''; } @@ -283,14 +254,12 @@ if ($result->num_rows > 0) { while ($row = $result->fetch_assoc()) { echo ''; foreach ($row as $key => $value) { - if ($key != 'notes' && $key != 'status' && $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 if ($key == 'ac_reg' && !empty($row['notes'])) { - echo '' . htmlspecialchars($value ?? '') . ''; } else { echo '' . htmlspecialchars($value ?? '') . ''; - } + } } } echo ''; @@ -304,14 +273,14 @@ if ($result->num_rows > 0) { ?> -
Visiting Aircraft
+
Booking Out
query($sql); @@ -326,7 +295,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 != 'notes' && $field->name != 'status' && $field->name != 'id' && $field->name != 'ac_call') { + if ($field->name != 'status' && $field->name != 'id' && $field->name != 'ac_call') { echo '' . htmlspecialchars($field->name ?? '') . ''; } @@ -341,14 +310,12 @@ if ($result->num_rows > 0) { while ($row = $result->fetch_assoc()) { echo ''; foreach ($row as $key => $value) { - if ($key != 'notes' && $key != 'status' && $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 if ($key == 'ac_reg' && !empty($row['notes'])) { - echo '' . htmlspecialchars($value ?? '') . ''; } else { echo '' . htmlspecialchars($value ?? '') . ''; - } + } } } echo '';