page value calculated and displayed

This commit is contained in:
Ulf Gebhardt 2015-04-08 23:23:57 +02:00
parent 53335932cd
commit 22f5f9dc10
3 changed files with 6 additions and 3 deletions

View File

@ -19,6 +19,9 @@ class saimod_sys_log extends \SYSTEM\SAI\SaiModule {
$vars['log_month'] = $data['count'];
$vars['ip_month'] = $data['ip_unique'];
$vars['user_month'] = $data['user_unique'];
$vars['page_value'] = \round( $vars['log_today']+$vars['ip_today']*10+$vars['user_today']*100+
($vars['log_week']+$vars['ip_week']*10+$vars['user_week']*100)/7+
($vars['log_month']+$vars['ip_month']*10+$vars['user_week']*100)/31,0);
return \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new \SYSTEM\PSAI(),'modules/saimod_sys_log/tpl/saimod_sys_log_analytics.tpl'), $vars);
}

View File

@ -1,6 +1,6 @@
<table class="table table-hover table-condensed sai_table">
<table class="table table-hover table-condensed">
<tr>
<th></th>
<th>PV: ${page_value}</th>
<th>Today</th>
<th>Week</th>
<th>Month</th>

View File

@ -20,7 +20,7 @@
</div>
<div class="well" id="logout">
<h2 class="muted"><a href="#!login">${basic_logout}</a></h2>
<table class="table table-hover table-condensed sai_table">
<table class="table table-hover table-condensed">
<tr>
<th>${basic_username}</th>
<td>${username}</td>