From 7f3f41ecfb5350a3bcc5a431fc631c34ee28d4bd Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 13 Apr 2005 07:45:47 +0000 Subject: [PATCH] Added some reportlink classed to the report links --- mod/assignment/view.php | 4 ++-- mod/attendance/view.php | 5 +++-- mod/chat/view.php | 6 ++++-- mod/choice/view.php | 4 +++- mod/glossary/view.php | 4 ---- mod/journal/view.php | 2 +- mod/quiz/view.php | 2 +- mod/scorm/view.php | 4 ++-- mod/survey/view.php | 4 ++-- 9 files changed, 18 insertions(+), 17 deletions(-) diff --git a/mod/assignment/view.php b/mod/assignment/view.php index 6aa1116cec5..21a9aa8ee29 100644 --- a/mod/assignment/view.php +++ b/mod/assignment/view.php @@ -43,7 +43,7 @@ "", "", true, update_module_button($cm->id, $course->id, $strassignment), navmenu($course, $cm)); if (isteacher($course->id)) { - echo '

'; + echo '

'; } else if (!$cm->visible) { notice(get_string("activityiscurrentlyhidden")); } diff --git a/mod/attendance/view.php b/mod/attendance/view.php index 1555cff5667..f22c187a896 100644 --- a/mod/attendance/view.php +++ b/mod/attendance/view.php @@ -72,12 +72,13 @@ // put it in the array for use in the attendance table $strviewall = get_string("viewall", "attendance"); $strviewweek = get_string("viewweek", "attendance"); - echo "

"; + echo '

"; // this is the wrapper table echo "'; if (($chat->studentlogs or isteacher($course->id)) and !isguest()) { - echo "

id\">". - get_string('viewreport', 'chat').'

'; + echo ''; } print_heading(format_string($chat->name)); diff --git a/mod/choice/view.php b/mod/choice/view.php index eeeec609583..1793a2c815b 100644 --- a/mod/choice/view.php +++ b/mod/choice/view.php @@ -94,7 +94,9 @@ } else { $responsecount = 0; } - echo "
id\">".get_string("viewallresponses", "choice", $responsecount)."
"; + echo ''; } else if (!$cm->visible) { notice(get_string("activityiscurrentlyhidden")); } diff --git a/mod/glossary/view.php b/mod/glossary/view.php index c7f2c968784..2dfc5ac1e9f 100644 --- a/mod/glossary/view.php +++ b/mod/glossary/view.php @@ -4,10 +4,6 @@ require_once("lib.php"); require_once("$CFG->libdir/rsslib.php"); - global $CFG, $USER; - $debug = 0; - $CFG->startpagetime = microtime(); - optional_variable($id); // Course Module ID optional_variable($g); // Glossary ID diff --git a/mod/journal/view.php b/mod/journal/view.php index 08071777bfd..d9308697582 100644 --- a/mod/journal/view.php +++ b/mod/journal/view.php @@ -42,7 +42,7 @@ } $entrycount = journal_count_entries($journal, $currentgroup); - echo '
'. + echo '"; } else if (!$cm->visible) { diff --git a/mod/quiz/view.php b/mod/quiz/view.php index dbfd468e018..d3b4d695817 100644 --- a/mod/quiz/view.php +++ b/mod/quiz/view.php @@ -80,7 +80,7 @@ $usercount = count_records("quiz_grades", "quiz", "$quiz->id"); $strusers = get_string("users"); $strviewallanswers = get_string("viewallanswers","quiz",$attemptcount); - echo "

id\">$strviewallanswers ($usercount $strusers)

"; + echo ""; } else if (!$cm->visible) { notice(get_string("activityiscurrentlyhidden")); } diff --git a/mod/scorm/view.php b/mod/scorm/view.php index a718204c4ca..eedd8e3acd0 100755 --- a/mod/scorm/view.php +++ b/mod/scorm/view.php @@ -64,9 +64,9 @@ if (isteacher($course->id)) { if ($sco_users = get_records_select("scorm_scoes_track", "scormid='$scorm->id' GROUP BY userid")) { - echo "

framename}\" href=\"report.php?id=$cm->id\">".get_string("viewallreports","scorm",count($sco_users))."

"; + echo ""; } else { - echo "

".get_string("noreports","scorm")."

"; + echo "
".get_string("noreports","scorm")."
"; } } // Print the main part of the page diff --git a/mod/survey/view.php b/mod/survey/view.php index 0c11b5ebab7..bcf1597869b 100644 --- a/mod/survey/view.php +++ b/mod/survey/view.php @@ -45,8 +45,8 @@ if (isteacher($course->id)) { $numusers = survey_count_responses($survey->id, $currentgroup); - echo "

id\">". - get_string("viewsurveyresponses", "survey", $numusers)."

"; + echo ""; } else if (!$cm->visible) { notice(get_string("activityiscurrentlyhidden")); }