I have created a module to extract and display the touchdown rate for landings for pilots submitting a pirep via fsacars and looking for some active airlines to test it and give feedback.
To install;
1 - Download attached folder and unzip
2 - Place the Landingstats module folder in core/modules/
3 - Place the LandingstatsData.class.php file in core/common/
4 - Place the lstats.tpl file in core/templates or your skin folder
5 - Use phpmyadmin (or similar) to run the landing_stats.sql file in your airline database. It will add two fields to the pireps table, stat_calculated and landing_stat
6 - In admin/templates find and open pireps_list.tpl
Find Line 51:
Flight Time: <?php echo $report->flighttime; ?><br />
Add a new blank line after line 51 and insert:
Landing Rate: <?php echo $report->landing_stat; ?> ft/min<br />
Save file
**You will have to have at least one pirep filed (of any type) after installing the module for the module to go back and calculate the landing stat for all the old pireps. From then on it will calculate the landing rate for each pirep filed and insert it into the database.
You will be able to see the landing rate (for pireps filed using fsacars) in the admin panel when reviewing new pireps for approval.
If you want a chart showing the best landing rates on your site you can use the other function built into Landingstats to call a table ->
<?php MainController::Run('Landingstats', 'display_landingstats', '8'); ?>
It will output ->
The â8â in the call for the table tells it how many rows you want returned. It is set to return the best rate first and then decending through the rest so if you only call for one row, you will get only the best landing rate currently filed.
*The lstats.tpl file is very basic and will need to be skinned into your template
*tested with beta778 in itâs current form with no issues
Please let me know of any issues in your installation that you have with the module.