Jump to content

Recommended Posts

Posted

Hello all!

Quick question... in my flight briefing, how can I show the departure and arrival countries? I tought something like <?php echo $depinfo->country;?> would show it directly, but it doesn't do so! I went over this forum and tried different ways, any idea? Thanks!

Posted

Place this somewhere near the top of your schedule_briefing.tpl

$depinfo = OperationsData::getAirportInfo($schedule->depicao);
$arrinfo = OperationsData::getAirportInfo($schedule->arricao);

Then, where you want the countries to be placed...

<?php echo $depinfo->country;?>
<?php echo $arrinfo->country;?>

Enjoy!

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