From: stronk7 Date: Sat, 13 Jan 2007 20:13:58 +0000 (+0000) Subject: Now all the modules global config pages are valid XML. Related to MDL-7861 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=73be66c7a8ecc34272ffec6692fb5ee651b2ee05;p=moodle.git Now all the modules global config pages are valid XML. Related to MDL-7861 --- diff --git a/mod/assignment/config.html b/mod/assignment/config.html index f239c8aadf..332fea1ee9 100644 --- a/mod/assignment/config.html +++ b/mod/assignment/config.html @@ -2,8 +2,8 @@ - - + + - + - +

assignment_maxbytes:

assignment_maxbytes: maxbytes); choose_from_menu ($choices, "assignment_maxbytes", $CFG->assignment_maxbytes, ""); @@ -15,7 +15,7 @@

assignment_itemstocount:

assignment_itemstocount: - + diff --git a/mod/data/config.html b/mod/data/config.html index 090d6e5d4a..bdf91edf43 100644 --- a/mod/data/config.html +++ b/mod/data/config.html @@ -1,5 +1,5 @@ - +
diff --git a/mod/glossary/config.html b/mod/glossary/config.html index e3d295c14a..3a0b158b38 100644 --- a/mod/glossary/config.html +++ b/mod/glossary/config.html @@ -3,7 +3,7 @@ $no = get_string("no"); ?> - +
@@ -31,8 +31,8 @@ $nselected = " selected=\"selected\" "; } ?> - - + + - + '; echo ''; - $eicon = "wwwroot/mod/glossary/formats.php?id=$formatid&mode=edit\">\"".get_string("edit")."\""; + $eicon = "wwwroot/mod/glossary/formats.php?id=$formatid&mode=edit\">\"".get_string("edit")."\""; if ( $recformat->visible ) { $vtitle = get_string("hide"); $vicon = "hide.gif"; @@ -228,7 +228,7 @@ $vtitle = get_string("show"); $vicon = "show.gif"; } - $vicon = "wwwroot/mod/glossary/formats.php?id=$formatid&mode=visible\">\"$vtitle\""; + $vicon = "wwwroot/mod/glossary/formats.php?id=$formatid&mode=visible\">\"$vtitle\""; echo ''; echo ''; diff --git a/mod/glossary/formats.php b/mod/glossary/formats.php index 8033ac1854..ffe721b6e3 100644 --- a/mod/glossary/formats.php +++ b/mod/glossary/formats.php @@ -54,14 +54,12 @@ print_header("$strmodulename: $strconfiguration", $site->fullname, "admin/index.php\">$stradmin -> ". "admin/configure.php\">$strconfiguration -> ". - "admin/modules.php\">$strmanagemodules -> admin/module.php?module=glossary&sesskey=$USER->sesskey\">$strmodulename -> $strdisplayformats"); + "admin/modules.php\">$strmanagemodules -> admin/module.php?module=glossary&sesskey=$USER->sesskey\">$strmodulename -> $strdisplayformats"); print_heading($strmodulename . ': ' . get_string("displayformats","glossary")); - echo '
@@ -52,8 +52,8 @@ $nselected = " selected=\"selected\" "; } ?> - - + + @@ -73,8 +73,8 @@ $nselected = " selected=\"selected\" "; } ?> - - + + @@ -94,8 +94,8 @@ $nselected = " selected=\"selected\" "; } ?> - - + + @@ -141,14 +141,14 @@ glossary_linkentries) { + if (isset($CFG->glossary_linkentries) && $CFG->glossary_linkentries) { $yselected = " selected=\"selected\" "; } else { $nselected = " selected=\"selected\" "; } ?> - - + + @@ -162,14 +162,14 @@ glossary_casesensitive) { + if (isset($CFG->glossary_casesensitive) && $CFG->glossary_casesensitive) { $yselected = " selected=\"selected\" "; } else { $nselected = " selected=\"selected\" "; } ?> - - + + @@ -183,14 +183,14 @@ glossary_fullmatch) { + if (isset($CFG->glossary_fullmatch) && $CFG->glossary_fullmatch) { $yselected = " selected=\"selected\" "; } else { $nselected = " selected=\"selected\" "; } ?> - - + + @@ -198,7 +198,7 @@
@@ -220,7 +220,7 @@ $recformat = get_record('glossary_formats','id',$formatid); echo '
' . $formatname . '' . $eicon . '  ' . $vicon . '
'; - echo '
'; - echo get_string('configwarning','admin'); - echo '
'; + print_simple_box("
".get_string("configwarning", 'admin')."
", "center", "60%"); + echo "
"; $yes = get_string("yes"); $no = get_string("no"); @@ -234,7 +232,7 @@

Include Group Breaks:

Include Group Breaks: @@ -262,8 +260,7 @@ '; + echo '
'; print_footer(); ?> diff --git a/mod/hotpot/config.html b/mod/hotpot/config.html index 049de865e8..536e994305 100644 --- a/mod/hotpot/config.html +++ b/mod/hotpot/config.html @@ -1,9 +1,9 @@
- + - + - + diff --git a/mod/lams/config.html b/mod/lams/config.html index d2177fc317..f44214e211 100644 --- a/mod/lams/config.html +++ b/mod/lams/config.html @@ -4,21 +4,21 @@

hotpot_showtimes:

hotpot_showtimes:

hotpot_excelencodings:

hotpot_excelencodings:
- + - + - + diff --git a/mod/resource/config.html b/mod/resource/config.html index 03bfc9db0e..26cc35e6d6 100644 --- a/mod/resource/config.html +++ b/mod/resource/config.html @@ -1,6 +1,7 @@
- + +
server_url:
server_id:
server_key:
@@ -53,20 +54,6 @@ - - - - -"; echo ""; } ?> - - - - - - - - - -
resource_filterexternalpages: - resource_filterexternalpages, ""); - ?> - - -
resource_popup: @@ -87,7 +74,7 @@ echo "$defaultvalue:"; if ($optionname == "height" or $optionname == "width") { - echo "$defaultvalue."\" />"; + echo "$defaultvalue."\" />"; } else { choose_from_menu ($choices, $defaultvalue, $CFG->$defaultvalue, ""); } @@ -98,34 +85,6 @@ echo "
resource_windowsettings: - resource_windowsettings, ""); - ?> - - -
resource_parametersettings: - resource_parametersettings, ""); - ?> - - -
resource_autofilerename: @@ -160,5 +119,4 @@
-
diff --git a/mod/scorm/config.html b/mod/scorm/config.html index 4504904a5c..3eb86ef044 100755 --- a/mod/scorm/config.html +++ b/mod/scorm/config.html @@ -8,7 +8,7 @@ ?>
- +