diff --git a/action.php b/action.php index c28383d..a5504f9 100644 --- a/action.php +++ b/action.php @@ -281,21 +281,21 @@ function opDetail() { $row = $result->fetch_assoc(); echo '
'; echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; echo '
Aircraft Reg:' . $row['ac_reg'] . '
Aircraft Type:' . $row['ac_type'] . '
Callsign:' . $row['ac_call'] . '
Captain\'s Name:' . $row['captain'] . '
Arriving From:' . $row['in_from'] . '
POB IN:' . $row['pob_in'] . '
ETA:
Fuel Required:' . $row['fuel'] . '
POB OUT:
Outbound To:' . $row['out_to'] . '
ETD:
Email Address:' . $row['email'] . '
Phone:' . $row['phone'] . '
Notes:' . $row['notes'] . '
PPR created at:' . $row['submitted_dt'] . ' by ' . $row['created_by'] . '
Aircraft Reg' . $row['ac_reg'] . '
Aircraft Type' . $row['ac_type'] . '
Callsign' . $row['ac_call'] . '
Captain' . $row['captain'] . '
Arriving From:' . $row['in_from'] . '
POB IN
ETA
Fuel' . $row['fuel'] . '
POB OUT
Outbound To' . $row['out_to'] . '
ETD
Email Address' . $row['email'] . '
Phone' . $row['phone'] . '
Notes' . $row['notes'] . '
PPR created' . $row['submitted_dt'] . ' by ' . $row['created_by'] . '
'; // Fetch journal entries diff --git a/arrive.png b/assets/arrive.png similarity index 100% rename from arrive.png rename to assets/arrive.png diff --git a/cancel-icon.webp b/assets/cancel-icon.webp similarity index 100% rename from cancel-icon.webp rename to assets/cancel-icon.webp diff --git a/depart.png b/assets/depart.png similarity index 100% rename from depart.png rename to assets/depart.png diff --git a/edit.png b/assets/edit.png similarity index 100% rename from edit.png rename to assets/edit.png diff --git a/assets/egfh.webp b/assets/egfh.webp new file mode 100644 index 0000000..8da380e Binary files /dev/null and b/assets/egfh.webp differ diff --git a/land.webp b/assets/land.webp similarity index 100% rename from land.webp rename to assets/land.webp diff --git a/functions.php b/functions.php index a3c834e..a86ae5a 100644 --- a/functions.php +++ b/functions.php @@ -172,9 +172,11 @@ function generatePprEmail($entryId, $email, $ac_reg) { $mail->isHTML(true); $mail->Subject = "PPR Confirmation for " . $ac_reg; $mail->Body = " -

This is to confirm we have received your PPR. To view or cancel your PPR please click the button:

+ +

Dear Pilot,

This is to confirm we have received your PPR information, and we look forward to welcoming you at Swansea Airport.

Please review our arrival procedures prior to your arrival.

To view or cancel your PPR please click the button:

View PPR - "; +

Swansea Airport + "; $mail->send(); echo "Email sent successfully!"; diff --git a/input.html b/input.html index 00595ab..f9dafad 100644 --- a/input.html +++ b/input.html @@ -137,24 +137,24 @@

- +
- +
- +
- +
- +
@@ -166,7 +166,7 @@
- +
@@ -188,11 +188,11 @@
- +
- +
diff --git a/testhook.json b/testhook.json index 3463d50..83e0ff7 100644 --- a/testhook.json +++ b/testhook.json @@ -1,65 +1,60 @@ { - "form_title": "PPR Request Form", - "form_slug": "ppr-request-form-joclld", + "form_title": "DEV DEV DEV PPR Request Form", + "form_slug": "ppr-request-form-joclld-1", "submission": { - "Aircraft Registration": "G-BJAJ", - "Aircraft Type": "AA5", - "Callsign": "TEST1", - "Captain or PIC Name": "TESTY MCTESTFACE", - "Arriving From": "Wellesbourne", - "ETA": "11\/02\/2025 14:33", - "POB Inbound": "2", - "Fuel Required": "100LL", - "Departing To": "Pembrey", - "ETD": "12\/02\/2025 00:00", - "POB Outbound": "2", + "Aircraft Registration": "G-LORD", + "Aircraft Type": "RV-8", + "Captain or PIC Name": "The Lord Rotherwick", + "Arriving From": "at Lodge", + "ETA": "15\/03\/2025 17:22", + "POB Inbound": "1", + "Fuel Required": "None", + "Departing To": "Ranger\u2019s Lodge", + "ETD": "20\/03\/2025 00:00", + "POB Outbound": "1", "Email": "james@pattinson.org", - "Phone Number": "+441212121212", - "Additional Information": "Here are some notes man" + "Phone Number": "+44123123123", + "Additional Information": "I am resending my PPR as I didn\u2019t receive a confirmation from my PPR yesterday." }, "data": { "617dd0cd-2d17-4d7f-826b-5348afdb30b3": { - "value": "G-BJAJ", + "value": "G-LORD", "name": "Aircraft Registration" }, "148a55d8-5357-49a3-b9aa-2a5d4dc64173": { - "value": "AA5", + "value": "RV-8", "name": "Aircraft Type" }, - "52d7bc90-9d26-48a1-82db-b91b4ccd2f92": { - "value": "TEST1", - "name": "Callsign" - }, "49b2de0d-5bd6-4b0c-86dd-b18b85f8b8ff": { - "value": "TESTY MCTESTFACE", + "value": "The Lord Rotherwick", "name": "Captain or PIC Name" }, "4b4f7ecd-f80c-4e86-a7ab-6fadb3220df8": { - "value": "Wellesbourne", + "value": "Private strip at Ranger\u2019s", "name": "Arriving From" }, "ca4ac44f-0388-4a70-a072-38276ed2ac13": { - "value": "14\/03\/2025 14:33", + "value": "15\/03\/2025 17:22", "name": "ETA" }, "6fc47c54-7383-48fd-93fc-d8080f5ed8f5": { - "value": "2", + "value": "1", "name": "POB Inbound" }, "d153c8a5-8345-4e6a-abfd-cf8adcc06f2d": { - "value": "100LL", + "value": "None", "name": "Fuel Required" }, "ba95fd3f-1ec0-4553-95d3-a0b6a850738d": { - "value": "Pembrey", + "value": "Ranger\u2019s Lodge", "name": "Departing To" }, "53d60abd-eb75-4b1f-92b6-5d47d26367ec": { - "value": "12\/02\/2025 00:00", + "value": "20\/03\/2025 00:00", "name": "ETD" }, "d1ac0860-31f4-4914-9d0b-cae42dfc7eda": { - "value": "2", + "value": "1", "name": "POB Outbound" }, "0198c86c-edd1-4aaf-93a1-d68f8fc8c365": { @@ -67,11 +62,11 @@ "name": "Email" }, "e40ebc2d-887b-42b3-931d-c981c76b0c20": { - "value": "+441212121212", + "value": "+44123123123", "name": "Phone Number" }, "73d26c2c-1d3d-44e2-82fc-3a1a2600c393": { - "value": "Here are some notes man", + "value": "I am resending my PPR as I didn\u2019t receive a confirmation from my PPR yesterday.", "name": "Additional Information" } }, diff --git a/tower.php b/tower.php index c734919..fc8dae5 100644 --- a/tower.php +++ b/tower.php @@ -319,7 +319,7 @@ if ($result->num_rows > 0) { } } } - echo ''; + echo ''; echo ''; } @@ -375,7 +375,7 @@ if ($result->num_rows > 0) { } } } - echo ''; + echo ''; echo ''; }