Firstly, thank you to Vangelis for all the great work and support he gives to the community. I only wish I were half as capable! I have been using the community for a long time now and I am not often in the position to offer much back other than comments on posts. Hopefully, this will make up for it.
Like many, I am using , which creates a button that allows you to generate a SimBrief OFP.
This worked great for a while on my airline site, but having used SimBrief itself, I wanted more control over the information used in my flight planning. I wanted something a little more like the Dispatch System used on SimBriefâs website.
I set about creating a form that I could use to specify some settings, before generating the OFP itself. After much playing around with ideas and combinations, I came up with something that works really well for me and creates a very accurate OFP. I wanted to share it on here and give a little something back.
What this addon does.
It provides a form that allows you to configure the following aspects of your flight plan:
- Aircraft type
- Weight unit preference (lbs or kgs)
- The departure and destination airports
- Contingency fuel amount
- Reserve fuel amount (time based)
- Detailed or simple Navlog
- ETOPS planning
- Stepclimb detail
- Runway analysis
- NOTAMS inclusion
- Flight Map detail
- Plan layout (LIDO, BAW etc)
- Route preference
Any of these options can be switched on or off, or adjusted before clicking the âGenerate OFPâ button.
You can also configure the form by deleting or hiding elements you donât want pilots to change or control.
Readme from Github
A form to allow options to be altered before generating the SimBrief OFP.
NOTE: This addon is designed to work with the SimBrief Addon by Vangelis on PHPVMS Forums. You must have this installed for this functionality to work.
I am also using David Clarkâs version of PHPVMS where the templates are in .php format rather than .tpl. If you have an older version and your template files are .tpl, simply alter the file extension as required and the file should work.
You must also have a SimBrief API key which is expained in Vangelisâ module and you also need to register for a free SimBrief account for the form to work as it needs to make a connection to SimBrief itself.
INSTALLATION
- Download the âschedules_briefing.phpâ file from here.
- It is optional if you want to download the âstyle.cssâ file. It gives you the custom styles I have used for my form and page. You may want to use your own sites styling for the form and tables.
- If you are using a custom skin for phpvms then you will need to place the âschedules_briefing.phpâ file in /lib/skins/(your skin name).
- If you are not using a custom skin, then you should place the file in /core/templates/.
- If you wish to use my styling, you can just copy and paste the styles from my âstyle.cssâ to your style file. For a custom skin this is likely to be /lib/skins/(your skin name)/css/style.css.
- For a vanilla phpvms install, your style file should be located in /lib/css/phpvms.css.
- If you want to use your own styling, then you need to change the following html tag references in the âschedules_briefing.phpâ file you downloaded.
- Change âclassic-title5â to one of your own header styles
- The âcall-actionâ is a Boostrap3 box. The styling of the box is controlled by "call-action-style1.
<div class="call-action call-action-boxed call-action-style1 no-descripton clearfix">
- This controls the general styling of the container and itâs elements that house the tables.
<div class="schedule-briefing">
- This controls the specific table style. You can simply overwrite âbriefing-tableâ with your own style classname.
<table class="briefing-table">
- The âdispinputâ styles the input and select form elements on the page.
<select class="dispinput" name="date" id="date">
<p>Once youâve uploaded the schedule_briefing.php file, you need to also edit the following line at the bottom of the file.
Replace the url from my form (highlighted bit below) .
<button type="button" style="width:100%" class="btn btn-success btn-lg" onclick="simbriefsubmit('http://www.globalairalliance.com/index.php/SimBrief');" style="font-size:30px" value="Generate">Click to Generate OFP>
with yours as shown below.
<button type="button" style="width:100%" class="btn btn-success btn-lg" onclick="simbriefsubmit('http://Your website URL here/index.php/SimBrief');" style="font-size:30px" value="Generate">Click to Generate OFP</button>
To add the âdynamically called fleetâ from your database, you also need to download and install the "OperationsData.class.php file and copy it to your âcore/commonâ directory. Rename your existing file to âOperationsData.class.phpOLDâ so you have a backup, just incase anything breaks.
Thatâs it, you should be good to go.
To test it, bid on a flight, go to âview my bidsâ and click on âpilot briefâ. You should now see your form. Adjust the settings as you need and press on the âClick to Generate OFPâ. You should now see your OFP complete with accurate timings and fuel predictions.
Enjoy!
Credits: Vangelis, Web541, Strider, Keith