Ignore:
Timestamp:
Mar 15, 2011, 3:39:19 PM (13 years ago)
Author:
cljosse
Message:

[Mail supervisor] add class.

File:
1 edited

Legend:

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

    r8917 r9702  
    1 {* $Id: mail_black_liste.tpl 3723 2009-08-07 04:53:38Z rvelices $ *}
    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}
    5 
     1{* $Id: mail_black_liste.tpl cljosse $ *}
    62<script type="text/javascript">
    7 jQuery().ready(function()
    8 {ldelim}
    9   jQuery('.cluetip').cluetip(
    10   {ldelim}
    11     width: 550,
    12     splitTitle: '|'
    13   {rdelim});
    14 {rdelim});
     3 var confirm_message = "{'Sv_Are_you_sure'|@translate|@escape:'javascript'}?"; 
    154</script>
    16 
    175<link href="theme.css" rel="stylesheet" type="text/css" />
    186{html_head}<link rel="stylesheet" type="text/css" href="{$MAIL_SUPERV_PATH}admin/theme.css" />{/html_head}
     
    2412<form action='' method="post" name="form_black">
    2513<fieldset>
    26     <legend >{'Sv_options'|translate}</legend>
    27  <table>
    28 <td><input type="checkbox" name="no_mail_list" value="on" {$no_mail_list}  />&nbsp;&nbsp;{'Sv_no_mail_list'|translate}  </td>
    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>
    31 <td><input type="checkbox" name="set_id" value="on" {$set_id} />&nbsp;&nbsp;{'Sv_set_id'|translate}</td>
    32 <tr><p></p><td>
    33 <input class="submit" type="submit" name="submit" value="{'Sv_Valider'|translate}" /></td></tr>
    34  </table>
     14<legend >{'Sv_options'|translate}</legend>
     15  <table>
     16    <td><input type="checkbox" name="no_mail_list" value="on" {$no_mail_list}  />&nbsp;&nbsp;{'Sv_no_mail_list'|translate}      </td>
     17    <td style="visibility:hidden" ><input type="checkbox" name="no_connect" value="off" {$no_connect} />&nbsp;&nbsp;{'Sv_no_connect'|translate} </td>
     18    <td style="visibility:visible" ><input type="checkbox"  name="set_auto" value="off" {$set_auto} />&nbsp;&nbsp;{'Sv_set_auto'|translate} </td>
     19    <td style="visibility:hidden" ><input type="checkbox" name="set_id" value="on" {$set_id} />&nbsp;&nbsp;{'Sv_set_id'|translate}</td>
     20    <tr><p></p><td>
     21    <input class="submit" type="submit" name="submit" value="{'Sv_Valider'|translate}" /></td></tr>
     22  </table>
    3523</fieldset>
    3624<input name="info1" type="hidden" />
    3725 <fieldset >
    38     <legend>{'Sv_black_liste'|translate}</legend>
    39            <table>
    40                 <div >
    41                 <input name="ip_black" id = "ip_black_test" type="text" value="{$ip_black}"      />
    42           <input class="cluetip" title="{'Sv_Test'|translate}|{'Sv_hlp_7_3'|translate}"   type="submit" name="submit" value="{'Sv_Test'|translate}"  />
    43 
    44 { if $ip_black_len > 0}
    45                
    46                {if  $IS_SPAM  == true }
    47                                 <label class="erreur">  {'Sv_is_a_spam'|@translate} </label>
    48                                 { else }
    49                                  <label class="erreur"> {'Sv_not_a_spam'|@translate} </label>
    50                         {/if}
    51                         { if  $istype == 'IP'}         
     26<legend>{'Sv_black_liste'|translate}</legend>
     27<table>
     28 <td><input name="ip_black" id = "ip_black_test" type="text" value="{$ip_black}"         />
     29 <input class="cluetip" title="{'Sv_Test'|translate}|{'Sv_hlp_7_3'|translate}"   type="submit" name="submit" value="{'Sv_Test'|translate}"  />
     30 { if $ip_black_len > 0}               
     31        {if  $IS_SPAM  == true }
     32                <label class="erreur">  {'Sv_is_a_spam'|@translate} </label>
     33        { else }
     34                        { if  $istype == 'IP'} 
     35                                <label class="erreur">  {'Sv_not_a_spam'|@translate} </label>
     36                        { else }
     37                           <label class="erreur">       {'Sv_no_verif'|@translate} </label>
     38                        {/if}                   
     39        {/if}
     40</td>
     41        <td>
     42        <input class="bp cluetip"
     43                title="{'Sv_Ajout'|translate}|{'Sv_hlp_7_4'|translate}"
     44                type="submit"
     45                name="submit"
     46                rel="ajout:{$ip_black}"
     47                value="{'Sv_Ajout'|@translate}"
     48                alt="{'Sv_Ajout'|@translate} : {$ip_black}"
     49        />
     50  </td>
     51  <td>
     52 <input type="image" name="submit"   class='bp row1'
     53  src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png"
     54  rel="ajout:{$ip_black}"
     55  id="btn_ajout{$ip_black}"
     56  alt="{'Sv_Ajout'|@translate} : {$ip_black}" 
     57  title="{'Sv_Ajout'|@translate} {$ip_black}" />
     58{ else }
     59                   
     60{/if}
    5261                       
    53 <input class="cluetip" title="{'Sv_Ajout'|translate}|{'Sv_hlp_7_4'|translate}"    type="submit" name="submit" value="{'Sv_Ajout'|translate}"  />
    54 
    55               <input type="image" name="submit"   class='row1'
    56               src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png"
    57                   alt="{'Sv_Ajout'|@translate}"
    58                   onclick = "
    59  if (confirm( document.getElementById('btn_ajout{$ip_black}').title + '\n\n' + '{'Sv_Are you sure?'|@translate|@escape:'javascript'}'))
    60   form_black.info1.value='ajout:{$ip_black}'
    61   "
    62                   id="btn_ajout{$ip_black}"
    63               title="{'Sv_Ajout'|@translate} {$ip_black}" />                           
    64 {/if}   
    65         { else }
    66                    
    67                 {/if}
    68                        
    69 
    70 
    71                          
     62</td>
     63         
     64       
    7265                           
    73              </div>
     66         <td>
    7467                 <a href="http://www.stopforumspam.com" >  <img src="{$img_logo}"  width="32"/>  http://www.stopforumspam.com
    75  </a>
    76          </table> 
     68 </a></td>
     69 </tr>  <tr>   </tr>
     70     </table> 
    7771 
    7872        <table class="table2" >
     
    8983                        <td>{$group.nb}</td>
    9084                <td style="text-align:center;">
    91                         <input type="image" class="{if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}" 
     85                        <input type="image" class="bp {if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}" 
    9286                                src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png"
    93                                         alt="{'Sv_delete'|@translate}"
    94                                         onclick = "
    95                                                 if (confirm( document.getElementById('btn_delete{$group.ip}').title + '\n\n' + '{'Sv_Are you sure?'|@translate|@escape:'javascript'}'))
    96   form_black.info1.value='raz:{$group.ip}'
    97   "
     87                                        rel="raz:{$group.ip}"
    9888                                        id="btn_delete{$group.ip}"
    99                                 title="{'Sv_delete'|@translate} {$group.ip}" />
     89                                title="{'Sv_delete'|@translate} {$group.ip}"
     90                                        alt="{'Sv_delete'|@translate} {$group.ip}" />
    10091                        </td>
    10192                  </tr>
     
    121112           <td><input class="submit" type="submit" name="prev"  value=   "{'previous_page'|translate}" /></td>
    122113        { /if}
    123        <td>{'page'|translate}</td>         
    124            <td><input type="text" name="start"  value="{$start}" size=5  /></td>
    125             <td>/ {$maxipage}  </td>   
    126 
    127            
     114  <td>{'page'|translate}</td>     
     115  <td><input type="text" name="start"  value="{$start}" size=5  /></td>
     116  <td>/ {$maxipage}  </td>                 
    128117        {if $start < $maxipage }   
    129118           <td><input class="submit" type="submit" name="next"  value=  "{'Next'|translate}"  /></td>
    130119                { /if}   
    131            <td>
    132           <input class="submit" type="submit" name="info" value="{'Sv_list'|translate}" />
    133           </td>
    134 </table>       
    135 
    136 
    137 <table class="table2">
    138 
    139    <tr class="throw">
    140  
    141     <th>{$champs_ip[0]|@translate}</th>
    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 
    148     <th>{'Sv_blackliste'|@translate}</th>
     120           <td><input class="submit" type="submit" name="info" value="{'Sv_list'|translate}" /></td>
     121 </table>       
     122 <table class="table2">
     123  <tr class="throw">   
     124   <th>{$champs_ip[0]|@translate}</th>
     125   <th>{$champs_ip[1]|@translate}</th>
     126   <th>{$champs_ip[2]|@translate}</th>
     127   <th>{$champs_ip[3]|@translate}</th>
     128   <th>{$champs_ip[4]|@translate}</th>
     129   <th>{$champs_ip[5]|@translate}</th>
     130   <th>{'Sv_blackliste'|@translate}</th>
    149131  </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}">
    155                  <td>{$group.id}</td>
    156           <td>{$group.date}</td>
    157               <td>{$group.time}</td>
    158               <td>{$group.user_id}</td>
    159                   <td>{$group.IP}</td>
    160          <td>{$group.total}</td>
    161       <td style="text-align:center;">
    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 = "
    166  if (confirm( document.getElementById('btn_permissions{$group.IP}').title + '\n\n' + '{'Sv_Are you sure?'|@translate|@escape:'javascript'}'))
    167   form_black.info1.value='ajout:{$group.IP}'
    168   " 
    169   id="btn_permissions{$group.IP}"
    170   title="{'Sv_blacklist'|@translate} {$group.IP}"
    171   alt="{'Sv_blacklist'|@translate} {$group.IP}" />
     132  {if not empty($liste_ip)} 
     133   {foreach from=$liste_ip item=group name=group_loop} 
     134    <tr class="{if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}">
     135    <td>{$group.id}</td>
     136    <td>{$group.date}</td>
     137    <td>{$group.time}</td>
     138    <td>{$group.user_id}</td>
     139    <td>{$group.IP}</td>
     140    <td>{$group.total}</td>
     141    <td style="text-align:center;">
     142                 <input type="image"
     143                   class="bp {if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}"
     144                   src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png"
     145                   rel='ajout:{$group.IP}'
     146                   id="btn_permissions{$group.IP}"
     147                   title="{'Sv_blacklist'|@translate} {$group.IP}"
     148                   alt="{'Sv_blacklist'|@translate} {$group.IP}" />
    172149    </td>
    173  
    174     <td style="text-align:center;">
    175 
    176     </td>
    177   </tr>
    178                         {/foreach}
    179                  {/if}
    180                         <td> <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png" /> {'Sv_set_black_list'|@translate}</td>
    181         </table>
    182         </fieldset>
     150    <td style="text-align:center;"></td>
     151   </tr>
     152   {/foreach}
     153  {/if}
     154  <td> <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png" /> {'Sv_set_black_list'|@translate}</td>
     155 </table>
     156</fieldset>
    183157</form>
     158<form action="" method="post" name="form_connexion" id="form_connexion" style="visibility:hidden">     
     159                <input name="pays"  type="text" value =  ""  id = "pays"  >
     160                <input name="ville"  type="text" value = ""  id = "ville"   >
     161                <input name="region"  type="text" value =  ""   id = "region"   >
     162                <input name="latitude"  type="text" value =  "" id = "latitude"   >
     163                <input name="longitude"  type="text" value = "" id = "longitude"  >     
     164</form >
Note: See TracChangeset for help on using the changeset viewer.