Jump to content

How to change STATUS to GIF ANIMATED image?


SkilledPilotA320

Recommended Posts

Hello There :)

I now wana change my STATUS column to animated gif images, how can i do that?

I am not getting any idea where to change the code :(

<META HTTP-EQUIV="refresh" CONTENT="30">
<div style="position:relative"><h1>Flight Stats</h1>
<p style="text-align: right; position:absolute; right:5px;top:0;"><strong>Share</strong><span class='st_blogger' ></span><span class='st_twitter' ></span><span class='st_facebook' ></span><span class='st_yahoo' ></span><span class='st_email' ></span></p>
</div>
<img alt="" border="1" height="136" src="http://www.airindiavirtual.com/images/flightstats_pg.jpg" width="950" /></p>
<h3>
Live Flight Departure/Arrival Board</h3>
<table width="100%" cellspacing="0" cellpadding="4">
<tr class="title-row">
<th width="105">Airline</th>
<th width="77">
Flight #</th>
<!--<th width="50" " height="22" background="" class="style1"><span class="tablesorterBIS">
<div align="center">
Aircraft</span></th>-->
<th width="200">Depart</th>
<th width="200">Arrival</th>
<th width="80">Status</th>
</tr>
<?php $rowCounter = 1; ?>
<?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='#2ba600'>"; //This should set the font color to red when Taxiing.
if($row->phasedetail == 'Landed') $font = "<font color='#FFBF00'>"; //This should set the font color to red when Taxiing.
if($row->phasedetail == 'En Route') $font = "<font color='#2A7F00'>"; //This should set the font color to green when Cruise.
if($row->phasedetail == 'Departed') $font = "<font color='#FF0000'>"; //This should set the font color to red when Taxiing.
if($row->phasedetail == 'Approach') $font = "<font color='#690d0d'>"; //This should set the font color to green when Cruise.
if($row->phasedetail == 'Arrived') $font = "<font color='#e13838'>"; //This should set the font color to red when Taxiing.
// You can add more checks here for whatever you wish
?>
<tr class="listingTable <?php if( ($rowCounter % 2) == 0 ){ echo ' evenCol'; } $rowCounter++; ?>">
<td align="center">
<?php
$code = substr($row->flightnum, 0,3);
?>
<img src="<?php echo fileurl('/lib/images/airlines/'.$code.'.png'); ?>" alt="<?php echo $airline->name;?>" />
</td>
<td align="center"><?php echo $row->flightnum;?></td>
<!--<td align="center"><?php echo $row->aircraftname;?></td>-->
<td align="center"><?php echo $row->depname;?></td>
<td align="center"><?php echo $row->arrname;?></td>
<td align="center"><?php echo $font.$row->phasedetail;?></td>
</tr>
<?php
}
}
?>
</table>
<?php
if(!$results)
{
echo '<p align="center">No Online Flights Scheduled!</p>';
return;
}
?>

New ARRIVED STATUS -

thanks ^_^

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