File: /www/wwwroot/crm.magiceyelens.com/runtime/temp/e84e9283f540a21a4daff6bc8460dd70.php
<?php /*a:3:{s:73:"/www/wwwroot/crm.magiceyelens.com/application/admin/view/config/edit.html";i:1633944309;s:74:"/www/wwwroot/crm.magiceyelens.com/application/admin/view/index_layout.html";i:1633944309;s:67:"/www/wwwroot/crm.magiceyelens.com/application/admin/view/layui.html";i:1633944309;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>YZNCMS后台管理系统</title>
<meta name="author" content="YZNCMS">
<meta name="csrf-token" content="<?php echo think\facade\Request::token('__token__'); ?>">
<link rel="stylesheet" href="/static/libs/layui/css/layui.css">
<link rel="stylesheet" href="/static/admin/css/admin.css?v=<?php echo htmlentities(app('config')->get('version.yzncms_release')); ?>">
<link rel="stylesheet" href="/static/common/font/iconfont.css?v=<?php echo htmlentities(app('config')->get('version.yzncms_release')); ?>">
<script src="/static/libs/layui/layui.js"></script>
<script src="/static/libs/jquery/jquery.min.js"></script>
<script type="text/javascript">
//全局变量
var GV = {
'site':<?php echo json_encode($site); ?>,
'image_upload_url': '<?php echo !empty($image_upload_url) ? htmlentities($image_upload_url) : url("attachment/upload/upload", ["dir" => "images"]); ?>',
'file_upload_url': '<?php echo !empty($file_upload_url) ? htmlentities($file_upload_url) : url("attachment/upload/upload", ["dir" => "files"]); ?>',
'ueditor_upload_url': '<?php echo !empty($ueditor_upload_url) ? htmlentities($ueditor_upload_url) : url("attachment/upload/upload", ["dir" => "images","from"=>"ueditor"]); ?>',
};
</script>
</head>
<body class="childrenBody <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
<form class="layui-form" method="post">
<div class="layui-form-item">
<label class="layui-form-label">分组</label>
<div class="layui-input-block">
<select name="row[group]" lay-verify="required">
<option value=""></option>
<?php if(is_array($groupArray) || $groupArray instanceof \think\Collection || $groupArray instanceof \think\Paginator): $i = 0; $__LIST__ = $groupArray;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<option value="<?php echo htmlentities($key); ?>" <?php if($data['group']==$key): ?>selected<?php endif; ?>><?php echo htmlentities($vo); ?>[<?php echo htmlentities($key); ?>]</option>
<?php endforeach; endif; else: echo "" ;endif; ?>
</select>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">配置类型</label>
<div class="layui-input-block">
<select name="row[type]" lay-filter="fieldType" lay-verify="required">
<option value=""></option>
<?php if(is_array($fieldType) || $fieldType instanceof \think\Collection || $fieldType instanceof \think\Paginator): $i = 0; $__LIST__ = $fieldType;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<option value="<?php echo htmlentities($vo['name']); ?>" <?php if($data['type']==$vo['name']): ?>selected<?php endif; ?>><?php echo htmlentities($vo['title']); ?>[<?php echo htmlentities($vo['name']); ?>]</option>
<?php endforeach; endif; else: echo "" ;endif; ?>
</select>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">配置标题</label>
<div class="layui-input-inline">
<input type="text" name="row[title]" lay-verify="required" value="<?php echo htmlentities($data['title']); ?>" autocomplete="off" placeholder="字段中文标题" class="layui-input">
</div>
<div class="layui-form-mid layui-word-aux">一般由中文组成,仅用于显示</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">配置名称</label>
<div class="layui-input-block">
<input type="text" name="row[name]" lay-verify="required" value="<?php echo htmlentities($data['name']); ?>" autocomplete="off" placeholder="字段英文名称" class="layui-input">
</div>
<div class="layui-form-mid2 layui-word-aux">英文字母和下划线组成,如 <code>web_site_title</code></div>
</div>
<div class="layui-form-item layui-form-text">
<label class="layui-form-label">配置默认值</label>
<div class="layui-input-block">
<textarea name="row[value]" placeholder="未指定值时默认插入字段的值" class="layui-textarea"><?php echo htmlentities($data['value']); ?></textarea>
</div>
<div class="layui-form-mid2 layui-word-aux">配置类型为<code>数组</code>时请按如下格式填写:
<br>{"键值1":"键名1","键值2":"键名2"}</div>
</div>
<div class="layui-form-item layui-form-text" id="options" <?php if($data['type'] !== 'custom' && $data['type'] !== 'checkbox' && $data['type'] !== 'select' && $data['type'] !== 'selects' && $data['type'] !== 'radio' && $data['type'] !== 'selectpage'): ?> style="display: none;" <?php endif; ?>>
<?php if($data['type'] == 'custom'): ?>
<label class="layui-form-label">自定义模板</label>
<div class="layui-input-block">
<select name="row[options]">
<option value="custom.html">默认模板:custom.html</option>
<?php if(is_array($custom) || $custom instanceof \think\Collection || $custom instanceof \think\Paginator): $i = 0; $__LIST__ = $custom;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<option value="<?php echo htmlentities($vo); ?>" <?php if($data['options']==$vo): ?>selected<?php endif; ?>><?php echo htmlentities($vo); ?></option>
<?php endforeach; endif; else: echo "" ;endif; ?>
</select>
</div>
<div class="layui-form-mid2 layui-word-aux">新增模板以custom_xx.html形式<br>模板位于application/admin/view/custom目录下</div>
<?php else: ?>
<label class="layui-form-label">配置项</label>
<div class="layui-input-block">
<textarea name="row[options]" placeholder="<?php if($data['type'] !== 'selectpage'): ?>
键值:键名
键值:键名
键值:键名
.....
<?php else: ?>
url:提供数据源的URL地址
field:列表显示读取的字段,默认[name]
key:列表选中后渲染的字段,默认[id]
pagination:是否开启分页,默认[true]
limit:分页大小,默认[10]
multiple:是否支持多选,默认[false]
max:最多可选择数量
order:排序字段,默认[id]
<?php endif; ?>
" class="layui-textarea"><?php echo htmlentities($data['options']); ?></textarea>
</div>
<div class="layui-form-mid2 layui-word-aux">如:
<?php if($data['type'] !== 'selectpage'): ?>
<br>1:北京
<br>2:上海
<br>3:广东
<?php else: ?>
<br>url:admin/manager/index
<br>field:username
<br>key:id
<br>pagination:true
<br>limit:10
<br>multiple:true
<br>max:20
<br>order:id
<?php endif; ?>
</div>
<?php endif; ?>
</div>
<div class="layui-form-item layui-form-text">
<label class="layui-form-label">配置备注</label>
<div class="layui-input-block">
<textarea name="row[remark]" placeholder="填写配置说明" class="layui-textarea"><?php echo htmlentities($data['remark']); ?></textarea>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">排序</label>
<div class="layui-input-block">
<input type="number" name="row[listorder]" autocomplete="off" placeholder="只能是正整数" class="layui-input" value="<?php echo htmlentities($data['listorder']); ?>">
</div>
</div>
<input type="hidden" name="row[id]" value="<?php echo htmlentities($id); ?>">
<div class="layui-form-item layer-footer">
<div class="layui-input-block">
<button class="layui-btn" lay-submit="">立即提交</button>
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
</div>
</div>
</form>
<div id="options1" style="display: none;">
<label class="layui-form-label">配置项</label>
<div class="layui-input-block">
<textarea name="row[options]" placeholder="键值:键名
键值:键名
键值:键名
....." class="layui-textarea"></textarea>
</div>
<div class="layui-form-mid2 layui-word-aux">如:
<br>1:北京
<br>2:上海
<br>3:广东
</div>
</div>
<div id="options2" style="display: none;">
<label class="layui-form-label">配置项</label>
<div class="layui-input-block">
<textarea name="row[options]" placeholder="url:提供数据源的URL地址
field:列表显示读取的字段,默认[name]
key:列表选中后渲染的字段,默认[id]
pagination:是否开启分页,默认[true]
limit:分页大小,默认[10]
multiple:是否支持多选,默认[false]
max:最多可选择数量
order:排序字段,默认[id]" class="layui-textarea"></textarea>
</div>
<div class="layui-form-mid2 layui-word-aux">如:
<br>url:admin/manager/index
<br>field:username
<br>key:id
<br>pagination:true
<br>limit:10
<br>multiple:true
<br>max:20
<br>order:id
</div>
</div>
<div id="options3" style="display: none;">
<label class="layui-form-label">自定义模板</label>
<div class="layui-input-block">
<select name="row[options]">
<option value="custom.html" selected>默认模板:custom.html</option>
<?php if(is_array($custom) || $custom instanceof \think\Collection || $custom instanceof \think\Paginator): $i = 0; $__LIST__ = $custom;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<option value="<?php echo htmlentities($vo); ?>"><?php echo htmlentities($vo); ?></option>
<?php endforeach; endif; else: echo "" ;endif; ?>
</select>
</div>
<div class="layui-form-mid2 layui-word-aux">新增模板以custom_xx.html形式<br>模板位于application/admin/view/custom目录下</div>
</div>
<script type="text/javascript">
layui.config({
version: '<?php echo htmlentities(app('config')->get('version.yzncms_release')); ?>',
base: '/static/libs/layui_exts/'
}).extend({
yzn: 'yzn/yzn',
yznForm: 'yznForm/yznForm',
yznTable: 'yznTable/yznTable',
treeGrid: 'treeGrid/treeGrid',
clipboard: 'clipboard/clipboard',
notice: 'notice/notice.min',
iconPicker: 'iconPicker/iconPicker.min',
ztree: 'ztree/ztree',
dragsort: 'dragsort/dragsort.min',
tagsinput: 'tagsinput/tagsinput',
xmSelect: 'xmSelect/xm-select',
selectPage: 'selectPage/selectpage.min',
echarts: 'echarts/echarts',
echartsTheme: 'echarts/echartsTheme',
citypicker: 'citypicker/city-picker',
webuploader: 'webuploader/webuploader',
ueditor: 'ueditor/ueditor.min',
}).use('yznForm');
</script>
<script type="text/javascript">
layui.use(['form','yznForm'], function() {
var form = layui.form,
yznForm = layui.yznForm;
yznForm.listen();
form.on('select(fieldType)', function(data) {
if (data.value == 'checkbox' || data.value == 'select' || data.value == 'selects' || data.value == 'radio' || data.value == 'selectpage' || data.value == 'custom') {
if (data.value == 'selectpage') {
$('#options').html($('#options2').html());
}else if(data.value == 'custom'){
$('#options').html($('#options3').html());
}else{
$('#options').html($('#options1').html());
}
$('#options').show();
form.render();
}else{
$('#options').hide();
}
});
});
</script>
</body>
</html>