File: /www/wwwroot/ly.fwmnzf.com/runtime/temp/159f954242353061d47f5bfcb75cc880.php
<?php /*a:3:{s:81:"/www/wwwroot/crm.jmfdbn.com/application/admin/view/auth_manager/managergroup.html";i:1619409779;s:68:"/www/wwwroot/crm.jmfdbn.com/application/admin/view/index_layout.html";i:1620206728;s:61:"/www/wwwroot/crm.jmfdbn.com/application/admin/view/layui.html";i:1619409779;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>报表管理系统</title>
<meta name="author" content="YZNCMS">
<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", "module" => request()->module()]); ?>',
'file_upload_url': '<?php echo !empty($file_upload_url) ? htmlentities($file_upload_url) : url("attachment/upload/upload", ["dir" => "files", "module" => request()->module()]); ?>',
'jcrop_upload_url': '<?php echo !empty($jcrop_upload_url) ? htmlentities($jcrop_upload_url) : url("attachment/Attachments/cropper"); ?>',
'ueditor_upload_url': '<?php echo !empty($ueditor_upload_url) ? htmlentities($ueditor_upload_url) : url("attachment/upload/upload", ["dir" => "images","from"=>"ueditor", "module" => request()->module()]); ?>',
'ueditor_grabimg_url': '<?php echo !empty($ueditor_upload_url) ? htmlentities($ueditor_upload_url) : url("attachment/Attachments/geturlfile"); ?>',
'image_select_url': '<?php echo !empty($image_select_url) ? htmlentities($image_select_url) : url("attachment/Attachments/select"); ?>',
'filter_word_url': '<?php echo !empty($filter_word_url) ? htmlentities($filter_word_url) : url("admin/ajax/filterWord"); ?>',
};
</script>
</head>
<body class="childrenBody <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
<form class="layui-form" method="post">
<div class="zTreeDemoBackground left">
<ul class="ztree" style="margin-left: 5px;margin-top:5px; padding: 0;">
<li><a title="全部展开、折叠 "><span class="button ico_open"></span><span id="ztree_expandAll">全部展开、折叠 </span></a> </li>
</ul>
<ul id="treeDemo" class="ztree"></ul>
</div>
<input type="hidden" name="rules" value="" />
<input type="hidden" name="id" value="<?php echo htmlentities($rules['id']); ?>" />
<input type="hidden" name="parentid" value="<?php echo htmlentities($rules['parentid']); ?>">
<div class="layui-form-item layer-footer">
<div class="">
<button class="layui-btn" lay-submit="<?php echo url('writeGroup'); ?>">立即提交</button>
</div>
</div>
</form>
<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',
iconPicker: 'iconPicker/iconPicker',
tableSelect: 'tableSelect/tableSelect',
ztree: 'ztree/ztree',
dragsort: 'dragsort/dragsort',
tagsinput: 'tagsinput/tagsinput',
xmSelect: 'xmSelect/xm-select',
selectPage: 'selectPage/selectpage',
echarts: 'echarts/echarts',
echartsTheme: 'echarts/echartsTheme',
citypicker: 'citypicker/city-picker',
webuploader: 'webuploader/webuploader',
ueditor: 'ueditor/ueditor.min',
}).use('yznForm');
</script>
<script>
layui.use(['jquery', 'ztree','yznForm'], function() {
var $ = layui.$,
yznForm = layui.yznForm;
//配置
var setting = {
//设置 zTree 的节点上是否显示 checkbox / radio
check: {
enable: true,
chkboxType: { "Y": "ps", "N": "ps" }
},
data: {
simpleData: {
enable: true,
idKey: "nid",
pIdKey: "parentid",
}
},
callback: {
beforeClick: function(treeId, treeNode) {
if (treeNode.isParent) {
zTree.expandNode(treeNode);
return false;
} else {
return true;
}
},
/*onClick: function(event, treeId, treeNode) {
//栏目ID
var catid = treeNode.catid;
//保存当前点击的栏目ID
setCookie('tree_catid', catid, 1);
}*/
}
};
//节点数据
var zNodes = <?php echo $json; ?>;
//zTree对象
var zTree = null;
$(document).ready(function() {
$.fn.zTree.init($("#treeDemo"), setting, zNodes);
zTree = $.fn.zTree.getZTreeObj("treeDemo");
zTree.expandAll(true);
$("#ztree_expandAll").click(function() {
if ($(this).data("open")) {
zTree.expandAll(false);
$(this).data("open", false);
} else {
zTree.expandAll(true);
$(this).data("open", true);
}
});
});
$('.layui-btn').click(function() {
_form = $('.layui-form');
//处理被选中的数据
_form.find('input[name="rules"]').val("");
var nodes = zTree.getCheckedNodes(true);
var str = "";
$.each(nodes, function(i, value) {
if (str != "") {
str += ",";
}
str += value.id;
});
_form.find('input[name="rules"]').val(str);
yznForm.listen();
})
});
</script>
</body>
</html>