mirror of
https://github.com/moodle/moodle.git
synced 2025-01-22 08:11:26 +01:00
35 lines
924 B
PHP
35 lines
924 B
PHP
<?PHP // $Id$
|
|
|
|
function glossary_print_entry_by_format($course, $cm, $glossary, $entry,$mode="",$hook="",$printicons=1) {
|
|
global $THEME, $USER;
|
|
|
|
$colour = "#FFFFFF";
|
|
$return = false;
|
|
|
|
echo "\n<table class=\"generalbox\" border=0 cellspacing=0 width=95% valign=top cellpadding=10>";
|
|
|
|
echo "\n<tr>";
|
|
echo "<td width=100% bgcolor=\"$colour\">";
|
|
if ($entry) {
|
|
echo "<b><a href=\"view.php?id=$cm->id&mode=entry&hook=$entry->id\">";
|
|
|
|
glossary_print_entry_concept($entry);
|
|
echo '</a></b> ';
|
|
if ( $return = glossary_print_entry_commentslink($course, $cm, $glossary, $entry,$mode,$hook, 'html') ) {
|
|
echo "<font size=-1>($return)</font>";
|
|
}
|
|
|
|
echo '<br />';
|
|
} else {
|
|
echo "<center>";
|
|
print_string("noentry", "glossary");
|
|
echo "</center>";
|
|
}
|
|
echo "</td></tr>";
|
|
|
|
echo "</table>\n";
|
|
return $return;
|
|
}
|
|
|
|
?>
|