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.
112 lines
5.0 KiB
112 lines
5.0 KiB
<?php /*a:2:{s:79:"E:\waibao\ahbcqz\server\app\admin\view\community\community_setting\setting.html";i:1679478874;s:51:"E:\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-label {
|
|
width: 120px;
|
|
}
|
|
.layui-input-block {
|
|
margin-left: 150px;
|
|
}
|
|
</style>
|
|
<div class="wrapper">
|
|
<div class="layui-card">
|
|
<div class="layui-card-body">
|
|
<!--操作提示-->
|
|
<div class="layui-collapse like-layui-collapse" lay-accordion="" style="border:1px dashed #c4c4c4">
|
|
<div class="layui-colla-item">
|
|
<h2 class="layui-colla-title like-layui-colla-title" style="background-color: #fff">操作提示</h2>
|
|
<div class="layui-colla-content layui-show">
|
|
<p>*设置是否启用种草功能,以及文章和评论相关审核设置,默认都开启审核</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!--表单区域-->
|
|
<div class="layui-form" style="margin-top: 15px;">
|
|
<div class="layui-field-box">
|
|
<div class="layui-form-item">
|
|
<lable class="layui-form-label">种草功能:</lable>
|
|
<div class="layui-input-block" style="width:300px;">
|
|
<input type="radio" name="status" value="1" title="开启" <?php if($config['status'] == 1): ?> checked <?php endif; ?>>
|
|
<input type="radio" name="status" value="0" title="关闭" <?php if(!$config['status']): ?> checked <?php endif; ?>>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<lable class="layui-form-label">文章审核:</lable>
|
|
<div class="layui-input-block" style="width:300px;">
|
|
<input type="radio" name="audit_article" value="1" title="开启" <?php if($config['audit_article'] == 1): ?> checked <?php endif; ?>>
|
|
<input type="radio" name="audit_article" value="0" title="关闭" <?php if(!$config['audit_article']): ?> checked <?php endif; ?>>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<lable class="layui-form-label">评论审核:</lable>
|
|
<div class="layui-input-block" style="width:300px;">
|
|
<input type="radio" name="audit_comment" value="1" title="开启" <?php if($config['audit_comment'] == 1): ?> checked <?php endif; ?>>
|
|
<input type="radio" name="audit_comment" value="0" title="关闭" <?php if(!$config['audit_comment']): ?> checked <?php endif; ?>>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
<lable class="layui-form-label"></lable>
|
|
<div class="layui-input-block">
|
|
<button class="layui-btn layui-btn-normal" lay-submit lay-filter="set">确定</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
layui.config({
|
|
version:"<?php echo htmlentities($front_version); ?>",
|
|
base: '/static/lib/'
|
|
}).use(['form','element'], function(){
|
|
var $ = layui.$,
|
|
form = layui.form,
|
|
element = layui.element;
|
|
|
|
form.on('submit(set)', function(data) {
|
|
like.ajax({
|
|
url:'<?php echo url("community.CommunitySetting/setting"); ?>',
|
|
data: data.field,
|
|
type:"post",
|
|
success:function(res)
|
|
{
|
|
if(res.code == 1)
|
|
{
|
|
layui.layer.msg(res.msg, {
|
|
offset: '15px'
|
|
, icon: 1
|
|
, time: 1000
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|