184 lines
7.6 KiB
PHP
184 lines
7.6 KiB
PHP
<?php /*a:1:{s:49:"E:\Demo\PHP\yunzer\app\admin\view\index\index.php";i:1746796639;}*/ ?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title><?php echo htmlentities((string) $config['admin_name']); ?></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" type="text/css" href="/static/third/layui/css/layui.css" media="all">
|
|
<link rel="stylesheet" type="text/css" href="/static/css/index.css" media="all">
|
|
<script type="text/javascript" src="/static/third/layui/layui.js"></script>
|
|
<script type="text/javascript" src="/static/js/admin.js"></script>
|
|
<style>
|
|
.layadmin-side-shrink .layui-layout-admin .layui-logo {
|
|
width: 60px;
|
|
background-image: url("/static/images/logob32.jpg");
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body layadmin-themealias="default" class="layui-layout-body">
|
|
<div id="LAY_app" class="layadmin-tabspage-none">
|
|
<div class="layui-layout layui-layout-admin">
|
|
<div class="layui-header">
|
|
<!-- 头部区域 -->
|
|
<div style="display: flex;align-items: center;height:70px;">
|
|
<ul class="layui-nav layui-layout-left">
|
|
<li class="layui-nav-item layadmin-flexible" lay-unselect onclick="shrink()">
|
|
<a href="javascript:;" layadmin-event="flexible" title="侧边伸缩">
|
|
<i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
<ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">
|
|
<li class="layui-nav-item layui-hide-xs" lay-unselect title="前端站点" onclick="gotoFront()">
|
|
<a href="javascript:;" layadmin-event="gotoFront">
|
|
<i class="layui-icon layui-icon-website"></i>
|
|
</a>
|
|
</li>
|
|
<li class="layui-nav-item layui-hide-xs" lay-unselect title="全屏" onclick="fullScreen()">
|
|
<a href="javascript:;" layadmin-event="fullscreen">
|
|
<i class="layui-icon layui-icon-screen-full"></i>
|
|
</a>
|
|
</li>
|
|
<li class="layui-nav-item" lay-unselect>
|
|
<a href="javascript:;">
|
|
<cite><?php echo htmlentities((string) $aUser['name']); ?></cite>
|
|
</a>
|
|
<dl class="layui-nav-child">
|
|
<dd><a lay-href="" onclick="menuFire('yunzeradmin/admininfo',1)">个人中心</a></dd>
|
|
<hr>
|
|
<dd layadmin-event="logout" style="text-align:center;" onclick="logout()">
|
|
<a>退出</a>
|
|
</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- 侧边菜单 -->
|
|
<div class="layui-side layui-side-menu">
|
|
<div class="layui-side-scroll">
|
|
<div class="layui-logo" lay-href="" style="display: flex;align-items: center;">
|
|
<img src="/static/images/logo-l-w.png" alt="<?php echo htmlentities((string) $config['admin_name']); ?>"
|
|
style="max-width: 100%; max-height: 100%;">
|
|
</div>
|
|
<ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu"
|
|
lay-filter="layadmin-system-side-menu">
|
|
<?php if(is_array($menu) || $menu instanceof \think\Collection || $menu instanceof \think\Paginator): $i = 0; $__LIST__ = $menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
|
|
<li data-name="" data-jump="" class="layui-nav-item">
|
|
<a href="javascript:;" lay-tips="<?php echo htmlentities((string) $vo['label']); ?>" lay-direction="2">
|
|
<i class="layui-icon layui-icons <?php echo htmlentities((string) $vo['icon_class']); ?>"></i>
|
|
<cite><?php echo htmlentities((string) $vo['label']); ?></cite>
|
|
</a>
|
|
<?php if((isset($vo['children']) && $vo['children'])): ?>
|
|
<dl class="layui-nav-child">
|
|
<?php if(is_array($vo['children']) || $vo['children'] instanceof \think\Collection || $vo['children'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['children'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$cvo): $mod = ($i % 2 );++$i;?>
|
|
<dd data-name="" data-jump="/">
|
|
<?php if($cvo['type'] == 1): ?>
|
|
<a href="javascript:;" onclick="menuFire('<?php echo htmlentities((string) $cvo['src']); ?>',1)">
|
|
<i class="layui-icon layui-icons <?php echo htmlentities((string) $cvo['icon_class']); ?>"></i><?php echo htmlentities((string) $cvo['label']); ?>
|
|
</a>
|
|
<?php elseif($cvo['type'] == 2): ?>
|
|
<a href="<?php echo htmlentities((string) $cvo['src']); ?>" target="_blank">
|
|
<i class="layui-icon layui-icons <?php echo htmlentities((string) $cvo['icon_class']); ?>"></i><?php echo htmlentities((string) $cvo['label']); ?>
|
|
</a>
|
|
<?php endif; ?>
|
|
</dd>
|
|
<?php endforeach; endif; else: echo "" ;endif; ?>
|
|
</dl>
|
|
<?php endif; ?>
|
|
</li>
|
|
<?php endforeach; endif; else: echo "" ;endif; ?>
|
|
</ul>
|
|
<div style="position: absolute;bottom:20px;width:200px;display:flex;justify-content: center;">
|
|
<a style="color:#848484" href="https://www.yunzer.cn/">POWER BY 云泽网</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 主体内容 -->
|
|
<div class="layui-body" id="LAY_app_body">
|
|
<div class="layadmin-tabsbody-item layui-show">
|
|
<div class="layui-fluid">
|
|
<div class="layui-card">
|
|
<iframe src="<?php echo htmlentities((string) $config['admin_route']); ?>index/welcome" onload="resetMainHeight(this)"
|
|
style="width:100%;height:100%;" frameborder="0" scrolling="0"></iframe>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 辅助元素,一般用于移动设备下遮罩 -->
|
|
<div class="layadmin-body-shade" layadmin-event="shade" onclick="shrink()"></div>
|
|
</div>
|
|
</div>
|
|
<!-- 辅助元素,一般用于移动设备下遮罩 -->
|
|
<div class="layadmin-body-shade" layadmin-event="shade"></div>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
layui.use(['element', 'layer', 'jquery'], function () {
|
|
var element = layui.element;
|
|
$ = layui.jquery;
|
|
layer = layui.layer;
|
|
setter = layui.setter;
|
|
$('#clearcache').on('click', function () {
|
|
$.ajax({
|
|
url: "<?php echo htmlentities((string) $config['admin_route']); ?>index/clear",
|
|
success: function (res) {
|
|
if (res.code > 0) {
|
|
layer.msg(res.msg, { 'icon': 2 });
|
|
} else {
|
|
layer.msg(res.msg, { 'icon': 1 });
|
|
setTimeout(function () { parent.window.location.reload(); }, 1000);
|
|
}
|
|
}
|
|
});
|
|
return false;
|
|
});
|
|
});
|
|
// 重新设置主操作页面高度
|
|
function resetMainHeight(obj) {
|
|
// parent 上级
|
|
// clientHeight 元素的像素高度,包含元素的高度+内边距,不包含水平滚动条,边框和外边距
|
|
var height = parent.document.documentElement.clientHeight - 80;
|
|
$(obj).parent('div').height(height);
|
|
}
|
|
// 菜单点击
|
|
function menuFire(obj, num) {
|
|
if (num == 1) {
|
|
$('iframe').attr('src', "<?php echo htmlentities((string) $config['admin_route']); ?>" + obj);
|
|
}
|
|
var width = screen();
|
|
if (width < 2) {
|
|
shrink();
|
|
}
|
|
}
|
|
// 退出
|
|
function logout() {
|
|
layer.confirm('确定要退出吗?', {
|
|
icon: 3,
|
|
btn: ['确定', '取消']
|
|
}, function () {
|
|
$.get("<?php echo htmlentities((string) $config['admin_route']); ?>login/logout", function (res) {
|
|
if (res.code > 0) {
|
|
layer.msg(res.msg, { 'icon': 2 });
|
|
} else {
|
|
layer.msg(res.msg, { 'icon': 1 });
|
|
setTimeout(function () { window.location.href = "<?php echo htmlentities((string) $config['admin_route']); ?>login/index"; }, 1000);
|
|
}
|
|
}, 'json');
|
|
});
|
|
}
|
|
|
|
//跳转前端站点
|
|
function gotoFront(){
|
|
window.open("//<?php echo htmlentities((string) $config['admin_domain']); ?>", "_blank");
|
|
}
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|