]> git.mjollnir.org Git - moodle.git/commitdiff
XHTML compliance
authorstronk7 <stronk7>
Mon, 2 Jul 2007 17:03:12 +0000 (17:03 +0000)
committerstronk7 <stronk7>
Mon, 2 Jul 2007 17:03:12 +0000 (17:03 +0000)
Merged from MOODLE_18_STABLE

mod/resource/type/ims/finder.php

index c7ba6fc631fac5c94339cb79fb6cd6488e6dffa9..e480462fd71fbd1b90faa8fbe5a37dae9c07b80c 100644 (file)
     echo '</div>';
 
 /// Prints the file list from list generated above.
-    echo '<div id="ims_filelist"><ul style="list-style:none;padding:10px;margin:0px;">';  
+    echo '<div id="ims_filelist">';
+    ?>
+    <script type="text/javascript">
+        //<![CDATA[
+        function set_value(txt) {
+            opener.document.getElementById('<?php echo $choose ?>').value = txt;
+            window.close();
+        }
+        //]]>
+    </script>
+    <?php
+    echo '<ul style="list-style:none;padding:10px;margin:0px;">';  
     if ($items != array()) {
         
         foreach ($items as $item) {
             if ($item->type == 'deployed') {
-                ?>
-                <script type="text/javascript">
-                //<![CDATA[
-                function set_value(txt) {
-                    opener.document.getElementById('<?php echo $choose ?>').value = txt;
-                    window.close();
-                }
-                //]]>
-                </script>
-                <?php
                 echo "<li><img src=\"images/ims.gif\" alt=\"IMS CP Package\" /> $item->name" .
                      "(<a onclick=\"return set_value('#$item->path')\" href=\"#\">$strchoose</a>) " .
                      "(<a href=\"preview.php?directory=$item->path&amp;choose=$choose\">$strpreview</a>)</li>\n";