Browse files

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

…pages
  • Loading branch information...
1 parent c7e3ac2 commit 5575a053d3d3eb5fc9fbd63417e4a2ec7cb4c96e martin committed Jun 8, 2002
Showing with 22 additions and 17 deletions.
  1. +2 −1 course/view.php
  2. +2 −5 mod/choice/view.php
  3. +2 −5 mod/journal/view.php
  4. +2 −6 mod/survey/view.php
  5. +7 −0 theme/standard/header.html
  6. +7 −0 theme/standardblue/header.html
View
3 course/view.php
@@ -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
7 mod/choice/view.php
@@ -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
7 mod/journal/view.php
@@ -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
8 mod/survey/view.php
@@ -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
7 theme/standard/header.html
@@ -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
7 theme/standardblue/header.html
@@ -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%>

0 comments on commit 5575a05

Please sign in to comment.