File: /www/wwwroot/ly.fwmnzf.com/runtime/temp/e94af4ea3b41e4a3d889d7258f238b13.php
<?php /*a:3:{s:68:"/www/wwwroot/ly.fwmnzf.com/application/addons/view/addons/index.html";i:1619409779;s:67:"/www/wwwroot/ly.fwmnzf.com/application/admin/view/index_layout.html";i:1620206728;s:60:"/www/wwwroot/ly.fwmnzf.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' : ''; ?>">
<div class="layui-card">
<div class="layui-card-header">插件管理</div>
<div class="layui-card-body">
<table class="layui-hide" id="currentTable" lay-filter="currentTable"></table>
</div>
</div>
<script type="text/html" id="titleTpl">
{{# if(d.status >= 0){ }}
{{# if(d.config == 1 ){ }}
<a class="layui-btn layui-btn-xs" href='<?php echo url("config"); ?>?name={{d.name}}'>设置</a>
{{# } }}
{{# if(d.status == 0){ }}
<a class="layui-btn layui-btn-xs layui-btn-normal" data-request='<?php echo url("state",["action"=>"enable"]); ?>?name={{d.name}}' data-table="currentTable" confirm>启用</a>
{{# } else { }}
<a class="layui-btn layui-btn-xs layui-btn-warm" data-request='<?php echo url("state",["action"=>"disable"]); ?>?name={{d.name}}' data-table="currentTable" confirm>禁用</a>
{{# } }}
<a class="layui-btn layui-btn-xs layui-btn-danger" data-request='<?php echo url("uninstall"); ?>?name={{d.name}}' data-table="currentTable" data-title="确定卸载【{{d.title}}】,进行该操作?" confirm>卸载</a>
{{# } else { }}
<a class="layui-btn layui-btn-xs" data-request='<?php echo url("install"); ?>?name={{d.name}}' data-table="currentTable" data-title="确定安装【{{d.title}}】,进行该操作?" confirm>安装</a>
{{# } }}
</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',
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(['yznTable', 'upload'], function() {
var table = layui.yznTable,
$ = layui.$,
upload = layui.upload;
var init = {
table_elem: '#currentTable',
};
table.render({
init: init,
id: 'currentTable',
elem: '#currentTable',
toolbar: ['refresh',
[{
html:'<a class="layui-btn layui-btn-sm" id="local-install"><i class="iconfont icon-upload-fill"></i> 本地安装</a>'
}],
],
url: '<?php echo url("index"); ?>',
search:false,
cols: [
[
{ field: 'title', width: 150, title: '名称' },
{ field: 'name', width: 150, title: '标识' },
{ field: 'description', title: '描述' },
{ field: 'author', width: 90, title: '作者' },
{ field: 'version', width: 90, title: '版本' },
{ fixed: 'right', width: 180, title: '操作', templet: '#titleTpl' }
]
]
});
// 监听请求
/*$('body').on('click', '[data-url]', function() {
var url = $(this).data('url');
yzn.msg.confirm('确定进行该操作?',function() {
yzn.request.get({
url: url
}, function(res) {
yzn.msg.success(res.msg, function() {
location.reload();
});
});
})
return false;
});*/
//执行实例
var uploadInst = upload.render({
elem: '#local-install',
url: '<?php echo url("addons/addons/local"); ?>',
accept: 'file',
exts: 'zip',
done: function(res) {
//上传完毕回调
layer.alert(res.msg, {}, function(index) {
if (res.code != 0) {
location.reload();
}else{
layer.close(index);
}
});
},
error: function() {
//请求异常回调
}
});
});
</script>
</body>
</html>