Should be $COURSE not $course
[moodle-linuxchix.git] / blocks / glossary_random / config_instance.html
blob5b5d2ea07714f93ddb7458190d0b3b07bf64576e
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("",get_string("type","block_glossary_random"),"moodle",true,false,get_string("typehelp","block_glossary_random"));
30 // helpbutton("type_help", get_string("type_help", "block_glossary_random"), "block/glossary_random");
31 ?></td>
32 </tr>
34 <tr valign="top">
35 <td align="right"><?php print_string("showconcept","block_glossary_random") ?>:</td>
36 <td>
37 <input type="hidden" name="showconcept" value="0" />
38 <input type="checkbox" name="showconcept" value="1" <?php if(!empty($this->config->showconcept)) echo 'checked="checked"'; ?> />
39 </td>
40 </tr>
42 <tr>
43 <td colspan="2">
44 <b><?php print_string("whichfooter","block_glossary_random") ?></b></td></tr>
45 <tr valign="top">
46 <td align="right"><?php print_string("askaddentry", "block_glossary_random") ?>:</td>
47 <td><input type="text" name="addentry" size="80" value="<?php p($this->config->addentry) ?>" /></td></tr>
48 <tr valign="top">
49 <td align="right"><?php print_string("askviewglossary", "block_glossary_random") ?>:</td>
50 <td><input type="text" name="viewglossary" size="80" value="<?php p($this->config->viewglossary) ?>" /></td></tr>
51 <tr valign="top">
52 <td align="right"><?php print_string("askinvisible", "block_glossary_random") ?>:</td>
53 <td><input type="text" name="invisible" size="80" value="<?php p($this->config->invisible) ?>" /></td></tr>
55 <tr>
56 <td colspan="2" align="center"><input type="submit" value="<?php print_string("savechanges") ?>" /></td></tr>
57 </table>