<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
<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
<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();
</tr>
<tr>
- <th><?php print_string('pref_startwday', 'calendar')?>:</th>
+ <th scope="row"><?php print_string('pref_startwday', 'calendar')?>:</th>
<td>
<?php
$options = array();
</tr>
<tr>
- <th><?php print_string('pref_maxevents', 'calendar')?>:</th>
+ <th scope="row"><?php print_string('pref_maxevents', 'calendar')?>:</th>
<td>
<?php
$options = NULL;
</tr>
<tr>
- <th><?php print_string('pref_lookahead', 'calendar')?>:</th>
+ <th scope="row"><?php print_string('pref_lookahead', 'calendar')?>:</th>
<td>
<?php
$options = NULL;
</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>
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
$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> </th>';
+ echo '<th scope="col"> </th>';
}
echo '</tr>';
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);
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'])) {
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);
} 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');
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 != "/") {
<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> </th>
</tr>
<tr valign="top">
<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>
}
// 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.'&action=stats&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.'&action=stats&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.'&action=vcats&cview='.$category;
if ($view_by_student != -1) {
$header .= '&user='.$view_by_student;
$percent_sort_link = '<a href="?id='.$course->id.'&action=grades&sort=percent&group='.$group.'"><img src="'.$CFG->wwwroot.'/pix/t/down.gif" alt="'.get_string('percentdescending','grades').'" /></a>';
$percent_sort_link .= '<a href="?id='.$course->id.'&action=grades&sort=percent_asc&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.'&action=stats&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.'&action=stats&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').' '.$stats_link.'</th>';
if (has_capability('moodle/course:viewcoursegrades', $context) && $view_by_student == -1) {
if ($preferences->show_points) {