<?php
    global $CFG;
    require_once("../../config.php");
?>
<div class="boxaligncenter">
<form id="form" method="post" action="editcategories.php">
<div>
<table  class="generalbox" cellpadding="5">
<tr valign="top">
    <td align="right"><?php echo get_string("name") ?>:</td>
    <td>
        <input type="text" name="name" size="30" value="<?php p($name) ?>" />
    </td>
</tr>
<tr valign="top">
    <td align="right"><?php echo get_string("linkcategory","glossary") ?>:</td>
    <td>
      <select size="1" name="usedynalink">
      <option value="1" <?php
       if ( $usedynalink ) {
          echo "selected=\"selected\"";
       }
       ?>><?php echo get_string("yes") ?></option>
      <option value="0" <?php
       if ( !$usedynalink ) {
          echo "selected=\"selected\"";
       }
       ?>><?php echo get_string("no") ?>
      </option>
      </select> <?php echo $OUTPUT->help_icon('linkcategory', 'glossary') ?>
    </td>
</tr>
<tr>
<td colspan="2">
    <div class="buttons">
    <input type="hidden" name="id" value="<?php p($cm->id) ?>" />
    <input type="hidden" name="action" value="<?php p($action) ?>" />
    <input type="hidden" name="confirm" value="1" />
    <input type="hidden" name="mode" value='cat' />
    <input type="hidden" name="hook" value="<?php p($hook) ?>" />
    <input type="submit" value="<?php print_string("savechanges") ?>" />
    <input type="reset" value="<?php print_string("back","glossary") ?>"  onclick="javascript:history.go(-1);" />
    </div>
</td>
</tr>
</table>
</div>
</form>
</div>
