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