mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Added some reportlink classed to the report links
This commit is contained in:
parent
551d79f848
commit
7f3f41ecfb
@ -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"));
|
||||
}
|
||||
|
@ -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."&return=true\">$strteacheredit</a><br/>";
|
||||
}
|
||||
echo "<a href=\"viewall.php?id=".$course->id."\">$strviewall</a><br/>";
|
||||
echo "<a href=\"viewweek.php?scope=week&id=".$attendance->id."\">$strviewweek</a><br/></p>";
|
||||
echo "<a href=\"viewweek.php?scope=week&id=".$attendance->id."\">$strviewweek</a>";
|
||||
echo "</div>";
|
||||
|
||||
// this is the wrapper table
|
||||
echo "<table align=\"center\" width=\"80\" class=\"generalbox\"".
|
||||
|
@ -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));
|
||||
|
@ -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"));
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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"));
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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"));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user