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

Last change on this file since 8917 was 8917, checked in by cljosse, 13 years ago

[Mail_Supervisor] compatibility with piwigo 2.2

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