File: /www/wwwroot/www.elwrky.com/runtime/temp/c5e15fc10121fe526432f05a0cf4286f.php
<?php /*a:3:{s:63:"/www/wwwroot/www.elwrky.com/application/cms/view/cms/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="collapse">
<div class="collapse-bg"></div>
<div class="navbar-collapse" >
<span class="layui-icon layui-icon-spread-left"></span>
</div>
</div>
<div class="layui-row layui-flex">
<div class="layui-col-md2 layui-col-sm12" id="left-sider" style='width: <?php echo config("width"); ?>'>
<div class="layui-card">
<div class="layui-card-header">栏目列表</div>
<div class="layui-card-body" id="iframe_categorys" style="overflow:auto;">
<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="tree" class="ztree" style="overflow:auto;"></ul>
</div>
</div>
</div>
<div class="layui-col-md10 layui-col-sm12" id="right-box">
<div class="layui-card">
<div class="layui-card-header">内容管理 | <?php echo onSiteName(); ?></div>
<div class="layui-card-body">
<iframe name="right" id="iframe_categorys_list" src="<?php echo url('cms/cms/panl'); ?>" style="height: 100%; width:100%;border:none;" frameborder="0" scrolling="auto"></iframe>
</div>
</div>
</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.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 type="text/javascript">
layui.use(['jquery', 'ztree'], function() {
var $ = layui.$;
var zTree;
var demoIframe;
var zNodes = <?php echo $json; ?>;
var setting = {
data: {
key: {
name: "catname"
},
simpleData: {
enable: true,
idKey: "id",
pIdKey: "parentid"
}
},
callback: {
//捕获单击节点之前的事件回调函数
beforeClick: function(treeId, treeNode) {
var zTree = $.fn.zTree.getZTreeObj("tree");
if (treeNode.isParent) {
zTree.expandNode(treeNode);
return true;
}
},
onClick: function(event, treeId, treeNode) {
//保存当前点击的栏目ID
layui.data("tree_catid", {key: 'catid',value: treeNode.id});
}
}
};
$(document).ready(function() {
var B_frame_height = parent.layui.$(".iframe_box").height() - 100;
$(window).on('resize', function() {
setTimeout(function() {
B_frame_height = parent.layui.$(".iframe_box").height() - 100;
frameheight();
}, 100);
});
$('.collapse').on("click", function() {
var t = $(this).find('.layui-icon');
$('#left-sider').toggleClass("hidden");
if ($('#left-sider').hasClass("hidden")) {
t.attr("class", "layui-icon layui-icon-shrink-right");
$("#right-box").attr("class", 'layui-col-md12 layui-col-sm12');
} else {
t.attr("class", "layui-icon layui-icon-spread-left");
$("#right-box").attr("class", 'layui-col-md10 layui-col-sm12');
};
})
function frameheight() {
$("#iframe_categorys").height(B_frame_height+7);
$("#iframe_categorys_list").height(B_frame_height);
}
frameheight();
//初始化
$.fn.zTree.init($("#tree"), setting, zNodes);
//获取对象
var zTree = $.fn.zTree.getZTreeObj("tree");
//全选
$("#ztree_expandAll").click(function() {
if ($(this).data("open")) {
zTree.expandAll(false);
$(this).data("open", false);
} else {
zTree.expandAll(true);
$(this).data("open", true);
}
});
//定位到上次打开的栏目,进行展开tree_catid
var tree_catid = layui.data('tree_catid').catid;
if (tree_catid) {
var nodes = zTree.getNodesByParam("id", tree_catid, null);
zTree.selectNode(nodes[0]);
}
});
});
</script>
</body>
</html>