]> git.mjollnir.org Git - moodle.git/commitdiff
Changes to put update/edit icons in the headers of module and course pages
authormartin <martin>
Sat, 8 Jun 2002 06:52:00 +0000 (06:52 +0000)
committermartin <martin>
Sat, 8 Jun 2002 06:52:00 +0000 (06:52 +0000)
course/view.php
mod/choice/view.php
mod/journal/view.php
mod/survey/view.php
theme/standard/header.html
theme/standardblue/header.html

index a91c9616bdc1907e92c3033cc1f515be44f87aa4..1e9be96294889a66aed21fad61afcb8149198337 100644 (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!");
index d4f166f91f55c4b6a5a36aa7631b49a73d9a22d6..d2db4da2fd4aaccf8af528549c11a218806c7f23 100644 (file)
 
     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>";
index ad58950778321855f3923259afafb0c1ace9fa9d..b5f940677643629e6edb635bb60dfcffdfd9ea75 100644 (file)
 
     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>";
index 622766b5fdff504c629498af59a5118b4ce3f0fe..3c08683639e2083faabab3e1e5ca63c48677a99f 100644 (file)
 
     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>";
index 8ff65791e350f9dec672d1af57081be3cf3de07e..5191319795a13939474c8d1ab93025f41d8a2ca3 100644 (file)
 
 <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%>
index 38074903d763a669cbb96c2895057084257e7cc2..d882d4204823ecd096d0657dd9f4e70ea570f676 100644 (file)
 
 <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%>