2009-11-01 14:55:15 +00:00
|
|
|
<?php
|
2005-05-16 22:22:31 +00:00
|
|
|
global $CFG;
|
2003-10-22 04:15:08 +00:00
|
|
|
require_once("../../config.php");
|
2003-09-21 17:08:41 +00:00
|
|
|
?>
|
2007-01-12 06:57:33 +00:00
|
|
|
<div class="boxaligncenter">
|
2007-01-04 21:32:36 +00:00
|
|
|
<form id="form" method="post" action="editcategories.php">
|
2023-12-13 09:56:24 +01:00
|
|
|
<div id="fitem_id_name" class="mb-3 row fitem">
|
2019-08-18 00:35:21 +02:00
|
|
|
<div class="col-md-3">
|
|
|
|
<label class="col-form-label d-inline " for="name">
|
|
|
|
<?php echo get_string("name") ?>
|
|
|
|
</label>
|
|
|
|
</div>
|
2023-12-13 15:41:47 +01:00
|
|
|
<div class="col-md-9 d-flex flex-wrap align-items-center felement" data-fieldtype="select">
|
2019-08-18 00:35:21 +02:00
|
|
|
<input type="text" name="name" id="name" class="form-control" size="30" value="<?php p($name) ?>" />
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-12-13 09:56:24 +01:00
|
|
|
<div id="fitem_id_usedynalink" class="mb-3 row fitem">
|
2019-08-18 00:35:21 +02:00
|
|
|
<div class="col-md-3">
|
|
|
|
<span class="float-sm-right text-nowrap">
|
|
|
|
<?php echo $OUTPUT->help_icon('linkcategory', 'glossary') ?>
|
|
|
|
</span>
|
|
|
|
<label class="col-form-label d-inline " for="usedynalink">
|
|
|
|
<?php echo get_string("linkcategory","glossary") ?>
|
|
|
|
</label>
|
|
|
|
</div>
|
2023-12-13 15:41:47 +01:00
|
|
|
<div class="col-md-9 d-flex flex-wrap align-items-center felement" data-fieldtype="select">
|
2019-08-18 00:35:21 +02:00
|
|
|
<select size="1" id="usedynalink" name="usedynalink" class="custom-select">
|
|
|
|
<option value="1" <?php
|
2003-11-15 15:55:47 +00:00
|
|
|
if ( $usedynalink ) {
|
2004-09-14 20:39:28 +00:00
|
|
|
echo "selected=\"selected\"";
|
2003-11-15 15:55:47 +00:00
|
|
|
}
|
|
|
|
?>><?php echo get_string("yes") ?></option>
|
2019-08-18 00:35:21 +02:00
|
|
|
<option value="0" <?php
|
2003-11-15 15:55:47 +00:00
|
|
|
if ( !$usedynalink ) {
|
2004-09-14 20:39:28 +00:00
|
|
|
echo "selected=\"selected\"";
|
2003-11-15 15:55:47 +00:00
|
|
|
}
|
|
|
|
?>><?php echo get_string("no") ?>
|
2019-08-18 00:35:21 +02:00
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-12-13 09:56:24 +01:00
|
|
|
<div id="fgroup_id_buttonar" class="mb-3 row fitem femptylabel" data-groupname="buttonar">
|
2019-08-18 00:35:21 +02:00
|
|
|
<div class="col-md-3">
|
|
|
|
<span class="float-sm-right text-nowrap">
|
|
|
|
</span>
|
|
|
|
<label class="col-form-label d-inline " for="fgroup_id_buttonar">
|
|
|
|
</label>
|
|
|
|
</div>
|
2023-12-13 15:41:47 +01:00
|
|
|
<div class="col-md-9 d-flex flex-wrap align-items-center felement" data-fieldtype="group">
|
2023-12-13 09:56:24 +01:00
|
|
|
<div class="mb-3 fitem form-submit mr-1">
|
2019-08-18 00:35:21 +02:00
|
|
|
<label class="col-form-label" for="id_save">
|
|
|
|
</label>
|
|
|
|
<span data-fieldtype="submit">
|
|
|
|
<input type="hidden" name="sesskey" value="<?php echo sesskey(); ?>" />
|
|
|
|
<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" class="btn btn-primary" name="save" id="id_save"
|
|
|
|
value="<?php echo get_string("savechanges") ?>" />
|
|
|
|
</span>
|
|
|
|
</div>
|
2023-12-13 09:56:24 +01:00
|
|
|
<div class="mb-3 fitem btn-cancel">
|
2019-08-18 00:35:21 +02:00
|
|
|
<label class="col-form-label" for="id_back">
|
|
|
|
</label>
|
|
|
|
<span data-fieldtype="submit">
|
|
|
|
<input type="reset" class="btn btn-secondary" name="back" id="id_back"
|
|
|
|
value="<?php print_string("back", "glossary") ?>" onclick="javascript:history.go(-1);" />
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2007-03-30 07:04:43 +00:00
|
|
|
</div>
|
2019-08-18 00:35:21 +02:00
|
|
|
<div>
|
2007-01-12 06:57:33 +00:00
|
|
|
</div>
|
2003-09-21 17:08:41 +00:00
|
|
|
</form>
|
2007-01-12 06:57:33 +00:00
|
|
|
</div>
|