ICAO and IATA code lookup
This commit is contained in:
@@ -230,6 +230,14 @@ function renderTableCell($key, $value, $row) {
|
||||
$notes = htmlspecialchars($row['notes'] ?? '');
|
||||
$acReg = htmlspecialchars($value ?? '');
|
||||
return "<td class='red-triangle' data-notes='$notes'>$acReg</td>";
|
||||
} elseif ($key == 'in_from' || $key == 'out_to') {
|
||||
if (!empty($value) && (strlen($value) === 3 || strlen($value) === 4)) {
|
||||
$airportName = getAirport(connectDb(), $value);
|
||||
if ($airportName) {
|
||||
return "<td>" . htmlspecialchars($value) . "<br><span style='font-size: smaller; font-style: italic;'>" . htmlspecialchars($airportName) . "</span></td>";
|
||||
}
|
||||
}
|
||||
return "<td>" . htmlspecialchars($value ?? '') . "</td>";
|
||||
} else {
|
||||
return "<td>" . htmlspecialchars($value ?? '') . "</td>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user