} else { print '<option value="' . strtolower(str_replace(" ", "-", $all_manufacturer['aircraft_manufacturer'])) . '">' . $all_manufacturer['aircraft_manufacturer'] . '</option>'; } } print '</select>'; print '<button type="submit"><i class="fa fa-angle-double-right"></i></button>'; print '</form>'; print '</div>'; print '<div class="info column">'; print '<h1>' . $manufacturer . '</h1>'; print '</div>'; include 'manufacturer-sub-menu.php'; print '<div class="column">'; print '<h2>Most Common Routes</h2>'; print '<p>The statistic below shows the most common routes from <strong>' . $manufacturer . '</strong>.</p>'; $route_array = $Spotter->countAllRoutesByManufacturer($manufacturer); if (!empty($route_array)) { print '<div class="table-responsive">'; print '<table class="common-routes table-striped">'; print '<thead>'; print '<th></th>'; print '<th>Departure Airport</th>'; print '<th>Arrival Airport</th>'; print '<th># of Times</th>'; print '<th></th>'; print '<th></th>'; print '</thead>'; print '<tbody>'; $i = 1; foreach ($route_array as $route_item) { print '<tr>';
} else { print '<option value="' . strtolower(str_replace(" ", "-", $all_manufacturer['aircraft_manufacturer'])) . '">' . $all_manufacturer['aircraft_manufacturer'] . '</option>'; } } print '</select>'; print '<button type="submit"><i class="fa fa-angle-double-right"></i></button>'; print '</form>'; print '</div>'; print '<div class="info column">'; print '<h1>' . $manufacturer . '</h1>'; print '</div>'; include 'manufacturer-sub-menu.php'; print '<div class="column">'; print '<h2>Most Common Routes</h2>'; print '<p>The statistic below shows the most common routes from <strong>' . $manufacturer . '</strong>.</p>'; $route_array = Spotter::countAllRoutesByManufacturer($manufacturer); if (!empty($route_array)) { print '<div class="table-responsive">'; print '<table class="common-routes table-striped">'; print '<thead>'; print '<th></th>'; print '<th>Departure Airport</th>'; print '<th>Arrival Airport</th>'; print '<th># of Times</th>'; print '<th></th>'; print '<th></th>'; print '</thead>'; print '<tbody>'; $i = 1; foreach ($route_array as $route_item) { print '<tr>';