<%@ Page language="c#" Inherits="WebApplication2.adv_one_detail" CodeFile="adv_one_detail.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>adv_one_detail</title>
		<LINK title="win2k-cold-1" media="all" href="calendar-win2k-cold-1.css" type="text/css"
			rel="stylesheet">
		<script src="js/calendar.js" type="text/javascript"></script>
		<script src="js/calendar-zh.js" type="text/javascript"></script>
		<script src="js/calendar-setup.js" type="text/javascript"></script>
		<LINK href="adminstyle.css" rel="stylesheet">
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<FONT face="宋体">
				<TABLE id="Table1" cellSpacing="0" cellPadding="0" width="98%" border="0">
					<TR>
						<TD bgColor="#fafff7" style="WIDTH: 194px; HEIGHT: 27px" align="right"><asp:label id="lb2" Runat="server"> 请选择广告</asp:label></TD>
						<TD align="left" bgColor="#fafff7" style="WIDTH: 734px"><asp:panel id="pl4" Runat="server">
								<asp:dropdownlist id="DropDownList1" runat="server"></asp:dropdownlist>
							</asp:panel><asp:panel id="pl5" Runat="server" Visible="False" Width="100%">
								<asp:TextBox id="TexBox1" Runat="server"></asp:TextBox>
							</asp:panel></TD>
						<TD style="WIDTH: 60px; HEIGHT: 27px" vAlign="bottom"><asp:imagebutton id="ImageButton1" runat="server" Width="72px" ImageUrl="img/未标题1.gif"></asp:imagebutton></TD>
						<TD style="WIDTH: 1px; HEIGHT: 27px" vAlign="bottom"><asp:imagebutton id="ImageButton2" runat="server" Width="72px" ImageUrl="img/未标题-2.gif"></asp:imagebutton></TD>
						<td vAlign="bottom" colSpan="1" style="HEIGHT: 27px"><asp:imagebutton id="Imagebutton3" runat="server" Width="72px" ImageUrl="img/未标题-3.gif"></asp:imagebutton></td>
					</TR>
					<TR>
						<TD align="center" bgColor="#66cc00" colSpan="5" height="25"><asp:label id="Label1" Runat="server" ForeColor="Blue"></asp:label></TD>
					</TR>
					<TR>
						<TD style="WIDTH: 830px" bgColor="#fafff7" colSpan="5"><asp:panel id="pl1" Runat="server" Width="100%"><INPUT id="begdate" style="WIDTH: 80px" type="text" name="begdate" runat="server"><INPUT onclick="return showCalendar('begdate', 'y-m-d');" type="reset" value="选择">至 
      <INPUT id="enddate" style="WIDTH: 80px" type="text" name="enddate" runat="server"><INPUT onclick="return showCalendar('enddate', 'y-m-d');" type="reset" value="选择"> 
<asp:CheckBox id="CheckBox1" runat="server" AutoPostBack="True" Text="今日统计" oncheckedchanged="CheckBox1_CheckedChanged"></asp:CheckBox>&nbsp;&nbsp; 
<asp:CheckBox id="checkbox2" Runat="server" AutoPostBack="True" Text="显示时段" oncheckedchanged="checkbox2_CheckedChanged"></asp:CheckBox>
<asp:Button id="Button1" tabIndex="1" runat="server" Text="查询数据" onclick="Button1_Click"></asp:Button></asp:panel></TD>
					</TR>
					<TR>
						<TD bgColor="#fafff7" colSpan="5"><asp:panel id="pl2" Runat="server" Width="100%">
								<asp:DataGrid id="DataGrid1" runat="server" Width="100%" CssClass="table_1" AutoGenerateColumns="False"
									BorderWidth="1" BorderStyle="Double">
									<AlternatingItemStyle BackColor="#FAFFF7" HorizontalAlign="Center"></AlternatingItemStyle>
									<ItemStyle BackColor="#FAFFF7" HorizontalAlign="Center"></ItemStyle>
									<HeaderStyle BackColor="#66CC00" Height="25" HorizontalAlign="Center"></HeaderStyle>
									<Columns>
										<asp:BoundColumn HeaderText="日期" DataField="时间段"></asp:BoundColumn>
										<asp:BoundColumn HeaderText="点击量" DataField="点击量"></asp:BoundColumn>
										<asp:BoundColumn HeaderText="弹窗数" DataField="弹窗数"></asp:BoundColumn>
										<asp:BoundColumn HeaderText="PV量" DataField="PV量"></asp:BoundColumn>
										<asp:TemplateColumn HeaderText="数据条" ItemStyle-HorizontalAlign="Left">
											<ItemTemplate>
												<asp:Image ID="img" Runat="server" ImageUrl="img/topbj.gif" Height="10" Width='<%#(Convert.ToInt32(DataBinder.Eval(Container.DataItem,"点击量"))/10000)<=0 ? 1:(Convert.ToInt32(DataBinder.Eval(Container.DataItem,"点击量"))/10000)%>'>
												</asp:Image>
											</ItemTemplate>
										</asp:TemplateColumn>
									</Columns>
								</asp:DataGrid>
							</asp:panel></TD>
					</TR>
					<TR>
						<TD bgColor="#fafff7" colSpan="5"><asp:panel id="pl3" Runat="server" Width="100%">
								<asp:DataGrid id="Datagrid2" runat="server" Width="100%" CssClass="table_1">
									<AlternatingItemStyle BackColor="#FAFFF7" HorizontalAlign="Center"></AlternatingItemStyle>
									<ItemStyle BackColor="#FAFFF7" HorizontalAlign="Center"></ItemStyle>
									<HeaderStyle BackColor="#66CC00" Height="25" HorizontalAlign="Center"></HeaderStyle>
								</asp:DataGrid>
							</asp:panel></TD>
					</TR>
					<TR>
						<TD bgColor="#fafff7" colSpan="5"><asp:panel id="pl6" Runat="server" Width="100%">
								<asp:DataGrid id="Datagrid3" runat="server" Width="100%" CssClass="table_1" AutoGenerateColumns="False">
									<AlternatingItemStyle BackColor="#FAFFF7" HorizontalAlign="Center"></AlternatingItemStyle>
									<ItemStyle BackColor="#FAFFF7" HorizontalAlign="Center"></ItemStyle>
									<HeaderStyle BackColor="#66CC00" Height="25" HorizontalAlign="Center"></HeaderStyle>
									<Columns>
										<asp:BoundColumn HeaderText="时间段" DataField="时间段"></asp:BoundColumn>
										<asp:BoundColumn HeaderText="点击量" DataField="点击量"></asp:BoundColumn>
										<asp:BoundColumn HeaderText="弹窗数" DataField="弹窗数"></asp:BoundColumn>
										<asp:BoundColumn HeaderText="PV量" DataField="PV量"></asp:BoundColumn>
										<asp:TemplateColumn HeaderText="数据条" ItemStyle-HorizontalAlign="Left">
											<ItemTemplate>
												<asp:Image ID="Image1" Runat="server" ImageUrl="img/topbj.gif" Height="10" Width='<%#(Convert.ToInt32(DataBinder.Eval(Container.DataItem,"点击量"))/10000)<=0 ? 1:(Convert.ToInt32(DataBinder.Eval(Container.DataItem,"点击量"))/10000)%>'>
												</asp:Image>
											</ItemTemplate>
										</asp:TemplateColumn>
									</Columns>
								</asp:DataGrid>
							</asp:panel></TD>
					</TR>
				</TABLE>
			</FONT>
		</form>
	</body>
</HTML>
