3 require_once("../../config.php");
5 <div class=
"boxaligncenter">
6 <form id=
"form" method=
"post" action=
"editcategories.php">
7 <div id=
"fitem_id_name" class=
"mb-3 row fitem">
9 <label class=
"col-form-label d-inline " for=
"name">
10 <?php echo get_string("name") ?>
13 <div class=
"col-md-9 d-flex flex-wrap align-items-center felement" data-fieldtype=
"select">
14 <input type=
"text" name=
"name" id=
"name" class=
"form-control" size=
"30" value=
"<?php p($name) ?>" />
17 <div id
="fitem_id_usedynalink" class="mb-3 row fitem">
18 <div
class="col-md-3">
19 <span
class="float-sm-right text-nowrap">
20 <?php
echo $OUTPUT->help_icon('linkcategory', 'glossary') ?>
22 <label class=
"col-form-label d-inline " for=
"usedynalink">
23 <?php echo get_string("linkcategory","glossary") ?>
26 <div class=
"col-md-9 d-flex flex-wrap align-items-center felement" data-fieldtype=
"select">
27 <select size=
"1" id=
"usedynalink" name=
"usedynalink" class=
"custom-select">
28 <option value=
"1" <?php
30 echo "selected=\"selected\"";
32 ?>><?php echo get_string(
"yes")
?></option>
33 <option value=
"0" <?php
34 if ( !$usedynalink ) {
35 echo "selected=\"selected\"";
37 ?>><?php echo get_string(
"no")
?>
42 <div id=
"fgroup_id_buttonar" class=
"mb-3 row fitem femptylabel" data-groupname=
"buttonar">
43 <div class=
"col-md-3">
44 <span class=
"float-sm-right text-nowrap">
46 <label class=
"col-form-label d-inline " for=
"fgroup_id_buttonar">
49 <div class=
"col-md-9 d-flex flex-wrap align-items-center felement" data-fieldtype=
"group">
50 <div class=
"mb-3 fitem form-submit mr-1">
51 <label class=
"col-form-label" for=
"id_save">
53 <span data-fieldtype=
"submit">
54 <input type=
"hidden" name=
"sesskey" value=
"<?php echo sesskey(); ?>" />
55 <input type
="hidden" name
="id" value
="<?php p($cm->id) ?>" />
56 <input type
="hidden" name
="action" value
="<?php p($action) ?>" />
57 <input type
="hidden" name
="confirm" value
="1" />
58 <input type
="hidden" name
="mode" value
='cat' />
59 <input type
="hidden" name
="hook" value
="<?php p($hook) ?>" />
60 <input type
="submit" class="btn btn-primary" name
="save" id
="id_save"
61 value
="<?php echo get_string("savechanges
") ?>" />
64 <div
class="mb-3 fitem btn-cancel">
65 <label
class="col-form-label" for="id_back">
67 <span data
-fieldtype
="submit">
68 <input type
="reset" class="btn btn-secondary" name
="back" id
="id_back"
69 value
="<?php print_string("back
", "glossary
") ?>" onclick
="javascript:history.go(-1);" />