<?php defined('InShopNC') or exit('Access Invalid!'); ?>

<!—日常统计分析—>
<div class="page">
    <!— 页面导航 —>
    <div class="fixed-bar">
        <div class="item-title">
            <h3>日常统计</h3>
            <ul class="tab-base">
                <li><a href="javascript:void(0)" class="current"><span>日常统计</span></a></li>
                <li><a href="index.php?act=stat_daily&op=interactive_list"><span>交互行为统计</span></a></li>
                <li><a href="index.php?act=stat_daily&op=interactive_goods"><span>商品统计</span></a></li>
                <li><a href="index.php?act=stat_daily&op=interactive_special"><span>专题统计</span></a></li>
            </ul>
        </div>
    </div>
    <!— 帮助 —>
    <table class="table tb-type2" id="prompt">
        <tbody>
        <tr class="space odd">
            <th colspan="12" class="nobg">
                <div class="title nomargin">
                    <h5><?php echo $lang['nc_prompts']; ?></h5>
                    <span class="arrow"></span></div>
            </th>
        </tr>
        <tr>
            <td>
                <ul>
                    <li>可以查询红包日常相关统计信息</li>
                    <li>点击项目可以查看各项具体信息</li>
                </ul>
            </td>
        </tr>
        </tbody>
    </table>

    <form method="post">
        <table class="table tb-type2">
            <thead>
            <tr class="space">
                <th colspan="15" class="nobg"><?php echo $lang['nc_list']; ?></th>
            </tr>
            <tr class="thead">
                <?php
                    $colomns = $output['colomns'];
                    foreach ($colomns as $name) {
                        echo "<th class=\"w60 align-left\">{$name}</th>";
                    }
                ?>
            </tr>
            </thead>
            <tbody>
                <?php
                    $dailies = $output['dailies'];
                    foreach ($dailies as $stat)
                    {
                        $item = new daily_item($stat);
                        $fields = $item->fields();

                        echo '<tr class="hover">';
                        foreach ($fields as $field) {
                            echo  "<td class=\"w60 align-left\">{$field}</td>";
                        }
                        echo '</tr>';
                    }
                ?>
            </tbody>
            <tfoot>
            <tr class="tfoot">
                <td colspan="16">
                    <div class="pagination"><?php echo $output['page']; ?> </div>
                </td>
            </tr>
            </tfoot>
        </table>
    </form>
</div>