Dotclear


Ignore:
Timestamp:
07/12/11 21:17:28 (14 years ago)
Author:
Franck <carnet.franck.paul@…>
Branch:
default
Message:

Mise en accessibilité des tables (about:Config et user:Prefs)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/aboutConfig/index.php

    r500 r581  
    7676     return 
    7777     '<tr>'. 
    78      '<td><label for="s_'.$id.'">'.sprintf($slabel,html::escapeHTML($id)).'</label></td>'. 
     78     '<td scope="raw"><label for="s_'.$id.'">'.sprintf($slabel,html::escapeHTML($id)).'</label></td>'. 
    7979     '<td>'.$field.'</td>'. 
    8080     '<td>'.$s['type'].'</td>'. 
     
    8888  <?php echo dcPage::jsPageTabs($part); ?> 
    8989  <style type="text/css"> 
    90   .ns-name { background: #dfdfdf; color: #333; padding-top: 0.3em; padding-bottom: 0.3em; font-size: 1.1em; } 
     90  table.settings { border: 1px solid #999; margin-bottom: 2em; } 
     91  table.settings th { background: #f5f5f5; color: #444; padding-top: 0.3em; padding-bottom: 0.3em; } 
    9192  </style> 
    9293</head> 
     
    106107<div id="local" class="multi-part" title="<?php echo __('blog settings'); ?>"> 
    107108<form action="plugin.php" method="post"> 
    108 <table> 
    109 <tr> 
    110   <th class="nowrap">Setting ID</th> 
    111   <th><?php echo __('Value'); ?></th> 
    112   <th><?php echo __('Type'); ?></th> 
    113   <th class="maximal"><?php echo __('Description'); ?></th> 
    114 </tr> 
    115 <?php 
     109 
     110<?php  
     111 
     112$table_header = '<table class="settings"><caption>%s</caption>'. 
     113'<thead>'. 
     114'<tr>'."\n". 
     115'  <th class="nowrap">Setting ID</th>'."\n". 
     116'  <th>'.__('Value').'</th>'."\n". 
     117'  <th>'.__('Type').'</th>'."\n". 
     118'  <th class="maximalx">'.__('Description').'</th>'."\n". 
     119'</tr>'."\n". 
     120'</thead>'."\n". 
     121'<tbody>'; 
     122$table_footer = '</tbody></table>'; 
     123 
    116124$settings = array(); 
    117125 
     
    127135{ 
    128136     ksort($s); 
    129      echo '<tr><td colspan="4" class="ns-name">namespace: <strong>'.$ns.'</strong></td></tr>'; 
    130       
     137     echo sprintf($table_header,$ns); 
    131138     foreach ($s as $k => $v) 
    132139     { 
    133140          echo settingLine($k,$v,$ns,'s',!$v['global']); 
    134141     } 
     142     echo $table_footer; 
    135143} 
    136144?> 
    137 </table> 
     145 
    138146<p><input type="submit" value="<?php echo __('Save'); ?>" /> 
    139147<input type="hidden" name="p" value="aboutConfig" /> 
     
    144152<div id="global" class="multi-part" title="<?php echo __('global settings'); ?>"> 
    145153<form action="plugin.php" method="post"> 
    146 <table> 
    147 <tr> 
    148   <th class="nowrap">Setting ID</th> 
    149   <th><?php echo __('Value'); ?></th> 
    150   <th><?php echo __('Type'); ?></th> 
    151   <th class="maximal"><?php echo __('Description'); ?></th> 
    152 </tr> 
    153154<?php 
    154155$settings = array(); 
     
    165166{ 
    166167     ksort($s); 
    167      echo '<tr><td colspan="4" class="ns-name">namespace: <strong>'.$ns.'</strong></td></tr>'; 
    168       
     168     echo sprintf($table_header,$ns); 
    169169     foreach ($s as $k => $v) 
    170170     { 
    171171          echo settingLine($k,$v,$ns,'gs',false); 
    172172     } 
     173     echo $table_footer; 
    173174} 
    174175?> 
    175 </table> 
     176 
    176177<p><input type="submit" value="<?php echo __('Save'); ?>" /> 
    177178<input type="hidden" name="p" value="aboutConfig" /> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map