Changeset 1476:c45f3be639b6 for inc/admin
- Timestamp:
- 08/19/13 16:38:02 (12 years ago)
- Branch:
- default
- Children:
- 1477:6ffbcd3cfb6f, 1480:9451796b02e2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.pager.php
r1468 r1476 42 42 $pager->html_next = $this->html_next; 43 43 $pager->var_page = 'page'; 44 44 $entries = array(); 45 if (isset($_REQUEST['entries'])) { 46 foreach ($_REQUEST['entries'] as $v) { 47 $entries[(integer)$v]=true; 48 } 49 } 45 50 $html_block = 46 51 '<table class="clear"><tr>'. … … 66 71 while ($this->rs->fetch()) 67 72 { 68 echo $this->postLine( );73 echo $this->postLine(isset($entries[$this->rs->post_id])); 69 74 } 70 75 … … 75 80 } 76 81 77 private function postLine( )82 private function postLine($checked) 78 83 { 79 84 if ($this->core->auth->check('categories',$this->core->blog->id)) { … … 128 133 $res .= 129 134 '<td class="nowrap">'. 130 form::checkbox(array('entries[]'),$this->rs->post_id, '','','',!$this->rs->isEditable()).'</td>'.135 form::checkbox(array('entries[]'),$this->rs->post_id,$checked,'','',!$this->rs->isEditable()).'</td>'. 131 136 '<td class="maximal"><a href="'.$this->core->getPostAdminURL($this->rs->post_type,$this->rs->post_id).'">'. 132 137 html::escapeHTML($this->rs->post_title).'</a></td>'.
Note: See TracChangeset
for help on using the changeset viewer.