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.
127 lines
5.6 KiB
127 lines
5.6 KiB
<?php /*a:2:{s:84:"D:\waibao\ahbcqz\server\app\admin\view\decoration\menu_decorate\edit_navigation.html";i:1679478874;s:51:"D:\waibao\ahbcqz\server\app\admin\view\layout1.html";i:1679478874;}*/ ?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title><?php echo url(); ?></title>
|
|
<meta name="renderer" content="webkit">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
|
<link rel="stylesheet" href="/static/lib/layui/css/layui.css?v=<?php echo htmlentities($front_version); ?>">
|
|
<link rel="stylesheet" href="/static/admin/css/app.css?v=<?php echo htmlentities($front_version); ?>">
|
|
<link rel="stylesheet" href="/static/admin/css/like.css?v=<?php echo htmlentities($front_version); ?>">
|
|
<script src="/static/lib/layui/layui.js?v=<?php echo htmlentities($front_version); ?>"></script>
|
|
<script src="/static/admin/js/app.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<?php echo $js_code; ?>
|
|
<script src="/static/admin/js/jquery.min.js"></script>
|
|
<script src="/static/admin/js/function.js"></script>
|
|
|
|
|
|
<style>
|
|
.layui-form {
|
|
margin-top: 15px;
|
|
}
|
|
.reqRed::before {
|
|
content: '*';
|
|
color: red;
|
|
}
|
|
.layui-form-label {
|
|
color: #6a6f6c;
|
|
}
|
|
</style>
|
|
<div class="layui-form">
|
|
<input type="hidden" name="id" value="<?php echo htmlentities($navigation['id']); ?>" />
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label reqRed">导航名称</label>
|
|
<div class="layui-input-block" style="width: 200px;">
|
|
<input type="text" name="name" value="<?php echo htmlentities($navigation['name']); ?>" required lay-verify="required" class="layui-input" />
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">选中图标</label>
|
|
<div class="layui-input-block" style="width: 200px;">
|
|
<?php if($navigation['selected_icon']): ?>
|
|
<div class="upload-image-div">
|
|
<img src="<?php echo htmlentities($navigation['selected_icon']); ?>" alt="img">
|
|
<input type="hidden" name="image" value="<?php echo htmlentities($navigation['selected_icon']); ?>">
|
|
<div class="del-upload-btn">x</div>
|
|
</div>
|
|
<div class="upload-image-elem" style="display:none;"><a class="add-upload-image upload_selected_icon"> + 添加图片</a></div>
|
|
<?php else: ?>
|
|
<div class="upload-image-elem"><a class="add-upload-image upload_selected_icon" > + 添加图片</a></div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item"><label class="layui-form-label"></label>
|
|
<span style="color: #a3a3a3;font-size: 9px">建议尺寸:宽100像素*高100像素的jpg,jpeg,png,gif图片。不传则使用默认图标</span>
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">未选中图标</label>
|
|
<div class="layui-input-block" style="width: 200px;">
|
|
<?php if($navigation['un_selected_icon']): ?>
|
|
<div class="upload-image-div">
|
|
<img src="<?php echo htmlentities($navigation['un_selected_icon']); ?>" alt="img">
|
|
<input type="hidden" name="image" value="<?php echo htmlentities($navigation['un_selected_icon']); ?>">
|
|
<div class="del-upload-btn">x</div>
|
|
</div>
|
|
<div class="upload-image-elem" style="display:none;"><a class="add-upload-image upload_un_selected_icon"> + 添加图片</a></div>
|
|
<?php else: ?>
|
|
<div class="upload-image-elem"><a class="add-upload-image upload_un_selected_icon"> + 添加图片</a></div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item"><label class="layui-form-label"></label>
|
|
<span style="color: #a3a3a3;font-size: 9px">建议尺寸:宽100像素*高100像素的jpg,jpeg,png,gif图片。不传则使用默认图标</span>
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">状态</label>
|
|
<div class="layui-input-inline">
|
|
<input type="radio" name="status" value="1" title="显示" <?php if($navigation['status'] == 1): ?> checked <?php endif; ?>/>
|
|
<input type="radio" name="status" value="0" title="隐藏" <?php if($navigation['status'] == 0): ?> checked <?php endif; ?>/>
|
|
<div class="layui-form-mid layui-word-aux">显示或隐藏底部导航</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label"></label>
|
|
<div class="layui-input-block" style="width: 200px;">
|
|
<button class="layui-btn layui-hide" lay-submit id="edit-navigation_decorate-submit" lay-filter="edit-navigation_decorate-submit">确定</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
layui.config({
|
|
version:"<?php echo htmlentities($front_version); ?>",
|
|
base: '/static/lib/' //静态资源所在路径
|
|
}).use(['table','form'], function(){
|
|
var $ = layui.$
|
|
,form = layui.form
|
|
,table = layui.table;
|
|
|
|
// 图片上传
|
|
like.delUpload();
|
|
|
|
$(document).on("click", ".upload_selected_icon", function () {
|
|
like.imageUpload({
|
|
limit: 1,
|
|
field: "selected_icon",
|
|
that: $(this)
|
|
});
|
|
})
|
|
|
|
$(document).on("click", ".upload_un_selected_icon", function () {
|
|
like.imageUpload({
|
|
limit: 1,
|
|
field: "un_selected_icon",
|
|
that: $(this)
|
|
});
|
|
})
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|