Jump to content

Pilot Roster (possible CSS)


Jacob Armstrong

Recommended Posts

Well, it looks like your South Hub is outside of your content div tag.. which would explain why its getting positioned down there.

If you move it up above the <div id="clear"/> and then put it right above the </div> it should work.

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>

Link to comment
Share on other sites

Ah, That is the Obsess Blue template. I had the same problem when I was using it. It definitely is not css related. It is a problem with the way you have the script in pilot_list.tpl. Let me get my brain together and see if I can remember what I did to resolve it.

Link to comment
Share on other sites

Ah, That is the Obsess Blue template. I had the same problem when I was using it. It definitely is not css related. It is a problem with the way you have the script in pilot_list.tpl. Let me get my brain together and see if I can remember what I did to resolve it.

I'm using the Clowdy template. The ObsessBlue was just way to much to edit the with the staff that I had. I didn't have a technical administrator at the time, and the one we have now is writing us our own system. I would still like to get this working for now though. It might just have the code copied from the ObsessBlue template...I don't know. LOL!

Link to comment
Share on other sites

No.. is there a footer.tpl?

Yes.

<div id="footer">
               <p>Copyright © 2010 Virtual American Airlines - All rights reserved | We are in no way related with the real world American Eagle and American Airlines. If you would like to book a flight with them, you can visit: www.aa.com. All logos and trademarks are hereby thereof American Airlines © American Eagle Airlines © and AMR Corp &copy. Powered by <a href="http://phpvms.net">phpVMS</a>.
       </div>
</div>
</body>
</html>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...