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

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

[mail_supervisor] Fix Bug on creation table(TYPE=MyISAM;
) .

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