Dotclear


Ignore:
Timestamp:
09/27/13 20:16:29 (12 years ago)
Author:
Lepeltier kévin <kevin@…>
Branch:
Ticket #1548
Message:

Ticket #1548

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.pager.php

    r2134 r2135  
    170170                    } 
    171171               } 
    172                $html_block  =  
     172               $html_block = 
    173173               '<div class="table-outer">'. 
    174                '<table class="clear">'; 
     174               '<table>'; 
    175175                
    176176               if( $filter ) { 
     
    374374class adminCommentList extends adminGenericList 
    375375{ 
    376      public function display($page,$nb_per_page,$enclose_block='') 
     376     public function display($page,$nb_per_page,$enclose_block='',$filter=false) 
    377377     { 
    378378          if ($this->rs->isEmpty()) 
    379379          { 
    380                echo '<p><strong>'.__('No comment').'</strong></p>'; 
     380               if( $filter ) { 
     381                    echo '<p><strong>'.__('No comments or trackbacks matches the filter').'</strong></p>'; 
     382               } else { 
     383                    echo '<p><strong>'.__('No comment').'</strong></p>'; 
     384               } 
    381385          } 
    382386          else 
     
    392396               $html_block = 
    393397               '<div class="table-outer">'. 
    394                '<table><caption class="hidden">'.__('Comments and trackbacks list').'</caption><tr>'. 
     398               '<table>'; 
     399                
     400               if( $filter ) { 
     401                    $html_block .= '<caption>'.sprintf(__('List of %s Comments or trackbacks match the filter.'), $this->rs_count).'</caption>'; 
     402               } else { 
     403                    $html_block .= '<caption class="hidden">'.__('Comments and trackbacks list').'</caption>'; 
     404               } 
     405                          
     406               $html_block .= '<tr>'. 
    395407               '<th colspan="2" scope="col" abbr="comm" class="first">'.__('Type').'</th>'. 
    396408               '<th scope="col">'.__('Author').'</th>'. 
     
    489501class adminUserList extends adminGenericList 
    490502{ 
    491      public function display($page,$nb_per_page,$enclose_block='') 
     503     public function display($page,$nb_per_page,$enclose_block='',$filter=false) 
    492504     { 
    493505          if ($this->rs->isEmpty()) 
    494506          { 
    495                echo '<p><strong>'.__('No user').'</strong></p>'; 
     507               if( $filter ) { 
     508                    echo '<p><strong>'.__('No user matches the filter').'</strong></p>'; 
     509               } else { 
     510                    echo '<p><strong>'.__('No user').'</strong></p>'; 
     511               } 
    496512          } 
    497513          else 
     
    501517               $html_block = 
    502518               '<div class="table-outer clear">'. 
    503                '<table><caption class="hidden">'.__('Users list').'</caption><tr>'. 
     519               '<table>'; 
     520                
     521               if( $filter ) { 
     522                    $html_block .= '<caption>'.sprintf(__('List of %s users match the filter.'), $this->rs_count).'</caption>'; 
     523               } else { 
     524                    $html_block .= '<caption class="hidden">'.__('Users list').'</caption>'; 
     525               } 
     526                          
     527               $html_block .= '<tr>'. 
    504528               '<th colspan="2" scope="col" class="first">'.__('Username').'</th>'. 
    505529               '<th scope="col">'.__('First Name').'</th>'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map