mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36: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
|
@ -24,6 +24,6 @@ $string['noratinggiven'] = "No rating given";
|
||||||
$string['overallrating'] = "Overall rating";
|
$string['overallrating'] = "Overall rating";
|
||||||
$string['rate'] = "Rate";
|
$string['rate'] = "Rate";
|
||||||
$string['startoredit'] = "Start or edit my journal entry";
|
$string['startoredit'] = "Start or edit my journal entry";
|
||||||
$string['viewallentries'] = "View all journal entries";
|
$string['viewallentries'] = "View \$a journal entries";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -37,8 +37,17 @@
|
||||||
update_module_icon($cm->id, $course->id));
|
update_module_icon($cm->id, $course->id));
|
||||||
|
|
||||||
if (isteacher($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";
|
echo "<CENTER>\n";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue