<?php

/*
 * ----------------------------------------------------
 * 程序名称: 牛叉广告管理系统(NiuXams)
 * 程序功能: 实现专业的广告投放、管理和统计等管理系统！
 * 程序开发: 牛叉软件(NiuXSoft.com)
 * 版权所有: [NiuXams] (C)2013-2099 NiuXSoft.com
 * 官方网站: www.niuxsoft.com  Email: niuxsoft@163.com
 * ----------------------------------------------------
 * 使用条款:
 * 1.为构建创新型经济社会,请尊重保护知识产权！
 * 2.该软件个人非商业用途免费使用.
 * 3.免费使用禁止修改版权信息和官方推广链接.
 * 4.禁止任何衍生版本.禁止任何非法修改源代码贩卖.
 * ----------------------------------------------------
 */

defined('NIUX_INCLUDED') or exit('Access Denied.');

require './mo_head.php';
?>
<style>
    .list th{
        border-width:0px 1px 0px 0px;
        font-size:1.2em;
        line-height:2em;
    }
    .ui-tooltip{
        min-width: 4.4em;
        max-width: 64em;
        word-break: break-all;
    }
    .listtable tr{
        vertical-align: bottom;
    }
    .listtable th.left{
        width: 4%;
        border-right: 1px solid; 
        text-align: right; 
        vertical-align: middle;
    }
    .listtable th.leftup{
        text-align: right;
        vertical-align: bottom;
        line-height: 1em
    }
    .listtable td{
        width: 4%;
        height: 200px;
        border-bottom: 1px solid;
        line-height: 1em
    }
