]> git.mjollnir.org Git - moodle.git/commitdiff
various accessbility fixes
authortoyomoyo <toyomoyo>
Wed, 13 Dec 2006 03:03:43 +0000 (03:03 +0000)
committertoyomoyo <toyomoyo>
Wed, 13 Dec 2006 03:03:43 +0000 (03:03 +0000)
12 files changed:
admin/roles/manage.html
admin/roles/override.html
calendar/preferences.html
calendar/view.php
course/category.php
course/index.php
course/lib.php
course/search.php
files/index.php
filter/tex/filterconfig.html
grade/exceptions.html
grade/lib.php

index a5878a5d602582e137694af97a8557330e04b606..7748d8f3cea8842627957a845f65bbed1ea5d0e0 100755 (executable)
 <table class="rolecap" align="center">
 
 <tr>
-<th class="name" align="left"><?php print_string('capability','role') ?></th>
-<th class="inherit"><?php p($strinherit); ?></th>
-<th class="allow"><?php p($strallow); ?></th>
-<th class="prevent"><?php p($strprevent); ?></th>
-<th class="prohibit"><?php p($strprohibit); ?></th>
-<th class="risk" colspan="5"><?php print_string('risks','role') ?></th>
+<th class="name" align="left" scope="col"><?php print_string('capability','role') ?></th>
+<th class="inherit" scope="col"><?php p($strinherit); ?></th>
+<th class="allow" scope="col"><?php p($strallow); ?></th>
+<th class="prevent" scope="col"><?php p($strprevent); ?></th>
+<th class="prohibit" scope="col"><?php p($strprohibit); ?></th>
+<th class="risk" colspan="5" scope="col"><?php print_string('risks','role') ?></th>
 </tr>
 
 <?php
index 39e480e16fa998c5e56475e082a3c3c09864e72e..c472b99de10c64d364d9375ffc6ebf9e45c67f26 100755 (executable)
 
     <table class="rolecap">
         <tr>
-            <th class="name" align="left"><?php print_string('capability','role') ?></th>
-            <th class="inherit"><?php p($strinherit); ?></th>
-            <th class="allow"><?php p($strallow); ?></th>
-            <th class="prevent"><?php p($strprevent); ?></th>
-            <th class="prohibit"><?php p($strprohibit); ?></th>
-            <th class="risk" colspan="5"><?php print_string('risks','role') ?></th>
+            <th class="name" align="left" scope="col"><?php print_string('capability','role') ?></th>
+            <th class="inherit" scope="col"><?php p($strinherit); ?></th>
+            <th class="allow" scope="col"><?php p($strallow); ?></th>
+            <th class="prevent" scope="col"><?php p($strprevent); ?></th>
+            <th class="prohibit" scope="col"><?php p($strprohibit); ?></th>
+            <th class="risk" colspan="5" scope="col"><?php print_string('risks','role') ?></th>
         </tr>
         <?php
 
index 8bb6ec425f68e7e217e4534fc0ff6452f9923c32..e25a17462c260ea8a8f10b5d24a27e0c6f32c7f4 100644 (file)
@@ -2,7 +2,7 @@
 
 <table class="formtable">
 <tr>
-    <th style="width: 30%;"><?php print_string('pref_timeformat', 'calendar')?>:</th>
+    <th style="width: 30%;" scope="row"><?php print_string('pref_timeformat', 'calendar')?>:</th>
     <td>
     <?php
         $options = array();
@@ -16,7 +16,7 @@
 </tr>
 
 <tr>
-    <th><?php print_string('pref_startwday', 'calendar')?>:</th>
+    <th scope="row"><?php print_string('pref_startwday', 'calendar')?>:</th>
     <td>
     <?php
         $options = array();
@@ -34,7 +34,7 @@
 </tr>
 
 <tr>
-    <th><?php print_string('pref_maxevents', 'calendar')?>:</th>
+    <th scope="row"><?php print_string('pref_maxevents', 'calendar')?>:</th>
     <td>
     <?php
         $options = NULL;
@@ -48,7 +48,7 @@
 </tr>
 
 <tr>
