Merge commit 'catalyst/MOODLE_19_STABLE' into mdl19-linuxchix
[moodle-linuxchix.git] / blocks / glossary_random / config_instance.html
blob081b14ec797538483c148789e0ca7d648a423a8f
1 <?php
2 if (!isset($this->config->glossary)) {
3 $this->config->glossary = 0;
5 if (!isset($this->config->type)) {
6 $this->config->type = 0;
8 ?>
9 <table cellpadding="9" cellspacing="0">
10 <tr valign="top">
11 <td align="right"><?php print_string("title","block_glossary_random") ?>:</td>
12 <td><input type="text" name="title" size="50" value="<?php p($this->config->title) ?>" /></td>
13 </tr>
15 <tr valign="top">
16 <td align="right"><?php print_string("select_glossary","block_glossary_random") ?>:</td>
17 <td><?php choose_from_menu($glossaries,"glossary",$this->config->glossary) ?></td>
18 </tr>
20 <tr valign="top">
21 <td align="right"><?php print_string("refresh","block_glossary_random") ?>:</td>
22 <td><input type="text" name="refresh" size="5" value="<?php p($this->config->refresh) ?>" /></td>
23 </tr>
25 <tr valign="top">
26 <td align="right"><?php print_string("type","block_glossary_random") ?>:</td>
27 <td><?php
28 choose_from_menu($type, "type", $this->config->type, "");
29 helpbutton('newentry', get_string("type","block_glossary_random"), 'glossary');
30 ?></td>
31 </tr>
33 <tr valign="top">
34 <td align="right"><?php print_string("showconcept","block_glossary_random") ?>:</td>
35 <td>
36 <input type="hidden" name="showconcept" value="0" />
37 <input type="checkbox" name="showconcept" value="1" <?php if(!empty($this->config->showconcept)) echo 'checked="checked"'; ?> />
38 </td>
39 </tr>
41 <tr>
42 <td colspan="2">
43 <b><?php print_string("whichfooter","block_glossary_random") ?></b></td></tr>
44 <tr valign="top">
45 <td align="right"><?php print_string("askaddentry", "block_glossary_random") ?>:</td>
46 <td><input type="text" name="addentry" size="80" value="<?php p($this->config->addentry) ?>" /></td></tr>
47 <tr valign="top">
48 <td align="right"><?php print_string("askviewglossary", "block_glossary_random") ?>:</td>
49 <td><input type="text" name="viewglossary" size="80" value="<?php p($this->config->viewglossary) ?>" /></td></tr>
50 <tr valign="top">
51 <td align="right"><?php print_string("askinvisible", "block_glossary_random") ?>:</td>
52 <td><input type="text" name="invisible" size="80" value="<?php p($this->config->invisible) ?>" /></td></tr>
54 <tr>
55 <td colspan="2" align="center"><input type="submit" value="<?php print_string("savechanges") ?>" /></td></tr>
56 </table>