@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | $route_array = $Spotter->countAllRoutes(); |
| 19 | 19 | print '<div id="chart" class="chart" width="100%"></div><script>'; |
| 20 | 20 | $route_data = ''; |
| 21 | -foreach($route_array as $route_item) |
|
| 21 | +foreach ($route_array as $route_item) |
|
| 22 | 22 | { |
| 23 | 23 | $route_data .= '[ "'.$route_item['airport_departure_icao'].' - '.$route_item['airport_arrival_icao'].'",'.$route_item['route_count'].'],'; |
| 24 | 24 | } |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | print '</thead>'; |
| 47 | 47 | print '<tbody>'; |
| 48 | 48 | $i = 1; |
| 49 | - foreach($route_array as $route_item) |
|
| 49 | + foreach ($route_array as $route_item) |
|
| 50 | 50 | { |
| 51 | 51 | print '<tr>'; |
| 52 | 52 | print '<td><strong>'.$i.'</strong></td>'; |
@@ -6,13 +6,13 @@ discard block |
||
| 6 | 6 | $title = _("Statistics").' - '._("Most common Aircraft Manufacturer"); |
| 7 | 7 | |
| 8 | 8 | if (!isset($filter_name)) $filter_name = ''; |
| 9 | -$airline_icao = (string)filter_input(INPUT_GET,'airline',FILTER_SANITIZE_STRING); |
|
| 9 | +$airline_icao = (string) filter_input(INPUT_GET, 'airline', FILTER_SANITIZE_STRING); |
|
| 10 | 10 | if ($airline_icao == '' && isset($globalFilter)) { |
| 11 | 11 | if (isset($globalFilter['airline'])) $airline_icao = $globalFilter['airline'][0]; |
| 12 | 12 | } |
| 13 | 13 | |
| 14 | -$year = filter_input(INPUT_GET,'year',FILTER_SANITIZE_NUMBER_INT); |
|
| 15 | -$month = filter_input(INPUT_GET,'month',FILTER_SANITIZE_NUMBER_INT); |
|
| 14 | +$year = filter_input(INPUT_GET, 'year', FILTER_SANITIZE_NUMBER_INT); |
|
| 15 | +$month = filter_input(INPUT_GET, 'month', FILTER_SANITIZE_NUMBER_INT); |
|
| 16 | 16 | |
| 17 | 17 | require_once('header.php'); |
| 18 | 18 | include('statistics-sub-menu.php'); |
@@ -24,10 +24,10 @@ discard block |
||
| 24 | 24 | </div> |
| 25 | 25 | <p>'._("Below are the <strong>Top 10</strong> most common aircraft manufacturers.").'</p>'; |
| 26 | 26 | |
| 27 | -$manufacturers_array = $Stats->countAllAircraftManufacturers(true,$airline_icao,$filter_name,$year,$month); |
|
| 27 | +$manufacturers_array = $Stats->countAllAircraftManufacturers(true, $airline_icao, $filter_name, $year, $month); |
|
| 28 | 28 | print '<div id="chart" class="chart" width="100%"></div><script>'; |
| 29 | 29 | $manufacturer_data = ''; |
| 30 | -foreach($manufacturers_array as $manufacturer_item) |
|
| 30 | +foreach ($manufacturers_array as $manufacturer_item) |
|
| 31 | 31 | { |
| 32 | 32 | $manufacturer_data .= '[ "'.$manufacturer_item['aircraft_manufacturer'].'",'.$manufacturer_item['aircraft_manufacturer_count'].'],'; |
| 33 | 33 | } |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | print '</thead>'; |
| 53 | 53 | print '<tbody>'; |
| 54 | 54 | $i = 1; |
| 55 | - foreach($manufacturers_array as $manufacturer_item) |
|
| 55 | + foreach ($manufacturers_array as $manufacturer_item) |
|
| 56 | 56 | { |
| 57 | 57 | print '<tr>'; |
| 58 | 58 | print '<td><strong>'.$i.'</strong></td>'; |
@@ -6,8 +6,8 @@ discard block |
||
| 6 | 6 | $title = _("Statistics").' - '._("Most common Airline"); |
| 7 | 7 | require_once('header.php'); |
| 8 | 8 | if (!isset($filter_name)) $filter_name = ''; |
| 9 | -$year = filter_input(INPUT_GET,'year',FILTER_SANITIZE_NUMBER_INT); |
|
| 10 | -$month = filter_input(INPUT_GET,'month',FILTER_SANITIZE_NUMBER_INT); |
|
| 9 | +$year = filter_input(INPUT_GET, 'year', FILTER_SANITIZE_NUMBER_INT); |
|
| 10 | +$month = filter_input(INPUT_GET, 'month', FILTER_SANITIZE_NUMBER_INT); |
|
| 11 | 11 | include('statistics-sub-menu.php'); |
| 12 | 12 | |
| 13 | 13 | print '<script type="text/javascript" src="'.$globalURL.'/js/d3.min.js"></script>'; |
@@ -17,10 +17,10 @@ discard block |
||
| 17 | 17 | </div> |
| 18 | 18 | <p>'._("Below are the <strong>Top 10</strong> most common airlines.").'</p>'; |
| 19 | 19 | |
| 20 | -$airline_array = $Stats->countAllAirlines(true,$filter_name,$year,$month); |
|
| 20 | +$airline_array = $Stats->countAllAirlines(true, $filter_name, $year, $month); |
|
| 21 | 21 | print '<div id="chart" class="chart" width="100%"></div><script>'; |
| 22 | 22 | $airline_data = ''; |
| 23 | -foreach($airline_array as $airline_item) |
|
| 23 | +foreach ($airline_array as $airline_item) |
|
| 24 | 24 | { |
| 25 | 25 | $airline_data .= '["'.$airline_item['airline_name'].' ('.$airline_item['airline_icao'].')",'.$airline_item['airline_count'].'],'; |
| 26 | 26 | } |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | print '</thead>'; |
| 48 | 48 | print '<tbody>'; |
| 49 | 49 | $i = 1; |
| 50 | - foreach($airline_array as $airline_item) |
|
| 50 | + foreach ($airline_array as $airline_item) |
|
| 51 | 51 | { |
| 52 | 52 | print '<tr>'; |
| 53 | 53 | print '<td><strong>'.$i.'</strong></td>'; |
@@ -6,12 +6,12 @@ discard block |
||
| 6 | 6 | $title = _("Statistics").' - '._("Most common Callsign"); |
| 7 | 7 | |
| 8 | 8 | if (!isset($filter_name)) $filter_name = ''; |
| 9 | -$airline_icao = (string)filter_input(INPUT_GET,'airline',FILTER_SANITIZE_STRING); |
|
| 9 | +$airline_icao = (string) filter_input(INPUT_GET, 'airline', FILTER_SANITIZE_STRING); |
|
| 10 | 10 | if ($airline_icao == '' && isset($globalFilter)) { |
| 11 | 11 | if (isset($globalFilter['airline'])) $airline_icao = $globalFilter['airline'][0]; |
| 12 | 12 | } |
| 13 | -$year = filter_input(INPUT_GET,'year',FILTER_SANITIZE_NUMBER_INT); |
|
| 14 | -$month = filter_input(INPUT_GET,'month',FILTER_SANITIZE_NUMBER_INT); |
|
| 13 | +$year = filter_input(INPUT_GET, 'year', FILTER_SANITIZE_NUMBER_INT); |
|
| 14 | +$month = filter_input(INPUT_GET, 'month', FILTER_SANITIZE_NUMBER_INT); |
|
| 15 | 15 | require_once('header.php'); |
| 16 | 16 | include('statistics-sub-menu.php'); |
| 17 | 17 | |
@@ -22,10 +22,10 @@ discard block |
||
| 22 | 22 | </div> |
| 23 | 23 | <p>'._("Below are the <strong>Top 10</strong> most common ident/callsigns of all airlines.").'</p>'; |
| 24 | 24 | |
| 25 | -$callsign_array = $Stats->countAllCallsigns(true,$airline_icao,$filter_name,$year,$month); |
|
| 25 | +$callsign_array = $Stats->countAllCallsigns(true, $airline_icao, $filter_name, $year, $month); |
|
| 26 | 26 | print '<div id="chart" class="chart" width="100%"></div><script>'; |
| 27 | 27 | $callsign_data = ''; |
| 28 | -foreach($callsign_array as $callsign_item) |
|
| 28 | +foreach ($callsign_array as $callsign_item) |
|
| 29 | 29 | { |
| 30 | 30 | $callsign_data .= '[ "'.$callsign_item['callsign_icao'].' ('.$callsign_item['airline_name'].')",'.$callsign_item['callsign_icao_count'].'],'; |
| 31 | 31 | } |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | print '</thead>'; |
| 52 | 52 | print '<tbody>'; |
| 53 | 53 | $i = 1; |
| 54 | - foreach($callsign_array as $callsign_item) |
|
| 54 | + foreach ($callsign_array as $callsign_item) |
|
| 55 | 55 | { |
| 56 | 56 | print '<tr>'; |
| 57 | 57 | print '<td><strong>'.$i.'</strong></td>'; |
@@ -9,13 +9,13 @@ discard block |
||
| 9 | 9 | header('Location: '.$globalURL.'/aircraft'); |
| 10 | 10 | die(); |
| 11 | 11 | } |
| 12 | -$aircraft_type = filter_input(INPUT_GET,'aircraft_type',FILTER_SANITIZE_STRING); |
|
| 13 | -$spotter_array = $Spotter->getSpotterDataByAircraft($aircraft_type,"0,1",""); |
|
| 12 | +$aircraft_type = filter_input(INPUT_GET, 'aircraft_type', FILTER_SANITIZE_STRING); |
|
| 13 | +$spotter_array = $Spotter->getSpotterDataByAircraft($aircraft_type, "0,1", ""); |
|
| 14 | 14 | |
| 15 | 15 | |
| 16 | 16 | if (!empty($spotter_array)) |
| 17 | 17 | { |
| 18 | - $title = sprintf(_("Most Common Airlines by Country from %s (%s)"),$spotter_array[0]['aircraft_name'],$spotter_array[0]['aircraft_type']); |
|
| 18 | + $title = sprintf(_("Most Common Airlines by Country from %s (%s)"), $spotter_array[0]['aircraft_name'], $spotter_array[0]['aircraft_type']); |
|
| 19 | 19 | require_once('header.php'); |
| 20 | 20 | |
| 21 | 21 | print '<div class="select-item">'; |
@@ -25,9 +25,9 @@ discard block |
||
| 25 | 25 | $Stats = new Stats(); |
| 26 | 26 | $aircraft_types = $Stats->getAllAircraftTypes(); |
| 27 | 27 | if (empty($aircraft_types)) $aircraft_types = $Spotter->getAllAircraftTypes(); |
| 28 | - foreach($aircraft_types as $aircrafttype) |
|
| 28 | + foreach ($aircraft_types as $aircrafttype) |
|
| 29 | 29 | { |
| 30 | - if($aircraft_type == $aircrafttype['aircraft_icao']) |
|
| 30 | + if ($aircraft_type == $aircrafttype['aircraft_icao']) |
|
| 31 | 31 | { |
| 32 | 32 | print '<option value="'.$aircrafttype['aircraft_icao'].'" selected="selected">'.$aircrafttype['aircraft_name'].' ('.$aircrafttype['aircraft_icao'].')</option>'; |
| 33 | 33 | } else { |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | include('aircraft-sub-menu.php'); |
| 54 | 54 | print '<div class="column">'; |
| 55 | 55 | print '<h2>'._("Most Common Airlines by Country").'</h2>'; |
| 56 | - print '<p>'.sprintf(_("The statistic below shows the most common airlines by Country of origin of flights from <strong>%s (%s)</strong>."),$spotter_array[0]['aircraft_name'],$spotter_array[0]['aircraft_type']).'</p>'; |
|
| 56 | + print '<p>'.sprintf(_("The statistic below shows the most common airlines by Country of origin of flights from <strong>%s (%s)</strong>."), $spotter_array[0]['aircraft_name'], $spotter_array[0]['aircraft_type']).'</p>'; |
|
| 57 | 57 | |
| 58 | 58 | $airline_array = $Spotter->countAllAirlineCountriesByAircraft($aircraft_type); |
| 59 | 59 | print '<script type="text/javascript" src="'.$globalURL.'/js/d3.min.js"></script>'; |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | print '<div id="chartCountry" class="chart" width="100%"></div><script>'; |
| 63 | 63 | print 'var series = ['; |
| 64 | 64 | $country_data = ''; |
| 65 | - foreach($airline_array as $airline_item) |
|
| 65 | + foreach ($airline_array as $airline_item) |
|
| 66 | 66 | { |
| 67 | 67 | $country_data .= '[ "'.$airline_item['airline_country_iso3'].'",'.$airline_item['airline_country_count'].'],'; |
| 68 | 68 | } |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | print '</thead>'; |
| 110 | 110 | print '<tbody>'; |
| 111 | 111 | $i = 1; |
| 112 | - foreach($airline_array as $airline_item) |
|
| 112 | + foreach ($airline_array as $airline_item) |
|
| 113 | 113 | { |
| 114 | 114 | print '<tr>'; |
| 115 | 115 | print '<td><strong>'.$i.'</strong></td>'; |
@@ -7,14 +7,14 @@ discard block |
||
| 7 | 7 | header('Location: '.$globalURL.'/airport'); |
| 8 | 8 | die(); |
| 9 | 9 | } |
| 10 | -$airport = filter_input(INPUT_GET,'airport',FILTER_SANITIZE_STRING); |
|
| 10 | +$airport = filter_input(INPUT_GET, 'airport', FILTER_SANITIZE_STRING); |
|
| 11 | 11 | $Spotter = new Spotter(); |
| 12 | -$spotter_array = $Spotter->getSpotterDataByAirport($airport,"0,1",""); |
|
| 12 | +$spotter_array = $Spotter->getSpotterDataByAirport($airport, "0,1", ""); |
|
| 13 | 13 | $airport_array = $Spotter->getAllAirportInfo($airport); |
| 14 | 14 | |
| 15 | 15 | if (!empty($airport_array)) |
| 16 | 16 | { |
| 17 | - $title = sprintf(_("Most Common Airlines by Country to/from %s, %s (%s)"),$airport_array[0]['city'],$airport_array[0]['name'],$airport_array[0]['icao']); |
|
| 17 | + $title = sprintf(_("Most Common Airlines by Country to/from %s, %s (%s)"), $airport_array[0]['city'], $airport_array[0]['name'], $airport_array[0]['icao']); |
|
| 18 | 18 | require_once('header.php'); |
| 19 | 19 | print '<div class="select-item">'; |
| 20 | 20 | print '<form action="'.$globalURL.'/airport" method="post">'; |
@@ -24,9 +24,9 @@ discard block |
||
| 24 | 24 | $airport_names = $Stats->getAllAirportNames(); |
| 25 | 25 | if (empty($airport_names)) $airport_names = $Spotter->getAllAirportNames(); |
| 26 | 26 | ksort($airport_names); |
| 27 | - foreach($airport_names as $airport_name) |
|
| 27 | + foreach ($airport_names as $airport_name) |
|
| 28 | 28 | { |
| 29 | - if($airport == $airport_name['airport_icao']) |
|
| 29 | + if ($airport == $airport_name['airport_icao']) |
|
| 30 | 30 | { |
| 31 | 31 | print '<option value="'.$airport_name['airport_icao'].'" selected="selected">'.$airport_name['airport_city'].', '.$airport_name['airport_name'].', '.$airport_name['airport_country'].' ('.$airport_name['airport_icao'].')</option>'; |
| 32 | 32 | } else { |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | include('airport-sub-menu.php'); |
| 58 | 58 | print '<div class="column">'; |
| 59 | 59 | print '<h2>'._("Most Common Airlines by Country").'</h2>'; |
| 60 | - print '<p>'.sprintf(_("The statistic below shows the most common airlines by Country of origin of flights to/from <strong>%s, %s (%s)</strong>."),$airport_array[0]['city'],$airport_array[0]['name'],$airport_array[0]['icao']).'</p>'; |
|
| 60 | + print '<p>'.sprintf(_("The statistic below shows the most common airlines by Country of origin of flights to/from <strong>%s, %s (%s)</strong>."), $airport_array[0]['city'], $airport_array[0]['name'], $airport_array[0]['icao']).'</p>'; |
|
| 61 | 61 | |
| 62 | 62 | $airline_array = $Spotter->countAllAirlineCountriesByAirport($airport); |
| 63 | 63 | print '<script type="text/javascript" src="'.$globalURL.'/js/d3.min.js"></script>'; |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | print '<div id="chartCountry" class="chart" width="100%"></div><script>'; |
| 67 | 67 | print 'var series = ['; |
| 68 | 68 | $country_data = ''; |
| 69 | - foreach($airline_array as $airline_item) |
|
| 69 | + foreach ($airline_array as $airline_item) |
|
| 70 | 70 | { |
| 71 | 71 | $country_data .= '[ "'.$airline_item['airline_country_iso3'].'",'.$airline_item['airline_country_count'].'],'; |
| 72 | 72 | } |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | print '</thead>'; |
| 115 | 115 | print '<tbody>'; |
| 116 | 116 | $i = 1; |
| 117 | - foreach($airline_array as $airline_item) |
|
| 117 | + foreach ($airline_array as $airline_item) |
|
| 118 | 118 | { |
| 119 | 119 | print '<tr>'; |
| 120 | 120 | print '<td><strong>'.$i.'</strong></td>'; |
@@ -7,14 +7,14 @@ discard block |
||
| 7 | 7 | header('Location: '.$globalURL.'/airport'); |
| 8 | 8 | die(); |
| 9 | 9 | } |
| 10 | -$airport = filter_input(INPUT_GET,'airport',FILTER_SANITIZE_STRING); |
|
| 10 | +$airport = filter_input(INPUT_GET, 'airport', FILTER_SANITIZE_STRING); |
|
| 11 | 11 | $Spotter = new Spotter(); |
| 12 | -$spotter_array = $Spotter->getSpotterDataByAirport($airport,"0,1",""); |
|
| 12 | +$spotter_array = $Spotter->getSpotterDataByAirport($airport, "0,1", ""); |
|
| 13 | 13 | $airport_array = $Spotter->getAllAirportInfo($airport); |
| 14 | 14 | |
| 15 | 15 | if (!empty($airport_array)) |
| 16 | 16 | { |
| 17 | - $title = sprintf(_("Most Common Departure Airports by Country to %s, %s (%s)"),$airport_array[0]['city'],$airport_array[0]['name'],$airport_array[0]['icao']); |
|
| 17 | + $title = sprintf(_("Most Common Departure Airports by Country to %s, %s (%s)"), $airport_array[0]['city'], $airport_array[0]['name'], $airport_array[0]['icao']); |
|
| 18 | 18 | require_once('header.php'); |
| 19 | 19 | print '<div class="select-item">'; |
| 20 | 20 | print '<form action="'.$globalURL.'/airport" method="post">'; |
@@ -24,9 +24,9 @@ discard block |
||
| 24 | 24 | $airport_names = $Stats->getAllAirportNames(); |
| 25 | 25 | if (empty($airport_names)) $airport_names = $Spotter->getAllAirportNames(); |
| 26 | 26 | ksort($airport_names); |
| 27 | - foreach($airport_names as $airport_name) |
|
| 27 | + foreach ($airport_names as $airport_name) |
|
| 28 | 28 | { |
| 29 | - if($_GET['airport'] == $airport_name['airport_icao']) |
|
| 29 | + if ($_GET['airport'] == $airport_name['airport_icao']) |
|
| 30 | 30 | { |
| 31 | 31 | print '<option value="'.$airport_name['airport_icao'].'" selected="selected">'.$airport_name['airport_city'].', '.$airport_name['airport_name'].', '.$airport_name['airport_country'].' ('.$airport_name['airport_icao'].')</option>'; |
| 32 | 32 | } else { |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | include('airport-sub-menu.php'); |
| 58 | 58 | print '<div class="column">'; |
| 59 | 59 | print '<h2>'._("Most Common Departure Airports by Country").'</h2>'; |
| 60 | - print '<p>'.sprintf(_("The statistic below shows all departure airports by Country of origin of flights to <strong>%s, %s, (%s)</strong>."),$airport_array[0]['city'],$airport_array[0]['name'],$airport_array[0]['icao']).'</p>'; |
|
| 60 | + print '<p>'.sprintf(_("The statistic below shows all departure airports by Country of origin of flights to <strong>%s, %s, (%s)</strong>."), $airport_array[0]['city'], $airport_array[0]['name'], $airport_array[0]['icao']).'</p>'; |
|
| 61 | 61 | |
| 62 | 62 | $airport_country_array = $Spotter->countAllDepartureAirportCountriesByAirport($airport); |
| 63 | 63 | print '<script type="text/javascript" src="'.$globalURL.'/js/d3.min.js"></script>'; |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | print '<div id="chartCountry" class="chart" width="100%"></div><script>'; |
| 67 | 67 | print 'var series = ['; |
| 68 | 68 | $country_data = ''; |
| 69 | - foreach($airport_country_array as $airport_item) |
|
| 69 | + foreach ($airport_country_array as $airport_item) |
|
| 70 | 70 | { |
| 71 | 71 | $country_data .= '[ "'.$airport_item['departure_airport_country_iso3'].'",'.$airport_item['airport_departure_country_count'].'],'; |
| 72 | 72 | } |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | print '</thead>'; |
| 115 | 115 | print '<tbody>'; |
| 116 | 116 | $i = 1; |
| 117 | - foreach($airport_country_array as $airport_item) |
|
| 117 | + foreach ($airport_country_array as $airport_item) |
|
| 118 | 118 | { |
| 119 | 119 | print '<tr>'; |
| 120 | 120 | print '<td><strong>'.$i.'</strong></td>'; |
@@ -7,14 +7,14 @@ discard block |
||
| 7 | 7 | header('Location: '.$globalURL.'/airport'); |
| 8 | 8 | die(); |
| 9 | 9 | } |
| 10 | -$airport = filter_input(INPUT_GET,'airport',FILTER_SANITIZE_STRING); |
|
| 10 | +$airport = filter_input(INPUT_GET, 'airport', FILTER_SANITIZE_STRING); |
|
| 11 | 11 | $Spotter = new Spotter(); |
| 12 | -$spotter_array = $Spotter->getSpotterDataByAirport($airport,"0,1",""); |
|
| 12 | +$spotter_array = $Spotter->getSpotterDataByAirport($airport, "0,1", ""); |
|
| 13 | 13 | $airport_array = $Spotter->getAllAirportInfo($airport); |
| 14 | 14 | |
| 15 | 15 | if (!empty($airport_array)) |
| 16 | 16 | { |
| 17 | - $title = sprintf(_("Most Common Arrival Airports by Country from %s, %s (%s)"),$airport_array[0]['city'],$airport_array[0]['name'],$airport_array[0]['icao']); |
|
| 17 | + $title = sprintf(_("Most Common Arrival Airports by Country from %s, %s (%s)"), $airport_array[0]['city'], $airport_array[0]['name'], $airport_array[0]['icao']); |
|
| 18 | 18 | require_once('header.php'); |
| 19 | 19 | print '<div class="select-item">'; |
| 20 | 20 | print '<form action="'.$globalURL.'/airport" method="post">'; |
@@ -24,9 +24,9 @@ discard block |
||
| 24 | 24 | $airport_names = $Stats->getAllAirportNames(); |
| 25 | 25 | if (empty($airport_names)) $airport_names = $Spotter->getAllAirportNames(); |
| 26 | 26 | ksort($airport_names); |
| 27 | - foreach($airport_names as $airport_name) |
|
| 27 | + foreach ($airport_names as $airport_name) |
|
| 28 | 28 | { |
| 29 | - if($airport == $airport_name['airport_icao']) |
|
| 29 | + if ($airport == $airport_name['airport_icao']) |
|
| 30 | 30 | { |
| 31 | 31 | print '<option value="'.$airport_name['airport_icao'].'" selected="selected">'.$airport_name['airport_city'].', '.$airport_name['airport_name'].', '.$airport_name['airport_country'].' ('.$airport_name['airport_icao'].')</option>'; |
| 32 | 32 | } else { |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | include('airport-sub-menu.php'); |
| 58 | 58 | print '<div class="column">'; |
| 59 | 59 | print '<h2>'._("Most Common Arrival Airports by Country").'</h2>'; |
| 60 | - print '<p>'.sprintf(_("The statistic below shows all arrival airports by Country of origin of flights from <strong>%s, %s (%s)</strong>."),$airport_array[0]['city'],$airport_array[0]['name'],$airport_array[0]['icao']).'</p>'; |
|
| 60 | + print '<p>'.sprintf(_("The statistic below shows all arrival airports by Country of origin of flights from <strong>%s, %s (%s)</strong>."), $airport_array[0]['city'], $airport_array[0]['name'], $airport_array[0]['icao']).'</p>'; |
|
| 61 | 61 | $airport_country_array = $Spotter->countAllArrivalAirportCountriesByAirport($airport); |
| 62 | 62 | print '<script type="text/javascript" src="'.$globalURL.'/js/d3.min.js"></script>'; |
| 63 | 63 | print '<script type="text/javascript" src="'.$globalURL.'/js/topojson.v2.min.js"></script>'; |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | print '<div id="chartCountry" class="chart" width="100%"></div><script>'; |
| 66 | 66 | print 'var series = ['; |
| 67 | 67 | $country_data = ''; |
| 68 | - foreach($airport_country_array as $airport_item) |
|
| 68 | + foreach ($airport_country_array as $airport_item) |
|
| 69 | 69 | { |
| 70 | 70 | $country_data .= '[ "'.$airport_item['arrival_airport_country_iso3'].'",'.$airport_item['airport_arrival_country_count'].'],'; |
| 71 | 71 | } |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | print '</thead>'; |
| 114 | 114 | print '<tbody>'; |
| 115 | 115 | $i = 1; |
| 116 | - foreach($airport_country_array as $airport_item) |
|
| 116 | + foreach ($airport_country_array as $airport_item) |
|
| 117 | 117 | { |
| 118 | 118 | print '<tr>'; |
| 119 | 119 | print '<td><strong>'.$i.'</strong></td>'; |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | require_once(dirname(__FILE__).'/require/settings.php'); |
| 3 | -$date = filter_input(INPUT_POST,'date',FILTER_SANITIZE_STRING); |
|
| 3 | +$date = filter_input(INPUT_POST, 'date', FILTER_SANITIZE_STRING); |
|
| 4 | 4 | if ($date == '') $date = date('Y-m-d'); |
| 5 | 5 | header('Location: '.$globalURL.'/incident/'.$date); |
| 6 | 6 | ?> |
| 7 | 7 | \ No newline at end of file |