Changeset 2566:9bf417837888 for plugins/pages/class.listpage.php
- Timestamp:
- 11/17/13 20:25:53 (12 years ago)
- Branch:
- 2.6
- Children:
- 2567:6c11245cbf04, 2568:61c67a7d17fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/pages/class.listpage.php
r2232 r2566 29 29 $entries[(integer)$v]=true; 30 30 } 31 } 31 } 32 32 $html_block = 33 33 '<div class="table-outer">'. … … 40 40 '<th scope="col">'.__('Status').'</th>'. 41 41 '</tr></thead><tbody id="pageslist">%s</tbody></table></div>'; 42 42 43 43 if ($enclose_block) { 44 44 $html_block = sprintf($enclose_block,$html_block); 45 45 } 46 46 47 47 echo $pager->getLinks(); 48 48 49 49 $blocks = explode('%s',$html_block); 50 50 51 51 echo $blocks[0]; 52 52 53 53 $count = 0; 54 54 while ($this->rs->fetch()) … … 57 57 $count ++; 58 58 } 59 59 60 60 echo $blocks[1]; 61 61 62 62 echo $pager->getLinks(); 63 63 } 64 64 } 65 65 66 66 private function postLine($count,$checked) 67 67 { … … 81 81 break; 82 82 } 83 83 84 84 $protected = ''; 85 85 if ($this->rs->post_password) { 86 86 $protected = sprintf($img,__('Protected'),'locker.png'); 87 87 } 88 88 89 89 $selected = ''; 90 90 if ($this->rs->post_selected) { 91 91 $selected = sprintf($img,__('Hidden'),'hidden.png'); 92 92 } 93 93 94 94 $attach = ''; 95 95 $nb_media = $this->rs->countMedia(); … … 98 98 $attach = sprintf($img,sprintf($attach_str,$nb_media),'attach.png'); 99 99 } 100 100 101 101 $res = '<tr class="line'.($this->rs->post_status != 1 ? ' offline' : '').'"'. 102 102 ' id="p'.$this->rs->post_id.'">'; 103 103 104 104 $res .= 105 105 '<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>'. … … 108 108 '<td class="maximal" scope="row"><a href="'.$this->core->getPostAdminURL($this->rs->post_type,$this->rs->post_id).'">'. 109 109 html::escapeHTML($this->rs->post_title).'</a></td>'. 110 '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$this->rs->post_dt).'</td>'. 110 '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$this->rs->post_dt).'</td>'. 111 111 '<td class="nowrap">'.$this->rs->user_id.'</td>'. 112 112 '<td class="nowrap count">'.$this->rs->nb_comment.'</td>'. … … 114 114 '<td class="nowrap status">'.$img_status.' '.$selected.' '.$protected.' '.$attach.'</td>'. 115 115 '</tr>'; 116 116 117 117 return $res; 118 118 }
Note: See TracChangeset
for help on using the changeset viewer.