Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

- Printer-friendly version of the glossary

- First step in the export/import feature (export is done)
- Minor changes here and there
  • Loading branch information...
commit 4f4ca7b5e16cf221d2b9cc5b87972e1af05629c5 1 parent ec48239
authored
3  lang/en/glossary.php
@@ -58,10 +58,12 @@
58 58
 $string['explainalphabet'] = "Browse the glossary using this index";
59 59
 $string['explainall'] = "Shows ALL entries on one page";
60 60
 $string['exportedentry'] = "Exported entry";
  61
+$string['exportglossary'] = "Export glossary";
61 62
 $string['exporttomainglossary'] = "Export to main glossary";
62 63
 $string['fillfields'] = "Concept and definition are mandatory fields.";
63 64
 $string['fullmatch'] = "Match whole words only<br><small>(when automatically linked)</small>";
64 65
 $string['glossarytype'] = "Glossary Type";
  66
+$string['glosssaryexported'] = "Glossary exported.";
65 67
 $string['isglobal'] = "Is this glossary global?";
66 68
 $string['mainglossary'] = "Main glossary";
67 69
 $string['modulename'] = "Glossary";
@@ -73,6 +75,7 @@
73 75
 $string['nocomments'] = "(No comments found on this entry)";
74 76
 $string['noentries'] = "No entries found in this section";
75 77
 $string['noentry'] = "No entry found.";
  78
+$string['printerfriendly'] = "Printer-friendly version";
76 79
 $string['question'] = "Question";
77 80
 $string['searchindefinition'] = "Search full text";
78 81
 $string['secondaryglossary'] = "Secondary glossary";
15  mod/glossary/TODO.txt
... ...
@@ -0,0 +1,15 @@
  1
+Things that are in the inkpot yet:
  2
+==================================
  3
+
  4
+
  5
+- Allow to export/import entries (Working on it)
  6
+   IMPORTING OPTIONS:
  7
+        * New glossary o just append entries to the current one?
  8
+        * With or withot categories?
  9
+- Add Alias to concepts in order to use dynalinks on them.
  10
+- Allow to set default values for glossaries and entries settings
  11
+- Allow grading of entries
  12
+    * Evaluation
  13
+    * Self-evaluation?
  14
+    * Co-evaluation?
  15
+- Add printer friendly version of glossaries (Working on it)
2  mod/glossary/approve.php
@@ -33,6 +33,6 @@
33 33
     } else {
34 34
         add_to_log($course->id, "glossary", "approve entry", "showentry.php?id=$cm->id&eid=$eid", "$eid");
35 35
     }
36  
-    redirect("view.php?id=$cm->id&tab=$tab&l=ALL",get_string("entryapproved","glossary"),1);
  36
+    redirect("view.php?id=$cm->id&tab=$tab&l=$l",get_string("entryapproved","glossary"),1);
37 37
     die;
38 38
 ?>
1  mod/glossary/edit.php
@@ -196,6 +196,7 @@
196 196
 
197 197
 print_heading($glossary->name);
198 198
 
  199
+
199 200
 include("edit.html");
200 201
 
201 202
 print_footer($course);
2  mod/glossary/editcategories.php
@@ -42,7 +42,7 @@
42 42
     $strglossary     = get_string("modulename", "glossary");
43 43
 
44 44
     print_header(strip_tags("$course->shortname: $glossary->name"), "$course->fullname",
45  
-                 "$navigation <A HREF=index.php?id=$course->id>$strglossaries</A> -> <A HREF=view.php?id=$cm->id&currentview=categories>$glossary->name</a> -> " . get_string("categories","glossary"),
  45
+                 "$navigation <A HREF=index.php?id=$course->id>$strglossaries</A> -> <A HREF=view.php?id=$cm->id&tab=GLOSSARY_CATEGORY_VIEW>$glossary->name</a> -> " . get_string("categories","glossary"),
46 46
                   "", "", true, update_module_button($cm->id, $course->id, $strglossary),
47 47
                   navmenu($course, $cm));
48 48
 
31  mod/glossary/export.php
... ...
@@ -0,0 +1,31 @@
  1
+<?php 
  2
+
  3
+    require_once("../../config.php");
  4
+    require_once("lib.php");
  5
+    
  6
+    require_variable($id);           // Course Module ID
  7
+
  8
