Changeset 2131:a1a18627d23d for inc/admin/lib.pager.php
- Timestamp:
- 09/22/13 18:39:29 (12 years ago)
- Branch:
- Ticket #1548
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.pager.php
r2130 r2131 50 50 $this->form_hidden = ''; 51 51 foreach ($args as $k=>$v) { 52 $this->form_hidden .= form::hidden(array($k),$v); 52 if (is_array($v)) { 53 foreach ($v as $k2=>$v2) { 54 $this->form_hidden .= form::hidden(array($k.'[]'),$v2); 55 } 56 } else { 57 $this->form_hidden .= form::hidden(array($k),$v); 58 } 53 59 } 54 60 $this->form_action = $url['path']; … … 164 170 } 165 171 } 166 $html_block = '<table class="clear">'; 172 $html_block = 173 '<div class="table-outer">'. 174 '<table class="clear">'; 167 175 168 176 if( $filter ) { … … 180 188 '<th scope="col">'.__('Trackbacks').'</th>'. 181 189 '<th scope="col">'.__('Status').'</th>'. 182 '</tr>%s</table> ';190 '</tr>%s</table></div>'; 183 191 184 192 if ($enclose_block) { … … 284 292 285 293 $html_block = 286 '<table class="clear"><caption class="hidden">'.__('Entries list').'</caption><tr>'. 294 '<div class="table-outer clear">'. 295 '<table><caption class="hidden">'.__('Entries list').'</caption><tr>'. 287 296 '<th scope="col">'.__('Title').'</th>'. 288 297 '<th scope="col">'.__('Date').'</th>'. 289 298 '<th scope="col">'.__('Author').'</th>'. 290 299 '<th scope="col">'.__('Status').'</th>'. 291 '</tr>%s</table> ';300 '</tr>%s</table></div>'; 292 301 293 302 if ($enclose_block) { … … 375 384 $pager = new dcPager($page,$this->rs_count,$nb_per_page,10); 376 385 386 $comments = array(); 387 if (isset($_REQUEST['comments'])) { 388 foreach ($_REQUEST['comments'] as $v) { 389 $comments[(integer)$v]=true; 390 } 391 } 377 392 $html_block = 393 '<div class="table-outer">'. 378 394 '<table><caption class="hidden">'.__('Comments and trackbacks list').'</caption><tr>'. 379 395 '<th colspan="2" scope="col" abbr="comm" class="first">'.__('Type').'</th>'. … … 382 398 '<th scope="col" class="txt-center">'.__('Status').'</th>'. 383 399 '<th scope="col" abbr="entry">'.__('Entry title').'</th>'. 384 '</tr>%s</table> ';400 '</tr>%s</table></div>'; 385 401 386 402 if ($enclose_block) { … … 396 412 while ($this->rs->fetch()) 397 413 { 398 echo $this->commentLine( );414 echo $this->commentLine(isset($comments[$this->rs->comment_id])); 399 415 } 400 416 … … 405 421 } 406 422 407 private function commentLine( )423 private function commentLine($checked=false) 408 424 { 409 425 global $author, $status, $sortby, $order, $nb_per_page; … … 484 500 485 501 $html_block = 486 '<table class="clear"><caption class="hidden">'.__('Users list').'</caption><tr>'. 502 '<div class="table-outer clear">'. 503 '<table><caption class="hidden">'.__('Users list').'</caption><tr>'. 487 504 '<th colspan="2" scope="col" class="first">'.__('Username').'</th>'. 488 505 '<th scope="col">'.__('First Name').'</th>'. … … 490 507 '<th scope="col">'.__('Display name').'</th>'. 491 508 '<th scope="col" class="nowrap">'.__('Entries (all types)').'</th>'. 492 '</tr>%s</table> ';509 '</tr>%s</table></div>'; 493 510 494 511 if ($enclose_block) {
Note: See TracChangeset
for help on using the changeset viewer.