2 $yes = get_string("yes");
3 $no = get_string("no");
5 <form method=
"post" action=
"module.php" id=
"form">
7 <input type=
"hidden" name=
"sesskey" value=
"<?php echo $USER->sesskey ?>" />
9 <table cellpadding
="9" cellspacing
="0" >
11 <td colspan
="3" align
="center"><strong
><?php
print_string("glossaryleveldefaultsettings","glossary") ?></strong></td>
14 <td align=
"right">glossary_entbypage:
</td>
16 <input name=
"glossary_entbypage" type=
"text" size=
"3" value=
"<?php p(isset($CFG->glossary_entbypage) ? $CFG->glossary_entbypage : 10) ?>" />
19 <?php
print_string("entbypage", "glossary") ?>
23 <td align=
"right">glossary_dupentries:
</td>
25 <select size=
"1" name=
"glossary_dupentries">
29 if ($CFG->glossary_dupentries
) {
30 $yselected = " selected=\"selected\" ";
32 $nselected = " selected=\"selected\" ";
35 <option value=
"1" <?php echo $yselected ?>><?php p($yes)
?></option>
36 <option value=
"0" <?php echo $nselected ?>><?php p($no)
?></option>
40 <?php print_string("cnfallowdupentries", "glossary") ?>
44 <td align=
"right">glossary_allowcomments:
</td>
46 <select size=
"1" name=
"glossary_allowcomments">
50 if ($CFG->glossary_allowcomments
) {
51 $yselected = " selected=\"selected\" ";
53 $nselected = " selected=\"selected\" ";
56 <option value=
"1" <?php echo $yselected ?>><?php p($yes)
?></option>
57 <option value=
"0" <?php echo $nselected ?>><?php p($no)
?></option>
61 <?php print_string("cnfallowcomments", "glossary") ?>
65 <td align=
"right">glossary_linkbydefault:
</td>
67 <select size=
"1" name=
"glossary_linkbydefault">
71 if ($CFG->glossary_linkbydefault
) {
72 $yselected = " selected=\"selected\" ";
74 $nselected = " selected=\"selected\" ";
77 <option value=
"1" <?php echo $yselected ?>><?php p($yes)
?></option>
78 <option value=
"0" <?php echo $nselected ?>><?php p($no)
?></option>
82 <?php print_string("cnflinkglossaries", "glossary") ?>
86 <td align=
"right">glossary_defaultapproval:
</td>
88 <select size=
"1" name=
"glossary_defaultapproval">
92 if ($CFG->glossary_defaultapproval
) {
93 $yselected = " selected=\"selected\" ";
95 $nselected = " selected=\"selected\" ";
98 <option value=
"1" <?php echo $yselected ?>><?php p($yes)
?></option>
99 <option value=
"0" <?php echo $nselected ?>><?php p($no)
?></option>
103 <?php print_string("cnfapprovalstatus", "glossary") ?>
107 <td align=
"right">glossary_enablerssfeeds:
</td>
110 if (!isset($CFG->enablerssfeeds
) ||
$CFG->enablerssfeeds
== 0) {
114 $options[0] = get_string("no");
115 $options[1] = get_string("yes");
117 $glossary_enablerssfeeds = false;
118 if (isset($CFG->glossary_enablerssfeeds
) && $CFG->glossary_enablerssfeeds
== 1) {
119 $glossary_enablerssfeeds = true;
122 choose_from_menu ($options, "glossary_enablerssfeeds", $glossary_enablerssfeeds, "", "", "");
128 print_string("configenablerssfeeds","glossary");
129 if (!isset($CFG->enablerssfeeds
) ||
$CFG->enablerssfeeds
== 0) {
130 print_string("configenablerssfeedsdisabled");
136 <td colspan =
"3" align=
"center"><strong><?php print_string("entryleveldefaultsettings","glossary") ?></strong></td>
139 <td align=
"right">glossary_linkentries:
</td>
141 <select size=
"1" name=
"glossary_linkentries">
145 if (isset($CFG->glossary_linkentries
) && $CFG->glossary_linkentries
) {
146 $yselected = " selected=\"selected\" ";
148 $nselected = " selected=\"selected\" ";
151 <option value=
"1" <?php echo $yselected ?>><?php p($yes)
?></option>
152 <option value=
"0" <?php echo $nselected ?>><?php p($no)
?></option>
156 <?php print_string("cnflinkentry", "glossary") ?>
160 <td align=
"right">glossary_casesensitive:
</td>
162 <select size=
"1" name=
"glossary_casesensitive">
166 if (isset($CFG->glossary_casesensitive
) && $CFG->glossary_casesensitive
) {
167 $yselected = " selected=\"selected\" ";
169 $nselected = " selected=\"selected\" ";
172 <option value=
"1" <?php echo $yselected ?>><?php p($yes)
?></option>
173 <option value=
"0" <?php echo $nselected ?>><?php p($no)
?></option>
177 <?php print_string("cnfcasesensitive", "glossary") ?>
181 <td align=
"right">glossary_fullmatch:
</td>
183 <select size=
"1" name=
"glossary_fullmatch">
187 if (isset($CFG->glossary_fullmatch
) && $CFG->glossary_fullmatch
) {
188 $yselected = " selected=\"selected\" ";
190 $nselected = " selected=\"selected\" ";
193 <option value=
"1" <?php echo $yselected ?>><?php p($yes)
?></option>
194 <option value=
"0" <?php echo $nselected ?>><?php p($no)
?></option>
198 <?php print_string("cnffullmatch", "glossary") ?>
202 <td colspan =
"3" align=
"center"><a name=
"formats"><strong><?php print_string("displayformatssetup","glossary") ?></strong></a></td>
205 <td colspan=
"3" align=
"center">
208 //Update and get available formats
209 $recformats = glossary_get_available_formats();
214 foreach ($recformats as $format) {
215 $formats[$format->id
] = get_string("displayformat$format->name", "glossary");
219 print_simple_box_start('center');
220 foreach ($formats as $formatid=>$formatname) {
221 $recformat = get_record('glossary_formats','id',$formatid);
223 echo '<td>' . $formatname . '</td>';
224 $eicon = "<a title=\"" . get_string("edit") . "\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=edit\"><img class=\"iconsmall\" src=\"../pix/t/edit.gif\" alt=\"".get_string("edit")."\" /></a>";
225 if ( $recformat->visible
) {
226 $vtitle = get_string("hide");
229 $vtitle = get_string("show");
232 $vicon = "<a title=\"" . $vtitle . "\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=visible\"><img class=\"iconsmall\" src=\"../pix/t/" . $vicon . "\" alt=\"$vtitle\" /></a>";
234 echo '<td align="center">' . $eicon . ' ' . $vicon . '</td>';
237 print_simple_box_end();
244 <td colspan=
"3" align=
"center">
245 <input type=
"submit" value=
"<?php print_string("savechanges
") ?>" /></td
>