<%@ Page language="c#" Inherits="WebApplication2.AdvList" CodeFile="advlist.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>RequestList</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%" border="0">
				<TBODY>
					<TR>
						<TD style="HEIGHT: 25px; color: white; background-color: #66cc00;" align="center" bgColor="#dddddd">广告列表</TD>
					</TR>
				</TBODY>
			</TABLE>
            <table width="98%" class="table_1">
                <tr>
                    <td style="width: 100px; height: 45px">
                        广告所属类：</td>
                    <td style="width: 100px; height: 45px">
                        <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'">无线IVR</asp:ListItem>
											<asp:ListItem Value="='4'">wap/KJava</asp:ListItem>
											<asp:ListItem Value="='5'">无线综合服务</asp:ListItem>
											<asp:ListItem Value="='6'">交友娱乐</asp:ListItem>
											<asp:ListItem Value="='7'">网络社区</asp:ListItem>
											<asp:ListItem Value="='8'">网络游戏</asp:ListItem>
											<asp:ListItem Value="='9'">收费邮箱</asp:ListItem>
											<asp:ListItem Value="='10'">即时通信</asp:ListItem>
											<asp:ListItem Value="='11'">下载服务</asp:ListItem>
											<asp:ListItem Value="='12'">宽带影院</asp:ListItem>
											<asp:ListItem Value="='13'">在线音乐</asp:ListItem>
											<asp:ListItem Value="='14'">旅游服务</asp:ListItem>
											<asp:ListItem Value="='15'">在线招聘</asp:ListItem>
											<asp:ListItem Value="='16'">会员资讯</asp:ListItem>
											<asp:ListItem Value="='17'">搜索引擎</asp:ListItem>
											<asp:ListItem Value="='18'">在线商城</asp:ListItem>
											<asp:ListItem Value="='19'">在线拍卖</asp:ListItem>
											<asp:ListItem Value="='20'">体育运动</asp:ListItem>
											<asp:ListItem Value="='21'">健康医疗</asp:ListItem>
											<asp:ListItem Value="='22'">教育培训</asp:ListItem>
											<asp:ListItem Value="='23'">证券财经</asp:ListItem>
											<asp:ListItem Value="='24'">电子刊物</asp:ListItem>
											<asp:ListItem Value="='25'">IT/网络</asp:ListItem>
											<asp:ListItem Value="='26'">礼品鲜花</asp:ListItem>
											<asp:ListItem Value="='27'">办公用品</asp:ListItem>
											<asp:ListItem Value="='28'">其他网络服务</asp:ListItem>
										</asp:dropdownlist></td>
                    <td style="width: 100px; height: 45px">
                        审核状态：</td>
                    <td style="width: 100px; height: 45px">
                        <asp:dropdownlist id="DropDownList2" runat="server" Width="60px">
											<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:dropdownlist></td>
                    <td style="width: 100px; height: 45px">
                        广告状态：</td>
                    <td style="width: 100px; height: 45px">
                        <asp:dropdownlist id="DropDownList4" runat="server" Width="60px">
											<asp:ListItem Value="is not null">--选择--</asp:ListItem>
											<asp:ListItem Value="='0'">未结算</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></td>
                    <td style="width: 100px; height: 45px">
                        广告类型：</td>
                    <td style="width: 100px; height: 45px">
                        <asp:dropdownlist id="DropDownList5" runat="server" Width="60px">
											<asp:ListItem Value="is not null">--选择--</asp:ListItem>
											<asp:ListItem Value="='1'">CPC点击广告</asp:ListItem>
											<asp:ListItem Value="='2'">弹窗广告</asp:ListItem>
											<asp:ListItem Value="='3'">CPA按销售记费</asp:ListItem>
										</asp:dropdownlist></td>
                    <td style="width: 100px; height: 45px">
                        <asp:button id="Button1" runat="server" Text="查询" onclick="Button1_Click"></asp:button></td>
                </tr>
            </table>
            <asp:datagrid id="DataGrid1" runat="server" DataKeyField="id" Width="98%" AutoGenerateColumns="False">
								<ItemStyle HorizontalAlign="Center" BorderStyle="None" BackColor="#FAFFF7" BorderWidth="1px"
									Height="25px"></ItemStyle>
								<AlternatingItemStyle BackColor="#FAFFF1"></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,"id")%>'>
												<%#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_adv.aspx?id=<%#DataBinder.Eval(Container.DataItem,"id")%>'>
												<%#Convert.ToInt32(DataBinder.Eval(Container.DataItem,"AcceptAppearance"))==1? "通过审核":Convert.ToInt32(DataBinder.Eval(Container.DataItem,"AcceptAppearance"))==2? "等待审核":"挂起" %>
											</a>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="类型">
										<ItemTemplate>
											<%#Convert.ToInt32(DataBinder.Eval(Container.DataItem,"AdvType"))==1? "点击广告":Convert.ToInt32(DataBinder.Eval(Container.DataItem,"AdvType"))==2? "弹窗广告":"销售记费广告"%>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="广告">
										<ItemTemplate>
											<a href='<%#ConfigurationSettings.AppSettings["AdvImagePath"]+DataBinder.Eval(Container.DataItem,"AdvLogo").ToString()%>' title='<%#DataBinder.Eval(Container.DataItem,"AdvLogo").ToString()%>'>
												浏览..</a>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="记录状态">
										<ItemTemplate>
											<%#Convert.ToInt32(DataBinder.Eval(Container.DataItem,"AdvAppearance"))==0? "未结算":Convert.ToInt32(DataBinder.Eval(Container.DataItem,"AdvAppearance"))==1? "正常":
									Convert.ToInt32(DataBinder.Eval(Container.DataItem,"AdvAppearance"))==2? "投放完毕":Convert.ToInt32(DataBinder.Eval(Container.DataItem,"AdvAppearance"))==3? "停止":"暂停" %>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:BoundColumn DataField="Limit" HeaderText="定点"></asp:BoundColumn>
									<asp:BoundColumn DataField="TotalMoney" HeaderText="总金额"></asp:BoundColumn>
									<asp:BoundColumn DataField="Unitprice" HeaderText="单价"></asp:BoundColumn>
									<asp:BoundColumn DataField="GotoMoney" HeaderText="可用金额"></asp:BoundColumn>
									<asp:BoundColumn DataField="Commission" HeaderText="佣金"></asp:BoundColumn>
									<asp:BoundColumn DataField="AddData" HeaderText="添加时间"></asp:BoundColumn>
									<asp:TemplateColumn HeaderText="编辑">
										<ItemTemplate>
											<asp:ImageButton ID="ImageButton2" ImageUrl="img/edit.gif" CommandName="edit" Runat="server"></asp:ImageButton>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="删除">
										<ItemTemplate>
											<asp:ImageButton ID="ImageButton1" ImageUrl="img/del.gif" CommandName="delete" Runat="server"></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>&nbsp;记录数共
											<asp:Label id="Label4" runat="server" ForeColor="Red">0</asp:Label>条
											<asp:DropDownList id="DropDownList3" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList3_SelectedIndexChanged"></asp:DropDownList>
		</form>
	</body>
</HTML>
