llju1 Posted January 29, 2010 Report Share Posted January 29, 2010 I am sure this is simple and may have already been asked But, How do you set up a page with the Listing of your fleet? ;D thanks Quote Link to comment Share on other sites More sharing options...
TennShadow Posted January 29, 2010 Report Share Posted January 29, 2010 I am sure this is simple and may have already been asked But, How do you set up a page with the Listing of your fleet? ;D thanks http://forum.phpvms.net/index.php?topic=1665.0 Quote Link to comment Share on other sites More sharing options...
Moderators joeri Posted January 29, 2010 Moderators Report Share Posted January 29, 2010 first i would like to send you to this page http://forum.phpvms.net/index.php?action=search and than you would have found this http://forum.phpvms.net/index.php?topic=1665.0 Quote Link to comment Share on other sites More sharing options...
llju1 Posted January 29, 2010 Author Report Share Posted January 29, 2010 Ok Did it and I get this. VMAC's Fleet Information $aircraft->registration, 'p.accepted'=>PIREP_ACCEPTED)); $pirep = PIREPData::findPIREPS($params); $current_location = $pirep[0]->arricao; $current_location2 = $pirep[0]->arrname; ?> ICAO Type Registration Range Empty Weight Cruise Alt Max Pax Max Cargo Total Hours Total Routes Flown Location name; ?> registration; ?> range; ?> weight; ?> cruise; ?> maxpax; ?> maxcargo; ?> totaltime; ?> routesflown; ?> FleetTable 1.1 Quote Link to comment Share on other sites More sharing options...
llju1 Posted January 29, 2010 Author Report Share Posted January 29, 2010 Here is the Link. http://vmac.info/core/templates/fleet_table.tpl Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted January 29, 2010 Administrators Report Share Posted January 29, 2010 Looks like you are missing a bunch of <?php tags in that one... Can you paste the code. Quote Link to comment Share on other sites More sharing options...
llju1 Posted January 29, 2010 Author Report Share Posted January 29, 2010 here it is from the tpl. <h1>VMAC<?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>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><?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> <p><small><a href="http://forum.phpvms.net/index.php?topic=1665.0">FleetTable 1.1</a></small></p> Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted January 29, 2010 Administrators Report Share Posted January 29, 2010 You can't access it directly like that, it has to be called from somewhere (Template::Show('fleet_table.tpl')) Quote Link to comment Share on other sites More sharing options...
llju1 Posted January 29, 2010 Author Report Share Posted January 29, 2010 Always read the install instruction first. ;D I got it lol here is the linkhttp://vmac.info/index.php/fleet Quote Link to comment Share on other sites More sharing options...
AFVA | Mitchell Posted January 29, 2010 Report Share Posted January 29, 2010 Always read the install instruction first. ;D That should be the first thing you do before you even start getting it to work! Well, we all make mistakes 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.