blob: 82bf96e929cef5066dc19f8e5fc06bc9d8391a8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{* $Header$ *}
<div class="display statistics">
<div class="header">
<h1>{tr}Site Registrations{/tr}</h1>
</div>
<div class="body">
<ul class="nav nav-pills">
{foreach from=$periodHash item=periodName key=periodKey}
<li role="presentation" class="{if $smarty.request.period==$periodKey} active{/if}"><a href="{$smarty.const.STATS_PKG_URL}users.php?period={$periodKey}">{tr}{$periodName}{/tr}</a></li>
{/foreach}
</ul>
<table class="table">
<tr>
<th style="width:20%;" colspan="2">{tr}Period{/tr}</td>
<th style="width:80%;">{tr}Number of Registrations{/tr}</td>
</tr>
{foreach item=reg key=timeframe from=$userStats.per_period}
<tr class="{cycle values="even,odd"}">
<td>{$timeframe}</td>
<td>
{if $gBitSystem->isFeatureActive( 'stats_referers' ) and $gBitUser->hasPermission( 'p_stats_view_referer' )}
[<a href="{$smarty.const.STATS_PKG_URL}referers.php?period={$smarty.request.period}&timeframe={$timeframe|urlencode}">Referrers</a>]
{/if}
</td>
<td><div style="width:{math equation="round( ( r / m ) * 100 )" r=$reg m=$userStats.max}%; background:#ff9;padding:0 0 0 5px;">{booticon iname="icon-user"} <a href="{$smarty.const.USERS_PKG_URL}admin/index.php?period={$smarty.request.period}&timeframe={$timeframe|urlencode}">{$reg}</a></div></td>
</tr>
{foreachelse}
<tr class="norecords">
<td colspan="2">
{tr}No results{/tr}
</td>
</tr>
{/foreach}
</table>
</div> <!-- end .body -->
</div> <!-- end .statistics -->
|