sky blue 1.0.4 help

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

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\>';

 

Thanks great, thanks

 

I knew it was just a question of adding CF somewhere in the code, but wasn’t sure where!

 

Thanks again