$cvs = "\$Id\$"; $keywords = "logbook online"; include "include/init.inc"; if (isset($rvar_psearch)) { $pilotdesc = "Pilots Matching [{$rvar_psearch}]"; $pilotlist = pilot_search($rvar_psearch); } else { $pilotdesc = "Top Pilots"; $pilotlist = pilot_search("", 10); } if (isset($rvar_asearch)) { $airportdesc = "Airports Matching [{$rvar_asearch}]"; $airportlist = airport_search($rvar_asearch, 10, 90); } else { $airportdesc = "Most Active Airports"; $airportlist = airport_search("", 10, 90); } include "include/head.inc"; $flightslist = logbook_recent(); ?> <div id="block"> <div id="block1"> <h3><?php print $pilotdesc; ?> </h3> <?php if (isset($pilotlist)) { print "<table>\n<tr><th>Pilot</th><th>Hours</th></tr>"; for ($i = 0; $i < count($pilotlist); $i++) {
print "<?xml version=\"1.0\"?>\n"; ?> <lol> <pilots> <?php $pilotlist = pilot_search("", 0); for ($i = 0; $i < count($pilotlist); $i++) { if ($pilotlist[$i]['publish_global'] == 't' && !$pilotlist[$i]['peer_tag']) { print "<pilot name=\"" . $pilotlist[$i]['username'] . "\" hours=\"" . $pilotlist[$i]['hours'] . "\" />\n"; } } ?> </pilots> <airports> <?php $airportlist = airport_search("", $n, 90); for ($i = 0; $i < count($airportlist); $i++) { $buf1 = $airportlist[$i]; $buf2 = airport_detail($buf1['airport']); print "<airport ident=\"" . $buf1['airport'] . "\" recent=\"" . $buf1['visits'] . "\" visits=\"" . $buf2['visits'] . "\" fullname=\"" . $buf2['fullname'] . "\" />\n"; } ?> </airports> <flights> <?php $flightslist = logbook_recent(); for ($i = 0; $i < count($flightslist); $i++) { $buf = $flightslist[$i]; if (!$buf['peer_tag']) { print "<flight pilot=\"{$buf['username']}\" logbook_id=\"{$buf['logbook_id']}\" date=\"{$buf['date']}\" route=\"{$buf['route']}\" hours=\"{$buf['hours']}\" />\n"; }
</tr> </table> </div> <div id="logbook"> <table> <tr> <th>Airport</th> <th>Location</th> <th>Visits</th> <th colspan="2" width="100%">Comments</th> </tr> <?php $class = ''; foreach (airport_search("") as $abuf) { $ident = $abuf['airport']; if ($class != "odd") { $class = "odd"; } else { $class = "even"; } $line = airport_detail($ident); if ($line['airspace'] == "D") { $classStyleOpen = "<font color=\"blue\">"; $classStyleClose = "</font>"; } elseif ($line['airspace'] == "B") { $classStyleOpen = "<font color=\"blue\"><strong>"; $classStyleClose = "</font></strong>"; } elseif ($line['airspace'] == "C") { $classStyleOpen = "<font color=\"purple\"><strong>";