# pilot roster

**URL:** <https://forum.phpvms.net/t/pilot-roster/1995>\
**Category:** phpVMS Legacy Support (v2/v5)\
**Created:** [February 12, 2010, 6:59pm UTC](https://forum.phpvms.net/t/pilot-roster/1995 "2010-02-12T18:59:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bart-Ceo-Aga](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/b/c2a13f/32.png) [@Bart-Ceo-Aga](https://forum.phpvms.net/u/Bart-Ceo-Aga)\
**Post date:** [February 12, 2010, 6:59pm UTC](https://forum.phpvms.net/t/pilot-roster/1995/1 "2010-02-12T18:59:45Z")

</div>

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](http://www.aviation-global-airways.com)

regard bart-ceo :-X

---

<div class="post-metadata">

**Author:** ![mark1million](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mark1million/32/15_2.png) [@mark1million](https://forum.phpvms.net/u/mark1million)\
**Post date:** [February 13, 2010, 3:14pm UTC](https://forum.phpvms.net/t/pilot-roster/1995/2 "2010-02-13T15:14:17Z")

</div>

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

Care to share?

---

<div class="post-metadata">

**Author:** ![mark1million](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mark1million/32/15_2.png) [@mark1million](https://forum.phpvms.net/u/mark1million)\
**Post date:** [February 13, 2010, 3:16pm UTC](https://forum.phpvms.net/t/pilot-roster/1995/3 "2010-02-13T15:16:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mark1million](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mark1million/32/15_2.png) [@mark1million](https://forum.phpvms.net/u/mark1million)\
**Post date:** [February 14, 2010, 12:28am UTC](https://forum.phpvms.net/t/pilot-roster/1995/4 "2010-02-14T00:28:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Vangelis](https://forum.phpvms.net/user_avatar/forum.phpvms.net/vangelis/32/38_2.png) [@Vangelis](https://forum.phpvms.net/u/Vangelis)\
**Post date:** [February 16, 2010, 4:36pm UTC](https://forum.phpvms.net/t/pilot-roster/1995/5 "2010-02-16T16:36:47Z")

</div>

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>

```

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [February 17, 2010, 12:08am UTC](https://forum.phpvms.net/t/pilot-roster/1995/6 "2010-02-17T00:08:52Z")

</div>

Not sure why you have a random \</div\>&nbsp; thrown in there

That should probably go after the \</table\>
