mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
SHow number of journal entries in the teacher link to report
This commit is contained in:
parent
3bf90da5f6
commit
03af47eee3
2 changed files with 11 additions and 2 deletions
|
@ -37,8 +37,17 @@
|
|||
update_module_icon($cm->id, $course->id));
|
||||
|
||||
if (isteacher($course->id)) {
|
||||
echo "<P align=right><A HREF=\"report.php?id=$cm->id\">".get_string("viewallentries","journal")."</A></P>";
|
||||
}
|
||||
if (isteacher($course->id)) {
|
||||
if ($allentries = get_records("journal_entries", "journal", $journal->id)) {
|
||||
$entrycount = count($allentries);
|
||||
} else {
|
||||
$entrycount = 0;
|
||||
}
|
||||
echo "<P align=right><A HREF=\"report.php?id=$cm->id\">".get_string("viewallentries","journal", $entrycount)."</A></P>";
|
||||
}
|
||||
|
||||
print_simple_box( text_to_html($choice->text) , "center");
|
||||
|
||||
echo "<CENTER>\n";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue