mirror of
https://github.com/moodle/moodle.git
synced 2025-02-06 00:05:43 +01:00
3eb2f7ecf8
Please, verify (and close) it. Patch submitted by Petr Skoda. Thanks! I've modified some lines in formats to avoid some Notices and make everything display more consistent. Please, test it!!
39 lines
1.4 KiB
PHP
39 lines
1.4 KiB
PHP
<?PHP // $Id$
|
|
|
|
function glossary_print_entry_by_format($course, $cm, $glossary, $entry, $mode="",$hook="",$printicons=1,$ratings=NULL) {
|
|
global $THEME, $USER;
|
|
$return = false;
|
|
if ( $entry ) {
|
|
$colour = $THEME->cellheading2;
|
|
|
|
echo '<br /><table border=0 cellspacing=0 width=95% valign=top cellpadding=10 class=forumpost>';
|
|
|
|
echo '<tr>';
|
|
echo "<td width=100% bgcolor=\"$colour\">";
|
|
$entry->course = $course->id;
|
|
glossary_print_entry_approval($cm, $entry, $mode);
|
|
glossary_print_entry_attachment($entry,"html","right");
|
|
|
|
echo '<b>' . get_string("question","glossary") . ':</b> ';
|
|
glossary_print_entry_concept($entry) . '<br>';
|
|
echo ' <font size=1>' . get_string("lastedited").': '.userdate($entry->timemodified) . '</font></tr>';
|
|
echo "<tr><td width=100% bgcolor=\"$THEME->cellcontent\">";
|
|
echo '<b>' . get_string("answer","glossary") . ':</b> ';
|
|
glossary_print_entry_definition($entry);
|
|
|
|
|
|
glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook,$printicons);
|
|
echo ' ';
|
|
$return = glossary_print_entry_ratings($course, $entry, $ratings);
|
|
echo '</td></tr></table>';
|
|
|
|
} else {
|
|
echo '<center>';
|
|
print_string("noentry", "glossary");
|
|
echo '</center>';
|
|
}
|
|
return $return;
|
|
}
|
|
|
|
?>
|