mirror of https://github.com/helloxz/onenav.git
xiaoz
4 years ago
11 changed files with 177 additions and 4 deletions
@ -0,0 +1,3 @@
@@ -0,0 +1,3 @@
|
||||
20200409 |
||||
1. 新增快捷键支持 |
||||
2. 后台增加自定义js功能 |
@ -0,0 +1,27 @@
@@ -0,0 +1,27 @@
|
||||
<?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 style = "margin-bottom:1.6em;"><h3>自定义JavaScript,仅对默认主题有效:</h3></div> |
||||
<div class="layui-form-item layui-form-text"> |
||||
|
||||
<textarea name="content" rows="20" required placeholder="请输入" class="layui-textarea"><?php echo $content; ?></textarea> |
||||
</div> |
||||
<div class="layui-form-item"> |
||||
<div> |
||||
<button class="layui-btn" lay-submit lay-filter="add_js">添加</button> |
||||
<!-- <button type="reset" class="layui-btn layui-btn-primary">重置</button> --> |
||||
</div> |
||||
</div> |
||||
</form> |
||||
</div> |
||||
|
||||
</div> |
||||
<!-- 内容主题区域END --> |
||||
</div> |
||||
|
||||
<?php include_once('footer.php'); ?> |
@ -0,0 +1,49 @@
@@ -0,0 +1,49 @@
|
||||
<?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"> |
||||
<label class="layui-form-label">URL</label> |
||||
<div class="layui-input-block"> |
||||
<input type="url" id = "url" name="url" required lay-verify="required|url" placeholder="请输入有效链接" autocomplete="off" class="layui-input"> |
||||
</div> |
||||
</div> |
||||
<div class="layui-form-item"> |
||||
<label class="layui-form-label">所属分类</label> |
||||
<div class="layui-input-block"> |
||||
<select name="fid" lay-verify="required" lay-search> |
||||
<option value=""></option> |
||||
<?php foreach ($categorys as $category) { |
||||
# code... |
||||
?> |
||||
<option value="<?php echo $category['id'] ?>"><?php echo $category['name']; ?></option> |
||||
<?php } ?> |
||||
</select> |
||||
</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" lay-text="是|否"> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="layui-form-item"> |
||||
<div class="layui-input-block"> |
||||
<button class="layui-btn" lay-submit lay-filter="add_link">导入</button> |
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button> |
||||
</div> |
||||
</div> |
||||
</form> |
||||
</div> |
||||
|
||||
</div> |
||||
<!-- 内容主题区域END --> |
||||
</div> |
||||
|
||||
<?php include_once('footer.php'); ?> |
Loading…
Reference in new issue