1
<?PHP // $Id: entrylist_format.php,v 1.1.2.2 2004/12/18 20:26:25 stronk7 Exp $
3
function glossary_show_entry_entrylist($course, $cm, $glossary, $entry, $mode="", $hook="", $printicons=1, $ratings=NULL, $aliases=true) {
9
echo "\n<table border=0 cellspacing=0 width=95% valign=top cellpadding=10>";
12
echo "<td width=100% bgcolor=\"$colour\">";
14
glossary_print_entry_approval($cm, $entry, $mode);
15
echo "<b><a href=\"showentry.php?courseid=$course->id\&eid=$entry->id\&displayformat=dictionary\" target=\"_blank\" onClick=\"return openpopup('/mod/glossary/showentry.php?courseid=$course->id\&eid=$entry->id\&displayformat=dictionary', 'entry', 'menubar=0,location=0,scrollbars,resizable,width=600,height=450', 0);\">";
16
glossary_print_entry_concept($entry);
19
if ( $return = glossary_print_entry_commentslink($course, $cm, $glossary, $entry,$mode,$hook, 'html') ) {
20
echo "<font size=-1>($return)</font>";
26
print_string("noentry", "glossary");
35
function glossary_print_entry_entrylist($course, $cm, $glossary, $entry, $mode="", $hook="", $printicons=1, $ratings=NULL) {
37
//The print view for this format is different from the normal view, so we implement it here completely
38
global $THEME, $CFG, $USER;
40
$colour = $THEME->cellheading2;
42
//Take out autolinking in definitions un print view
43
$entry->definition = '<nolink>'.$entry->definition.'</nolink>';
45
echo "\n<table border=0 width=95% cellspacing=0 valign=top cellpadding=3 class=forumpost align=center>\n";
47
echo "<td width=\"100%\" valign=\"top\" bgcolor=\"#FFFFFF\">\n";
49
glossary_print_entry_concept($entry);
51
glossary_print_entry_definition($entry);
52
$return = glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook, false, false, false);