<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>控制台主页</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="<?= RESOURCES ?>/layuiadmin/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="<?= RESOURCES  ?>/layuiadmin/layuiadmin/style/admin.css" media="all">
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md8">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md6">
                    <div class="layui-card">
                        <div class="layui-card-header">快捷方式</div>
                        <div class="layui-card-body">

                            <div class="layui-carousel layadmin-carousel layadmin-shortcut">
                                <div carousel-item>
                                    <ul class="layui-row layui-col-space10">
                                        <li class="layui-col-xs3">
                                            <a lay-href="/<?= ADMIN_NAME ?>/sort/index?classid=1">
                                                <i class="layui-icon layui-icon-console"></i>
                                                <cite>网站栏目</cite>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs3">
                                            <a lay-href="/<?= ADMIN_NAME ?>/<?= ADMIN_NAME ?>/index">
                                                <i class="layui-icon layui-icon-chart"></i>
                                                <cite>管理员管理</cite>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs3">
                                            <a lay-href="/<?= ADMIN_NAME ?>/group/index">
                                                <i class="layui-icon layui-icon-template-1"></i>
                                                <cite>管理员权限</cite>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs3">
                                            <a lay-href="/<?= ADMIN_NAME ?>/log/index">
                                                <i class="layui-icon layui-icon-chat"></i>
                                                <cite>系统日志</cite>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs3">
                                            <a lay-href="/<?= ADMIN_NAME ?>/set">
                                                <i class="layui-icon layui-icon-find-fill"></i>
                                                <cite>网站配置</cite>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs3">
                                            <a lay-href="/<?= ADMIN_NAME ?>/menu/index">
                                                <i class="layui-icon layui-icon-survey"></i>
                                                <cite>菜单管理</cite>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs3">
                                            <a lay-href="/<?= ADMIN_NAME ?>/parameter/index">
                                                <i class="layui-icon layui-icon-user"></i>
                                                <cite>参数管理</cite>
                                            </a>
                                        </li>

                                    </ul>

                                </div>
                            </div>

                        </div>
                    </div>
                </div>
                <div class="layui-col-md6">
                    <div class="layui-card">
                        <div class="layui-card-header">最近数据</div>
                        <div class="layui-card-body">
                            <div class="layui-carousel layadmin-carousel layadmin-backlog">
                                <div carousel-item>
                                    <?php foreach($sort as $k=>$v1) : ?>
                                    <?php if($k%4==0){  ?>
                                    <ul class="layui-row layui-col-space10">
                                        <?php foreach($sort as $k1=>$v11) : ?>
                                        <?php if($k1>=$k && $k1<$k+4){ ?>
                                        <li class="layui-col-xs6">
                                            <a lay-href="/<?= ADMIN_NAME ?>/<?php echo $v11['u8'] ?>/index?table_id=<?php echo $v11['id'] ?>"
                                               class="layadmin-backlog-body">
                                                <h3>今日<?php echo $v11['u2'] ?></h3>
                                                <p>
                                                    <cite>
                                                       0
                                                    </cite>
                                                </p>
                                            </a>
                                        </li>
                                        <?php }?>
                                        <?php endforeach;?>
                                    </ul>
                                    <?php }?>
                                    <?php endforeach;?>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md12">

                    <div class="layui-card">
                        <iframe src="/<?= ADMIN_NAME ?>/autotable/index?table_id=1"
                                style="width: 100%;height: 600px;padding: 0;margin: 0" frameborder=”no” border=”0″ marginwidth=”0″ marginheight=”0″
                                scrolling=”no” allowtransparency=”yes”>
                        </iframe>

                    </div>
                </div>
            </div>
        </div>

        <div class="layui-col-md4">
            <div class="layui-card">
                <div class="layui-card-header">版本信息</div>
                <div class="layui-card-body layui-text">
                    <table class="layui-table">
                        <colgroup>
                            <col width="100">
                            <col>
                        </colgroup>
                        <tbody>
                        <tr>
                            <td>当前版本</td>
                            <td>
                                v2.0.2
                            </td>
                        </tr>
                        <tr>
                            <td>基于框架</td>
                            <td>
                                silePHP2.0
                            </td>
                        </tr>
                        <tr>
                            <td>主要特色</td>
                            <td>零门槛 / 响应式 / 清爽 / 极简</td>
                        </tr>

                        </tbody>
                    </table>
                </div>
            </div>

            <div class="layui-card">
                <div class="layui-card-header">实时监控</div>
                <div class="layui-card-body layadmin-takerates">
                    <div class="layui-progress" lay-showPercent="yes">
                        <h3>CPU使用率</h3>
                        <div class="layui-progress-bar" lay-percent="<?php echo  rand(5, 25) ?>%"></div>
                    </div>
                    <div class="layui-progress" lay-showPercent="yes">
                        <h3>内存占用率</h3>
                        <div class="layui-progress-bar layui-bg-red" lay-percent="<?php echo  rand(15, 35) ?>%"></div>
                    </div>
                </div>
            </div>


            <div class="layui-card">
                <div class="layui-card-header">
                    作者心语
                    <i class="layui-icon layui-icon-tips" lay-tips="要支持的噢" lay-offset="5"></i>
                </div>
                <div class="layui-card-body layui-text layadmin-text">
                    <p>欢迎联系思乐科技 我们期待与您消息沟通</p>
                    <p>028-85530019</p>
                    <p>TEL:028-85530019</p>
                    <p>E-MAIL：582797956@qq.com</p>
                    <p>ADD：武候区红牌楼广场2号写字楼10楼1004号</p>
                    <p>—— wahson_gong</p>
                </div>
            </div>
        </div>

    </div>
</div>

<script src="<?= RESOURCES ?>/layuiadmin/layuiadmin/layui/layui.js?t=1"></script>
<script>
    layui.config({
        base: '<?= RESOURCES ?>/layuiadmin/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'console']);
</script>
</body>
</html>

