| @@ 54-81 (lines=28) @@ | ||
| 51 | print '<p>'.sprintf(_("The statistic below shows the most common aircrafts of flights from <strong>%s</strong>."),$country).'</p>'; |
|
| 52 | ||
| 53 | $aircraft_array = $Spotter->countAllAircraftTypesByCountry($country); |
|
| 54 | if (!empty($aircraft_array)) |
|
| 55 | { |
|
| 56 | print '<div class="table-responsive">'; |
|
| 57 | print '<table class="common-type table-striped">'; |
|
| 58 | print '<thead>'; |
|
| 59 | print '<th></th>'; |
|
| 60 | print '<th>'._("Aircraft Type").'</th>'; |
|
| 61 | print '<th>'._("# of times").'</th>'; |
|
| 62 | print '</thead>'; |
|
| 63 | print '<tbody>'; |
|
| 64 | $i = 1; |
|
| 65 | foreach($aircraft_array as $aircraft_item) |
|
| 66 | { |
|
| 67 | print '<tr>'; |
|
| 68 | print '<td><strong>'.$i.'</strong></td>'; |
|
| 69 | print '<td>'; |
|
| 70 | print '<a href="'.$globalURL.'/aircraft/'.$aircraft_item['aircraft_icao'].'">'.$aircraft_item['aircraft_name'].' ('.$aircraft_item['aircraft_icao'].')</a>'; |
|
| 71 | print '</td>'; |
|
| 72 | print '<td>'; |
|
| 73 | print $aircraft_item['aircraft_icao_count']; |
|
| 74 | print '</td>'; |
|
| 75 | print '</tr>'; |
|
| 76 | $i++; |
|
| 77 | } |
|
| 78 | print '<tbody>'; |
|
| 79 | print '</table>'; |
|
| 80 | print '</div>'; |
|
| 81 | } |
|
| 82 | print '</div>'; |
|
| 83 | } else { |
|
| 84 | $title = _("Country"); |
|
| @@ 47-74 (lines=28) @@ | ||
| 44 | }); |
|
| 45 | </script>'; |
|
| 46 | ||
| 47 | if (!empty($aircraft_array)) |
|
| 48 | { |
|
| 49 | print '<div class="table-responsive">'; |
|
| 50 | print '<table class="common-type table-striped">'; |
|
| 51 | print '<thead>'; |
|
| 52 | print '<th></th>'; |
|
| 53 | print '<th>'._("Aircraft Type").'</th>'; |
|
| 54 | print '<th>'._("# of times").'</th>'; |
|
| 55 | print '</thead>'; |
|
| 56 | print '<tbody>'; |
|
| 57 | $i = 1; |
|
| 58 | foreach($aircraft_array as $aircraft_item) |
|
| 59 | { |
|
| 60 | print '<tr>'; |
|
| 61 | print '<td><strong>'.$i.'</strong></td>'; |
|
| 62 | print '<td>'; |
|
| 63 | print '<a href="'.$globalURL.'/aircraft/'.$aircraft_item['aircraft_icao'].'">'.$aircraft_item['aircraft_name'].' ('.$aircraft_item['aircraft_icao'].')</a>'; |
|
| 64 | print '</td>'; |
|
| 65 | print '<td>'; |
|
| 66 | print $aircraft_item['aircraft_icao_count']; |
|
| 67 | print '</td>'; |
|
| 68 | print '</tr>'; |
|
| 69 | $i++; |
|
| 70 | } |
|
| 71 | print '<tbody>'; |
|
| 72 | print '</table>'; |
|
| 73 | print '</div>'; |
|
| 74 | } |
|
| 75 | require_once('footer.php'); |
|
| 76 | ?> |
|