Jump to content

Set the load for manual PIREPs


Nabeel

Recommended Posts

  • Administrators

This is an example addon for manipulating PIREPs. In this, it adds a field called "load" to the PIREP form, and then on submit, checks to see the entered load is withing the constraints of the aircraft selected, based on whether it is a passenger or cargo flight.

This also serves as an example of how a VA can add their own custom checks for PIREPs to ensure data is entered the way they want it to be.

Of course, this isn't a substitute for the admin checking the PIREP.

You'll have to add this to your pirep_new.tpl:

<input type="text" name="load" value="<?php echo $_POST['load'];?>" />

Then placed the contents of the attached zip file into your core/modules folder.

pirepchecks.zip

  • Like 2
Link to comment
Share on other sites

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