Merge branch 'MDL-62384-33' of git://github.com/andrewnicols/moodle into MOODLE_33_STABLE
[moodle.git] / mod / glossary / editcategories.html
bloba5eec6ee0092f683db91d4371e3f9652a1115e21
1 <?php
2 global $CFG;
3 require_once("../../config.php");
4 ?>
5 <div class="boxaligncenter">
6 <form id="form" method="post" action="editcategories.php">
7 <div>
8 <table class="generalbox" cellpadding="5">
9 <tr valign="top">
10 <td align="right"><label for="name"><?php echo get_string("name") ?>:</label></td>
11 <td>
12 <input type="text" name="name" id="name" size="30" value="<?php p($name) ?>" />
13 </td>
14 </tr>
15 <tr valign="top">
16 <td align="right"><label for="usedynalink"><?php echo get_string("linkcategory","glossary") ?>:</label></td>
17 <td>
18 <select size="1" id="usedynalink" name="usedynalink">
19 <option value="1" <?php
20 if ( $usedynalink ) {
21 echo "selected=\"selected\"";
23 ?>><?php echo get_string("yes") ?></option>
24 <option value="0" <?php
25 if ( !$usedynalink ) {
26 echo "selected=\"selected\"";
28 ?>><?php echo get_string("no") ?>
29 </option>
30 </select> <?php echo $OUTPUT->help_icon('linkcategory', 'glossary') ?>
31 </td>
32 </tr>
33 <tr>
34 <td colspan="2">
35 <div class="buttons">
36 <input type="hidden" name="sesskey" value="<?php echo sesskey(); ?>" />
37 <input type="hidden" name="id" value="<?php p($cm->id) ?>" />
38 <input type="hidden" name="action" value="<?php p($action) ?>" />
39 <input type="hidden" name="confirm" value="1" />
40 <input type="hidden" name="mode" value='cat' />
41 <input type="hidden" name="hook" value="<?php p($hook) ?>" />
42 <input type="submit" value="<?php print_string("savechanges") ?>" />
43 <input type="reset" value="<?php print_string("back","glossary") ?>" onclick="javascript:history.go(-1);" />
44 </div>
45 </td>
46 </tr>
47 </table>
48 </div>
49 </form>
50 </div>