blob: 533044f4b4ed13115d265cd942a76f8f60d453dc (
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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
|
{assign var=showSitesSelection value=false}
{assign var=showPeriodSelection value=false}
{include file="CoreAdminHome/templates/header.tpl"}
{loadJavascriptTranslations plugins='SitesManager'}
{include file="CoreAdminHome/templates/menu.tpl"}
<script type="text/javascript">
{capture assign=excludedIpHelpPlain}{'SitesManager_HelpExcludedIps'|translate:"1.2.3.*":"1.2.*.*"}<br/><br/> {'SitesManager_YourCurrentIpAddressIs'|translate:"<i>$currentIpAddress</i>"}{/capture}
{assign var=excludedIpHelp value=$excludedIpHelpPlain|inlineHelp}
var excludedIpHelp = '{$excludedIpHelp|escape:javascript}';
var aliasUrlsHelp = '{'SitesManager_AliasUrlHelp'|translate|inlineHelp|escape:javascript}';
{capture assign=defaultTimezoneHelpPlain}
{if $timezoneSupported}
{'SitesManager_ChooseCityInSameTimezoneAsYou'|translate}
{else}
{'SitesManager_AdvancedTimezoneSupportNotFound'|translate}
{/if} <br /><br />{'SitesManager_UTCTimeIs'|translate:$utcTime}
{/capture}
{capture assign=timezoneHelpPlain}
{$defaultTimezoneHelpPlain}
<br /><br />{'SitesManager_ChangingYourTimezoneWillOnlyAffectDataForward'|translate}
{/capture}
{capture assign=currencyHelpPlain}
{'SitesManager_CurrencySymbolWillBeUsedForGoals'|translate|inlineHelp}
{/capture}
{capture assign=excludedQueryParametersHelp}
{'SitesManager_ListOfQueryParametersToExclude'|translate}
<br/><br/>
{'SitesManager_PiwikWillAutomaticallyExcludeCommonSessionParameters'|translate:"phpsessid, sessionid, etc."}
{/capture}
{assign var=excludedQueryParametersHelp value=$excludedQueryParametersHelp|inlineHelp}
var excludedQueryParametersHelp = '{$excludedQueryParametersHelp|escape:javascript}';
var timezoneHelp = '{$timezoneHelpPlain|inlineHelp|escape:javascript}';
var currencyHelp = '{$currencyHelpPlain|escape:javascript}';
{assign var=defaultTimezoneHelp value=$defaultTimezoneHelpPlain|inlineHelp};
var timezones = {$timezones};
var currencies = {$currencies};
var defaultTimezone = '{$defaultTimezone}';
var defaultCurrency = '{$defaultCurrency}';
</script>
<script type="text/javascript" src="plugins/SitesManager/templates/SitesManager.js"></script>
{literal}
<style>
.addRowSite:hover, .editableSite:hover, .addsite:hover, .cancel:hover, .deleteSite:hover, .editSite:hover, .updateSite:hover{
cursor: pointer;
}
.addRowSite a {
text-decoration: none;
}
.addRowSite {
padding:1em;
font-color:#3A477B;
padding:1em;
font-weight:bold;
}
#editSites {
valign: top;
}
option, select {
font-size:11px;
}
textarea {
font-size:9pt;
}
.admin thead th {
vertical-align:middle;
}
</style>
{/literal}
<h2>{'SitesManager_WebsitesManagement'|translate}</h2>
<p>{'SitesManager_MainDescription'|translate}
{if $isSuperUser}
<br/>{'SitesManager_SuperUserCan'|translate:"<a href='#globalSettings'>":"</a>"}
{/if}
</p>
{ajaxErrorDiv}
{ajaxLoadingDiv}
{if $adminSites|@count == 0}
{'SitesManager_NoWebsites'|translate}
{else}
<table class="admin" id="editSites" border=1 cellpadding="10">
<thead>
<tr>
<th>{'SitesManager_Id'|translate}</th>
<th>{'SitesManager_Name'|translate}</th>
<th>{'SitesManager_Urls'|translate}</th>
<th>{'SitesManager_ExcludedIps'|translate}</th>
<th>{'SitesManager_ExcludedParameters'|translate|replace:" ":"<br/>"}</th>
<th>{'SitesManager_Timezone'|translate}</th>
<th>{'SitesManager_Currency'|translate}</th>
<th> </th>
<th> </th>
<th> {'SitesManager_JsTrackingTag'|translate} </th>
</tr>
</thead>
<tbody>
{foreach from=$adminSites key=i item=site}
<tr id="row{$i}">
<td id="idSite">{$site.idsite}</td>
<td id="siteName" class="editableSite">{$site.name}</td>
<td id="urls" class="editableSite">{foreach from=$site.alias_urls item=url}{$url}<br />{/foreach}</td>
<td id="excludedIps" class="editableSite">{foreach from=$site.excluded_ips item=ip}{$ip}<br />{/foreach}</td>
<td id="excludedQueryParameters" class="editableSite">{foreach from=$site.excluded_parameters item=parameter}{$parameter}<br />{/foreach}</td>
<td id="timezone" class="editableSite">{$site.timezone}</td>
<td id="currency" class="editableSite">{$site.currency}</td>
<td><img src='plugins/UsersManager/images/edit.png' class="editSite" id="row{$i}" href='#' title="{'General_Edit'|translate}" /></td>
<td><img src='plugins/UsersManager/images/remove.png' class="deleteSite" id="row{$i}" title="{'General_Delete'|translate}" value="{'General_Delete'|translate}" /></td>
<td><a href='{url action=displayJavascriptCode idsite=$site.idsite}'>{'SitesManager_ShowTrackingTag'|translate}</a></td>
</tr>
{/foreach}
</tbody>
</table>
{if $isSuperUser}
<div class="addRowSite"><a href=""><img src='plugins/UsersManager/images/add.png' alt="" /> {'SitesManager_AddSite'|translate}</a></div>
{/if}
{/if}
{if $isSuperUser}
<br/>
<a name='globalSettings'></a>
<h2>{'SitesManager_GlobalWebsitesSettings'|translate}</h2>
<br/>
<table style='width:600px' class="adminTable adminTableNoBorder" >
<tr><td colspan="2">
<b>{'SitesManager_GlobalListExcludedIps'|translate}</b>
<p>{'SitesManager_ListOfIpsToBeExcludedOnAllWebsites'|translate} </p>
</td></tr>
<tr><td>
<textarea cols="30" rows="3" id="globalExcludedIps">{$globalExcludedIps}
</textarea>
</td><td>
{$excludedIpHelp}
</td></tr>
<tr><td colspan="2">
<b>{'SitesManager_GlobalListExcludedQueryParameters'|translate}</b>
<p>{'SitesManager_ListOfQueryParametersToBeExcludedOnAllWebsites'|translate} </p>
</td></tr>
<tr><td>
<textarea cols="30" rows="3" id="globalExcludedQueryParameters">{$globalExcludedQueryParameters}
</textarea>
</td><td>
{$excludedQueryParametersHelp}
</td></tr>
<tr><td colspan="2">
<b>{'SitesManager_DefaultTimezone'|translate}</b>
<p>{'SitesManager_SelectDefaultTimezone'|translate} </p>
</td></tr>
<tr><td>
<div id='defaultTimezone'></div>
</td><td>
{$defaultTimezoneHelp}
</td></tr>
<tr><td colspan="2">
<b>{'SitesManager_DefaultCurrency'|translate}</b>
<p>{'SitesManager_SelectDefaultCurrency'|translate} </p>
</td></tr>
<tr><td>
<div id='defaultCurrency'></div>
</td><td>
{$currencyHelpPlain}
</td></tr>
</table>
<span style='margin-left:20px'><input type="submit" class="submit" id='globalSettingsSubmit' value="{'General_Save'|translate}" /></span>
{ajaxErrorDiv id=ajaxErrorGlobalSettings}
{ajaxLoadingDiv id=ajaxLoadingGlobalSettings}
{/if}
<br /><br /><br /><br />
{include file="CoreAdminHome/templates/footer.tpl"}
|