Jump to content

Top pilots


giorgi

Recommended Posts

  • Moderators

Its a style in your css.

Add the value to table headers,

All headers will then appear as red,

As you exampled my site here is the entry for all table headers,

th

{

color: #FFFFFF;

border: 1px solid #4C4C4C;

background: #FF6600;

padding: 2px;

text-align: center;

}

Change to your requirements, plus you will have to change all your tables to contain a header.

One last thing, add those divs to that page :)

<div class="mcright">

</div>

Link to comment
Share on other sites

  • Moderators

OK you need to make table headers,

This should be your structure

table

th

tr

Example,

echo '<h3 align="left">All Time Greats</h3>';
echo '<table width="100%" border="0" cellspacing="0" cellpadding="1">';
echo '<tr><td width="50%" valign="top">';
echo '<center>';
echo '<b>Top Pilots All Time </b>(Flights Flown)';
echo '<table cellspacing="1" cellpadding="1" border="1">';
echo '<tr>';
echo '<th width="175px"><div align="left">Pilot Details</div></th>';
echo '<th><div align="center">Flights Flown</div></th>';
echo '</tr>';
$all_flights = TopPilotData::alltime_flights(10);
foreach($all_flights as $all) {
   $pilot = PilotData::GetPilotData($all->pilotid);
   echo '<tr>';
   echo '<td><div align="left">'.$pilot->firstname.' '.$pilot->lastname.' - '.PilotData::GetPilotCode($pilot->code, $pilot->pilotid).'</div></td>';
   echo '<td><div align="center">'.$all->totalflights.'</div></td>';
   echo '</tr>';
}
echo '</table>';
echo '</td><td width="50%" valign="top">';
echo '<center>';
echo '<b>Top Pilots All Time </b>(Hours Flown)';
echo '<table cellspacing="1" cellpadding="1" border="1">';
echo '<tr>';
echo '<th width="175px"><div align="left">Pilot Details</div></th>';
echo '<th><div align="center">Hours Flown</div></th>';
echo '</tr>';
$all_hours= TopPilotData::alltime_hours(10);
foreach($all_hours as $all) {
   $pilot = PilotData::GetPilotData($all->pilotid);
   echo '<tr>';
   echo '<td><div align="left">'.$pilot->firstname.' '.$pilot->lastname.' - '.PilotData::GetPilotCode($pilot->code, $pilot->pilotid).'</div></td>';
   echo '<td><div align="center">'.$all->totalhours.'</div></td>';
   echo '</tr>';
}
echo '</table>';
echo '</td></tr>';
echo '</table>';
echo '<br />';
echo '<hr />';



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...