VastatsData.class.php

I got mine to work without creating a module. All the functions are now in phpVMS that are shown in the pic on the front page.

Mine is basic basic now but works. What I did was  placed the frontpage_main.tpl from core templates into my skin so it would not be written over in updates.

I have added something liek this to make it work.

<h3>VA Statistics</h3>
    
        <p>Total Pilots: <?php echo StatsData::PilotCount(); ?></p>
        <p>Total Flights: <?php echo StatsData::TotalFlights(); ?></p>
        <p>Total Flights Today: <?php VastatsData::totalflightstoday(); ?></p>
        <p>Total Flight Hours: <?php echo StatsData::TotalHours(); ?></p>
        <p>Total PAX Carried: <?php VastatsData::totalpaxcarried(); ?></p>
        <p>Total Fuel Burned: <?php VastatsData::totalfuelburned(); ?></p>
        <p>Total Miles Flown: <?php VastatsData::totalmilesflown(); ?></p>
        <p>Total Aircraft: <?php VastatsData::totalaircraftinfleet(); ?></p>
        <p>Total Schedules: <?php VastatsData::totalschedules(); ?></p>
        <p>Total News Items: <?php VastatsData::totalnewsitems(); ?></p>

I know all the P’s are not necessary. I just hacked it together lastnight in a few minutes. But something like that will get you on your way.

I just looked way to far into it and tried and tried to create a module and never actually had to.  :-[  Try doing something like I did in the frontpage_main.tpl if using crystal or a copied crystal and it should work. And obviously you will need to skin it and recode to suit your needs.

Hello Sir and thanks for your reply.

Like you I also have tried making a Module but to no avail,

Will try what you have done.

Thanks again

Adam

Modules have been revamped in the next version, so it will be easier.

But for this, you just can modify the templates to call the functions.

I think the video tutorials might make it clearer. But I will be revising the existing tutorials when the time comes to reflect the updated internals. I’ll try to go in-depth for it, to cover alot of stuff.

Hello Sir and thanks for your reply.

Like you I also have tried making a Module but to no avail,

Will try what you have done.

Thanks again

Adam

No probs Adam. Like I said, that is VERY rough code that was tossed together in a couple minutes.  :-[ Try it and skin it to your liking and I’m sure you will be happy.  ;D

PLs can someone code me some table for Croatia Cargo Company,  i would really be preciated, cause you guys eat codes for brekfast, i will do that for year hehe…really…

So…i would involve…total pilots, total A/C, total routes, total miles flown, total cargo carried, total fuel burnedtotal hours flown. Thank you very much guys