Dotclear


Ignore:
Timestamp:
12/06/11 11:43:14 (14 years ago)
Author:
Dsls <dsls@…>
Branch:
formfilters
Parents:
781:b509ac00bf4a (diff), 779:58c45f1b96e5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merged last default changes with formfilter branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/antispam/filters/class.dc.filter.ip.php

    r780 r782  
    44# This file is part of Antispam, a plugin for Dotclear 2. 
    55# 
    6 # Copyright (c) 2003-2010 Olivier Meunier & Association Dotclear 
     6# Copyright (c) 2003-2011 Olivier Meunier & Association Dotclear 
    77# Licensed under the GPL version 2.0 license. 
    88# See LICENSE file or 
     
    123123          '<div class="multi-part" id="tab_'.$type.'" title="'.$title.'">'. 
    124124 
    125           '<form action="'.html::escapeURL($url).'" method="post">'. 
    126           '<fieldset><legend>'.__('Add an IP address').'</legend><p>'. 
     125          '<form action="'.html::escapeURL($url).'" method="post" class="fieldset">'. 
    127126          form::hidden(array('ip_type'),$type). 
    128           '<label class="classic" for="addip_'.$type.'">'.__('Add an IP address').' '. 
     127          '<label class="classic" for="addip_'.$type.'">'.__('Add an IP address: ').' '. 
    129128          form::field(array('addip', 'addip_'.$type),18,255). 
    130129          '</label>'; 
     
    136135          $res .= 
    137136          $core->formNonce(). 
    138           '<input type="submit" value="'.__('Add').'"/></p>'. 
    139           '</fieldset></form>'; 
     137          '</p>'. 
     138          '<p><input type="submit" value="'.__('Add').'"/></p>'. 
     139          '</form>'; 
    140140 
    141141          $rs = $this->getRules($type); 
     
    149149               $res .= 
    150150               '<form action="'.html::escapeURL($url).'" method="post">'. 
    151                '<fieldset><legend>' . __('IP list') . '</legend>'. 
     151               '<h3>' . __('IP list') . '</h3>'. 
    152152               '<div style="'.$this->style_list.'">'; 
    153153 
     
    167167 
    168168                    $res .= 
    169                     '<p style="'.$p_style.'"><label class="classic">'. 
    170                     form::checkbox(array('delip[]'),$rs->rule_id,false,'','',$disabled_ip, 'title="'.html::escapeHTML($pattern).'"').' '. 
     169                    '<p style="'.$p_style.'"><label class="classic" for="'.$type.'-ip-'.$rs->rule_id.'">'. 
     170                    form::checkbox(array('delip[]',$type.'-ip-'.$rs->rule_id),$rs->rule_id,false,'','',$disabled_ip).' '. 
    171171                    html::escapeHTML($pattern). 
    172172                    '</label></p>'; 
     
    178178               form::hidden(array('ip_type'),$type). 
    179179               '</p>'. 
    180                '</fieldset></form>'; 
     180               '</form>'; 
    181181          } 
    182182 
Note: See TracChangeset for help on using the changeset viewer.

Sites map