1 | {* $Id: mail_black_liste.tpl 3723 2009-08-07 04:53:38Z rvelices $ *} |
---|
2 | {known_script id="jquery" src= $ROOT_URL|@cat:$path_js|@cat:"jquery.packed.js"} |
---|
3 | {known_script id="jquery.cluetip" src=$ROOT_URL|@cat:$path_js|@cat:"plugins/jquery.cluetip.packed.js"} |
---|
4 | |
---|
5 | <script type="text/javascript"> |
---|
6 | jQuery().ready(function() |
---|
7 | {ldelim} |
---|
8 | jQuery('.cluetip').cluetip( |
---|
9 | {ldelim} |
---|
10 | width: 550, |
---|
11 | splitTitle: '|' |
---|
12 | {rdelim}); |
---|
13 | {rdelim}); |
---|
14 | </script> |
---|
15 | |
---|
16 | <link href="theme.css" rel="stylesheet" type="text/css" /> |
---|
17 | {html_head}<link rel="stylesheet" type="text/css" href="{$MAIL_SUPERV_PATH}admin/theme.css" />{/html_head} |
---|
18 | <div class="titrePage"> |
---|
19 | <h2>{'Sv_supervisor'|translate}{'Sv_version'|translate}{$version}</h2> |
---|
20 | </div> |
---|
21 | <div class="bug" > |
---|
22 | </div> |
---|
23 | <form action='' method="post" name="form_black"> |
---|
24 | <fieldset> |
---|
25 | <legend >{'Sv_options'|translate}</legend> |
---|
26 | <table> |
---|
27 | <td><input type="checkbox" name="no_mail_list" value="on" {$no_mail_list} /> {'Sv_no_mail_list'|translate} </td> |
---|
28 | <td><input type="checkbox" name="no_connect" value="on" {$no_connect} /> {'Sv_no_connect'|translate}</td> |
---|
29 | <td><input type="checkbox" name="set_auto" value="on" {$set_auto} /> {'Sv_set_auto'|translate}</td> |
---|
30 | <td><input type="checkbox" name="set_id" value="on" {$set_id} /> {'Sv_set_id'|translate}</td> |
---|
31 | <tr><p></p><td> |
---|
32 | <input class="submit" type="submit" name="submit" value="{'Sv_Valider'|translate}" /></td></tr> |
---|
33 | </table> |
---|
34 | </fieldset> |
---|
35 | <input name="info1" type="hidden" /> |
---|
36 | <fieldset > |
---|
37 | <legend>{'Sv_black_liste'|translate}</legend> |
---|
38 | <table> |
---|
39 | <div > |
---|
40 | <input name="ip_black" id = "ip_black_test" type="text" value="{$ip_black}" /> |
---|
41 | <input class="cluetip" title="{'Sv_Test'|translate}|{'Sv_hlp_7_3'|translate}" type="submit" name="submit" value="{'Sv_Test'|translate}" /> |
---|
42 | |
---|
43 | { if $ip_black_len > 0} |
---|
44 | |
---|
45 | {if $IS_SPAM == true } |
---|
46 | <label class="erreur"> {'Sv_is_a_spam'|@translate} </label> |
---|
47 | { else } |
---|
48 | <label class="erreur"> {'Sv_not_a_spam'|@translate} </label> |
---|
49 | {/if} |
---|
50 | { if $istype == 'IP'} |
---|
51 | |
---|
52 | <input class="cluetip" title="{'Sv_Ajout'|translate}|{'Sv_hlp_7_4'|translate}" type="submit" name="submit" value="{'Sv_Ajout'|translate}" /> |
---|
53 | |
---|
54 | <input type="image" name="submit" class='row1' |
---|
55 | src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png" |
---|
56 | alt="{'Sv_Ajout'|@translate}" |
---|
57 | onclick = " |
---|
58 | if (confirm( document.getElementById('btn_ajout{$ip_black}').title + '\n\n' + '{'Sv_Are you sure?'|@translate|@escape:'javascript'}')) |
---|
59 | form_black.info1.value='ajout:{$ip_black}' |
---|
60 | " |
---|
61 | id="btn_ajout{$ip_black}" |
---|
62 | title="{'Sv_Ajout'|@translate} {$ip_black}" /> |
---|
63 | {/if} |
---|
64 | { else } |
---|
65 | |
---|
66 | {/if} |
---|
67 | |
---|
68 | |
---|
69 | |
---|
70 | |
---|
71 | |
---|
72 | </div> |
---|
73 | <a href="http://www.stopforumspam.com" > <img src="{$img_logo}" width="32"/> http://www.stopforumspam.com |
---|
74 | </a> |
---|
75 | </table> |
---|
76 | |
---|
77 | <table class="table2" > |
---|
78 | {if not empty($liste_bl)} |
---|
79 | <tr class="throw"> |
---|
80 | <th>{$champs_bl[1]|@translate}</th> |
---|
81 | <th>{$champs_bl[7]|@translate}</th> |
---|
82 | <th>{'Sv_blackliste'|@translate}</th> |
---|
83 | </tr> |
---|
84 | {foreach from=$liste_bl item=group name=group_loop} |
---|
85 | <tr class="{if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}"> |
---|
86 | <td>{$group.ip}</td> |
---|
87 | |
---|
88 | <td>{$group.nb}</td> |
---|
89 | <td style="text-align:center;"> |
---|
90 | <input type="image" class="{if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}" |
---|
91 | src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" |
---|
92 | alt="{'Sv_delete'|@translate}" |
---|
93 | onclick = " |
---|
94 | if (confirm( document.getElementById('btn_delete{$group.ip}').title + '\n\n' + '{'Sv_Are you sure?'|@translate|@escape:'javascript'}')) |
---|
95 | form_black.info1.value='raz:{$group.ip}' |
---|
96 | " |
---|
97 | id="btn_delete{$group.ip}" |
---|
98 | title="{'Sv_delete'|@translate} {$group.ip}" /> |
---|
99 | </td> |
---|
100 | </tr> |
---|
101 | {/foreach} |
---|
102 | <tr></tr> |
---|
103 | <tr></tr> |
---|
104 | <td> <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" />{'Sv_unset_black_list'|@translate}</td> |
---|
105 | <td> <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png" />{'Sv_set_black_list'|@translate}</td> |
---|
106 | |
---|
107 | {/if} |
---|
108 | </table> |
---|
109 | </fieldset> |
---|
110 | |
---|
111 | <fieldset > |
---|
112 | <legend>{'Sv_liste_ip'|translate}</legend> |
---|
113 | <p class="Style1"> |
---|
114 | {'Sv_iP_adress'|translate} : {$IP} |
---|
115 | </p> |
---|
116 | <table class="table"> |
---|
117 | <td>{'Number of rows per page'|translate}</td> |
---|
118 | <td><input type="text" name="per_page" value="{$per_page}" size=5 /></td> |
---|
119 | {if $start >0} |
---|
120 | <td><input class="submit" type="submit" name="prev" value= "{'previous_page'|translate}" /></td> |
---|
121 | { /if} |
---|
122 | <td>{'page'|translate}</td> |
---|
123 | <td><input type="text" name="start" value="{$start}" size=5 /></td> |
---|
124 | <td>/ {$maxipage} </td> |
---|
125 | |
---|
126 | |
---|
127 | {if $start < $maxipage } |
---|
128 | <td><input class="submit" type="submit" name="next" value= "{'Next'|translate}" /></td> |
---|
129 | { /if} |
---|
130 | <td> |
---|
131 | <input class="submit" type="submit" name="info" value="{'Sv_list'|translate}" /> |
---|
132 | </td> |
---|
133 | </table> |
---|
134 | |
---|
135 | |
---|
136 | <table class="table2"> |
---|
137 | |
---|
138 | <tr class="throw"> |
---|
139 | |
---|
140 | <th>{$champs_ip[0]|@translate}</th> |
---|
141 | <th>{$champs_ip[1]|@translate}</th> |
---|
142 | <th>{$champs_ip[2]|@translate}</th> |
---|
143 | <th>{$champs_ip[3]|@translate}</th> |
---|
144 | <th>{$champs_ip[4]|@translate}</th> |
---|
145 | <th>{$champs_ip[5]|@translate}</th> |
---|
146 | |
---|
147 | <th>{'Sv_blackliste'|@translate}</th> |
---|
148 | </tr> |
---|
149 | {if not empty($liste_ip)} |
---|
150 | |
---|
151 | {foreach from=$liste_ip item=group name=group_loop} |
---|
152 | |
---|
153 | <tr class="{if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}"> |
---|
154 | <td>{$group.id}</td> |
---|
155 | <td>{$group.date}</td> |
---|
156 | <td>{$group.time}</td> |
---|
157 | <td>{$group.user_id}</td> |
---|
158 | <td>{$group.IP}</td> |
---|
159 | <td>{$group.total}</td> |
---|
160 | <td style="text-align:center;"> |
---|
161 | <input type="image" |
---|
162 | class="{if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}" |
---|
163 | src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png" |
---|
164 | onclick = " |
---|
165 | if (confirm( document.getElementById('btn_permissions{$group.IP}').title + '\n\n' + '{'Sv_Are you sure?'|@translate|@escape:'javascript'}')) |
---|
166 | form_black.info1.value='ajout:{$group.IP}' |
---|
167 | " |
---|
168 | id="btn_permissions{$group.IP}" |
---|
169 | title="{'Sv_blacklist'|@translate} {$group.IP}" |
---|
170 | alt="{'Sv_blacklist'|@translate} {$group.IP}" /> |
---|
171 | </td> |
---|
172 | |
---|
173 | <td style="text-align:center;"> |
---|
174 | |
---|
175 | </td> |
---|
176 | </tr> |
---|
177 | {/foreach} |
---|
178 | {/if} |
---|
179 | <td> <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png" /> {'Sv_set_black_list'|@translate}</td> |
---|
180 | </table> |
---|
181 | </fieldset> |
---|
182 | </form> |
---|