This is my code:
<div id="main">
<h4><?php echo $title?></h4>
<?php
if(!$allpilots)
{
echo 'There are no pilots!';
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>FlightRUN</th>
</tr>
</thead>
<tbody>
<?php
foreach($allpilots as $pilot)
{
/*
To include a custom field, use the following example:
<td>
<?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?>
</td>
For instance, if you added a field called "IVAO Callsign":
echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO Callsign');
*/
?>
<tr>
<td width="1%" nowrap><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>
<img src="<?php echo Countries::getCountryImage($pilot->location);?>"
alt="<?php echo Countries::getCountryName($pilot->location);?>" />
<?php echo $pilot->firstname.' '.$pilot->lastname?>
</td>
<td><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></td>
<td><?php echo $pilot->totalflights?></td>
<td><?php echo $pilot->totalhours?></td>
<td>
<?php echo PilotData::GetFieldValue($pilot->pilotid, 'FlightRUN (FRUN)'); ?>
</td>
<?php
}
?>
</tbody>
</table>
<!--for every page you make, copy and paste the code below exactly how it is so the footer will align correctly!-->
</div>
<div class="leftbottom"></div>
</div>
<div id="clear"></div>