pilot roster

Hello gent’s the live map is now ok but the pilot roster gives a lot off troubles please help us!!.

http://www.aviation-global-airways.com

regard bart-ceo :-X

Looks like you got it sorted, im having the same problems with </div>'s  lol

Care to share?

Ah ok i never got to the bottom of the page lol..

Its a closing div somewhere maybe not enough or too many, i have had this on a few pages that call other functions as well.

Just found the fix,

in the pilots list.tpl add a div to this line near the top.

echo ‘There are no pilots!’;

so would now read,

echo ‘There are no pilots!</div>’;

All will be fixed

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>

Not sure why you have a random </div>  thrown in there

That should probably go after the </table>