<%@ Page language="c#" Codebehind="MySubAgent.aspx.cs" AutoEventWireup="false" Inherits="XpShop.WebUI.MySubAgent" %>
<%@ Register TagPrefix="uc1" TagName="MemberMenu" Src="Modules/MemberMenu.ascx" %>
<%@ Register TagPrefix="uc1" TagName="NavBar" Src="Modules/NavBar.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Link" Src="Modules/Link.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="Modules/Footer.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Bulletin" Src="Modules/Bulletin.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><%=GetResourceString("SubAgent")%> －－ <%=config.SiteTitle%></title>
		<!--#include file="../../inc/head.inc"-->		
		<script type="text/javascript" src="inc/calendar.js"></script>
	</HEAD>
	<body>
	    <form id="Form1" method="post" runat="server">
            <div id="container">
                <uc1:Header id="Header1" runat="server"></uc1:Header>
                <!--位置导航开始-->
                <div class="path">
                    <a href="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>default.aspx<%}else{%>Index.<%=config.html%><%}%>">
                        <%=GetResourceString("Home")%>
                    </a>>
                    <%=GetResourceString("MemberCenter")%>
                    >
                    <%=GetResourceString("SubAgent")%>
                </div>
                <!--位置导航结束-->
                <div id="content">
                    <div id="content_left_side">
                        <!--会员中心导航开始-->
                        <uc1:MemberMenu id="MemberMenu1" runat="server">
                        </uc1:MemberMenu>
                        <!--会员中心导航结束-->
                    </div>
                    <div id="content_middle_side">
                        <!--内容开始-->
                        <div class="mframe">
                            <div class="tl"></div>
                            <div class="tr"></div>
                            <div class="tm"><div class="on"><%=GetResourceString("SubAgent")%></div></div>
                            <div class="ml"></div>
                            <div class="mr"></div>
                            <div class="mm">
                                <div style="float: left;">
                                    <%=GetResourceString("SubAgentsCount")%>：<span style="color: Blue;"><%=GetTotalSubAgent()%></span></div>
                                <asp:DataGrid ID="dgOrderList" runat="server" AutoGenerateColumns="False" DataKeyField="AgentID"
                                    Width="100%" HorizontalAlign="Center" BorderWidth="1" BorderColor="#CCCCCC">
                                    <ItemStyle BackColor="White"></ItemStyle>
                                    <HeaderStyle BackColor="#E4E3E1"></HeaderStyle>
                                    <Columns>
                                        <asp:TemplateColumn HeaderText="会员账号">
                                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                            <ItemStyle HorizontalAlign="Center" Height="20px" Width="8%"></ItemStyle>
                                            <ItemTemplate>
                                                <%# DataBinder.Eval(Container.DataItem, "MemberName")%>
                                            </ItemTemplate>
                                        </asp:TemplateColumn>
                                        <asp:TemplateColumn HeaderText="代理号">
                                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                            <ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
                                            <ItemTemplate>
                                                <%# DataBinder.Eval(Container.DataItem, "AgentNo")%>
                                            </ItemTemplate>
                                        </asp:TemplateColumn>
                                        <asp:TemplateColumn HeaderText="地址">
                                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                            <ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
                                            <ItemTemplate>
                                                <%# DataBinder.Eval(Container.DataItem, "Address")%>
                                            </ItemTemplate>
                                        </asp:TemplateColumn>
                                        <asp:TemplateColumn HeaderText="电话">
                                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                            <ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
                                            <ItemTemplate>
                                                <%# DataBinder.Eval(Container.DataItem, "PhoneNumber")%>
                                            </ItemTemplate>
                                        </asp:TemplateColumn>
                                        <asp:TemplateColumn HeaderText="操作">
                                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                            <ItemStyle HorizontalAlign="Center" Width="5%"></ItemStyle>
                                            <ItemTemplate>
                                                <a href='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>MyAgent.aspx?MemberID=<%# DataBinder.Eval(Container.DataItem, "MemberID")%>'>
                                                    <%=GetResourceString("BusinessShow")%>
                                                </a>
                                            </ItemTemplate>
                                        </asp:TemplateColumn>
                                    </Columns>
                                </asp:DataGrid>
                            </div>
                            <div class="bl">
                            </div>
                            <div class="br">
                            </div>
                            <div class="bm">
                            </div>
                        </div>
                        <!--内容结束-->
                    <div style="clear: both;">
                    </div>
                </div>
                <uc1:Helper id="Helper1" runat="server"></uc1:Helper>
                <uc1:Footer id="Footer1" runat="server"></uc1:Footer>
            </div>
        </div>
		</form>
	</body>
</HTML>
