Bart-Ceo-Aga Posted February 12, 2010 Report Posted February 12, 2010 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 Quote
Moderators mark1million Posted February 13, 2010 Moderators Report Posted February 13, 2010 Looks like you got it sorted, im having the same problems with </div>'s lol Care to share? Quote
Moderators mark1million Posted February 13, 2010 Moderators Report Posted February 13, 2010 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. Quote
Moderators mark1million Posted February 14, 2010 Moderators Report Posted February 14, 2010 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 Quote
Members Vangelis Posted February 16, 2010 Members Report Posted February 16, 2010 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> Quote
Administrators Nabeel Posted February 17, 2010 Administrators Report Posted February 17, 2010 Not sure why you have a random </div> thrown in there That should probably go after the </table> Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.