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