Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

- New display format: Entry list (please, fix the translation if it i…

…s wrong).
  • Loading branch information...
commit 1f8ab702812750f86d21eb95387fc8dc3947ea6e 1 parent b191803
authored November 18, 2003
1  lang/en/glossary.php
@@ -59,6 +59,7 @@
59 59
 $string['displayformat3']  = "Encyclopedia";
60 60
 $string['displayformat4']  = "FAQ";
61 61
 $string['displayformat5'] = "Full without author";
  62
+$string['displayformat6'] = "Entry list";
62 63
 $string['duplicateentry'] = "Duplicate entry";
63 64
 $string['editcategories'] = "Edit categories";
64 65
 $string['editentry'] = "Edit entry";
28  mod/glossary/formats/6.php
... ...
@@ -0,0 +1,28 @@
  1
+<?PHP  // $Id$
  2
+
  3
+function glossary_print_entry_by_format($course, $cm, $glossary, $entry,$mode="",$hook="",$printicons=1) {
  4
+    global $THEME, $USER;
  5
+
  6
+    $colour = "#FFFFFF";
  7
+
  8
+    echo "\n<table class=\"generalbox\" border=0 cellspacing=0 width=95% valign=top cellpadding=10>";
  9
+
  10
+    echo "\n<tr>";
  11
+    echo "<td width=100% bgcolor=\"$colour\">";
  12
+    if ($entry) {
  13
+        echo "<b><a href=\"view.php?id=$cm->id&mode=entry&hook=$entry->id&displayformat=0\">";
  14
+
  15
+        glossary_print_entry_concept($entry);
  16
+        echo '</a></b><br />';
  17
+    } else {
  18
+        echo "<center>";
  19
+        print_string("noentry", "glossary");
  20
+        echo "</center>";
  21
+    }
  22
+    echo "</td></tr>";
  23
+
  24
+    echo "</table>\n";
  25
+
  26
+}
  27
+
  28
+?>

0 notes on commit 1f8ab70

Please sign in to comment.
Something went wrong with that request. Please try again.