I have created a module for someone in the forum and the guy requested the schedules to be separated by the airline. I can offer you the same thing but code it to work with flight type but you won't be able to use the default search module with this.
Screenshots:
Why don't you add an airline and name it "Charter" set the code as "ch" then you could add the routes with that airline as "CH123" then search by airline which is already there. This way is a lot easier than adding the flight type.
Add the following right after bracket where the foreach starts:
$airp1 = OperationsData::getairportinfo($lastbid->depicao);
$airp2 = OperationsData::getairportinfo($lastbid->arricao);
Now in <td> for departure airport data replace the following:
<?php echo $lastbid->depicao :?>
with this:
<?php echo $airp1->name ;?>
And for arrial:
<?php echo $airp2->name ;?>
And your home safe.
PIREPS are stored in a table called phpvms_pireps, so in order to pull the data from that table you will need to follow the instruction below:
1. Create a file and name it as: PIREP.class.php
2. Inside that file write a function to pull the data out.
3. Create a TPL file and name it anything you want.
4. inside the TPL create a table and show the data.
It's better not to edit the default modules but some times there is no other way. What you can do is to set up your module and use the default functions to include the pages you want.
You did everything correctly but the pirep_newform.tpl gets its data from the module and you're module is pretty much nothing to give to the template. Your module is just showing those templates.
Guys! I'm asking you to please calm down and wait for the issues to be resolved, then you can use the system and basically point out the bugs if there are any and else.
That's fine you can choose any number. The reason I put it there was I thought you might wanna show less records to shorten the page. You could also use a pagination.
You need to change the English caption part of the TPL like below and the save the TPL with notepad and change the "Encoding" drop down accordingly.
remember not to change the codes that are written in English.(ex. <?php echo $pilot->name ;?>)
Did you say you just finished installing? If yes then those parts you won't be able to see until you actually have some flight reports received or some schedules added to the system. Pilots need to register with your VA before they show up in the list however you must be able to see yourself as you're the admin and the installer. Airports also need to be added before they show up but KJFK is already added to the system, so you must be able to see that as well.
That's because the DB has raw data (ex. 1 would be aircraft ID in the aircraft table). If you want to show like A/C registration or departure airport name then you'll have to use other functions that meant to do that for you.