mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
Changes to put update/edit icons in the headers of module and course pages
This commit is contained in:
parent
c7e3ac2ac2
commit
5575a053d3
@ -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!");
|
||||
|
@ -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>";
|
||||
|
@ -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>";
|
||||
|
@ -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>";
|
||||
|
@ -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%>
|
||||
|
@ -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%>
|
||||
|
Loading…
x
Reference in New Issue
Block a user