]> git.mjollnir.org Git - moodle.git/commitdiff
FIxed some formatting
authormoodler <moodler>
Tue, 8 Feb 2005 14:49:57 +0000 (14:49 +0000)
committermoodler <moodler>
Tue, 8 Feb 2005 14:49:57 +0000 (14:49 +0000)
admin/blocks.php

index 9c73c18ac62f0502c661d5f33e1c07f7ad4ef6f9..be946c1f37b5f53264d3bad92877044d299ecdc9 100644 (file)
 /// Print the table of all blocks
 
     $table->head  = array ($strname, $strcourses, $strversion, $strhide.'/'.$strshow, $strmultiple, $strdelete, $strsettings);
-    $table->align = array ('LEFT', 'RIGHT', 'LEFT', 'CENTER', 'CENTER', 'CENTER', 'CENTER');
-    $table->wrap = array ('NOWRAP', '', '', '', '', '', '');
+    $table->align = array ('left', 'right', 'left', 'center', 'center', 'center', 'center');
+    $table->wrap = array ('nowrap', '', '', '', '', '', '');
     $table->size = array ('100%', '10', '10', '10', '10','12');
     $table->width = '100';
 
 
         if ($blocks[$blockid]->visible) {
             $visible = '<a href="blocks.php?hide='.$blockid.'&sesskey='.$USER->sesskey.'" title="'.$strhide.'">'.
-                       '<img src="'.$CFG->pixpath.'/i/hide.gif" style="height: 16px; width: 16px;" alt=\"\" /></a>';
+                       '<img src="'.$CFG->pixpath.'/i/hide.gif" height="16" width="16" alt="" /></a>';
         } else {
             $visible = '<a href="blocks.php?show='.$blockid.'&sesskey='.$USER->sesskey.'" title="'.$strshow.'">'.
-                       '<img src="'.$CFG->pixpath.'/i/show.gif" style="height: 16px; width: 16px;" alt=\"\" /></a>';
+                       '<img src="'.$CFG->pixpath.'/i/show.gif" height="16" width="16" alt="" /></a>';
             $class = ' class="dimmed_text"'; // Leading space required!
         }
         if ($blockobject->instance_allow_multiple()) {
         }
 
         $table->data[] = array(
-            '<p'.$class.'>'.$blockobject->get_title().'</p>',
+            '<span'.$class.'>'.$blockobject->get_title().'</span>',
             $count,
             $blockobject->get_version(),
             $visible,
             $settings
         );
     }
-    echo '<p>';
+
     print_table($table);
-    echo '</p>';
+
     print_footer();
 
 ?>