<%@ Page language="c#" Inherits="WebApplication2.OnesAllAdv" CodeFile="onesalladv.aspx.cs" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>OnesAllAdv</title><LINK rel="stylesheet" type="text/css" href="adminstyle.css">
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<TABLE id="Table1" cellSpacing="1"
				cellPadding="1" width="100%" align="center" border="0" class="table_1">
				<TR>
					<TD>
						<asp:DataGrid id="DataGrid1" runat="server" Width="100%" AutoGenerateColumns="False">
							<AlternatingItemStyle BackColor="#FAFFF7"></AlternatingItemStyle>
							<ItemStyle HorizontalAlign="Center" Height="25px" BorderWidth="1px" BorderStyle="None" BackColor="#FAFFF7"></ItemStyle>
							<HeaderStyle Font-Bold="True" HorizontalAlign="Center" Height="30px" BorderWidth="0px" BackColor="#66CC00"></HeaderStyle>
							<FooterStyle HorizontalAlign="Center" BackColor="#DDDDDD"></FooterStyle>
							<Columns>
								<asp:BoundColumn HeaderText="广告ID" DataField="AdvListId"></asp:BoundColumn>
								<asp:BoundColumn HeaderText="用户账号" DataField="AdvUserName"></asp:BoundColumn>
								<asp:BoundColumn HeaderText="广告名称" DataField="AdvTitle"></asp:BoundColumn>
								<asp:TemplateColumn HeaderText="广告格式">
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem,"Format").ToString()=="1"? "Flash":DataBinder.Eval(Container.DataItem,"Format").ToString()=="2"? "图片":"其它类"%>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="广告大小">
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem,"width").ToString()%>
										×<%#DataBinder.Eval(Container.DataItem,"height")%>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="图片">
									<ItemTemplate>
										<a href='<%#ConfigurationSettings.AppSettings["AdvImagePath"]+DataBinder.Eval(Container.DataItem,"ImgAddress").ToString()%>' title='<%#DataBinder.Eval(Container.DataItem,"ImgAddress").ToString()%>'>浏览..</a>
										
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:BoundColumn HeaderText="广告连接地址" DataField="url"></asp:BoundColumn>
								<asp:BoundColumn HeaderText="广告参数" DataField="UrlParameter"></asp:BoundColumn>
								<asp:BoundColumn HeaderText="添加时间" DataField="AddData"></asp:BoundColumn>
							</Columns>
						</asp:DataGrid>
					</TD>
				</TR>
				<TR>
					<TD style="width: 516px">
						<asp:Label id="Label1" runat="server" ForeColor="Red">Label</asp:Label><font color="#0066ff">条广告</font></TD>
				</TR>
				<TR>
					<TD align="center" style="width: 516px; height: 32px;">
						<asp:Button id="Button1" runat="server" Text="返回"></asp:Button></TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
