Tweaks and tidy-ups for course home pages (weekly and topics)

This commit is contained in:
martin
2002-08-10 13:42:12 +00:00
parent b0ccbd923b
commit 2c0411e2ed
6 changed files with 113 additions and 68 deletions
+5 -3
View File
@@ -199,10 +199,12 @@ function update_course_icon($courseid) {
if (isteacher($courseid)) {
if ($USER->editing) {
return "<A TITLE=\"Turn editing OFF\" HREF=\"$CFG->wwwroot/course/view.php?id=$courseid&edit=off\"
return "<A TITLE=\"".get_string("turneditingoff")."\"
HREF=\"$CFG->wwwroot/course/view.php?id=$courseid&edit=off\"
TARGET=_top><IMG SRC=\"$CFG->wwwroot/pix/i/edit.gif\" ALIGN=right BORDER=0></A>";
} else {
return "<A TITLE=\"Turn editing ON\" HREF=\"$CFG->wwwroot/course/view.php?id=$courseid&edit=on\"
return "<A TITLE=\"".get_string("turneditingon")."\"
HREF=\"$CFG->wwwroot/course/view.php?id=$courseid&edit=on\"
TARGET=_top><IMG SRC=\"$CFG->wwwroot/pix/i/edit.gif\" ALIGN=right BORDER=0></A>";
}
}
@@ -212,7 +214,7 @@ function update_module_icon($moduleid, $courseid) {
global $CFG;
if (isteacher($courseid)) {
return "<A TITLE=\"Edit this activity\" HREF=\"$CFG->wwwroot/course/mod.php?update=$moduleid&return=true\" TARGET=_top><IMG SRC=\"$CFG->wwwroot/pix/i/edit.gif\" ALIGN=right BORDER=0></A>";
return "<A TITLE=\"".get_string("editthisactivity")."\" HREF=\"$CFG->wwwroot/course/mod.php?update=$moduleid&return=true\" TARGET=_top><IMG SRC=\"$CFG->wwwroot/pix/i/edit.gif\" ALIGN=right BORDER=0></A>";
}
}