]> git.mjollnir.org Git - moodle.git/commitdiff
Now all the modules global config pages are valid XML. Related to MDL-7861
authorstronk7 <stronk7>
Sat, 13 Jan 2007 20:13:58 +0000 (20:13 +0000)
committerstronk7 <stronk7>
Sat, 13 Jan 2007 20:13:58 +0000 (20:13 +0000)
mod/assignment/config.html
mod/chat/config.html
mod/data/config.html
mod/glossary/config.html
mod/glossary/formats.php
mod/hotpot/config.html
mod/lams/config.html
mod/resource/config.html
mod/scorm/config.html

index f239c8aadfb651f011ed9ecac7badebd68da0c26..332fea1ee9aa91ea3693abc14da22b2b2c39fe41 100644 (file)
@@ -2,8 +2,8 @@
 <input type="hidden" name="sesskey" value="<?php echo sesskey(); ?>" />
 
 <table cellpadding="9" cellspacing="0" >
-<tr valign=top>
-    <td align=right><p>assignment_maxbytes:</td>
+<tr valign="top">
+    <td align="right">assignment_maxbytes:</td>
     <td><?php
     $choices = get_max_upload_sizes($CFG->maxbytes);
     choose_from_menu ($choices, "assignment_maxbytes", $CFG->assignment_maxbytes, "");
@@ -15,7 +15,7 @@
 </tr>
 
 <tr valign="top">
-    <td align="right"><p>assignment_itemstocount:</td>
+    <td align="right">assignment_itemstocount:</td>
     <td><?php
     unset($options);
     $options[ASSIGNMENT_COUNT_WORDS] = trim(get_string('numwords', ''));
index b37b7af5ba402c4c0b064953cdb353d288bd18b6..6746049f89592a7861854034463ae8bc709c487a 100644 (file)
@@ -1,5 +1,5 @@
 <form method="post" action="module.php" id="form">
-<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>">
+<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
 
 <table cellpadding="9" cellspacing="0" >
 
index 090d6e5d4a32f99dd4f6b54e011de0bbc7120f7e..bdf91edf43f5bb0c52d7617ee710af6d14af0245 100644 (file)
@@ -1,5 +1,5 @@
 <form method="post" action="module.php" id="form">
-<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>">
+<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
 
 <table cellpadding="9" cellspacing="0" >
 
index e3d295c14a04415678858f6baa77216452478709..3a0b158b381bb021b637825d780f7f97e71d168f 100644 (file)
@@ -3,7 +3,7 @@
     $no  = get_string("no");
 ?>
 <form method="post" action="module.php" id="form">
-<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>">
+<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
 
 <table cellpadding="9" cellspacing="0" >
 <tr valign="top">
@@ -31,8 +31,8 @@
         $nselected = " selected=\"selected\" ";
     }
 ?>
-    <option value="1" <?php p($yselected) ?>><?php p($yes)?></option>
-    <option value="0" <?php p($nselected) ?>><?php p($no)?></option>
+    <option value="1" <?php echo $yselected ?>><?php p($yes)?></option>
+    <option value="0" <?php echo $nselected ?>><?php p($no)?></option>
     </select>
     </td>
     <td>
@@ -52,8 +52,8 @@
         $nselected = " selected=\"selected\" ";
     }
 ?>
-    <option value="1" <?php p($yselected) ?>><?php p($yes)?></option>
-    <option value="0" <?php p($nselected) ?>><?php p($no)?></option>
+    <option value="1" <?php echo $yselected ?>><?php p($yes)?></option>
+    <option value="0" <?php echo $nselected ?>><?php p($no)?></option>
     </select>
     </td>
     <td>
@@ -73,8 +73,8 @@
         $nselected = " selected=\"selected\" ";
     }
 ?>
-    <option value="1" <?php p($yselected) ?>><?php p($yes)?></option>
-    <option value="0" <?php p($nselected) ?>><?php p($no)?></option>
+    <option value="1" <?php echo $yselected ?>><?php p($yes)?></option>
+    <option value="0" <?php echo $nselected ?>><?php p($no)?></option>
     </select>
     </td>
     <td>
@@ -94,8 +94,8 @@
         $nselected = " selected=\"selected\" ";
     }
 ?>
-    <option value="1" <?php p($yselected) ?>><?php p($yes)?></option>
-    <option value="0" <?php p($nselected) ?>><?php p($no)?></option>
+    <option value="1" <?php echo $yselected ?>><?php p($yes)?></option>
+    <option value="0" <?php echo $nselected ?>><?php p($no)?></option>
     </select>
     </td>
     <td>
 <?php 
     $yselected = "";
     $nselected = "";
-    if ($CFG->glossary_linkentries) {
+    if (isset($CFG->glossary_linkentries) && $CFG->glossary_linkentries) {
         $yselected = " selected=\"selected\" ";
     } else {
         $nselected = " selected=\"selected\" ";
     }
 ?>
-    <option value="1" <?php p($yselected) ?>><?php p($yes)?></option>
-    <option value="0" <?php p($nselected) ?>><?php p($no)?></option>
+    <option value="1" <?php echo $yselected ?>><?php p($yes)?></option>
+    <option value="0" <?php echo $nselected ?>><?php p($no)?></option>
     </select>
     </td>
     <td>
 <?php 
     $yselected = "";
     $nselected = "";
-    if ($CFG->glossary_casesensitive) {
+    if (isset($CFG->glossary_casesensitive) && $CFG->glossary_casesensitive) {
         $yselected = " selected=\"selected\" ";
     } else {
         $nselected = " selected=\"selected\" ";
     }
 ?>
-    <option value="1" <?php p($yselected) ?>><?php p($yes)?></option>
-    <option value="0" <?php p($nselected) ?>><?php p($no)?></option>
+    <option value="1" <?php echo $yselected ?>><?php p($yes)?></option>
+    <option value="0" <?php echo $nselected ?>><?php p($no)?></option>
     </select>
     </td>
     <td>
 <?php 
     $yselected = "";
     $nselected = "";
-    if ($CFG->glossary_fullmatch) {
+    if (isset($CFG->glossary_fullmatch) && $CFG->glossary_fullmatch) {
         $yselected = " selected=\"selected\" ";
     } else {
         $nselected = " selected=\"selected\" ";
     }
 ?>
-    <option value="1" <?php p($yselected) ?>><?php p($yes)?></option>
-    <option value="0" <?php p($nselected) ?>><?php p($no)?></option>
+    <option value="1" <?php echo $yselected ?>><?php p($yes)?></option>
+    <option value="0" <?php echo $nselected ?>><?php p($no)?></option>
     </select>
     </td>
     <td>
     </td>
 </tr>
 <tr valign="top">
-    <td colspan ="3" align="center"><a name="formats"><strong><?php print_string("displayformatssetup","glossary") ?></strong></td>
+    <td colspan ="3" align="center"><a name="formats"><strong><?php print_string("displayformatssetup","glossary") ?></strong></a></td>
 </tr>
 <tr>
     <td colspan="3" align="center">
         $recformat = get_record('glossary_formats','id',$formatid);
         echo '<tr>';
         echo '<td>' . $formatname . '</td>';
-        $eicon = "<a title=\"" . get_string("edit") . "\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=edit\"><img class=\"iconsmall\" src=\"../pix/t/edit.gif\" alt=\"".get_string("edit")."\" /></a>";
+        $eicon = "<a title=\"" . get_string("edit") . "\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&amp;mode=edit\"><img class=\"iconsmall\" src=\"../pix/t/edit.gif\" alt=\"".get_string("edit")."\" /></a>";
         if ( $recformat->visible ) {
             $vtitle = get_string("hide");
             $vicon = "hide.gif";
             $vtitle = get_string("show");
             $vicon = "show.gif";
         }
-        $vicon = "<a title=\"" . $vtitle . "\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=visible\"><img class=\"iconsmall\" src=\"../pix/t/" . $vicon . "\" alt=\"$vtitle\" /></a>";
+        $vicon = "<a title=\"" . $vtitle . "\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&amp;mode=visible\"><img class=\"iconsmall\" src=\"../pix/t/" . $vicon . "\" alt=\"$vtitle\" /></a>";
 
         echo '<td align="center" nowrap="nowrap">' . $eicon . '&nbsp;&nbsp;' . $vicon . '</td>';
         echo '</tr>';
index 8033ac18544cb217bdd9c6f08906e4c3ec21f4be..ffe721b6e3e48b866d7d6922d9ed47d80ac965f5 100644 (file)
     print_header("$strmodulename: $strconfiguration", $site->fullname,
                   "<a href=\"../../$CFG->admin/index.php\">$stradmin</a> -> ".
                   "<a href=\"../../$CFG->admin/configure.php\">$strconfiguration</a> -> ".
-                  "<a href=\"../../$CFG->admin/modules.php\">$strmanagemodules</a> -> <a href=\"../../$CFG->admin/module.php?module=glossary&sesskey=$USER->sesskey\">$strmodulename</a> -> $strdisplayformats");
+                  "<a href=\"../../$CFG->admin/modules.php\">$strmanagemodules</a> -> <a href=\"../../$CFG->admin/module.php?module=glossary&amp;sesskey=$USER->sesskey\">$strmodulename</a> -> $strdisplayformats");
 
     print_heading($strmodulename . ': ' . get_string("displayformats","glossary"));
 
-    echo '<table cellspacing="0" align="center" class="glossaryformatheader">';
-    echo '<tr><td align="center">';
-    echo get_string('configwarning','admin');
-    echo '</td></tr></table>';
+    print_simple_box("<center>".get_string("configwarning", 'admin')."</center>", "center", "60%");
+    echo "<br />";
 
     $yes = get_string("yes");
     $no  = get_string("no");
         </td>
     </tr>
     <tr valign="top">
-        <td align="right" width="20%"><p>Include Group Breaks:</td>
+        <td align="right" width="20%">Include Group Breaks:</td>
         <td>
         <select size="1" name="showgroup">
     <?php
             $nselected = " selected=\"selected\" ";
         }
     ?>
-        <option value="1" <?php p($yselected) ?>><?php p($yes)?></option>
-        <option value="0" <?php p($nselected) ?>><?php p($no)?></option>
+        <option value="1" <?php echo $yselected ?>><?php p($yes)?></option>
+        <option value="0" <?php echo $nselected ?>><?php p($no)?></option>
         </select>
         </td>
         <td width="60%">
     <input type="hidden" name="mode"    value="edit" />
     <?php
 
-    print_simple_box_end();
-    echo '</form>';
+    echo '</table></form>';
 
     print_footer();
 ?>
index 049de865e8deac48acb45acc397e7dfc29d43e55..536e994305302e01653182263ede241c7c1a9b50 100644 (file)
@@ -1,9 +1,9 @@
 <form method="post" action="module.php" id="form">
-<input type="hidden" name="sesskey" value="<?PHP print isset($USER->sesskey) ? $USER->sesskey : '' ?>">
+<input type="hidden" name="sesskey" value="<?PHP print isset($USER->sesskey) ? $USER->sesskey : '' ?>" />
 
 <table cellpadding="9" cellspacing="0">
     <tr valign="top">
-        <td align="right"><p>hotpot_showtimes:</td>
+        <td align="right">hotpot_showtimes:</td>
         <td><?PHP 
             unset($choices);
             $choices["0"] = get_string("no");
@@ -13,7 +13,7 @@
         <td><?PHP print_string("configshowtimes", "hotpot") ?></td>
     </tr>
     <tr valign="top">
-        <td align="right"><p>hotpot_excelencodings:</p></td>
+        <td align="right">hotpot_excelencodings:</td>
         <td><input name="hotpot_excelencodings" type="text" size="30" value="<?PHP p($CFG->hotpot_excelencodings) ?>" /></td>
         <td><?PHP print_string("configexcelencodings", "hotpot") ?></td>
     </tr>
index d2177fc317562017aeb31cd277f1357f29de9bac..f44214e211f0d58d30d74a970dfb6b6d226b3e32 100644 (file)
@@ -4,21 +4,21 @@
 <table cellpadding="9" cellspacing="0">
 <tr valign="top">
     <td align="right">server_url:</td>
-    <td> <input name="lams_serverurl" type="text" size="50" value="<?php p($CFG->lams_serverurl) ?>"></td>
+    <td> <input name="lams_serverurl" type="text" size="50" value="<?php if (isset($CFG->lams_serverurl)) p($CFG->lams_serverurl) ?>" /></td>
     <td>
     <?php print_string('serverurl', 'lams') ?>
     </td>
 </tr>
 <tr valign="top">
     <td align="right">server_id:</td>
-    <td> <input name="lams_serverid" type="text" size="50" value="<?php p($CFG->lams_serverid) ?>">    </td>
+    <td> <input name="lams_serverid" type="text" size="50" value="<?php if (isset($CFG->lams_serverid)) p($CFG->lams_serverid) ?>" />    </td>
     <td>
     <?php print_string('serverid', 'lams') ?>
     </td>
 </tr>
 <tr valign="top">
     <td align="right">server_key:</td>
-    <td> <input name="lams_serverkey" type="text" size="50" value="<?php p($CFG->lams_serverkey) ?>">    </td>
+    <td> <input name="lams_serverkey" type="text" size="50" value="<?php if (isset($CFG->lams_serverkey)) p($CFG->lams_serverkey) ?>" />    </td>
     <td>
     <?php print_string('serverkey', 'lams') ?>
     </td>
index 03bfc9db0e5d174218c685b6e881528ab7c2f5cc..26cc35e6d6c1e232a6c04a6503066d0f928a7fb3 100644 (file)
@@ -1,6 +1,7 @@
 <form method="post" action="module.php" id="form">
 <fieldset class="invisiblefieldset">
-<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>">
+<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
+</fieldset>
 
 <table cellpadding="9" cellspacing="0" >
 <tr valign="top">
     <?php print_string("configallowlocalfiles", "resource") ?>
     </td>
 </tr>
-<tr valign="top">
-    <td align="right">resource_filterexternalpages:</td>
-    <td>
-    <?php
-        unset($choices);
-        $choices["0"] = get_string("no");
-        $choices["1"] = get_string("yes");
-        choose_from_menu ($choices, "resource_filterexternalpages", $CFG->resource_filterexternalpages, "");
-    ?>
-    </td>
-    <td>
-    <?php print_string("configfilterexternalpages", "resource") ?>
-    </td>
-</tr>
 <tr valign="top">
     <td align="right">resource_popup:</td>
     <td>
@@ -87,7 +74,7 @@
           echo "<td align=\"right\">$defaultvalue:</td>";
           echo "<td>";
           if ($optionname == "height" or $optionname == "width") {
-              echo "<input name=$defaultvalue type=\"text\" size=\"5\" value=\"".$CFG->$defaultvalue."\" />";
+              echo "<input name=\"$defaultvalue\" type=\"text\" size=\"5\" value=\"".$CFG->$defaultvalue."\" />";
           } else {
               choose_from_menu ($choices, $defaultvalue, $CFG->$defaultvalue, "");
           }
           echo "</tr>";
       }
 ?>
