Before refactor
This commit is contained in:
10
tower.php
10
tower.php
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user