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>";
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";
"<META NAME=\"Description\" CONTENT=\"".stripslashes(strip_tags($site->summary))."\">",
true, "", $headerbutton);
- $side = 165;
+ $side = 175;
?>
// $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") {
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";
}
$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";
<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
</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
<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>