-
Notifications
You must be signed in to change notification settings - Fork 159
/
airline-sub-menu.php
31 lines (31 loc) · 2.93 KB
/
airline-sub-menu.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<span class="sub-menu-statistic column mobile">
<a href="#" onclick="showSubMenu(); return false;"><?php echo _("Statistics"); ?> <i class="fa fa-plus"></i></a>
</span>
<div class="sub-menu sub-menu-container">
<ul class="nav nav-pills">
<li><a href="<?php print $globalURL; ?>/airline/<?php print $airline; ?>" <?php if (strtolower($current_page) == "airline-detailed"){ print 'class="active"'; } ?>><?php echo _("Detailed"); ?></a></li>
<li class="dropdown">
<a class="dropdown-toggle <?php if(strtolower($current_page) == "airline-statistics-aircraft" || strtolower($current_page) == "airline-statistics-registration" || strtolower($current_page) == "airline-statistics-manufacturer"){ print 'active'; } ?>" data-toggle="dropdown" href="#">
<?php echo _("Aircraft"); ?> <span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li><a href="<?php print $globalURL; ?>/airline/statistics/aircraft/<?php print $airline; ?>"><?php echo _("Aircraft Type"); ?></a></li>
<li><a href="<?php print $globalURL; ?>/airline/statistics/registration/<?php print $airline; ?>"><?php echo _("Registration"); ?></a></li>
<li><a href="<?php print $globalURL; ?>/airline/statistics/manufacturer/<?php print $airline; ?>"><?php echo _("Manufacturer"); ?></a></li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle <?php if(strtolower($current_page) == "airline-statistics-departure-airport" || strtolower($current_page) == "airline-statistics-departure-airport-country" || strtolower($current_page) == "airline-statistics-arrival-airport" || strtolower($current_page) == "airline-statistics-arrival-airport-country"){ print 'active'; } ?>" data-toggle="dropdown" href="#">
<?php echo _("Airport"); ?> <span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li><a href="<?php print $globalURL; ?>/airline/statistics/departure-airport/<?php print $airline; ?>"><?php echo _("Departure Airport"); ?></a></li>
<li><a href="<?php print $globalURL; ?>/airline/statistics/departure-airport-country/<?php print $airline; ?>"><?php echo _("Departure Airport by Country"); ?></a></li>
<li><a href="<?php print $globalURL; ?>/airline/statistics/arrival-airport/<?php print $airline; ?>"><?php echo _("Arrival Airport"); ?></a></li>
<li><a href="<?php print $globalURL; ?>/airline/statistics/arrival-airport-country/<?php print $airline; ?>"><?php echo _("Arrival Airport by Country"); ?></a></li>
</ul>
</li>
<li><a href="<?php print $globalURL; ?>/airline/statistics/route/<?php print $airline; ?>" <?php if (strtolower($current_page) == "airline-statistics-route"){ print 'class="active"'; } ?>><?php echo _("Route"); ?></a></li>
<li><a href="<?php print $globalURL; ?>/airline/statistics/time/<?php print $airline; ?>" <?php if (strtolower($current_page) == "airline-statistics-time"){ print 'class="active"'; } ?>><?php echo _("Time"); ?></a></li>
</ul>
</div>