From 1e63adf9d5ee4b20f54a1c8c1360e99abe797245 Mon Sep 17 00:00:00 2001 From: James Pattinson Date: Wed, 12 Mar 2025 11:43:06 +0000 Subject: [PATCH] Added basic field editing --- action.php | 73 +++++++++++++++++++++++++++++++++++++++++++++++-- input.html | 16 ++++++++++- newppr.php | 15 ++++++++-- tower.php | 8 ++++-- update_data.php | 52 +++++++++++++++++++++++++++++++++++ 5 files changed, 155 insertions(+), 9 deletions(-) create mode 100644 update_data.php diff --git a/action.php b/action.php index 9596856..7ba7014 100644 --- a/action.php +++ b/action.php @@ -71,9 +71,76 @@ button:hover { background-color: #0056b3; } + .editable { + cursor: pointer; + padding: 5px; + border-radius: 3px; + transition: background 0.3s; + } + .editable:hover { + background:rgb(226, 43, 43); + } + Fuel Required: " . $row['fuel'] . "

"; - echo "

POB OUT: " . $row['pob_out'] . "

"; - echo "

Outbound To: " . $row['out_to'] . "

"; - echo "

ETD: " . $row['etd'] . "

"; + echo "

POB OUT:" . $row['pob_out'] . "

"; + echo "

Outbound To:" . $row['out_to'] . "

"; + echo "

ETD:" . $row['etd'] . "

"; echo "

Email Address: " . $row['email'] . "

"; diff --git a/input.html b/input.html index b9e6a44..00595ab 100644 --- a/input.html +++ b/input.html @@ -8,6 +8,7 @@ let now = new Date(); let localDatetime = now.toISOString().slice(0, 16); // Format for datetime-local input document.getElementById("eta").value = localDatetime; + document.getElementById("etd").value = localDatetime; }); function fetchResults() { @@ -156,13 +157,26 @@
- +
+
+ + +
+
+ + +
+
+ + + +