
<table class="sky_table" width="100%" cellspacing="0">
<tr>
<th>Division</th>
<th>Pilot</th>
<th>Flight</th>
<th>Depart</th>
<th>Arrive</th>
<th>Aircraft</th>
<th>Reg.</th>
</tr>
<?php
if(!$lastbids)
{
echo '<tr><td colspan="9">No booked flights!</td></tr>';
?>

<?php
}
else
foreach($lastbids as $lastbid)
{
$airp1 = OperationsData::getairportinfo($lastbid->depicao);
$airp2 = OperationsData::getairportinfo($lastbid->arricao);
?>
<tr style="padding:5px;">
<?php
$flightid = $lastbid->id
?>
<?php
$params = $lastbid->pilotid;
$airp1 = OperationsData::getairportinfo($lastbid->depicao);
$airp2 = OperationsData::getairportinfo($lastbid->arricao);
$pilot = PilotData::GetPilotData($params);
$pname = $pilot->firstname;
$psurname = $pilot->lastname;
$acrid = OperationsData::getAircraftByReg($lastbid->registration);
?>
<td align="left"><img src="<?php echo SITE_URL?>/images/airline/<?php echo $lastbid->code; ?>.png" alt="<?php echo $lastbid->code; ?>" /></td>
<td width="40%" ><a href="<?php echo SITE_URL?>/index.php/profile/view/<?php echo '' . $params . ''; ?>"><?php echo $pname; ?> <?php echo $psurname; ?></a></td>
<td width="16%" align="left" ><span><a href="<?php echo SITE_URL?>/index.php/schedules/details/<?php echo '' . $flightid . '';?> "><?php echo $lastbid->code; ?><?php echo $lastbid->flightnum; ?></a></span></td>
<td width="13%" align="left" ><span><?php echo '<a href=" '.SITE_URL.'/index.php/airports/get_airport?icao='.$lastbid->depicao.'">'.$lastbid->depicao.'</a>';?></span></td>
<td width="13%" align="left" ><span><?php echo '<a href=" '.SITE_URL.'/index.php/airports/get_airport?icao='.$lastbid->arricao.'">'.$lastbid->arricao.'</a>';?></span></td>
<td width="15%" align="left" ><span><a href="<?php echo SITE_URL?>/index.php/vFleetTracker/view/<?php echo '' . $lastbid->registration . ''; ?>"><?php echo $lastbid->aircraft; ?></a></span></td>
<td width="12%" align="left" ><a href="<?php echo SITE_URL?>/index.php/vFleetTracker/view/<?php echo '' . $lastbid->registration . ''; ?>"><?php echo $lastbid->registration; ?></a></td>
</tr>
<?php
}
?>
</table>


