<?php /*a:2:{s:62:"/www/wwwroot/117.72.69.185/app/backend/view/index/console.html";i:1735020653;s:60:"/www/wwwroot/117.72.69.185/app/backend/view/layout/main.html";i:1734156624;}*/ ?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title><?php echo syscfg('site','sys_name'); ?>后台管理</title>
    <meta property="og:keywords" content="<?php echo syscfg('site','site_seo_keywords'); ?>" />
    <meta property="og:description" content="<?php echo syscfg('site','site_seo_desc'); ?>" />
    <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, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="referrer" content="never">
    <meta name="format-detection" content="telephone=no">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="/static/plugins/layui/css/layui.css?v=<?php echo syscfg('site','site_version'); ?>" media="all" />
    <link rel="stylesheet" href="/static/backend/css/comm.css?v=<?php echo syscfg('site','site_version'); ?>" media="all">
    <link rel="stylesheet" href="/static/backend/css/global.css?v=<?php echo syscfg('site','site_version'); ?>" media="all" />
    <!--    <script src="/static/plugins/jquery/jquery-3.7.1.min.js"></script>-->
    <script src="/static/plugins/layui/layui.js?v=<?php echo syscfg('site','site_version'); ?>" charset="utf-8"></script>
    <style>
        .tox-promotion,
        .tox-statusbar__branding {  
            display: none;  
        }
    </style>
    <?php echo token_meta(); ?>
    <script>
        window.Config = <?php echo json_encode($config); ?>;
        window.FormArray = <?php echo isset($formData)?(json_encode($formData)):'""'; ?>,
        window.STATIC ='/static'
        window.PLUGINS = '/static/plugins';
        window.APP = '<?php echo htmlentities($APP); ?>';
        window.CONTROLLER = '<?php echo htmlentities($CONTROLLER); ?>';
        window.ACTION = '<?php echo htmlentities($ACTION); ?>';
        window.ADMIN_PATH = '<?php echo env("ADMIN_PATH", "backend"); ?>';
    </script>
</head>

<body style="padding: 10px;background: #fff">

