Permalink
Browse files

More style and layout tweaking

  • Loading branch information...
1 parent 4499b2e commit 469e5eb18ee865019a14c698b134164656371c26 moodler committed Dec 9, 2002
Showing with 15 additions and 16 deletions.
  1. +0 −1 course/lib.php
  2. +2 −2 course/weeks.php
  3. +1 −1 index.php
  4. +6 −6 lib/moodlelib.php
  5. +1 −1 lib/setup.php
  6. +4 −4 login/index_form.html
  7. +1 −1 login/signup_form.php
View
@@ -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>";
View
@@ -209,7 +209,7 @@
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
@@ -220,7 +220,7 @@
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";
View
@@ -26,7 +26,7 @@
"<META NAME=\"Description\" CONTENT=\"".stripslashes(strip_tags($site->summary))."\">",
true, "", $headerbutton);
- $side = 165;
+ $side = 175;
?>
View
@@ -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,20 +299,20 @@ 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";
}
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";
}
View
@@ -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";
View
@@ -3,16 +3,16 @@
<TABLE WIDTH="90%" BORDER="0" CELLSPACING="10" CELLPADDING="5" ALIGN="CENTER">
<TR>
<? if ($show_instructions) { ?>
- <TD WIDTH="50%" bgcolor=<?=$THEME->cellheading2?>>
+ <TD WIDTH="50%" bgcolor=<?=$THEME->cellheading2?> class="generaltableheader">
<P ALIGN="CENTER"><B><FONT SIZE=3><? print_string("returningtosite") ?></FONT></B></P>
</TD>
- <TD WIDTH="50%" bgcolor=<?=$THEME->cellheading2?>>
+ <TD WIDTH="50%" bgcolor=<?=$THEME->cellheading2?> class="generaltableheader">
<P ALIGN="CENTER"><B><FONT SIZE=3><? print_string("firsttime") ?></FONT></B></P>
</TD>
<? } ?>
</TR>
<TR>
- <TD WIDTH="50%" VALIGN="TOP" bgcolor="<?=$THEME->cellheading?>"> <FONT SIZE=2>
+ <TD WIDTH="50%" VALIGN="TOP" bgcolor="<?=$THEME->cellcontent2?>"> <FONT SIZE=2>
<P ALIGN="CENTER"><? print_string("loginusing") ?>:<BR>
(<? print_string("cookiesenabled") ?>)<BR>
<? formerr($errormsg) ?>
@@ -74,7 +74,7 @@
</BLOCKQUOTE>
</FONT> </TD>
<? if ($show_instructions) { ?>
- <TD WIDTH="50%" VALIGN="TOP" bgcolor="<?=$THEME->cellheading?>">
+ <TD WIDTH="50%" VALIGN="TOP" bgcolor="<?=$THEME->cellcontent2?>">
<FONT SIZE=2>
<? switch ($CFG->auth) {
case "email": ?>
View
@@ -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>

0 comments on commit 469e5eb

Please sign in to comment.