-    <th><?php print_string('pref_lookahead', 'calendar')?>:</th>
+    <th scope="row"><?php print_string('pref_lookahead', 'calendar')?>:</th>
     <td>
     <?php
         $options = NULL;
@@ -62,7 +62,7 @@
 </tr>
 
 <tr>
-    <th><?php print_string('pref_persistflt', 'calendar')?>:</th>
+    <th scope="row"><?php print_string('pref_persistflt', 'calendar')?>:</th>
     <td>
     <?php choose_from_menu (array(0 => get_string('no'), 1 => get_string('yes')), 'persistflt', $prefs->persistflt, '', '', ''); ?>
     <p><?php print_string('explain_persistflt', 'calendar'); ?></p>
index 07f6285617608d22de7b8486e1ecd73fb2eb37bc..677c92c9429e1929ed2453591f732ddc9b5ab0e8 100644 (file)
@@ -359,7 +359,7 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users) {
     for($i = $display->minwday; $i <= $display->maxwday; ++$i) {
         // This uses the % operator to get the correct weekday no matter what shift we have
         // applied to the $display->minwday : $display->maxwday range from the default 0 : 6
-        echo '<th>'.get_string($CALENDARDAYS[$i % 7], 'calendar').'</th>';
+        echo '<th scope="col">'.get_string($CALENDARDAYS[$i % 7], 'calendar').'</th>';
     }
 
     echo '</tr><tr>'; // End of day names; prepare for day numbers
index a87c13dac17358281610a29b3f4cc22b3481b7df..c65431bb143fac707c71bbe1f6a78552e0b463ea 100644 (file)
                 $subcategorieswereshown = true;
                 if ($firstentry) {
                     echo '<table align="center" border="0" cellspacing="2" cellpadding="4" class="generalbox">';
-                    echo '<tr><th>'.get_string('subcategories').'</th></tr>';
+                    echo '<tr><th scope="col">'.get_string('subcategories').'</th></tr>';
                     echo '<tr><td nowrap="nowrap">';
                     $firstentry = false;
                 }
         echo '<form name="movecourses" action="category.php" method="post">';
         echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
         echo '<table align="center" border="0" cellspacing="2" cellpadding="4" class="generalbox"><tr>';
-        echo '<th>'.$strcourses.'</th>';
+        echo '<th scope="col">'.$strcourses.'</th>';
         if ($creatorediting) {
-            echo '<th>'.$stredit.'</th>';
+            echo '<th scope="col">'.$stredit.'</th>';
             if ($adminediting) {
-                echo '<th>'.$strselect.'</th>';
+                echo '<th scope="col">'.$strselect.'</th>';
             }
         } else {
-            echo '<th>&nbsp;</th>';
+            echo '<th scope="col">&nbsp;</th>';
         }
         echo '</tr>';
 
index 93291cf398db084d3bfaa55ef317b6cde3bfa661..bd6dee0c4164242c2e5b1ace734b7a2fc317f14e 100644 (file)
     make_categories_list($displaylist, $parentlist, "");
 
     echo "<table align=\"center\" border=\"0\" cellspacing=\"2\" cellpadding=\"5\" class=\"generalbox\"><tr>";
-    echo "<th>$strcategories</th>";
-    echo "<th>$strcourses</th>";
-    echo "<th>$stredit</th>";
-    echo "<th>$strmovecategoryto</th>";
+    echo "<th scope=\"col\">$strcategories</th>";
+    echo "<th scope=\"col\">$strcourses</th>";
+    echo "<th scope=\"col\">$stredit</th>";
+    echo "<th scope=\"col\">$strmovecategoryto</th>";
     echo "</tr>";
 
     print_category_edit(NULL, $displaylist, $parentlist);
index 305462136b94ab3a0b0c43196d9b2adae9a35481..0bad37456633c7d56a98eb102714e77507bfd572 100644 (file)
@@ -378,13 +378,13 @@ function print_log($course, $user=0, $date=0, $order="l.time ASC", $page=0, $per
     echo "<table class=\"logtable\" border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"0\">\n";
     echo "<tr>";
     if ($course->id == SITEID) {
-        echo "<th class=\"c0 header\">".get_string('course')."</th>\n";
+        echo "<th class=\"c0 header\" scope=\"col\">".get_string('course')."</th>\n";
     }
-    echo "<th class=\"c1 header\">".get_string('time')."</th>\n";
-    echo "<th class=\"c2 header\">".get_string('ip_address')."</th>\n";
-    echo "<th class=\"c3 header\">".get_string('fullname')."</th>\n";
-    echo "<th class=\"c4 header\">".get_string('action')."</th>\n";
-    echo "<th class=\"c5 header\">".get_string('info')."</th>\n";
+    echo "<th class=\"c1 header\" scope=\"col\">".get_string('time')."</th>\n";
+    echo "<th class=\"c2 header\" scope=\"col\">".get_string('ip_address')."</th>\n";
+    echo "<th class=\"c3 header\" scope=\"col\">".get_string('fullname')."</th>\n";
+    echo "<th class=\"c4 header\" scope=\"col\">".get_string('action')."</th>\n";
+    echo "<th class=\"c5 header\" scope=\"col\">".get_string('info')."</th>\n";
     echo "</tr>\n";
 
     if (empty($logs['logs'])) {
index 15fd9636d5bb88a121fa66175bce290d9d7427b3..a3fc8cf7a50ebe61c647cb62f1e0d2c9a9246e48 100644 (file)
             echo "<input type=\"hidden\" name=\"page\" value=\"$page\">";
             echo "<input type=\"hidden\" name=\"perpage\" value=\"$perpage\">";
             echo "<table align=\"center\" border=0 cellspacing=2 cellpadding=4 class=\"generalbox\"><tr>";
-            echo "<th>$strcourses</th>";
-            echo "<th>$strcategory</th>";
-            echo "<th>$strselect</th>";
-            echo "<th>$stredit</th>";
+            echo "<th scope=\"col\">$strcourses</th>";
+            echo "<th scope=\"col\">$strcategory</th>";
+            echo "<th scope=\"col\">$strselect</th>";
+            echo "<th scope=\"col\">$stredit</th>";
             foreach ($courses as $course) {                        
                 
                 $coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
index c6f6cf028012ba627b21fc49b9c4d6b4721fe504..9b96c390be32c8c9e9291e379e468e0419c0a80c 100644 (file)
 
                 } else {
                     echo "<table cellpadding=\"4\" cellspacing=\"2\" border=\"0\" width=\"640\" class=\"files\">";
-                    echo "<tr class=\"file\"><th align=\"left\" class=\"header name\">$strname</th><th align=\"right\" class=\"header size\">$strsize</th><th align=\"right\" class=\"header date\">$strmodified</th></tr>";
+                    echo "<tr class=\"file\"><th align=\"left\" class=\"header name\" scope=\"col\">$strname</th><th align=\"right\" class=\"header size\" scope=\"col\">$strsize</th><th align=\"right\" class=\"header date\" scope=\"col\">$strmodified</th></tr>";
                     foreach ($list as $item) {
                         echo "<tr>";
                         print_cell("left", s($item['filename']), 'name');
@@ -701,11 +701,11 @@ function displaydir ($wdir) {
     echo "<hr width=\"640\" align=\"center\" noshade=\"noshade\" size=\"1\" />";
     echo "<table border=\"0\" cellspacing=\"2\" cellpadding=\"2\" width=\"640\" class=\"files\">";
     echo "<tr>";
-    echo "<th width=\"5\"></th>";
-    echo "<th align=\"left\" class=\"header name\">$strname</th>";
-    echo "<th align=\"right\" class=\"header size\">$strsize</th>";
-    echo "<th align=\"right\" class=\"header date\">$strmodified</th>";
-    echo "<th align=\"right\" class=\"header commands\">$straction</th>";
+    echo "<th width=\"5\" scope=\"col\"></th>";
+    echo "<th align=\"left\" class=\"header name\" scope=\"col\">$strname</th>";
+    echo "<th align=\"right\" class=\"header size\" scope=\"col\">$strsize</th>";
+    echo "<th align=\"right\" class=\"header date\" scope=\"col\">$strmodified</th>";
+    echo "<th align=\"right\" class=\"header commands\" scope=\"col\">$straction</th>";
     echo "</tr>\n";
 
     if ($wdir != "/") {
index 1d4c0ee78e70ab8fca011562540f80a62ee250d8..b6eb57fe1980018cf688c4cc71c203e0398939d2 100644 (file)
@@ -26,7 +26,7 @@
 
 <table cellpadding="9" cellspacing="0">
     <tr valign="top">
-        <th align="right"><?php echo $txt->latexsettings; ?></th>
+        <th align="right" scope="col"><?php echo $txt->latexsettings; ?></th>
         <th>&nbsp;</th>
     </tr>
     <tr valign="top">
index ff6231fd211fcc57a1bd208ff7d36bbf6d59de20..8820dbec85ba03e2a4a33de2e1e1abd11e3cba8c 100644 (file)
@@ -90,12 +90,12 @@ function updateMembers(selectgrade_item) {
 
 <table border="0" cellspacing="2" cellpadding="5" align="center" class="generalbox">
     <tr>
-        <th colspan="3" class="header">
+        <td colspan="3" class="header">
         <?php 
             print get_string('gradeexceptions','grades');
             helpbutton('exceptions',get_string('gradeexceptionshelp','grades'), 'grade');
         ?>
-        </th>
+        </td>
     </tr>
     <tr>
       <td width="33%" align="center" class="generaltableheader"><?php p($strgradeitemnonmembers) ?></td>
index 6c194fd88448f57f0637ae9d3583ce39db3a3bed..f8bbc0bbf0ea5491913725a2d7b3a16bf4785b0a 100644 (file)
@@ -2072,7 +2072,7 @@ function grade_view_all_grades($view_by_student) { // if mode=='grade' then we a
                         }
                         // only print the category headers if something is displayed for them
                         if ($preferences->show_weighted || $preferences->show_percent || $preferences->show_points) {
-                            $stats_link = '<a href="javascript:void(0)"onclick="window.open(\'?id='.$course->id.'&amp;action=stats&amp;category='.$category.'\',\''.get_string('statslink','grades').'\',\'height=200,width=300,scrollbars=no\')"><font size=-2>'.get_string('statslink','grades').'</font></a>';
+                            $stats_link = '<a href="javascript:void(0)" onclick="window.open(\'?id='.$course->id.'&amp;action=stats&amp;category='.$category.'\',\''.get_string('statslink','grades').'\',\'height=200,width=300,scrollbars=no\')"><font size="-2">'.get_string('statslink','grades').'</font></a>';
                             $header .= '<th colspan="'.$grade_columns.'"><a href="?id='.$course->id.'&amp;action=vcats&amp;cview='.$category;
                             if ($view_by_student != -1) {
                                 $header .= '&amp;user='.$view_by_student;
@@ -2132,7 +2132,7 @@ function grade_view_all_grades($view_by_student) { // if mode=='grade' then we a
                     $percent_sort_link = '<a href="?id='.$course->id.'&amp;action=grades&amp;sort=percent&amp;group='.$group.'"><img src="'.$CFG->wwwroot.'/pix/t/down.gif" alt="'.get_string('percentdescending','grades').'" /></a>';
                     $percent_sort_link .= '<a href="?id='.$course->id.'&amp;action=grades&amp;sort=percent_asc&amp;group='.$group.'"><img src="'.$CFG->wwwroot.'/pix/t/up.gif" alt="'.get_string('percentascending','grades').'" /></a>';
                 }
-                $stats_link = '<a href="javascript:void(0)"onclick="window.open(\'?id='.$course->id.'&amp;action=stats&amp;category=all\',\''.get_string('statslink','grades').'\',\'height=200,width=300,scrollbars=no\')"><font size=-2>'.get_string('statslink','grades').'</font></a>';
+                $stats_link = '<a href="javascript:void(0)" onclick="window.open(\'?id='.$course->id.'&amp;action=stats&amp;category=all\',\''.get_string('statslink','grades').'\',\'height=200,width=300,scrollbars=no\')"><font size="-2">'.get_string('statslink','grades').'</font></a>';
                 $header .= '<th colspan="'.$total_columns.'">'.get_string('total','grades').'&nbsp;'.$stats_link.'</th>';
                 if (has_capability('moodle/course:viewcoursegrades', $context) && $view_by_student == -1) {
                     if ($preferences->show_points) {