<div id="maincon" class="analytics">
    <?php echo $menu; ?>
    
    <div id="rightcon">
        <div class="title"> <h2 class="edit">访客 <?php echo $visit->v_site_code . '_' .$visit->v_id; ?> 的访问记录</h2></div>
        <div class="view_log_box clear">
            <table width="100%" border=0 cellpadding="0" cellspacing="0">
                <thead></thead>
                <tbody>
                    <tr>
                        <td>网站:</td>
                        <td><?php echo $visit->v_site_code; ?></td>
                    </tr>
                    <tr>
                        <td>IP:</td>
                        <td><?php echo $visit->v_user_ip; ?></td>
                    </tr>
                    <tr>
                        <td>访问记录:</td>
                        <td>
                            <ol>
                                <?php if(isset($history)):?>
                                    <?php foreach($history as $h):?>
                                        <li>
                                            <p><strong>地址:</strong> <a href="<?php echo $h->p_url; ?>" target="_blank"><?php echo $h->p_url; ?> - ( 作者: <?php echo $h->p_author; ?> )</a></p>
                                            <p><strong>时间: </strong> <?php echo date('Y-m-d H:i:s',$h->h_datetime); ?></p>
                                        </li>
                                    <?php endforeach;?>
                                <?php endif;?>
                            </ol>
                        </td>
                    </tr>
                </tbody>

            </table>
        </div>
    </div>   
    
    <div class="clear"></div>
</div>