95 lines
3.8 KiB
PHP
Executable File
95 lines
3.8 KiB
PHP
Executable File
<?php /*a:2:{s:62:"E:\www\hcysshop\server\application\admin\view\cache\cache.html";i:1628618358;s:58:"E:\www\hcysshop\server\application\admin\view\layout1.html";i:1628618358;}*/ ?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title><?php echo url(); ?></title>
|
|
<meta name="renderer" content="webkit">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
|
<link rel="stylesheet" href="/static/plug/layui-admin/dist/layuiadmin/layui/css/layui.css?v=<?php echo htmlentities($front_version); ?>" media="all">
|
|
<link rel="stylesheet" href="/static/plug/layui-admin/dist/layuiadmin/style/admin.css?v=<?php echo htmlentities($front_version); ?>" media="all">
|
|
<link rel="stylesheet" href="/static/plug/layui-admin/dist/layuiadmin/style/like.css?v=<?php echo htmlentities($front_version); ?>" media="all">
|
|
</head>
|
|
<body>
|
|
<?php echo $js_code; ?>
|
|
<script src="/static/plug/layui-admin/dist/layuiadmin/layui/layui.js?v=<?php echo htmlentities($front_version); ?>"></script>
|
|
<script src="/static/common/js/function.js?v=<?php echo htmlentities($front_version); ?>"></script>
|
|
<script src="/static/common/js/Time.js?v=<?php echo htmlentities($front_version); ?>"></script>
|
|
|
|
<div class="layui-fluid">
|
|
<div class="layui-card layui-form">
|
|
<div class="layui-card-body">
|
|
<div class="layui-collapse like-layui-collapse" style="border:1px dashed #c4c4c4">
|
|
<div class="layui-colla-item">
|
|
<h2 class="layui-colla-title like-layui-colla-title" style="background-color: #fff">操作提示</h2>
|
|
<div class="layui-colla-content layui-show">
|
|
<p>*管理系统运行过程中产生的缓存。</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-card-body" id="card-body">
|
|
<table id="like-lists" lay-filter="like-lists"></table>
|
|
<script type="text/html" id="operation">
|
|
<a class="layui-btn layui-btn-normal layui-btn-sm" lay-event="clear">清除系统缓存</a>
|
|
</script>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script>
|
|
layui.config({
|
|
version: "<?php echo htmlentities($front_version); ?>",
|
|
base: '/static/plug/layui-admin/dist/layuiadmin/'
|
|
}).extend({
|
|
index: 'lib/index'
|
|
}).use(['index', 'table', 'like', 'form'], function () {
|
|
var $ = layui.$
|
|
, form = layui.form
|
|
, table = layui.table
|
|
, like = layui.like;
|
|
|
|
table.render({
|
|
elem: '#like-lists'
|
|
, cols: [[
|
|
{field: 'name', title: '管理内容', width: 200}
|
|
, {field: 'desc', title: '内容说明', Width: 150}
|
|
, {fixed: 'right', title: '操作', width: 200, align: 'center', toolbar: '#operation'}
|
|
]]
|
|
, data: [{
|
|
"name": "系统缓存"
|
|
, "desc": "系统运行过程中产生的各类缓存数据"
|
|
}]
|
|
});
|
|
|
|
|
|
table.on('tool(like-lists)', function(obj) {
|
|
if(obj.event === 'clear') {
|
|
like.ajax({
|
|
url:'<?php echo url("cache/cache"); ?>',
|
|
type:"post",
|
|
success:function(res) {
|
|
if(res.code === 1) {
|
|
layui.layer.msg(res.msg, {
|
|
offset: '15px'
|
|
, icon: 1
|
|
, time: 1000
|
|
},function () {
|
|
location.reload();
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
|
|
|
|
});
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|