mirror of https://github.com/helloxz/onenav.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.7 KiB
65 lines
2.7 KiB
<?php include_once('header.php'); ?> |
|
<?php include_once('left.php'); ?> |
|
|
|
<div class="layui-body"> |
|
<!-- 内容主体区域 --> |
|
<div class="layui-row content-body"> |
|
<div class="layui-col-lg12"> |
|
<form class="layui-form"> |
|
<div class="layui-form-item" style = "display:none;"> |
|
<label class="layui-form-label">分类ID</label> |
|
<div class="layui-input-block"> |
|
<input type="text" name="id" required lay-verify="required" value = '<?php echo $id; ?>' placeholder="请输入分类名称" autocomplete="off" class="layui-input"> |
|
</div> |
|
</div> |
|
<div class="layui-form-item"> |
|
<label class="layui-form-label">分类名称</label> |
|
<div class="layui-input-block"> |
|
<input type="text" name="name" required lay-verify="required" value = '<?php echo $category['name']; ?>' placeholder="请输入分类名称" autocomplete="off" class="layui-input"> |
|
</div> |
|
</div> |
|
|
|
<div class="layui-form-item"> |
|
<label class="layui-form-label">字体图标</label> |
|
<div class="layui-input-block"> |
|
<input type="text" name="font_icon" value = '<?php echo $category['font_icon']; ?>' placeholder="请输入字体图标,如:fa fa-bookmark-o" autocomplete="off" class="layui-input"> |
|
</div> |
|
</div> |
|
|
|
<div class="layui-form-item"> |
|
<label class="layui-form-label">权重</label> |
|
<div class="layui-input-block"> |
|
<input type="number" name="weight" min = "0" max = "999" value = "<?php echo $category['weight']; ?>" required lay-verify="required|number" placeholder="权重越高,排名越靠前,范围为0-999" autocomplete="off" class="layui-input"> |
|
</div> |
|
</div> |
|
|
|
|
|
<div class="layui-form-item"> |
|
<label class="layui-form-label">是否私有</label> |
|
<div class="layui-input-block"> |
|
<input type="checkbox" name="property" value = "1" lay-skin="switch" <?php echo $category['checked']; ?> lay-text="是|否"> |
|
</div> |
|
</div> |
|
|
|
<div class="layui-form-item layui-form-text"> |
|
<label class="layui-form-label">描述</label> |
|
<div class="layui-input-block"> |
|
<textarea name="description" placeholder="请输入内容" class="layui-textarea"><?php echo $category['description']; ?></textarea> |
|
</div> |
|
</div> |
|
<div class="layui-form-item"> |
|
<div class="layui-input-block"> |
|
<button class="layui-btn" lay-submit lay-filter="edit_category">更新</button> |
|
<button type="reset" class="layui-btn layui-btn-primary">重置</button> |
|
</div> |
|
</div> |
|
</form> |
|
<p>关于字体图标的说明请参考帮助文档:<a href="https://dwz.ovh/7nr1f" target = "_blank" title = "字体图标使用说明">https://dwz.ovh/7nr1f</a></p> |
|
</div> |
|
|
|
</div> |
|
|
|
<!-- 内容主题区域END --> |
|
</div> |
|
|
|
<?php include_once('footer.php'); ?>
|