@@ -21,7 +21,9 @@ discard block |
||
| 21 | 21 | print '<option></option>'; |
| 22 | 22 | $Stats = new Stats(); |
| 23 | 23 | $airline_names = $Stats->getAllAirlineNames(); |
| 24 | - if (empty($ariline_names)) $airline_names = $Spotter->getAllAirlineNames(); |
|
| 24 | + if (empty($ariline_names)) { |
|
| 25 | + $airline_names = $Spotter->getAllAirlineNames(); |
|
| 26 | + } |
|
| 25 | 27 | foreach($airline_names as $airline_name) |
| 26 | 28 | { |
| 27 | 29 | if($_GET['airline'] == $airline_name['airline_icao']) |
@@ -43,8 +45,7 @@ discard block |
||
| 43 | 45 | if ($globalIVAO && @getimagesize($globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.gif')) |
| 44 | 46 | { |
| 45 | 47 | print '<img src="'.$globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.gif" alt="'.$spotter_array[0]['airline_name'].' ('.$spotter_array[0]['airline_icao'].')" title="'.$spotter_array[0]['airline_name'].' ('.$spotter_array[0]['airline_icao'].')" class="logo" />'; |
| 46 | - } |
|
| 47 | - elseif (@getimagesize($globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.png')) |
|
| 48 | + } elseif (@getimagesize($globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.png')) |
|
| 48 | 49 | { |
| 49 | 50 | print '<img src="'.$globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.png" alt="'.$spotter_array[0]['airline_name'].' ('.$spotter_array[0]['airline_icao'].')" title="'.$spotter_array[0]['airline_name'].' ('.$spotter_array[0]['airline_icao'].')" class="logo" />'; |
| 50 | 51 | } |
@@ -6,7 +6,9 @@ discard block |
||
| 6 | 6 | $Stats = new Stats(); |
| 7 | 7 | $title = _("Statistics"); |
| 8 | 8 | |
| 9 | -if (!isset($filter_name)) $filter_name = ''; |
|
| 9 | +if (!isset($filter_name)) { |
|
| 10 | + $filter_name = ''; |
|
| 11 | +} |
|
| 10 | 12 | $airline_icao = (string)filter_input(INPUT_GET,'airline',FILTER_SANITIZE_STRING); |
| 11 | 13 | if ($airline_icao == 'all') { |
| 12 | 14 | unset($_COOKIE['stats_airline_icao']); |
@@ -15,8 +17,10 @@ discard block |
||
| 15 | 17 | } elseif ($airline_icao == '' && isset($_COOKIE['stats_airline_icao'])) { |
| 16 | 18 | $airline_icao = $_COOKIE['stats_airline_icao']; |
| 17 | 19 | } elseif ($airline_icao == '' && isset($globalFilter)) { |
| 18 | - if (isset($globalFilter['airline'])) $airline_icao = $globalFilter['airline'][0]; |
|
| 19 | -} |
|
| 20 | + if (isset($globalFilter['airline'])) { |
|
| 21 | + $airline_icao = $globalFilter['airline'][0]; |
|
| 22 | + } |
|
| 23 | + } |
|
| 20 | 24 | setcookie('stats_airline_icao',$airline_icao); |
| 21 | 25 | require_once('header.php'); |
| 22 | 26 | |
@@ -36,7 +40,9 @@ discard block |
||
| 36 | 40 | if (isset($last_update[0]['value'])) { |
| 37 | 41 | date_default_timezone_set('UTC'); |
| 38 | 42 | $lastupdate = strtotime($last_update[0]['value']); |
| 39 | - if (isset($globalTimezone) && $globalTimezone != '') date_default_timezone_set($globalTimezone); |
|
| 43 | + if (isset($globalTimezone) && $globalTimezone != '') { |
|
| 44 | + date_default_timezone_set($globalTimezone); |
|
| 45 | + } |
|
| 40 | 46 | print '<i>Last update: '.date('Y-m-d G:i:s',$lastupdate).'</i>'; |
| 41 | 47 | } |
| 42 | 48 | ?> |
@@ -89,8 +95,9 @@ discard block |
||
| 89 | 95 | <h2><?php echo _("Top 10 Most Common Aircraft Type"); ?></h2> |
| 90 | 96 | <?php |
| 91 | 97 | $aircraft_array = $Stats->countAllAircraftTypes(true,$airline_icao,$filter_name); |
| 92 | - if (count($aircraft_array) == 0) print _("No data available"); |
|
| 93 | - else { |
|
| 98 | + if (count($aircraft_array) == 0) { |
|
| 99 | + print _("No data available"); |
|
| 100 | + } else { |
|
| 94 | 101 | |
| 95 | 102 | print '<div id="chart1" class="chart" width="100%"></div> |
| 96 | 103 | <script> |
@@ -136,8 +143,9 @@ discard block |
||
| 136 | 143 | <h2><?php echo _("Top 10 Most Common Airline"); ?></h2> |
| 137 | 144 | <?php |
| 138 | 145 | $airline_array = $Stats->countAllAirlines(true,$filter_name); |
| 139 | - if (count($airline_array) == 0) print _("No data available"); |
|
| 140 | - else { |
|
| 146 | + if (count($airline_array) == 0) { |
|
| 147 | + print _("No data available"); |
|
| 148 | + } else { |
|
| 141 | 149 | |
| 142 | 150 | print '<div id="chart2" class="chart" width="100%"></div> |
| 143 | 151 | <script> |
@@ -197,8 +205,9 @@ discard block |
||
| 197 | 205 | <h2><?php echo _("Top 10 Most Common Pilots"); ?></h2> |
| 198 | 206 | <?php |
| 199 | 207 | $pilot_array = $Stats->countAllPilots(true,$airline_icao,$filter_name); |
| 200 | - if (count($pilot_array) == 0) print _("No data available"); |
|
| 201 | - else { |
|
| 208 | + if (count($pilot_array) == 0) { |
|
| 209 | + print _("No data available"); |
|
| 210 | + } else { |
|
| 202 | 211 | |
| 203 | 212 | print '<div id="chart7" class="chart" width="100%"></div> |
| 204 | 213 | <script> |
@@ -244,8 +253,9 @@ discard block |
||
| 244 | 253 | <h2><?php echo _("Top 10 Most Common Owners"); ?></h2> |
| 245 | 254 | <?php |
| 246 | 255 | $owner_array = $Stats->countAllOwners(true,$airline_icao,$filter_name); |
| 247 | - if (count($owner_array) == 0) print _("No data available"); |
|
| 248 | - else { |
|
| 256 | + if (count($owner_array) == 0) { |
|
| 257 | + print _("No data available"); |
|
| 258 | + } else { |
|
| 249 | 259 | |
| 250 | 260 | print '<div id="chart7" class="chart" width="100%"></div> |
| 251 | 261 | <script> |
@@ -293,8 +303,9 @@ discard block |
||
| 293 | 303 | <h2><?php echo _("Top 20 Most Common Country a Flight was Over"); ?></h2> |
| 294 | 304 | <?php |
| 295 | 305 | //$flightover_array = $Stats->countAllFlightOverCountries(); |
| 296 | - if (count($flightover_array) == 0) print _("No data available"); |
|
| 297 | - else { |
|
| 306 | + if (count($flightover_array) == 0) { |
|
| 307 | + print _("No data available"); |
|
| 308 | + } else { |
|
| 298 | 309 | |
| 299 | 310 | print '<div id="chart10" class="chart" width="100%"></div> |
| 300 | 311 | <script> |
@@ -346,8 +357,9 @@ discard block |
||
| 346 | 357 | <h2><?php echo _("Top 10 Most Common Departure Airports"); ?></h2> |
| 347 | 358 | <?php |
| 348 | 359 | $airport_airport_array = $Stats->countAllDepartureAirports($airline_icao,$filter_name); |
| 349 | - if (count($airport_airport_array) == 0) print _("No data available"); |
|
| 350 | - else { |
|
| 360 | + if (count($airport_airport_array) == 0) { |
|
| 361 | + print _("No data available"); |
|
| 362 | + } else { |
|
| 351 | 363 | |
| 352 | 364 | print '<div id="chart3" class="chart" width="100%"></div> |
| 353 | 365 | <script> |
@@ -396,8 +408,9 @@ discard block |
||
| 396 | 408 | <h2><?php echo _("Top 10 Most Common Arrival Airports"); ?></h2> |
| 397 | 409 | <?php |
| 398 | 410 | $airport_airport_array2 = $Stats->countAllArrivalAirports($airline_icao,$filter_name); |
| 399 | - if (count($airport_airport_array2) == 0) print _("No data available"); |
|
| 400 | - else { |
|
| 411 | + if (count($airport_airport_array2) == 0) { |
|
| 412 | + print _("No data available"); |
|
| 413 | + } else { |
|
| 401 | 414 | |
| 402 | 415 | print '<div id="chart4" class="chart" width="100%"></div> |
| 403 | 416 | <script> |
@@ -448,8 +461,9 @@ discard block |
||
| 448 | 461 | <h2><?php echo _("Busiest Months of the last 12 Months"); ?></h2> |
| 449 | 462 | <?php |
| 450 | 463 | $year_array = $Stats->countAllMonthsLastYear($airline_icao,$filter_name); |
| 451 | - if (count($year_array) == 0) print _("No data available"); |
|
| 452 | - else { |
|
| 464 | + if (count($year_array) == 0) { |
|
| 465 | + print _("No data available"); |
|
| 466 | + } else { |
|
| 453 | 467 | print '<div id="chart8" class="chart" width="100%"></div> |
| 454 | 468 | <script> |
| 455 | 469 | google.load("visualization", "1", {packages:["corechart"]}); |
@@ -494,8 +508,9 @@ discard block |
||
| 494 | 508 | <h2><?php echo _("Busiest Day in the last Month"); ?></h2> |
| 495 | 509 | <?php |
| 496 | 510 | $month_array = $Stats->countAllDatesLastMonth($airline_icao,$filter_name); |
| 497 | - if (count($month_array) == 0) print _("No data available"); |
|
| 498 | - else { |
|
| 511 | + if (count($month_array) == 0) { |
|
| 512 | + print _("No data available"); |
|
| 513 | + } else { |
|
| 499 | 514 | print '<div id="chart9" class="chart" width="100%"></div> |
| 500 | 515 | <script> |
| 501 | 516 | google.load("visualization", "1", {packages:["corechart"]}); |
@@ -540,8 +555,9 @@ discard block |
||
| 540 | 555 | <h2><?php echo _("Busiest Day in the last 7 Days"); ?></h2> |
| 541 | 556 | <?php |
| 542 | 557 | $date_array = $Stats->countAllDatesLast7Days($airline_icao,$filter_name); |
| 543 | - if (empty($date_array)) print _("No data available"); |
|
| 544 | - else { |
|
| 558 | + if (empty($date_array)) { |
|
| 559 | + print _("No data available"); |
|
| 560 | + } else { |
|
| 545 | 561 | print '<div id="chart5" class="chart" width="100%"></div> |
| 546 | 562 | <script> |
| 547 | 563 | google.load("visualization", "1", {packages:["corechart"]}); |
@@ -587,8 +603,9 @@ discard block |
||
| 587 | 603 | <h2><?php echo _("Busiest Time of the Day"); ?></h2> |
| 588 | 604 | <?php |
| 589 | 605 | $hour_array = $Stats->countAllHours('hour',true,$airline_icao,$filter_name); |
| 590 | - if (empty($hour_array)) print _("No data available"); |
|
| 591 | - else { |
|
| 606 | + if (empty($hour_array)) { |
|
| 607 | + print _("No data available"); |
|
| 608 | + } else { |
|
| 592 | 609 | |
| 593 | 610 | print '<div id="chart6" class="chart" width="100%"></div> |
| 594 | 611 | <script> |
@@ -656,8 +673,11 @@ discard block |
||
| 656 | 673 | $distance = $distance; |
| 657 | 674 | $unit = 'km'; |
| 658 | 675 | } |
| 659 | - if (!isset($polar_data)) $polar_data = '{axis:"'.$direction[0]['direction_shortname'].'",value:'.$key.'}'; |
|
| 660 | - else $polar_data = $polar_data.',{axis:"'.$direction[0]['direction_shortname'].'",value:'.$key.'}'; |
|
| 676 | + if (!isset($polar_data)) { |
|
| 677 | + $polar_data = '{axis:"'.$direction[0]['direction_shortname'].'",value:'.$key.'}'; |
|
| 678 | + } else { |
|
| 679 | + $polar_data = $polar_data.',{axis:"'.$direction[0]['direction_shortname'].'",value:'.$key.'}'; |
|
| 680 | + } |
|
| 661 | 681 | } |
| 662 | 682 | ?> |
| 663 | 683 | <div class="col-md-6"> |
@@ -704,8 +724,11 @@ discard block |
||
| 704 | 724 | foreach ($msg as $eachmsg) { |
| 705 | 725 | //$eachmsg = $msg[0]; |
| 706 | 726 | $data = $eachmsg['source_data']; |
| 707 | - if ($data > 500) $max = (round(($data+100)/100))*100; |
|
| 708 | - else $max = 500; |
|
| 727 | + if ($data > 500) { |
|
| 728 | + $max = (round(($data+100)/100))*100; |
|
| 729 | + } else { |
|
| 730 | + $max = 500; |
|
| 731 | + } |
|
| 709 | 732 | ?> |
| 710 | 733 | <div id="msg-<?php print str_replace(' ','_',strtolower($eachmsg['source_name'])); ?>" class="col-md-4"></div> |
| 711 | 734 | <script> |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | $limit_start = 0; |
| 16 | 16 | $limit_end = 25; |
| 17 | 17 | $absolute_difference = 25; |
| 18 | - } else { |
|
| 18 | + } else { |
|
| 19 | 19 | $limit_explode = explode(",", $_GET['limit']); |
| 20 | 20 | $limit_start = $limit_explode[0]; |
| 21 | 21 | $limit_end = $limit_explode[1]; |
@@ -45,7 +45,9 @@ discard block |
||
| 45 | 45 | $METAR = new METAR(); |
| 46 | 46 | $metar_info = $METAR->getMETAR($airport_icao); |
| 47 | 47 | //print_r($metar_info); |
| 48 | - if (isset($metar_info[0]['metar'])) $metar_parse = $METAR->parse($metar_info[0]['metar']); |
|
| 48 | + if (isset($metar_info[0]['metar'])) { |
|
| 49 | + $metar_parse = $METAR->parse($metar_info[0]['metar']); |
|
| 50 | + } |
|
| 49 | 51 | //print_r($metar_parse); |
| 50 | 52 | } |
| 51 | 53 | |
@@ -59,7 +61,9 @@ discard block |
||
| 59 | 61 | print '<option></option>'; |
| 60 | 62 | $Stats = new Stats(); |
| 61 | 63 | $airport_names = $Stats->getAllAirportNames(); |
| 62 | - if (empty($airport_names)) $airport_names = $Spotter->getAllAirportNames(); |
|
| 64 | + if (empty($airport_names)) { |
|
| 65 | + $airport_names = $Spotter->getAllAirportNames(); |
|
| 66 | + } |
|
| 63 | 67 | ksort($airport_names); |
| 64 | 68 | foreach($airport_names as $airport_name) |
| 65 | 69 | { |
@@ -100,7 +104,9 @@ discard block |
||
| 100 | 104 | $all_data = $Stats->getLast7DaysAirports($airport_icao); |
| 101 | 105 | if (isset($globalTimezone)) { |
| 102 | 106 | date_default_timezone_set($globalTimezone); |
| 103 | - } else date_default_timezone_set('UTC'); |
|
| 107 | + } else { |
|
| 108 | + date_default_timezone_set('UTC'); |
|
| 109 | + } |
|
| 104 | 110 | if (count($all_data) > 0) { |
| 105 | 111 | print '<div id="chart6" class="chart" width="100%"></div> |
| 106 | 112 | <script> |
@@ -24,7 +24,9 @@ |
||
| 24 | 24 | print '<option></option>'; |
| 25 | 25 | $Stats = new Stats(); |
| 26 | 26 | $aircraft_types = $Stats->getAllAircraftTypes(); |
| 27 | - if (empty($aircraft_types)) $aircraft_types = $Spotter->getAllAircraftTypes(); |
|
| 27 | + if (empty($aircraft_types)) { |
|
| 28 | + $aircraft_types = $Spotter->getAllAircraftTypes(); |
|
| 29 | + } |
|
| 28 | 30 | foreach($aircraft_types as $aircrafttype) |
| 29 | 31 | { |
| 30 | 32 | if($aircraft_type == $aircrafttype['aircraft_icao']) |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | $limit_start = 0; |
| 15 | 15 | $limit_end = 25; |
| 16 | 16 | $absolute_difference = 25; |
| 17 | - } else { |
|
| 17 | + } else { |
|
| 18 | 18 | $limit_explode = explode(",", $_GET['limit']); |
| 19 | 19 | $limit_start = $limit_explode[0]; |
| 20 | 20 | $limit_end = $limit_explode[1]; |
@@ -45,7 +45,9 @@ discard block |
||
| 45 | 45 | print '<option></option>'; |
| 46 | 46 | $Stats = new Stats(); |
| 47 | 47 | $aircraft_types = $Stats->getAllAircraftTypes(); |
| 48 | - if (empty($aircraft_types)) $aircraft_types = $Spotter->getAllAircraftTypes(); |
|
| 48 | + if (empty($aircraft_types)) { |
|
| 49 | + $aircraft_types = $Spotter->getAllAircraftTypes(); |
|
| 50 | + } |
|
| 49 | 51 | foreach($aircraft_types as $aircrafttype) |
| 50 | 52 | { |
| 51 | 53 | if($aircraft_type == $aircrafttype['aircraft_icao']) |
@@ -66,7 +68,9 @@ discard block |
||
| 66 | 68 | print '<h1>'.$spotter_array[0]['aircraft_name'].' ('.$spotter_array[0]['aircraft_type'].')</h1>'; |
| 67 | 69 | print '<div><span class="label">'._("Name").'</span>'.$spotter_array[0]['aircraft_name'].'</div>'; |
| 68 | 70 | print '<div><span class="label">'._("ICAO").'</span>'.$spotter_array[0]['aircraft_type'].'</div>'; |
| 69 | - if (isset($spotter_array[0]['aircraft_manufacturer'])) print '<div><span class="label">'._("Manufacturer").'</span><a href="'.$globalURL.'/manufacturer/'.strtolower(str_replace(" ", "-", $spotter_array[0]['aircraft_manufacturer'])).'">'.$spotter_array[0]['aircraft_manufacturer'].'</a></div>'; |
|
| 71 | + if (isset($spotter_array[0]['aircraft_manufacturer'])) { |
|
| 72 | + print '<div><span class="label">'._("Manufacturer").'</span><a href="'.$globalURL.'/manufacturer/'.strtolower(str_replace(" ", "-", $spotter_array[0]['aircraft_manufacturer'])).'">'.$spotter_array[0]['aircraft_manufacturer'].'</a></div>'; |
|
| 73 | + } |
|
| 70 | 74 | print '</div>'; |
| 71 | 75 | } else { |
| 72 | 76 | print '<div class="alert alert-warning">'._("This special aircraft profile shows all flights in where the aircraft type is unknown.").'</div>'; |
@@ -22,7 +22,9 @@ discard block |
||
| 22 | 22 | print '<option></option>'; |
| 23 | 23 | $Stats = new Stats(); |
| 24 | 24 | $airline_names = $Stats->getAllAirlineNames(); |
| 25 | - if (empty($airline_names)) $airline_names = $Spotter->getAllAirlineNames(); |
|
| 25 | + if (empty($airline_names)) { |
|
| 26 | + $airline_names = $Spotter->getAllAirlineNames(); |
|
| 27 | + } |
|
| 26 | 28 | foreach($airline_names as $airline_name) |
| 27 | 29 | { |
| 28 | 30 | if($airline == $airline_name['airline_icao']) |
@@ -44,8 +46,7 @@ discard block |
||
| 44 | 46 | if ($globalIVAO && @getimagesize($globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.gif')) |
| 45 | 47 | { |
| 46 | 48 | print '<img src="'.$globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.gif" alt="'.$spotter_array[0]['airline_name'].' ('.$spotter_array[0]['airline_icao'].')" title="'.$spotter_array[0]['airline_name'].' ('.$spotter_array[0]['airline_icao'].')" class="logo" />'; |
| 47 | - } |
|
| 48 | - elseif (@getimagesize($globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.png')) |
|
| 49 | + } elseif (@getimagesize($globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.png')) |
|
| 49 | 50 | { |
| 50 | 51 | print '<img src="'.$globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.png" alt="'.$spotter_array[0]['airline_name'].' ('.$spotter_array[0]['airline_icao'].')" title="'.$spotter_array[0]['airline_name'].' ('.$spotter_array[0]['airline_icao'].')" class="logo" />'; |
| 51 | 52 | } |
@@ -5,7 +5,9 @@ |
||
| 5 | 5 | $Spotter = new Spotter(); |
| 6 | 6 | $title = _("Statistics").' - '._("Most common Route by Airport"); |
| 7 | 7 | require_once('header.php'); |
| 8 | -if (!isset($filter_name)) $filter_name = ''; |
|
| 8 | +if (!isset($filter_name)) { |
|
| 9 | + $filter_name = ''; |
|
| 10 | +} |
|
| 9 | 11 | include('statistics-sub-menu.php'); |
| 10 | 12 | |
| 11 | 13 | print '<script type="text/javascript" src="https://www.google.com/jsapi"></script> |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | $limit_start = 0; |
| 15 | 15 | $limit_end = 25; |
| 16 | 16 | $absolute_difference = 25; |
| 17 | - } else { |
|
| 17 | + } else { |
|
| 18 | 18 | $limit_explode = explode(",", $_GET['limit']); |
| 19 | 19 | $limit_start = $limit_explode[0]; |
| 20 | 20 | $limit_end = $limit_explode[1]; |
@@ -38,7 +38,9 @@ discard block |
||
| 38 | 38 | { |
| 39 | 39 | if (isset($spotter_array[0]['airline_name']) && isset($spotter_array[0]['airline_icao'])) { |
| 40 | 40 | $title = sprintf(_("Detailed View for %s (%s)"),$spotter_array[0]['airline_name'],$spotter_array[0]['airline_icao']); |
| 41 | - } else $title = ''; |
|
| 41 | + } else { |
|
| 42 | + $title = ''; |
|
| 43 | + } |
|
| 42 | 44 | require_once('header.php'); |
| 43 | 45 | |
| 44 | 46 | print '<div class="select-item">'; |
@@ -47,7 +49,9 @@ discard block |
||
| 47 | 49 | print '<option></option>'; |
| 48 | 50 | $Stats = new Stats(); |
| 49 | 51 | $airline_names = $Stats->getAllAirlineNames(); |
| 50 | - if (empty($airline_names)) $airline_names = $Spotter->getAllAirlineNames(); |
|
| 52 | + if (empty($airline_names)) { |
|
| 53 | + $airline_names = $Spotter->getAllAirlineNames(); |
|
| 54 | + } |
|
| 51 | 55 | foreach($airline_names as $airline_name) |
| 52 | 56 | { |
| 53 | 57 | if($_GET['airline'] == $airline_name['airline_icao']) |
@@ -76,8 +80,12 @@ discard block |
||
| 76 | 80 | print '<div><span class="label">'._("Name").'</span>'.$spotter_array[0]['airline_name'].'</div>'; |
| 77 | 81 | print '<div><span class="label">'._("Country").'</span>'.$spotter_array[0]['airline_country'].'</div>'; |
| 78 | 82 | print '<div><span class="label">'._("ICAO").'</span>'.$spotter_array[0]['airline_icao'].'</div>'; |
| 79 | - if (isset($spotter_array[0]['airline_iata'])) print '<div><span class="label">'._("IATA").'</span>'.$spotter_array[0]['airline_iata'].'</div>'; |
|
| 80 | - if (isset($spotter_array[0]['airline_callsign'])) print '<div><span class="label">'._("Callsign").'</span>'.$spotter_array[0]['airline_callsign'].'</div>'; |
|
| 83 | + if (isset($spotter_array[0]['airline_iata'])) { |
|
| 84 | + print '<div><span class="label">'._("IATA").'</span>'.$spotter_array[0]['airline_iata'].'</div>'; |
|
| 85 | + } |
|
| 86 | + if (isset($spotter_array[0]['airline_callsign'])) { |
|
| 87 | + print '<div><span class="label">'._("Callsign").'</span>'.$spotter_array[0]['airline_callsign'].'</div>'; |
|
| 88 | + } |
|
| 81 | 89 | print '<div><span class="label">'._("Type").'</span>'.ucwords($spotter_array[0]['airline_type']).'</div>'; |
| 82 | 90 | print '</div>'; |
| 83 | 91 | } else { |
@@ -7,7 +7,9 @@ |
||
| 7 | 7 | <?php |
| 8 | 8 | require_once('require/class.Stats.php'); |
| 9 | 9 | $Stats = new Stats(); |
| 10 | - if (!isset($filter_name)) $filter_name = ''; |
|
| 10 | + if (!isset($filter_name)) { |
|
| 11 | + $filter_name = ''; |
|
| 12 | + } |
|
| 11 | 13 | $airlines = $Stats->getAllAirlineNames($filter_name); |
| 12 | 14 | if (isset($airline_icao) && ($airline_icao == '' || $airline_icao == 'all')) { |
| 13 | 15 | print '<option value="all" selected>All</option>'; |