Before refactor
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
"Aircraft Type": "RV-8",
|
"Aircraft Type": "RV-8",
|
||||||
"Captain or PIC Name": "The Lord Rotherwick",
|
"Captain or PIC Name": "The Lord Rotherwick",
|
||||||
"Arriving From": "at Lodge",
|
"Arriving From": "at Lodge",
|
||||||
"ETA": "15\/03\/2025 17:22",
|
"ETA": "17\/03\/2025 17:22",
|
||||||
"POB Inbound": "1",
|
"POB Inbound": "1",
|
||||||
"Fuel Required": "None",
|
"Fuel Required": "None",
|
||||||
"Departing To": "Ranger\u2019s Lodge",
|
"Departing To": "Ranger\u2019s Lodge",
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
"name": "Arriving From"
|
"name": "Arriving From"
|
||||||
},
|
},
|
||||||
"ca4ac44f-0388-4a70-a072-38276ed2ac13": {
|
"ca4ac44f-0388-4a70-a072-38276ed2ac13": {
|
||||||
"value": "16\/03\/2025 17:22",
|
"value": "31\/03\/2025 17:22",
|
||||||
"name": "ETA"
|
"name": "ETA"
|
||||||
},
|
},
|
||||||
"6fc47c54-7383-48fd-93fc-d8080f5ed8f5": {
|
"6fc47c54-7383-48fd-93fc-d8080f5ed8f5": {
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
"name": "Departing To"
|
"name": "Departing To"
|
||||||
},
|
},
|
||||||
"53d60abd-eb75-4b1f-92b6-5d47d26367ec": {
|
"53d60abd-eb75-4b1f-92b6-5d47d26367ec": {
|
||||||
"value": "20\/03\/2025 00:00",
|
"value": "31\/03\/2025 00:00",
|
||||||
"name": "ETD"
|
"name": "ETD"
|
||||||
},
|
},
|
||||||
"d1ac0860-31f4-4914-9d0b-cae42dfc7eda": {
|
"d1ac0860-31f4-4914-9d0b-cae42dfc7eda": {
|
||||||
|
|||||||
@@ -205,11 +205,11 @@ function markAction(id, action, title, buttonText) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function markDeparted(id) {
|
function markDeparted(id) {
|
||||||
markAction(id, "departed", "Depart Aircraft at time", "Departed");
|
markAction(id, "departed", "Depart Aircraft at time (UTC)", "Departed");
|
||||||
}
|
}
|
||||||
|
|
||||||
function markLanded(id) {
|
function markLanded(id) {
|
||||||
markAction(id, "landed", "Land Aircraft at time", "Landed");
|
markAction(id, "landed", "Land Aircraft at time (UTC)", "Landed");
|
||||||
}
|
}
|
||||||
|
|
||||||
function markCancel(id) {
|
function markCancel(id) {
|
||||||
@@ -285,7 +285,11 @@ if ($result->num_rows > 0) {
|
|||||||
foreach ($row as $key => $value) {
|
foreach ($row as $key => $value) {
|
||||||
if ($key != 'notes' && $key != 'status' && $key != 'id' && $key != 'ac_call') {
|
if ($key != 'notes' && $key != 'status' && $key != 'id' && $key != 'ac_call') {
|
||||||
if ($key == 'ac_reg' && $row['ac_call'] != NULL) {
|
if ($key == 'ac_reg' && $row['ac_call'] != NULL) {
|
||||||
|
if (!empty($row['notes'])) {
|
||||||
|
echo '<td class="red-triangle" data-notes="' . htmlspecialchars($row['notes'] ?? '') . '">' . htmlspecialchars($row['ac_call'] ?? '') . "<br><span class=acreg>" . $value . '</span></td>';
|
||||||
|
} else {
|
||||||
echo '<td>' . htmlspecialchars($row['ac_call'] ?? '') . "<br><span class=acreg>" . $value . '</span></td>';
|
echo '<td>' . htmlspecialchars($row['ac_call'] ?? '') . "<br><span class=acreg>" . $value . '</span></td>';
|
||||||
|
}
|
||||||
} else if ($key == 'ac_reg' && !empty($row['notes'])) {
|
} else if ($key == 'ac_reg' && !empty($row['notes'])) {
|
||||||
echo '<td class="red-triangle" data-notes="' . htmlspecialchars($row['notes'] ?? '') . '">' . htmlspecialchars($value ?? '') . '</td>';
|
echo '<td class="red-triangle" data-notes="' . htmlspecialchars($row['notes'] ?? '') . '">' . htmlspecialchars($value ?? '') . '</td>';
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user