Added some reportlink classed to the report links

This commit is contained in:
moodler 2005-04-13 07:45:47 +00:00
parent 551d79f848
commit 7f3f41ecfb
9 changed files with 18 additions and 17 deletions

View File

@ -43,7 +43,7 @@
"", "", true, update_module_button($cm->id, $course->id, $strassignment), navmenu($course, $cm));
if (isteacher($course->id)) {
echo '<p align="right">';
echo '<div class="reportlink">';
if ($assignment->type == OFFLINE) {
echo "<a href=\"submissions.php?id=$assignment->id\">".
get_string("viewfeedback", "assignment")."</a>";
@ -59,7 +59,7 @@
echo "<a href=\"submissions.php?id=$assignment->id\">".
get_string("viewsubmissions", "assignment", $count)."</a>$groupname";
}
echo '</p>';
echo '</div>';
} else if (!$cm->visible) {
notice(get_string("activityiscurrentlyhidden"));
}

View File

@ -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 "<p align=\"right\">";
echo '<div class="reportlink">';
if (isteacher($course->id)) {
echo "<a href=\"teacheredit.php?update=".$cm->id."&amp;return=true\">$strteacheredit</a><br/>";
}
echo "<a href=\"viewall.php?id=".$course->id."\">$strviewall</a><br/>";
echo "<a href=\"viewweek.php?scope=week&amp;id=".$attendance->id."\">$strviewweek</a><br/></p>";
echo "<a href=\"viewweek.php?scope=week&amp;id=".$attendance->id."\">$strviewweek</a>";
echo "</div>";
// this is the wrapper table
echo "<table align=\"center\" width=\"80\" class=\"generalbox\"".

View File

@ -78,8 +78,10 @@
echo '<td id="middle-column">';
if (($chat->studentlogs or isteacher($course->id)) and !isguest()) {
echo "<p align=\"right\"><a href=\"report.php?id=$cm->id\">".
get_string('viewreport', 'chat').'</a></p>';
echo '<div class="reportlink">';
echo "<a href=\"report.php?id=$cm->id\">".
get_string('viewreport', 'chat').'</a>';
echo '</div>';
}
print_heading(format_string($chat->name));

View File

@ -94,7 +94,9 @@
} else {
$responsecount = 0;
}
echo "<div align=\"right\"><a href=\"report.php?id=$cm->id\">".get_string("viewallresponses", "choice", $responsecount)."</a></div>";
echo '<div class="reportlink">';
echo "<a href=\"report.php?id=$cm->id\">".get_string("viewallresponses", "choice", $responsecount)."</a>";
echo '</div>';
} else if (!$cm->visible) {
notice(get_string("activityiscurrentlyhidden"));
}

View File

@ -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

View File

@ -42,7 +42,7 @@
}
$entrycount = journal_count_entries($journal, $currentgroup);
echo '<div class="info"><a href="report.php?id='.$cm->id.'">'.
echo '<div class="reportlink"><a href="report.php?id='.$cm->id.'">'.
get_string('viewallentries','journal', $entrycount)."</a>$groupname</div>";
} else if (!$cm->visible) {

View File

@ -80,7 +80,7 @@
$usercount = count_records("quiz_grades", "quiz", "$quiz->id");
$strusers = get_string("users");
$strviewallanswers = get_string("viewallanswers","quiz",$attemptcount);
echo "<p align=\"right\"><a href=\"report.php?id=$cm->id\">$strviewallanswers ($usercount $strusers)</a></p>";
echo "<div class=\"reportlink\"><a href=\"report.php?id=$cm->id\">$strviewallanswers ($usercount $strusers)</a></div>";
} else if (!$cm->visible) {
notice(get_string("activityiscurrentlyhidden"));
}

View File

@ -64,9 +64,9 @@
if (isteacher($course->id)) {
if ($sco_users = get_records_select("scorm_scoes_track", "scormid='$scorm->id' GROUP BY userid")) {
echo "<p align=\"right\"><a target=\"{$CFG->framename}\" href=\"report.php?id=$cm->id\">".get_string("viewallreports","scorm",count($sco_users))."</a></p>";
echo "<div class=\"reportlink\"><a target=\"{$CFG->framename}\" href=\"report.php?id=$cm->id\">".get_string("viewallreports","scorm",count($sco_users))."</a></div>";
} else {
echo "<p align=\"right\">".get_string("noreports","scorm")."</p>";
echo "<div class=\"reportlink\">".get_string("noreports","scorm")."</div>";
}
}
// Print the main part of the page

View File

@ -45,8 +45,8 @@
if (isteacher($course->id)) {
$numusers = survey_count_responses($survey->id, $currentgroup);
echo "<p align=\"right\"><a href=\"report.php?id=$cm->id\">".
get_string("viewsurveyresponses", "survey", $numusers)."</a></p>";
echo "<div class=\"reportlink\"><a href=\"report.php?id=$cm->id\">".
get_string("viewsurveyresponses", "survey", $numusers)."</a></div>";
} else if (!$cm->visible) {
notice(get_string("activityiscurrentlyhidden"));
}