- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.pager.php
r2127 r2138 151 151 class adminPostList extends adminGenericList 152 152 { 153 public function display($page,$nb_per_page,$enclose_block='' )153 public function display($page,$nb_per_page,$enclose_block='',$filter=false) 154 154 { 155 155 if ($this->rs->isEmpty()) 156 156 { 157 echo '<p><strong>'.__('No entry').'</strong></p>'; 157 if( $filter ) { 158 echo '<p><strong>'.__('No entry matches the filter').'</strong></p>'; 159 } else { 160 echo '<p><strong>'.__('No entry').'</strong></p>'; 161 } 158 162 } 159 163 else … … 168 172 $html_block = 169 173 '<div class="table-outer">'. 170 '<table><caption class="hidden">'.__('Entries list').'</caption><tr>'. 174 '<table>'; 175 176 if( $filter ) { 177 $html_block .= '<caption>'.sprintf(__('List of %s entries match the filter.'), $this->rs_count).'</caption>'; 178 } else { 179 $html_block .= '<caption class="hidden">'.__('Entries list').'</caption>'; 180 } 181 182 $html_block .= '<tr>'. 171 183 '<th colspan="2" class="first">'.__('Title').'</th>'. 172 184 '<th scope="col">'.__('Date').'</th>'. … … 362 374 class adminCommentList extends adminGenericList 363 375 { 364 public function display($page,$nb_per_page,$enclose_block='' )376 public function display($page,$nb_per_page,$enclose_block='',$filter=false) 365 377 { 366 378 if ($this->rs->isEmpty()) 367 379 { 368 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 } 369 385 } 370 386 else … … 380 396 $html_block = 381 397 '<div class="table-outer">'. 382 '<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>'. 383 407 '<th colspan="2" scope="col" abbr="comm" class="first">'.__('Type').'</th>'. 384 408 '<th scope="col">'.__('Author').'</th>'. … … 477 501 class adminUserList extends adminGenericList 478 502 { 479 public function display($page,$nb_per_page,$enclose_block='' )503 public function display($page,$nb_per_page,$enclose_block='',$filter=false) 480 504 { 481 505 if ($this->rs->isEmpty()) 482 506 { 483 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 } 484 512 } 485 513 else … … 489 517 $html_block = 490 518 '<div class="table-outer clear">'. 491 '<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>'. 492 528 '<th colspan="2" scope="col" class="first">'.__('Username').'</th>'. 493 529 '<th scope="col">'.__('First Name').'</th>'.
Note: See TracChangeset
for help on using the changeset viewer.