From f3f7d9e4095ac5e816ce0dbd1d74f3c18a0a1ad8 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 21 Jan 2005 05:07:51 +0000 Subject: [PATCH] Changes for XHTML and accessibility compatibility. General tidy up. --- mod/assignment/mod.html | 37 +++++++++++++++++-------------------- mod/choice/mod.html | 25 +++++++++++-------------- 2 files changed, 28 insertions(+), 34 deletions(-) diff --git a/mod/assignment/mod.html b/mod/assignment/mod.html index 1fe0a400e9..a69c7295a4 100644 --- a/mod/assignment/mod.html +++ b/mod/assignment/mod.html @@ -1,18 +1,18 @@ name)) { - $form->name = ""; + $form->name = ''; } if (empty($form->description)) { - $form->description = ""; + $form->description = ''; } if (empty($form->format)) { - $form->format = ""; + $form->format = ''; } if (empty($form->type)) { - $form->type = ""; + $form->type = ''; } if (empty($form->resubmit)) { - $form->resubmit = ""; + $form->resubmit = ''; } if (!isset($form->grade)) { $form->grade = 100; @@ -21,37 +21,34 @@ $form->maxbytes = $CFG->assignment_maxbytes; } if (empty($form->timedue)) { - $form->timedue = ""; + $form->timedue = ''; } if (empty($form->emailteachers)) { - $form->emailteachers = ""; + $form->emailteachers = ''; } ?>
- + - diff --git a/mod/choice/mod.html b/mod/choice/mod.html index 758940cf90..a60a1fd697 100644 --- a/mod/choice/mod.html +++ b/mod/choice/mod.html @@ -56,13 +56,12 @@ - @@ -101,7 +98,7 @@ @@ -109,7 +106,7 @@ @@ -117,28 +114,28 @@ @@ -150,7 +147,7 @@ var timeitems = ['openday','openmonth','openyear','openhour', 'openminute', 'closeday','closemonth','closeyear','closehour','closeminute']; - timerestrict) echo "checked"; ?> /> + " onclick="return lockoptions('form','timerestrict', timeitems)" timerestrict) echo 'checked="checked"'; ?> /> -- 2.39.5
:: - " /> +
:
- +
:
"; - helpbutton("questions", get_string("helpquestions"), "moodle", true, true); - echo "
"; + helpbutton('writing', get_string('helpwriting'), 'moodle', true, true); + echo '
'; + helpbutton('questions', get_string('helpquestions'), 'moodle', true, true); + echo '
'; if ($usehtmleditor) { helpbutton("richtext", get_string("helprichtext"), "moodle", true, true); } else { emoticonhelpbutton("form", "description"); - } + } ?> -
-
'; } else { - echo '

'; + echo '

'; helpbutton("textformat", get_string("formattexttype")); print_string("formattexttype"); echo ': '; @@ -68,7 +65,7 @@ $form->format = $defaultformat; } choose_from_menu(format_text_menu(), "format", $form->format, ""); - echo '

'; + echo '
'; } ?>
: - + " value="name) ?>" />
: - + :
"; @@ -74,8 +73,6 @@ emoticonhelpbutton("form", "text"); } ?> -
-
'; } else { - echo "

"; + echo "

"; helpbutton("textformat", get_string("formattexttype")); print_string("formattexttype"); echo ": "; @@ -92,7 +89,7 @@ $form->format = $defaultformat; } choose_from_menu(format_text_menu(), "format", $form->format, ""); - echo "

"; + echo "
"; } ?>
: - + " value="answer1) ?>" />
: - + " value="answer2) ?>" />
: - + " value="answer3) ?>" />
: - + " value="answer4) ?>" />
: - + " value="answer5) ?>" />
: - + " value="answer6) ?>" />