+    optional_variable($tab,GLOSSARY_APPROVAL_VIEW);
  9
+    optional_variable($l,"ALL");
  10
+
  11
+    if (! $cm = get_record("course_modules", "id", $id)) {
  12
+        error("Course Module ID was incorrect");
  13
+    } 
  14
+    
  15
+    if (! $course = get_record("course", "id", $cm->course)) {
  16
+        error("Course is misconfigured");
  17
+    } 
  18
+    
  19
+    if (! $glossary = get_record("glossary", "id", $cm->instance)) {
  20
+        error("Course module is incorrect");
  21
+    } 
  22
+    
  23
+    require_login($course->id);    
  24
+    if (!isteacher($course->id)) {
  25
+        error("You must be a teacher to use this page.");
  26
+    } 
  27
+
  28
+    glossary_generate_export_file($glossary);
  29
+    redirect("view.php?id=$cm->id&tab=$tab&l=$l",get_string("glosssaryexported","glossary"),1);
  30
+    die;
  31
+?>
168  mod/glossary/lib.php
@@ -293,7 +293,7 @@ function glossary_print_entry_definition($entry) {
293 293
     echo format_text($definition, $entry->format);
294 294
 }
295 295
 
296  
-function glossary_print_entry_attachment($entry,$format,$align) {
  296
+function glossary_print_entry_attachment($entry,$format=NULL,$align="right") {
297 297
 ///   valid format values: html  : Return the HTML link for the attachment as an icon
298 298
 ///                        text  : Return the HTML link for tha attachment as text
299 299
 ///                        blank : Print the output to the screen
@@ -366,7 +366,7 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry,$tab="",$cat
366 366
     }
367 367
     echo "</font>";
368 368
     if ( $glossary->allowcomments and !isguest()) {
369  
-        echo " <a href=\"comment.php?id=$cm->id&eid=$entry->id\"><img  alt=\"" . get_string("addcomment","glossary") . "\" src=\"comment.gif\" height=16 width=16 border=0></a> ";
  369
+        echo " <a title=\"" . get_string("addcomment","glossary") . "\" href=\"comment.php?id=$cm->id&eid=$entry->id\"><img src=\"comment.gif\" height=16 width=16 border=0></a> ";
370 370
     }
371 371
 
372 372
     if ($isteacher or $glossary->studentcanpost and $entry->userid == $USER->id) {
@@ -375,7 +375,7 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry,$tab="",$cat
375 375
             $mainglossary = get_record("glossary","mainglossary",1,"course",$course->id);
376 376
             if ( $mainglossary ) {  // if there is a main glossary defined, allow to export the current entry
377 377
 
378  
-                echo " <a href=\"exportentry.php?id=$cm->id&entry=$entry->id&tab=$tab&cat=$cat\"><img  alt=\"" . get_string("exporttomainglossary","glossary") . "\"src=\"export.gif\" height=11 width=11 border=0></a> ";
  378
+                echo " <a title=\"" . get_string("exporttomainglossary","glossary") . "\" href=\"exportentry.php?id=$cm->id&entry=$entry->id&tab=$tab&cat=$cat\"><img src=\"export.gif\" height=11 width=11 border=0></a> ";
379 379
 
380 380
             }
381 381
         }
@@ -388,11 +388,11 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry,$tab="",$cat
388 388
 
389 389
         // Exported entries can be updated/deleted only by teachers in the main glossary
390 390
         if ( !$importedentry and ($isteacher or !$ismainglossary) ) {
391  
-            echo " <a href=\"deleteentry.php?id=$cm->id&mode=delete&entry=$entry->id&tab=$tab&cat=$cat\"><img  alt=\"" . get_string("delete") . "\"src=\"";
  391
+            echo " <a title=\"" . get_string("delete") . "\" href=\"deleteentry.php?id=$cm->id&mode=delete&entry=$entry->id&tab=$tab&cat=$cat\"><img src=\"";
392 392
             echo $icon;
393 393
             echo "\" height=11 width=11 border=0></a> ";
394 394
             
395  
-            echo " <a href=\"edit.php?id=$cm->id&e=$entry->id&tab=$tab&cat=$cat\"><img  alt=\"" . get_string("edit") . "\" src=\"../../pix/t/edit.gif\" height=11 width=11 border=0></a>";
  395
+            echo " <a title=\"" . get_string("edit") . "\" href=\"edit.php?id=$cm->id&e=$entry->id&tab=$tab&cat=$cat\"><img src=\"../../pix/t/edit.gif\" height=11 width=11 border=0></a>";
396 396
         } elseif ( $importedentry ) {
397 397
             echo " <font size=-1>" . get_string("exportedentry","glossary") . "</font>";
398 398
         }
@@ -1066,4 +1066,160 @@ function glossary_print_dynaentry($courseid, $entries) {
1066 1066
     echo "</td>";
1067 1067
     echo "</tr></table></center>";
1068 1068
 }
1069  
-?>
  1069
+
  1070
+function glossary_generate_export_file($glossary) {
  1071
+global $CFG;
  1072
+    glossary_check_moddata_dir($glossary);
  1073
+    $h = glossary_open_xml($glossary);
  1074
+
  1075
+    $status = fwrite ($h,glossary_start_tag("INFO",1,true));
  1076
+        fwrite ($h,glossary_full_tag("NAME",2,false,$glossary->name));
  1077
+        fwrite ($h,glossary_full_tag("INTRO",2,false,$glossary->intro));
  1078
+        fwrite ($h,glossary_full_tag("STUDENTCANPOST",2,false,$glossary->studentcanpost));
  1079
+        fwrite ($h,glossary_full_tag("ALLOWDUPLICATEDENTRIES",2,false,$glossary->allowduplicatedentries));
  1080
+        fwrite ($h,glossary_full_tag("SHOWSPECIAL",2,false,$glossary->showspecial));
  1081
+        fwrite ($h,glossary_full_tag("SHOWALPHABET",2,false,$glossary->showalphabet));
  1082
+        fwrite ($h,glossary_full_tag("SHOWALL",2,false,$glossary->showall));
  1083
+        fwrite ($h,glossary_full_tag("ALLOWCOMMENTS",2,false,$glossary->allowcomments));
  1084
+        fwrite ($h,glossary_full_tag("USEDYNALINK",2,false,$glossary->usedynalink));
  1085
+        fwrite ($h,glossary_full_tag("DEFAULTAPPROVAL",2,false,$glossary->defaultapproval));
  1086
+        fwrite ($h,glossary_full_tag("GLOBALGLOSSARY",2,false,$glossary->globalglossary));
  1087
+    $status =fwrite ($h,glossary_end_tag("INFO",1,true));
  1088
+
  1089
+    if ( $entries = get_records("glossary_entries","glossaryid",$glossary->id) ) {
  1090
+        $status = fwrite ($h,glossary_start_tag("ENTRIES",1,true));
  1091
+        foreach ($entries as $entry) {
  1092
+            if ( $entry->approved ) {
  1093
+                $status = fwrite($h,glossary_start_tag("ENTRY",2,true));
  1094
+                    fwrite($h,glossary_full_tag("ID",3,false,$entry->id));
  1095
+                    fwrite($h,glossary_full_tag("CONCEPT",3,false,$entry->concept));
  1096
+                    fwrite($h,glossary_full_tag("DEFINITION",3,false,$entry->definition));
  1097
+                    fwrite($h,glossary_full_tag("FORMAT",3,false,$entry->format));
  1098
+                    fwrite($h,glossary_full_tag("ATTACHMENT",3,false,$entry->attachment));
  1099
+                    fwrite($h,glossary_full_tag("USEDYNALINK",3,false,$entry->usedynalink));
  1100
+                    fwrite($h,glossary_full_tag("CASESENSITIVE",3,false,$entry->casesensitive));
  1101
+                    fwrite($h,glossary_full_tag("FULLMATCH",3,false,$entry->fullmatch));
  1102
+                $status =fwrite($h,glossary_end_tag("ENTRY",2,true));
  1103
+            }
  1104
+        }
  1105
+        $status =fwrite ($h,glossary_end_tag("ENTRIES",1,true));
  1106
+    }
  1107
+
  1108
+    if ( $categories = get_records("glossary_categories","glossaryid",$glossary->id) ) {
  1109
+        $status = fwrite ($h,glossary_start_tag("CATEGORIES",1,true));
  1110
+        foreach ($categories as $category) {
  1111
+            $status = fwrite ($h,glossary_start_tag("CATEGORY",2,true));
  1112
+            fwrite($h,glossary_full_tag("NAME",3,false,$category->name));
  1113
+            if ( $catentries = get_records("glossary_entries_categories","categoryid",$category->id) ) {
  1114
+                $count = 0;
  1115
+                foreach ($catentries as $catentry) {
  1116
+                    fwrite($h,glossary_full_tag("ENTRYID$count",3,false,$catentry->entryid));
  1117
+                    $count++;
  1118
+                }
  1119
+            }
  1120
+            $status = fwrite($h,glossary_end_tag("CATEGORY",2,true));
  1121
+        }
  1122
+        $status = fwrite($h,glossary_end_tag("CATEGORIES",1,true));
  1123
+    }
  1124
+    $h = glossary_close_xml($h);
  1125
+}
  1126
+// Functions designed by Eloy Lafuente
  1127
+//
  1128
+//Function to create, open and write header of the xml file
  1129
+function glossary_open_xml($glossary) {
  1130
+
  1131
+        global $CFG;
  1132
+        
  1133
+        $status = true;
  1134
+
  1135
+        //Open for writing
  1136
+
  1137
+        $file = $CFG->dataroot."/$glossary->course/glossary/". clean_filename($glossary->name) ."/glossary.xml";
  1138
+        $h = fopen($file,"w");
  1139
+        //Writes the header
  1140
+        $status = fwrite ($h,"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
  1141
+        if ($status) {
  1142
+            $status = fwrite ($h,glossary_start_tag("GLOSSARY",0,true));
  1143
+        }
  1144
+        if ($status) {
  1145
+            return $h;
  1146
+        } else {
  1147
+            return false;
  1148
+        }
  1149
+}
  1150
+
  1151
+//Close the file
  1152
+function glossary_close_xml($h) {
  1153
+        $status = fwrite ($h,glossary_end_tag("GLOSSARY",0,true));
  1154
+        return fclose($h);
  1155
+}
  1156
+
  1157
+//Return the xml start tag 
  1158
+function glossary_start_tag($tag,$level=0,$endline=false) {
  1159
+        if ($endline) {
  1160
+           $endchar = "\n";
  1161
+        } else {
  1162
+           $endchar = "";
  1163
+        }
  1164
+        return str_repeat(" ",$level*2)."<".strtoupper($tag).">".$endchar;
  1165
+}
  1166
+    
  1167
+//Return the xml end tag 
  1168
+function glossary_end_tag($tag,$level=0,$endline=true) {
  1169
+        if ($endline) {
  1170
+           $endchar = "\n";
  1171
+        } else {
  1172
+           $endchar = "";
  1173
+        }
  1174
+        return str_repeat(" ",$level*2)."</".strtoupper($tag).">".$endchar;
  1175
+}
  1176
+    
  1177
+//Return the start tag, the contents and the end tag
  1178
+function glossary_full_tag($tag,$level=0,$endline=true,$content,$to_utf=true) {
  1179
+        $st = glossary_start_tag($tag,$level,$endline);
  1180
+        $co="";
  1181
+        if ($to_utf) {
  1182
+            $co = preg_replace("/\r\n|\r/", "\n", utf8_encode(htmlspecialchars($content)));
  1183
+        } else {
  1184
+            $co = preg_replace("/\r\n|\r/", "\n", htmlspecialchars($content));
  1185
+        }
  1186
+        $et = glossary_end_tag($tag,0,true);
  1187
+        return $st.$co.$et;
  1188
+}
  1189
+
  1190
+    //Function to check and create the needed moddata dir to
  1191
+    //save all the mod backup files. We always name it moddata
  1192
+    //to be able to restore it, but in restore we check for
  1193
+    //$CFG->moddata !!
  1194
+function glossary_check_moddata_dir($glossary) {
  1195
+  
  1196
+    global $CFG;
  1197
+
  1198
+    $status = glossary_check_dir_exists($CFG->dataroot."/$glossary->course",true);
  1199
+    if ( $status ) {
  1200
+        $status = glossary_check_dir_exists($CFG->dataroot."/$glossary->course/glossary",true);
  1201
+        if ( $status ) {
  1202
+            $status = glossary_check_dir_exists($CFG->dataroot."/$glossary->course/glossary/". clean_filename($glossary->name),true);
  1203
+        }
  1204
+    }
  1205
+    return $status;
  1206
+}
  1207
+
  1208
+//Function to check if a directory exists
  1209
+//and, optionally, create it
  1210
+function glossary_check_dir_exists($dir,$create=false) {
  1211
+
  1212
+    global $CFG; 
  1213
+
  1214
+    $status = true;
  1215
+    if(!is_dir($dir)) {
  1216
+        if (!$create) {
  1217
+            $status = false;
  1218
+        } else {
  1219
+            umask(0000);
  1220
+            $status = mkdir ($dir,$CFG->directorypermissions);
  1221
+        }
  1222
+    }
  1223
+    return $status;
  1224
+}
  1225
+?>
BIN  mod/glossary/print.gif
136  mod/glossary/print.php
... ...
@@ -0,0 +1,136 @@
  1
+<?php 
  2
+
  3
+    require_once("../../config.php");
  4
+    require_once("lib.php");
  5
+    global $CFG;
  6
+    
  7
+    require_variable($id);                         // Course Module ID
  8
+    require_variable($tab,GLOSSARY_STANDARD_VIEW); // format to show the entries
  9
+    optional_variable($sortkey,"UPDATE");          // Sorting key if TAB = GLOSSARY_DATE_VIEW
  10
+    optional_variable($sortorder,"asc");           // Sorting order if TAB = GLOSSARY_DATE_VIEW
  11
+
  12
+    if (! $cm = get_record("course_modules", "id", $id)) {
  13
+        error("Course Module ID was incorrect");
  14
+    } 
  15
+    
  16
+    if (! $course = get_record("course", "id", $cm->course)) {
  17
+        error("Course is misconfigured");
  18
+    } 
  19
+    
  20
+    if (! $glossary = get_record("glossary", "id", $cm->instance)) {
  21
+        error("Course module is incorrect");
  22
+    } 
  23
+    
  24
+    require_login($course->id);    
  25
+    if (isguest()) {
  26
+        error("You must be logged to use this page.");
  27
+    } 
  28
+
  29
+/// Generating the SQL based on the format to show
  30
+    switch ($tab) {
  31
+    case GLOSSARY_CATEGORY_VIEW:
  32
+        $entries = get_records_sql("SELECT c.name pivot, e.*
  33
+                                    FROM {$CFG->prefix}glossary_entries e,
  34
+                                         {$CFG->prefix}glossary_entries_categories ec,
  35
+                                         {$CFG->prefix}glossary_categories as c
  36
+                                    WHERE e.id = ec.entryid AND ec.categoryid = c.id AND
  37
+                                          (e.glossaryid = $glossary->id or e.sourceglossaryid = $glossary->id)
  38
+                                          AND e.approved != 0
  39
+                                    ORDER BY c.name, e.concept");
  40
+
  41
+    break;
  42
+
  43
+    case GLOSSARY_DATE_VIEW:
  44
+    //// Valid sorting values
  45
+        switch ($sortkey) {
  46
+        case 'CREATION':
  47
+            $sortkey = 'timecreated';
  48
+        break;
  49
+
  50
+        case 'UPDATE':
  51
+        default:
  52
+            $sortkey = 'timemodified';
  53
+        break;
  54
+        }
  55
+        if ($sortorder != 'asc' and $sortorder != 'desc') {
  56
+            $sortorder = 'asc';
  57
+        }
  58
+
  59
+        $entries = get_records_sql("SELECT e.timemodified pivot, e.*
  60
+                                    FROM {$CFG->prefix}glossary_entries e
  61
+                                    WHERE (e.glossaryid = $glossary->id or e.sourceglossaryid = $glossary->id)
  62
+                                          AND e.approved != 0
  63
+                                    ORDER BY e.$sortkey $sortorder");
  64
+
  65
+    break;
  66
+    case GLOSSARY_STANDARD_VIEW:
  67
+    default:
  68
+        switch ($CFG->dbtype) {
  69
+        case "postgres7":
  70
+            $pivot = "substring(e.concept, 1,1)";
  71
+        break;
  72
+
  73
+        case "mysql":
  74
+            $pivot = "left(e.concept,1)";
  75
+        break;
  76
+        default:
  77
+            $pivot = "e.concept";
  78
+        break;
  79
+        }
  80
+
  81
+        $entries = get_records_sql("SELECT $pivot pivot, e.*
  82
+                                    FROM {$CFG->prefix}glossary_entries e
  83
+                                    WHERE (e.glossaryid = $glossary->id or e.sourceglossaryid = $glossary->id)
  84
+                                          AND e.approved != 0
  85
+                                    ORDER BY e.concept $sortorder");
  86
+    break;
  87
+    } 
  88
+
  89
+
  90
+    echo '<p><STRONG>' . get_string("course") . ': <i>' . $course->fullname . '</i><br />';
  91
+    echo get_string("modulename","glossary") . ': <i>' . $glossary->name . '</i></STRONG></p>';
  92
+
  93
+    $groupheader = '';
  94
+    $tableisopen = 0;
  95
+    foreach ($entries as $entry) {
  96
+        $pivot = $entry->pivot;
  97
+        if ( $CFG->dbtype != "postgres7" and $CFG->dbtype != "mysql" and $tab != GLOSSARY_CATEGORY_VIEW) {
  98
+            $pivot = $pivot[0];
  99
+        }
  100
+        
  101
+        if ($tab != GLOSSARY_DATE_VIEW) {
  102
+            if ($groupheader != $pivot) {
  103
+            /// Printing th eheader of the group
  104
+
  105
+                if ($tableisopen) {
  106
+                    echo '</table>';
  107
+                    echo '</center>';
  108
+                    $tableisopen = 0;
  109
+                }
  110
+                $groupheader = $pivot;
  111
+                echo '<p align="center"><STRONG><font size="4" color="#0000FF">' . $groupheader . '</font></STRONG></p>';
  112
+            }
  113
+        }
  114
+        if ( !$tableisopen ) {
  115
+            echo '<center>';
  116
+            echo '<table border="1" cellpadding="5" cellspacing="0" width="95%">';
  117
+            $tableisopen = 1;
  118
+        }
  119
+
  120
+        echo '<tr>';
  121
+        echo '<td width="25%" align="right" valign="top"><b>'. $entry->concept . ': </b></td>';
  122
+        echo '<td width="75%">';
  123
+
  124
+        if ( $entry->attachment) {
  125
+            glossary_print_entry_attachment($entry);
  126
+        }
  127
+
  128
+        echo format_text("<nolink>$entry->definition</nolink>",$entry->format);
  129
+
  130
+        echo '</tr>';
  131
+    }
  132
+    if ($tableisopen) {
  133
+        echo '</table>';
  134
+        echo '</center>';
  135
+    }
  136
+?>
21  mod/glossary/view.php
@@ -134,9 +134,11 @@
134 134
         "", "", true, update_module_button($cm->id, $course->id, $strglossary),
135 135
         navmenu($course, $cm));
136 136
     
137  
-    print_heading($glossary->name);
138  
-    
139  
-    
  137
+    echo '<p align="center"><font size="3"><b>' . stripslashes_safe($glossary->name);
  138
+    echo ' <a title ="' . get_string("printerfriendly","glossary") . '" target="_blank" href="print.php?id=' . $cm->id . '&tab=' . $tab . '&sortkey=' . $sortkey . '&sortorder=' . $sortorder . '">';
  139
+    echo '<img border=0 src="print.gif"/></a>';
  140
+    echo '</b></font></p>';
  141
+
140 142
 /// Info box
141 143
 
142 144
     if ( $glossary->intro ) {
@@ -145,16 +147,25 @@
145 147
         print_simple_box_end();
146 148
     }
147 149
 
148  
-/// Add button
  150
+/// Add buttons
  151
+
149 152
     if (!isguest()) {
150 153
         if ( isteacher($course->id) or $glossary->studentcanpost  ) {
  154
+            unset($options);
151 155
             $options = array ("id" => "$cm->id");
152 156
             echo '<center><p>';
153 157
             print_single_button("edit.php", $options, $straddentry);
154 158
             echo '</p></center>';
155 159
         }
156 160
     } 
157  
-    echo '<p>';
  161
+
  162
+/*
  163
+    unset($options);
  164
+    $options = array ("id" => "$cm->id");
  165
+    echo '<center><p>';
  166
+    print_single_button("export.php", $options, get_string("exportglossary","glossary"));
  167
+    echo '</p></center>';
  168
+*/
158 169
 
159 170
 /// Search box
160 171
 

0 notes on commit 4f4ca7b

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