Moderators Kyle Posted February 26, 2011 Moderators Report Share Posted February 26, 2011 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. 3 Quote Link to comment Share on other sites More sharing options...
James142 Posted April 9, 2011 Report Share Posted April 9, 2011 Thanks Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted April 9, 2011 Author Moderators Report Share Posted April 9, 2011 No problem. Quote Link to comment Share on other sites More sharing options...
Jeff Posted May 7, 2011 Report Share Posted May 7, 2011 Kyle, do you have one for Total Airlines? Quote Link to comment Share on other sites More sharing options...
James142 Posted June 25, 2011 Report Share Posted June 25, 2011 Pending Applications: <?php echo count(PilotData::GetPendingPilots())?> Quote Link to comment Share on other sites More sharing options...
Passion Posted August 2, 2011 Report Share Posted August 2, 2011 Thank you this is really great but what does the file at the end so that one sees on the front page? Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted August 3, 2011 Report Share Posted August 3, 2011 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. Quote Link to comment Share on other sites More sharing options...
jamyboy Posted June 12, 2013 Report Share Posted June 12, 2013 Folks need quick help on my website in Airline stats Flights today and total pilots are showing zero why any suggestions? Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted June 12, 2013 Members Report Share Posted June 12, 2013 Just do a rencount in the admin-maintenance section and see if it will work Quote Link to comment Share on other sites More sharing options...
mitcheinfo Posted June 13, 2013 Report Share Posted June 13, 2013 A question which I can add these codes, thanks Quote Link to comment Share on other sites More sharing options...
OA01 Posted June 15, 2013 Report Share Posted June 15, 2013 Total Flights Today: <?php echo StatsData::totalflightstoday(); ?> Quote Link to comment Share on other sites More sharing options...
jamyboy Posted June 16, 2013 Report Share Posted June 16, 2013 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> Quote Link to comment Share on other sites More sharing options...
ahughes3 Posted June 25, 2013 Report Share Posted June 25, 2013 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. Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted June 25, 2013 Members Report Share Posted June 25, 2013 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 Quote Link to comment Share on other sites More sharing options...
ahughes3 Posted June 25, 2013 Report Share Posted June 25, 2013 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 Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted June 25, 2013 Members Report Share Posted June 25, 2013 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 Quote Link to comment Share on other sites More sharing options...
Strider Posted June 26, 2013 Report Share Posted June 26, 2013 Why dont you just skin phpvms to what you want it to look like? Why have a static page and phpvms installed in a sub-directory??? Quote Link to comment Share on other sites More sharing options...
ahughes3 Posted June 26, 2013 Report Share Posted June 26, 2013 Thanks Vangelis, I will take a look and hopefully I'll post back here with a big thumbs up @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. Quote Link to comment Share on other sites More sharing options...
Boogace Posted May 5, 2015 Report Share Posted May 5, 2015 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 Quote Link to comment Share on other sites More sharing options...
freshJet Posted May 5, 2015 Report Share Posted May 5, 2015 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());?> Quote Link to comment Share on other sites More sharing options...
Boogace Posted May 19, 2015 Report Share Posted May 19, 2015 Itrobb Thank you so much it worked a treat ! Quote Link to comment Share on other sites More sharing options...
hurkulez Posted June 13, 2015 Report Share Posted June 13, 2015 Is there stats data for total Airports? Quote Link to comment Share on other sites More sharing options...
orobouros Posted October 7, 2016 Report Share Posted October 7, 2016 Hello, as we have transfered hours from our old website wich was not a phpvms, i would like to add transfer hours to the total hours. How can i do that please ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.