Changeset 2138:73902254112c for inc/admin/lib.pager.php
- Timestamp:
- 09/28/13 17:21:54 (12 years ago)
- Branch:
- Ticket #1548
- Children:
- 2139:abcd1153037c, 2140:28741fc22072
- Parents:
- 2137:bb5fa2846e7d (diff), 2127:0bdb7068c050 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Files:
-
- 2 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>'. -
inc/admin/lib.pager.php
r2135 r2138 185 185 '<th scope="col">'.__('Category').'</th>'. 186 186 '<th scope="col">'.__('Author').'</th>'. 187 '<th scope="col"> '.__('Comments').'</th>'.188 '<th scope="col"> '.__('Trackbacks').'</th>'.187 '<th scope="col"><img src="images/comments.png" alt="" title="'.__('Comments').'" /><span class="hidden">'.__('Comments').'</span></th>'. 188 '<th scope="col"><img src="images/trackbacks.png" alt="" title="'.__('Trackbacks').'" /><span class="hidden">'.__('Trackbacks').'</span></th>'. 189 189 '<th scope="col">'.__('Status').'</th>'. 190 190 '</tr>%s</table></div>';
Note: See TracChangeset
for help on using the changeset viewer.