<div class="fun-container" id="app">

    
<style>
    body{padding:10px}
    .layui-card .layui-card-header .layui-badge.pull-right{top:50%;margin-top:-10px;}
    .pull-right{float: right;}
    .layui-badge{height:20px;line-height:19px;box-sizing:border-box}
    .layui-badge-green{color:#52c41a;background:#f6ffed;border:1px solid #b7eb8f}
    .layui-badge-blue{color:#1890ff;background:#e6f7ff;border:1px solid #91d5ff}
    .layui-badge-red{color:#f5222d;background:#fff1f0;border:1px solid #ffa39e}
    .lay-big-font{font-size:36px;line-height:36px;padding:5px 0 10px;overflow:hidden;white-space:nowrap;word-break:break-all;text-overflow:ellipsis}
    .console-app-group{padding:16px;border-radius:4px;text-align:center;background-color:#fff;cursor:pointer}
    .console-app-group .console-app-icon{width:32px;height:32px;line-height:32px;margin-bottom:6px;display:inline-block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;font-size:32px;color:#69c0ff}
    .layui-status-img img{width:40px}
</style>
<body>
<div class="fun-app" id="app">
    <div class="fun-container" style="background:#f2f2f2">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
                <div class="layui-card">
                    <div class="layui-card-header">
                        站点数量
                    </div>
                    <div class="layui-card-body">
                        <p class="lay-big-font"><?php echo htmlentities($site); ?></p>
                        <!--<p>总访问量<span class="pull-right">290 万</span></p>-->
                    </div>
                </div>
            </div>
            <div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
                <div class="layui-card">
                    <div class="layui-card-header">
                        友联数量
                    </div>
                    <div class="layui-card-body">
                        <p class="lay-big-font"><span style="font-size: 26px;line-height: 1;"></span><?php echo htmlentities($link); ?></p>
                        <!--<p>总销售额<span class="pull-right">880 万</span></p>-->
                    </div>
                </div>
            </div>
            <div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
                <div class="layui-card">
                    <div class="layui-card-header">
                        分类数量
                    </div>
                    <div class="layui-card-body">
                        <p class="lay-big-font"><?php echo htmlentities($type); ?></p>
                        
                    </div>
                </div>
            </div>
            <div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
                <div class="layui-card">
                    <div class="layui-card-header">
                        模板数量
                    </div>
                    <div class="layui-card-body">
                        <p class="lay-big-font"><?php echo htmlentities($template); ?></p>
                    </div>
                </div>
            </div>
        </div>
        
        <div class="layui-row layui-col-space10">
            <div class="layui-col-sm8">
                <div class="layui-card">
                    <div class="layui-card-header">数据统计</div>
                                <div class="layui-card-body">
                                    
                                        <canvas id="myChart"></canvas>
                                    </div>
                </div>
            </div>
            <div class="layui-col-sm4">
                <div class="layui-card">
                    <div class="layui-card-header">版本信息</div>
                    <div class="layui-card-body">
                        <table class="layui-table layui-text">
                            <colgroup>
                                <col width="90">
                                <col>
                            </colgroup>
                            <tbody>
                            <tr>
                                <td>当前版本</td>
                                <td>v<?php echo config('funadmin.version'); ?>
                            </tr>
                            <tr>
                                <td>基于框架</td>
                                <td>THINKPHP8</td>
                            </tr>
                            <tr>
                                <td>Tp版本</td>
                                <td><?php echo getTpVersion(); ?></td>
                            </tr>
                            <tr>
                                <td>基于</td>
                                <td>layui-v<?php echo config('funadmin.layui_version'); ?></td>
                            </tr>
                            <tr>
                                <td>基于</td>
                                <td>Requirejs</td>
                            </tr>

                            </tbody>
                        </table>
                    </div>
                </div>
                             <div class="layui-card">
                    <div class="layui-row layui-col-space15">
                        <div class="layui-col-space15">
                            <div class="layui-card">
                                <div class="layui-card-header">官方公告</div>
                                <div class="layui-card-body">
                                    公告
                                </div>
                                        <div class="layui-card-body">
                                    公告
                                </div>
                                        <div class="layui-card-body">
                                    公告
                                </div>
                                        <div class="layui-card-body">
                                    公告
                                </div>
                                        <div class="layui-card-body">
                                    公告
                                </div>
                            </div>
                        </div>
                        
                    </div>
                </div>
                </div>
        </div>
        <div class="layui-row layui-col-space15">
            <div class="layui-col-sm4">

   
                
            </div>
            
            
            

<!--                <div class="layui-card">-->
<!--                    <div class="layui-card-header">动态</div>-->
<!--                    <div class="layui-card-body">-->
<!--                        <dl class="layui-card-status">-->
<!--                            <dd>-->
<!--                                <div class="layui-status-img"><a href="javascript:;">-->
<!---->
<!--                                </a></div>-->
<!--                                <div>-->
<!--                                    <p>胡歌 在 <a lay-href="http://www.FunAdmin.com">FunAdmin专区</a> 回答问题</p>-->
<!--                                    <span>几秒前</span>-->
<!--                                </div>-->
<!--                            </dd>-->
<!--                            <dd>-->
<!--                                <div class="layui-status-img"><a href="javascript:;">-->
<!---->
<!--                                </a></div>-->
<!--                                <div>-->
<!--                                    <p>彭于晏 在 <a lay-href="http://www.Funadmin.com">FunAdmin专区</a> 进行了 <a-->
<!--                                            lay-href="http://www.FunAdmin.comcolumn/quiz/">提问</a></p>-->
<!--                                    <span>2天前</span>-->
<!--                                </div>-->
<!--                            </dd>-->

<!--                        </dl>-->
<!--                    </div>-->
                </div>
            </div>
        </div>
    </div>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
var ctx = document.getElementById('myChart').getContext('2d');
var data = <?php echo json_encode($data); ?>;
var myChart = new Chart(ctx, {
    type: 'line', // 图表类型
    data: data, // 图表w数据
});
</script>


</div>
</body>
</html>
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script defer src="/static/require.min.js?v=<?php echo syscfg('site','site_version'); ?>" data-main="/static/js/require-backend<?php echo syscfg('site','app_debug')?'':'.min'; ?>.js?v=<?php echo syscfg('site','site_version'); ?>" charset="utf-8"></script>

<?php if(!empty($formScript)): ?><?php echo $formScript; ?><?php endif; if(!empty($tableScript)): ?><?php echo $tableScript; ?><?php endif; ?>
