mirrored from git://git.moodle.org/moodle.git
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
/
1.php
48 lines (37 loc) · 1.26 KB
/
1.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?PHP // $Id$
function glossary_print_entry_by_format($course, $cm, $glossary, $entry) {
global $THEME, $USER;
// if ($entry->timemarked < $entry->modified) {
$colour = $THEME->cellheading2;
// } else {
// $colour = $THEME->cellheading;
// }
echo "<table width=95% border=0><tr><td>";
echo "\n<TABLE BORDER=1 CELLSPACING=0 width=100% valign=top cellpadding=10>";
echo "\n<TR>";
echo "<TD WIDTH=100% BGCOLOR=\"$colour\">";
if ($entry->attachment) {
$entry->course = $course->id;
echo "<table border=0 align=right><tr><td>";
echo glossary_print_attachments($entry, "html");
echo "</td></tr></table>";
}
echo "<b>$entry->concept</b><br>";
if ($entry) {
echo " <FONT SIZE=1>".get_string("lastedited").": ".userdate($entry->timemodified)."</FONT>";
}
echo "</TR>";
echo "\n<TR><TD WIDTH=100% BGCOLOR=\"$THEME->cellcontent\">";
if ($entry) {
echo format_text($entry->definition, $entry->format);
glossary_print_entry_icons($course, $cm, $glossary, $entry);
} else {
echo "<center>";
print_string("noentry", "glossary");
echo "</center>";
}
echo "</TD></TR>";
echo "</TABLE>\n";
echo "</td></tr></table>";
}
?>