phpMyEdit - Viewing Bug Advanced Details [ Go Back ]
436 core / general minor always 2007-02-17 10:15 2007-04-23 16:08
mb  
 
normal  
new 5.6 (stable)  
open  
none  
none  
Designate Row and Column Headers Using the <th> Tag
for echo $this->fdd[$k]['name']

now we got better accessible tables and options for the stylesheet ;)

phpMyEdit.class.php
replace td -> th for as following

(C - change) Line 1067-1068:

echo '<th class="',$this->getCSSclass('key', null, true, $css_postfix),'">';
echo $this->fdd[$k]['name'],'</th>',"\n";


(V - view) Line 1089-1090:

echo '<th class="',$this->getCSSclass('key', null, true, $css_postfix),'">';
echo $this->fdd[$k]['name'],'</th>',"\n";

phpMyEditSetup.php
add additional style class for th.pme-key-1 and th.pme-key-0
here:
...
<style type="text/css">
hr.pme-hr { border: 0px solid; padding: 0px; margin: 0px; border-top-width: 1px; height: 1px; }
table.pme-main { border: #004d9c 1px solid; border-collapse: collapse; border-spacing: 0px; width: 100%; }
table.pme-navigation { border: #004d9c 0px solid; border-collapse: collapse; border-spacing: 0px; width: 100%; }
th.pme-header { border: #004d9c 1px solid; padding: 4px; background: #add8e6; }
td.pme-key-0, td.pme-value-0, td.pme-help-0, td.pme-navigation-0, td.pme-cell-0,
td.pme-key-1, td.pme-value-1, td.pme-help-0, td.pme-navigation-1, td.pme-cell-1,
td.pme-sortinfo, td.pme-filter { border: #004d9c 1px solid; padding: 3px; }
td.pme-buttons { text-align: left; }
td.pme-message { text-align: center; }
td.pme-stats { text-align: right; }
</style>

Bug Notes
nepto   
2007-02-17 10:20   
Hello PME developers, do you think this is a good idea?

Can break existing application appearances.
mb   
2007-04-23 16:08   
Web Content Accessibility Guideline 5.1
http://www.w3.org/TR/WAI-WEBCONTENT/#gl-table-markup

For data tables, identify row and column headers. [Priority 1] For example, in HTML, use TD to identify data cells and TH to identify headers.