Jump to content

Revenue/Pirep


CPC900

Recommended Posts

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)
{

?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...