Dotclear


Ignore:
Timestamp:
09/22/13 18:39:29 (12 years ago)
Author:
Lepeltier kévin <kevin@…>
Branch:
Ticket #1548
Message:

Ticket #1707 : Merge pécédent mal fait.

File:
1 edited

Legend:

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

    r2130 r2131  
    5050          $this->form_hidden = ''; 
    5151          foreach ($args as $k=>$v) { 
    52                $this->form_hidden .= form::hidden(array($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               } 
    5359          } 
    5460          $this->form_action = $url['path']; 
     
    164170                    } 
    165171               } 
    166                $html_block  = '<table class="clear">'; 
     172               $html_block  =  
     173               '<div class="table-outer">'. 
     174               '<table class="clear">'; 
    167175                
    168176               if( $filter ) { 
     
    180188               '<th scope="col">'.__('Trackbacks').'</th>'. 
    181189               '<th scope="col">'.__('Status').'</th>'. 
    182                '</tr>%s</table>'; 
     190               '</tr>%s</table></div>'; 
    183191                
    184192               if ($enclose_block) { 
     
    284292                
    285293               $html_block = 
    286                '<table class="clear"><caption class="hidden">'.__('Entries list').'</caption><tr>'. 
     294               '<div class="table-outer clear">'. 
     295               '<table><caption class="hidden">'.__('Entries list').'</caption><tr>'. 
    287296               '<th scope="col">'.__('Title').'</th>'. 
    288297               '<th scope="col">'.__('Date').'</th>'. 
    289298               '<th scope="col">'.__('Author').'</th>'. 
    290299               '<th scope="col">'.__('Status').'</th>'. 
    291                '</tr>%s</table>'; 
     300               '</tr>%s</table></div>'; 
    292301                
    293302               if ($enclose_block) { 
     
    375384               $pager = new dcPager($page,$this->rs_count,$nb_per_page,10); 
    376385                
     386               $comments = array(); 
     387               if (isset($_REQUEST['comments'])) { 
     388                    foreach ($_REQUEST['comments'] as $v) { 
     389                         $comments[(integer)$v]=true; 
     390                    } 
     391               }               
    377392               $html_block = 
     393               '<div class="table-outer">'. 
    378394               '<table><caption class="hidden">'.__('Comments and trackbacks list').'</caption><tr>'. 
    379395               '<th colspan="2" scope="col" abbr="comm" class="first">'.__('Type').'</th>'. 
     
    382398               '<th scope="col" class="txt-center">'.__('Status').'</th>'. 
    383399               '<th scope="col" abbr="entry">'.__('Entry title').'</th>'. 
    384                '</tr>%s</table>'; 
     400               '</tr>%s</table></div>'; 
    385401 
    386402               if ($enclose_block) { 
     
    396412               while ($this->rs->fetch()) 
    397413               { 
    398                     echo $this->commentLine(); 
     414                    echo $this->commentLine(isset($comments[$this->rs->comment_id])); 
    399415               } 
    400416                
     
    405421     } 
    406422      
    407      private function commentLine() 
     423     private function commentLine($checked=false) 
    408424     { 
    409425          global $author, $status, $sortby, $order, $nb_per_page; 
     
    484500                
    485501               $html_block = 
    486                '<table class="clear"><caption class="hidden">'.__('Users list').'</caption><tr>'. 
     502               '<div class="table-outer clear">'. 
     503               '<table><caption class="hidden">'.__('Users list').'</caption><tr>'. 
    487504               '<th colspan="2" scope="col" class="first">'.__('Username').'</th>'. 
    488505               '<th scope="col">'.__('First Name').'</th>'. 
     
    490507               '<th scope="col">'.__('Display name').'</th>'. 
    491508               '<th scope="col" class="nowrap">'.__('Entries (all types)').'</th>'. 
    492                '</tr>%s</table>'; 
     509               '</tr>%s</table></div>'; 
    493510                
    494511               if ($enclose_block) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map