CFVA Posted March 25, 2020 Report Share Posted March 25, 2020 skyBlue skin for phpvms Version 1.0.4 phpVMS v5.5.2 Released August 26, 2016 Updated: September 9, 2016 Using charter flights only in kACARS so no schedules! in frontpage_reports.php in want to add a flight code prefix (CF) to the listing, but can't work it out. This is the current code echo '<td><a href="'.SITE_URL.'/index.php/pireps/viewreport/'.$pirep->pirepid.'">'.$pirep->code.$pirep->flightnum.'</a></td>'; which shows just just flight number ie 117, what I want to show is CF117 Any help accepted Thanks Quote Link to comment Share on other sites More sharing options...
web541 Posted March 25, 2020 Report Share Posted March 25, 2020 It shouldn't be showing just 117, because the $pirep->code would show the airline the schedule has and as far as I know you must have an airline to create the schedule. 9 hours ago, CFVA said: Using charter flights only in kACARS so no schedules! Actually this might make sense. If all you want is to show CF for all PIREPS then ry this: echo '<td><a href="'.SITE_URL.'/index.php/pireps/viewreport/'.$pirep->pirepid.'">CF'.$pirep->flightnum.'</a></td>'; Quote Link to comment Share on other sites More sharing options...
CFVA Posted March 25, 2020 Author Report Share Posted March 25, 2020 Thanks great, thanks I knew it was just a question of adding CF somewhere in the code, but wasn't sure where! Thanks again 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.