<%@ Page Language="vb" AutoEventWireup="false" Codebehind="ad.aspx.vb" Inherits="LuckBet.ad"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>ad</title>
		<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<LINK href="../Styles.css" type="text/css" rel="stylesheet">
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<TABLE id="Table1" style="FONT-SIZE: 12px; LETTER-SPACING: 1px" cellSpacing="0" borderColorDark="#ffffff"
				cellPadding="3" width="100%" align="center" bgColor="#c5d5e4" borderColorLight="#335078"
				border="1">
				<TR bgColor="#b6ebc4">
					<TD style="HEIGHT: 35px" align="center" width="100%" bgColor="#d8e1eb" colSpan="6"><FONT face="宋体"><FONT style="FONT-WEIGHT: bold; FONT-SIZE: 13pt; COLOR: #330066" size="2">
								待 审 广&nbsp;告 管 理</FONT></FONT></TD>
				</TR>
				<TR>
					<TD align="center"><FONT face="宋体">
							<TABLE id="Table22" style="FONT-SIZE: 12px; LETTER-SPACING: 1px" cellSpacing="0" borderColorDark="#ffffff"
								cellPadding="3" width="99%" align="center" bgColor="#c5d5e4" borderColorLight="#335078"
								border="1">
								<TR bgColor="#b6ebc4">
									<TD align="center" width="100%" bgColor="#e4ebf1" colSpan="3" height="25">
										<TABLE id="Table3" height="40" cellSpacing="0" cellPadding="0" width="100%" border="0">
											<TR>
												<TD align="center"><asp:checkbox id="CheckBox1" runat="server" AutoPostBack="True" Text="选中所有"></asp:checkbox>&nbsp;&nbsp;<asp:dropdownlist id="ddltype" runat="server">
														<asp:ListItem Value="1">审核中</asp:ListItem>
														<asp:ListItem Value="2">准许通过</asp:ListItem>
														<asp:ListItem Value="3">不通过</asp:ListItem>
													</asp:dropdownlist>&nbsp;&nbsp;<asp:button id="Button3" runat="server" Text="确定提交" Width="67px"></asp:button><FONT face="宋体">&nbsp;</FONT>
													<asp:button id="Button2" runat="server" Text="删除记录"></asp:button></TD>
											</TR>
										</TABLE>
										<FONT face="宋体">
											<asp:linkbutton id="btnFirst" onclick="PageButtonClick" runat="server" Font-Name="verdana" CommandArgument="0">最前页

</asp:linkbutton>&nbsp; &nbsp;
											<asp:linkbutton id="btnPrev" onclick="PageButtonClick" runat="server" CommandArgument="prev">上一页

</asp:linkbutton>&nbsp; &nbsp;
											<asp:linkbutton id="btnNext" onclick="PageButtonClick" runat="server" CommandArgument="next">下一页

</asp:linkbutton>&nbsp; &nbsp;
											<asp:linkbutton id="btnLast" onclick="PageButtonClick" runat="server" CommandArgument="last">最后页

</asp:linkbutton>&nbsp; 总共有
											<asp:label id="lblcount" runat="server" ForeColor="Red"></asp:label>&nbsp;条 记录
											<asp:label id="lblCurrentIndex" runat="server"></asp:label>&nbsp;
											<asp:label id="lblPageCount" runat="server"></asp:label></FONT></TD>
								</TR>
							</TABLE>
							<TABLE id="Table2" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
								<TR>
									<TD style="HEIGHT: 169px" vAlign="top" align="center"><FONT face="宋体"><asp:datagrid id="DataGrid1" runat="server" Width="100%" AllowPaging="True" DataKeyField="ID"
												BackColor="White" AutoGenerateColumns="False" CellPadding="3" PageSize="18" BorderColor="#93BEE2" BorderWidth="1px" BorderStyle="None" AllowCustomPaging="True">
												<SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
												<AlternatingItemStyle Font-Size="X-Small" BackColor="#E8F4FF"></AlternatingItemStyle>
												<ItemStyle Font-Size="X-Small" ForeColor="#003399" BackColor="White"></ItemStyle>
												<HeaderStyle Font-Size="X-Small" ForeColor="White" BackColor="#337FB2"></HeaderStyle>
												<Columns>
													<asp:TemplateColumn HeaderText="选择">
														<HeaderStyle HorizontalAlign="Center" Width="25px"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:CheckBox id="PID" runat="server"></asp:CheckBox>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn HeaderText="名   称">
														<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<a href ='../Games/Goad.aspx?adid=<%# DataBinder.Eval(Container, "DataItem.ID") %>' target =_blank >
																<%# DataBinder.Eval(Container, "DataItem.ad_title") %>
															</a>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn HeaderText="发布会员">
														<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<a href ='../Games/user.aspx?usid=<%# DataBinder.Eval(Container, "DataItem.ad_userid") %>' target =_blank >
																<%# pub.GetUserInfo("UserName",DataBinder.Eval(Container, "DataItem.ad_userid")) %>
															</a>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn HeaderText="金币/次">
														<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<%# pub.Comma(DataBinder.Eval(Container, "DataItem.ad_price")) %>
															<IMG src="../Images/images_36.gif">
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn HeaderText="预算">
														<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<%# pub.Comma(DataBinder.Eval(Container, "DataItem.ad_totleprice")) %>
															<IMG src="../Images/images_36.gif">
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn HeaderText="广告类型">
														<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<%# iif(DataBinder.Eval(Container, "DataItem.ad_type")="1","<font color=red>图片广告</font>","文字广告") %>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn HeaderText="审请时间">
														<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<%# DataBinder.Eval(Container, "DataItem.ad_date") %>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn HeaderText="状态">
														<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<%# iif(DataBinder.Eval(Container, "DataItem.ad_state")="3","<font color=red>未通过</font>","待审核") %>
														</ItemTemplate>
													</asp:TemplateColumn>
												</Columns>
												<PagerStyle NextPageText="下一页" Font-Size="X-Small" PrevPageText="上一页" HorizontalAlign="Right"
													ForeColor="#003399" Position="TopAndBottom" BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
											</asp:datagrid></FONT></TD>
								</TR>
							</TABLE>
						</FONT>
					</TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
