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

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

[mail_supervisor] update file help 2

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