so here is the mess i made ![]()
i created a tpl called frontpage_recentbids.tpl
there i put in this
<style type="text/css">
<!--
.style1 {
color: #F60;
font-weight: bold;
}
.style2 {
color: #000000;
font-size: 18px;
}
.tablesorter {
color: #FFF;
}
.tablesorterb {
color: #FFF;
}
.tablesorterBIS {
color: #FFFFFF;
}
.tablesorter .style1 .tablesorter {
color: #000;
}
.tablesorter tbody tr .tablesorter {
color: #000;
}
.tablesorter tbody .tablesorter .style2 {
font-size: 10px;
}
.tablesorter tbody .tablesorter .style2 {
color: #0F0;
}
.tablesorter tbody .tablesorter .style2 {
color: #000;
}
.Style3 {
font-size: 18px;
}
-->
</style>
<h3>Live Flight Board</h3>
<table width="500" class="tablesorter">
<tr>
<th width="105" " height="22" background="" class="style1"><span class="tablesorterBIS">
<div align="center" class="style1">
Pilot Name</span></th>
<th width="77" " height="22" background="" class="style1"><span class="tablesorterBIS">
<div align="center" class="style1">
Flight No.</span></th>
<!--<th width="77" " height="22" background="" class="style1"><span class="tablesorterBIS">
<div align="center" class="style1">
Aircraft</span></th>-->
<th width="57" " height="22" background="" class="style1"><span class="tablesorterBIS">
<div align="center" class="style1">
Depart</span></th>
<th width="61" " height="22" background="" class="style1"><span class="tablesorterBIS">
<div align="center" class="style1">
Arrival</span></th>
<th width="176" " height="22" background="" class="style1"><span class="tablesorterBIS">
<div align="center" class="style1">
Phase</span></th>
</tr>
<?php
$results = ACARSData::GetACARSData();
if (count($results) > 0)
{
foreach($results as $row)
{
$font = "<font color=''>"; // Standard font color if nothing below is TRUE
if($row->phasedetail == 'Boarding') $font = "<font color='#2A00FF'>"; //This should set the font color to red when Taxiing.
if($row->phasedetail == 'Taxiing') $font = "<font color='#FFBF00'>"; //This should set the font color to red when Taxiing.
if($row->phasedetail == 'Cruise') $font = "<font color='#2A7F00'>"; //This should set the font color to green when Cruise.
if($row->phasedetail == 'Climbing') $font = "<font color='#FF0000'>"; //This should set the font color to red when Taxiing.
if($row->phasedetail == 'Descending') $font = "<font color='#FF0000'>"; //This should set the font color to green when Cruise.
if($row->phasedetail == 'Arrived') $font = "<font color='#551F00'>"; //This should set the font color to red when Taxiing.
// You can add more checks here for whatever you wish
?>
<tr class="tablesorter">
<td align="center" bgcolor="#CCCCCC" class="style2" style="color: #000000"><?php echo $row->pilotname;?></td>
<td align="center" bgcolor="#CCCCCC" class="style2" style="color: #000000"><?php echo $row->flightnum;?></td>
<!--<td align="center" bgcolor="#CCCCCC" class="style2" style="color: #000000"><?php echo $row->aircraftname;?></td>-->
<td align="center" bgcolor="#CCCCCC" class="style2" style="color: #000000"><?php echo $row->depicao;?></td>
<td align="center" bgcolor="#CCCCCC" class="style2" style="color: #000000"><?php echo $row->arricao;?></td>
<td align="center" bgcolor="#CCCCCC" class="style2" style="color: #000000"><?php echo $font.$row->phasedetail;?></td>
</tr>
<?php
}
}
?>
</table>
<?php
if(!$results)
{
echo '<p align="center">Currently there no pilots in flight</p>';
return;
}
?>
then on the mainpage i have done this
<?php MainController::Run(‘FrontBids’, ‘RecentFrontPage’,5); ?>
there probably is and willbe a better and faster way
gr joeri