/
index.tpl
74 lines (68 loc) · 2.18 KB
/
index.tpl
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{literal}
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
initSpy();
});
function initSpy()
{
if($('#_spyTmp').size() == 0) {
$('#visitsLive > div:gt(2)').fadeEachDown(); // initial fade
$('#visitsLive').spy({
limit: 10,
ajax: 'index.php?module=Live&idSite={/literal}{$idSite}{literal}&action=getLastVisitsStart',
fadeLast: 2,
isDupe: check_for_dupe,
timeout: 8000,
customParameterName: 'minIdVisit',
customParameterValueCallback: lastIdVisit,
fadeInSpeed: 600
});
}
}
//updates the numbers of total visits in startbox
function updateTotalVisits()
{
$("#visitsTotal").load("index.php?module=Live&idSite={/literal}{$idSite}{literal}&action=ajaxTotalVisitors");
}
//updates the visit table, to refresh the already presented visitors pages
function updateVisitBox()
{
$("#visitsLive").load("index.php?module=Live&idSite={/literal}{$idSite}{literal}&action=getLastVisitsStart");
}
</script>
{/literal}
<div id="visitsTotal">
<table class="dataTable" cellspacing="0">
<thead>
<tr>
<th id="label" class="sortable label" style="cursor: auto;">
<div id="thDIV">Period<div></th>
<th id="label" class="sortable label" style="cursor: auto;">
<div id="thDIV">Visits<div></th>
<th id="label" class="sortable label" style="cursor: auto;">
<div id="thDIV">PageViews<div></th>
</tr>
</thead>
<tbody>
<tr>
<tr class="">
<td class="columnodd">Today</td>
<td class="columnodd">{$visitorsCountToday}</td>
<td class="columnodd">{$pisToday}</td>
</tr>
<tr class="">
<td class="columnodd">Last 30 minutes</td>
<td class="columnodd">{$visitorsCountHalfHour}</td>
<td class="columnodd">{$pisHalfhour}</td>
</tr>
</tbody>
</table>
</div>
<div id='visitsLive'>
{$visitors}
</div>
<div class="visitsLiveFooter">
<a href="javascript:void(0);" onclick="onClickPause();"><img id="pauseImage" border="0" src="plugins/Live/templates/images/pause_disabled.gif" /></a>
<a href="javascript:void(0);" onclick="onClickPlay();"><img id="playImage" border="0" src="plugins/Live/templates/images/play.gif" /></a>
<a class="rightLink" href="javascript:broadcast.propagateAjax('module=Live&action=getLastVisitsDetails')">{'Live_LinkVisitorLog'|translate}</a>
</div>