]> git.mjollnir.org Git - moodle.git/commitdiff
More style and layout tweaking
authormoodler <moodler>
Mon, 9 Dec 2002 12:09:33 +0000 (12:09 +0000)
committermoodler <moodler>
Mon, 9 Dec 2002 12:09:33 +0000 (12:09 +0000)
course/lib.php
course/weeks.php
index.php
lib/moodlelib.php
lib/setup.php
login/index_form.html
login/signup_form.php

index f583fc036de51e94f69e54921ed85a9f04242dac..f019bb04981c9fb1e411d328e5244870adf19280 100644 (file)
@@ -634,7 +634,6 @@ function print_admin_links ($siteid, $width=180) {
 function print_course_admin_links($course, $width=180) {
     global $THEME, $CFG;
 
-    echo "<BR>";
     $adminicon[]="<IMG SRC=\"$CFG->wwwroot/pix/i/edit.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">";
     if (isediting($course->id)) {
         $admindata[]="<A HREF=\"view.php?id=$course->id&edit=off\">".get_string("turneditingoff")."</A>";
index d8186b5f45758ca9c6c79db643dd9ae641fb1bb5..fed91259880dec362eeabdaa362abcd1ebfcc7ca 100644 (file)
             forum_print_latest_discussions($news->id, $course->newsitems, "minimal", "DESC", false);
             echo "</FONT>";
             print_simple_box_end();
-            echo "<BR>";
+            echo "<BR \>";
         }
         
         // Print all the recent activity
             print_simple_box_end();
         }
     
-        echo "<BR><IMG SRC=\"../pix/spacer.gif\" WIDTH=210 HEIGHT=1>";
+        echo "<BR \><IMG SRC=\"../pix/spacer.gif\" WIDTH=210 HEIGHT=1>";
     }
 
     echo "</TD></TR></TABLE>\n";
index 4874402b6538b5549e8fb1950c1bd778e88a866e..323ddbaa8e7ee3936a1a499b7f2e4d71ea2d261e 100644 (file)
--- a/index.php
+++ b/index.php
@@ -26,7 +26,7 @@
                  "<META NAME=\"Description\" CONTENT=\"".stripslashes(strip_tags($site->summary))."\">",
                  true, "", $headerbutton);
 
-    $side = 165;
+    $side = 175;
 
 ?>
 
