From: moodler Date: Tue, 20 May 2003 08:03:12 +0000 (+0000) Subject: Minor code cleanups X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=11697b48ea09c7fe7c890da8ee1fab03153457eb;p=moodle.git Minor code cleanups - lowercasing - removing short php tags - adding some emoticon help here and there --- diff --git a/mod/assignment/mod.html b/mod/assignment/mod.html index c235e78515..555cfb4af8 100644 --- a/mod/assignment/mod.html +++ b/mod/assignment/mod.html @@ -1,4 +1,4 @@ - -
action=""> + action=""> - + - - + - + - + - + - - +

:

:

- +

:

- -
-
- - - - -
-
+

:

+ + "; + helpbutton("questions", get_string("helpquestions"), "moodle", true, true); + echo "
"; + if ($usehtmleditor) { + helpbutton("richtext", get_string("helprichtext"), "moodle", true, true); + } else { + emoticonhelpbutton("form", "description"); + } + ?> +
+
- description); - echo "

"; + echo "

"; + helpbutton("textformat", get_string("formattexttype")); print_string("formattexttype"); echo ": "; if (!$form->format) { $form->format = $defaultformat; } choose_from_menu(format_text_menu(), "format", $form->format, ""); - helpbutton("textformat", get_string("formattexttype")); - echo "

"; + echo "

"; ?>

:

:

- dirroot/mod/assignment/lib.php"); asort($ASSIGNMENT_TYPE); choose_from_menu($ASSIGNMENT_TYPE, "type", $form->type, ""); @@ -80,9 +85,9 @@

:

:

- resubmit, ""); helpbutton("resubmit", get_string("allowresubmit", "assignment"), "assignment"); @@ -90,9 +95,9 @@

:

:

- =0; $i--) { $grades[$i] = $i; } @@ -101,9 +106,9 @@

:

:

-

:

:

timedue); echo " - "; print_time_selector("duehour", "dueminute", $form->timedue); ?>
-
-
- - - - - - - -"> -"> -
-
+
+
+ + + + + + + +"> +"> +
+ -name)) { $form->name = ""; } @@ -39,94 +39,99 @@ } ?> -
action=""> + action=""> - + - - + - + - + - + - + - + - +

:

:

- +

:

- -
-
- - - - -
-
+

:

+ + "; + helpbutton("questions", get_string("helpquestions"), "moodle", true, true); + echo "
"; + if ($usehtmleditor) { + helpbutton("richtext", get_string("helprichtext"), "moodle", true, true); + } else { + emoticonhelpbutton("form", "text"); + } + ?> +
+
- text); - echo "

"; + echo "

"; + helpbutton("textformat", get_string("formattexttype")); print_string("formattexttype"); echo ": "; if (!$form->format) { $form->format = $defaultformat; } choose_from_menu(format_text_menu(), "format", $form->format, ""); - helpbutton("textformat", get_string("formattexttype")); - echo "

"; + echo "

"; ?>

:

:

- - + +

:

:

- - + +

:

:

- - + +

:

:

- - + +

:

:

- - + +

:

:

- - + +

:

:

- dirroot/mod/choice/lib.php"); choose_from_menu($CHOICE_PUBLISH, "publish", "$form->publish", ""); ?> @@ -136,20 +141,20 @@
-
- - - - - - - -"> -"> -
-
+
+ + + + + + + +"> +"> +
+ -name)) { $form->name = ""; } @@ -18,19 +18,19 @@ $form->forcesubscribe = ""; } ?> -
+ - + - + - - + - + - +

:

:

- +

:

:

- student); require("$CFG->dirroot/mod/forum/lib.php"); asort($FORUM_TYPES); @@ -52,43 +52,56 @@

:

- -
-
-
-
+

:

+ + "; + helpbutton("questions", get_string("helpquestions"), "moodle", true, true); + echo "
"; + emoticonhelpbutton("form", "intro"); + echo "
"; + ?> +
- +

student")) ?>:

student")) ?>:

- open, ""); ?> - student")), "forum") ?> + open, ""); + helpbutton("allowdiscussions", get_string("allowdiscussions", + "forum", strtolower("$course->student")), "forum"); + ?>

:

:

- - assessed, ""); ?> - + assessed, ""); + helpbutton("ratings", get_string("allowratings", "forum"), "forum"); + ?>

:

:

