Dotclear

Changeset 432:f00f0ec519b8


Ignore:
Timestamp:
06/28/11 12:35:30 (14 years ago)
Author:
Tomtom33 <tbouron@…>
Branch:
formfilters
Message:

Added caption tag to admin tables, closes #1068

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/style/default.css

    r431 r432  
    943943     border-collapse: collapse; 
    944944     margin: 0 0 1em 0; 
     945} 
     946table caption { 
     947     position: absolute; 
     948     left: -9999px; 
    945949} 
    946950tr.line:hover { 
  • inc/admin/lib.pager.php

    r431 r432  
    219219               $html_block = 
    220220               '<table class="maximal clear">'. 
     221               $this->getCaption($page). 
    221222               '<thead><tr>'; 
    222223                
     
    269270     } 
    270271      
     272     private function getCaption($page) 
     273     { 
     274          $caption = $this->getDefaultCaption(); 
     275           
     276          if (!empty($caption)) { 
     277               $caption = sprintf( 
     278                    '<caption>%s - %s</caption>', 
     279                    $caption,sprintf(__('Page %s'),$page) 
     280               ); 
     281          } 
     282           
     283          return $caption; 
     284     } 
     285      
     286     protected function getDefaultCaption() 
     287     { 
     288          return; 
     289     } 
     290      
    271291     protected function getDefaultLine() 
    272292     { 
     
    277297class adminPostList extends adminGenericList 
    278298{ 
     299     protected function getDefaultCaption() 
     300     { 
     301          return __('Entries list'); 
     302     } 
     303      
    279304     protected function getDefaultLine() 
    280305     { 
     
    385410class adminCommentList extends adminGenericList 
    386411{ 
     412     protected function getDefaultCaption() 
     413     { 
     414          return __('Comments list'); 
     415     } 
     416      
    387417     protected function getDefaultLine() 
    388418     { 
     
    466496class adminUserList extends adminGenericList 
    467497{ 
     498     protected function getDefaultCaption() 
     499     { 
     500          return __('Users list'); 
     501     } 
     502      
    468503     protected function getUserName() 
    469504     { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map