mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7649 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5aa5432e9b
commit
174a24db8a
2 changed files with 9 additions and 5 deletions
|
|
@ -170,18 +170,22 @@
|
||||||
$args->start_date = $start_date;
|
$args->start_date = $start_date;
|
||||||
$args->end_date = $end_date;
|
$args->end_date = $end_date;
|
||||||
$output = executeQueryArray('admin.getVisitors', $args);
|
$output = executeQueryArray('admin.getVisitors', $args);
|
||||||
$status->week_max = 0;
|
|
||||||
if(count($output->data)) {
|
if(count($output->data)) {
|
||||||
foreach($output->data as $key => $val) {
|
foreach($output->data as $key => $val) {
|
||||||
$visitors[$val->regdate] = $val->unique_visitor;
|
$visitors[$val->regdate] = $val->unique_visitor;
|
||||||
if($val->unique_visitor>$status->week_max) $status->week_max = $val->unique_visitor;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$output = executeQueryArray('admin.getSiteVisitors', $args);
|
$output = executeQueryArray('admin.getSiteVisitors', $args);
|
||||||
if(count($output->data)) {
|
if(count($output->data)) {
|
||||||
foreach($output->data as $key => $val) {
|
foreach($output->data as $key => $val) {
|
||||||
$visitors[$val->regdate] += $val->unique_visitor;
|
$visitors[$val->regdate] += $val->unique_visitor;
|
||||||
if($val->unique_visitor>$status->week_max) $status->week_max = $val->unique_visitor;
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$status->week_max = 0;
|
||||||
|
if(count($visitors)) {
|
||||||
|
foreach($visitors as $key => $val) {
|
||||||
|
if($val>$status->week_max) $status->week_max = $val;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -146,8 +146,8 @@
|
||||||
<!--@foreach($status->week as $key => $val)-->
|
<!--@foreach($status->week as $key => $val)-->
|
||||||
<dl>
|
<dl>
|
||||||
<dt><!--@if($key==date("Ymd"))--><strong>{$key}</strong><!--@else-->{$key}<!--@end--></dt>
|
<dt><!--@if($key==date("Ymd"))--><strong>{$key}</strong><!--@else-->{$key}<!--@end--></dt>
|
||||||
<dd class="past" style="height:{$val->last/$status->week_max * 70}%" title="{$lang->last_week}:{number_format($val->last)}"><span>{$lang->last_week}:{number_format($val->last)}</span></dd>
|
<dd class="past" style="height:{$val->last/$status->week_max * 100}%" title="{$lang->last_week}:{number_format($val->last)}"><span>{$lang->last_week}:{number_format($val->last)}</span></dd>
|
||||||
<dd class="today" style="height:{$val->this/$status->week_max * 70}%" title="{$lang->this_week}:{number_format($val->this)}"><span>{$lang->this_week}:{number_format($val->this)}</span></dd>
|
<dd class="today" style="height:{$val->this/$status->week_max * 100}%" title="{$lang->this_week}:{number_format($val->this)}"><span>{$lang->this_week}:{number_format($val->this)}</span></dd>
|
||||||
|
|
||||||
</dl>
|
</dl>
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue