File: /www/wwwroot/www.elwrky.com/runtime/temp/b7c102d5426167e1d61c5102c571d055.php
<?php /*a:3:{s:65:"/www/wwwroot/www.elwrky.com/application/cms/view/field/index.html";i:1640819545;s:68:"/www/wwwroot/www.elwrky.com/application/admin/view/index_layout.html";i:1640819545;s:61:"/www/wwwroot/www.elwrky.com/application/admin/view/layui.html";i:1640819545;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title><?php echo config('system_name'); ?>后台管理系统</title>
<meta name="author" content="<?php echo config('system_name'); ?>">
<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')); ?>">
<link rel="stylesheet" href="/static/admin/css/my.css">
<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"]); ?>',
'attachment_select_url': '<?php echo !empty($attachment_select_url) ? htmlentities($attachment_select_url) : url("attachment/attachments/select"); ?>',
};
</script>
</head>
<body class="childrenBody <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
<div class="layui-card">
<div class="layui-card-header">【<?php echo htmlentities($name); ?>】字段列表</div>
<div class="layui-card-body">
<table class="layui-hide" id="currentTable" lay-filter="currentTable"></table>
</div>
</div>
<script type="text/html" id="switchTpl">
<input type="checkbox" name="status" data-href="<?php echo url('setstate'); ?>?id={{d.id}}" value="{{d.id}}" lay-skin="switch" lay-text="启用|禁用" lay-filter="switchStatus" {{ d.status==1 ? 'checked' : '' }}>
</script>
<script type="text/html" id="ifsearchTpl">
{{# if(d.ifsystem){ }}
<input type="checkbox" name="ifsearch" data-href="<?php echo url('setSearch'); ?>?id={{d.id}}" value="{{d.id}}" lay-skin="switch" lay-text="是|否" lay-filter="switchStatus" {{ d.ifsearch==1 ? 'checked' : '' }}>
{{# } }}
</script>
<script type="text/html" id="ifrequireTpl">
<input type="checkbox" name="ifrequire" data-href="<?php echo url('setRequire'); ?>?id={{d.id}}" value="{{d.id}}" lay-skin="switch" lay-text="是|否" lay-filter="switchStatus" {{ d.ifrequire==1 ? 'checked' : '' }}>
</script>
<script type="text/html" id="isaddTpl">
<input type="checkbox" name="isadd" data-href="<?php echo url('setVisible'); ?>?id={{d.id}}" value="{{d.id}}" lay-skin="switch" lay-text="显示|隐藏" lay-filter="switchStatus" {{ d.isadd==1 ? 'checked' : '' }}>
</script>
<script type="text/html" id="type">
{{# if(d.ifsystem==1){ }}
主表
{{# } else if(d.ifsystem==0) { }}
附表
{{# } else { }}
附子表
{{# } }}
</script>
<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.min',
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>
layui.use('yznTable', function() {
var yznTable = layui.yznTable;
var init = {
table_elem: '#currentTable',
add_url: "<?php echo url('add',['modelid'=>$modelid]); ?>",
edit_url: "<?php echo url('edit'); ?>",
delete_url: "<?php echo url('del'); ?>",
modify_url: '<?php echo url("listorder"); ?>',
};
yznTable.render({
init: init,
id: 'currentTable',
elem: '#currentTable',
toolbar: ['refresh',
[{
html: '<a class="layui-btn layui-btn-sm" type="button" href="<?php echo url("models/index"); ?>"><i class="iconfont icon-undo"></i> 返回模型</a>'
}],'add'
],
url: '<?php echo url("index",["id"=>$modelid]); ?>',
cols: [
[
{ field: 'listorder', width: 60, title: '排序', edit: 'text',search:false },
{ field: 'id', width: 60, title: 'ID' },
{ field: 'name',align: "left", title: '字段名称' },
{ field: 'title',align: "left", title: '标题' },
{ field: 'type', width: 120, title: '字段类型' },
{ field: 'ifsystem', width: 80, align: "center", title: '库表', templet: '#type' },
{ field: 'create_time', width: 180, title: '创建时间' , search: 'range'},
{ field: 'ifsearch', width: 90, align: "center", title: '搜索', templet: '#ifsearchTpl', unresize: true, selectList: { 0: '否', 1: '是' } },
{ field: 'ifrequire', width: 90, align: "center", title: '必填', templet: '#ifrequireTpl', unresize: true, selectList: { 0: '否', 1: '是' } },
{ field: 'isadd', width: 100, align: "center", title: '投稿显示', templet: '#isaddTpl', unresize: true , selectList: { 0: '隐藏', 1: '显示' }},
{ field: 'status', width: 100, align: "center", title: '状态', templet: '#switchTpl', unresize: true, selectList: { 0: '禁用', 1: '启用' }},
{ width:120, align: "center", title: '操作',templet: function (d){
if(d.iffixed){
return '<a class="layui-btn layui-btn-xs layui-btn-disabled">编辑</a><a class="layui-btn layui-btn-xs layui-btn-disabled">删除</a>';
}else{
return yznTable.formatter.tool.call(this,d,this);
}
},operat: ['edit','delete']}
]
],
page: {}
});
});
</script>
</body>
</html>