Ysurac /
FlightAirMap
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | $Spotter = new Spotter(); |
||
| 3 | if ($spotter_array[0]['registration'] != "") |
||
| 4 | { |
||
| 5 | $highlight = $Spotter->getHighlightByRegistration($spotter_array[0]['registration']); |
||
| 6 | if ($highlight != "") |
||
| 7 | { |
||
| 8 | print '<div class="alert alert-warning">'._("This aircraft has a Highlight:").' '.$highlight.'</div>'; |
||
| 9 | } |
||
| 10 | } |
||
| 11 | ?> |
||
| 12 | |||
| 13 | <span class="sub-menu-statistic column mobile"> |
||
| 14 | <a href="#" onclick="showSubMenu(); return false;"><?php echo _("Statistics"); ?> <i class="fa fa-plus"></i></a> |
||
| 15 | </span> |
||
| 16 | <div class="sub-menu sub-menu-container"> |
||
| 17 | <ul class="nav nav-pills"> |
||
| 18 | <li><a href="<?php print $globalURL; ?>/registration/<?php print $registration; ?>" <?php if (strtolower($current_page) == "registration-detailed"){ print 'class="active"'; } ?>><?php echo _("Detailed"); ?></a></li> |
||
| 19 | <li class="dropdown"> |
||
| 20 | <a class="dropdown-toggle <?php if(strtolower($current_page) == "registration-statistics-departure-airport" || strtolower($current_page) == "registration-statistics-departure-airport-country" || strtolower($current_page) == "registration-statistics-arrival-airport" || strtolower($current_page) == "registration-statistics-arrival-airport-country"){ print 'active'; } ?>" data-toggle="dropdown" href="#"> |
||
| 21 | <?php _("Airport"); ?> <span class="caret"></span> |
||
|
0 ignored issues
–
show
Unused Code
introduced
by
Loading history...
|
|||
| 22 | </a> |
||
| 23 | <ul class="dropdown-menu" role="menu"> |
||
| 24 | <li><a href="<?php print $globalURL; ?>/registration/statistics/departure-airport/<?php print $registration; ?>"><?php echo _("Departure Airport"); ?></a></li> |
||
| 25 | <li><a href="<?php print $globalURL; ?>/registration/statistics/departure-airport-country/<?php print $registration; ?>"><?php echo _("Departure Airport by Country"); ?></a></li> |
||
| 26 | <li><a href="<?php print $globalURL; ?>/registration/statistics/arrival-airport/<?php print $registration; ?>"><?php echo _("Arrival Airport"); ?></a></li> |
||
| 27 | <li><a href="<?php print $globalURL; ?>/registration/statistics/arrival-airport-country/<?php print $registration; ?>"><?php echo _("Arrival Airport by Country"); ?></a></li> |
||
| 28 | </ul> |
||
| 29 | </li> |
||
| 30 | <li><a href="<?php print $globalURL; ?>/registration/statistics/route/<?php print $registration; ?>" <?php if (strtolower($current_page) == "registration-statistics-route"){ print 'class="active"'; } ?>><?php echo _("Route"); ?></a></li> |
||
| 31 | <li><a href="<?php print $globalURL; ?>/registration/statistics/time/<?php print $registration; ?>" <?php if (strtolower($current_page) == "registration-statistics-time"){ print 'class="active"'; } ?>><?php echo _("Time"); ?></a></li> |
||
| 32 | </ul> |
||
| 33 | </div> |