@ -48,6 +48,7 @@
< th > <?php echo _t ( 'feed' ); ?> </ th >
< th > <?php echo _t ( 'feed' ); ?> </ th >
< th > <?php echo _t ( 'category' ); ?> </ th >
< th > <?php echo _t ( 'category' ); ?> </ th >
< th > <?php echo _t ( 'stats_entry_count' ); ?> </ th >
< th > <?php echo _t ( 'stats_entry_count' ); ?> </ th >
< th > <?php echo _t ( 'stats_percent_of_total' ); ?> </ th >
< / tr >
< / tr >
< / thead >
< / thead >
< tbody >
< tbody >
@ -56,6 +57,7 @@
< td >< a href = " <?php echo _url ( 'stats' , 'repartition' , 'id' , $feed [ 'id' ]); ?> " > <?php echo $feed [ 'name' ]; ?> </ a ></ td >
< td >< a href = " <?php echo _url ( 'stats' , 'repartition' , 'id' , $feed [ 'id' ]); ?> " > <?php echo $feed [ 'name' ]; ?> </ a ></ td >
< td > <?php echo $feed [ 'category' ]; ?> </ td >
< td > <?php echo $feed [ 'category' ]; ?> </ td >
< td class = "numeric" > <?php echo formatNumber ( $feed [ 'count' ]); ?> </ td >
< td class = "numeric" > <?php echo formatNumber ( $feed [ 'count' ]); ?> </ td >
< td class = "numeric" > <?php echo formatNumber ( $feed [ 'count' ] / $this -> repartition [ 'all_feeds' ][ 'total' ] * 100 , 1 ); ?> </ td >
< / tr >
< / tr >
<?php endforeach ; ?>
<?php endforeach ; ?>
< / tbody >
< / tbody >
@ -91,12 +93,22 @@ function initStats() {
return;
return;
}
}
// Entry per day
// Entry per day
var avg = [];
for (var i = -31; i < = 0; i++) {
avg.push([i, <?php echo $this -> average ?> ]);
}
Flotr.draw(document.getElementById('statsEntryPerDay'),
Flotr.draw(document.getElementById('statsEntryPerDay'),
[<?php echo $this -> count ?> ],
[{
data: <?php echo $this -> count ?> ,
bars: {horizontal: false, show: true}
},{
data: avg,
lines: {show: true},
label: "<?php echo $this -> average ?> "
}],
{
{
grid: {verticalLines: false},
grid: {verticalLines: false},
bars: {horizontal: false, show: true},
xaxis: {noTicks: 6, showLabels: false, tickDecimals: 0, min: -30.75, max: -0.25},
xaxis: {noTicks: 6, showLabels: false, tickDecimals: 0},
yaxis: {min: 0},
yaxis: {min: 0},
mouse: {relative: true, track: true, trackDecimals: 0, trackFormatter: function(obj) {return numberFormat(obj.y);}}
mouse: {relative: true, track: true, trackDecimals: 0, trackFormatter: function(obj) {return numberFormat(obj.y);}}
});
});