Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h3><?php echo $title ;?></h3>
- <table width="100%">
- <?php
- $pilots = PilotListData::pilotlist(100);
- if(!$pilots)
- {
- echo '<tr><td align="center" colspan="5">There are no pilots!</td></tr>';
- return;
- }
- else
- {
- ?>
- <table id="tabledlist" class="tablesorter">
- <thead>
- <tr>
- <th>Pilot ID</th>
- <th>Name</th>
- <th>Rank</th>
- <th>Flights</th>
- <th>Hours</th>
- </tr>
- </thead>
- <?php
- foreach($pilots as $pilot)
- {
- ?>
- <tr>
- <td align="center"><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>">
- <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a>
- </td>
- <td width="1%" nowrap>
- <img src="<?php echo Countries::getCountryImage($pilot->location);?>"
- alt="<?php echo Countries::getCountryName($pilot->location);?>" />
- <?php echo $pilot->firstname.' '.$pilot->lastname?>
- </td>
- <td align="center"><img src="<?php
- $rank = PilotListData::rank($pilot->rank);
- echo $rank->rankimage?>" alt="<?php echo $pilot->rank;?>" /></td>
- <td align="center"><?php echo $pilot->totalflights?></td>
- <td align="center"><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></td>
- <?php
- }
- }
- ?>
- </table>
Add Comment
Please, Sign In to add comment