This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop/source/application/admin/view/layouts/layout.php

105 lines
4.4 KiB
PHP
Raw Normal View History

2020-04-25 22:20:29 +08:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<title>运营管理系统</title>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="renderer" content="webkit"/>
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<link rel="icon" type="image/png" href="assets/common/i/favicon.ico"/>
<meta name="apple-mobile-web-app-title" content="运营管理系统"/>
<link rel="stylesheet" href="assets/common/css/amazeui.min.css"/>
<link rel="stylesheet" href="assets/admin/css/app.css"/>
<link rel="stylesheet" href="//at.alicdn.com/t/font_783249_c9du3u6ahxp.css">
<script src="assets/common/js/jquery.min.js"></script>
<script>
BASE_URL = '<?= isset($base_url) ? $base_url : '' ?>';
ADMIN_URL = '<?= isset($admin_url) ? $admin_url : '' ?>';
</script>
</head>
<body data-type="">
<div class="am-g tpl-g">
<!-- 头部 -->
<header class="tpl-header">
<!-- 右侧内容 -->
<div class="tpl-header-fluid">
<!-- 其它功能-->
<div class="am-fr tpl-header-navbar">
<ul>
<!-- 欢迎语 -->
<li class="am-text-sm tpl-header-navbar-welcome">
<a href="<?= url('admin.user/renew') ?>">欢迎你,<span><?= $admin['user']['user_name'] ?></span>
</a>
</li>
<!-- 退出 -->
<li class="am-text-sm">
<a href="<?= url('passport/logout') ?>">
<i class="iconfont icon-tuichu"></i> 退出
</a>
</li>
</ul>
</div>
</div>
</header>
<!-- 内容区域 start -->
<div class="tpl-content-wrapper dis-flex">
<!-- 左侧菜单 -->
<?php $menus = $menus ?: []; ?>
<?php $group = $group ?: 0; ?>
<div class="left-sidebar">
<ul class="sidebar-nav">
<?php foreach ($menus as $key => $item): ?>
<li class="sidebar-nav-link">
<a href="<?= isset($item['index']) ? url($item['index']) : 'javascript:void(0);' ?>"
class="sidebar-nav-link-disabled">
<?php if (isset($item['is_svg']) && $item['is_svg'] == true): ?>
<svg class="icon sidebar-nav-link-logo" aria-hidden="true">
<use xlink:href="#<?= $item['icon'] ?>"></use>
</svg>
<?php else: ?>
<i class="iconfont sidebar-nav-link-logo <?= $item['icon'] ?>"
style="<?= isset($item['color']) ? "color:{$item['color']};" : '' ?>"></i>
<?php endif; ?>
<?= $item['name'] ?>
</a>
<!-- 子级菜单-->
<?php if (isset($item['submenu']) && !empty($item['submenu'])) : ?>
<ul class="sidebar-third-nav-sub">
<?php foreach ($item['submenu'] as $second) : ?>
<li class="sidebar-nav-link <?= $second['active'] ? 'active' : '' ?>">
<a class="" href="<?= url($second['index']) ?>">
<?= $second['name'] ?></a>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
</div>
<!-- 内容区域 -->
<div class="row-content am-cf">
{__CONTENT__}
</div>
</div>
<!-- 内容区域 end -->
<div class="help-block am-text-center am-padding-sm">
<small>当前系统版本号v<?= $version ?></small>
</div>
</div>
<script src="assets/common/plugins/layer/layer.js"></script>
<script src="assets/common/js/jquery.form.min.js"></script>
<script src="assets/common/js/amazeui.min.js"></script>
<script src="assets/common/js/webuploader.html5only.js"></script>
<script src="assets/common/js/art-template.js"></script>
<script src="assets/admin/js/app.js"></script>
</body>
</html>