]> git.mjollnir.org Git - moodle.git/commitdiff
- New display format: Entry list (please, fix the translation if it is wrong).
authorwillcast <willcast>
Tue, 18 Nov 2003 00:46:02 +0000 (00:46 +0000)
committerwillcast <willcast>
Tue, 18 Nov 2003 00:46:02 +0000 (00:46 +0000)
lang/en/glossary.php
mod/glossary/formats/6.php [new file with mode: 0644]

index 7d4b65e41dd6c40cce638a01a081d2c4ab40801e..1ac0f142dcb109f6774714cc34c5468196d65910 100644 (file)
@@ -59,6 +59,7 @@ $string['displayformat2']  = "Full with author";
 $string['displayformat3']  = "Encyclopedia";
 $string['displayformat4']  = "FAQ";
 $string['displayformat5'] = "Full without author";
+$string['displayformat6'] = "Entry list";
 $string['duplicateentry'] = "Duplicate entry";
 $string['editcategories'] = "Edit categories";
 $string['editentry'] = "Edit entry";
diff --git a/mod/glossary/formats/6.php b/mod/glossary/formats/6.php
new file mode 100644 (file)
index 0000000..d9e2356
--- /dev/null
@@ -0,0 +1,28 @@
+<?PHP  // $Id$
+
+function glossary_print_entry_by_format($course, $cm, $glossary, $entry,$mode="",$hook="",$printicons=1) {
+    global $THEME, $USER;
+
+    $colour = "#FFFFFF";
+
+    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&displayformat=0\">";
+
+        glossary_print_entry_concept($entry);
+        echo '</a></b><br />';
+    } else {
+        echo "<center>";
+        print_string("noentry", "glossary");
+        echo "</center>";
+    }
+    echo "</td></tr>";
+
+    echo "</table>\n";
+
+}
+
+?>