Jump to content

#SOLVD Airline Logo - Help


Fernando

Recommended Posts

Hello,

I have 2 active airline on my site, ICAO example:

GLO leme_GLO.gif

WEBleme_WEB_webjet.gif

I would like to when each rider took a flight appeared the logo of their respective companies example;

Logo Image #Flight Departure Arrival Pilot Aircraft Time T/D Status leme_GLO.gifGLO2144 SBPA SBCF Philippe Melo B738/M (PR-GTV) 1.54 -61

Accepted

Logo Image #Flight Departure Arrival Pilot Aircraft Time T/D Status leme_WEB_webjet.gif WEB5801 SBGR SBBR Luiz Fernando B738/M (PR-GTI) 1.47 -111

Accepted

anyone have any idea, I believe you have some code if the flight is the GLO image X appears if the flight is the WEB y image appears.

Something a little help

Link to comment
Share on other sites

If I understood you correctly, you want to show the logo image in pireps_viewall template file. If so, first of all, make the two images and name them GOL.jpg (or png or whatever) and WEB.jpg. Place them in some folder and then do:

<img src="<?php echo SITE_URL;?>/path/to/image/folder/<?php echo $report->code;?>.jpg" alt="<?php echo $report->code;?>

Link to comment
Share on other sites

I am using the below code to get the airline logo BUT you have to create images with your Airline ICAO code like suggested by sava.

<td align="center">
  <?php echo '<img src="'.fileurl('/lib/images/airline/'.$report->code.'.png').'" alt="'.$airline->name.'" width="100" style="vertical-align:top" />'; ?>
</td>

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