kopia lustrzana https://github.com/jprochazka/adsb-receiver
72 wiersze
3.4 KiB
Smarty
72 wiersze
3.4 KiB
Smarty
{*
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
// ADS-B RECEIVER PORTAL TEMPLATE INFORMATION //
|
|
// ========================================================================== //
|
|
// Template Set: default //
|
|
// Template Name: blog.tpl //
|
|
// Version: 2.0.0 //
|
|
// Release Date: //
|
|
// Author: Joe Prochazka //
|
|
// Website: https://www.swiftbyte.com //
|
|
// ========================================================================== //
|
|
// Copyright and Licensing Information: //
|
|
// //
|
|
// Copyright (c) 2015-2016 Joseph A. Prochazka //
|
|
// //
|
|
// This template set is licensed under The MIT License (MIT) //
|
|
// A copy of the license can be found package along with these files. //
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
*}
|
|
{area:head/}
|
|
{area:contents}
|
|
<div class="container">
|
|
<h1>Flights Seen</h1>
|
|
<hr />
|
|
<table class="table table-striped">
|
|
<tr>
|
|
<th>Flight</th>
|
|
<th>Last Seen</th>
|
|
<th>First Seen</th>
|
|
<th>Links</th>
|
|
</tr>
|
|
{foreach page:flights as flight}
|
|
<tr>
|
|
<td><a href="plot.php?flight={flight->flight}">{flight->flight}</a></td>
|
|
<td>{flight->lastSeen}</td>
|
|
<td>{flight->firstSeen}</td>
|
|
<td>
|
|
<a href="http://flightaware.com/live/flight/{flight->flight}" target="_blank">FlightAware</a> |
|
|
<a href="https://planefinder.net/flight/{flight->flight}" target="_blank">Planefinder</a> |
|
|
<a href="https://www.flightradar24.com/data/flights/{flight->flight}" target="_blank">Flightradar24</a>
|
|
</td>
|
|
{/foreach}
|
|
</table>
|
|
<p id="page-nav"></p>
|
|
</div>
|
|
{/area}
|
|
{area:scripts}
|
|
<script src="/templates/{setting:template}/assets/js/jquery.bootpag.min.js"></script>
|
|
<script>
|
|
$('#page-nav').bootpag({
|
|
total: {page:pageLinks},
|
|
page: {page:pageNumber},
|
|
maxVisible: 10,
|
|
leaps: true,
|
|
firstLastUse: true,
|
|
first: '<',
|
|
last: '>',
|
|
wrapClass: 'pagination',
|
|
activeClass: 'active',
|
|
disabledClass: 'disabled',
|
|
nextClass: 'next',
|
|
prevClass: 'prev',
|
|
lastClass: 'last',
|
|
firstClass: 'first'
|
|
}).on("page", function(event, num){
|
|
window.location="/flights.php?page=" + num;
|
|
});
|
|
</script>
|
|
{/area}
|