Changeset 2128:42a5c4990b87 for inc
- Timestamp:
- 09/22/13 02:31:51 (12 years ago)
- Branch:
- Ticket #1548
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.pager.php
r1932 r2128 145 145 class adminPostList extends adminGenericList 146 146 { 147 public function display($page,$nb_per_page,$enclose_block='' )147 public function display($page,$nb_per_page,$enclose_block='',$filter=false) 148 148 { 149 149 if ($this->rs->isEmpty()) 150 150 { 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 } 152 156 } 153 157 else … … 160 164 } 161 165 } 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>'. 164 175 '<th colspan="2" class="first">'.__('Title').'</th>'. 165 176 '<th scope="col">'.__('Date').'</th>'.
Note: See TracChangeset
for help on using the changeset viewer.