<%@ Page language="c#" Inherits="WebApplication2.AdvDetailList" CodeFile="advdetaillist.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>AdvDetailList</title>
		<script language="javascript">
		function del(num)
		{
		if(num=="4")
		alert("要删除请点击右边的删除按钮!");
		}
		</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 id="Table1" cellSpacing="1" cellPadding="1" width="98%" border="0" class="table_1">
					<TR>
						<TD align="center" class="td2" style="COLOR: white; HEIGHT: 25px; BACKGROUND-COLOR: #66cc00">广告详细列表</TD>
					</TR>
					<TR class="td1">
						<TD vAlign="baseline">
							广告位ID
							<asp:textbox id="TextBox1" runat="server" Width="48px"></asp:textbox>
							用户账号
							<asp:textbox id="TextBox2" runat="server" Width="72px"></asp:textbox>
							广告位名称
							<asp:textbox id="TextBox3" runat="server" Width="132px"></asp:textbox>
							广告状态<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:dropdownlist><asp:button id="Button1" runat="server" Text="查询" onclick="Button1_Click"></asp:button></TD>
					</TR>
				</TABLE>
			</FONT>
			<asp:datagrid id="DataGrid1" runat="server" Width="98%" DataKeyField="id" AutoGenerateColumns="False">
				<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='OnesAllAdv.aspx?advid=<%#DataBinder.Eval(Container.DataItem,"AdvListId")%>'>
								<%#DataBinder.Eval(Container.DataItem,"AdvListId")%>
							</a>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="广告名称">
						<ItemTemplate>
							<a href='OnesAllAdv.aspx?advid=<%#DataBinder.Eval(Container.DataItem,"AdvListId")%>'>
								<%#DataBinder.Eval(Container.DataItem,"AdvTitle")%>
							</a>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="账号">
						<ItemTemplate>
							<a href='UserAdvDetail.aspx?name=<%#DataBinder.Eval(Container.DataItem,"AdvUserName")%>'>
								<%#DataBinder.Eval(Container.DataItem,"AdvUserName")%>
							</a>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="状态">
						<ItemTemplate>
							<a href='Check_advdetail.aspx?id=<%#DataBinder.Eval(Container.DataItem,"id")%>' onmousedown="del(this.name)" name='<%#DataBinder.Eval(Container.DataItem,"AcceptAppearance")%>'>
								<%#Convert.ToInt32(DataBinder.Eval(Container.DataItem,"AcceptAppearance"))==1? "通过审核":
						Convert.ToInt32(DataBinder.Eval(Container.DataItem,"AcceptAppearance"))==2? "等待审核":
						Convert.ToInt32(DataBinder.Eval(Container.DataItem,"AcceptAppearance"))==3? "修改挂起":"删除挂起"%>
							</a>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="绑定编号">
					<ItemTemplate><a href='modifjstemplate.aspx?bh=<%#DataBinder.Eval(Container.DataItem, "TemplateBH")%>'><%#DataBinder.Eval(Container.DataItem, "TemplateBH")%></a></ItemTemplate>
					</asp:TemplateColumn>
					
					<asp:BoundColumn HeaderText="添加时间" DataField="AddData"></asp:BoundColumn>
					<asp:TemplateColumn HeaderText="生成文件">
						<ItemTemplate>
							<asp:ImageButton ID="imgfile" Runat="server" CommandName="makefile" ImageUrl="img/hotfolder.gif"></asp:ImageButton>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="详细/编辑">
					
						<ItemTemplate>
							<asp:ImageButton ID="ImageButton1" ImageUrl="img/edit.gif" CommandName="edit" Runat="server"></asp:ImageButton>
						</ItemTemplate>
						
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="删除">
						<ItemTemplate>
							<asp:ImageButton ID="Imagebutton2" CommandName="delete" ImageUrl="img/del.gif" Runat="server"></asp:ImageButton>
						</ItemTemplate>
					</asp:TemplateColumn>
				</Columns>
			</asp:datagrid>
			<asp:label id="Label3" runat="server">
				<font color="#ff0000">没有您要的记录！！</font></asp:label><br>
			&nbsp;<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>&nbsp; 记录数共
			<asp:Label id="Label4" runat="server" ForeColor="Red">0</asp:Label>&nbsp;条
			<asp:DropDownList id="DropDownList2" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList2_SelectedIndexChanged"></asp:DropDownList>
		</form>
	</body>
</HTML>
