-
Notifications
You must be signed in to change notification settings - Fork 159
/
country-sub-menu.php
40 lines (40 loc) · 3.6 KB
/
country-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
32
33
34
35
36
37
38
39
40
<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; ?>/country/<?php print $country; ?>" <?php if (strtolower($current_page) == "country-detailed"){ print 'class="active"'; } ?>><?php echo _("Detailed"); ?></a></li>
<li class="dropdown">
<a class="dropdown-toggle <?php if(strtolower($current_page) == "country-statistics-aircraft" || strtolower($current_page) == "country-statistics-registration" || strtolower($current_page) == "country-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; ?>/country/statistics/aircraft/<?php print $country; ?>"><?php echo _("Aircraft Type"); ?></a></li>
<li><a href="<?php print $globalURL; ?>/country/statistics/registration/<?php print $country; ?>"><?php echo _("Registration"); ?></a></li>
<li><a href="<?php print $globalURL; ?>/country/statistics/manufacturer/<?php print $country; ?>"><?php echo _("Manufacturer"); ?></a></li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle <?php if(strtolower($current_page) == "country-statistics-airline" || strtolower($current_page) == "country-statistics-airline-country"){ print 'active'; } ?>" data-toggle="dropdown" href="#">
<?php echo _("Airline"); ?> <span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li><a href="<?php print $globalURL; ?>/country/statistics/airline/<?php print $country; ?>"><?php echo _("Airline"); ?></a></li>
<li><a href="<?php print $globalURL; ?>/country/statistics/airline-country/<?php print $country; ?>"><?php echo _("Airline by Country"); ?></a></li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle <?php if(strtolower($current_page) == "country-statistics-departure-airport" || strtolower($current_page) == "country-statistics-departure-airport-country" || strtolower($current_page) == "country-statistics-arrival-airport" || strtolower($current_page) == "country-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; ?>/country/statistics/departure-airport/<?php print $country; ?>"><?php echo _("Departure Airport"); ?></a></li>
<li><a href="<?php print $globalURL; ?>/country/statistics/departure-airport-country/<?php print $country; ?>"><?php echo _("Departure Airport by Country"); ?></a></li>
<li><a href="<?php print $globalURL; ?>/country/statistics/arrival-airport/<?php print $country; ?>"><?php echo _("Arrival Airport"); ?></a></li>
<li><a href="<?php print $globalURL; ?>/country/statistics/arrival-airport-country/<?php print $country; ?>"><?php echo _("Arrival Airport by Country"); ?></a></li>
</ul>
</li>
<li><a href="<?php print $globalURL; ?>/country/statistics/route/<?php print $country; ?>" <?php if (strtolower($current_page) == "country-statistics-route"){ print 'class="active"'; } ?>><?php echo _("Route"); ?></a></li>
<li><a href="<?php print $globalURL; ?>/country/statistics/time/<?php print $country; ?>" <?php if (strtolower($current_page) == "country-statistics-time"){ print 'class="active"'; } ?>><?php echo _("Time"); ?></a></li>
</ul>
</div>