Changeset 1875:5ec99c29e66b
- Timestamp:
- 08/13/13 17:01:38 (12 years ago)
- Branch:
- Ticket #1181
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/pages/list.php
r1339 r1875 31 31 32 32 $html_block = 33 '<table class="clear"><tr>'. 33 '<table class="maximal dragable"><thead><tr>'. 34 '<th scope="col"></th>'. 34 35 '<th colspan="2">'.__('Title').'</th>'. 35 36 '<th>'.__('Date').'</th>'. … … 38 39 '<th>'.__('Trackbacks').'</th>'. 39 40 '<th>'.__('Status').'</th>'. 40 '</tr> %s</table>';41 '</tr></thead>%s</table>'; 41 42 42 43 if ($enclose_block) { … … 50 51 echo $blocks[0]; 51 52 53 $count = 0; 52 54 while ($this->rs->fetch()) 53 55 { 54 echo $this->postLine(); 56 echo $this->postLine($count); 57 $count++; 55 58 } 56 59 … … 61 64 } 62 65 63 private function postLine( )66 private function postLine($count) 64 67 { 65 68 $img = '<img alt="%1$s" title="%1$s" src="images/%2$s" />'; … … 100 103 101 104 $res .= 105 '<td class="handle minimal">'.form::field(array('order['.$count.']'),2,3,$count+1,'position','',false,'title="'.sprintf(__('position of %s'),html::escapeHTML($this->rs->post_title)).'"'). 106 form::hidden(array('dynorder[]','dynorder-'.$count),$count).'</td>'. 102 107 '<td class="nowrap">'. 103 108 form::checkbox(array('entries[]'),$this->rs->post_id,'','','',!$this->rs->isEditable(),'title="'.__('select this page').'"').'</td>'. … … 196 201 '<div class="two-cols">'. 197 202 '<p class="col checkboxes-helpers"></p>'. 198 199 203 '<p class="col right"><label for="action" class="classic">'.__('Selected pages action:').'</label> '. 200 204 form::combo('action',$combo_action). 201 205 '<input type="submit" value="'.__('ok').'" /></p>'. 206 '</div>'. 207 208 '<p>'. 209 '<input type="submit" name="updateaction" value="'.__('Update menu').'" />'. 202 210 form::hidden(array('post_type'),'page'). 203 211 form::hidden(array('redir'),html::escapeHTML($_SERVER['REQUEST_URI'])). 204 212 $core->formNonce(). 205 '</ div>'.213 '</p>'. 206 214 '</form>'); 207 215 }
Note: See TracChangeset
for help on using the changeset viewer.