<?php if (!defined('ROOT')){ echo 'Deny ...'; exit; } extract($data); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>MAIN</title>
        <link href="<?php echo $base_url; ?>static/css/style.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="<?php echo $base_url; ?>static/js/jquery.js"></script>

    </head>
    
    <body>

        <div class="place">
            <span>位置：</span>
            <ul class="placeul">
                <li><a href="<?php echo $base->get_model_url(array('c' => 'frame', 'm' => 'main')); ?>">首页</a></li>
            </ul>
        </div>

        <div class="mainindex">

            <div class="welinfo">
                <span><img src="<?php echo $base_url; ?>static/images/sun.png" alt="天气" /></span>
                <b><?php echo $admin['username'];?>早上好，欢迎使用信息管理系统</b>
                <a href="<?php echo $base->get_url(array('c' => 'profile')); ?>">帐号设置</a>
            </div>

            <div class="welinfo">
                <span><img src="<?php echo $base_url; ?>static/images/time.png" alt="时间" /></span>
                <i>您上次登录的时间：<?php echo date('Y-m-d H:i', $admin['lasttime']);?></i> （不是您登录的？<a href="<?php echo $base->get_url(array('c' => 'main', 'm' => 'loginout')); ?>" target="_top">请点这里</a>）
            </div>

            <div class="xline"></div>
            
            <div class="welinfo" style="margin-top: 12px;">
                24小时活跃用户：<?php echo $todayAddUsers;?>人
                /
                总用户：<?php echo $totalUsers;?>人
                /
                24小时内活跃指数：<?php echo $todayIndex;?>%
            </div>
            
            <div class="welinfo" style="margin-top: 12px;">
                二维码总量：<?php echo $qrcodeTotal;?>个
                /
                个人二维码：<?php echo $qrcodePerson;?>个
                /
                有效微信群：<?php echo $qrcodeQun;?>个
            </div>
            
            <div class="welinfo" style="margin-top: 12px;">
                24小时内订单数：<?php echo $todayOrders;?>单
                /
                总订单数：<?php echo $totalOrders;?>单
            </div>
            
        </div>



    </body>

</html>
