Changeset 431:919a4dea016b for inc/admin
- Timestamp:
- 06/28/11 12:17:40 (14 years ago)
- Branch:
- formfilters
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.pager.php
r418 r431 217 217 $pager->var_page = 'page'; 218 218 219 $html_block = '<table class="maximal clear"><tr>'; 219 $html_block = 220 '<table class="maximal clear">'. 221 '<thead><tr>'; 220 222 221 223 foreach ($this->columns[$this->context] as $k => $v) { 222 224 if ($v->isVisible()) { 223 $html_block .= sprintf('<th%s>%s</th>',$v->getInfo('html'),$v->getInfo('title')); 225 $html_extra = $v->getInfo('html') != '' ? ' '.$v->getInfo('html') : ''; 226 $html_block .= sprintf('<th scope="col"%s>%s</th>',$html_extra,$v->getInfo('title')); 224 227 } 225 228 } 226 229 227 $html_block .= '</tr>%s</table>'; 230 $html_block .= 231 '</tr></thead>'. 232 '<tbody>%s</tbody>'. 233 '</table>'; 228 234 229 235 if ($enclose_block) { … … 281 287 { 282 288 return 283 '<t dclass="maximal">'.284 form::checkbox(array('entries[]'),$this->rs->post_id,'','','',!$this->rs->isEditable()).'  '.289 '<th scope="row" class="maximal">'. 290 form::checkbox(array('entries[]'),$this->rs->post_id,'','','',!$this->rs->isEditable()).' '. 285 291 '<a href="'.$this->core->getPostAdminURL($this->rs->post_type,$this->rs->post_id).'">'. 286 html::escapeHTML($this->rs->post_title).'</a></t d>';292 html::escapeHTML($this->rs->post_title).'</a></th>'; 287 293 } 288 294 … … 369 375 { 370 376 return 371 '<t dclass="maximal">'.372 form::checkbox(array('entries[]'),$this->rs->post_id,'','','',!$this->rs->isEditable()).'  '.377 '<th scope="row" class="maximal">'. 378 form::checkbox(array('entries[]'),$this->rs->post_id,'','','',!$this->rs->isEditable()).' '. 373 379 '<a href="'.$this->core->getPostAdminURL($this->rs->post_type,$this->rs->post_id).'" '. 374 380 'title="'.html::escapeHTML($this->rs->getURL()).'">'. … … 391 397 392 398 return 393 '<t dclass="maximal">'.394 form::checkbox(array('comments[]'),$this->rs->comment_id,'','','',0).'  '.399 '<th scope="row" class="maximal">'. 400 form::checkbox(array('comments[]'),$this->rs->comment_id,'','','',0).' '. 395 401 '<a href="'.$post_url.'">'. 396 402 html::escapeHTML($this->rs->post_title).'</a>'. 397 ($this->rs->post_type != 'post' ? ' ('.html::escapeHTML($this->rs->post_type).')' : '').'</t d>';403 ($this->rs->post_type != 'post' ? ' ('.html::escapeHTML($this->rs->post_type).')' : '').'</th>'; 398 404 } 399 405 … … 475 481 476 482 return 477 '<t dclass="maximal">'.form::hidden(array('nb_post[]'),(integer) $this->rs->nb_post).483 '<th scope="row" class="maximal">'.form::hidden(array('nb_post[]'),(integer) $this->rs->nb_post). 478 484 form::checkbox(array('user_id[]'),$this->rs->user_id).' '. 479 485 '<a href="user.php?id='.$this->rs->user_id.'">'. 480 $this->rs->user_id.'</a> '.$img_status.'</t d>';486 $this->rs->user_id.'</a> '.$img_status.'</th>'; 481 487 } 482 488
Note: See TracChangeset
for help on using the changeset viewer.