<div id="maincon" class="analytics">
    <?php echo $menu; ?>
    
    <div id="rightcon">
        <div class="title"> <h2 class="edit">统计列表</h2></div>
        
        <?php if(!empty($list)):?>
        <div class="view_log_box clear">
            <table width="100%" border=0 cellpadding="0" cellspacing="0">
                <tr>
                    <th class="L30">序号</th>
                    <th>页面</th>
                    <th class="L30">网站</th>
                    <th class="L30">作者</th>
                    <th class="L30">订单</th>
                    <th class="L30">访问</th>
                </tr>
                
                <?php foreach($list as $key=>$value):?>
                    <tr>
                        <td><?php echo $key+1 ;?></td>
                        <td style="word-break:break-all">
                            <a title="<?php echo $value->p_title;?>" target="_blank" href="<?php echo $value->p_url;?>"><?php echo $value->p_url;?></a>
                        </td>
                        <td><?php echo $value->p_site_code;?></td>
                        <td>
                            <a href="<?php echo site_url('analytics?author='.$value->p_author); ?>">
                                <?php echo $value->p_author;?>
                            </a>
                        </td>
                        <td>
                            <a href="<?php echo site_url('analytics/order?url=' . urlencode($value->p_url)); ?>">
                                <?php echo $count[$value->p_id]; ?>
                            </a>
                        </td>
                        <td><?php echo $value->p_hits;?></td>
                    </tr>
                <?php endforeach;?>
            </table>      
            <p class="pages"><?php echo $pages;?> <span class="badge badge-success"><?php echo $count_all; ?> 条记录</span></a></p>
        </div>
        <?php else: ?>
            <p class="clear">数据不存在!</p>
         <?php endif;?>
    </div>   
    
    <div class="clear"></div>
</div>