Changeset 2000:c0c919d87d02
- Timestamp:
- 09/22/13 11:44:04 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/pages/list.php
r1999 r2000 26 26 { 27 27 $pager = new dcPager($page,$this->rs_count,$nb_per_page,10); 28 28 $entries = array(); 29 if (isset($_REQUEST['entries'])) { 30 foreach ($_REQUEST['entries'] as $v) { 31 $entries[(integer)$v]=true; 32 } 33 } 29 34 $html_block = 30 35 '<table class="maximal dragable"><thead><tr>'. … … 50 55 while ($this->rs->fetch()) 51 56 { 52 echo $this->postLine($count );57 echo $this->postLine($count,isset($entries[$this->rs->post_id])); 53 58 $count ++; 54 59 } … … 60 65 } 61 66 62 private function postLine($count )67 private function postLine($count,$checked) 63 68 { 64 69 $img = '<img alt="%1$s" title="%1$s" src="images/%2$s" />'; … … 101 106 '<td class="nowrap handle minimal">'.form::field(array('order['.$this->rs->post_id.']'),2,3,$count+1,'position','',false,'title="'.sprintf(__('position of %s'),html::escapeHTML($this->rs->post_title)).'"').'</td>'. 102 107 '<td class="nowrap">'. 103 form::checkbox(array('entries[]'),$this->rs->post_id, '','','',!$this->rs->isEditable(),'title="'.__('Select this page').'"').'</td>'.108 form::checkbox(array('entries[]'),$this->rs->post_id,$checked,'','',!$this->rs->isEditable(),'title="'.__('Select this page').'"').'</td>'. 104 109 '<td class="maximal"><a href="'.$this->core->getPostAdminURL($this->rs->post_type,$this->rs->post_id).'">'. 105 110 html::escapeHTML($this->rs->post_title).'</a></td>'.
Note: See TracChangeset
for help on using the changeset viewer.