Changes to put update/edit icons in the headers of module and course pages

This commit is contained in:
martin 2002-06-08 06:52:00 +00:00
parent c7e3ac2ac2
commit 5575a053d3
6 changed files with 22 additions and 17 deletions

View File

@ -31,7 +31,8 @@
redirect("$CFG->wwwroot");
}
print_header("Course: $course->fullname", "$course->fullname", "$course->shortname", "");
print_header("Course: $course->fullname", "$course->fullname", "$course->shortname", "", "", true,
update_course_icon($course->id));
if (! $modtypes = get_records_sql_menu("SELECT name,fullname FROM modules ORDER BY fullname") ) {
error("No modules are installed!");

View File

@ -48,11 +48,8 @@
print_header("$course->shortname: $choice->name", "$course->fullname",
"<A HREF=../../course/view.php?id=$course->id>$course->shortname</A> ->
<A HREF=index.php?id=$course->id>Choices</A> -> $choice->name", "");
if ($USER->editing) {
print_update_module_icon($cm->id);
}
<A HREF=index.php?id=$course->id>Choices</A> -> $choice->name", "", "", true,
update_module_icon($cm->id));
if (isteacher($course->id)) {
echo "<P align=right><A HREF=\"report.php?id=$cm->id\">View all responses</A></P>";

View File

@ -28,11 +28,8 @@
print_header("$course->shortname: $journal->name", "$course->fullname",
"<A HREF=../../course/view.php?id=$course->id>$course->shortname</A> ->
<A HREF=index.php?id=$course->id>Journals</A> -> $journal->name", "");
if ($USER->editing) {
print_update_module_icon($cm->id);
}
<A HREF=index.php?id=$course->id>Journals</A> -> $journal->name", "", "", true,
update_module_icon($cm->id));
if (isteacher($course->id)) {
echo "<P align=right><A HREF=\"report.php?id=$cm->id\">View all responses</A></P>";

View File

@ -22,12 +22,8 @@
print_header("$course->shortname: $survey->name", "$course->fullname",
"<A HREF=../../course/view.php?id=$course->id>$course->shortname</A> ->
<A HREF=index.php?id=$course->id>Surveys</A> -> $survey->name", "");
if ($USER->editing) {
print_update_module_icon($cm->id);
}
<A HREF=index.php?id=$course->id>Surveys</A> -> $survey->name", "", "", true,
update_module_icon($cm->id));
if (isteacher($course->id)) {
echo "<P align=right><A HREF=\"report.php?id=$cm->id\">View all responses</A></P>";

View File

@ -10,9 +10,16 @@
<BODY <? if ($focus) { echo "onLoad=setfocus()"; } ?> bgcolor="<?=$THEME->body ?>" link="#000066" vlink="#222288">
<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0 BORDER=0>
<TR><TD ALIGN=LEFT VALIGN=TOP>
<? if ($heading) { ?>
<FONT FACE="Trebuchet MS, Verdana, Arial, Helvetica, sans-serif" SIZE=4><B><?=$heading?></B></FONT>
<? } ?>
</TD><TD ALIGN=RIGHT VALIGN=TOP>
<? if ($button) {
echo "$button";
} ?>
</TD></TR></TABLE>
<? if ($navigation) { ?>
<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=100%>

View File

@ -10,9 +10,16 @@
<BODY <? if ($focus) { echo "onLoad=setfocus()"; } ?> bgcolor="<?=$THEME->body ?>" link="#000066" vlink="#222288">
<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0 BORDER=0>
<TR><TD ALIGN=LEFT VALIGN=TOP>
<? if ($heading) { ?>
<FONT FACE="Trebuchet MS, Verdana, Arial, Helvetica, sans-serif" SIZE=4><B><?=$heading?></B></FONT>
<? } ?>
</TD><TD ALIGN=RIGHT VALIGN=TOP>
<? if ($button) {
echo "$button";
} ?>
</TD></TR></TABLE>
<? if ($navigation) { ?>
<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=100%>