El Macara Posted October 7, 2010 Report Share Posted October 7, 2010 hi, as I can post all the stats of my airline? example: total flights, total hours, total miles, total passengers, total money, total pilots, flight plans total. all these statistics I have them in my control panel, but I want to publish as everyone else can see them. how I can do this please thanks for the help they can give me ... Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted October 7, 2010 Report Share Posted October 7, 2010 This code is a bit rough but You could do something like this: <ul> <br /> <strong>Total Flights: </strong><?php echo StatsData::TotalFlights(); ?><br /> <strong>Total Flights Today: </strong><?php echo StatsData::totalflightstoday(); ?><br /> <strong>Total Pax Carried: </strong><?php echo StatsData::totalpaxcarried(); ?><br /> <strong>Total Hours Flown: </strong><?php echo StatsData::TotalHours(); ?><br /> <strong>Total Charters: </strong><?php echo StatsData::totalschedules(); ?><br /> It is up to you where you put that code at. It will work no matter where you try it at basically. Mine is on the left side of my site in a info block. 1 Quote Link to comment Share on other sites More sharing options...
El Macara Posted October 7, 2010 Author Report Share Posted October 7, 2010 This code is a bit rough but You could do something like this: <ul> <br /> <strong>Total Flights: </strong><?php echo StatsData::TotalFlights(); ?><br /> <strong>Total Flights Today: </strong><?php echo StatsData::totalflightstoday(); ?><br /> <strong>Total Pax Carried: </strong><?php echo StatsData::totalpaxcarried(); ?><br /> <strong>Total Hours Flown: </strong><?php echo StatsData::TotalHours(); ?><br /> <strong>Total Charters: </strong><?php echo StatsData::totalschedules(); ?><br /> It is up to you where you put that code at. It will work no matter where you try it at basically. Mine is on the left side of my site in a info block. thanks for answering and helping me with what I need, I'll try tomorrow and let you know if the code work thanks for your help ... Quote Link to comment Share on other sites More sharing options...
El Macara Posted October 7, 2010 Author Report Share Posted October 7, 2010 This code is a bit rough but You could do something like this: <ul> <br /> <strong>Total Flights: </strong><?php echo StatsData::TotalFlights(); ?><br /> <strong>Total Flights Today: </strong><?php echo StatsData::totalflightstoday(); ?><br /> <strong>Total Pax Carried: </strong><?php echo StatsData::totalpaxcarried(); ?><br /> <strong>Total Hours Flown: </strong><?php echo StatsData::TotalHours(); ?><br /> <strong>Total Charters: </strong><?php echo StatsData::totalschedules(); ?><br /> It is up to you where you put that code at. It will work no matter where you try it at basically. Mine is on the left side of my site in a info block. I put the codes in my airline and they are working perfectly, One last question, you have the code to publish the total miles? thanks for your help, I hope to answer. Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted October 8, 2010 Report Share Posted October 8, 2010 Yeah I never added that to mine. I would need to look up the functions for it. Quote Link to comment Share on other sites More sharing options...
El Macara Posted October 8, 2010 Author Report Share Posted October 8, 2010 Yeah I never added that to mine. I would need to look up the functions for it. ok thank you for your attention and help, please let me know take care.. Quote Link to comment Share on other sites More sharing options...
Tato123 Posted October 9, 2010 Report Share Posted October 9, 2010 in what file is necessary put the code? Quote Link to comment Share on other sites More sharing options...
El Macara Posted October 9, 2010 Author Report Share Posted October 9, 2010 in what file is necessary put the code? currently I'm using the ObsessBlue skin and I put that code in the header.tpl file Quote Link to comment Share on other sites More sharing options...
Tato123 Posted October 10, 2010 Report Share Posted October 10, 2010 thank's El Macara Quote Link to comment Share on other sites More sharing options...
Mark J Posted June 15, 2011 Report Share Posted June 15, 2011 is there a code for the total miles flown? Quote Link to comment Share on other sites More sharing options...
freshJet Posted June 15, 2011 Report Share Posted June 15, 2011 <strong>Miles Flown: </strong><?php echo StatsData::TotalMilesFlown(); ?> 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.