Ephendi Posted July 23, 2012 Report Share Posted July 23, 2012 Exist module or way to display list of aircraft locations as follow based on pireps? maybe last 10 flights for each.... for example: Aircraft A date: LZIB-LZKZ date: LZKZ-EDDM ... Aircraft B date: XXXX-YYYY date: YYYY-FFFF Thans for help. Peter Quote Link to comment Share on other sites More sharing options...
RogerB Posted July 24, 2012 Report Share Posted July 24, 2012 I believe there is a module for this already, check in releases...I think it's call fleet details. Quote Link to comment Share on other sites More sharing options...
Ephendi Posted July 26, 2012 Author Report Share Posted July 26, 2012 No i can't find. Better explain this is - exist module for list of last flown routes for aircraft based on pireps? Quote Link to comment Share on other sites More sharing options...
RogerB Posted July 26, 2012 Report Share Posted July 26, 2012 It's called fleet table, sorry had the name wrong. <h1><?php echo SITE_NAME?>'s Fleet Information</h1> <table> <!-- Fleet Table Version 1.1.2 - fleet_table.tpl CHANGES FROM 1.1: Added image --> <table border="1"> <thead> <tr> <td><b>Image</b></td> <td><b>ICAO</b></td> <td><b>Type</b></td> <td><b>Registration</b></td> <td><b>Range</b></td> <td><b>Empty Weight</b></td> <td><b>Cruise Alt</b></td> <td><b>Max Pax</b></td> <td><b>Max Cargo</b></td> <td><b>Total Hours</b></td> <td><b>Total Routes Flown</b></td> <td><b>Location</b></td> </tr> </thead> <tbody> <?php foreach ($fleet as $aircraft) { ?> <tr> <td><img src="<?php echo $aircraft->imageurl; ?>"></td> <td><?php echo $aircraft->icao; ?> </td> <td><?php echo $aircraft->name; ?> </td> <td><?php echo $aircraft->registration; ?></td> <td><?php echo $aircraft->range; ?> </td> <td><?php echo $aircraft->weight; ?></td> <td><?php echo $aircraft->cruise; ?></td> <td><?php echo $aircraft->maxpax; ?></td> <td><?php echo $aircraft->maxcargo; ?></td> <td><?php echo $aircraft->totaltime; ?></td> <td><?php echo $aircraft->routesflown; ?></td> <?php $params = (array('a.registration'=>$aircraft->registration, 'p.accepted'=>PIREP_ACCEPTED)); $pirep = PIREPData::findPIREPS($params); $current_location = $pirep[0]->arricao; $current_location2 = $pirep[0]->arrname; ?> <td><?php echo $current_location.'-'.$current_location2; ?></td> </tr> <?php } ?> </tbody> </table> Quote Link to comment Share on other sites More sharing options...
Ephendi Posted July 28, 2012 Author Report Share Posted July 28, 2012 No... Fleet table i know... Fleet table shows only last landing location of aircraft. I need to show for each airchraft last flown 5 routes (legs) in list, because need to validate pireps and route continuality for aircraft... Quote Link to comment Share on other sites More sharing options...
RogerB Posted August 9, 2012 Report Share Posted August 9, 2012 Then just add the code to that template. Quote Link to comment Share on other sites More sharing options...
Ephendi Posted August 16, 2012 Author Report Share Posted August 16, 2012 but this is not history last 5 flights of each aircraft... Quote Link to comment Share on other sites More sharing options...
shiljo Posted March 18, 2013 Report Share Posted March 18, 2013 It's called fleet table, sorry had the name wrong. <h1><?php echo SITE_NAME?>'s Fleet Information</h1> <table> <!-- Fleet Table Version 1.1.2 - fleet_table.tpl CHANGES FROM 1.1: Added image --> <table border="1"> <thead> <tr> <td><b>Image</b></td> <td><b>ICAO</b></td> <td><b>Type</b></td> <td><b>Registration</b></td> <td><b>Range</b></td> <td><b>Empty Weight</b></td> <td><b>Cruise Alt</b></td> <td><b>Max Pax</b></td> <td><b>Max Cargo</b></td> <td><b>Total Hours</b></td> <td><b>Total Routes Flown</b></td> <td><b>Location</b></td> </tr> </thead> <tbody> <?php foreach ($fleet as $aircraft) { ?> <tr> <td><img src="<?php echo $aircraft->imageurl; ?>"></td> <td><?php echo $aircraft->icao; ?> </td> <td><?php echo $aircraft->name; ?> </td> <td><?php echo $aircraft->registration; ?></td> <td><?php echo $aircraft->range; ?> </td> <td><?php echo $aircraft->weight; ?></td> <td><?php echo $aircraft->cruise; ?></td> <td><?php echo $aircraft->maxpax; ?></td> <td><?php echo $aircraft->maxcargo; ?></td> <td><?php echo $aircraft->totaltime; ?></td> <td><?php echo $aircraft->routesflown; ?></td> <?php $params = (array('a.registration'=>$aircraft->registration, 'p.accepted'=>PIREP_ACCEPTED)); $pirep = PIREPData::findPIREPS($params); $current_location = $pirep[0]->arricao; $current_location2 = $pirep[0]->arrname; ?> <td><?php echo $current_location.'-'.$current_location2; ?></td> </tr> <?php } ?> </tbody> </table> something wrong in script, it wont work on mine site...line 26 code wrong it says...help? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.