Jump to content

Stats Showing Zero


jamyboy

Recommended Posts

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

Link to comment
Share on other sites

Your code is correct.

Try to go to go admin page - > Site and settings -> maintenance Options

and clik on Clear Cache and report if it is ok

i have cleared the cache 2 times and also done recounting from maintenance options with no luck dont no where exactly is the problem what causing not to display stats accurately any IDEA?

Link to comment
Share on other sites

  • Members

i resended an email back that i am not able to download the database as you have it private on mediashare

your template with mine setup is working fine and i only corrected the sum of the pilots and sended back the template.

also

Are you getting any errors? Cause it's working just fine on my side. :)

Parkho's is working asswel

Please check your email or else tell me to send it again.

  • Like 1
Link to comment
Share on other sites

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