Fernando Posted February 24, 2015 Report Share Posted February 24, 2015 Hello, I have 2 active airline on my site, ICAO example: GLO WEB 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 GLO2144 SBPA SBCF Philippe Melo B738/M (PR-GTV) 1.54 -61 Accepted Logo Image #Flight Departure Arrival Pilot Aircraft Time T/D Status 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 Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted February 24, 2015 Members Report Share Posted February 24, 2015 You mean in the pirep list ? Have you tried anything ? Quote Link to comment Share on other sites More sharing options...
Fernando Posted February 24, 2015 Author Report Share Posted February 24, 2015 Yes the list PIREP, I created a table called phpvms_airlines image, changed the first script in admin, so that did not work, I want to appear in the last pireps list Quote Link to comment Share on other sites More sharing options...
Sava Posted February 24, 2015 Report Share Posted February 24, 2015 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;?> Quote Link to comment Share on other sites More sharing options...
IrfanKhan Posted February 24, 2015 Report Share Posted February 24, 2015 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> Quote Link to comment Share on other sites More sharing options...
Fernando Posted February 24, 2015 Author Report Share Posted February 24, 2015 Thanks, worked with the code of you! I changed some to enter the pages that desire. hugs Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.