<table cellspacing="0" cellpadding="5" border="0" align="center">
<tr>
-<th colspan="2">
+<th colspan="2" scope="col">
<?php print_string("server_settings", "enrol_database") ?>
-</td>
+</th>
</tr>
<tr valign="top">
<td align="right">enrol_dbtype:</td>
<?php print_string("dbtable","enrol_database") ?>
</td>
</tr>
-<th colspan="2">
+<th colspan="2" scope="col">
<?php print_string("field_mapping", "enrol_database") ?>
-</td>
+</th>
<tr valign="top">
<td align="right">enrol_localcoursefield:</td>
<td>
</tr>
<tr>
- <th colspan="2">
+ <th colspan="2" scope="col">
<?php print_string('roles', 'role') ?>
</th>
</tr>
</tr>
<tr>
- <th colspan="2">
+ <th colspan="2" scope="col">
<?php print_string("enrol_database_autocreation_settings", "enrol_database") ?>
- </td>
+ </th>
</tr>
<tr valign="top">
<td align="right">enrol_db_autocreate:</td>
</td>
</tr>
-<th colspan="2">
+<td colspan="2">
<?php print_string("general_options", "enrol_database") ?>
</td>
<table cellspacing="0" cellpadding="5" border="0" align="center">
<tr>
-<th colspan="3"><?php print_string("basicsettings", "enrol_imsenterprise") ?></th>
+<th colspan="3" scope="col"><?php print_string("basicsettings", "enrol_imsenterprise") ?></th>
</tr>
</tr>
<tr>
-<th colspan="3"><?php print_string("usersettings", "enrol_imsenterprise") ?></th>
+<th colspan="3" scope="col"><?php print_string("usersettings", "enrol_imsenterprise") ?></th>
</tr>
<tr valign="top">
</tr>
-->
<tr>
-<th colspan="3"><?php print_string('roles') ?></th>
+<td colspan="3" ><?php print_string('roles') ?></td>
</tr>
<tr>
<tr>
-<th colspan="3"><?php print_string("coursesettings", "enrol_imsenterprise") ?></th>
+<th colspan="3" scope="col"><?php print_string("coursesettings", "enrol_imsenterprise") ?></th>
</tr>
<tr valign="top">
<tr>
-<th colspan="3"><?php print_string("miscsettings", "enrol_imsenterprise") ?></th>
+<th colspan="3" scope="col"><?php print_string("miscsettings", "enrol_imsenterprise") ?></th>
</tr>
<tr valign="top">
$string['auth_fieldlock'] = 'Lock value';
$string['auth_fieldlock_expl'] = '<p><b>Lock value:</b> If enabled, will prevent Moodle users and admins from editing the field directly. Use this option if you are maintaining this data in the external auth system. </p>';
$string['auth_fieldlocks'] = 'Lock user fields';
-$string['auth_fieldlocks_help'] = '<p>You can lock user data fields. This is useful for sites where the user data is maintained by the administrators manually by editing user records or uploading using the \'Upload users\' facility. If you are locking fields that are required by Moodle, make sure that you provide that data when creating user accounts &emdash; or the accounts will be unusable.</p><p>Consider setting the lock mode to \'Unlocked if empty\' to avoid this problem.</p>';
+$string['auth_fieldlocks_help'] = '<p>You can lock user data fields. This is useful for sites where the user data is maintained by the administrators manually by editing user records or uploading using the \'Upload users\' facility. If you are locking fields that are required by Moodle, make sure that you provide that data when creating user accounts or the accounts will be unusable.</p><p>Consider setting the lock mode to \'Unlocked if empty\' to avoid this problem.</p>';
$string['auth_imapdescription'] = 'This method uses an IMAP server to check whether a given username and password is valid.';
$string['auth_imaphost'] = 'The IMAP server address. Use the IP number, not DNS name.';
$string['auth_imapport'] = 'IMAP server port number. Usually this is 143 or 993.';
<ul>
<p>You can use a limited subset of HTML tags to add emphasis to your texts.</p>
<table border="0" cellpadding="5" cellspacing="5">
-<tr><th>HTML tags</th><th>Produces</th></tr>
+<tr><th scope="col">HTML tags</th><th scope="col">Produces</th></tr>
<tr><td><b> bold </b> </td><td> <b>bold text</b> </td></tr>
<tr><td><i> italic </i> </td><td> <i>italic text</i> </td></tr>
<tr><td><u> underline </u> </td><td> <u>underlined text</u> </td></tr>
} else {
echo "<table cellpadding=\"4\" cellspacing=\"2\" border=\"0\">\n";
- echo "<tr>\n<th align=\"left\">$strname</th><th align=\"right\">$strsize</th><th align=\"right\">$strmodified</th></tr>";
+ echo "<tr>\n<th align=\"left\" scope=\"col\">$strname</th><th align=\"right\" scope=\"col\">$strsize</th><th align=\"right\" scope=\"col\">$strmodified</th></tr>";
foreach ($list as $item) {
echo "<tr>";
print_cell("left", $item['filename']);
echo '<table cellspacing="0" class="forumheaderlist">';
echo '<thead>';
echo '<tr>';
- echo '<th class="header topic">'.get_string('discussion', 'forum').'</th>';
- echo '<th class="header author" colspan="2">'.get_string('startedby', 'forum').'</th>';
+ echo '<th class="header topic" scope="col">'.get_string('discussion', 'forum').'</th>';
+ echo '<th class="header author" colspan="2" scope="col">'.get_string('startedby', 'forum').'</th>';
if ($groupmode > 0) {
- echo '<th class="header group">'.get_string('group').'</th>';
+ echo '<th class="header group" scope="col">'.get_string('group').'</th>';
}
if (has_capability('mod/forum:viewdiscussion', $context)) {
- echo '<th class="header replies">'.get_string('replies', 'forum').'</th>';
+ echo '<th class="header replies" scope="col">'.get_string('replies', 'forum').'</th>';
/// If the forum can be tracked, display the unread column.
if ($cantrack) {
- echo '<th class="header replies">'.get_string('unread', 'forum');
+ echo '<th class="header replies" scope="col">'.get_string('unread', 'forum');
if ($forumtracked) {
echo ' <a title="'.get_string('markallread', 'forum').
'" href="'.$CFG->wwwroot.'/mod/forum/markposts.php?f='.
echo '</th>';
}
}
- echo '<th class="header lastpost">'.get_string('lastpost', 'forum').'</th>';
+ echo '<th class="header lastpost" scope="col">'.get_string('lastpost', 'forum').'</th>';
echo '</tr>';
echo '</thead>';
echo '<tbody>';
if (Login[0]) { // user name
var v = getCookie(self, 'UserName');
html += '<tr>'
- + '<th align=right nowrap>' + MSG[0] + ' :</th>'
+ + '<th align="right" nowrap scope="row">' + MSG[0] + ' :</th>'
+ '<td>'
;
if (typeof(Login[0])=='boolean') { // text box
}
if (Login[1]) { // user ID
var v = getCookie(self, 'UserID');
- html += '<tr><th align=right nowrap>' + MSG[1] + ' :</th><td><input type=text name=UserID value="' + v + '"></td></tr>';
+ html += '<tr><th align="right" nowrap scope="row">' + MSG[1] + ' :</th><td><input type=text name=UserID value="' + v + '"></td></tr>';
}
if (Login[2]) { // user email
var v = getCookie(self, 'UserEmail');
- html += '<tr><th align=right nowrap>' + MSG[2] +' :</th><td><input type=text name=UserEmail value="' + v + '"></td></tr>';
+ html += '<tr><th align="right" nowrap scope="row">' + MSG[2] +' :</th><td><input type=text name=UserEmail value="' + v + '"></td></tr>';
}
if (Login[3]) { // quiz password
var v = getCookie(self, 'Password');
- html += '<tr><th align=right nowrap>' + MSG[3] + ' :</th><td><input type=password name=Password value="' + v + '"></td></tr>';
+ html += '<tr><th align="right" nowrap scope="row">' + MSG[3] + ' :</th><td><input type=password name=Password value="' + v + '"></td></tr>';
}
if (Login[4]) { // cookie lifespan
var v = getCookie(self, 'CookieExpiry');
html += '<tr>'
- + '<th align=right nowrap>' + MSG[4] + ' :</th>'
+ + '<th align="right" nowrap scope="row">' + MSG[4] + ' :</th>'
+ '<td>'
+ '<select name="CookieExpiry" size=1>'
+ makeOption('session', v, MSG[7])
;
}
html += '<tr>'
- + '<th> </th>'
+ + '<th scope="row"> </th>'
+ '<td nowrap>'
+ '<input type=submit value="' + MSG[5] + '"> '
+ '<input type=button value="' + MSG[6] + '" onClick="opener.goBack();self.close();">'
html += '<html><body>'
+ '<form action="' + FEEDBACK[0] + '" method="POST">'
+ '<table border="0">'
- + '<tr><th valign="top" align="right">' + FEEDBACK[7] + ':</th><td>' + document.title + '</td></tr>'
- + '<tr><th valign="top" align="right">' + FEEDBACK[8] + ': </th><td>'
+ + '<tr><th valign="top" align="right" scope="row">' + FEEDBACK[7] + ':</th><td>' + document.title + '</td></tr>'
+ + '<tr><th valign="top" align="right" scope="row">' + FEEDBACK[8] + ': </th><td>'
;
if (typeof(FEEDBACK[1])=='string') {
html += FEEDBACK[1] + hpHiddenField('recipient', FEEDBACK[1], ',', true);
}
}
html += '</td></tr>'
- + '<tr><th valign="top" align="right">' + FEEDBACK[9] + ':</th>'
+ + '<tr><th valign="top" align="right" scope="row">' + FEEDBACK[9] + ':</th>'
+ '<td><TEXTAREA name="message" rows="10" cols="40"></TEXTAREA></td></tr>'
+ '<tr><td> </td><td><input type="submit" value="' + FEEDBACK[6] + '">'
+ hpHiddenField('realname', FEEDBACK[2], ',', true)
html += '<html><body>'
+ '<form action="' + FEEDBACK[0] + '" method="POST" onsubmit="this.action+=this.recipient.options[this.recipient.selectedIndex].value">'
+ '<table border="0">'
- + '<tr><th valign="top" align="right">' + FEEDBACK[7] + ':</th><td>' + document.title + '</td></tr>'
- + '<tr><th valign="top" align="right">' + FEEDBACK[8] + ': </th><td>'
+ + '<tr><th valign="top" align="right" scope="row">' + FEEDBACK[7] + ':</th><td>' + document.title + '</td></tr>'
+ + '<tr><th valign="top" align="right" scope="row">' + FEEDBACK[8] + ': </th><td>'
;
html += '<select name="recipient">';
for (var i=0; i<i_max; i++) {
print '<tr><td>';
helpbutton('reportcontent', get_string('reportcontent', 'hotpot'), 'hotpot');
- print '</td><th align="right">'.get_string('reportcontent', 'hotpot').':</th><td colspan="7">';
+ print '</td><th align="right" scope="col">'.get_string('reportcontent', 'hotpot').':</th><td colspan="7">';
foreach ($menus as $name => $options) {
$value = $formdata[$name];
print choose_from_menu($options, $name, $value, "", "", 0, true);
print '</td>';
foreach ($menus as $name => $options) {
$value = $formdata[$name];
- print '<th align="right">'.get_string($name, 'hotpot').':</th><td>'.choose_from_menu($options, $name, $value, "", "", 0, true).'</td>';
+ print '<th align="right" scope="col">'.get_string($name, 'hotpot').':</th><td>'.choose_from_menu($options, $name, $value, "", "", 0, true).'</td>';
}
print '</tr>';
$d = $table->tableclass.'cell';
$h = $table->tableclass.'header';
- $table->th_side = '<th valign="top" align="right" class="'.$h.'">';
+ $table->th_side = '<th valign="top" align="right" class="'.$h.'" scope="col">';
$table->td = array();
$table->th_top = array();
$size = empty($table->size[$i]) ? '' : ' width="'.$table->size[$i].'"';
$wrap = empty($table->wrap[$i]) ? '' : ' nowrap="nowrap"';
- $table->th_top[$i] = '<th align="center"'.$size.' class="'.$h.'" nowrap="nowrap">';
+ $table->th_top[$i] = '<th align="center"'.$size.' class="'.$h.'" nowrap="nowrap" scope="col">';
$table->td[$i] = '<td valign="top"'.$align.$class.$wrap.'>';
default:
$name = get_string($field, 'quiz');
}
- print '<tr><th align="right" width="100" class="generaltableheader">'.$name.':</th><td class="generaltablecell">'.$value.'</td></tr>';
+ print '<tr><th align="right" width="100" class="generaltableheader" scope="row">'.$name.':</th><td class="generaltablecell">'.$value.'</td></tr>';
}
}
// finish table
$printedquestion = true;
}
// print response
- print '<tr><th align="right" width="100" class="generaltableheader">'.$f[$field]['name'].':</th><td colspan="'.($colspan-1).'" class="generaltablecell">'.$text.'</td></tr>'."\n";
+ print '<tr><th align="right" width="100" class="generaltableheader" scope="row">'.$f[$field]['name'].':</th><td colspan="'.($colspan-1).'" class="generaltablecell">'.$text.'</td></tr>'."\n";
}
}
}
}
// print numeric response
$value = isset($question[$field]) ? $question[$field] : '-';
- print '<th align="right" width="100" class="generaltableheader">'.$f[$field]['name'].':</th><td class="generaltablecell">'.$value.'</td>';
+ print '<th align="right" width="100" class="generaltableheader" scope="row">'.$f[$field]['name'].':</th><td class="generaltablecell">'.$value.'</td>';
}
}
print "</tr>\n";
print_simple_box_start('center', '100%', '#ffffff', 0);
echo "<table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\">\n";
- echo "<tr><th colspan=\"3\" nowrap=\"nowrap\" class=\"header\">$strorder</th><th class=\"header\">#</th><th align=\"left\" width=\"100%\" nowrap=\"nowrap\" class=\"header\">$strquestionname</th><th nowrap=\"nowrap\" class=\"header\">$strtype</th><th nowrap=\"nowrap\" class=\"header\">$strgrade</th><th align=\"center\" width=\"60\" nowrap=\"nowrap\" class=\"header\">$straction</th></tr>\n";
+ echo "<tr><th colspan=\"3\" nowrap=\"nowrap\" class=\"header\" scope=\"col\">$strorder</th><th class=\"header\" scope=\"col\">#</th><th align=\"left\" width=\"100%\" nowrap=\"nowrap\" class=\"header\" scope=\"col\">$strquestionname</th><th nowrap=\"nowrap\" class=\"header\" scope=\"col\">$strtype</th><th nowrap=\"nowrap\" class=\"header\" scope=\"col\">$strgrade</th><th align=\"center\" width=\"60\" nowrap=\"nowrap\" class=\"header\" scope=\"col\">$straction</th></tr>\n";
foreach ($order as $i => $qnum) {
if ($qnum and empty($questions[$qnum])) {
<td class="generalboxcontent" bgcolor="#ffffff" width="100%">
<table class="generaltable" border="0" width="150" cellspacing="0" cellpadding="0">
<tr>
- <th class="generaltableheader" width="100%" scope=\"col\"><?php print_string("timeleft","quiz");?></th>
+ <th class="generaltableheader" width="100%" scope="col"><?php print_string("timeleft","quiz");?></th>
</tr>
<tr>
<td id="QuizTimer" class="generaltablecell" align="center" width="100%">