From 3f5abcb20aec9b77303ea0ca2bd9bf56adf05bec Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Thu, 14 Dec 2006 07:48:40 +0000 Subject: [PATCH] accessibility fixes --- enrol/database/config.html | 16 ++++++++-------- enrol/imsenterprise/config.html | 10 +++++----- lang/en_utf8/auth.php | 2 +- lang/en_utf8/help/text.html | 2 +- lib/editor/htmlarea/coursefiles.php | 2 +- mod/forum/lib.php | 12 ++++++------ mod/hotpot/hotpot-full.js | 22 +++++++++++----------- mod/hotpot/report.php | 4 ++-- mod/hotpot/report/default.php | 4 ++-- mod/hotpot/review.php | 6 +++--- mod/quiz/editlib.php | 2 +- mod/quiz/jstimer.php | 2 +- 12 files changed, 42 insertions(+), 42 deletions(-) diff --git a/enrol/database/config.html b/enrol/database/config.html index 90a8971d03a..870359df3af 100644 --- a/enrol/database/config.html +++ b/enrol/database/config.html @@ -1,8 +1,8 @@ - @@ -78,9 +78,9 @@ - - @@ -164,9 +164,9 @@ - @@ -206,7 +206,7 @@ - diff --git a/enrol/imsenterprise/config.html b/enrol/imsenterprise/config.html index 58086a483eb..7f2a8e40ff0 100644 --- a/enrol/imsenterprise/config.html +++ b/enrol/imsenterprise/config.html @@ -1,7 +1,7 @@
+ - +
enrol_dbtype:
+ - +
enrol_localcoursefield: @@ -142,7 +142,7 @@
+
+ - +
enrol_db_autocreate:
+
- + @@ -31,7 +31,7 @@ - + @@ -99,7 +99,7 @@ Photo processing is deactivated until we hear from Moodle dev forum about modifi --> - + @@ -137,7 +137,7 @@ foreach($this->imsroles as $imsrolenum=>$imsrolename){ - + @@ -183,7 +183,7 @@ foreach($this->imsroles as $imsrolenum=>$imsrolename){ - + diff --git a/lang/en_utf8/auth.php b/lang/en_utf8/auth.php index d54a7fcbc3d..f01f94b08e2 100644 --- a/lang/en_utf8/auth.php +++ b/lang/en_utf8/auth.php @@ -47,7 +47,7 @@ $string['auth_fcuserid'] = 'Userid for FirstClass account with privilege \'Subad $string['auth_fieldlock'] = 'Lock value'; $string['auth_fieldlock_expl'] = '

Lock value: 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.

'; $string['auth_fieldlocks'] = 'Lock user fields'; -$string['auth_fieldlocks_help'] = '

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.

Consider setting the lock mode to \'Unlocked if empty\' to avoid this problem.

'; +$string['auth_fieldlocks_help'] = '

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.

Consider setting the lock mode to \'Unlocked if empty\' to avoid this problem.

'; $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.'; diff --git a/lang/en_utf8/help/text.html b/lang/en_utf8/help/text.html index 732b3e6359a..c57d8a48045 100644 --- a/lang/en_utf8/help/text.html +++ b/lang/en_utf8/help/text.html @@ -129,7 +129,7 @@ Writing text in Moodle works pretty much the way you would expect, but you also
- + diff --git a/lib/editor/htmlarea/coursefiles.php b/lib/editor/htmlarea/coursefiles.php index e85ecd3c9a6..099409322c8 100644 --- a/lib/editor/htmlarea/coursefiles.php +++ b/lib/editor/htmlarea/coursefiles.php @@ -533,7 +533,7 @@ } else { echo "
HTML tagsProduces
HTML tagsProduces
<b> bold </b> bold text
<i> italic </i> italic text
<u> underline </u> underlined text
\n"; - echo "\n"; + echo "\n"; foreach ($list as $item) { echo ""; print_cell("left", $item['filename']); diff --git a/mod/forum/lib.php b/mod/forum/lib.php index e37a9ccb45a..6ad9b0a64e7 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -3216,16 +3216,16 @@ function forum_print_latest_discussions($course, $forum, $maxdiscussions=5, $dis echo '
$strname$strsize$strmodified
$strname$strsize$strmodified
'; echo ''; echo ''; - echo ''; - echo ''; + echo ''; + echo ''; if ($groupmode > 0) { - echo ''; + echo ''; } if (has_capability('mod/forum:viewdiscussion', $context)) { - echo ''; + echo ''; /// If the forum can be tracked, display the unread column. if ($cantrack) { - echo ''; + echo ''; echo ''; echo ''; echo ''; diff --git a/mod/hotpot/hotpot-full.js b/mod/hotpot/hotpot-full.js index 89c92639b1a..0ea1fa31619 100644 --- a/mod/hotpot/hotpot-full.js +++ b/mod/hotpot/hotpot-full.js @@ -518,7 +518,7 @@ function QuizLogin(LoginPrompt) { if (Login[0]) { // user name var v = getCookie(self, 'UserName'); html += '' - + '' + + '' + ''; + html += ''; } if (Login[2]) { // user email var v = getCookie(self, 'UserEmail'); - html += ''; + html += ''; } if (Login[3]) { // quiz password var v = getCookie(self, 'Password'); - html += ''; + html += ''; } if (Login[4]) { // cookie lifespan var v = getCookie(self, 'CookieExpiry'); html += '' - + '' + + '' + '' - + '' + + '' + '
'.get_string('discussion', 'forum').''.get_string('startedby', 'forum').''.get_string('discussion', 'forum').''.get_string('startedby', 'forum').''.get_string('group').''.get_string('group').''.get_string('replies', 'forum').''.get_string('replies', 'forum').''.get_string('unread', 'forum'); + echo ''.get_string('unread', 'forum'); if ($forumtracked) { echo ' '.get_string('lastpost', 'forum').''.get_string('lastpost', 'forum').'
' + MSG[0] + ' :' + MSG[0] + ' :' ; if (typeof(Login[0])=='boolean') { // text box @@ -548,20 +548,20 @@ function QuizLogin(LoginPrompt) { } if (Login[1]) { // user ID var v = getCookie(self, 'UserID'); - html += '
' + MSG[1] + ' :
' + MSG[1] + ' :
' + MSG[2] +' :
' + MSG[2] +' :
' + MSG[3] + ' :
' + MSG[3] + ' :
' + MSG[4] + ' :' + MSG[4] + ' :' + '
  ' + ' ' + '' @@ -2101,8 +2101,8 @@ function hpFeedback() { html += '' + '
' + '' - + '' - + '' + + '' - + '' + + '' + '' + '
' + FEEDBACK[7] + ':' + document.title + '
' + FEEDBACK[8] + ': ' + + '
' + FEEDBACK[7] + ':' + document.title + '
' + FEEDBACK[8] + ': ' ; if (typeof(FEEDBACK[1])=='string') { html += FEEDBACK[1] + hpHiddenField('recipient', FEEDBACK[1], ',', true); @@ -2119,7 +2119,7 @@ function hpFeedback() { } } html += '
' + FEEDBACK[9] + ':
' + FEEDBACK[9] + ':
 ' + hpHiddenField('realname', FEEDBACK[2], ',', true) @@ -2137,8 +2137,8 @@ function hpFeedback() { html += '' + '' + '' - + '' - + '' + + ''; foreach ($menus as $name => $options) { $value = $formdata[$name]; - print ''; + print ''; } print ''; diff --git a/mod/hotpot/report/default.php b/mod/hotpot/report/default.php index a7e4ae27f2c..254e5b22a45 100644 --- a/mod/hotpot/report/default.php +++ b/mod/hotpot/report/default.php @@ -366,7 +366,7 @@ class hotpot_default_report { $d = $table->tableclass.'cell'; $h = $table->tableclass.'header'; - $table->th_side = ''; + print ''; } } // finish table @@ -216,7 +216,7 @@ function hotpot_print_attempt_details(&$hotpot, &$attempt) { $printedquestion = true; } // print response - print ''."\n"; + print ''."\n"; } } } @@ -231,7 +231,7 @@ function hotpot_print_attempt_details(&$hotpot, &$attempt) { } // print numeric response $value = isset($question[$field]) ? $question[$field] : '-'; - print ''; + print ''; } } print "\n"; diff --git a/mod/quiz/editlib.php b/mod/quiz/editlib.php index d9996761105..05fe89a778b 100644 --- a/mod/quiz/editlib.php +++ b/mod/quiz/editlib.php @@ -180,7 +180,7 @@ function quiz_print_question_list($quiz, $allowdelete=true, $showbreaks=true, $r print_simple_box_start('center', '100%', '#ffffff', 0); echo "
' + FEEDBACK[7] + ':' + document.title + '
' + FEEDBACK[8] + ': ' + + '
' + FEEDBACK[7] + ':' + document.title + '
' + FEEDBACK[8] + ': ' ; html += ''; helpbutton('reportcontent', get_string('reportcontent', 'hotpot'), 'hotpot'); - print ''.get_string('reportcontent', 'hotpot').':'; + print ''.get_string('reportcontent', 'hotpot').':'; foreach ($menus as $name => $options) { $value = $formdata[$name]; print choose_from_menu($options, $name, $value, "", "", 0, true); @@ -561,7 +561,7 @@ function hotpot_print_report_selector(&$course, &$hotpot, &$formdata) { print ''.get_string($name, 'hotpot').':'.choose_from_menu($options, $name, $value, "", "", 0, true).''.get_string($name, 'hotpot').':'.choose_from_menu($options, $name, $value, "", "", 0, true).'
'; + $table->th_side = ''; $table->td = array(); $table->th_top = array(); @@ -392,7 +392,7 @@ class hotpot_default_report { $size = empty($table->size[$i]) ? '' : ' width="'.$table->size[$i].'"'; $wrap = empty($table->wrap[$i]) ? '' : ' nowrap="nowrap"'; - $table->th_top[$i] = ''; + $table->th_top[$i] = ''; $table->td[$i] = ''; diff --git a/mod/hotpot/review.php b/mod/hotpot/review.php index 7e114feac76..0f9357e216d 100644 --- a/mod/hotpot/review.php +++ b/mod/hotpot/review.php @@ -123,7 +123,7 @@ function hotpot_print_attempt_summary(&$hotpot, &$attempt) { default: $name = get_string($field, 'quiz'); } - print '
'.$name.':'.$value.'
'.$name.':'.$value.'
'.$f[$field]['name'].':'.$text.'
'.$f[$field]['name'].':'.$text.'
'.$f[$field]['name'].':'.$value.''.$f[$field]['name'].':'.$value.'
\n"; - echo "\n"; + echo "\n"; foreach ($order as $i => $qnum) { if ($qnum and empty($questions[$qnum])) { diff --git a/mod/quiz/jstimer.php b/mod/quiz/jstimer.php index af93e3cd12c..bb5acc1e5b2 100644 --- a/mod/quiz/jstimer.php +++ b/mod/quiz/jstimer.php @@ -28,7 +28,7 @@ var ec_quiz_finish = ec_page_start + ;
$strorder#$strquestionname$strtype$strgrade$straction
$strorder#$strquestionname$strtype$strgrade$straction
- +