- const now = new Date();
- const currentTime = now.toISOString().slice(11, 16); // Extract HH:MM
-
- Swal.fire({
- title: "Land Aircraft at time",
- html: ``,
- icon: "info",
- showCancelButton: true,
- confirmButtonColor: "#3085d6",
- cancelButtonColor: "#d33",
- confirmButtonText: "Landed",
- preConfirm: () => {
- const time = document.getElementById("timepicker").value;
- if (!time) {
- Swal.showValidationMessage("Please select a time");
- }
- return time;
- }
-
- }).then((result) => {
- if (result.isConfirmed) {
- page="action.php?op=landed&id=" + id + "&time=" + encodeURIComponent(result.value);
- var xhr = new XMLHttpRequest();
- xhr.open("GET", page, false); // 'false' makes the request synchronous
- xhr.send();
- window.location.reload(true);
- }
- });
- }
- function markCancel(id) {
- page="action.php?op=cancel&id=" + id;
- var xhr = new XMLHttpRequest();
- xhr.open("GET", page, false); // 'false' makes the request synchronous
- xhr.send();
- window.location.reload(true);
- }
- function openDetail(id) {
- page="action.php?op=detail&id=" + id;
- var popupWindow = window.open(page, "PopupWindow", "toolbar=no, location=no, directories=no,status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=yes, width=600, height=1100");
- popupWindow.onload = function () {
- var contentHeight = popupWindow.document.body.scrollHeight;
- var contentWidth = popupWindow.document.body.scrollWidth;
- popupWindow.resizeTo(contentWidth + 20, contentHeight + 180); // Adding padding to prevent clipping
- };
-
- }
-
-
-
Tower Ops
-
-
+-->
-
Inbound PPR
+
Inbound Aircraft
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 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, notes 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);
@@ -296,7 +268,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 != 'status' && $field->name != 'id' && $field->name != 'ac_call') {
+ if ($field->name != 'notes' && $field->name != 'status' && $field->name != 'id' && $field->name != 'ac_call') {
echo '
' . htmlspecialchars($field->name ?? '') . '
';
}
@@ -311,12 +283,14 @@ if ($result->num_rows > 0) {
while ($row = $result->fetch_assoc()) {
echo '