<%@ Page language="c#" Codebehind="MyMember.aspx.cs" AutoEventWireup="true" Inherits="XpShop.WebUI.MyMember" %>
<%@ Register TagPrefix="uc1" TagName="MemberMenu" Src="Modules/MemberMenu.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="Modules/Footer.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD>
		<!--#include file="../../inc/encoding.inc"-->
		<title>发展的会员</title>
		<!--#include file="../../inc/head.inc"-->
		<link href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/member.css" type="text/css" rel="stylesheet" />
<%--		<script type="text/javascript">
		    $(document).ready(function(){
                var keyword2 = '<%=Server.UrlDecode(Request.QueryString["keyword2"])%>';
                var status='<%=Request.QueryString["status"]%>';
	                if(keyword2!= '')
	                {
		                $("#keyword").val(keyword2);
	                }
	                if(status!=''){
	                    $("#status").val(status);
	                }

	                $("#btnSearch").click(function(){
                        window.location.href="/<%=ShopFolder%>MyOrders.aspx?keyword2=" + $('#keyword').val() + "&status=" + $('#status').val()
	                });
		    });
		</script>--%>
	</HEAD>
	<body>
		<uc1:Header id="Header1" runat="server"></uc1:Header>
		<div class="xp-w clear">
			<!--位置导航开始-->
			<div class="path"><a href="<%=webSite %><%if(config.html==""){%>default.aspx<%}else{%>Index.<%=config.html%><%}%>"><%=GetResourceString("Home")%></a>&nbsp;&gt;&nbsp;<a href="<%=webSite %>Center.<%=config.html %>"><%=GetResourceString("MemberCenter")%></a>&nbsp;&gt;&nbsp;<%=GetResourceString("MyOrders")%></div>
			<!--位置导航结束-->
			<div class="member_left">
				<!--会员中心导航开始-->
				<uc1:MemberMenu id="MemberMenu1" runat="server"></uc1:MemberMenu>
				<!--会员中心导航结束-->
			</div>
			<div class="member_middle_right">
				<!--内容开始-->
				    <div class="mframe">
				        <div class="tl"></div>
				        <div class="tr"></div>
				        <div class="tm">发展的会员</div>
				        <div class="ml"></div>
				        <div class="mr"></div>
				        <div class="mm">
				            <form id="Form1" method="post" runat="server">
                            <div class="page" style="margin-bottom:10px">
<%--                                <div class="fr" style="float:right">
                                    <input  type=text id="keyword" name="keyword" />
                                    <input type=button ID="btnSearch" value="查询"/>
                                </div>
                                <div class="clear"></div>--%>
                            </div>
                            
					        <asp:datagrid id="dgMemberList" CssClass="dgborder" runat="server"
						    AutoGenerateColumns="False" DataKeyField="MemberID" Width="100%" HorizontalAlign="Center" BorderWidth="1"
						    BorderColor="#d6d6d6">
			                <ItemStyle BackColor="White"></ItemStyle>
			                <HeaderStyle BackColor="#fff7d3" Height="20px"></HeaderStyle>
						    <Columns>
							    <asp:TemplateColumn HeaderText="会员账号">
								    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								    <ItemStyle HorizontalAlign="Center" Width="15%" Height="20px"></ItemStyle>
								    <ItemTemplate>
										    <%# DataBinder.Eval(Container.DataItem, "Name") %>
								    </ItemTemplate>
							    </asp:TemplateColumn>
							    <asp:BoundColumn DataField="AddDate" HeaderText="注册时间" DataFormatString="{0:yyyy-MM-dd}">
								    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								    <ItemStyle HorizontalAlign="Center" Width="15%"></ItemStyle>
							    </asp:BoundColumn>
							    <asp:TemplateColumn HeaderText="已消费金额">
								    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								    <ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
								    <ItemTemplate>
									    <%# DataBinder.Eval(Container.DataItem, "Expenditure") %>
								    </ItemTemplate>
							    </asp:TemplateColumn>
				    
						    </Columns>
					    </asp:datagrid>
					    
				        <asp:panel id="plPage" visible="true" runat="server">
				        <!-- 翻页开始-->
				        <div class="page clear">
                            <div class="fpage">
                                <asp:Label ID="lbPage" class="lb-page" runat="server"></asp:Label>
                            </div>                                
				        </div>
				        <!-- 翻页结束-->
				        </asp:panel>
        				
				        <asp:panel id="plNoProduct" visible="false" runat="server">
					        <div style="margin:20px;">
						        <h3>暂无发展的会员</h3>
					        </div>
				        </asp:panel>
				        </form>
				        </div>
				        <div class="bl"></div>
				        <div class="br"></div>
				        <div class="bm"></div>
				    </div>
				<!--内容结束-->
			</div>
		</div>
		<uc1:Helper id="Helper1" runat="server"></uc1:Helper>
		<uc1:Footer id="Footer1" runat="server"></uc1:Footer>
	</body>
</HTML>
