blob: 43607ab2264127f3a252c9b152aa7f3997b2c276 (
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
|
{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}
var timezoneHelp = '{$timezoneHelpPlain|inlineHelp|escape:javascript}';
{assign var=defaultTimezoneHelp value=$defaultTimezoneHelpPlain|inlineHelp};
var timezones = {$timezones};
var defaultTimezone = '{$defaultTimezone}';
var selectACity = '{'SitesManager_SelectCity'|translate}';
</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;
}
</style>
{/literal}
<h2>{'SitesManager_WebsitesManagement'|translate}</h2>
<p>{'SitesManager_MainDescription'|translate}
{if $isSuperUser}
<br/>{'SitesManager_SuperUserCan'|translate:"<a href='#globalIpExclusion'>":"</a>":"<a href='#defaultTimezone'>":"</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_Timezone'|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="timezone" class="editableSite">{$site.timezone}</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}
<a name='globalIpExclusion'></a><h2>{'SitesManager_GlobalListExcludedIps'|translate}</h2>
<p>{'SitesManager_ListOfIpsToBeExcludedOnAllWebsites'|translate} </p>
{ajaxErrorDiv id=ajaxErrorExcludedIps}
{ajaxLoadingDiv id=ajaxLoadingExcludedIps}
<textarea cols="30" rows="3" id="globalExcludedIps">{$globalExcludedIps}
</textarea><br/>
{$excludedIpHelp}
<input type="hidden" name="token_auth" value="{$token_auth}" />
<p><input type="submit" class="submit" id='globalExcludedIpsSubmit' value="{'General_Save'|translate}" /></p>
<a name='defaultTimezone'></a><h2>{'SitesManager_DefaultTimezone'|translate}</h2>
<p>{'SitesManager_SelectDefaultTimezone'|translate}
{ajaxErrorDiv id=ajaxErrorDefaultTimezone}
{ajaxLoadingDiv id=ajaxLoadingDefaultTimezone}
<div id='defaultTimezone'></div>
<br/>
{$defaultTimezoneHelp}
<input type="hidden" name="token_auth" value="{$token_auth}" />
<p><input type="submit" class="submit" id='defaultTimezoneSubmit' value="{'General_Save'|translate}" /></p>
{/if}
<br /><br /><br /><br />
{include file="CoreAdminHome/templates/footer.tpl"}
|