smokey68 Posted February 2, 2016 Report Share Posted February 2, 2016 What code or variable do i use to make to make it show the pilot rank image on each pilot line information bar thing below the acars map where it show name of pilot distance and all i want to show also the pilot rank is is possible ? Quote Link to comment Share on other sites More sharing options...
warpennys Posted June 25, 2016 Report Share Posted June 25, 2016 (edited) This is the way you test a variable: Activate the variable on the page where you need to use it from another module: <?php echo $leg = SchedulesData::getScheduleByFlight($flightAirlineCode, $flightAirlineCode2 ); ?> ($leg can be anything you want it to be, just used as an example.) Then put this at the bottom of the page and you will see the coded calls to use with $leg: <h3><?php echo var_dump($leg);?></h3> Once all the variables apear you would use it like this: <?php echo $leg->distremaining; ?> (any of the variables you want to use.) The code to show the pilots rank image is -- <?php $pilot = PilotData::getPilotData($flight->pilotid); ?> <img src="<?php echo $pilot->rankimage?>" style="height: 20px;" title="<?php echo $pilot->rank;?>"alt="<?php echo $pilot->rank;?>" /> Edited June 25, 2016 by warpennys 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.