<%@ Page language="c#" Inherits="WebApplication2.Admin.Webregedadv" CodeFile="Webregedadv.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Webregedadv</title>
		<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">
			<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="98%" align="center" border="0"
				class="table_1">
				<TR>
					<TD align="center" style="COLOR: white; HEIGHT: 25px; BACKGROUND-COLOR: #66cc00"><FONT face="宋体">广告投放列表</FONT></TD>
				</TR>
				<TR class="td2">
					<TD style="WIDTH: 452px"><FONT face="宋体">用户账号：
							<asp:textbox id="TextBox1" runat="server" Width="104px"></asp:textbox>&nbsp;状态：
							<asp:dropdownlist id="DropDownList1" runat="server">
								<asp:ListItem Value="is not null">--请选--</asp:ListItem>
								<asp:ListItem Value="='1'">正常</asp:ListItem>
								<asp:ListItem Value="='2'">待审</asp:ListItem>
								<asp:ListItem Value="='3'">禁止</asp:ListItem>
								<asp:ListItem Value="='4 '">暂停</asp:ListItem>
								<asp:ListItem Value="='5 '">停止</asp:ListItem>
							</asp:dropdownlist>&nbsp;
							<asp:button id="Button1" runat="server" Text="查询" onclick="Button1_Click"></asp:button></FONT></TD>
				</TR>
			</TABLE>
			<asp:datagrid id="DataGrid1" runat="server" Width="98%" DataKeyField="id" AutoGenerateColumns="False" OnItemCommand="DataGrid1_ItemCommand" OnItemDataBound="DataGrid1_ItemDataBound" >
				<ItemStyle HorizontalAlign="Center" BorderStyle="None" BackColor="#FAFFF7" BorderWidth="1px"
					Height="25px"></ItemStyle>
				<AlternatingItemStyle BackColor="#FAFFF7"></AlternatingItemStyle>
				<HeaderStyle Font-Bold="True" HorizontalAlign="Center" BorderWidth="0px" BackColor="#66CC00"
					Height="30px"></HeaderStyle>
				<FooterStyle HorizontalAlign="Center" BackColor="#999999"></FooterStyle>
				<Columns>
					<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="网站">
						<ItemTemplate>
							<a href='WebList.aspx?webid=<%#DataBinder.Eval(Container.DataItem,"WebsiteId")%>'>
								<%# GetTitle(DataBinder.Eval(Container.DataItem,"WebsiteId").ToString(),"Website","WebsiteName")%>
							</a>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="广告">
						<ItemTemplate>
							<a href='AdvDetailList.aspx?advid=<%#DataBinder.Eval(Container.DataItem,"AdvListId")%>'>
								<%# GetTitle(DataBinder.Eval(Container.DataItem,"AdvListId").ToString(),"AdvList","AdvTitle")%>
							</a>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="广告状态">
						<ItemTemplate>
							<a href='ModifWebregedAdv.aspx?id=<%#DataBinder.Eval(Container.DataItem,"id")%>'>
								<%# advstate(DataBinder.Eval(Container.DataItem,"Appearance").ToString())%>
							</a>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn HeaderText="添加时间" DataField="RegData"></asp:BoundColumn>
					<asp:TemplateColumn HeaderText="编辑">
						<ItemTemplate>
							<asp:ImageButton ID="ImageButton1" Runat="server" CommandName="edit" ImageUrl="img/edit.gif"></asp:ImageButton>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="删除">
						<ItemTemplate>
							<asp:ImageButton ID="ImageButton2" Runat="server" CommandName="delete" ImageUrl="img/del.gif"></asp:ImageButton>
						</ItemTemplate>
					</asp:TemplateColumn>
				</Columns>
			</asp:datagrid>
			<asp:label id="Label3" runat="server" ForeColor="Red">没有你要的记录！！</asp:label><br>
			<asp:linkbutton id="LinkButton1" runat="server" CommandArgument="frist" onclick="gopage">首页</asp:linkbutton>
			&nbsp;| &nbsp;<asp:linkbutton id="LinkButton2" runat="server" CommandArgument="pre" onclick="gopage">上一页</asp:linkbutton>&nbsp; 
			| &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>共
		</form>
	</body>
</HTML>
