Dotclear


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

Fixed tables in admin pages - step 2, closes #1068,#1069

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/userPref/index.php

    r220 r457  
    7272     return 
    7373     '<tr>'. 
    74      '<td><label for="s_'.$id.'">'.sprintf($slabel,html::escapeHTML($id)).'</label></td>'. 
     74     '<th scope="row"><label for="s_'.$id.'">'.sprintf($slabel,html::escapeHTML($id)).'</label></th>'. 
    7575     '<td>'.$field.'</td>'. 
    7676     '<td>'.$s['type'].'</td>'. 
     
    8484  <?php echo dcPage::jsPageTabs($part); ?> 
    8585  <style type="text/css"> 
    86   .ns-name { background: #ccc; color: #000; padding-top: 0.3em; padding-bottom: 0.3em; font-size: 1.1em; } 
     86  .ws-name { background: #ccc; color: #000; padding-top: 0.3em; padding-bottom: 0.3em; font-size: 1.1em; } 
    8787  </style> 
    8888</head> 
     
    103103<form action="plugin.php" method="post"> 
    104104<table> 
     105<caption><?php echo __('Local user preferences list'); ?></caption> 
     106<thead> 
    105107<tr> 
    106   <th class="nowrap">Pref ID</th> 
    107   <th><?php echo __('Value'); ?></th> 
    108   <th><?php echo __('Type'); ?></th> 
    109   <th class="maximal"><?php echo __('Description'); ?></th> 
     108  <th scope="col" class="nowrap">Pref ID</th> 
     109  <th scope="col"><?php echo __('Value'); ?></th> 
     110  <th scope="col"><?php echo __('Type'); ?></th> 
     111  <th scope="col" class="maximal"><?php echo __('Description'); ?></th> 
    110112</tr> 
     113</thead> 
     114<tbody> 
    111115<?php 
    112116$prefs = array(); 
     
    123127{ 
    124128     ksort($s); 
    125      echo '<tr><td colspan="4" class="ws-name">workspace: <strong>'.$ws.'</strong></td></tr>'; 
     129     echo '<tr><th scope="row" colspan="4" class="ws-name">workspace: <strong>'.$ws.'</strong></th></tr>'; 
    126130      
    127131     foreach ($s as $k => $v) 
     
    131135} 
    132136?> 
     137</tbody> 
    133138</table> 
    134139<p><input type="submit" value="<?php echo __('Save'); ?>" /> 
     
    141146<form action="plugin.php" method="post"> 
    142147<table> 
     148<caption><?php echo __('Global user preferences list'); ?></caption> 
     149<thead> 
    143150<tr> 
    144   <th class="nowrap">Pref ID</th> 
    145   <th><?php echo __('Value'); ?></th> 
    146   <th><?php echo __('Type'); ?></th> 
    147   <th class="maximal"><?php echo __('Description'); ?></th> 
     151  <th scope="col" class="nowrap">Pref ID</th> 
     152  <th scope="col"><?php echo __('Value'); ?></th> 
     153  <th scope="col"><?php echo __('Type'); ?></th> 
     154  <th scope="col" class="maximal"><?php echo __('Description'); ?></th> 
    148155</tr> 
     156</thead> 
     157<tbody> 
    149158<?php 
    150159$prefs = array(); 
     
    161170{ 
    162171     ksort($s); 
    163      echo '<tr><td colspan="4" class="ws-name">workspace: <strong>'.$ws.'</strong></td></tr>'; 
     172     echo '<tr><th scope="row" colspan="4" class="ws-name">workspace: <strong>'.$ws.'</strong></th></tr>'; 
    164173      
    165174     foreach ($s as $k => $v) 
     
    169178} 
    170179?> 
     180</tbody> 
    171181</table> 
    172182<p><input type="submit" value="<?php echo __('Save'); ?>" /> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map