<%@ Page language="c#" Inherits="WebApplication2.Admin.AdvCount" CodeFile="AdvCount.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>AdvCount</title>
	<LINK title="win2k-cold-1" media="all" href="calendar-win2k-cold-1.css" type="text/css"
			rel="stylesheet">
		<script src="js/calendar.js" type="text/javascript"></script>
		<script src="js/calendar-zh.js" type="text/javascript"></script>
		<script src="js/calendar-setup.js" type="text/javascript"></script>
		<LINK href="adminstyle.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="0" cellPadding="0" width="98%" border="0" class="table_1">
				<TBODY>
					<TR>
						<TD align="center" class="td2" style="HEIGHT: 25px; BACKGROUND-COLOR: #66cc00"><FONT face="宋体" style="COLOR: white">广告统计</FONT></TD>
					</TR>
				</TBODY>
			</TABLE>
			<table width="98%" cellpadding=0 cellspacing=0 border=0 class="table_1">
                <tr>
                    <td align="left">
						广告</td>
                    <td align="left" colspan="2">
                        &nbsp;选择条件
                    </td>
                    <td align="left" style="width: 135px">
					时间</td>
                    <td align="left">
                    </td>
                    <td align="left">
    
                    </td>
                    <td align="left">
                        状态</td>
                </tr>
				<tr>
					
					<td align="left">
					<asp:DropDownList ID="Dropdown3" runat="server" AutoPostBack="false" >
					</asp:DropDownList></td>
                    <td align="left" colspan="2">
                        &nbsp;<asp:RadioButton ID="RadioButton1" runat="server" GroupName="type" Text="用户名" Width="66px" /><asp:RadioButton ID="RadioButton2" runat="server" Checked="True" GroupName="type"
                            Text="网站名" Width="66px" /><asp:textbox id="TextBox1" runat="server" Width="72px"></asp:textbox></td>
					
					<td align="left" style="width: 135px">
                     <INPUT id="begdate" style="WIDTH: 80px" type="text" name="begdate" runat="server"><INPUT onclick="return showCalendar('begdate', 'y-m-d');" type="reset" value="选择"></td>
       
            
					<td align="left">
                        至</td>
					<td align="left">
                        <INPUT id="enddate" style="WIDTH: 80px" type="text" name="enddate" runat="server"><INPUT onclick="return showCalendar('enddate', 'y-m-d');" type="reset" value="选择"> </td>
					<td align="left">
						<asp:dropdownlist id="DropDownList1" runat="server" Width="59px">
							<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="查询"></asp:button></td>
				</tr>
			</table>
			<asp:datagrid id="DataGrid1" runat="server" Width="98%" AutoGenerateColumns="False" DataKeyField="id">
				<ItemStyle HorizontalAlign="Center" BorderStyle="None" BorderWidth="1px" Height="20px" BackColor="#FAFFF7"></ItemStyle>
				<HeaderStyle Font-Bold="True" HorizontalAlign="Center" BorderWidth="0px" backColor="#66CC00"
					Height="25px"></HeaderStyle>
				<FooterStyle HorizontalAlign="Center"></FooterStyle>
				<Columns>
					<asp:BoundColumn DataField="id" HeaderText="编号"></asp:BoundColumn>
					<asp:TemplateColumn HeaderText="用户">
						<ItemTemplate>
							<a href='UserWebDetail.aspx?name=<%#DataBinder.Eval(Container.DataItem,"WebUserName")%>'>
								<%#DataBinder.Eval(Container.DataItem,"WebUserName")%>
							</a>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="网站ID">
						<ItemTemplate>
							<a href='ModifWebList.aspx?id=<%#DataBinder.Eval(Container.DataItem,"WebsiteId")%>'>
								<%#DataBinder.Eval(Container.DataItem,"WebsiteName")%>
							</a>(<%#DataBinder.Eval(Container.DataItem,"WebsiteId")%>)
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="广告">
						<ItemTemplate>
							<a href='ModifAdvList.aspx?id=<%#DataBinder.Eval(Container.DataItem,"AdvListId")%>'>
								<%#DataBinder.Eval(Container.DataItem,"AdvTitle")%>
							</a>(<%#DataBinder.Eval(Container.DataItem,"AdvListId")%>)
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="广告位">
						<ItemTemplate>
							<a href='OnesAllAdv.aspx?advid=<%#DataBinder.Eval(Container.DataItem,"AdvDetailed")%>'>
								<%# GetTitle(DataBinder.Eval(Container.DataItem,"AdvDetailed").ToString(),"AdvDetailed","AdvUserName")%>
							</a>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn DataField="Quantity" HeaderText="点击量"></asp:BoundColumn>
					<asp:BoundColumn DataField="ShowQuantity" HeaderText="显示量"></asp:BoundColumn>
					<asp:TemplateColumn HeaderText="结算状态">
						<ItemTemplate>
							<%#Convert.ToInt32(DataBinder.Eval(Container.DataItem,"IsPayment").ToString())==1?"未处理":Convert.ToInt32(DataBinder.Eval(Container.DataItem,"IsPayment").ToString())==2?"已结算":
								Convert.ToInt32(DataBinder.Eval(Container.DataItem,"IsPayment").ToString())==3?"作废":"其它"%>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn DataField="money" HeaderText="广告金额"></asp:BoundColumn>
					<asp:TemplateColumn HeaderText="统计时间">
						<ItemTemplate>
							<a href='AdvDayDetail.aspx?name=<%#DataBinder.Eval(Container.DataItem,"WebUserName") %>&advlistid=<%#DataBinder.Eval(Container.DataItem,"AdvListId") %>&websetid=<%#DataBinder.Eval(Container.DataItem,"WebsiteId")%>&websetname=<%#DataBinder.Eval(Container.DataItem,"WebsiteName")%>&advdetailid=<%#DataBinder.Eval(Container.DataItem,"AdvDetailed")%>&hitdate=<%#DataBinder.Eval(Container.DataItem, "AddTime")%>'>
								<%#DataBinder.Eval(Container.DataItem, "AddTime")%>
							</a>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="备注">
						<ItemTemplate>
							<div id="div" title='<%#DataBinder.Eval(Container.DataItem,"AdvDetailed")%>'>备注</div>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="编辑">
						<ItemTemplate>
							<asp:ImageButton ID="ImageButton1" CommandName="edit" ImageUrl="img/i9.gif" 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;<span style="COLOR: #0066ff; FONT-FAMILY: 宋体">统计: 总点击量 </span>
			<asp:label id="Label4" runat="server" ForeColor="Red">0</asp:label>&nbsp; 总显示量:
			<asp:label id="Label5" runat="server" ForeColor="Red">0</asp:label>&nbsp; 总金额:
			<asp:label id="Label6" runat="server" ForeColor="Red">0</asp:label><br>
			<asp:linkbutton id="LinkButton1" runat="server" CommandArgument="frist">首页</asp:linkbutton>&nbsp;| 
			&nbsp;<asp:linkbutton id="LinkButton2" runat="server" CommandArgument="pre">上一页</asp:linkbutton>&nbsp;|&nbsp;<asp:linkbutton id="LinkButton3" runat="server" CommandArgument="next">下一页</asp:linkbutton>&nbsp;|&nbsp;&nbsp;<asp:linkbutton id="LinkButton4" runat="server" CommandArgument="end">尾页</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="Label7" runat="server" ForeColor="Red">0</asp:Label>条
			<asp:DropDownList id="DropDownList2" runat="server" AutoPostBack="True"></asp:DropDownList></form>
	</body>
</HTML>
