Dotclear


Ignore:
Timestamp:
09/28/13 17:21:54 (12 years ago)
Author:
Lepeltier kévin <kevin@…>
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.
Message:

Fusion avec default

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.pager.php

    r2127 r2138  
    151151class adminPostList extends adminGenericList 
    152152{ 
    153      public function display($page,$nb_per_page,$enclose_block='') 
     153     public function display($page,$nb_per_page,$enclose_block='',$filter=false) 
    154154     { 
    155155          if ($this->rs->isEmpty()) 
    156156          { 
    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               } 
    158162          } 
    159163          else 
     
    168172               $html_block = 
    169173               '<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>'. 
    171183               '<th colspan="2" class="first">'.__('Title').'</th>'. 
    172184               '<th scope="col">'.__('Date').'</th>'. 
     
    362374class adminCommentList extends adminGenericList 
    363375{ 
    364      public function display($page,$nb_per_page,$enclose_block='') 
     376     public function display($page,$nb_per_page,$enclose_block='',$filter=false) 
    365377     { 
    366378          if ($this->rs->isEmpty()) 
    367379          { 
    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               } 
    369385          } 
    370386          else 
     
    380396               $html_block = 
    381397               '<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>'. 
    383407               '<th colspan="2" scope="col" abbr="comm" class="first">'.__('Type').'</th>'. 
    384408               '<th scope="col">'.__('Author').'</th>'. 
     
    477501class adminUserList extends adminGenericList 
    478502{ 
    479      public function display($page,$nb_per_page,$enclose_block='') 
     503     public function display($page,$nb_per_page,$enclose_block='',$filter=false) 
    480504     { 
    481505          if ($this->rs->isEmpty()) 
    482506          { 
    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               } 
    484512          } 
    485513          else 
     
    489517               $html_block = 
    490518               '<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>'. 
    492528               '<th colspan="2" scope="col" class="first">'.__('Username').'</th>'. 
    493529               '<th scope="col">'.__('First Name').'</th>'. 
  • inc/admin/lib.pager.php

    r2135 r2138  
    185185               '<th scope="col">'.__('Category').'</th>'. 
    186186               '<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>'. 
    189189               '<th scope="col">'.__('Status').'</th>'. 
    190190               '</tr>%s</table></div>'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map