- forcesubscribe, ""); ?> - + forcesubscribe, ""); + helpbutton("subscription", get_string("forcesubscribeq", "forum"), "forum"); + ?>
-
+
@@ -98,5 +111,5 @@ "> "> -
- +
+ diff --git a/mod/journal/mod.html b/mod/journal/mod.html index 91907eae27..0aebbcf877 100644 --- a/mod/journal/mod.html +++ b/mod/journal/mod.html @@ -1,4 +1,4 @@ -name)) { $form->name = ""; } @@ -10,30 +10,36 @@ } ?> -
+ - + - - - + +

:

:

- +

:

+

:

-
-
-
+ "; + helpbutton("questions", get_string("helpquestions"), "moodle", true, true); + echo "
"; + emoticonhelpbutton("form", "intro"); + ?> +
+
- +

:

-

:

+ days"); ?> -
-
- - - - - - - -"> -"> - -
+
+ + + + + + + +"> +"> + +
diff --git a/mod/quiz/mod.html b/mod/quiz/mod.html index b9cd4dfa9d..51c777d90f 100644 --- a/mod/quiz/mod.html +++ b/mod/quiz/mod.html @@ -1,7 +1,7 @@ -dirroot/mod/quiz/lib.php"); if (!isset($form->name)) { @@ -47,26 +47,28 @@ -
-
- - - - - - - - - - - - + +

:

- -

:

- - -

:

- wwwroot ?>/mod/quiz/edit.php"> +
+ + + + + + + + + + + + - - - - + + + - - - - + + + - - - - + + + - - - - + + + - - - - + + + - - - - + + + - - - - + + + - - - - + + + - - - - + + + - -

:

+ +

:

+ + +

:

+ timeopen and $course->format == "weeks") { $form->timeopen = $course->startdate + (($form->section - 1) * 608400); } @@ -74,12 +76,12 @@ print_time_selector("openhour", "openminute", $form->timeopen); helpbutton("timeopen", get_string("quizopen","quiz"), "quiz"); ?> -

:

- +

:

+ timeclose and $course->format == "weeks") { $form->timeclose = $course->startdate + (($form->section) * 608400); } @@ -87,36 +89,36 @@ print_time_selector("closehour", "closeminute", $form->timeclose); helpbutton("timeopen", get_string("quizclose","quiz"), "quiz"); ?> -

:

- +

:

+ shufflequestions", ""); helpbutton("shufflequestions", get_string("shufflequestions","quiz"), "quiz"); ?> -

:

- +

:

+ shuffleanswers", ""); helpbutton("shuffleanswers", get_string("shuffleanswers","quiz"), "quiz"); ?> -

:

- +

:

+ attempts", ""); helpbutton("attempts", get_string("attemptsallowed","quiz"), "quiz"); ?> -

:

- +

:

+ grademethod", ""); helpbutton("grademethod", get_string("grademethod","quiz"), "quiz"); ?> -

:

- +

:

+ feedback", ""); helpbutton("feedback", get_string("showfeedback","quiz"), "quiz"); ?> -

:

- +

:

+ correctanswers", ""); helpbutton("correctanswers", get_string("showcorrectanswer","quiz"), "quiz"); ?> -

:

- +

:

+ review", ""); helpbutton("review", get_string("allowreview","quiz"), "quiz"); ?> -

:

- +

:

+ =1; $i--) { $grades[$i] = $i; } choose_from_menu($grades, "grade", "$form->grade", ""); helpbutton("maxgrade", get_string("maximumgrade"), "quiz"); ?> -
- - - - - - - - - - -"> -
- +
+ + + + + + + + + + +"> +
+ diff --git a/mod/resource/details.php b/mod/resource/details.php index 664e73c47c..8cc1565219 100644 --- a/mod/resource/details.php +++ b/mod/resource/details.php @@ -140,6 +140,7 @@

+
@@ -176,10 +177,10 @@

+ helpbutton("html", get_string("helphtml"), "moodle", true, true); + } ?>
diff --git a/mod/resource/mod.html b/mod/resource/mod.html index 792e56718e..74a2b684d5 100644 --- a/mod/resource/mod.html +++ b/mod/resource/mod.html @@ -1,4 +1,4 @@ -name)) { $form->name = ""; } @@ -17,18 +17,18 @@ ?> -
+ - + - + -

:

:

- +

:

:

- dirroot/mod/resource/lib.php"); asort($RESOURCE_TYPE); if (!$form->type) { @@ -41,29 +41,34 @@

:

- -
-
-
+

:

+ + "; + helpbutton("writing", get_string("helpwriting"), "moodle", true, true); + echo "
"; + helpbutton("text", get_string("helptext"), "moodle", true, true); + ?> +
- +
-
- +
+ - - - - - - - - -"> -
- + + + + + + + + +"> +
+