Dotclear


Ignore:
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/posts.php

    r276 r242  
    193193$starting_script = dcPage::jsLoad('js/_posts_list.js'); 
    194194 
    195 $starting_script .= $filterSet->header(); 
     195$starting_script = $filterSet->header(); 
    196196 
    197197dcPage::open(__('Entries'),$starting_script); 
  • inc/admin/lib.pager.php

    r276 r246  
    2020     protected $callback; 
    2121     protected $html; 
     22     protected $order; 
    2223     protected $visibility; 
    2324      
    24      public function __construct($id,$title,$callback,$html = null) 
     25     public function __construct($id,$title,$callback,$html = null,$order = null) 
    2526     { 
    2627          if (!is_string($id) || $id === '') { 
     
    3738          if (!empty($html)) { 
    3839               $html = ' '.$html; 
     40          } 
     41           
     42          if (!is_int($order)) { 
     43               $order = null; 
    3944          } 
    4045           
     
    5863          $this->callback = $callback; 
    5964          $this->html = $html; 
     65          $this->order = $order; 
    6066          $this->visibility = true; 
    6167     } 
     
    129135          $this->addColumn('adminUserList','entries',__('Entries'),array('adminUserList','getEntries')); 
    130136           
     137          $this->setColumnsVisibility(); 
     138           
    131139          $core->callBehavior('adminGenericListConstruct',$this); 
    132            
    133           $this->setColumnsVisibility(); 
    134      } 
    135       
    136      public function addColumn($context,$id,$title,$callback,$html = null) 
     140     } 
     141      
     142     public function addColumn($context,$id,$title,$callback,$html = null,$order = null) 
    137143     { 
    138144          try { 
     
    141147               } 
    142148                
    143                $c = new adminGenericColumn($id,$title,$callback,$html); 
     149               $c = new adminGenericColumn($id,$title,$callback,$html,$order); 
    144150               $this->columns[$context][$c->getInfo('id')] = $c; 
    145151          } 
     
    204210               $pager->var_page = 'page'; 
    205211                
    206                $html_block = '<table class="maximal clear"><tr>'; 
     212               $html_block = '<table class="clear"><tr>'; 
    207213                
    208214               foreach ($this->columns[$this->context] as $k => $v) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map