<%@ Page language="c#" Inherits="WebApplication2.Admin.AdvFinance" CodeFile="AdvFinance.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>AdvFinance</title>
		
		<LINK rel="stylesheet" type="text/css" href="adminstyle.css">
		<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" style="color: white; height: 25px; background-color: #66cc00; backgroundcolor: #66cc00; forecolor: white">财务管理</TD>
					</TR>
				</TABLE>
			</FONT>
							<asp:dataGrid id="Datagrid1" runat="server" DataKeyField="id" Width="98%" AutoGenerateColumns="False" onselectedindexchanged="Datagrid1_SelectedIndexChanged">
								<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,"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>
											<%#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="TotalMoney" HeaderText="总金额"></asp:BoundColumn>
									<asp:BoundColumn DataField="Unitprice" HeaderText="单价"></asp:BoundColumn>
									<asp:TemplateColumn HeaderText="结算时间">
										<ItemTemplate>
										</ItemTemplate>
									</asp:TemplateColumn>
									<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/i9.gif" CommandName="edit" 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>&nbsp;条
											<asp:DropDownList id="DropDownList1" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList1_SelectedIndexChanged"></asp:DropDownList>
		</form>
	</body>
</HTML>