</style>
<div class="fullScreen">
    <h2 class="ptb hd ui-widget-content"><?php echo $title . '：' . date("Y-m-d"); ?></h2>

    <div class="plr ptb">
        <p>
            <strong>独立访客数：</strong><?php echo $num_UV ?>（人） 其中 
            <strong>新访客数：</strong><?php echo $num_NUV ?>（人）
            <strong>老访客数：</strong><?php echo $num_UV - $num_NUV ?>（人）。
            <strong>独立IP数：</strong><?php echo $num_IP ?>（个）
        </p>
    </div>
    <div class="plr ptb">
        <p>
            <strong>广告投放页面数：</strong><?php echo $num_P ?>（页）
            <strong>页面浏览量：</strong><?php echo $num_PV ?>（次）
            <strong>展示广告数：</strong><?php echo $num_SHOW ?>（次）。
            <strong>页面广告率：</strong><?php echo round($num_SHOW / ($num_PV ? $num_PV : 1), 2) ?>（广告/页）
            <strong>访客页面率：</strong><?php echo round($num_PV / ($num_UV ? $num_UV : 1), 2) ?>（页/人）
            <strong>访客广告率：</strong><?php echo round($num_SHOW / ($num_UV ? $num_UV : 1), 2) ?>（广告/人）
        </p>
    </div>
    <div class="plr ptb">
        <p>
            <strong>异常广告页面浏览量：</strong><?php echo $num_NPV ?>（页）
            <strong>异常广告数：</strong>>= <?php echo $num_NSHOW ?>（次）。
            <strong>异常广告率：</strong><?php echo round($num_NPV / ($num_PV ? $num_PV : 1), 4) * 100 ?>%
        </p>
    </div>
    <div class="plr ptb">
        <p>
            <strong>广告点击数：</strong><?php echo $num_CK ?>（次）。
            <strong>广告点击率：</strong><?php echo round($num_CK / ($num_SHOW ? $num_SHOW : 1), 4) * 100 ?>%（点击/广告）
            <strong>访客点击率：</strong><?php echo round($num_CK / ($num_UV ? $num_UV : 1), 4) * 100 ?>%（点击/访客）
        </p>
    </div>

    <div class="ui-widget-content">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="50%" valign="top">
                    <table class="list" width="100%" border="0" cellspacing="1" cellpadding="1">
                        <tr>
                            <th class="ui-widget-header" scope="col">页面展现 TOP 10</th>
                            <th class="ui-widget-header" scope="col" style="width: 5em;">数量</th>
                        </tr>
                        <?php echo $top_ur_s ?>
                    </table>
                </td><td width="50%" valign="top">
                    <table class="list" width="100%" border="0" cellspacing="1" cellpadding="1">
                        <tr>
                            <th class="ui-widget-header" scope="col">页面点击 TOP 10</th>
                            <th class="ui-widget-header" scope="col" style="width: 5em;">数量</th>
                        </tr>
                        <?php echo $top_ur_c ?>
                    </table>
                </td>
            </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="50%" valign="top">
                    <table class="list" width="100%" border="0" cellspacing="1" cellpadding="1">
                        <tr>
                            <th class="ui-widget-header" scope="col">来源展现 TOP 10</th>
                            <th class="ui-widget-header" scope="col" style="width: 5em;">数量</th>
                        </tr>
                        <?php echo $top_fr_s ?>
                    </table>
                </td><td width="50%" valign="top">
                    <table class="list" width="100%" border="0" cellspacing="1" cellpadding="1">
                        <tr>
                            <th class="ui-widget-header" scope="col">来源点击 TOP 10</th>
                            <th class="ui-widget-header" scope="col" style="width: 5em;">数量</th>
                        </tr>
                        <?php echo $top_fr_c ?>
                    </table>
                </td>
            </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="50%" valign="top">
                    <table class="list" width="100%" border="0" cellspacing="1" cellpadding="1">
                        <tr>
                            <th class="ui-widget-header" scope="col">广告位展现 TOP 10</th>
                            <th class="ui-widget-header" scope="col" style="width: 5em;">数量</th>
                        </tr>
                        <?php echo $top_ggw_s ?>
                    </table>
                </td><td width="50%" valign="top">
                    <table class="list" width="100%" border="0" cellspacing="1" cellpadding="1">
                        <tr>
                            <th class="ui-widget-header" scope="col">广告位点击 TOP 10</th>
                            <th class="ui-widget-header" scope="col" style="width: 5em;">数量</th>
                        </tr>
                        <?php echo $top_ggw_c ?>
                    </table>
                </td>
            </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="50%" valign="top">
                    <table class="list" width="100%" border="0" cellspacing="1" cellpadding="1">
                        <tr>
                            <th class="ui-widget-header" scope="col">广告展现 TOP 10</th>
                            <th class="ui-widget-header" scope="col" style="width: 5em;">数量</th>
                        </tr>
                        <?php echo $top_gg_s ?>
                    </table>
                </td><td width="50%" valign="top">
                    <table class="list" width="100%" border="0" cellspacing="1" cellpadding="1">
                        <tr>
                            <th class="ui-widget-header" scope="col">广告点击 TOP 10</th>
                            <th class="ui-widget-header" scope="col" style="width: 5em;">数量</th>
                        </tr>
                        <?php echo $top_gg_c ?>
                    </table>
                </td>
            </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="50%" valign="top">
                    <table class="list" width="100%" border="0" cellspacing="1" cellpadding="1">
                        <tr>
                            <th class="ui-widget-header" scope="col">屏幕展现 TOP 10</th>
                            <th class="ui-widget-header" scope="col" style="width: 5em;">数量</th>
                        </tr>
                        <?php echo $top_sc_s ?>
                    </table>
                </td><td width="50%" valign="top">
                    <table class="list" width="100%" border="0" cellspacing="1" cellpadding="1">
                        <tr>
                            <th class="ui-widget-header" scope="col">屏幕点击 TOP 10</th>
                            <th class="ui-widget-header" scope="col" style="width: 5em;">数量</th>
                        </tr>
                        <?php echo $top_sc_c ?>
                    </table>
                </td>
            </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="50%" valign="top">
                    <table class="list" width="100%" border="0" cellspacing="1" cellpadding="1">
                        <tr>
                            <th class="ui-widget-header" scope="col">浏览器展现 TOP 10</th>
                            <th class="ui-widget-header" scope="col" style="width: 5em;">数量</th>
                        </tr>
                        <?php echo $top_b_s ?>
                    </table>
                </td><td width="50%" valign="top">
                    <table class="list" width="100%" border="0" cellspacing="1" cellpadding="1">
                        <tr>
                            <th class="ui-widget-header" scope="col">浏览器点击 TOP 10</th>
                            <th class="ui-widget-header" scope="col" style="width: 5em;">数量</th>
                        </tr>
                        <?php echo $top_b_c ?>
                    </table>
                </td>
            </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="50%" valign="top">
                    <table class="list" width="100%" border="0" cellspacing="1" cellpadding="1">
                        <tr>
                            <th class="ui-widget-header" scope="col">操作系统展现 TOP 10</th>
                            <th class="ui-widget-header" scope="col" style="width: 5em;">数量</th>
                        </tr>
                        <?php echo $top_os_s ?>
                    </table>
                </td><td width="50%" valign="top">
                    <table class="list" width="100%" border="0" cellspacing="1" cellpadding="1">
                        <tr>
                            <th class="ui-widget-header" scope="col">操作系统点击 TOP 10</th>
                            <th class="ui-widget-header" scope="col" style="width: 5em;">数量</th>
                        </tr>
                        <?php echo $top_os_c ?>
                    </table>
                </td>
            </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="50%" valign="top">
                    <table class="list" width="100%" border="0" cellspacing="1" cellpadding="1">
                        <tr>
                            <th class="ui-widget-header" scope="col">语言展现 TOP 5</th>
                            <th class="ui-widget-header" scope="col" style="width: 5em;">数量</th>
                        </tr>
                        <?php echo $top_la_s ?>
                    </table>
                </td><td width="50%" valign="top">
                    <table class="list" width="100%" border="0" cellspacing="1" cellpadding="1">
                        <tr>
                            <th class="ui-widget-header" scope="col">语言点击 TOP 5</th>
                            <th class="ui-widget-header" scope="col" style="width: 5em;">数量</th>
                        </tr>
                        <?php echo $top_la_c ?>
                    </table>
                </td>
            </tr>
        </table>
    </div>

    <div class="plr ptb ui-widget-header ui-corner-all">今日小时统计</div>
    <div class="plr ptb ui-widget-content ui-corner-all">
        <table class="listtable" width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <th scope="col" class="leftup"><?php echo $max_UV ?>_</th>
                <th colspan="24" scope="col"><span class="ui-state-error">&nbsp;&nbsp;&nbsp;&nbsp;</span>独立访客数</th>
            </tr>
            <tr>
                <th scope="row" class="left"><?php echo ceil($max_UV / 2) ?>-</th>
                <?php echo $list_UV ?>
            </tr>
            <tr>
                <th scope="col">&nbsp;</th>
                <th scope="col">0</th>
                <th scope="col">1</th>
                <th scope="col">2</th>
                <th scope="col">3</th>
                <th scope="col">4</th>
                <th scope="col">5</th>
                <th scope="col">6</th>
                <th scope="col">7</th>
                <th scope="col">8</th>
                <th scope="col">9</th>
                <th scope="col">10</th>
                <th scope="col">11</th>
                <th scope="col">12</th>
                <th scope="col">13</th>
                <th scope="col">14</th>
                <th scope="col">15</th>
                <th scope="col">16</th>
                <th scope="col">17</th>
                <th scope="col">18</th>
                <th scope="col">19</th>
                <th scope="col">20</th>
                <th scope="col">21</th>
                <th scope="col">22</th>
                <th scope="col">23</th>
            </tr>
        </table>
    </div>

    <div class="plr ptb ui-widget-content ui-corner-all">
        <table class="listtable" width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <th scope="col" class="leftup"><?php echo $max_SHOW ?>_</th>
                <th colspan="24" scope="col"><span class="ui-state-error">&nbsp;&nbsp;&nbsp;&nbsp;</span>广告展示数</th>
            </tr>
            <tr>
                <th scope="row" class="left"><?php echo ceil($max_SHOW / 2) ?>-</th>
                <?php echo $list_SHOW ?>
            </tr>
            <tr>
                <th scope="col">&nbsp;</th>
                <th scope="col">0</th>
                <th scope="col">1</th>
                <th scope="col">2</th>
                <th scope="col">3</th>
                <th scope="col">4</th>
                <th scope="col">5</th>
                <th scope="col">6</th>
                <th scope="col">7</th>
                <th scope="col">8</th>
                <th scope="col">9</th>
                <th scope="col">10</th>
                <th scope="col">11</th>
                <th scope="col">12</th>
                <th scope="col">13</th>
                <th scope="col">14</th>
                <th scope="col">15</th>
                <th scope="col">16</th>
                <th scope="col">17</th>
                <th scope="col">18</th>
                <th scope="col">19</th>
                <th scope="col">20</th>
                <th scope="col">21</th>
                <th scope="col">22</th>
                <th scope="col">23</th>
            </tr>
        </table>
    </div>

    <div class="plr ptb ui-widget-content ui-corner-all">
        <table class="listtable" width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <th scope="col" class="leftup"><?php echo $max_CK ?>_</th>
                <th colspan="24" scope="col"><span class="ui-state-error">&nbsp;&nbsp;&nbsp;&nbsp;</span>广告点击数</th>
            </tr>
            <tr>
                <th scope="row" class="left"><?php echo ceil($max_CK / 2) ?>-</th>
                    <?php echo $list_CK ?>
            </tr>
            <tr>
                <th scope="col">&nbsp;</th>
                <th scope="col">0</th>
                <th scope="col">1</th>
                <th scope="col">2</th>
                <th scope="col">3</th>
                <th scope="col">4</th>
                <th scope="col">5</th>
                <th scope="col">6</th>
                <th scope="col">7</th>
                <th scope="col">8</th>
                <th scope="col">9</th>
                <th scope="col">10</th>
                <th scope="col">11</th>
                <th scope="col">12</th>
                <th scope="col">13</th>
                <th scope="col">14</th>
                <th scope="col">15</th>
                <th scope="col">16</th>
                <th scope="col">17</th>
                <th scope="col">18</th>
                <th scope="col">19</th>
                <th scope="col">20</th>
                <th scope="col">21</th>
                <th scope="col">22</th>
                <th scope="col">23</th>
            </tr>
        </table>
    </div>
</div>
<?php
require './mo_foot.php';

