diff --git a/arrivals.php b/arrivals.php
index cb06cb9..5715a91 100644
--- a/arrivals.php
+++ b/arrivals.php
@@ -25,56 +25,53 @@ include("functions.php");
Swansea Daily PPR
diff --git a/assets/WBCAFE.jpg b/assets/WBCAFE.jpg
new file mode 100644
index 0000000..508eb6b
Binary files /dev/null and b/assets/WBCAFE.jpg differ
diff --git a/assets/flightImg.png b/assets/flightImg.png
new file mode 100644
index 0000000..52c93f1
Binary files /dev/null and b/assets/flightImg.png differ
diff --git a/assets/logo.png b/assets/logo.png
new file mode 100644
index 0000000..1a16a89
Binary files /dev/null and b/assets/logo.png differ
diff --git a/functions.php b/functions.php
index 085f234..8b639c4 100644
--- a/functions.php
+++ b/functions.php
@@ -16,7 +16,7 @@ $mailPort = 465;
$mailFromAddress = 'noreply@swansea-airport.wales';
$mailFromName = 'Swansea Airport';
-$baseUrl = "https://ppr.swansea-airport.wales/dev";
+$baseUrl = "https://pprdev.swansea-airport.wales";
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
@@ -150,7 +150,7 @@ function generatePprEmail($entryId, $email, $ac_reg) {
global $conn, $mailHost, $mailSMTPAuth, $mailUsername, $mailPassword, $mailPort, $baseUrl, $mailFromAddress, $mailFromName;
if (!class_exists('PHPMailer\PHPMailer\PHPMailer')) {
- require '../vendor/autoload.php';
+ require 'vendor/autoload.php';
}
$token = generateSecureToken($email, $entryId);
diff --git a/public.css b/public.css
new file mode 100644
index 0000000..ec20a0e
--- /dev/null
+++ b/public.css
@@ -0,0 +1,106 @@
+/* Overall page styling */
+body {
+ margin: 0;
+ font-family: Arial, sans-serif;
+ display: grid;
+ grid-template-rows: auto 1fr auto;
+ grid-template-columns: 1fr;
+ height: 100vh;
+ font-size: 30px; /* Increased font size */
+ }
+
+ /* Header styles */
+ header {
+ background-color: #333;
+ color: white;
+ padding: 20px;
+ text-align: center;
+ img.left-image {
+ position: absolute;
+ top: 0;
+ left: 0;
+ height: auto;
+ }
+ img.right-image {
+ position: absolute;
+ top: 0;
+ right: 0;
+ width: 9%;
+ height: auto;
+ }
+ }
+
+ /* Main section styles */
+ main {
+ display: grid;
+ grid-template-columns: 1fr 1fr; /* Two equal-width columns */
+ gap: 20px;
+ padding: 20px;
+ overflow-y: auto;
+ }
+
+ /* Table styles */
+ table {
+ width: 100%;
+ border-collapse: collapse;
+ margin: 0;
+ border: 1px solid #ccc;
+ }
+
+ th, td {
+ padding: 12px;
+ text-align: left;
+ border: 1px solid #ccc;
+ }
+
+ th {
+ background-color: #f4f4f4;
+ }
+
+ tr:nth-child(even) {
+ background-color: #d3d3d3;
+ }
+
+ /* Footer styles */
+ footer {
+ background-color: #333;
+ color: white;
+ text-align: center;
+ padding: 10px 0;
+ position: relative;
+ overflow: hidden;
+ }
+
+ /* Marquee container */
+ .marquee {
+ display: inline-block;
+ white-space: nowrap;
+ padding-right: 100%; /* This makes the text start out of view */
+ animation: scroll-left 20s linear infinte;
+ }
+
+ /* Keyframes for scrolling animation */
+ @keyframes scroll-left {
+ from {
+ transform: translateX(100%);
+ }
+ to {
+ transform: translateX(-100%);
+ }
+ }
+
+ /* Marquee text styling */
+ .marquee-text {
+ font-size: 18px;
+ font-weight: bold;
+ color: #f4f4f4;
+ padding-left: 50px;
+ text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
+ }
+
+ /* Responsive adjustments */
+ @media (max-width: 768px) {
+ main {
+ grid-template-columns: 1fr; /* Stack columns on smaller screens */
+ }
+ }
\ No newline at end of file
diff --git a/public.php b/public.php
new file mode 100644
index 0000000..05c6856
--- /dev/null
+++ b/public.php
@@ -0,0 +1,116 @@
+query($arrivalsSql);
+
+// Fetch departures for today's date with status 'LANDED'
+$departuresSql = "SELECT ac_reg, ac_type, out_to, TIME_FORMAT(etd, '%H:%i') AS due
+ FROM submitted
+ WHERE DATE(etd) = CURDATE() AND status = 'LANDED'
+ ORDER BY etd ASC";
+$departuresResult = $conn->query($departuresSql);
+?>
+
+
+
+
+
+
+
+ Swansea Airport - Arrivals & Departures
+
+
+
+
+
+ Arrivals/Departures Information
+
+
+
+
+
+
+
Arrivals
+
+
+
+ | Registration |
+ Aircraft Type |
+ From |
+ Due |
+
+
+
+ num_rows > 0): ?>
+ fetch_assoc()): ?>
+
+ | = htmlspecialchars($row['ac_reg']) ?> |
+ = htmlspecialchars($row['ac_type']) ?> |
+ = htmlspecialchars($row['in_from']) ?> |
+ = htmlspecialchars($row['due']) ?> |
+
+
+
+
+ | No arrivals found. |
+
+
+
+
+
+
+
+
+
Departures
+
+
+
+ | Registration |
+ Aircraft Type |
+ To |
+ Due |
+
+
+
+ num_rows > 0): ?>
+ fetch_assoc()): ?>
+
+ | = htmlspecialchars($row['ac_reg']) ?> |
+ = htmlspecialchars($row['ac_type']) ?> |
+ = htmlspecialchars($row['out_to']) ?> |
+ = htmlspecialchars($row['due']) ?> |
+
+
+
+
+ | No departures found. |
+
+
+
+
+
+
+
+
+
+
+
+close();
+?>