File: /www/wwwroot//www.elwrky.com/runtime/temp/0e386e5068e71589825b36ae7e2760d3.php
<?php /*a:3:{s:64:"/www/wwwroot/www.elwrky.com/application/cms/view/site/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">站点管理</div>
<div class="layui-card-body">
<div class="layui-form">
<blockquote class="layui-elem-quote">添加、修改和删除站点全部完成后,请点击【更新站点缓存】!</blockquote>
<table class="layui-hide" id="currentTable" lay-filter="currentTable"></table>
</div>
</div>
</div>
<script type="text/html" id="aloneTpl">
{{# if(d.alone ==0){ }}
<div> <i class="iconfont icon-delete layui-red"></i></div>
{{# } else { }}
<div> <i class="layui-icon layui-icon-ok-circle"></i></div>
{{# } }}
</script>
<script type="text/html" id="sourceTpl">
{{# if(d.source ==0){ }}
<div> <i class="iconfont icon-delete"></i></div>
{{# } else { }}
<div> <i class="layui-icon layui-icon-ok-circle layui-red"></i></div>
{{# } }}
</script>
<script type="text/html" id="closeTpl">
{{# if(d.close){ }}
<div> <i class="layui-icon layui-icon-ok-circle"></i></div>
{{# } else { }}
<div> <i class="iconfont icon-delete layui-red"></i></div>
{{# } }}
</script>
<script type="text/html" id="barTool">
{{# if(<?php echo htmlentities($push); ?> && d.alone == 1){ }}
<a data-open='<?php echo url("push/site",["catid"=>$catid]); ?>?id={{ d.id }}' class="layui-btn layui-btn-xs layui-btn-warm" title="推送并翻译">同步</a>
{{# } else { }}
<a class="layui-btn layui-btn-xs layui-btn-disabled" title="推送并翻译">同步</a>
{{# } }}
{{# if(d.sites !=1){ }}
<a data-open="{{d.add_url}}" data-width="900" data-height="600" class="layui-btn layui-btn-xs layui-btn-normal" title="添加子栏目">添加</a>
{{# } }}
{{# if(d.sites !=1 || d.id == 1){ }}
<a data-open='<?php echo url("edit"); ?>?id={{ d.id }}' data-width="900" data-height="600" class="layui-btn layui-btn-xs" title="编辑">编辑</a>
{{# } else { }}
<a class="layui-btn layui-btn-xs layui-btn-disabled" title="编辑">编辑</a>
{{# } }}
<a href='<?php echo url("del"); ?>?id={{ d.id }}' class="layui-btn layui-btn-danger layui-btn-xs layui-tr-del">删除</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.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 table = layui.yznTable;
var init = {
table_elem: '#currentTable',
add_url: "<?php echo url('add'); ?>",
delete_url: "<?php echo url('del'); ?>",
modify_url: '<?php echo url("multi"); ?>',
};
table.render({
init: init,
id: 'currentTable',
elem: '#currentTable',
toolbar: ['refresh', 'add', [
{
text: "更新站点缓存",
url: "<?php echo url('cache'); ?>",
method: 'request',
class: 'layui-btn layui-btn-sm',
icon:'iconfont icon-shuaxin1',
extend: 'data-table="currentTable"',
}]
],
url: '<?php echo url("index"); ?>',
search:true,
cols: [
[
{field: 'id', title: 'ID', width: 80, fixed: true, sort: true,align:"center"},
{ field: 'listorder', width: 70, title: '排序', edit: 'text',search:false },
{field: 'name', title: '站点名称', searchOp: 'like'},
{ field: 'close', width: 90, align: "center", title: '站点开关', templet: '#closeTpl', unresize: true,search:false },
{ field: 'source', width: 90, align: "center", title: '默认站点', templet: '#sourceTpl', unresize: true,search:false },
{ field: 'alone', width: 90, align: "center", title: '独立数据', templet: '#aloneTpl', unresize: true,search:false },
{field: 'mark', title: '标识', width: 90,align:"center" },
{field: 'template', title: '主题', width: 90,align:"center" },
{field: 'icon', title: '语言', width: 90,templet:"#icon",align:"center",search:false },
{ field: 'url', width: 60, align: "center", title: 'URL', templet: yznTable.formatter.url, search: false },
{ field: 'logo', width: 120, title: 'LOGO', search: false, templet: yznTable.formatter.image },
{ field: 'favicon', width: 80, title: '图标', search: false, templet: yznTable.formatter.image },
{ field: 'status', width: 100, align: "center", title: '状态', unresize: true,templet: yznTable.formatter.switch },
{fixed: 'right', title:'操作',width:220, toolbar: '#barTool',align:"center"}
]
],
page: {}
});
});
</script>
</body>
</html>