Changeset 1905:d72d24250853 for inc/admin/lib.pager.php
- Timestamp:
- 09/16/13 13:28:17 (12 years ago)
- Branch:
- actionsreloaded
- Children:
- 1999:a0ed28c2da5a, 2037:cdcd97549428
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.pager.php
r1670 r1905 257 257 $pager->html_next = $this->html_next; 258 258 $pager->var_page = 'page'; 259 259 $comments = array(); 260 if (isset($_REQUEST['comments'])) { 261 foreach ($_REQUEST['comments'] as $v) { 262 $comments[(integer)$v]=true; 263 } 264 } 260 265 $html_block = 261 266 '<table><caption class="hidden">'.__('Comments and trackbacks list').'</caption><tr>'. … … 279 284 while ($this->rs->fetch()) 280 285 { 281 echo $this->commentLine( );286 echo $this->commentLine(isset($comments[$this->rs->comment_id])); 282 287 } 283 288 … … 288 293 } 289 294 290 private function commentLine( )295 private function commentLine($checked) 291 296 { 292 297 global $author, $status, $sortby, $order, $nb_per_page; … … 336 341 $res .= 337 342 '<td class="nowrap">'. 338 form::checkbox(array('comments[]'),$this->rs->comment_id, '','','',0).'</td>'.343 form::checkbox(array('comments[]'),$this->rs->comment_id,$checked,'','',0).'</td>'. 339 344 '<td class="nowrap" abbr="'.__('Type and author').'" scope="raw">'. 340 345 '<a href="'.$comment_url.'" title="'.$comment_title.'">'.
Note: See TracChangeset
for help on using the changeset viewer.