<%@ Page Title="" Language="C#" MasterPageFile="~/v/ST.Master" EnableViewState="false" AutoEventWireup="true" CodeBehind="Main.aspx.cs" Inherits="Stat.web.v.Main1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="CSS/Main.css" rel="stylesheet" type="text/css" />
    <script src="../StatCharts/StatCharts.js" type="text/javascript"></script>
    <script type="text/javascript">
      $(document).ready(function(){      
         var webid=$("#hdfWebid").val();
         $.get("/MyAJAX/HdfDayTask.ashx",{webid:webid});         
         $.get("/MyAJAX/HdfDayRank.ashx?webid="+webid,callBack);         
       });  
       function callBack(data){$("#webrank").html(data);}
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpTop" runat="server">
<div style="margin-top: 5px;">
   当前位置：统计概况
</div>
<div style="margin-top: 15px;">
<span class="M_r_ti">统计概况</span>
</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cpMSG" runat="server">
<span class="M_b14">小贴士：</span>[历史数据]与[平均数据]中不包含[今日数据]。[今日数据]为系统动态估算值，与真实数据略有差异，确切数据等零晨后列出
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="cpMain" runat="server">
<div class="Site_Info" style="margin-top:10px;">
<span style="float:left">
<input name="hdfWebid" type="hidden" id="hdfWebid" value="<%=website[0].WebId%>" />
站点：<%=website[0].WebName%> &nbsp;<a href="<%=website[0].WebUrl%>" target="_blank"><%=website[0].WebUrl%></a>（开始统计时间：<%=website[0].AddTime.ToLongDateString()%>）共（<%=ViewTop.DaySum%>）天</span>
<span style="float:right">昨日PV排名：<span id="webrank">0</span>&nbsp;&nbsp;</span>
</div>
<div class="M_r_ti2"><a onclick="Ctshow('Ctfolder1',1);" style="cursor: pointer"><span class="Stat_Img"><img src="images/icng_on.gif" id="Ctimg1" border="0"></span>&nbsp;访问量概况</a><span style="font-size:10px; color:Gray">&nbsp;( 注：单击前面 "黑三角" 可 "展开" 或 "折叠")</span></div>
<div  style="margin-top:20px;" id="Ctfolder1">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style=" text-indent:10px;">
  <tr>
    <td width="10%" height="25">&nbsp;</td>
    <td width="14%" class="M_b14">PV</td>
    <td width="14%" class="M_b14">IP</td>
    <td width="14%" class="M_b14">独立访客</td>
    <td width="14%" class="M_b14">新访客</td>
    <td width="14%" class="M_b14">来访次数</td>
    <td width="10%" class="M_b14">回访次数</td>
    <td width="*" class="M_b14">人均PV</td>
  </tr>
  <tr>
    <td height="30" bgcolor="#EEF5FF" class="M_b14">今&nbsp;&nbsp;&nbsp;日：</td>
    <td bgcolor="#EEF5FF" ><a href="Vpage.aspx?wid=<%=website[0].WebId%>"><span class="M_Redb14"><%=tdViewModel.pvCount%></span></a></td>
    <td bgcolor="#EEF5FF" ><a href="vIP.Aspx?wid=<%=website[0].WebId%>"><span class="M_Redb14"><%=tdViewModel.ipCount%></span></a></td>
    <td bgcolor="#EEF5FF" class="M_Redb14"><%=tdViewModel.cusCount%></td>
    <td bgcolor="#EEF5FF" class="M_Redb14"><%=tdViewModel.newCount%></td>
    <td bgcolor="#EEF5FF" class="M_Redb14"><%=tdViewModel.timCount%></td>
    <td bgcolor="#EEF5FF" class="M_Redb14"><%=tdViewModel.otimCount%></td>
    <td bgcolor="#EEF5FF" class="M_Redb14"><%=tdViewModel.AVG.ToString("0.00")%></td>
  </tr>
  <tr>
    <td height="30" bgcolor="#EEF5FF" class="M_b14">昨&nbsp;&nbsp;&nbsp;日：</td>
    <td bgcolor="#EEF5FF"><a href="Vpage.aspx?wid=<%=website[0].WebId%>&st=<%=DateTime.Now.AddDays(-1).ToShortDateString()%>&et=<%=DateTime.Now.AddDays(-1).ToShortDateString() %>"><span class="M_Redb14"><%=ydViewModel.pvCount%></span></a></td>
    <td bgcolor="#EEF5FF"><a href="vIp.aspx?wid=<%=website[0].WebId%>&st=<%=DateTime.Now.AddDays(-1).ToShortDateString()%>&et=<%=DateTime.Now.AddDays(-1).ToShortDateString() %>"><span class="M_Redb14"><%=ydViewModel.ipCount%></span></a></td>
    <td bgcolor="#EEF5FF" class="M_Redb14"><%=ydViewModel.cusCount%></td>
    <td bgcolor="#EEF5FF" class="M_Redb14"><%=ydViewModel.newCount%></td>
    <td bgcolor="#EEF5FF" class="M_Redb14"><%=ydViewModel.timCount%></td>
    <td bgcolor="#EEF5FF" class="M_Redb14"><%=ydViewModel.otimCount%></td>
    <td bgcolor="#EEF5FF" class="M_Redb14"><%=ydViewModel.AVG.ToString("0.00")%></td>
  </tr>
  <tr>
    <td height="30">平均每日：</td>
    <td class="M_b14"><%=(ViewTop.PVtop / ViewTop.DaySum).ToString("0.0")%></td>
    <td class="M_b14"><%=(ViewTop.IPtop / ViewTop.DaySum).ToString("0.0")%></td>
    <td class="M_b14"><%=(ViewTop.UVtop / ViewTop.DaySum).ToString("0.0")%></td>
    <td class="M_b14"><%=(ViewTop.NuvTop / ViewTop.DaySum).ToString("0.0")%></td>
    <td class="M_b14"><%=(ViewTop.timeTop / ViewTop.DaySum).ToString("0.0")%></td>
    <td class="M_b14"><%=(ViewTop.otimeTop / ViewTop.DaySum).ToString("0.0")%></td>
     <td>-</td>
  </tr>
  <tr>
    <td height="30">历史最高：</td>
    <td><a href="Vpage.aspx?wid=<%=website[0].WebId%>&st=<%=ViewTop.PVtime.ToShortDateString()%>&et=<%=ViewTop.PVtime.ToShortDateString() %>"><strong><%=ViewTop.PVtop%></strong></a>(<%=ViewTop.PVtime.ToShortDateString()%>)</td>
    <td><a href="vIP.aspx?wid=<%=website[0].WebId%>&st=<%=ViewTop.IPtime.ToShortDateString()%>&et=<%=ViewTop.IPtime.ToShortDateString() %>"><strong><%=ViewTop.IPtop%></strong></a>(<%=ViewTop.IPtime.ToShortDateString()%>)</td>
    <td><strong><%=ViewTop.UVtop%></strong>(<%=ViewTop.UVtime.ToShortDateString()%>)</td>
    <td><strong><%=ViewTop.NuvTop%></strong>(<%=ViewTop.NuvTime.ToShortDateString()%>)</td>
    <td><strong><%=ViewTop.timeTop%></strong>(<%=ViewTop.timeTime.ToShortDateString()%>)</td>
    <td><strong><%=ViewTop.otimeTop%></strong></td>
    <td>-</td>
  </tr>
  <tr>
    <td height="30">历史累计：</td>
    <td><a href="Vpage.aspx?wid=<%=website[0].WebId%>&st=<%=website[0].AddTime.ToShortDateString()%>&et=<%=DateTime.Now.AddDays(-1).ToShortDateString() %>"><span class="M_b14"><%=ViewTop.pvCount%></span></a></td>
    <td><a href="vIP.aspx?wid=<%=website[0].WebId%>&st=<%=website[0].AddTime.ToShortDateString()%>&et=<%=DateTime.Now.AddDays(-1).ToShortDateString() %>"><span class="M_b14"><%=ViewTop.ipCount%></span></a></td>
    <td class="M_b14"><%=ViewTop.uvCount%></td>
    <td class="M_b14"><%=ViewTop.nuvCount%></td>
    <td class="M_b14"><%=ViewTop.timeCount%></td>
    <td class="M_b14"><%=ViewTop.otimeCount%></td>
    <td class="M_b14"><%=(ViewTop.pvCount /(ViewTop.uvCount==0?1:ViewTop.uvCount)).ToString("0.0")%></td>
  </tr>
</table>
</div>

<div class="M_r_ti2" style="margin-top:10px;">
<a onclick="Ctshow('Ctfolder2',2);" style="cursor: pointer; margin-top:5px;">
<span ><img src="images/icng_on.gif" id="Ctimg2" border="0"></span><span class="M_b14">&nbsp;最近24+1小时流量趋势</span></a>
</div>
<div class="zj24Box" id="Ctfolder2">
<asp:Literal ID="Near24H" runat="server"></asp:Literal>


</div> 
</asp:Content>
