Dotclear


Ignore:
Timestamp:
08/19/13 16:38:02 (12 years ago)
Author:
Dsls
Branch:
default
Children:
1477:6ffbcd3cfb6f, 1480:9451796b02e2
Message:
  • Selection is kept when going back to entries
  • Notifications when applying changes
  • Added "back to entries" link

see #1540

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.pager.php

    r1468 r1476  
    4242               $pager->html_next = $this->html_next; 
    4343               $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               } 
    4550               $html_block = 
    4651               '<table class="clear"><tr>'. 
     
    6671               while ($this->rs->fetch()) 
    6772               { 
    68                     echo $this->postLine(); 
     73                    echo $this->postLine(isset($entries[$this->rs->post_id])); 
    6974               } 
    7075                
     
    7580     } 
    7681      
    77      private function postLine() 
     82     private function postLine($checked) 
    7883     { 
    7984          if ($this->core->auth->check('categories',$this->core->blog->id)) { 
     
    128133          $res .= 
    129134          '<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>'. 
    131136          '<td class="maximal"><a href="'.$this->core->getPostAdminURL($this->rs->post_type,$this->rs->post_id).'">'. 
    132137          html::escapeHTML($this->rs->post_title).'</a></td>'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map