source: extensions/Mail_supervisor/admin/mail_black_liste.tpl @ 4337

Last change on this file since 4337 was 4337, checked in by cljosse, 14 years ago

[mail_supervisor] New tests 'anti spam' on the address e-mail.

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