1 | <link href="theme.css" rel="stylesheet" type="text/css" /> |
---|
2 | {html_head}<link rel="stylesheet" type="text/css" href="{$MAIL_SUPERV_PATH}admin/theme.css" />{/html_head} |
---|
3 | <div class="titrePage"> |
---|
4 | <h2>{'supervisor'|translate}</h2> |
---|
5 | </div> |
---|
6 | <div class="bug" > |
---|
7 | </div> |
---|
8 | <form action='' method="post" name="form_black"> |
---|
9 | |
---|
10 | <fieldset> |
---|
11 | <legend >{'options'|translate}</legend> |
---|
12 | <table> |
---|
13 | |
---|
14 | <td><input type="checkbox" name="NO_MAIL_LIST" value="on" {$NO_MAIL_LIST} /> {'no_mail_list'|translate} </td> |
---|
15 | <td><input type="checkbox" name="NO_CONNECT" value="on" {$NO_CONNECT} /> {'no_connect'|translate}</td> |
---|
16 | |
---|
17 | |
---|
18 | |
---|
19 | <tr><td> |
---|
20 | <input class="submit" type="submit" name="submit" value={'Valider'|translate} /></td></tr> |
---|
21 | </table> |
---|
22 | </fieldset> |
---|
23 | |
---|
24 | |
---|
25 | |
---|
26 | <fieldset > |
---|
27 | <legend>{'black_liste'|translate}</legend> |
---|
28 | <table> |
---|
29 | <input name="info1" type="hidden" /> |
---|
30 | <input name="ip_black" type="hidden" class="items" value="{$ip_black}" /> |
---|
31 | <input type="submit" name="info" value="" id='ip_ajout' class="row2" style="position:absolute; width:0px" /> |
---|
32 | <div> |
---|
33 | <input name="ip_black_test" id = "ip_black_test" type="text" value="{$ip_black_test}" /> |
---|
34 | {if $IS_SPAM == true } |
---|
35 | <label class="erreur"> {'is_a_spam'|@translate} </label> |
---|
36 | { else } |
---|
37 | {'valider'|@translate} |
---|
38 | {/if} |
---|
39 | <input type="image" class='row1' |
---|
40 | src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png" |
---|
41 | alt="{'ajout'|@translate}" |
---|
42 | onclick = " |
---|
43 | if (confirm( document.getElementById('btn_ajout{$ip_black_test}').title + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}')) |
---|
44 | form_black.info1.value='ajout:{$ip_black_test}' |
---|
45 | " |
---|
46 | id="btn_ajout{$ip_black_test}" |
---|
47 | title="{'ajout'|@translate} {$ip_black_test}" /> |
---|
48 | </div> |
---|
49 | </table> |
---|
50 | |
---|
51 | <table class="table2" > |
---|
52 | {if not empty($liste_bl)} |
---|
53 | <tr class="throw"> |
---|
54 | <th>{$champs_bl[1]|@translate}</th> |
---|
55 | <th>{$champs_bl[2]|@translate}</th> |
---|
56 | <th>{$champs_bl[3]|@translate}</th> |
---|
57 | <th>{$champs_bl[4]|@translate}</th> |
---|
58 | <th>{$champs_bl[7]|@translate}</th> |
---|
59 | <th>{'blackliste'|@translate}</th> |
---|
60 | </tr> |
---|
61 | {foreach from=$liste_bl item=group name=group_loop} |
---|
62 | <tr class="{if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}"> |
---|
63 | <td>{$group.ip}</td> |
---|
64 | <td>{$group.pays}</td> |
---|
65 | <td>{$group.region}</td> |
---|
66 | <td>{$group.ville}</td> |
---|
67 | <td>{$group.nb}</td> |
---|
68 | <td style="text-align:center;"> |
---|
69 | <input type="image" class="{if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}" |
---|
70 | src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" |
---|
71 | alt="{'delete'|@translate}" |
---|
72 | onclick = " |
---|
73 | if (confirm( document.getElementById('btn_delete{$group.ip}').title + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}')) |
---|
74 | form_black.info1.value='raz:{$group.ip}' |
---|
75 | " |
---|
76 | id="btn_delete{$group.ip}" |
---|
77 | title="{'delete'|@translate} {$group.ip}" /> |
---|
78 | </td> |
---|
79 | </tr> |
---|
80 | {/foreach} |
---|
81 | <tr></tr> |
---|
82 | <tr></tr> |
---|
83 | <td> <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" />{'unset_black_list'|@translate}</td> |
---|
84 | <td> <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png" />{'set_black_list'|@translate}</td> |
---|
85 | |
---|
86 | {/if} |
---|
87 | </table> |
---|
88 | </fieldset> |
---|
89 | |
---|
90 | <fieldset > |
---|
91 | <legend>{'liste_ip'|translate}</legend> |
---|
92 | <p class="Style1"> |
---|
93 | {'IP_adress'|translate} : {$IP} |
---|
94 | |
---|
95 | <script language="JavaScript" src="http://j.maxmind.com/app/geoip.js" type="text/javascript" ></script> |
---|
96 | <script language="JavaScript" type="text/javascript"> |
---|
97 | var pays = geoip_country_name(); |
---|
98 | var ville = geoip_city(); |
---|
99 | var region = geoip_region_name() ; |
---|
100 | var latitude = geoip_latitude() ; |
---|
101 | var longitude = geoip_longitude() ; |
---|
102 | document.write ('<input name="pays" type="text" value = '+ pays +' id = "pays" class="info" > '); |
---|
103 | document.write ('<input name="ville" type="text" value = '+ ville +' id = "ville" class="info" > '); |
---|
104 | document.write ('<input name="region" type="text" value = '+ region +' id = "region" class="info" > '); |
---|
105 | document.write ('<input name="latitude" type="text" value = '+ latitude +' id = "latitude" class="info" > '); |
---|
106 | document.write ('<input name="longitude" type="text" value = '+ longitude + ' id = "longitude" class="info" > '); |
---|
107 | |
---|
108 | |
---|
109 | </script> |
---|
110 | </p> |
---|
111 | |
---|
112 | <table class="table2"> |
---|
113 | |
---|
114 | <tr class="throw"> |
---|
115 | |
---|
116 | |
---|
117 | <th>{$champs_ip[1]|@translate}</th> |
---|
118 | <th>{$champs_ip[2]|@translate}</th> |
---|
119 | <th>{$champs_ip[3]|@translate}</th> |
---|
120 | <th>{$champs_ip[4]|@translate}</th> |
---|
121 | <th>{$champs_ip[5]|@translate}</th> |
---|
122 | |
---|
123 | <th>{'blackliste'|@translate}</th> |
---|
124 | </tr> |
---|
125 | {if not empty($liste_ip)} |
---|
126 | |
---|
127 | {foreach from=$liste_ip item=group name=group_loop} |
---|
128 | |
---|
129 | <tr class="{if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}"> |
---|
130 | <td>{$group.date}</td> |
---|
131 | <td>{$group.time}</td> |
---|
132 | <td>{$group.user_id}</td> |
---|
133 | <td>{$group.IP}</td> |
---|
134 | <td>{$group.total}</td> |
---|
135 | <td style="text-align:center;"> |
---|
136 | |
---|
137 | |
---|
138 | |
---|
139 | <input type="image" |
---|
140 | class="{if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}" |
---|
141 | src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png" |
---|
142 | onclick = " |
---|
143 | if (confirm( document.getElementById('btn_permissions{$group.IP}').title + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}')) |
---|
144 | form_black.info1.value='ajout:{$group.IP}' |
---|
145 | " |
---|
146 | id="btn_permissions{$group.IP}" |
---|
147 | title="{'blacklist'|@translate} {$group.IP}" |
---|
148 | alt="{'blacklist'|@translate} {$group.IP}" /> |
---|
149 | |
---|
150 | |
---|
151 | |
---|
152 | |
---|
153 | |
---|
154 | </td> |
---|
155 | </tr> |
---|
156 | {/foreach} |
---|
157 | {/if} |
---|
158 | <td> <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png" /> {'set_black_list'|@translate}</td> |
---|
159 | |
---|
160 | |
---|
161 | </table> |
---|
162 | </fieldset> |
---|
163 | |
---|
164 | |
---|
165 | |
---|
166 | <p> |
---|
167 | |
---|
168 | <input class="submit" type="submit" name="info" value="liste" /> |
---|
169 | |
---|
170 | </p> |
---|
171 | |
---|
172 | |
---|
173 | </form> |
---|