summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorspiderr <spider@viovio.com>2012-09-26 14:35:23 -0400
committerspiderr <spider@viovio.com>2012-09-26 14:35:23 -0400
commit94bc3390e7c87b629973faf91e60c9e1acf1f5c0 (patch)
treeb200d4f7b1772e0fe4d02449086d74fd0e66216a /templates
parentc63f2ad5f8dada0227f24476f33d77d3b9aed323 (diff)
downloadstats-94bc3390e7c87b629973faf91e60c9e1acf1f5c0.tar.gz
stats-94bc3390e7c87b629973faf91e60c9e1acf1f5c0.tar.bz2
stats-94bc3390e7c87b629973faf91e60c9e1acf1f5c0.zip
add totalregistrations and code support for timeframe
Diffstat (limited to 'templates')
-rw-r--r--templates/referer_stats.tpl12
1 files changed, 9 insertions, 3 deletions
diff --git a/templates/referer_stats.tpl b/templates/referer_stats.tpl
index 2fb7cd2..2a9089b 100644
--- a/templates/referer_stats.tpl
+++ b/templates/referer_stats.tpl
@@ -2,15 +2,17 @@
<div class="display statistics">
<div class="header">
- <h1>{tr}User Registration Statistics{/tr}</h1>
- {minifind}
+ <h1>{tr}User Registration Statistics{/tr} {$smarty.request.timeframe|escape}</h1>
+ {minifind period_format="`$smarty.request.period_format`" timeframe="`$smarty.request.timeframe`"}
</div>
<div class="body">
<table class="data">
<caption>{tr}User Registration Statistics{/tr}</caption>
-
+ {assign var=refCount value=0}
{foreach from=$referers key=host item=reg}
+ {assign var=regCount value=$reg|@count}
+ {assign var=totalReg value=$totalReg+$regCount}
{assign var=hostHash value=$host|md5}
<tr>
<th style="width:5%;">{$reg|@count}</th>
@@ -27,6 +29,10 @@
{foreachelse}
<tr class="norecords"><td colspan="3">{tr}No records found{/tr}</td></tr>
{/foreach}
+ <tr>
+ <th style="width:5%;">{$totalReg}</th>
+ <th>{tr}Total Registrations{/tr}</th>
+ </tr>
</table>
</div> <!-- end .body -->