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