Changeset 2135:35a0194cdafa for inc/admin/lib.pager.php
- Timestamp:
- 09/27/13 20:16:29 (12 years ago)
- Branch:
- Ticket #1548
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.pager.php
r2134 r2135 170 170 } 171 171 } 172 $html_block =172 $html_block = 173 173 '<div class="table-outer">'. 174 '<table class="clear">';174 '<table>'; 175 175 176 176 if( $filter ) { … … 374 374 class adminCommentList extends adminGenericList 375 375 { 376 public function display($page,$nb_per_page,$enclose_block='' )376 public function display($page,$nb_per_page,$enclose_block='',$filter=false) 377 377 { 378 378 if ($this->rs->isEmpty()) 379 379 { 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 } 381 385 } 382 386 else … … 392 396 $html_block = 393 397 '<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>'. 395 407 '<th colspan="2" scope="col" abbr="comm" class="first">'.__('Type').'</th>'. 396 408 '<th scope="col">'.__('Author').'</th>'. … … 489 501 class adminUserList extends adminGenericList 490 502 { 491 public function display($page,$nb_per_page,$enclose_block='' )503 public function display($page,$nb_per_page,$enclose_block='',$filter=false) 492 504 { 493 505 if ($this->rs->isEmpty()) 494 506 { 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 } 496 512 } 497 513 else … … 501 517 $html_block = 502 518 '<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>'. 504 528 '<th colspan="2" scope="col" class="first">'.__('Username').'</th>'. 505 529 '<th scope="col">'.__('First Name').'</th>'.
Note: See TracChangeset
for help on using the changeset viewer.