CPC900 Posted October 19, 2012 Report Posted October 19, 2012 The following code from another thread somewhere, showed a revenue breakdown per last 5 flights for the logged in pilot. How would I show ALL reports for ALL pilots with this code edited for that?? <?php $pilotid = Auth::$userinfo->pilotid; $reps = PIREPData::getLastReports($pilotid, 5); ?> <table class="balancesheet" width="50%"> <tr class="balancesheet_header"> <td colspan="5">Last 5 Flights</td> </tr> <tr> <td align="center"><strong>Flight #</strong></td> <td align="center"><strong>Duration</strong></td> <td align="center"><strong>Pilot Pay</strong></td> <td align="center"><strong>Revenue</strong></td> <td align="center"><strong>Status</strong></td> </tr> <?php if(!$reps) { ?> <tr><td align="center" colspan="4">No Flights</td></tr> <?php } else { $i = 1; foreach($reps as $rep) { ?> Quote
CPC900 Posted October 20, 2012 Author Report Posted October 20, 2012 Sorry, this was from Parkho's module. I should have asked that question there. I have moved it there. Please delete this topic. Quote
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.