Dotclear


Ignore:
Timestamp:
09/22/13 18:04:14 (12 years ago)
Author:
Lepeltier kévin <kevin@…>
Branch:
Ticket #1548
Parents:
2129:8bc6a4f0ac8f (diff), 2013:da9c70e5fd18 (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

File:
1 edited

Legend:

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

    r2008 r2130  
    5050          $this->form_hidden = ''; 
    5151          foreach ($args as $k=>$v) { 
    52                if (is_array($v)) { 
    53                     foreach ($v as $k2=>$v2) { 
    54                          $this->form_hidden .= form::hidden(array($k.'[]'),$v2); 
    55                     } 
    56                } else { 
    57                     $this->form_hidden .= form::hidden(array($k),$v); 
    58                } 
     52               $this->form_hidden .= form::hidden(array($k),$v); 
    5953          } 
    6054          $this->form_action = $url['path']; 
     
    151145class adminPostList extends adminGenericList 
    152146{ 
    153      public function display($page,$nb_per_page,$enclose_block='') 
     147     public function display($page,$nb_per_page,$enclose_block='',$filter=false) 
    154148     { 
    155149          if ($this->rs->isEmpty()) 
    156150          { 
    157                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               } 
    158156          } 
    159157          else 
     
    166164                    } 
    167165               } 
    168                $html_block = 
    169                '<div class="table-outer">'. 
    170                '<table><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>'. 
    171175               '<th colspan="2" class="first">'.__('Title').'</th>'. 
    172176               '<th scope="col">'.__('Date').'</th>'. 
     
    176180               '<th scope="col">'.__('Trackbacks').'</th>'. 
    177181               '<th scope="col">'.__('Status').'</th>'. 
    178                '</tr>%s</table></div>'; 
     182               '</tr>%s</table>'; 
    179183                
    180184               if ($enclose_block) { 
     
    280284                
    281285               $html_block = 
    282                '<div class="table-outer clear">'. 
    283                '<table><caption class="hidden">'.__('Entries list').'</caption><tr>'. 
     286               '<table class="clear"><caption class="hidden">'.__('Entries list').'</caption><tr>'. 
    284287               '<th scope="col">'.__('Title').'</th>'. 
    285288               '<th scope="col">'.__('Date').'</th>'. 
    286289               '<th scope="col">'.__('Author').'</th>'. 
    287290               '<th scope="col">'.__('Status').'</th>'. 
    288                '</tr>%s</table></div>'; 
     291               '</tr>%s</table>'; 
    289292                
    290293               if ($enclose_block) { 
     
    372375               $pager = new dcPager($page,$this->rs_count,$nb_per_page,10); 
    373376                
    374                $comments = array(); 
    375                if (isset($_REQUEST['comments'])) { 
    376                     foreach ($_REQUEST['comments'] as $v) { 
    377                          $comments[(integer)$v]=true; 
    378                     } 
    379                }               
    380377               $html_block = 
    381                '<div class="table-outer">'. 
    382378               '<table><caption class="hidden">'.__('Comments and trackbacks list').'</caption><tr>'. 
    383379               '<th colspan="2" scope="col" abbr="comm" class="first">'.__('Type').'</th>'. 
     
    386382               '<th scope="col" class="txt-center">'.__('Status').'</th>'. 
    387383               '<th scope="col" abbr="entry">'.__('Entry title').'</th>'. 
    388                '</tr>%s</table></div>'; 
     384               '</tr>%s</table>'; 
    389385 
    390386               if ($enclose_block) { 
     
    400396               while ($this->rs->fetch()) 
    401397               { 
    402                     echo $this->commentLine(isset($comments[$this->rs->comment_id])); 
     398                    echo $this->commentLine(); 
    403399               } 
    404400                
     
    409405     } 
    410406      
    411      private function commentLine($checked=false) 
     407     private function commentLine() 
    412408     { 
    413409          global $author, $status, $sortby, $order, $nb_per_page; 
     
    488484                
    489485               $html_block = 
    490                '<div class="table-outer clear">'. 
    491                '<table><caption class="hidden">'.__('Users list').'</caption><tr>'. 
     486               '<table class="clear"><caption class="hidden">'.__('Users list').'</caption><tr>'. 
    492487               '<th colspan="2" scope="col" class="first">'.__('Username').'</th>'. 
    493488               '<th scope="col">'.__('First Name').'</th>'. 
     
    495490               '<th scope="col">'.__('Display name').'</th>'. 
    496491               '<th scope="col" class="nowrap">'.__('Entries (all types)').'</th>'. 
    497                '</tr>%s</table></div>'; 
     492               '</tr>%s</table>'; 
    498493                
    499494               if ($enclose_block) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map