mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Removed notices by introducing new function print_header_simple() which works on site as well as in courses without extra logic.
This commit is contained in:
parent
64c3e85374
commit
90fcc576ea
49 changed files with 1530 additions and 1709 deletions
|
@ -1153,6 +1153,26 @@ function print_header ($title="", $heading="", $navigation="", $focus="", $meta=
|
||||||
include ("$CFG->dirroot/theme/$CFG->theme/header.html");
|
include ("$CFG->dirroot/theme/$CFG->theme/header.html");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function print_header_simple($title="", $heading="", $navigation="", $focus="", $meta="",
|
||||||
|
$cache=true, $button=" ", $menu="", $usexml=false, $bodytags="") {
|
||||||
|
/// This version of print_header is simpler because the course name does not have to be
|
||||||
|
/// provided explicitly in the strings. It can be used on the site page as in courses
|
||||||
|
/// Eventually all print_header could be replaced by print_header_simple
|
||||||
|
|
||||||
|
global $course; // The same hack is used in print_header
|
||||||
|
|
||||||
|
$shortname ='';
|
||||||
|
if ($course->category) {
|
||||||
|
$shortname = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->";
|
||||||
|
}
|
||||||
|
|
||||||
|
print_header("$course->shortname: $title", "$course->fullname $heading", "$shortname $navigation", $focus, $meta,
|
||||||
|
$cache, $button, $menu, $usexml, $bodytags);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function print_footer ($course=NULL, $usercourse=NULL) {
|
function print_footer ($course=NULL, $usercourse=NULL) {
|
||||||
// Can provide a course object to make the footer contain a link to
|
// Can provide a course object to make the footer contain a link to
|
||||||
// to the course home page, otherwise the link will go to the site home
|
// to the course home page, otherwise the link will go to the site home
|
||||||
|
|
|
@ -12,10 +12,6 @@
|
||||||
require_login($course->id);
|
require_login($course->id);
|
||||||
add_to_log($course->id, "assignment", "view all", "index.php?id=$course->id", "");
|
add_to_log($course->id, "assignment", "view all", "index.php?id=$course->id", "");
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strassignments = get_string("modulenameplural", "assignment");
|
$strassignments = get_string("modulenameplural", "assignment");
|
||||||
$strassignment = get_string("modulename", "assignment");
|
$strassignment = get_string("modulename", "assignment");
|
||||||
$strweek = get_string("week");
|
$strweek = get_string("week");
|
||||||
|
@ -25,7 +21,7 @@
|
||||||
$strsubmitted = get_string("submitted", "assignment");
|
$strsubmitted = get_string("submitted", "assignment");
|
||||||
|
|
||||||
|
|
||||||
print_header("$course->shortname: $strassignments", "$course->fullname", "$navigation $strassignments", "", "", true, "", navmenu($course));
|
print_header_simple($strassignments, "", $strassignments, "", "", true, "", navmenu($course));
|
||||||
|
|
||||||
if (! $assignments = get_all_instances_in_course("assignment", $course)) {
|
if (! $assignments = get_all_instances_in_course("assignment", $course)) {
|
||||||
notice("There are no assignments", "../../course/view.php?id=$course->id");
|
notice("There are no assignments", "../../course/view.php?id=$course->id");
|
||||||
|
|
|
@ -27,17 +27,13 @@
|
||||||
error("Only teachers can look at this page");
|
error("Only teachers can look at this page");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strassignments = get_string("modulenameplural", "assignment");
|
$strassignments = get_string("modulenameplural", "assignment");
|
||||||
$strassignment = get_string("modulename", "assignment");
|
$strassignment = get_string("modulename", "assignment");
|
||||||
$strsubmissions = get_string("submissions", "assignment");
|
$strsubmissions = get_string("submissions", "assignment");
|
||||||
$strsaveallfeedback = get_string("saveallfeedback", "assignment");
|
$strsaveallfeedback = get_string("saveallfeedback", "assignment");
|
||||||
|
|
||||||
print_header("$course->shortname: $assignment->name", "$course->fullname",
|
print_header_simple($assignment->name, "",
|
||||||
"$navigation <a href=\"index.php?id=$course->id\">$strassignments</a> ->
|
"<a href=\"index.php?id=$course->id\">$strassignments</a> ->
|
||||||
<a href=\"view.php?a=$assignment->id\">$assignment->name</a> -> $strsubmissions",
|
<a href=\"view.php?a=$assignment->id\">$assignment->name</a> -> $strsubmissions",
|
||||||
"", "", true, update_module_button($cm->id, $course->id, $strassignment), navmenu($course, $cm));
|
"", "", true, update_module_button($cm->id, $course->id, $strassignment), navmenu($course, $cm));
|
||||||
|
|
||||||
|
|
|
@ -25,15 +25,12 @@
|
||||||
|
|
||||||
add_to_log($course->id, "assignment", "upload", "view.php?a=$assignment->id", "$assignment->id", $cm->id);
|
add_to_log($course->id, "assignment", "upload", "view.php?a=$assignment->id", "$assignment->id", $cm->id);
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
$strassignments = get_string("modulenameplural", "assignment");
|
$strassignments = get_string("modulenameplural", "assignment");
|
||||||
$strassignment = get_string("modulename", "assignment");
|
$strassignment = get_string("modulename", "assignment");
|
||||||
$strupload = get_string("upload");
|
$strupload = get_string("upload");
|
||||||
|
|
||||||
print_header("$course->shortname: $assignment->name : $strupload", "$course->fullname",
|
print_header_simple("$assignment->name : $strupload", "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strassignments</A> ->
|
"<A HREF=index.php?id=$course->id>$strassignments</A> ->
|
||||||
<A HREF=\"view.php?a=$assignment->id\">$assignment->name</A> -> $strupload",
|
<A HREF=\"view.php?a=$assignment->id\">$assignment->name</A> -> $strupload",
|
||||||
"", "", true);
|
"", "", true);
|
||||||
|
|
||||||
|
|
|
@ -35,15 +35,11 @@
|
||||||
|
|
||||||
add_to_log($course->id, "assignment", "view", "view.php?id=$cm->id", $assignment->id, $cm->id);
|
add_to_log($course->id, "assignment", "view", "view.php?id=$cm->id", $assignment->id, $cm->id);
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strassignments = get_string("modulenameplural", "assignment");
|
$strassignments = get_string("modulenameplural", "assignment");
|
||||||
$strassignment = get_string("modulename", "assignment");
|
$strassignment = get_string("modulename", "assignment");
|
||||||
|
|
||||||
print_header("$course->shortname: $assignment->name", "$course->fullname",
|
print_header_simple($assignment->name, "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strassignments</A> -> $assignment->name",
|
"<A HREF=index.php?id=$course->id>$strassignments</A> -> $assignment->name",
|
||||||
"", "", true, update_module_button($cm->id, $course->id, $strassignment), navmenu($course, $cm));
|
"", "", true, update_module_button($cm->id, $course->id, $strassignment), navmenu($course, $cm));
|
||||||
|
|
||||||
if (isteacher($course->id)) {
|
if (isteacher($course->id)) {
|
||||||
|
|
|
@ -26,11 +26,7 @@
|
||||||
|
|
||||||
/// Print the header
|
/// Print the header
|
||||||
|
|
||||||
if ($course->category) {
|
print_header_simple($strattendance, "", "$strattendances", "", "", true, "", navmenu($course));
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
print_header("$course->shortname: $strattendance", "$course->fullname", "$navigation $strattendances", "", "", true, "", navmenu($course));
|
|
||||||
|
|
||||||
/// Get all the appropriate data
|
/// Get all the appropriate data
|
||||||
|
|
||||||
|
|
|
@ -34,16 +34,12 @@
|
||||||
|
|
||||||
/// Print the page header
|
/// Print the page header
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strattendances = get_string("modulenameplural", "attendance");
|
$strattendances = get_string("modulenameplural", "attendance");
|
||||||
$strattendance = get_string("modulename", "attendance");
|
$strattendance = get_string("modulename", "attendance");
|
||||||
$strteacheredit = get_string("teacheredit", "attendance");
|
$strteacheredit = get_string("teacheredit", "attendance");
|
||||||
|
|
||||||
print_header("$course->shortname: $attendance->name", "$course->fullname",
|
print_header_simple($attendance->name, "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strattendances</A> -> $attendance->name",
|
"<A HREF=index.php?id=$course->id>$strattendances</A> -> $attendance->name",
|
||||||
"", "", true, update_module_button($cm->id, $course->id, $strattendance),
|
"", "", true, update_module_button($cm->id, $course->id, $strattendance),
|
||||||
navmenu($course, $cm));
|
navmenu($course, $cm));
|
||||||
|
|
||||||
|
|
|
@ -474,15 +474,12 @@ function attendance_print_header() {
|
||||||
global $course, $cm;
|
global $course, $cm;
|
||||||
|
|
||||||
/// Print the page header
|
/// Print the page header
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strattendances = get_string("modulenameplural", "attendance");
|
$strattendances = get_string("modulenameplural", "attendance");
|
||||||
$strattendance = get_string("modulename", "attendance");
|
$strattendance = get_string("modulename", "attendance");
|
||||||
$strallattendance = get_string("allmodulename", "attendance");
|
$strallattendance = get_string("allmodulename", "attendance");
|
||||||
print_header("$course->shortname: $strallattendance", "$course->fullname",
|
print_header_simple("$strallattendance", "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strattendances</A> -> $strallattendance",
|
"<A HREF=index.php?id=$course->id>$strattendances</A> -> $strallattendance",
|
||||||
"", "", true, " ",
|
"", "", true, " ",
|
||||||
navmenu($course, $cm));
|
navmenu($course, $cm));
|
||||||
}
|
}
|
||||||
|
|
|
@ -516,15 +516,12 @@ function attendance_print_header() {
|
||||||
|
|
||||||
|
|
||||||
/// Print the page header
|
/// Print the page header
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strattendances = get_string("modulenameplural", "attendance");
|
$strattendances = get_string("modulenameplural", "attendance");
|
||||||
$strattendance = get_string("modulename", "attendance");
|
$strattendance = get_string("modulename", "attendance");
|
||||||
$strweekattendance = get_string("weekmodulename", "attendance");
|
$strweekattendance = get_string("weekmodulename", "attendance");
|
||||||
print_header("$course->shortname: $strallattendance", "$course->fullname",
|
print_header_simple("$strallattendance", "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strattendances</A> -> $strweekattendance",
|
"<A HREF=index.php?id=$course->id>$strattendances</A> -> $strweekattendance",
|
||||||
"", "", true, " ",
|
"", "", true, " ",
|
||||||
navmenu($course, $cm));
|
navmenu($course, $cm));
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,11 +22,7 @@
|
||||||
|
|
||||||
/// Print the header
|
/// Print the header
|
||||||
|
|
||||||
if ($course->category) {
|
print_header_simple($strchats, "", $strchats, "", "", true, "", navmenu($course));
|
||||||
$navigation = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
print_header("$course->shortname: $strchats", "$course->fullname", "$navigation $strchats", "", "", true, "", navmenu($course));
|
|
||||||
|
|
||||||
/// Get all the appropriate data
|
/// Get all the appropriate data
|
||||||
|
|
||||||
|
|
|
@ -33,12 +33,6 @@
|
||||||
|
|
||||||
add_to_log($course->id, "chat", "report", "report.php?id=$cm->id", "$chat->id", "$cm->id");
|
add_to_log($course->id, "chat", "report", "report.php?id=$cm->id", "$chat->id", "$cm->id");
|
||||||
|
|
||||||
/// Print the page header
|
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strchats = get_string("modulenameplural", "chat");
|
$strchats = get_string("modulenameplural", "chat");
|
||||||
$strchat = get_string("modulename", "chat");
|
$strchat = get_string("modulename", "chat");
|
||||||
$strchatreport = get_string("chatreport", "chat");
|
$strchatreport = get_string("chatreport", "chat");
|
||||||
|
@ -58,8 +52,8 @@
|
||||||
$groupparam = "";
|
$groupparam = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
print_header("$course->shortname: $chat->name: $strchatreport", "$course->fullname",
|
print_header_simple("$chat->name: $strchatreport", "",
|
||||||
"$navigation <a href=\"index.php?id=$course->id\">$strchats</a> ->
|
"<a href=\"index.php?id=$course->id\">$strchats</a> ->
|
||||||
<a href=\"view.php?id=$cm->id\">$chat->name</a> ->
|
<a href=\"view.php?id=$cm->id\">$chat->name</a> ->
|
||||||
<a href=\"report.php?id=$cm->id\">$strchatreport</a>",
|
<a href=\"report.php?id=$cm->id\">$strchatreport</a>",
|
||||||
"", "", true, "", navmenu($course, $cm));
|
"", "", true, "", navmenu($course, $cm));
|
||||||
|
@ -97,8 +91,8 @@
|
||||||
|
|
||||||
/// Print the Sessions display
|
/// Print the Sessions display
|
||||||
|
|
||||||
print_header("$course->shortname: $chat->name: $strchatreport", "$course->fullname",
|
print_header_simple("$chat->name: $strchatreport", "",
|
||||||
"$navigation <a href=\"index.php?id=$course->id\">$strchats</a> ->
|
"<a href=\"index.php?id=$course->id\">$strchats</a> ->
|
||||||
<a href=\"view.php?id=$cm->id\">$chat->name</a> -> $strchatreport",
|
<a href=\"view.php?id=$cm->id\">$chat->name</a> -> $strchatreport",
|
||||||
"", "", true, "", navmenu($course, $cm));
|
"", "", true, "", navmenu($course, $cm));
|
||||||
|
|
||||||
|
|
|
@ -43,10 +43,6 @@
|
||||||
|
|
||||||
/// Print the page header
|
/// Print the page header
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strchats = get_string("modulenameplural", "chat");
|
$strchats = get_string("modulenameplural", "chat");
|
||||||
$strchat = get_string("modulename", "chat");
|
$strchat = get_string("modulename", "chat");
|
||||||
$strenterchat = get_string("enterchat", "chat");
|
$strenterchat = get_string("enterchat", "chat");
|
||||||
|
@ -54,8 +50,8 @@
|
||||||
$strcurrentusers = get_string("currentusers", "chat");
|
$strcurrentusers = get_string("currentusers", "chat");
|
||||||
$strnextsession = get_string("nextsession", "chat");
|
$strnextsession = get_string("nextsession", "chat");
|
||||||
|
|
||||||
print_header("$course->shortname: $chat->name", "$course->fullname",
|
print_header_simple("$chat->name", "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strchats</A> -> $chat->name",
|
"<A HREF=index.php?id=$course->id>$strchats</A> -> $chat->name",
|
||||||
"", "", true, update_module_button($cm->id, $course->id, $strchat),
|
"", "", true, update_module_button($cm->id, $course->id, $strchat),
|
||||||
navmenu($course, $cm));
|
navmenu($course, $cm));
|
||||||
|
|
||||||
|
|
|
@ -13,17 +13,11 @@
|
||||||
|
|
||||||
add_to_log($course->id, "choice", "view all", "index?id=$course->id", "");
|
add_to_log($course->id, "choice", "view all", "index?id=$course->id", "");
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
} else {
|
|
||||||
$navigation = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strchoice = get_string("modulename", "choice");
|
$strchoice = get_string("modulename", "choice");
|
||||||
$strchoices = get_string("modulenameplural", "choice");
|
$strchoices = get_string("modulenameplural", "choice");
|
||||||
|
|
||||||
print_header("$course->shortname: $strchoices", "$course->fullname",
|
print_header_simple("$strchoices", "",
|
||||||
"$navigation $strchoices", "", "", true, "", navmenu($course));
|
"$strchoices", "", "", true, "", navmenu($course));
|
||||||
|
|
||||||
|
|
||||||
if (! $choices = get_all_instances_in_course("choice", $course)) {
|
if (! $choices = get_all_instances_in_course("choice", $course)) {
|
||||||
|
|
|
@ -61,13 +61,8 @@
|
||||||
|
|
||||||
add_to_log($course->id, "choice", "view", "view.php?id=$cm->id", $choice->id, $cm->id);
|
add_to_log($course->id, "choice", "view", "view.php?id=$cm->id", $choice->id, $cm->id);
|
||||||
|
|
||||||
if ($course->category) {
|
print_header_simple("$choice->name", "",
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
"<A HREF=index.php?id=$course->id>$strchoices</A> -> $choice->name", "", "", true,
|
||||||
} else {
|
|
||||||
$navigation = "";
|
|
||||||
}
|
|
||||||
print_header("$course->shortname: $choice->name", "$course->fullname",
|
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strchoices</A> -> $choice->name", "", "", true,
|
|
||||||
update_module_button($cm->id, $course->id, $strchoice), navmenu($course, $cm));
|
update_module_button($cm->id, $course->id, $strchoice), navmenu($course, $cm));
|
||||||
|
|
||||||
/// Check to see if groups are being used in this choice
|
/// Check to see if groups are being used in this choice
|
||||||
|
|
|
@ -37,17 +37,12 @@
|
||||||
// set up some general variables
|
// set up some general variables
|
||||||
$usehtmleditor = can_use_html_editor();
|
$usehtmleditor = can_use_html_editor();
|
||||||
|
|
||||||
$navigation = "";
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strdialogues = get_string("modulenameplural", "dialogue");
|
$strdialogues = get_string("modulenameplural", "dialogue");
|
||||||
$strdialogue = get_string("modulename", "dialogue");
|
$strdialogue = get_string("modulename", "dialogue");
|
||||||
|
|
||||||
// ... print the header and...
|
// ... print the header and...
|
||||||
print_header("$course->shortname: $dialogue->name", "$course->fullname",
|
print_header_simple("$dialogue->name", "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strdialogues</A> ->
|
"<A HREF=index.php?id=$course->id>$strdialogues</A> ->
|
||||||
<A HREF=\"view.php?id=$cm->id\">$dialogue->name</A>",
|
<A HREF=\"view.php?id=$cm->id\">$dialogue->name</A>",
|
||||||
"", "", true);
|
"", "", true);
|
||||||
|
|
||||||
|
|
|
@ -13,17 +13,13 @@
|
||||||
require_login($course->id);
|
require_login($course->id);
|
||||||
add_to_log($course->id, "dialogue", "view all", "index.php?id=$course->id", "");
|
add_to_log($course->id, "dialogue", "view all", "index.php?id=$course->id", "");
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strdialogue = get_string("modulename", "dialogue");
|
$strdialogue = get_string("modulename", "dialogue");
|
||||||
$strdialogues = get_string("modulenameplural", "dialogue");
|
$strdialogues = get_string("modulenameplural", "dialogue");
|
||||||
$strname = get_string("name");
|
$strname = get_string("name");
|
||||||
$stropendialogues = get_string("open", "dialogue")." ".$strdialogues;
|
$stropendialogues = get_string("open", "dialogue")." ".$strdialogues;
|
||||||
$strcloseddialogues = get_string("closed", "dialogue")." ".$strdialogues;
|
$strcloseddialogues = get_string("closed", "dialogue")." ".$strdialogues;
|
||||||
|
|
||||||
print_header("$course->shortname: $strdialogues", "$course->fullname", "$navigation $strdialogues",
|
print_header_simple("$strdialogues", "", "$strdialogues",
|
||||||
"", "", true, "", navmenu($course));
|
"", "", true, "", navmenu($course));
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -29,15 +29,11 @@
|
||||||
// set up some general variables
|
// set up some general variables
|
||||||
$usehtmleditor = can_use_html_editor();
|
$usehtmleditor = can_use_html_editor();
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strdialogue = get_string("modulename", "dialogue");
|
$strdialogue = get_string("modulename", "dialogue");
|
||||||
$strdialogues = get_string("modulenameplural", "dialogue");
|
$strdialogues = get_string("modulenameplural", "dialogue");
|
||||||
|
|
||||||
print_header("$course->shortname: $dialogue->name", "$course->fullname",
|
print_header_simple("$dialogue->name", "",
|
||||||
"$navigation <a href=\"index.php?id=$course->id\">$strdialogues</a> -> $dialogue->name",
|
"<a href=\"index.php?id=$course->id\">$strdialogues</a> -> $dialogue->name",
|
||||||
"", "", true,
|
"", "", true,
|
||||||
update_module_button($cm->id, $course->id, $strdialogue), navmenu($course, $cm));
|
update_module_button($cm->id, $course->id, $strdialogue), navmenu($course, $cm));
|
||||||
|
|
||||||
|
|
|
@ -51,18 +51,13 @@
|
||||||
|
|
||||||
require_login($course->id);
|
require_login($course->id);
|
||||||
|
|
||||||
$navigation = "";
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strexercises = get_string("modulenameplural", "exercise");
|
$strexercises = get_string("modulenameplural", "exercise");
|
||||||
$strexercise = get_string("modulename", "exercise");
|
$strexercise = get_string("modulename", "exercise");
|
||||||
$strassessments = get_string("assessments", "exercise");
|
$strassessments = get_string("assessments", "exercise");
|
||||||
|
|
||||||
// ... print the header and...
|
// ... print the header and...
|
||||||
print_header("$course->shortname: $exercise->name", "$course->fullname",
|
print_header_simple("$exercise->name", "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strexercises</A> ->
|
"<A HREF=index.php?id=$course->id>$strexercises</A> ->
|
||||||
<A HREF=\"view.php?id=$cm->id\">$exercise->name</A> -> $strassessments",
|
<A HREF=\"view.php?id=$cm->id\">$exercise->name</A> -> $strassessments",
|
||||||
"", "", true);
|
"", "", true);
|
||||||
|
|
||||||
|
|
|
@ -13,10 +13,6 @@
|
||||||
require_login($course->id);
|
require_login($course->id);
|
||||||
add_to_log($course->id, "exercise", "view all", "index.php?id=$course->id", "");
|
add_to_log($course->id, "exercise", "view all", "index.php?id=$course->id", "");
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strexercises = get_string("modulenameplural", "exercise");
|
$strexercises = get_string("modulenameplural", "exercise");
|
||||||
$strexercise = get_string("modulename", "exercise");
|
$strexercise = get_string("modulename", "exercise");
|
||||||
$strweek = get_string("week");
|
$strweek = get_string("week");
|
||||||
|
@ -28,7 +24,7 @@
|
||||||
$strdeadline = get_string("deadline", "exercise");
|
$strdeadline = get_string("deadline", "exercise");
|
||||||
$strsubmitted = get_string("submitted", "assignment");
|
$strsubmitted = get_string("submitted", "assignment");
|
||||||
|
|
||||||
print_header("$course->shortname: $strexercises", "$course->fullname", "$navigation $strexercises", "", "", true, "", navmenu($course));
|
print_header_simple("$strexercises", "", "$strexercises", "", "", true, "", navmenu($course));
|
||||||
|
|
||||||
if (! $exercises = get_all_instances_in_course("exercise", $course)) {
|
if (! $exercises = get_all_instances_in_course("exercise", $course)) {
|
||||||
notice("There are no exercises", "../../course/view.php?id=$course->id");
|
notice("There are no exercises", "../../course/view.php?id=$course->id");
|
||||||
|
|
|
@ -41,17 +41,13 @@
|
||||||
|
|
||||||
require_login($course->id);
|
require_login($course->id);
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strexercises = get_string("modulenameplural", "exercise");
|
$strexercises = get_string("modulenameplural", "exercise");
|
||||||
$strexercise = get_string("modulename", "exercise");
|
$strexercise = get_string("modulename", "exercise");
|
||||||
$strsubmissions = get_string("submissions", "exercise");
|
$strsubmissions = get_string("submissions", "exercise");
|
||||||
|
|
||||||
// ... print the header and...
|
// ... print the header and...
|
||||||
print_header("$course->shortname: $exercise->name", "$course->fullname",
|
print_header_simple("$exercise->name", "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strexercises</A> ->
|
"$<A HREF=index.php?id=$course->id>$strexercises</A> ->
|
||||||
<A HREF=\"view.php?id=$cm->id\">$exercise->name</A> -> $strsubmissions",
|
<A HREF=\"view.php?id=$cm->id\">$exercise->name</A> -> $strsubmissions",
|
||||||
"", "", true);
|
"", "", true);
|
||||||
|
|
||||||
|
|
|
@ -24,15 +24,12 @@
|
||||||
|
|
||||||
require_login($course->id);
|
require_login($course->id);
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
$strexercises = get_string("modulenameplural", "exercise");
|
$strexercises = get_string("modulenameplural", "exercise");
|
||||||
$strexercise = get_string("modulename", "exercise");
|
$strexercise = get_string("modulename", "exercise");
|
||||||
$strupload = get_string("upload");
|
$strupload = get_string("upload");
|
||||||
|
|
||||||
print_header("$course->shortname: $exercise->name : $strupload", "$course->fullname",
|
print_header_simple("$exercise->name : $strupload", "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strexercises</A> ->
|
"<A HREF=index.php?id=$course->id>$strexercises</A> ->
|
||||||
<A HREF=\"view.php?id=$cm->id\">$exercise->name</A> -> $strupload",
|
<A HREF=\"view.php?id=$cm->id\">$exercise->name</A> -> $strupload",
|
||||||
"", "", true);
|
"", "", true);
|
||||||
|
|
||||||
|
|
|
@ -39,16 +39,12 @@
|
||||||
// ...log activity...
|
// ...log activity...
|
||||||
add_to_log($course->id, "exercise", "view", "view.php?id=$cm->id", $exercise->id, $cm->id);
|
add_to_log($course->id, "exercise", "view", "view.php?id=$cm->id", $exercise->id, $cm->id);
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strexercises = get_string("modulenameplural", "exercise");
|
$strexercises = get_string("modulenameplural", "exercise");
|
||||||
$strexercise = get_string("modulename", "exercise");
|
$strexercise = get_string("modulename", "exercise");
|
||||||
|
|
||||||
// ...display header...
|
// ...display header...
|
||||||
print_header("$course->shortname: $exercise->name", "$course->fullname",
|
print_header_simple("$exercise->name", "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strexercises</A> -> $exercise->name",
|
"<A HREF=index.php?id=$course->id>$strexercises</A> -> $exercise->name",
|
||||||
"", "", true, update_module_button($cm->id, $course->id, $strexercise), navmenu($course, $cm));
|
"", "", true, update_module_button($cm->id, $course->id, $strexercise), navmenu($course, $cm));
|
||||||
|
|
||||||
// ...and if necessary set default action
|
// ...and if necessary set default action
|
||||||
|
|
|
@ -43,16 +43,10 @@
|
||||||
$strsubscribers = get_string("subscribers", "forum");
|
$strsubscribers = get_string("subscribers", "forum");
|
||||||
$strforums = get_string("forums", "forum");
|
$strforums = get_string("forums", "forum");
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->
|
|
||||||
<a href=\"index.php?id=$course->id\">$strforums</a> ->
|
|
||||||
<a href=\"view.php?f=$forum->id\">$forum->name</a> -> $strsubscribers";
|
|
||||||
} else {
|
|
||||||
$navigation = "<a href=\"index.php?id=$course->id\">$strforums</a> ->
|
$navigation = "<a href=\"index.php?id=$course->id\">$strforums</a> ->
|
||||||
<a href=\"view.php?f=$forum->id\">$forum->name</a> -> $strsubscribers";
|
<a href=\"view.php?f=$forum->id\">$forum->name</a> -> $strsubscribers";
|
||||||
}
|
|
||||||
|
|
||||||
print_header("$course->shortname: $strsubscribers", "$course->fullname", "$navigation",
|
print_header_simple("$strsubscribers", "", "$navigation",
|
||||||
"", "", true, forum_update_subscriptions_button($course->id, $id));
|
"", "", true, forum_update_subscriptions_button($course->id, $id));
|
||||||
|
|
||||||
/// Check to see if groups are being used in this forum
|
/// Check to see if groups are being used in this forum
|
||||||
|
|
|
@ -60,11 +60,8 @@
|
||||||
|
|
||||||
if ($course->category) {
|
if ($course->category) {
|
||||||
require_login($course->id);
|
require_login($course->id);
|
||||||
$navigation = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->
|
|
||||||
<a href=\"index.php?id=$course->id\">$strforums</a> ->";
|
|
||||||
} else {
|
|
||||||
$navigation = "<a href=\"index.php?id=$course->id\">$strforums</a> ->";
|
|
||||||
}
|
}
|
||||||
|
$navigation = "<a href=\"index.php?id=$course->id\">$strforums</a> ->";
|
||||||
|
|
||||||
if ($forum->type == "teacher") {
|
if ($forum->type == "teacher") {
|
||||||
if (!isteacher($course->id)) {
|
if (!isteacher($course->id)) {
|
||||||
|
@ -78,7 +75,7 @@
|
||||||
add_to_log($course->id, "forum", "view forum", "view.php?f=$forum->id", "$forum->id");
|
add_to_log($course->id, "forum", "view forum", "view.php?f=$forum->id", "$forum->id");
|
||||||
}
|
}
|
||||||
|
|
||||||
print_header("$course->shortname: $forum->name", "$course->fullname",
|
print_header_simple("$forum->name", "",
|
||||||
"$navigation $forum->name", "", "", true, $buttontext, navmenu($course, $cm));
|
"$navigation $forum->name", "", "", true, $buttontext, navmenu($course, $cm));
|
||||||
|
|
||||||
if (!$cm->visible and !isteacher($course->id)) {
|
if (!$cm->visible and !isteacher($course->id)) {
|
||||||
|
|
|
@ -46,11 +46,6 @@
|
||||||
}
|
}
|
||||||
add_to_log($course->id, "glossary", "view", "view.php?id=$cm->id", "$glossary->id",$cm->id);
|
add_to_log($course->id, "glossary", "view", "view.php?id=$cm->id", "$glossary->id",$cm->id);
|
||||||
|
|
||||||
/// Printing the page header
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
switch ( $action ){
|
switch ( $action ){
|
||||||
case "add":
|
case "add":
|
||||||
$straction = get_string("addingcomment","glossary");
|
$straction = get_string("addingcomment","glossary");
|
||||||
|
@ -66,8 +61,8 @@
|
||||||
$strglossary = get_string("modulename", "glossary");
|
$strglossary = get_string("modulename", "glossary");
|
||||||
$strcomments = get_string("comments", "glossary");
|
$strcomments = get_string("comments", "glossary");
|
||||||
|
|
||||||
print_header(strip_tags("$course->shortname: $glossary->name"), "$course->fullname",
|
print_header_simple(strip_tags("$glossary->name"), "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strglossaries</A> -> <A HREF=view.php?id=$cm->id>$glossary->name</a> -> <A HREF=comments.php?id=$cm->id&eid=$entry->id>$strcomments</a> -> " . $straction,
|
"<A HREF=index.php?id=$course->id>$strglossaries</A> -> <A HREF=view.php?id=$cm->id>$glossary->name</a> -> <A HREF=comments.php?id=$cm->id&eid=$entry->id>$strcomments</a> -> " . $straction,
|
||||||
"", "", true, update_module_button($cm->id, $course->id, $strglossary),
|
"", "", true, update_module_button($cm->id, $course->id, $strglossary),
|
||||||
navmenu($course, $cm));
|
navmenu($course, $cm));
|
||||||
|
|
||||||
|
|
|
@ -33,12 +33,6 @@
|
||||||
|
|
||||||
add_to_log($course->id, "glossary", "view", "view.php?id=$cm->id", "$glossary->id",$cm->id);
|
add_to_log($course->id, "glossary", "view", "view.php?id=$cm->id", "$glossary->id",$cm->id);
|
||||||
|
|
||||||
|
|
||||||
/// Printing the page header
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strglossaries = get_string("modulenameplural", "glossary");
|
$strglossaries = get_string("modulenameplural", "glossary");
|
||||||
$strglossary = get_string("modulename", "glossary");
|
$strglossary = get_string("modulename", "glossary");
|
||||||
$strallcategories = get_string("allcategories", "glossary");
|
$strallcategories = get_string("allcategories", "glossary");
|
||||||
|
@ -50,8 +44,8 @@
|
||||||
$strcomments = get_string("comments", "glossary");
|
$strcomments = get_string("comments", "glossary");
|
||||||
$straddcomment = get_string("addcomment", "glossary");
|
$straddcomment = get_string("addcomment", "glossary");
|
||||||
|
|
||||||
print_header(strip_tags("$course->shortname: $strcomments: $entry->concept"), "$course->fullname",
|
print_header_simple(strip_tags("$strcomments: $entry->concept"), "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strglossaries</A> -> <A HREF=view.php?id=$cm->id>$glossary->name</a> -> $strcomments",
|
"<A HREF=index.php?id=$course->id>$strglossaries</A> -> <A HREF=view.php?id=$cm->id>$glossary->name</a> -> $strcomments",
|
||||||
"", "", true, update_module_button($cm->id, $course->id, $strglossary),
|
"", "", true, update_module_button($cm->id, $course->id, $strglossary),
|
||||||
navmenu($course, $cm));
|
navmenu($course, $cm));
|
||||||
|
|
||||||
|
|
|
@ -40,12 +40,8 @@
|
||||||
$entryfields = get_record("glossary_entries", "id", $entry);
|
$entryfields = get_record("glossary_entries", "id", $entry);
|
||||||
$strareyousuredelete = get_string("areyousuredelete","glossary");
|
$strareyousuredelete = get_string("areyousuredelete","glossary");
|
||||||
|
|
||||||
|
print_header_simple("$glossary->name", "",
|
||||||
if ($course->category) {
|
"<A HREF=index.php?id=$course->id>$strglossaries</A> -> $glossary->name",
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
print_header("$course->shortname: $glossary->name", "$course->fullname",
|
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strglossaries</A> -> $glossary->name",
|
|
||||||
"", "", true, update_module_button($cm->id, $course->id, $strglossary),
|
"", "", true, update_module_button($cm->id, $course->id, $strglossary),
|
||||||
navmenu($course, $cm));
|
navmenu($course, $cm));
|
||||||
|
|
||||||
|
|
|
@ -36,15 +36,11 @@
|
||||||
|
|
||||||
// add_to_log($course->id, "glossary", "edit categories", "view.php?id=$cm->id", "$glossary->id", $cm->id);
|
// add_to_log($course->id, "glossary", "edit categories", "view.php?id=$cm->id", "$glossary->id", $cm->id);
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strglossaries = get_string("modulenameplural", "glossary");
|
$strglossaries = get_string("modulenameplural", "glossary");
|
||||||
$strglossary = get_string("modulename", "glossary");
|
$strglossary = get_string("modulename", "glossary");
|
||||||
|
|
||||||
print_header(strip_tags("$course->shortname: $glossary->name"), "$course->fullname",
|
print_header_simple(strip_tags("$glossary->name"), "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strglossaries</A> -> <A HREF=view.php?id=$cm->id&tab=GLOSSARY_CATEGORY_VIEW>$glossary->name</a> -> " . get_string("categories","glossary"),
|
"<A HREF=index.php?id=$course->id>$strglossaries</A> -> <A HREF=view.php?id=$cm->id&tab=GLOSSARY_CATEGORY_VIEW>$glossary->name</a> -> " . get_string("categories","glossary"),
|
||||||
"", "", true, update_module_button($cm->id, $course->id, $strglossary),
|
"", "", true, update_module_button($cm->id, $course->id, $strglossary),
|
||||||
navmenu($course, $cm));
|
navmenu($course, $cm));
|
||||||
|
|
||||||
|
|
|
@ -39,12 +39,8 @@
|
||||||
$entryalreadyexist = get_string("entryalreadyexist","glossary");
|
$entryalreadyexist = get_string("entryalreadyexist","glossary");
|
||||||
$entryexported = get_string("entryexported","glossary");
|
$entryexported = get_string("entryexported","glossary");
|
||||||
|
|
||||||
if ($course->category) {
|
print_header_simple("$glossary->name", "",
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
"<A HREF=index.php?id=$course->id>$strglossaries</A> -> $glossary->name",
|
||||||
}
|
|
||||||
|
|
||||||
print_header("$course->shortname: $glossary->name", "$course->fullname",
|
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strglossaries</A> -> $glossary->name",
|
|
||||||
"", "", true, "",
|
"", "", true, "",
|
||||||
navmenu($course, $cm));
|
navmenu($course, $cm));
|
||||||
|
|
||||||
|
|
|
@ -32,10 +32,6 @@
|
||||||
error("You must be a teacher to use this page.");
|
error("You must be a teacher to use this page.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($dest != 'new' and $dest != 'current') {
|
if ($dest != 'new' and $dest != 'current') {
|
||||||
$dest = 'current';
|
$dest = 'current';
|
||||||
}
|
}
|
||||||
|
@ -48,8 +44,8 @@
|
||||||
$strsearchindefinition = get_string("searchindefinition", "glossary");
|
$strsearchindefinition = get_string("searchindefinition", "glossary");
|
||||||
$strsearch = get_string("search");
|
$strsearch = get_string("search");
|
||||||
|
|
||||||
print_header(strip_tags("$course->shortname: $glossary->name"), "$course->fullname",
|
print_header_simple(strip_tags("$glossary->name"), "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strglossaries</A> -> $glossary->name",
|
"<A HREF=index.php?id=$course->id>$strglossaries</A> -> $glossary->name",
|
||||||
"", "", true, update_module_button($cm->id, $course->id, $strglossary),
|
"", "", true, update_module_button($cm->id, $course->id, $strglossary),
|
||||||
navmenu($course, $cm));
|
navmenu($course, $cm));
|
||||||
|
|
||||||
|
|
|
@ -27,11 +27,7 @@
|
||||||
|
|
||||||
/// Print the header
|
/// Print the header
|
||||||
|
|
||||||
if ($course->category) {
|
print_header_simple("$strglossarys", "", "$strglossarys", "", "", true, "", navmenu($course));
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
print_header("$course->shortname: $strglossarys", "$course->fullname", "$navigation $strglossarys", "", "", true, "", navmenu($course));
|
|
||||||
|
|
||||||
/// Get all the appropriate data
|
/// Get all the appropriate data
|
||||||
|
|
||||||
|
|
|
@ -12,16 +12,12 @@
|
||||||
require_login($course->id);
|
require_login($course->id);
|
||||||
add_to_log($course->id, "journal", "view all", "index.php?id=$course->id", "");
|
add_to_log($course->id, "journal", "view all", "index.php?id=$course->id", "");
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strjournal = get_string("modulename", "journal");
|
$strjournal = get_string("modulename", "journal");
|
||||||
$strjournals = get_string("modulenameplural", "journal");
|
$strjournals = get_string("modulenameplural", "journal");
|
||||||
$strweek = get_string("week");
|
$strweek = get_string("week");
|
||||||
$strtopic = get_string("topic");
|
$strtopic = get_string("topic");
|
||||||
|
|
||||||
print_header("$course->shortname: $strjournals", "$course->fullname", "$navigation $strjournals",
|
print_header_simple("$strjournals", "", "$strjournals",
|
||||||
"", "", true, "", navmenu($course));
|
"", "", true, "", navmenu($course));
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -25,15 +25,11 @@
|
||||||
error("Course module is incorrect");
|
error("Course module is incorrect");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strjournal = get_string("modulename", "journal");
|
$strjournal = get_string("modulename", "journal");
|
||||||
$strjournals = get_string("modulenameplural", "journal");
|
$strjournals = get_string("modulenameplural", "journal");
|
||||||
|
|
||||||
print_header("$course->shortname: $journal->name", "$course->fullname",
|
print_header_simple("$journal->name", "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strjournals</A> -> $journal->name", "", "", true,
|
"<A HREF=index.php?id=$course->id>$strjournals</A> -> $journal->name", "", "", true,
|
||||||
update_module_button($cm->id, $course->id, $strjournal), navmenu($course, $cm));
|
update_module_button($cm->id, $course->id, $strjournal), navmenu($course, $cm));
|
||||||
|
|
||||||
if (isteacher($course->id)) {
|
if (isteacher($course->id)) {
|
||||||
|
|
|
@ -24,11 +24,7 @@
|
||||||
|
|
||||||
/// Print the header
|
/// Print the header
|
||||||
|
|
||||||
if ($course->category) {
|
print_header_simple("$strlessons", "", "$strlessons", "", "", true, "", navmenu($course));
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
print_header("$course->shortname: $strlessons", "$course->fullname", "$navigation $strlessons", "", "", true, "", navmenu($course));
|
|
||||||
|
|
||||||
/// Get all the appropriate data
|
/// Get all the appropriate data
|
||||||
|
|
||||||
|
|
|
@ -26,15 +26,11 @@
|
||||||
|
|
||||||
/// Print the page header
|
/// Print the page header
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strlessons = get_string("modulenameplural", "lesson");
|
$strlessons = get_string("modulenameplural", "lesson");
|
||||||
$strlesson = get_string("modulename", "lesson");
|
$strlesson = get_string("modulename", "lesson");
|
||||||
|
|
||||||
print_header("$course->shortname: $lesson->name", "$course->fullname",
|
print_header_simple("$lesson->name", "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strlessons</A> -> <a href=\"view.php?id=$cm->id\">$lesson->name</a>",
|
"<A HREF=index.php?id=$course->id>$strlessons</A> -> <a href=\"view.php?id=$cm->id\">$lesson->name</a>",
|
||||||
"", "", true, update_module_button($cm->id, $course->id, $strlesson),
|
"", "", true, update_module_button($cm->id, $course->id, $strlesson),
|
||||||
navmenu($course, $cm));
|
navmenu($course, $cm));
|
||||||
|
|
||||||
|
|
|
@ -54,15 +54,11 @@
|
||||||
|
|
||||||
// Print the page header
|
// Print the page header
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strquizzes = get_string("modulenameplural", "quiz");
|
$strquizzes = get_string("modulenameplural", "quiz");
|
||||||
$strquiz = get_string("modulename", "quiz");
|
$strquiz = get_string("modulename", "quiz");
|
||||||
|
|
||||||
print_header("$course->shortname: $quiz->name", "$course->fullname",
|
print_header_simple("$quiz->name", "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strquizzes</A> ->
|
"<A HREF=index.php?id=$course->id>$strquizzes</A> ->
|
||||||
<A HREF=\"view.php?id=$cm->id\">$quiz->name</A> -> $strattemptnum",
|
<A HREF=\"view.php?id=$cm->id\">$quiz->name</A> -> $strattemptnum",
|
||||||
"", "", true);
|
"", "", true);
|
||||||
|
|
||||||
|
|
|
@ -30,11 +30,7 @@
|
||||||
: "";
|
: "";
|
||||||
$strquiz = get_string("modulename", "quiz");
|
$strquiz = get_string("modulename", "quiz");
|
||||||
|
|
||||||
if ($course->category) {
|
print_header_simple("$strquizzes", "", "$strquizzes",
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
print_header("$course->shortname: $strquizzes", "$course->fullname", "$navigation $strquizzes",
|
|
||||||
"", "", true, $streditquestions, navmenu($course));
|
"", "", true, $streditquestions, navmenu($course));
|
||||||
|
|
||||||
// Get all the appropriate data
|
// Get all the appropriate data
|
||||||
|
|
|
@ -46,16 +46,12 @@
|
||||||
/// Print the page header
|
/// Print the page header
|
||||||
if (empty($noheader)) {
|
if (empty($noheader)) {
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strquizzes = get_string("modulenameplural", "quiz");
|
$strquizzes = get_string("modulenameplural", "quiz");
|
||||||
$strquiz = get_string("modulename", "quiz");
|
$strquiz = get_string("modulename", "quiz");
|
||||||
$strreport = get_string("report", "quiz");
|
$strreport = get_string("report", "quiz");
|
||||||
|
|
||||||
print_header("$course->shortname: $quiz->name", "$course->fullname",
|
print_header_simple("$quiz->name", "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strquizzes</A>
|
"<A HREF=index.php?id=$course->id>$strquizzes</A>
|
||||||
-> <a href=\"view.php?id=$cm->id\">$quiz->name</a> -> $strreport",
|
-> <a href=\"view.php?id=$cm->id\">$quiz->name</a> -> $strreport",
|
||||||
"", "", true, update_module_button($cm->id, $course->id, $strquiz), navmenu($course, $cm));
|
"", "", true, update_module_button($cm->id, $course->id, $strquiz), navmenu($course, $cm));
|
||||||
|
|
||||||
|
|
|
@ -59,10 +59,6 @@
|
||||||
|
|
||||||
// Print the page header
|
// Print the page header
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strquizzes = get_string("modulenameplural", "quiz");
|
$strquizzes = get_string("modulenameplural", "quiz");
|
||||||
$strquiz = get_string("modulename", "quiz");
|
$strquiz = get_string("modulename", "quiz");
|
||||||
$strreport = get_string("report", "quiz");
|
$strreport = get_string("report", "quiz");
|
||||||
|
@ -76,8 +72,8 @@
|
||||||
$strtimecompleted = get_string("timecompleted", "quiz");
|
$strtimecompleted = get_string("timecompleted", "quiz");
|
||||||
$stroverdue = get_string("overdue", "quiz");
|
$stroverdue = get_string("overdue", "quiz");
|
||||||
|
|
||||||
print_header("$course->shortname: $quiz->name", "$course->fullname",
|
print_header_simple("$quiz->name", "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strquizzes</A>
|
"<A HREF=index.php?id=$course->id>$strquizzes</A>
|
||||||
-> <a href=\"view.php?id=$cm->id\">$quiz->name</a> -> $strreview",
|
-> <a href=\"view.php?id=$cm->id\">$quiz->name</a> -> $strreview",
|
||||||
"", "", true);
|
"", "", true);
|
||||||
|
|
||||||
|
|
|
@ -42,15 +42,11 @@
|
||||||
|
|
||||||
// Print the page header
|
// Print the page header
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strquizzes = get_string("modulenameplural", "quiz");
|
$strquizzes = get_string("modulenameplural", "quiz");
|
||||||
$strquiz = get_string("modulename", "quiz");
|
$strquiz = get_string("modulename", "quiz");
|
||||||
|
|
||||||
print_header("$course->shortname: $quiz->name", "$course->fullname",
|
print_header_simple("$quiz->name", "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strquizzes</A> -> $quiz->name",
|
"<A HREF=index.php?id=$course->id>$strquizzes</A> -> $quiz->name",
|
||||||
"", "", true, update_module_button($cm->id, $course->id, $strquiz), navmenu($course, $cm));
|
"", "", true, update_module_button($cm->id, $course->id, $strquiz), navmenu($course, $cm));
|
||||||
|
|
||||||
if (isteacher($course->id)) {
|
if (isteacher($course->id)) {
|
||||||
|
|
|
@ -13,10 +13,6 @@
|
||||||
|
|
||||||
add_to_log($course->id, "survey", "view all", "index.php?id=$course->id", "");
|
add_to_log($course->id, "survey", "view all", "index.php?id=$course->id", "");
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strsurveys = get_string("modulenameplural", "survey");
|
$strsurveys = get_string("modulenameplural", "survey");
|
||||||
$strweek = get_string("week");
|
$strweek = get_string("week");
|
||||||
$strtopic = get_string("topic");
|
$strtopic = get_string("topic");
|
||||||
|
@ -25,7 +21,7 @@
|
||||||
$strdone = get_string("done", "survey");
|
$strdone = get_string("done", "survey");
|
||||||
$strnotdone = get_string("notdone", "survey");
|
$strnotdone = get_string("notdone", "survey");
|
||||||
|
|
||||||
print_header("$course->shortname: $strsurveys", "$course->fullname", "$navigation $strsurveys",
|
print_header_simple("$strsurveys", "", "$strsurveys",
|
||||||
"", "", true, "", navmenu($course));
|
"", "", true, "", navmenu($course));
|
||||||
|
|
||||||
if (! $surveys = get_all_instances_in_course("survey", $course)) {
|
if (! $surveys = get_all_instances_in_course("survey", $course)) {
|
||||||
|
|
|
@ -25,15 +25,11 @@
|
||||||
|
|
||||||
$showscales = ($template->name != 'ciqname');
|
$showscales = ($template->name != 'ciqname');
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strsurveys = get_string("modulenameplural", "survey");
|
$strsurveys = get_string("modulenameplural", "survey");
|
||||||
$strsurvey = get_string("modulename", "survey");
|
$strsurvey = get_string("modulename", "survey");
|
||||||
|
|
||||||
print_header("$course->shortname: $survey->name", "$course->fullname",
|
print_header_simple("$survey->name", "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strsurveys</A> -> $survey->name", "", "", true,
|
"<A HREF=index.php?id=$course->id>$strsurveys</A> -> $survey->name", "", "", true,
|
||||||
update_module_button($cm->id, $course->id, $strsurvey), navmenu($course, $cm));
|
update_module_button($cm->id, $course->id, $strsurvey), navmenu($course, $cm));
|
||||||
|
|
||||||
/// Check to see if groups are being used in this survey
|
/// Check to see if groups are being used in this survey
|
||||||
|
|
|
@ -91,12 +91,6 @@
|
||||||
# The mighty Wiki itself
|
# The mighty Wiki itself
|
||||||
include_once($CFG->dirroot."/mod/wiki/ewiki/ewiki.php");
|
include_once($CFG->dirroot."/mod/wiki/ewiki/ewiki.php");
|
||||||
|
|
||||||
/// Print the page header
|
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strwikis = get_string("modulenameplural", "wiki");
|
$strwikis = get_string("modulenameplural", "wiki");
|
||||||
$strwiki = get_string("modulename", "wiki");
|
$strwiki = get_string("modulename", "wiki");
|
||||||
|
|
||||||
|
@ -121,8 +115,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print_header("$course->shortname: $wiki_entry->pagename", "$course->fullname",
|
print_header_simple("$wiki_entry->pagename", "",
|
||||||
"$navigation <A HREF=\"index.php?id=$course->id\">$strwikis</A> -> <A HREF=\"view.php?id=$id\">$wiki->name</a> ->".
|
"<A HREF=\"index.php?id=$course->id\">$strwikis</A> -> <A HREF=\"view.php?id=$id\">$wiki->name</a> ->".
|
||||||
get_string("administration","wiki"),
|
get_string("administration","wiki"),
|
||||||
$focus, "", true, update_module_button($cm->id, $course->id, $strwiki),
|
$focus, "", true, update_module_button($cm->id, $course->id, $strwiki),
|
||||||
navmenu($course, $cm));
|
navmenu($course, $cm));
|
||||||
|
|
|
@ -25,11 +25,7 @@
|
||||||
|
|
||||||
/// Print the header
|
/// Print the header
|
||||||
|
|
||||||
if ($course->category) {
|
print_header_simple("$strwikis", "", "$strwikis", "", "", true, "", navmenu($course));
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
print_header("$course->shortname: $strwikis", "$course->fullname", "$navigation $strwikis", "", "", true, "", navmenu($course));
|
|
||||||
|
|
||||||
/// Get all the appropriate data
|
/// Get all the appropriate data
|
||||||
|
|
||||||
|
|
|
@ -215,15 +215,12 @@
|
||||||
|
|
||||||
|
|
||||||
/// Print the page header
|
/// Print the page header
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strwikis = get_string("modulenameplural", "wiki");
|
$strwikis = get_string("modulenameplural", "wiki");
|
||||||
$strwiki = get_string("modulename", "wiki");
|
$strwiki = get_string("modulename", "wiki");
|
||||||
|
|
||||||
print_header("$course->shortname: ".($ewiki_title?$ewiki_title:$wiki->name), "$course->fullname",
|
print_header_simple(($ewiki_title?$ewiki_title:$wiki->name), "",
|
||||||
"$navigation <A HREF=\"index.php?id=$course->id\">$strwikis</A> -> <A HREF=\"view.php?id=$moodleID\">$wiki->name</a>".($ewiki_title?" -> $ewiki_title":""),
|
"<A HREF=\"index.php?id=$course->id\">$strwikis</A> -> <A HREF=\"view.php?id=$moodleID\">$wiki->name</a>".($ewiki_title?" -> $ewiki_title":""),
|
||||||
"", "", true, update_module_button($cm->id, $course->id, $strwiki),
|
"", "", true, update_module_button($cm->id, $course->id, $strwiki),
|
||||||
navmenu($course, $cm));
|
navmenu($course, $cm));
|
||||||
|
|
||||||
|
|
|
@ -13,10 +13,6 @@
|
||||||
require_login($course->id);
|
require_login($course->id);
|
||||||
add_to_log($course->id, "workshop", "view all", "index.php?id=$course->id", "");
|
add_to_log($course->id, "workshop", "view all", "index.php?id=$course->id", "");
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strworkshops = get_string("modulenameplural", "workshop");
|
$strworkshops = get_string("modulenameplural", "workshop");
|
||||||
$strworkshop = get_string("modulename", "workshop");
|
$strworkshop = get_string("modulename", "workshop");
|
||||||
$strweek = get_string("week");
|
$strweek = get_string("week");
|
||||||
|
@ -26,7 +22,7 @@
|
||||||
$strdeadline = get_string("deadline", "workshop");
|
$strdeadline = get_string("deadline", "workshop");
|
||||||
$strsubmitted = get_string("submitted", "assignment");
|
$strsubmitted = get_string("submitted", "assignment");
|
||||||
|
|
||||||
print_header("$course->shortname: $strworkshops", "$course->fullname", "$navigation $strworkshops", "", "", true, "", navmenu($course));
|
print_header_simple("$strworkshops", "", "$strworkshops", "", "", true, "", navmenu($course));
|
||||||
|
|
||||||
if (! $workshops = get_all_instances_in_course("workshop", $course)) {
|
if (! $workshops = get_all_instances_in_course("workshop", $course)) {
|
||||||
notice("There are no workshops", "../../course/view.php?id=$course->id");
|
notice("There are no workshops", "../../course/view.php?id=$course->id");
|
||||||
|
|
|
@ -55,17 +55,13 @@
|
||||||
|
|
||||||
require_login($course->id);
|
require_login($course->id);
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strworkshops = get_string("modulenameplural", "workshop");
|
$strworkshops = get_string("modulenameplural", "workshop");
|
||||||
$strworkshop = get_string("modulename", "workshop");
|
$strworkshop = get_string("modulename", "workshop");
|
||||||
$strsubmissions = get_string("submissions", "workshop");
|
$strsubmissions = get_string("submissions", "workshop");
|
||||||
|
|
||||||
// ... print the header and...
|
// ... print the header and...
|
||||||
print_header("$course->shortname: $workshop->name", "$course->fullname",
|
print_header_simple("$workshop->name", "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strworkshops</A> ->
|
"<A HREF=index.php?id=$course->id>$strworkshops</A> ->
|
||||||
<A HREF=\"view.php?a=$workshop->id\">$workshop->name</A> -> $strsubmissions",
|
<A HREF=\"view.php?a=$workshop->id\">$workshop->name</A> -> $strsubmissions",
|
||||||
"", "", true);
|
"", "", true);
|
||||||
|
|
||||||
|
|
|
@ -22,15 +22,12 @@
|
||||||
|
|
||||||
require_login($course->id);
|
require_login($course->id);
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
$strworkshops = get_string("modulenameplural", "workshop");
|
$strworkshops = get_string("modulenameplural", "workshop");
|
||||||
$strworkshop = get_string("modulename", "workshop");
|
$strworkshop = get_string("modulename", "workshop");
|
||||||
$strupload = get_string("upload");
|
$strupload = get_string("upload");
|
||||||
|
|
||||||
print_header("$course->shortname: $workshop->name : $strupload", "$course->fullname",
|
print_header_simple("$workshop->name : $strupload", "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strworkshops</A> ->
|
"<A HREF=index.php?id=$course->id>$strworkshops</A> ->
|
||||||
<A HREF=\"view.php?a=$workshop->id\">$workshop->name</A> -> $strupload",
|
<A HREF=\"view.php?a=$workshop->id\">$workshop->name</A> -> $strupload",
|
||||||
"", "", true);
|
"", "", true);
|
||||||
/****
|
/****
|
||||||
|
|
|
@ -54,16 +54,12 @@
|
||||||
// ...log activity...
|
// ...log activity...
|
||||||
add_to_log($course->id, "workshop", "view", "view.php?id=$cm->id", $workshop->id, $cm->id);
|
add_to_log($course->id, "workshop", "view", "view.php?id=$cm->id", $workshop->id, $cm->id);
|
||||||
|
|
||||||
if ($course->category) {
|
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strworkshops = get_string("modulenameplural", "workshop");
|
$strworkshops = get_string("modulenameplural", "workshop");
|
||||||
$strworkshop = get_string("modulename", "workshop");
|
$strworkshop = get_string("modulename", "workshop");
|
||||||
|
|
||||||
// ...display header...
|
// ...display header...
|
||||||
print_header("$course->shortname: $workshop->name", "$course->fullname",
|
print_header_simple("$workshop->name", "",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strworkshops</A> -> $workshop->name",
|
"<A HREF=index.php?id=$course->id>$strworkshops</A> -> $workshop->name",
|
||||||
"", "", true, update_module_button($cm->id, $course->id, $strworkshop), navmenu($course, $cm));
|
"", "", true, update_module_button($cm->id, $course->id, $strworkshop), navmenu($course, $cm));
|
||||||
|
|
||||||
// ...and if necessary set default action
|
// ...and if necessary set default action
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue