Dotclear

Changeset 2069:8c8ad1be0ea2


Ignore:
Timestamp:
09/24/13 19:32:39 (12 years ago)
Author:
Dsls
Branch:
default
Message:

Implemented 3-column layout for comments actions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/actions/class.dcactioncomments.php

    r2065 r2069  
    5757     } 
    5858      
     59     /** 
     60     * getcheckboxes -returns html code for selected entries 
     61      *             as a table containing entries checkboxes 
     62     * 
     63     * @access public 
     64      * 
     65     * @return string the html code for checkboxes 
     66     */ 
     67     public function getCheckboxes() { 
     68          $ret =  
     69               '<table class="posts-list"><tr>'. 
     70               '<th colspan="2">'.__('Author').'</th><th>'.__('Title').'</th>'. 
     71               '</tr>'; 
     72          foreach ($this->entries as $id=>$title) { 
     73               $ret .=  
     74                    '<tr><td>'. 
     75                    form::checkbox(array($this->field_entries.'[]'),$id,true,'','').'</td>'. 
     76                    '<td>'.   $title['author'].'</td><td>'.$title['title'].'</td></tr>'; 
     77          } 
     78          $ret .= '</table>'; 
     79          return $ret; 
     80     } 
     81 
    5982     protected function fetchEntries($from) { 
    6083          if (!empty($from['comments'])) { 
     
    79102               } 
    80103               $this->rs = $co; 
     104          } else { 
     105               $this->rs = $this->core->con->select("SELECT blog_id FROM ".$this->core->prefix."blog WHERE false");; 
    81106          } 
    82107     } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map