<%@ Page language="c#" Inherits="WebApplication2.Admin.AdvDayDetail" CodeFile="AdvDayDetail.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<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" type="text/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 class="table_1" id="Table1" cellSpacing="1" cellPadding="1" width="98%" border="0">
					<TR class="td2">
						<TD style="COLOR: white; HEIGHT: 25px; BACKGROUND-COLOR: #66cc00" align="center">广告明细</TD>
					</TR>
					<TR class="td1">
						<TD>用户
							<asp:textbox id="TextBox1" runat="server" Width="64px"></asp:textbox>网站
							<asp:textbox id="TextBox2" runat="server" Width="64px"></asp:textbox>广告
							<asp:dropdownlist id="ddladvlistid" AutoPostBack="True" Runat="server" onselectedindexchanged="ddlwebsiteid_SelectedIndexChanged"></asp:dropdownlist>广告位
							<asp:dropdownlist id="ddladvdetailid" Runat="server"></asp:dropdownlist>时段
							<asp:textbox id="TextBox5" runat="server" Width="25px"></asp:textbox><asp:rangevalidator id="RangeValidator4" runat="server" ErrorMessage="时段应为数值！" Type="Integer" Display="None"
								ControlToValidate="TextBox5" MinimumValue="0" MaximumValue="24"></asp:rangevalidator>至
							<asp:textbox id="TextBox6" runat="server" Width="25px"></asp:textbox><asp:rangevalidator id="RangeValidator5" runat="server" ErrorMessage="时段应为数值！" Type="Integer" Display="None"
								ControlToValidate="TextBox6" MinimumValue="0" MaximumValue="24"></asp:rangevalidator>开始日期
							<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:button id="Button1" runat="server" Text="查询" onclick="Button1_Click"></asp:button>
						</TD>
					</TR>
					<TR>
						<TD>
							<asp:Panel ID="pl1" Runat="server">
								<TABLE class="table_1" id="tabel2" width="100%" border="0">
									<TR>
										<TD style="WIDTH: 186px" vAlign="top">
											<asp:radiobuttonlist id="rdlist" Width="232px" Runat="server" Height="8px" RepeatDirection="Horizontal">
												<asp:ListItem>当天</asp:ListItem>
												<asp:ListItem>日期之前</asp:ListItem>
												<asp:ListItem>日期之后</asp:ListItem>
											</asp:radiobuttonlist></TD>
										<TD style="WIDTH: 144px" vAlign="bottom"><INPUT id="Text1" style="WIDTH: 80px" type="text" name="Text1" runat="server"><INPUT onclick="return showCalendar('Text1', 'y-m-d');" type="reset" value="选择">
										</TD>
										<TD vAlign="bottom">
											<asp:button id="Button2" Runat="server" Text="导入历史表" onclick="input_Click"></asp:button></TD>
									</TR>
								</TABLE>
							</asp:Panel>
						</TD>
					</TR>
				</TABLE>
				<FONT face="宋体">
					<table class="table_1" width="98%">
						<tr>
							<td><asp:datagrid id="DataGrid1" runat="server" Width="100%" AutoGenerateColumns="False" DataKeyField="id">
									<ItemStyle HorizontalAlign="Center" BorderStyle="None" BorderWidth="1" Height="25"></ItemStyle>
									<AlternatingItemStyle></AlternatingItemStyle>
									<HeaderStyle Font-Bold="True" HorizontalAlign="Center" BorderWidth="0px" BackColor="#66cc00"
										Height="25"></HeaderStyle>
									<FooterStyle HorizontalAlign="Center" BackColor="#999999"></FooterStyle>
									<Columns>
										<asp:BoundColumn DataField="id" HeaderText="编号"></asp:BoundColumn>
										<asp:TemplateColumn HeaderText="用户">
											<ItemTemplate>
												<a href='UserWebDetail.aspx?name=<%# DataBinder.Eval(Container.DataItem,"WebUserName") %>'>
													<%# DataBinder.Eval(Container.DataItem,"WebUserName") %>
												</a>
											</ItemTemplate>
										</asp:TemplateColumn>
										<asp:TemplateColumn HeaderText="网站ID">
											<ItemTemplate>
												<a href='ModifWebList.aspx?id=<%#  DataBinder.Eval(Container.DataItem,"WebsiteId") %>'>
													<%# GetTitle(DataBinder.Eval(Container.DataItem,"WebsiteId").ToString(),"Website","WebsiteName" )%>
												</a>
											</ItemTemplate>
										</asp:TemplateColumn>
										<asp:TemplateColumn HeaderText="广告">
											<ItemTemplate>
												<a href='ModifAdvList.aspx?id=<%#DataBinder.Eval(Container.DataItem,"AdvListId")%>'>
													<%# GetTitle(DataBinder.Eval(Container.DataItem,"AdvListId").ToString(),"AdvList","AdvTitle" )%>
												</a>
											</ItemTemplate>
										</asp:TemplateColumn>
										<asp:TemplateColumn HeaderText="广告位">
											<ItemTemplate>
												<a href='OnesAllAdv.aspx?advid=<%#DataBinder.Eval(Container.DataItem,"AdvDetailedId")%>'>
													<%# GetTitle(DataBinder.Eval(Container.DataItem,"AdvDetailedId").ToString(),"AdvDetailed","AdvTitle" )%>
												</a>
											</ItemTemplate>
										</asp:TemplateColumn>
										<asp:TemplateColumn HeaderText="来源页面">
											<ItemTemplate>
												<a href='<%#Server.UrlDecode(Server.UrlDecode(DataBinder.Eval(Container.DataItem,"FromPage").ToString()))%>' title='<%#Server.UrlDecode(Server.UrlDecode(DataBinder.Eval(Container.DataItem,"FromPage").ToString()))%>'>
													点击进入</a>
											</ItemTemplate>
										</asp:TemplateColumn>
										<asp:TemplateColumn HeaderText="代码页面">
											<ItemTemplate>
												<a href='<%#Server.UrlDecode(Server.UrlDecode(DataBinder.Eval(Container.DataItem,"AdvPage").ToString()))%>' title='<%#Server.UrlDecode(Server.UrlDecode(DataBinder.Eval(Container.DataItem,"AdvPage").ToString()))%>'>
													点击进入</a>
											</ItemTemplate>
										</asp:TemplateColumn>
										<asp:BoundColumn DataField="ip" HeaderText="点击(IP)"></asp:BoundColumn>
										<asp:TemplateColumn HeaderText="有(无)效">
											<ItemTemplate>
												<%#DataBinder.Eval(Container.DataItem, "Appearance").ToString().ToLower() == "true" ? "有效" : "无效"%>
											</ItemTemplate>
										</asp:TemplateColumn>
										<asp:BoundColumn DataField="HitHour" HeaderText="时段"></asp:BoundColumn>
										<asp:BoundColumn DataField="HitData" HeaderText="添加日期"></asp:BoundColumn>
										<asp:TemplateColumn HeaderText="删除">
											<ItemTemplate>
												<asp:ImageButton ID="Imagebutton2" CommandName="delete" ImageUrl="img/del.gif" Runat="server"></asp:ImageButton>
											</ItemTemplate>
										</asp:TemplateColumn>
									</Columns>
								</asp:datagrid></td>
						</tr>
					</table>
				</FONT>
				<div id="div2" style="Z-INDEX: 101; LEFT: -100px; POSITION: absolute; TOP: -100px; BACKGROUND-COLOR: #cccccc"></div>
				<FONT face="宋体"></FONT>
				<asp:validationsummary id="ValidationSummary1" style="Z-INDEX: 102; LEFT: 24px; POSITION: absolute; TOP: 376px"
					runat="server" HeaderText="输入的值超出范围或是以下错误：" ShowMessageBox="True" ShowSummary="False"></asp:validationsummary><asp:label id="Label3" runat="server"><font color="#ff0000">没有您要的记录！！</font></asp:label><br>
				<FONT face="宋体">
					<asp:linkbutton id="LinkButton1" runat="server" CommandArgument="frist" onclick="gopage">首页</asp:linkbutton>&nbsp;|<asp:linkbutton id="LinkButton2" runat="server" CommandArgument="pre" onclick="gopage">上一页</asp:linkbutton>&nbsp;|<asp:linkbutton id="LinkButton3" runat="server" CommandArgument="next" onclick="gopage">下一页</asp:linkbutton>&nbsp;| 
					&nbsp;<asp:linkbutton id="LinkButton4" runat="server" CommandArgument="end" onclick="gopage">尾页</asp:linkbutton>&nbsp;<asp:label id="Label1" runat="server">0</asp:label>/
					<asp:label id="Label2" runat="server">0</asp:label>&nbsp;记录数共
					<asp:label id="Label4" runat="server" ForeColor="Red">0</asp:label>&nbsp;条
					<asp:dropdownlist id="DropDownList1" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList1_SelectedIndexChanged"></asp:dropdownlist></FONT>
				<FONT face="宋体">
		</form>
		
	</body>
</HTML>
