MDL-38173 Swap conditions to make CI servers happy.
[moodle.git] / mod / glossary / editcategories.html
blob3b64818ce9ff88a6e4d562d1cd626a5155ed7f79
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="id" value="<?php p($cm->id) ?>" />
37 <input type="hidden" name="action" value="<?php p($action) ?>" />
38 <input type="hidden" name="confirm" value="1" />
39 <input type="hidden" name="mode" value='cat' />
40 <input type="hidden" name="hook" value="<?php p($hook) ?>" />
41 <input type="submit" value="<?php print_string("savechanges") ?>" />
42 <input type="reset" value="<?php print_string("back","glossary") ?>" onclick="javascript:history.go(-1);" />
43 </div>
44 </td>
45 </tr>
46 </table>
47 </div>
48 </form>
49 </div>