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