hello again,
could you pls explain how to create this module... I think first i have to create a module and put somehow:
case 'stats':
Template::Set('toproutes', StatsData::TopRoutes(1));
Template::Set('topaircraft', StatsData::AircraftUsage(5));
Template::Show('stats_operations.tpl');
and then add to stats_operations.tpl
<?php
if(!$toproutes)
{
echo 'No Top Routes Exist';
return;
}
foreach($toproutes as $report)
{
?>
<tr>
<td align="center"><?php echo $report->code; ?><?php echo $report->flightnum; ?></td>
<td align="center"><?php echo $report->depicao; ?></td>
<td align="center"><?php echo $report->arricao; ?></td>
<td align="center"><?php echo $report->distance; ?></td>
</tr>
<?php
}
?>
for top routes for example.
I think i have all mess up !
sorry :-[