Skip to content

Commit

Permalink
More fixes for course formats
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Dec 9, 2002
1 parent da00d31 commit e545445
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
19 changes: 10 additions & 9 deletions course/social.php
Expand Up @@ -4,11 +4,13 @@


include_once("$CFG->dirroot/mod/forum/lib.php"); include_once("$CFG->dirroot/mod/forum/lib.php");
include_once("$CFG->dirroot/mod/resource/lib.php"); include_once("$CFG->dirroot/mod/resource/lib.php");

$leftwidth = 210;
?> ?>


<TABLE WIDTH="100%" BORDER="0" CELLSPACING="5" CELLPADDING="5"> <TABLE WIDTH="100%" BORDER="0" CELLSPACING="5" CELLPADDING="5">
<TR> <TR>
<TD WIDTH="200" VALIGN="TOP"> <TD WIDTH="<?=$leftwidth?>" VALIGN="TOP">
<? <?
$moddata[]="<A TITLE=\"".get_string("listofallpeople")."\" HREF=\"../user/index.php?id=$course->id\">".get_string("participants")."</A>"; $moddata[]="<A TITLE=\"".get_string("listofallpeople")."\" HREF=\"../user/index.php?id=$course->id\">".get_string("participants")."</A>";
$modicon[]="<IMG SRC=\"../user/users.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">"; $modicon[]="<IMG SRC=\"../user/users.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">";
Expand All @@ -20,7 +22,7 @@
$moddata[]= $editmyprofile." <BLINK>*</BLINK>"; $moddata[]= $editmyprofile." <BLINK>*</BLINK>";
} }
$modicon[]="<IMG SRC=\"../user/user.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">"; $modicon[]="<IMG SRC=\"../user/user.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">";
print_side_block(get_string("people"), "", $moddata, $modicon); print_side_block(get_string("people"), "", $moddata, $modicon, "", $leftwidth);






Expand All @@ -30,28 +32,27 @@




/// Print all the recent activity /// Print all the recent activity
// Print all the recent activity
if ($course->showrecent) { if ($course->showrecent) {
print_heading_block(get_string("recentactivity")); print_side_block_start(get_string("recentactivity"), $leftwidth, "sideblockrecentactivity");
print_simple_box_start("CENTER", "100%", $THEME->body, 3, 0);
print_recent_activity($course); print_recent_activity($course);
print_simple_box_end(); print_side_block_end();
echo "<BR>";
} }




/// Print a form to search forums /// Print a form to search forums
$searchform = forum_print_search_form($course, "", true); $searchform = forum_print_search_form($course, "", true);
$searchform = "<DIV ALIGN=\"CENTER\">$searchform</DIV>"; $searchform = "<DIV ALIGN=\"CENTER\">$searchform</DIV>";
print_side_block(get_string("search","forum"), $searchform); print_side_block(get_string("search","forum"), $searchform, "", "", "", $leftwidth);


/// Admin links and controls /// Admin links and controls
if (isteacher($course->id)) { if (isteacher($course->id)) {
print_course_admin_links($course, "100%"); print_course_admin_links($course, "100%", $leftwidth);
} }


echo "</TD>"; echo "</TD>";


echo "<TD WIDTH=\"100%\" VALIGN=\"TOP\">"; echo "<TD WIDTH=\"*\" VALIGN=\"TOP\">";
if ($social = forum_get_course_forum($course->id, "social")) { if ($social = forum_get_course_forum($course->id, "social")) {
if (forum_is_subscribed($USER->id, $social->id)) { if (forum_is_subscribed($USER->id, $social->id)) {
$subtext = get_string("unsubscribe", "forum"); $subtext = get_string("unsubscribe", "forum");
Expand Down
1 change: 1 addition & 0 deletions course/weeks.php
Expand Up @@ -77,6 +77,7 @@
/// Start main column /// Start main column
echo "</TD><TD WIDTH=\"*\">"; echo "</TD><TD WIDTH=\"*\">";
print_heading_block(get_string("weeklyoutline"), "100%", "outlineheadingblock"); print_heading_block(get_string("weeklyoutline"), "100%", "outlineheadingblock");
print_spacer(8, 1, true);


echo "<table class=\"weeklyoutline\" border=\"0\" cellpadding=\"8\" cellspacing=\"0\" width=\"100%\">"; echo "<table class=\"weeklyoutline\" border=\"0\" cellpadding=\"8\" cellspacing=\"0\" width=\"100%\">";


Expand Down

0 comments on commit e545445

Please sign in to comment.