Ignore:
Timestamp:
Apr 16, 2011, 3:53:31 PM (13 years ago)
Author:
cljosse
Message:

[extensions] mail_supervisor fix bug in design

File:
1 edited

Legend:

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

    r10155 r10419  
    1 {* $Id: mail_black_liste.tpl cljosse $ *} 
     1{* $Id: mail_black_liste.tpl cljosse $ *}
    22<script type="text/javascript">
    33  var is_supervisor = true;
    4  var confirm_message = "{'Sv_Are_you_sure'|@translate|@escape:'javascript'}?"; 
     4 var confirm_message = "{'Sv_Are_you_sure'|@translate|@escape:'javascript'}?";
    55</script>
    66
    77<div class="titrePage">
    8                 <h2>{'Sv_supervisor'|translate}{'Sv_version'|translate}{$version}</h2>
    9 </div> 
     8        <h2>{'Sv_supervisor'|translate}{'Sv_version'|translate}{$version}</h2>
     9</div>
    1010<div class="bug" ></div>
    1111<form action='' method="post" name="form_black">
    1212<fieldset>
    1313<legend >{'Sv_options'|translate}</legend>
    14   <table> 
    15     <td><input type="checkbox" name="no_mail_list" value="on" {$no_mail_list}  />&nbsp;&nbsp;{'Sv_no_mail_list'|translate}      </td>
     14  <table>
     15    <td><input type="checkbox" name="no_mail_list" value="on" {$no_mail_list}  />&nbsp;&nbsp;{'Sv_no_mail_list'|translate}  </td>
    1616    <td style="visibility:hidden" ><input type="checkbox" name="no_connect" value="off" {$no_connect} />&nbsp;&nbsp;{'Sv_no_connect'|translate} </td>
    1717    <td style="visibility:visible" ><input type="checkbox"  name="set_auto" value="off" {$set_auto} />&nbsp;&nbsp;{'Sv_set_auto'|translate} </td>
     
    2525<legend>{'Sv_black_liste'|translate}</legend>
    2626<table>
    27  <td><input name="ip_black" id = "ip_black_test" type="text" value="{$ip_black}"        />
    28  <input class="cluetip" title="{'Sv_Test'|translate}|{'Sv_hlp_7_3'|translate}"   type="submit" name="submit" value="{'Sv_Test'|translate}"  /> 
    29  { if $ip_black_len > 0}               
    30         {if  $IS_SPAM  == true }
    31                 <label class="erreur">  {'Sv_is_a_spam'|@translate} </label>
    32         { else }
    33                         { if  $istype == 'IP'} 
    34                                 <label class="erreur">  {'Sv_not_a_spam'|@translate} </label>
    35                         { else }
    36                            <label class="erreur">       {'Sv_no_verif'|@translate} </label>
    37                         {/if}                   
    38         {/if}
     27 <td><input name="ip_black" id = "ip_black_test" type="text" value="{$ip_black}"    />
     28 <input class="cluetip" title="{'Sv_Test'|translate}|{'Sv_hlp_7_3'|translate}"   type="submit" name="submit" value="{'Sv_Test'|translate}"  />
     29 { if $ip_black_len > 0}
     30    {if  $IS_SPAM  == true }
     31        <label class="erreur">  {'Sv_is_a_spam'|@translate} </label>
     32    { else }
     33            { if  $istype == 'IP'}
     34                <label class="erreur">  {'Sv_not_a_spam'|@translate} </label>
     35            { else }
     36               <label class="erreur">   {'Sv_no_verif'|@translate} </label>
     37            {/if}
     38    {/if}
    3939</td>
    40         <td>
    41         <input class="bp cluetip"
    42                 title="{'Sv_Ajout'|translate}|{'Sv_hlp_7_4'|translate}"
    43                 type="submit"
    44                 name="submit"
    45                 rel="ajout:{$ip_black}"
    46                 value="{'Sv_Ajout'|@translate}"
    47                 alt="{'Sv_Ajout'|@translate} : {$ip_black}"
    48         />
     40    <td>
     41    <input class="bp cluetip"
     42        title="{'Sv_Ajout'|translate}|{'Sv_hlp_7_4'|translate}"
     43        type="submit"
     44        name="submit"
     45        rel="ajout:{$ip_black}"
     46        value="{'Sv_Ajout'|@translate}"
     47        alt="{'Sv_Ajout'|@translate} : {$ip_black}"
     48    />
    4949  </td>
    5050  <td>
    51  <input type="image" name="submit"   class='bp row1' 
    52   src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png" 
     51 <input type="image" name="submit"   class='bp row1'
     52  src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png"
    5353  rel="ajout:{$ip_black}"
    54   id="btn_ajout{$ip_black}" 
    55   alt="{'Sv_Ajout'|@translate} : {$ip_black}" 
     54  id="btn_ajout{$ip_black}"
     55  alt="{'Sv_Ajout'|@translate} : {$ip_black}"
    5656  title="{'Sv_Ajout'|@translate} {$ip_black}" />
    5757{ else }
    58                    
     58
    5959{/if}
    60                        
     60
    6161</td>
    62          
    63        
    64                            
    65         <td>
    66                 <a href="http://www.stopforumspam.com" >  <img src="{$img_logo}"  width="32"/>  http://www.stopforumspam.com
     62
     63
     64
     65    <td>
     66        <a href="http://www.stopforumspam.com" >  <img src="{$img_logo}"  width="32"/>  http://www.stopforumspam.com
    6767 </a></td>
    68  </tr>  <tr>   </tr>
    69      </table> 
    70  
    71         <table class="table2" >
    72        {if not empty($liste_bl)}
    73              <tr class="throw">
    74                 <th>{$champs_bl[1]|@translate}</th>
    75                         <th>{$champs_bl[7]|@translate}</th>
    76                 <th>{'Sv_blackliste'|@translate}</th>
    77                 </tr>
    78                 {foreach from=$liste_bl item=group name=group_loop}
    79                   <tr class="{if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}">
    80                 <td>{$group.ip}</td>
    81                                
    82                         <td>{$group.nb}</td>
    83                 <td style="text-align:center;">
    84                         <input type="image" class="bp {if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}" 
    85                                 src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png"
    86                                         rel="raz:{$group.ip}"
    87                                         id="btn_delete{$group.ip}"
    88                                 title="{'Sv_delete'|@translate} {$group.ip}"
    89                                         alt="{'Sv_delete'|@translate} {$group.ip}" />
    90                         </td>
    91                   </tr>
    92                 {/foreach}
    93                 <tr></tr>
    94                 <tr></tr>
    95                 <td> <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" />{'Sv_unset_black_list'|@translate}</td>
    96                 <td> <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png" />{'Sv_set_black_list'|@translate}</td>
     68 </tr>  <tr>   </tr>
     69     </table>
    9770
    98           {/if}
    99         </table>         
    100 </fieldset>       
     71    <table class="table2" >
     72       {if not empty($liste_bl)}
     73         <tr class="throw">
     74            <th>{$champs_bl[1]|@translate}</th>
     75            <th>{$champs_bl[7]|@translate}</th>
     76            <th>{'Sv_blackliste'|@translate}</th>
     77        </tr>
     78        {foreach from=$liste_bl item=group name=group_loop}
     79          <tr class="{if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}">
     80            <td>{$group.ip}</td>
    10181
    102         <fieldset >
     82            <td>{$group.nb}</td>
     83            <td style="text-align:center;">
     84            <input type="image" class="bp {if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}"
     85                    src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png"
     86                    rel="raz:{$group.ip}"
     87                    id="btn_delete{$group.ip}"
     88                    title="{'Sv_delete'|@translate} {$group.ip}"
     89                    alt="{'Sv_delete'|@translate} {$group.ip}" />
     90                </td>
     91          </tr>
     92        {/foreach}
     93        <tr></tr>
     94        <tr></tr>
     95        <td> <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" />{'Sv_unset_black_list'|@translate}</td>
     96        <td> <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png" />{'Sv_set_black_list'|@translate}</td>
     97
     98      {/if}
     99    </table>
     100</fieldset>
     101
     102    <fieldset >
    103103        <legend>{'Sv_liste_ip'|translate}</legend>
    104         <p class="Style1">
    105              {'Sv_iP_adress'|translate} : {$IP}
     104    <p class="Style1">
     105         {'Sv_iP_adress'|translate} : {$IP}
    106106     </p>
    107 <table class="table">   
    108     <td>{'Number of rows per page'|translate}</td>       
    109            <td><input type="text" name="per_page"  value="{$per_page}" size=5  /></td>
     107<table class="table">
     108    <td>{'Number of rows per page'|translate}</td>
     109       <td><input type="text" name="per_page"  value="{$per_page}" size=5  /></td>
    110110{if $start >0}
    111            <td><input class="submit" type="submit" name="prev"  value=   "{'previous_page'|translate}" /></td>
    112         { /if}
    113   <td>{'page'|translate}</td>     
     111       <td><input class="submit" type="submit" name="prev"  value=   "{'previous_page'|translate}" /></td>
     112    { /if}
     113  <td>{'page'|translate}</td>
    114114  <td><input type="text" name="start"  value="{$start}" size=5  /></td>
    115   <td>/ {$maxipage}  </td>                 
    116         {if $start < $maxipage }   
    117            <td><input class="submit" type="submit" name="next"  value=  "{'Next'|translate}"  /></td>
    118                 { /if}   
    119            <td><input class="submit" type="submit" name="info" value="{'Sv_list'|translate}" /></td>
    120  </table>       
     115  <td>/ {$maxipage}  </td>
     116    {if $start < $maxipage }
     117       <td><input class="submit" type="submit" name="next"  value=  "{'Next'|translate}"  /></td>
     118        { /if}
     119       <td><input class="submit" type="submit" name="info" value="{'Sv_list'|translate}" /></td>
     120 </table>
    121121 <table class="table2">
    122   <tr class="throw">   
     122  <tr class="throw">
    123123   <th>{$champs_ip[0]|@translate}</th>
    124124   <th>{$champs_ip[1]|@translate}</th>
     
    129129   <th>{'Sv_blackliste'|@translate}</th>
    130130  </tr>
    131   {if not empty($liste_ip)} 
    132    {foreach from=$liste_ip item=group name=group_loop} 
     131  {if not empty($liste_ip)}
     132   {foreach from=$liste_ip item=group name=group_loop}
    133133    <tr class="{if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}">
    134134    <td>{$group.id}</td>
     
    139139    <td>{$group.total}</td>
    140140    <td style="text-align:center;">
    141                  <input type="image"
    142                    class="bp {if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}"
    143                    src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png"
    144                    rel='ajout:{$group.IP}'
    145                    id="btn_permissions{$group.IP}"
    146                    title="{'Sv_blacklist'|@translate} {$group.IP}"
    147                    alt="{'Sv_blacklist'|@translate} {$group.IP}" />
     141         <input type="image"
     142           class="bp {if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}"
     143           src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png"
     144           rel='ajout:{$group.IP}'
     145           id="btn_permissions{$group.IP}"
     146           title="{'Sv_blacklist'|@translate} {$group.IP}"
     147           alt="{'Sv_blacklist'|@translate} {$group.IP}" />
    148148    </td>
    149149    <td style="text-align:center;"></td>
     
    151151   {/foreach}
    152152  {/if}
    153   <td> <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png" /> {'Sv_set_black_list'|@translate}</td> 
     153  <td> <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png" /> {'Sv_set_black_list'|@translate}</td>
    154154 </table>
    155 </fieldset> 
     155</fieldset>
    156156</form>
    157 <form action="" method="post" name="form_connexion" id="form_connexion" style="visibility:hidden">     
    158                 <input name="pays"  type="text" value =  ""  id = "pays"  >
    159                 <input name="ville"  type="text" value = ""  id = "ville"   >
    160                 <input name="region"  type="text" value =  ""   id = "region"   >
    161                 <input name="latitude"  type="text" value =  "" id = "latitude"   >
    162                 <input name="longitude"  type="text" value = "" id = "longitude"  >     
     157<form action="" method="post" name="form_connexion" id="form_connexion" style="visibility:hidden">
     158        <input name="pays"  type="text" value =  ""  id = "pays"  >
     159        <input name="ville"  type="text" value = ""  id = "ville"   >
     160        <input name="region"  type="text" value =  ""   id = "region"   >
     161        <input name="latitude"  type="text" value =  "" id = "latitude"   >
     162        <input name="longitude"  type="text" value = "" id = "longitude"  >
    163163</form >
Note: See TracChangeset for help on using the changeset viewer.