Ignore:
Timestamp:
Oct 28, 2009, 3:39:03 PM (14 years ago)
Author:
cljosse
Message:

[mail_supervisor] Addition of a check of the IP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Mail_supervisor/admin/mail_black_liste.tpl

    r4132 r4136  
    1 
    2 
    31{html_head}<link rel="stylesheet" type="text/css" href="{$MAIL_SUPERV_PATH}admin/theme.css" />{/html_head}
    4    
    52
    63         
     
    129</div>
    1310
    14  
     11
    1512<form action='' method="post" name="form_black">
    1613
    1714 <fieldset >
    1815    <legend>{'black_liste'|translate}</legend>
    19          <input name="info1" type="hidden"  />
    20          
     16
    2117       
    2218        <table>
    23        
    24       <fieldset >
    25        
    26         <input name="ip_black" type="text" class="items"  value="{$ip_black}" />
    27         <input class="items"  type="submit" name="info" value="ajout" id='ip_ajout' title="Ajout  {$ip_black}"
    28  />
     19
     20            <input name="info1" type="hidden"  >
     21                <input name="ip_black" type="hidden" class="items"  value="{$ip_black}" >
     22                <input   type="submit" name="info" value="" id='ip_ajout' class="row2" style="position:absolute;  width:0px" >
     23        <div>
     24          <input name="ip_black_test" id = "ip_black_test" type="text" value="{$ip_black_test}"         > {'valider'|@translate}
     25          {if not empty($ip_black_test)}
     26          <iframe src="http://www.stopforumspam.com/api?ip={$ip_black_test}"   scrolling="no" class="frame_"  ></iframe> 
     27          {/if}
     28<input type="image"   class='row1'
     29     src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png"
     30         alt="{'ajout'|@translate}"
     31         onclick = "
     32 if (confirm( document.getElementById('btn_ajout{$ip_black_test}').title + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}'))
     33  form_black.info1.value='ajout:{$ip_black_test}'
     34  "
     35         id="btn_ajout{$ip_black_test}"
     36      title="{'ajout'|@translate} {$ip_black_test}"             
     37         
     38                 >       
     39
     40
     41
     42                   </div>
     43         </table> 
     44         
     45         
     46
     47 
    2948                        <table class="table2" >
    3049                                <tr class="throw">
     
    5372 if (confirm( document.getElementById('btn_delete{$group.ip}').title + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}'))
    5473  form_black.info1.value='raz:{$group.ip}'
    55   ";
     74  "
    5675         id="btn_delete{$group.ip}"
    5776      title="{'delete'|@translate} {$group.ip}"         
    58                  />
     77                 >
    5978
    6079
    6180               
    62     </td>
    63   </tr>
    64   {/foreach}
    65 
    66   <td> <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" /> supprime de la liste noire</td>
    67  
    68 </table>
    69 
    70         </fieldset>
     81                        </td>
     82                        </tr>
     83                {/foreach}
     84                        <td> <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" > supprime de la liste noire</td>
     85                </table>
     86       
     87</fieldset>
    7188       
    7289          {/if}
     
    7794           {'IP_adress'|translate} : {$IP}
    7895           
    79 <script language="JavaScript" src="http://j.maxmind.com/app/geoip.js"></script>
     96<script language="JavaScript" src="http://j.maxmind.com/app/geoip.js" type="text/javascript" ></script>
    8097<script language="JavaScript" type="text/javascript">
    8198
     
    130147 if (confirm( document.getElementById('btn_permissions{$group.IP}').title + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}'))
    131148  form_black.info1.value='ajout:{$group.IP}'
    132   ";
     149  " 
    133150  id="btn_permissions{$group.IP}"
    134151  title="{'blacklist'|@translate} {$group.IP}"
    135152  alt="{'blacklist'|@translate} {$group.IP}"
    136 />
     153>
    137154                 
    138155
     
    144161                        {/foreach}
    145162                 {/if}
    146                         <td> <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png" /> mise sur la liste noire</td>
     163                        <td> <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png" > mise sur la liste noire</td>
    147164
    148165 
    149                 </table>
     166        </table>
    150167        </fieldset>
    151168       
     
    154171      <p>
    155172
    156           <input class="submit" type="submit" name="info" value="liste"  />
     173          <input class="submit" type="submit" name="info" value="liste"  >
    157174
    158175          </p>
Note: See TracChangeset for help on using the changeset viewer.