Jerry Posted October 19, 2013 Report Posted October 19, 2013 <?php if(!$lastbids) { echo 'FOF pilots at the bar'; echo '</p><img src="<?php echo SITE_URL; ?>/lib/images/nobookedflight.gif" width="80px" height="99px" /></p>'; return; } foreach($lastbids as $lastbid); { ?> <table width="100%" border="0" align="center" cellpadding="5" cellspacing="0"> <tr> <td>Flight</td> <td>Pilot</td> <td>Departure</td> <td>Arrival</td> <td>Aircraft</td> </tr> <tr> <td><?php echo $lastbid->code.$lastbid->flightnum ;?></td> <td> <?php $pilotid = $lastbid->pilotid; $pilot = PilotData::getPilotData($pilotid); echo $pilot->firstname.' '.$pilot->lastname ;?> </td> <td><?php echo $lastbid->depicao ;?></td> <td><?php echo $lastbid->arricao ;?></td> <td><?php echo $lastbid->aircraft ;?></td> </tr> </table> <?php } ?> <div id="mainbox"> <h3>Flight Departures Board</h3> <?php if(!$lastbids) { echo '<p align="center">FOF pilots at the bar</p>'; return; } ?> <table width="100%" class="tablesorter"> <thead> <tr bgcolor="#336699"> <th height="20" width="15%"><div align="center">Flight Number</div></th> <th height="20" width="13%"><div align="center">Depart</div></th> <th height="20" width="13%"><div align="center">Arrive</div></th> <th height="20" width="20%"><div align="center">Pilot Name</div></th> <th height="20" width="15%"><div align="center">Aircraft</th> <th height="20" width="12%"><div align="center">Tail No.</div></th> <th height="20" width="12%"><div align="center">Flight Time</div></th> </tr> </thead> <tbody> <?php foreach($lastbids as $lastbid) { ?> <tr bgcolor="#DFF4FF"> <td height="20" width="15%" align="center"><?php echo $lastbid->code . $lastbid->flightnum; ?></a> </td> <td height="20" width="13%" align="center"><span><?php echo $lastbid->depicao; ?></span></td> <td height="20" width="13%" align="center"><span><?php echo $lastbid->arricao; ?></span></td> <?php $params = $lastbid->pilotid; $pilot = PilotData::GetPilotData($params); $pname = $pilot->firstname; $psurname = $pilot->lastname; ?> <td height="20" width="20%" align="center"><span><?php echo $pname; ?> <?php echo $psurname; ?></span></td> <td height="20" width="15%" align="center"><span><?php echo $lastbid->aircraft; ?></span></td> <td height="20" width="12%" align="center"><?php echo $lastbid->registration?></td> <td height="20" width="12%" align="center"><span><?php echo $lastbid->flighttime; ?> Hours</span></td> </tr> <?php } ?> </tbody> </table> <hr> </div> Quote
Jerry Posted October 20, 2013 Author Report Posted October 20, 2013 tried adding this didn't work, any suggestions? 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.