<div id="maincon" class="analytics">
    <?php echo $menu; ?>
    
    <div id="rightcon">
        <div class="title"> <h2 class="edit">首访页面订单列表</h2></div>
        
        <p class="clear"><strong>首访页面: </strong> <a href="<?php echo $page->p_url; ?>" target="_blank"><?php echo $page->p_url; ?></a><br/></p>
        <p><strong>作者: </strong> <?php echo $page->p_author; ?></p>
        
        <div class="view_log_box">
            <table width="100%" border=0 cellpadding="0" cellspacing="0">
                <tr>
                    <th class="L30">序号</th>
                    <th>来源页面</th>
                    <th>查看访客记录</th>
                    <th class="L30">订单号</th>
                    <th class="L60">访问时间</th>
                </tr>
                <?php if(isset($list)):?>
                    <?php foreach($list as $key=>$value):?>
                    <tr>
                        <td><?php echo $key+1 ;?></td>
                        <td><a target="_blank" href="<?php echo $value->v_referer_url;?>"><?php echo $value->v_referer_url;?></a></td>
                        <td><a target="_blank" href="<?php echo site_url('analytics/history/'.$value->v_id);?>"> <?php echo $value->v_site_code . " - 访客" . $value->v_id;?></a></td>
                        <td>
                            <?php if (!empty($value->v_order_num)): ?>
                                <a target="_blank" href="<?php echo site_url('analytics/order_detail/'.$value->v_order_num); ?>"><?php echo $value->v_order_num; ?></a>
                            <?php else: ?>
                                -- --
                            <?php endif; ?>
                        </td>
                        <td><?php echo date('Y-m-d H:i:s',$value->v_datetime);?></td>
                    </tr>
                    <?php endforeach;?>
                <?php endif;?>
            </table>
        </div>
        
    </div>
    <div class="clear"></div>
</div>