Changeset 2069:8c8ad1be0ea2
- Timestamp:
- 09/24/13 19:32:39 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/actions/class.dcactioncomments.php
r2065 r2069 57 57 } 58 58 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 59 82 protected function fetchEntries($from) { 60 83 if (!empty($from['comments'])) { … … 79 102 } 80 103 $this->rs = $co; 104 } else { 105 $this->rs = $this->core->con->select("SELECT blog_id FROM ".$this->core->prefix."blog WHERE false");; 81 106 } 82 107 }
Note: See TracChangeset
for help on using the changeset viewer.