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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
<img src="plugins/MultiSites/images/arrow_desc.gif" style="display: none" />
<img src="plugins/MultiSites/images/arrow_asc.gif" style="display: none" />
{assign var=showSitesSelection value=false}
{assign var=showPeriodSelection value=true}
{include file="CoreHome/templates/header.tpl"}
<script type="text/javascript" src="plugins/MultiSites/templates/common.js"></script>
<style>
{fetch file="plugins/MultiSites/templates/styles.css"}
</style>
<div id="multisites" style="margin: auto">
<div id="main">
{include file="MultiSites/templates/row.tpl" assign="row"}
<script type="text/javascript">
var allSites = new Array();
var params = new Array();
{foreach from=$mySites key=i item=site}
allSites[{$i}] = new setRowData({$site.idsite}, {$site.visits}, {$site.actions}, {$site.unique}, '{$site.name|escape:"quotes"}', '{$site.main_url}', '{$site.visitsSummaryValue|replace:",":"."}', '{$site.actionsSummaryValue|replace:",":"."}', '{$site.uniqueSummaryValue|replace:",":"."}');
{/foreach}
params['period'] = '{$period}';
params['date'] = '{$date}';
params['dateToStr'] = '{$dateToStr}';
params['evolutionBy'] = '{$evolutionBy}';
params['mOrderBy'] = '{$orderBy}';
params['order'] = '{$order}';
params['site'] = '{$site}';
params['limit'] = '{$limit}';
params['page'] = 1;
params['prev'] = "{'General_Previous'|translate}";
params['next'] = "{'General_Next'|translate}";
params['row'] = '{$row|escape:"javascript"}';
</script>
{postEvent name="template_headerMultiSites"}
<div align="center">
<table id="mt" class="dataTable" cellspacing="0" style="width:850px;">
<thead>
<th id="names" class="label" style="text-align:center">
<span style="cursor:pointer;" onClick="params = setOrderBy(this,allSites, params, 'names');">{'General_Website'|translate}</span>
<span class="arrow multisites_desc"></span>
</th>
<th id="visits" class="multisites-column" style="width: 100px">
<span style="cursor:pointer;" onClick="params = setOrderBy(this,allSites, params, 'visits');">{'General_ColumnNbVisits'|translate}</span>
<span class="arrow"></span>
</th>
<th id="actions" class="multisites-column" style="width: 110px">
<span style="cursor:pointer;" onClick="params = setOrderBy(this,allSites, params, 'actions');">{'General_ColumnPageviews'|translate}</span>
<span class="arrow"></span>
</th>
<th id="unique" class="multisites-column" style="width: 120px">
<span style="cursor:pointer;" onClick="params = setOrderBy(this,allSites, params, 'unique');">{'General_ColumnNbUniqVisitors'|translate}</span>
<span class="arrow"></span>
</th>
<th id="evolution" style="text-align:center; width:350px" colspan="2">
<span class="arrow "></span>
<span class="evolution" style="cursor:pointer;" onClick="params = setOrderBy(this,allSites, params, $('#evolution_selector').val() + 'Summary');"> {'MultiSites_Evolution'|translate}</span>
<select class="selector" id="evolution_selector" onchange="params['evolutionBy'] = $('#evolution_selector').val(); switchEvolution(params);">
<option value="visits" {if $evolutionBy eq 'visits'} selected {/if}>{'General_ColumnNbVisits'|translate}</option>
<option value="actions" {if $evolutionBy eq 'actions'} selected {/if}>{'General_ColumnPageviews'|translate}</option>
<option value="unique"{if $evolutionBy eq 'unique'} selected {/if}>{'General_ColumnNbUniqVisitors'|translate}</option>
</select>
</th>
</thead>
<tbody id="tb">
</tbody>
<tfoot>
<tr row_id="last" >
<td colspan="8" class="clean" style="padding: 20px">
<span id="prev" class="pager" style="padding-right: 20px;"></span>
<span id="dataTablePages">
<span id="counter">
</span>
</span>
<span id="next" class="clean" style="padding-left: 20px;"></span>
</td>
</tr>
</tfoot>
</table>
</div>
<script type="text/javascript">
prepareRows(allSites, params, '{$orderBy}');
{if $autoRefreshTodayReport}
{literal}
function refreshAfter(timeoutPeriod) {
setTimeout("location.reload(true);",timeoutPeriod);
}
refreshAfter(5*60*1000);
{/literal}
{/if}
</script>
</div>
</div>
</body>
</html>
|