2003-10-21 04:55:22 +00:00
|
|
|
<?PHP // $Id$
|
|
|
|
|
2004-03-31 08:05:52 +00:00
|
|
|
function glossary_print_entry_by_format($course, $cm, $glossary, $entry, $mode="",$hook="",$printicons=1,$ratings=NULL) {
|
2003-10-21 04:55:22 +00:00
|
|
|
global $THEME, $USER;
|
|
|
|
|
|
|
|
$colour = $THEME->cellheading2;
|
2003-11-21 18:42:38 +00:00
|
|
|
$return = false;
|
2003-10-21 04:55:22 +00:00
|
|
|
|
2004-05-11 22:38:45 +00:00
|
|
|
echo "\n<br /><table border=0 width=95% cellspacing=0 valign=top cellpadding=3 class=forumpost align=center>";
|
2003-10-21 04:55:22 +00:00
|
|
|
|
|
|
|
echo "\n<tr>";
|
2004-05-11 22:38:45 +00:00
|
|
|
echo "<td width=100% bgcolor=\"$THEME->cellheading\">";
|
2003-11-15 15:55:47 +00:00
|
|
|
glossary_print_entry_approval($cm, $entry, $mode);
|
2003-10-21 04:55:22 +00:00
|
|
|
if ($entry) {
|
2003-10-28 16:10:36 +00:00
|
|
|
glossary_print_entry_attachment($entry,"html","right");
|
|
|
|
echo "<b>";
|
|
|
|
glossary_print_entry_concept($entry);
|
|
|
|
echo "</b><br />";
|
2004-05-11 22:38:45 +00:00
|
|
|
echo "<font size=1>".get_string("lastedited").": ".userdate($entry->timemodified)."</font>";
|
2003-10-28 16:10:36 +00:00
|
|
|
echo "</tr>";
|
|
|
|
echo "\n<tr><td width=100% bgcolor=\"$THEME->cellcontent\">";
|
|
|
|
|
|
|
|
glossary_print_entry_definition($entry);
|
2003-11-15 15:55:47 +00:00
|
|
|
glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook,$printicons);
|
2003-11-21 18:42:38 +00:00
|
|
|
echo ' ';
|
|
|
|
$return = glossary_print_entry_ratings($course, $entry, $ratings);
|
2003-10-21 04:55:22 +00:00
|
|
|
} else {
|
|
|
|
echo "<center>";
|
|
|
|
print_string("noentry", "glossary");
|
|
|
|
echo "</center>";
|
|
|
|
}
|
|
|
|
echo "</td></tr>";
|
|
|
|
|
|
|
|
echo "</table>\n";
|
2003-11-21 18:42:38 +00:00
|
|
|
return $return;
|
2003-10-21 04:55:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
?>
|