Dotclear

Changeset 2128:42a5c4990b87 for inc


Ignore:
Timestamp:
09/22/13 02:31:51 (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

    r1932 r2128  
    145145class adminPostList extends adminGenericList 
    146146{ 
    147      public function display($page,$nb_per_page,$enclose_block='') 
     147     public function display($page,$nb_per_page,$enclose_block='',$filter=false) 
    148148     { 
    149149          if ($this->rs->isEmpty()) 
    150150          { 
    151                echo '<p><strong>'.__('No entry').'</strong></p>'; 
     151               if( $filter ) { 
     152                    echo '<p><strong>'.__('No entry matches the filter').'</strong></p>'; 
     153               } else { 
     154                    echo '<p><strong>'.__('No entry').'</strong></p>'; 
     155               } 
    152156          } 
    153157          else 
     
    160164                    } 
    161165               } 
    162                $html_block = 
    163                '<table class="clear"><caption class="hidden">'.__('Entries list').'</caption><tr>'. 
     166               $html_block  = '<table class="clear">'; 
     167                
     168               if( $filter ) { 
     169                    $html_block .= '<caption>'.sprintf(__('List of %s entries match the filter.'), $this->rs_count).'</caption>'; 
     170               } else { 
     171                    $html_block .= '<caption class="hidden">'.__('Entries list').'</caption>'; 
     172               } 
     173                          
     174               $html_block .= '<tr>'. 
    164175               '<th colspan="2" class="first">'.__('Title').'</th>'. 
    165176               '<th scope="col">'.__('Date').'</th>'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map