Before refactor

This commit is contained in:
2025-03-31 07:59:02 +00:00
parent 4385a13498
commit 07cb5d1419
2 changed files with 10 additions and 6 deletions

View File

@@ -205,11 +205,11 @@ function markAction(id, action, title, buttonText) {
}
function markDeparted(id) {
markAction(id, "departed", "Depart Aircraft at time", "Departed");
markAction(id, "departed", "Depart Aircraft at time (UTC)", "Departed");
}
function markLanded(id) {
markAction(id, "landed", "Land Aircraft at time", "Landed");
markAction(id, "landed", "Land Aircraft at time (UTC)", "Landed");
}
function markCancel(id) {
@@ -285,7 +285,11 @@ if ($result->num_rows > 0) {
foreach ($row as $key => $value) {
if ($key != 'notes' && $key != 'status' && $key != 'id' && $key != 'ac_call') {
if ($key == 'ac_reg' && $row['ac_call'] != NULL) {
echo '<td>' . htmlspecialchars($row['ac_call'] ?? '') . "<br><span class=acreg>" . $value . '</span></td>';
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>';
}
} else if ($key == 'ac_reg' && !empty($row['notes'])) {
echo '<td class="red-triangle" data-notes="' . htmlspecialchars($row['notes'] ?? '') . '">' . htmlspecialchars($value ?? '') . '</td>';
} else {