Jump to content

Recommended Posts

  • Moderators
Posted

Ok, Since people is trying to find stats, so I'll post all of the stats here.......

# Of Pilots

<?php echo StatsData::PilotCount(); ?>

Total Hours

<?php echo StatsData::TotalHours(); ?>

Total Flights

<?php echo StatsData::TotalFlights(); ?>

Total Distance

<?php echo StatsData::TotalMilesFlown(); ?>

Total Schedules

<?php echo StatsData::TotalSchedules (); ?>

Total News Posted

<?php echo StatsData::TotalNewsItems (); ?>

Total Passengers

<?php echo StatsData::TotalPaxCarried (); ?>

Total Fuel Burned

<?php echo StatsData::TotalFuelBurned () ; ?>

Total Aircraft

<?php echo StatsData::TotalAircraftInFleet () ; ?>

That's all I posted for all of them....

If you want to show only specific Stats for An Airline, then here's an example how it's done....

<?php echo StatsData::TotalSchedules (WS); ?>

You add your Airline Code inside the Brackets.

That's all, if you think I'm missing more, then post it in here.

  • Like 3
  • 1 month later...
  • 4 weeks later...
  • 1 month later...
  • 1 month later...
Posted

Thank you this is really great but what does the file at the end so that one sees on the front page?

Try that one more time. Not sure I understand what you need. My apologies.

  • 1 year later...
Posted

again same problem remains anyone can help please why all stats showing zero.

this code is in frontpage_main.tpl should i have to put in layout.tpl?

<div align="center">
<table class="qtable" width="200px" style="margin-left:-4px;">
<tbody>
<tr>
 <td style="border-bottom:1px dashed #CDCDCD;"><div align="left">
 <strong>Flights Today</strong>
 </div></td><br />
 <td style="border-bottom:1px dashed #CDCDCD;"><div align="center"><span class="label"><?php echo StatsData::totalflightstoday(); ?></span></div></td>
</tr>
<tr>
 <td style="border-bottom:1px dashed #CDCDCD;"><div align="left">
 <strong>Total Flights</strong>
 </div></td>
 <td style="border-bottom:1px dashed #CDCDCD;"><div align="center"><span class="label"><?php echo StatsData::TotalFlights(); ?></span></div></td>
</tr>
<tr>
 <td style="border-bottom:1px dashed #CDCDCD;"><div align="left">
 <strong>Registrations Status</strong>
 </div></td>
 <td style="border-bottom:1px dashed #CDCDCD;"><div align="center"><span class="success label">OPEN</span></div></td>
</tr>
<tr>
 <td style="border-bottom:1px dashed #CDCDCD;"><div align="left">
 <strong>Total Pilots</strong>
 </div></td>
 <td style="border-bottom:1px dashed #CDCDCD;"><div align="center"><span class="label">375</span></div></td>
</tr>
<tr>
 <td style="border-bottom:1px dashed #CDCDCD;"><div align="left">
 <strong>Total Passengers Carried</strong>
 </div></td>
 <td style="border-bottom:1px dashed #CDCDCD;"><div align="left"><span class="label"><?php echo StatsData::TotalPaxCarried (); ?></span></div></td>
</tr><tr>
 <td style="border-bottom:1px dashed #CDCDCD;"><div align="left">
 <strong>Total Aircraft</strong>
 </div></td>
 <td style="border-bottom:1px dashed #CDCDCD;"><div align="left"><span class="label"><?php echo StatsData::TotalAircraftInFleet () ; ?></span></div></td>
</tr>
<tr>
 <td style="border-bottom:1px dashed #CDCDCD;"><div align="left">
 <strong>Total Schedules</strong>
 </div></td>
 <td style="border-bottom:1px dashed #CDCDCD;"><div align="left"><span class="label"><?php echo StatsData::TotalSchedules (); ?></span></div></td>
</tr>
<tr>
 <td style="border-bottom:1px dashed #CDCDCD;"><div align="left">
 <strong>Pending Applications</strong>
 </div></td>
 <td style="border-bottom:1px dashed #CDCDCD;"><div align="left"><span class="alert label"><?php echo count(PilotData::GetPendingPilots())?></span></div></td>

503y.png

  • 2 weeks later...
Posted

Ok, I am a complete noob when it comes to php but I'm a fast learner. :)

I want to include a set of stats on my VA website, not the phpvms site. If I use the above code snippets, what do I need to do so they will pull the info from phpvms and show them on my website?

Any help, much appreciated.

  • Members
Posted

What kind of a website is it ?

because i am not at home i am not sure but i think you have to include codon.config in your website and then use those codes that in this post

Posted

Hi Vangelis, our main website is a static website with phpvms installed in a sub-directory. When we used to use fsairlines and VAFS they had code for various airline states based on iframes. I'd like to be able to incorporate similar data from phpvms, but i want it on the main website not the vms one.

Would the codon.config act as a link through to the data in phpvms? Would I then be able to utilise the code snippets? I am assuming the codon.config would go in the root of the main website?

Sorry for so many questions, I'm just trying to understand :rolleyes:

  • Members
Posted

you will keep the codon.config in the parent folder and on your static page you will have to include it and then you will be able to utilisize all the functions of phpvms,

Or you could just do what you did with fsairliners put everything in the static page in an iframe

Have a look at this thread http://forum.phpvms.net/topic/3686-implenting-codonconfigphp-in-a-standalone-php-page/ and this http://forum.phpvms.net/topic/3394-external-pilot-centre/page__p__23466__hl__%22include%22__fromsearch__1#entry23466

it will help you somehow if you have any questions do not hesitate to post them

Posted

Thanks Vangelis, I will take a look and hopefully I'll post back here with a big thumbs up :D

@Strider - I have been running a VA for quite some time and we already had the website set up before we migrated to phpvms. I'm loathed to chuck the who thing away when the two can work well together as they are...........assuming I can get the stats to show up on the static site.

  • 1 year later...
Posted

Thank you for the hard work guys but how do I add a comma to the results ie im showing pax carried

5855072 how do I add a comma to this to seperate ? to show for example 58,550,72 to the line

<?php echo StatsData::TotalPaxCarried (); ?>

please help im stuck

Posted

Thank you for the hard work guys but how do I add a comma to the results ie im showing pax carried

5855072 how do I add a comma to this to seperate ? to show for example 58,550,72 to the line

<?php echo StatsData::TotalPaxCarried();?>

please help im stuck

<?php echo number_format(StatsData::TotalPaxCarried());?>

  • 2 weeks later...
  • 4 weeks later...
  • 1 year later...

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