Dotclear

Changeset 1875:5ec99c29e66b


Ignore:
Timestamp:
08/13/13 17:01:38 (12 years ago)
Author:
Lepeltier kévin
Branch:
Ticket #1181
Message:

Ticket #1181
Modification du tableau pour ajouter les champs de réordonancement.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/pages/list.php

    r1339 r1875  
    3131                
    3232               $html_block = 
    33                '<table class="clear"><tr>'. 
     33               '<table class="maximal dragable"><thead><tr>'. 
     34               '<th scope="col"></th>'. 
    3435               '<th colspan="2">'.__('Title').'</th>'. 
    3536               '<th>'.__('Date').'</th>'. 
     
    3839               '<th>'.__('Trackbacks').'</th>'. 
    3940               '<th>'.__('Status').'</th>'. 
    40                '</tr>%s</table>'; 
     41               '</tr></thead>%s</table>'; 
    4142                
    4243               if ($enclose_block) { 
     
    5051               echo $blocks[0]; 
    5152                
     53               $count = 0; 
    5254               while ($this->rs->fetch()) 
    5355               { 
    54                     echo $this->postLine(); 
     56                    echo $this->postLine($count); 
     57                    $count++; 
    5558               } 
    5659                
     
    6164     } 
    6265      
    63      private function postLine() 
     66     private function postLine($count) 
    6467     { 
    6568          $img = '<img alt="%1$s" title="%1$s" src="images/%2$s" />'; 
     
    100103           
    101104          $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>'. 
    102107          '<td class="nowrap">'. 
    103108          form::checkbox(array('entries[]'),$this->rs->post_id,'','','',!$this->rs->isEditable(),'title="'.__('select this page').'"').'</td>'. 
     
    196201     '<div class="two-cols">'. 
    197202     '<p class="col checkboxes-helpers"></p>'. 
    198       
    199203     '<p class="col right"><label for="action" class="classic">'.__('Selected pages action:').'</label> '. 
    200204     form::combo('action',$combo_action). 
    201205     '<input type="submit" value="'.__('ok').'" /></p>'. 
     206     '</div>'. 
     207      
     208     '<p>'. 
     209     '<input type="submit" name="updateaction" value="'.__('Update menu').'" />'. 
    202210     form::hidden(array('post_type'),'page'). 
    203211     form::hidden(array('redir'),html::escapeHTML($_SERVER['REQUEST_URI'])). 
    204212     $core->formNonce(). 
    205      '</div>'. 
     213     '</p>'. 
    206214     '</form>'); 
    207215} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map