2 if (!isset($this->config
->glossary
)) {
3 $this->config
->glossary
= 0;
5 if (!isset($this->config
->type
)) {
6 $this->config
->type
= 0;
9 <table cellpadding=
"9" cellspacing=
"0">
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
>
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>
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
>
26 <td align
="right"><?php
print_string("type","block_glossary_random") ?>:
</td>
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");
35 <td align=
"right"><?php print_string("showconcept","block_glossary_random") ?>:
</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"'; ?> />
44 <b><?php print_string("whichfooter","block_glossary_random") ?></b></td></tr>
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
>
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
>
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
>
56 <td colspan
="2" align
="center"><input type
="submit" value
="<?php print_string("savechanges
") ?>" /></td
></tr
>