<%@ Page Language="C#" AutoEventWireup="true" Inherits="EoyooCMS.ManageCode.Data_VisitSite" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>整站访问数据</title>
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <script type="text/javascript" src="Script/Jquery.js"></script>
    <script type="text/javascript" src="Script/Common.js"></script>
    <script type="text/javascript" src="Script/Data_VisitSite.js"></script>
    <link href="Style/Iframe.css" rel="stylesheet" type="text/css" />
    <script src="Plugin/Calendar/Calendar.js" type="text/javascript"></script>
</head>
<body>
<div class="wrapper-div">

<!-- 弹出框 -->
<div id="ouBox" class="ouBox">
    <a class="close" title="关闭" href="#"></a>
    <div class="content"></div>
</div>
<!-- end 弹出框 -->

	<!-- 产品订单列表管理 -->
        <!-- 标 -->
            <div class="title-tab">
            <div class="title"><span class="title-ico titico5 F B">整站访问统计</span></div>           
            </div>
        <!-- end 标 -->
        
         <div class="clear-8"></div>

        
        <!-- 通用table -->
        <table class="table-2">
            <tbody>
            	<tr>
                    <td width="100" class="item text_center">整站访客总:</td>
                    <td class="text_left"><%=allip %></td>
                    <td width="100" class="item text_center">整站访问总:</td>
                    <td class="text_left"><%=allpv %></td>
                </tr>
            	<tr>
                    <td width="100" class="item text_center">今日访客:</td>
                    <td class="text_left"><%=todayip %></td>
                    <td width="100" class="item text_center">今日访问:</td>
                    <td class="text_left"><%=todaypv %></td>
                </tr>
            	<tr>
                    <td width="100" class="item text_center">昨日访客:</td>
                    <td class="text_left"><%=yesterdayip%></td>
                    <td width="100" class="item text_center">昨日访问:</td>
                    <td class="text_left"><%=yesterdaypv %></td>
                </tr>
            </tbody>
        </table>
        <!-- end 通用table -->

        <!-- 标 -->
            <div class="title-tab">
            <div class="title"><span class="title-ico titico10 F B">整站访问查询</span></div>           
            </div>
        <!-- end 标 -->
        <div class="clear-8"></div>
        <span class="tbox_form">
            <input type="text" value="<%=starttime %>" id="start_time" name="start_time" class="isNull isTime input162 date m_right6" /> 至
            <input type="text" value="<%=endtime %>" id="end_time" name="end_time" class="isNull isTime date input162 m_right6" />
        </span> 
        <a href="#" id="search_Btn" rel="<%=getFormUrl %>" class="bule-btn W f_left text_centent">时间查询</a>
           
        <div class="clear-8"></div>
<!-- 通用table -->
        <table class="table-1">
        	<thead>
            	<tr>
                	<th width="22%" class="text_left">访问ip</th>
                    <th width="20%" class="text_left">访问页面</th>
                    <th width="20%" class="text_center">访问时间</th>
                    <th width="20%" class="text_center">最后活动时间</th>
                    <th width="10%" class="text_center">访问次数</th>
                    <th width="8%">操作</th>
                </tr>
            </thead>
            <tbody id="Jquery_Tbody">
            	<%if (_visitListDat.Rows.Count > 0) %>
            <%{ %>
                <%for (int i = 0; i < _visitListDat.Rows.Count; i++) %>
                <%{ %>
            	<tr>
                    <td class="text_left">
                        <span class="V">[<%=getIpCity(_visitListDat.Rows[i]["ip"].ToString())%>]</span> <span class="X Size9"><%=_visitListDat.Rows[i]["ip"].ToString()%></span>
					</td>
                    <td class="text_left">
                        <span class="V"><%=_visitListDat.Rows[i]["pageurl"].ToString()%></span>
                    </td>
                    <td>
                    	<span class="G">(<%=getTime1(_visitListDat.Rows[i]["addtime"].ToString())%>)</span><br />
                            <span class="V Size9"><%=getTime2(_visitListDat.Rows[i]["addtime"].ToString())%></span>
                    </td>
                    <td>
                    	<span class="G">(<%=getTime1(_visitListDat.Rows[i]["updatetime"].ToString())%>)</span><br />
                            <span class="V Size9"><%=getTime2(_visitListDat.Rows[i]["updatetime"].ToString())%></span>
                    </td>
                    <td>
                        <span class="R"><%=_visitListDat.Rows[i]["number"].ToString()%></span>
                    </td>
                    <td>
                    
                        <a href="<%=_visitListDat.Rows[i]["id"].ToString()%>" rel="intro" rev="<%=_visitListDat.Rows[i]["id"].ToString()%>" class="F underline">[访客明细]</a><br />
                        <a href="<%=_visitListDat.Rows[i]["id"].ToString() %>" rel="del"  class="R underline">[删除]</a>
                    </td>
                </tr>
                <%} %>
            <%}else{ %>
            <tr>
            <td  colspan="6" class="text_left"><span class="V">暂无访问</span></td>
            </tr>
            <%} %>
            </tbody>
            <tfoot>
            	<tr>
                    <th width="100%" colspan="6" class="text_right">
                    <div class="clear-8"></div>
                    <p class="PageBox">
                    	<%=getPagesInfo %>
                    </p>
                    <div class="clear-16"></div>
                    </th>
                </tr>
            </tfoot>
        </table>
        <!-- end 通用table -->

    <!-- end 文章列表管理 -->
</div>

</body>
</html>
