mirror of
https://github.com/moodle/moodle.git
synced 2025-02-06 08:10:11 +01:00
1ac87c7397
- Adding a new frame: Browse by Author - A new, friendly way to show entries (asked by Martin): view?id=cm&mode=term&hook=[concept | alias ] - Handling user activies, outline and complete. - Properly showing new entries in recent activity box. - Adding a flag to categories to specify if a category should or should not be automatically linked. - Adding some missing strings and files as well. - Adding a field to each glossary that specify how many entries by pages it should show.
36 lines
1.1 KiB
PHP
36 lines
1.1 KiB
PHP
<?PHP // $Id$
|
|
|
|
function glossary_print_entry_by_format($course, $cm, $glossary, $entry,$mode="",$hook="",$printicons=1) {
|
|
global $THEME, $USER;
|
|
|
|
$colour = $THEME->cellheading2;
|
|
|
|
echo "\n<table border=1 cellspacing=0 width=95% valign=top cellpadding=10>";
|
|
|
|
echo "\n<tr>";
|
|
echo "<td width=100% bgcolor=\"$colour\">";
|
|
glossary_print_entry_approval($cm, $entry, $mode);
|
|
if ($entry) {
|
|
glossary_print_entry_attachment($entry,"html","right");
|
|
echo "<b>";
|
|
glossary_print_entry_concept($entry);
|
|
echo "</b><br />";
|
|
echo " <font size=1>".get_string("lastedited").": ".userdate($entry->timemodified)."</font>";
|
|
echo "</tr>";
|
|
echo "\n<tr><td width=100% bgcolor=\"$THEME->cellcontent\">";
|
|
|
|
glossary_print_entry_definition($entry);
|
|
glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook,$printicons);
|
|
} else {
|
|
echo "<center>";
|
|
print_string("noentry", "glossary");
|
|
echo "</center>";
|
|
}
|
|
echo "</td></tr>";
|
|
|
|
echo "</table>\n";
|
|
|
|
}
|
|
|
|
?>
|