温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:简单网站计数器统(单用户)源码
当前文件:
SimpleWebStat/StatByDay.aspx[4K,2009-6-12 11:54:10],打开代码结构图
SimpleWebStat/StatByDay.aspx[4K,2009-6-12 11:54:10],打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="StatByDay.aspx.cs" Inherits="StatByDay" %> 2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4
5
<html xmlns="http://www.w3.org/1999/xhtml" > 6
<head runat="server"> 7
<title>网站流量统计===按天统计用户访问量</title> 8
<link rel="Stylesheet" href="ASPNET2.0BaseCss.css" type="text/css" /> 9
</head> 10
<body> 11
<form id="form1" runat="server"> 12
<table class="GbText" style="BORDER-COLLAPSE: collapse; border-right: #ccccff thin solid; border-top: #ccccff thin solid; border-left: #ccccff thin solid; border-bottom: #ccccff thin solid;" borderColor="#93bee2" cellspacing="0" 13
cellpadding="2" width="100%" border="1"> 14
<tr> 15
<td colspan="2" style="background-color: #6699cc;"><font class="HeaderText">按天统计用户访问量</font></td> 16
</tr> 17
<tr> 18
<td> 19
请选择时间:<asp:DropDownList ID="YearList" runat="server"> 20
<asp:ListItem Value="0" Selected="True">2006</asp:ListItem> 21
<asp:ListItem Value="1">2007</asp:ListItem> 22
<asp:ListItem Value="2">2008</asp:ListItem> 23
<asp:ListItem Value="3">2009</asp:ListItem> 24
<asp:ListItem Value="4">2010</asp:ListItem> 25
<asp:ListItem Value="5">2011</asp:ListItem> 26
<asp:ListItem Value="6">2012</asp:ListItem> 27
<asp:ListItem Value="7">2013</asp:ListItem> 28
<asp:ListItem Value="8">2014</asp:ListItem> 29
<asp:ListItem Value="9">2015</asp:ListItem> 30
</asp:DropDownList>年<asp:DropDownList ID="MonthList" runat="server" AutoPostBack="True" OnSelectedIndexChanged="MonthList_SelectedIndexChanged"> 31
<asp:ListItem Value="0" Selected="True">1</asp:ListItem> 32
<asp:ListItem Value="1">2</asp:ListItem> 33
<asp:ListItem Value="2">3</asp:ListItem> 34
<asp:ListItem Value="3">4</asp:ListItem> 35
<asp:ListItem Value="4">5</asp:ListItem> 36
<asp:ListItem Value="5">6</asp:ListItem> 37
<asp:ListItem Value="6">7</asp:ListItem> 38
<asp:ListItem Value="7">8</asp:ListItem> 39
<asp:ListItem Value="8">9</asp:ListItem> 40
<asp:ListItem Value="9">10</asp:ListItem> 41
<asp:ListItem Value="10">11</asp:ListItem> 42
<asp:ListItem Value="11">12</asp:ListItem> 43
</asp:DropDownList>月</td> 44
</tr> 45
<tr> 46
<td colspan="2"> 47
<asp:GridView ID="StatView" runat="server" AutoGenerateColumns="False" Width="100%" CssClass="GbText" ShowFooter="True"> 48
<FooterStyle ForeColor="White" HorizontalAlign="Center" BackColor="#3B6BD1" Font-Bold="True"></FooterStyle> 49
<SelectedRowStyle Font-Bold="True" ForeColor="Navy" BackColor="#FFCC66" BorderColor="CornflowerBlue" /> 50
<RowStyle ForeColor="#333333" BackColor="#FFFBD6" BorderColor="CornflowerBlue" BorderStyle="Solid" BorderWidth="1px" /> 51
<HeaderStyle Font-Bold="True" ForeColor="#FFFFCC" CssClass="GbText" BackColor="#3B6BD1" HorizontalAlign="Left"></HeaderStyle> 52
<Columns> 53
<asp:TemplateField HeaderText="访问时间"> 54
<ItemTemplate> 55
<%# ((VisitStat)Container.DataItem).Name %> 56
</ItemTemplate> 57
<ItemStyle HorizontalAlign="Left" /> 58
<HeaderStyle Width="40%" /> 59
<FooterTemplate> 60
总计: 61
</FooterTemplate> 62
<FooterStyle HorizontalAlign="left" /> 63
</asp:TemplateField> 64
<asp:TemplateField HeaderText="访问次数"> 65
<ItemTemplate> 66
<%# ((VisitStat)Container.DataItem).Number %> 67
</ItemTemplate> 68
<ItemStyle HorizontalAlign="Center" /> 69
<HeaderStyle Width="15%" HorizontalAlign="Center" /> 70
<FooterTemplate> 71
<%=total%> 72
</FooterTemplate> 73
</asp:TemplateField> 74
<asp:TemplateField HeaderText="百分比"> 75
<ItemTemplate> 76
<%# ((VisitStat)Container.DataItem).Percent %>% 77
</ItemTemplate> 78
<ItemStyle HorizontalAlign="Center" /> 79
<HeaderStyle Width="15%" HorizontalAlign="Center" /> 80
</asp:TemplateField> 81
</Columns> 82
<AlternatingRowStyle BorderColor="CornflowerBlue" BackColor="White" BorderStyle="Solid" BorderWidth="1px" /> 83
<PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" /> 84
<EditRowStyle BorderColor="CornflowerBlue" BorderWidth="1px" /> 85
</asp:GridView> 86
</td> 87
</tr> 88
</table> 89
</form> 90
<a href="http://www.51aspx.com">DownLoad From 51aspx</a> 91
</body> 92
</html> 93