index fee36b81b1d0e2df5294677aeae095e3cce87b71..c261e770771c0c0685d665ecde0bce4770257db7 100644 (file)
@@ -21,10 +21,10 @@ function print_header ($title="", $heading="", $navigation="", $focus="", $meta=
 // $menu - HTML code for a popup menu 
     global $USER, $CFG, $THEME;
 
-    if (file_exists("$CFG->dirroot/theme/$CFG->theme/styles.css")) {
-        $styles = "$CFG->wwwroot/theme/$CFG->theme/styles.css";
+    if (file_exists($CFG->stylesheet)) {
+        $styles = $CFG->stylesheet;
     } else {
-        $styles = "$CFG->wwwroot/theme/standard/styles.css";
+        $styles = "$CFG->wwwroot/theme/standard/styles.php";
     }
 
     if ($navigation == "home") {
@@ -299,12 +299,12 @@ function print_table($table) {
 
     print_simple_box_start("CENTER", "$table->width", "#FFFFFF", 0);
     echo "<TABLE WIDTH=100% BORDER=0 valign=top align=center ";
-    echo " cellpadding=\"$table->cellpadding\" cellspacing=\"$table->cellspacing\">\n";
+    echo " cellpadding=\"$table->cellpadding\" cellspacing=\"$table->cellspacing\" class=\"generaltable\">\n";
 
     if ($table->head) {
         echo "<TR>";
         foreach ($table->head as $key => $heading) {
-            echo "<TH VALIGN=top ".$align[$key].$size[$key]." NOWRAP>$heading</TH>";
+            echo "<TH VALIGN=top ".$align[$key].$size[$key]." NOWRAP class=\"generaltableheader\">$heading</TH>";
         }
         echo "</TR>\n";
     }
@@ -312,7 +312,7 @@ function print_table($table) {
     foreach ($table->data as $row) {
         echo "<TR VALIGN=TOP>";
         foreach ($row as $key => $item) {
-            echo "<TD ".$align[$key].$size[$key].">$item</TD>";
+            echo "<TD ".$align[$key].$size[$key]." class=\"generaltablecell\">$item</TD>";
         }
         echo "</TR>\n";
     }
index ab9c5db0c5ed5deb101de4d1bbb3e18f4c901b6d..0e04b3b8f4a327916a42a0f3f1f28de9a91e15da 100644 (file)
@@ -53,7 +53,7 @@
 
     $CFG->wordlist    = "$CFG->libdir/wordlist.txt";
     $CFG->javascript  = "$CFG->libdir/javascript.php";
-    $CFG->stylesheet  = "$CFG->wwwroot/theme/$CFG->theme/styles.css";
+    $CFG->stylesheet  = "$CFG->wwwroot/theme/$CFG->theme/styles.php";
     $CFG->header      = "$CFG->dirroot/theme/$CFG->theme/header.html";
     $CFG->footer      = "$CFG->dirroot/theme/$CFG->theme/footer.html";
     $CFG->moddata     = "moddata";
index 91d174e92c23ee4109b637958357ccf9b6a089de..41ff81378ec5dc7ddb4160aa121f21d9a20da244 100644 (file)
@@ -3,16 +3,16 @@
 <TABLE WIDTH="90%" BORDER="0" CELLSPACING="10" CELLPADDING="5" ALIGN="CENTER">\r
   <TR>\r
     <? if ($show_instructions) { ?>\r
-        <TD WIDTH="50%" bgcolor=<?=$THEME->cellheading2?>>\r
+        <TD WIDTH="50%" bgcolor=<?=$THEME->cellheading2?> class="generaltableheader">\r
           <P ALIGN="CENTER"><B><FONT SIZE=3><? print_string("returningtosite") ?></FONT></B></P>\r
         </TD>\r
-        <TD WIDTH="50%" bgcolor=<?=$THEME->cellheading2?>>\r
+        <TD WIDTH="50%" bgcolor=<?=$THEME->cellheading2?> class="generaltableheader">\r
           <P ALIGN="CENTER"><B><FONT SIZE=3><? print_string("firsttime") ?></FONT></B></P>\r
         </TD>\r
     <? } ?>\r
   </TR>\r
   <TR>\r
-    <TD WIDTH="50%" VALIGN="TOP" bgcolor="<?=$THEME->cellheading?>"> <FONT SIZE=2> \r
+    <TD WIDTH="50%" VALIGN="TOP" bgcolor="<?=$THEME->cellcontent2?>"> <FONT SIZE=2> \r
       <P ALIGN="CENTER"><? print_string("loginusing") ?>:<BR>\r
       (<? print_string("cookiesenabled") ?>)<BR>\r
          <? formerr($errormsg) ?>\r
@@ -74,7 +74,7 @@
         </BLOCKQUOTE>\r
       </FONT> </TD>\r
     <? if ($show_instructions) { ?>\r
-        <TD WIDTH="50%" VALIGN="TOP" bgcolor="<?=$THEME->cellheading?>">\r
+        <TD WIDTH="50%" VALIGN="TOP" bgcolor="<?=$THEME->cellcontent2?>">\r
           <FONT SIZE=2>\r
           <? switch ($CFG->auth) {\r
                case "email":             ?>\r
index ec82a6a0db47e9a8ed1a9bbfb3a40142cacc495b..ac50411200e509ebafd68267e71cf0bda2e52072 100644 (file)
@@ -1,5 +1,5 @@
 <CENTER>
-<table cellpadding=20> <tr> <td bgcolor="<?=$THEME->cellheading ?>">
+<table cellpadding=20> <tr> <td bgcolor="<?=$THEME->cellcontent2 ?>">
 
 <form name="form" method="post" action="signup.php">
 <table>