-<tr valign="top">
-    <td align="right">resource_windowsettings:</td>
-    <td>
-    <?php
-        unset($choices);
-        $choices["0"] = get_string("hidesettings");
-        $choices["1"] = get_string("showsettings");
-        choose_from_menu ($choices, "resource_windowsettings", $CFG->resource_windowsettings, "");
-    ?>
-    </td>
-    <td>
-    <?php print_string("configwindowsettings", "resource") ?>
-    </td>
-</tr>
-<tr valign="top">
-    <td align="right">resource_parametersettings:</td>
-    <td>
-    <?php
-        unset($choices);
-        $choices["0"] = get_string("hidesettings");
-        $choices["1"] = get_string("showsettings");
-        choose_from_menu ($choices, "resource_parametersettings", $CFG->resource_parametersettings, "");
-    ?>
-    </td>
-    <td>
-    <?php print_string("configparametersettings", "resource") ?>
-    </td>
-</tr>
 <tr valign="top">
     <td align="right">resource_autofilerename:</td>
     <td>
 </tr>
 </table>
 
-</fieldset>
 </form>
index 4504904a5c741c2abc4bcb4924aa505adab85c6e..3eb86ef0449652821a842d07fc23ddfaebbbe747 100755 (executable)
@@ -8,7 +8,7 @@
 ?>
 
 <form method="post" action="module.php" id="form">
-<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>">
+<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
 
 <table cellpadding="9" cellspacing="0" >
 <tr valign="top">