Jump to content

How to Display Airline logo


jamyboy

Recommended Posts

Dear Folks i have been messing with this from last 2 hrs or more with no luck i checked the forums as well also with no luck so please help me out.

this is the code i am using to display airline logo on latest arrival board

<h3 style="text-align: left;">Latest Arrivals</h3>
<?php
$count = 5;
$pireps = PIREPData::getRecentReportsByCount($count);
?>
<div style="border:solid 1px #0B3861">
<table class="imagetable2" width="100%" cellpadding="1" cellspacing="0">
  <thead>
 <tr bgcolor="#0B3861">
   <th><font color="#ffc600"> Airline</font></th>
   <th><font color="#ffc600">Flight #</font></th>
   <th><font color="#ffc600">Departure</font></th>
   <th><font color="#ffc600">Arrival</font></th>
   <th><font color="#ffc600">Aircraft</font></th>
   <th><font color="#ffc600">Duration</font></th>
   <th><font color="#ffc600">Pilot</font></th>
   <th><font color="#ffc600">Landing Rate</font></th>
   <th><font color="#fffc600">Status</font></th>
 </tr>
   </thead>
   <tbody>
<?php
foreach($pireps as $pirep)
{
$pilotinfo = PilotData::getPilotData($pirep->pilotid);
   $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid);
?>
<tr bgcolor="#D8D8D8">
<td align="center">
<img src="'.fileurl('/lib/images/airline/'.$pirep->code.'.gif').'" alt="'.$airline->name.'" width="127px" height="32px" /></a>
</td>
<td  align="center"><a href="<?php echo url('/pireps/view/'.$pirep->pirepid);?>"><?php echo $pirep->code . $pirep->flightnum; ?></a></td>
<td  align="center"><?php echo $pirep->depicao; ?></td>
<td  align="center"><?php echo $pirep->arricao; ?></td>
<td align="center"><?php echo $pirep->aircraft . " ($pirep->registration)"; ?></td>
<td  align="center"><?php echo $pirep->flighttime; ?></td>
<td  align="center"><?php echo $pilotinfo->firstname . ' ' . $pilotinfo->lastname; ?></td>
<td align="center">
 <?php echo $pirep->landingrate; ?>
</td>

i hope some one have solution for this i do not know how write code between <td>CODE</td> to display image for different airlines..... thanks in advance.

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