Jump to content

pilot roster


Bart-Ceo-Aga

Recommended Posts

  • Members

No solution guys we would apreciate some help

and here is the code

<div class="mc0203">     
<?php $roster = PilotData::getAllPilots();  ?>
<?php
   if(!$roster)
   {
      echo 'There are no pilots!</div>';
      return;
   }
?>   
<table id="tabledlist" class="tablesorter">
<thead>
<tr>
   <th>Pilot ID</th>
   <th>Name</th>
   <th>Rank</th>
   <th>Flights</th>
   <th>Hours</th>
   <th>HUBs</th>
</tr>
</thead>
<tbody>
<?php foreach($roster as $pilot) { ?>
<tr>
   <td width="1%" nowrap>
       <img src="<?php echo Countries::getCountryImage($pilot->location);?>"
         alt="<?php echo Countries::getCountryName($pilot->location);?>" />
  <a href="<?php echo SITE_URL?>/index.php/profile/view/<?php echo $pilot->pilotid?>">
         <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a>
   </td>
   <td>

         
      <center><?php echo $pilot->firstname.' '.$pilot->lastname?></center>
   </td>
   <center><td><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></td></center>
   <center><td><?php echo $pilot->totalflights?></td></center>
   <center><td><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></td></center>
   <center><td><?php echo $pilot->hub?></td></center>
</tr>
<?php } ?>  </div> 
</tbody>
</table>
            

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...