Changes in [277:e0cc833df489:251:152b093d9925]
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/posts.php
r276 r242 193 193 $starting_script = dcPage::jsLoad('js/_posts_list.js'); 194 194 195 $starting_script .= $filterSet->header();195 $starting_script = $filterSet->header(); 196 196 197 197 dcPage::open(__('Entries'),$starting_script); -
inc/admin/lib.pager.php
r276 r246 20 20 protected $callback; 21 21 protected $html; 22 protected $order; 22 23 protected $visibility; 23 24 24 public function __construct($id,$title,$callback,$html = null )25 public function __construct($id,$title,$callback,$html = null,$order = null) 25 26 { 26 27 if (!is_string($id) || $id === '') { … … 37 38 if (!empty($html)) { 38 39 $html = ' '.$html; 40 } 41 42 if (!is_int($order)) { 43 $order = null; 39 44 } 40 45 … … 58 63 $this->callback = $callback; 59 64 $this->html = $html; 65 $this->order = $order; 60 66 $this->visibility = true; 61 67 } … … 129 135 $this->addColumn('adminUserList','entries',__('Entries'),array('adminUserList','getEntries')); 130 136 137 $this->setColumnsVisibility(); 138 131 139 $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) 137 143 { 138 144 try { … … 141 147 } 142 148 143 $c = new adminGenericColumn($id,$title,$callback,$html );149 $c = new adminGenericColumn($id,$title,$callback,$html,$order); 144 150 $this->columns[$context][$c->getInfo('id')] = $c; 145 151 } … … 204 210 $pager->var_page = 'page'; 205 211 206 $html_block = '<table class=" maximalclear"><tr>';212 $html_block = '<table class="clear"><tr>'; 207 213 208 214 foreach ($this->columns[$this->context] as $k => $v) {
Note: See TracChangeset
for help on using the changeset viewer.