<%@ 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" %>
<%@ Page language="c#" Codebehind="MyAddresses.aspx.cs" AutoEventWireup="false" Inherits="XpShop.WebUI.MyAddresses" %>
<!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>MyAddresses</title>
		<!--#include file="../../inc/head.inc"-->		
		<script src="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>inc/MyAddresses.js" type="text/javascript"></script>
		<script src="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>inc/Address.js" type="text/javascript"></script>
		<script type="text/javascript">
		    //以下变量在MyAddresses.js中用到
		    var strSelectArea = '<%=GetResourceString("SelectArea")%>';
		    var strPleaseLogin = '<%=GetResourceString("MsgPleaseSignInFirst")%>';
		    var strNewAddressAlert = '<%=GetResourceString("NewAddressAlert")%>';
		    var strCheckOut_Alert1 = '<%=GetResourceString("CheckOut_Alert1")%>';
		</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("Favourites")%></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("AddressBook")%></div></div>
						<div class="ml"></div>
						<div class="mr"></div>
						<div class="mm">
					       <asp:datalist id="dlAddress" runat="server" DataKeyField="ReceiverAddressID" RepeatColumns="2" RepeatDirection="Horizontal" RepeatLayout="Table"
								CellSpacing="0" CellPadding="0" Width="90%" Visible="true" GridLines="None">
								<ItemStyle CssClass="alignCenterTop" />
								<ItemTemplate>
									<table cellpadding="0" cellspacing="10" border="0">
										<tr>
											<td><%=GetResourceString("ReceiverName")%>：<%#DataBinder.Eval(Container.DataItem,"ReceiverName")%></td>
										</tr>
										<tr>
											<td><%=GetResourceString("Area")%>：<%#GetArea(DataBinder.Eval(Container.DataItem,"ReceiverAddress").ToString())%></td>
										</tr>
										<tr>
											<td><%=GetResourceString("DetailAddress")%>：<%#GetAddress(DataBinder.Eval(Container.DataItem,"ReceiverAddress").ToString())%></td>
										</tr>
										<tr>
											<td><%=GetResourceString("OrderEmail_Postalcode")%>：<%#DataBinder.Eval(Container.DataItem,"ReceiverZip")%></td>
										</tr>
										<tr>
											<td><%=GetResourceString("PhoneNumber")%>：<%#DataBinder.Eval(Container.DataItem,"ReceiverPhone")%></td>
										</tr>
										<tr>
											<td><%=GetResourceString("Mobile")%>：<%#DataBinder.Eval(Container.DataItem,"ReceiverMobile")%></td>
										</tr>
										<tr>
											<td style="padding-left:10px;">
												<a href="MyAddresses.aspx?action=update&receiverID=<%#DataBinder.Eval(Container.DataItem,"ReceiverAddressID")%>" class="link_update"><%=GetResourceString("Modify")%></a>
												&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
												<a href="MyAddresses.aspx?action=delete&receiverID=<%#DataBinder.Eval(Container.DataItem,"ReceiverAddressID")%>"><%=GetResourceString("Delete")%></a>
											</td>
										</tr>
										<tr>
											<td>
												<hr noshade color="#cccccc" size="1" style="border-style: dotted; border-width: 1" width="100%">
											</td>
										</tr>
									</table>
								</ItemTemplate>
							</asp:datalist>
						</div>
					    <div class="bl"></div>
					    <div class="br"></div>
					    <div class="bm"></div>
					</div>
					
					<div class="mframe" id="addNewAddr"">
						<div class="tl"></div>
						<div class="tr"></div>
						<div class="tm"><div class="on"><%=GetResourceString("AddNewAddress")%></div></div>
						<div class="ml"></div>
						<div class="mr"></div>
						<div class="mm">
					      <table align="center" cellpadding="0" cellspacing="0" border="0">
							<tr>
								<td colspan="2" height="20"></td>
							</tr>
							<tr>
								<td class="ll"><%=GetResourceString("ReceiverName")%></td>
								<td class="rr"><asp:textbox id="txtRName" runat="server"></asp:textbox><FONT color="red">*</FONT></td>
							</tr>
							<tr>
								<td class="ll"><%=GetResourceString("Area")%></td>
								<td class="rr">
									<asp:dropdownlist id="ddlTopAreas" name="ddlTopAreas" runat="server" AutoPostBack="false">
										<asp:ListItem Value="0">选择地区</asp:ListItem>
									</asp:dropdownlist>
									<asp:dropdownlist id="ddlSubAreas" name="ddlSubAreas" runat="server" AutoPostBack="false">
										<asp:ListItem Value="0">选择地区</asp:ListItem>
									</asp:dropdownlist>
									<asp:dropdownlist id="ddlThirdAreas" name="ddlThirdAreas" runat="server" AutoPostBack="false">
										<asp:ListItem Value="0">选择地区</asp:ListItem>
									</asp:dropdownlist>
									<font color="red">*</font>
								</td>
							</tr>
							<tr>
								<td class="ll"><%=GetResourceString("DetailAddress")%></td>
								<td class="rr"><asp:textbox id="txtRAddress" runat="server" Width="300px"></asp:textbox><FONT color="red">*</FONT></td>
							</tr>
							<tr>
								<td class="ll"><%=GetResourceString("OrderEmail_Postalcode")%></td>
								<td class="rr"><asp:textbox id="txtRPostalcode" runat="server"></asp:textbox><FONT color="red">*</FONT></td>
							</tr>
							<tr>
								<td class="ll"><%=GetResourceString("Mobile")%></td>
								<td class="rr"><asp:textbox id="txtRMobile" runat="server"></asp:textbox><FONT color="red">*</FONT></td>
							</tr>
							<tr>
								<td class="ll"><%=GetResourceString("PhoneNumber")%></td>
								<td class="rr"><asp:textbox id="txtRPhone" runat="server"></asp:textbox></td>
							</tr>
							<tr>
								<td colspan="2" height="20" align="center">
									<asp:Button id="btnSubmit" runat="server" Text="Submit"></asp:Button>
								</td>
							</tr>
						</table>
						</div>
					    <div class="bl"></div>
					    <div class="br"></div>
					    <div class="bm"></div>
					</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>
		</form>
	</body>
</HTML>
