<table class="table table-hover table-responsive">
	<thead>
		<th>Pilot ID</th>
		<th>Name</th>
		<th>Rank</th>
		<th>Landing Rate</th>
		<th>Pirep</th>
	</thead>
	<?php 
	if(!$bestlandingdays)		
		{
	?>
			<tr><td align="center" colspan="4">No Records Today!</td></tr>
	<?php
		}
	else
		{
			foreach ($bestlandingdays as $bestlandingday)
				{
					$rnk = "SELECT * FROM ".TABLE_PREFIX."ranks WHERE rank = '$bestlandingday->rank'";
					$rn = DB::get_row($rnk);
					$rank = $rn->rankimage;
					$pilotcode = PilotData::getPilotCode($bestlandingday->code, $bestlandingday->pilotid);
	?>
			<tr>
				<td><?php echo $pilotcode ;?></td>
				<td><?php echo $bestlandingday->firstname.' '.$bestlandingday->lastname ;?></td>
				<td><img src="<?php echo $rank ;?>"></td>
				<td><?php echo $bestlandingday->landingrate ;?> /FPS</td>
				<td> <a href='<?php echo SITE_URL; ?>/index.php/pireps/view/<?php echo($bestlandingday->pirepid) ; ?>' class="btn btn-xs btn-default" data-toggle="tooltip" title="" data-original-title="View PIREP"><i class="gi gi-send "></i></a>  </td>
			</tr>
	<?php 
				}
		} 
	?>
</table>