<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.NewMember.User_Address_Operate, V5Shop.Member" title="收货地址管理" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link href="css.css" rel="stylesheet" type="text/css" />
    <link href="Js/calendar-system.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript" src="Js/Common.js"></script>
    <script type="text/javascript" language="javascript" src="Js/Calendar.js"></script>
    <script type="text/javascript" language="javascript" src="Js/Calendar-Setup.js"></script>
    <script type="text/javascript" language="javascript" src="Js/Calendar-zh.js"></script>
    <script type="text/javascript" language="javascript" src="Js/mootools.js"></script>
</head>
<body>
    <form id="form1" runat="server">
      
  <div id="top">
  <div class="div1 top_1">
    <div class="left top_1"><%=LoginID%> 您好，欢迎光临！<a href="../logout.aspx" class="size">[退出]</a></div>
	<div class="right top_1"><img src="images/top/top-5.gif" align="absmiddle" /> <a href="../index.aspx" class="size">商城首页</a> │ <img src="images/top/top-6.gif" align="absmiddle" /> <a href="../cart.aspx" class="size">购物车</a> │ <a href="../content.aspx?wd=about" class="size">关于我们</a> │ <a href="../content.aspx?wd=contact" class="size">联系我们</a> </div>
  </div>
</div>
<div class="div1">
  <div class="left"><img src="images/guangao/logo.gif" alt="建议LOGO图片不超过445*50" /></div>
  <div class="top_2">
    <div class="right"><img src="images/top/top-3.gif" /></div>
	<div class="top_3">
        <asp:DropDownList ID="ddlType" runat="server">
        <asp:ListItem Value="p">查询商品</asp:ListItem>
            <asp:ListItem Value="a">查询文章</asp:ListItem>
            <asp:ListItem Value="n">发货通知</asp:ListItem>
        </asp:DropDownList>&nbsp;
        <asp:TextBox ID="txtSearch" runat="server" Width="330px" ></asp:TextBox>
	  <asp:ImageButton ID="btnSearch"
          runat="server" ImageUrl="images/top/top-4.gif" OnClick="btnSearch_Click" CausesValidation="False" />
          </div>
	<div class="right"><img src="images/top/top-1.gif" /></div>
  </div>
<div class="clear"></div></div>
<div class="div1 banner1"><img src="images/guangao/img-1.jpg" /></div>
<div class="div1 title">
  <div class="left"><img src="images/top/img-1.gif" /></div>
  <div class="title_left"><a href="index.aspx" style="color:White">我的会员中心</a> </div>
  <div class="right"><img src="images/top/img-4.gif" /></div>
  <div class="title_right">
    <div class="<%="0".Equals(InBox)?"title_right1":"title_right1b" %>"></div>
	<div class="<%="0".Equals(InBox)?"title_right2":"title_right2b" %>"><a href="User_Message_Manage.aspx?s=1" style="color:White">站内消息(<%=InBox%>)</a></div>
	<div class="<%="0".Equals(InBox)?"title_right3":"title_right3b" %>"></div>
	<div class="<%="0".Equals(SendCount)?"title_right1":"title_right1b" %>"></div>
	<div class="<%="0".Equals(SendCount)?"title_right2":"title_right2b" %>"><a href="User_UserOrder_Manage.aspx?OrderStatus=3" style="color:White">确认收货(<%=SendCount %>)</a></div>
	<div class="<%="0".Equals(SendCount)?"title_right3":"title_right3b" %>"></div>
	<div class="<%="0".Equals(NonPayCount)?"title_right1":"title_right1b" %>"></div>
	<div class="<%="0".Equals(NonPayCount)?"title_right2":"title_right2b" %>"><a href="User_UserOrder_Manage.aspx?OrderStatus=0" style="color:White" > 需要支付的订单(<%=NonPayCount%>)</a> </div>
	<div class="<%="0".Equals(NonPayCount)?"title_right3":"title_right3b" %>"></div>
  </div>
</div>
<div class="div1">
<div id="index_left">
    <div><img src="images/index/left-1.gif" /></div>
	<div class="left_list">
	  <script type="text/javascript">
	
	  function ShowOrHidden(val)
	  {
	     var selfHidden=document.getElementById("selfHidden");
	     var selfShow=document.getElementById("selfShow");
	     var myCartHidden=document.getElementById("myCartHidden");
	     var myCartShow=document.getElementById("myCartShow");
	     
	     var myCardHidden=document.getElementById("myCardHidden");
	     var myCardShow=document.getElementById("myCardShow");
	     
	       var myCommentHidden=document.getElementById("myCommentHidden");
	     var myCommentShow=document.getElementById("myCommentShow");
	     if(val=="0")
	     {
	            selfHidden.style.display="none";
	            selfShow.style.display="block";
	     }
         else if(val=="1")
         {
            selfHidden.style.display="block";
            selfShow.style.display="none";
         }
         
         if(val=="2")
	     {
	            myCartHidden.style.display="none";
	            myCartShow.style.display="block";
	     }
         else if(val=="3")
         {
            myCartHidden.style.display="block";
            myCartShow.style.display="none";
         }
         
         if(val=="4")
	     {
	            myCardHidden.style.display="none";
	            myCardShow.style.display="block";
	     }
         else if(val=="5")
         {
            myCardHidden.style.display="block";
            myCardShow.style.display="none";
         }
         
          if(val=="6")
	     {
	            myCommentHidden.style.display="none";
	            myCommentShow.style.display="block";
	     }
         else if(val=="7")
         {
            myCommentHidden.style.display="block";
            myCommentShow.style.display="none";
         }
	  }
	  
	  </script>
	  
	  <div id="myCartHidden" style="display:none">
	    <dl>
	    <dt ><font>我的购物车</font><span><img src="images/index/left-6.gif"  onclick="ShowOrHidden(2)"/></span></dt>
	    </dl>
	  </div>
	  <div id="myCartShow">
	  <dl>
	    <dt><font>我的购物车</font><span><img src="images/index/left-5.gif" onclick="ShowOrHidden(3)" /></span></dt>
		<dd><a href="../cart.aspx">我的购物车</a></dd>
		<dd class="left_bg left_bg2">
        	<a href="User_UserOrder_Manage.aspx" >订单管理</a>
            <span ><a href="User_UserOrder_Manage.aspx?OrderStatus=0">待付款订单</a></span>
            <span><a href="User_UserOrder_Manage.aspx?OrderStatus=3">已发货订单</a></span>
            <span><a href="User_UserOrder_Manage.aspx?OrderStatus=5">完成订单</a></span>
        </dd>
		<dd class='<%=strPage.Contains("User_UserScore") ? "list_leftbg2" : "" %>' ><a href="User_UserScore_Manage.aspx">我的积分</a></dd>
		<dd class='<%=strPage.Equals("User_Collect_Manage.aspx") ? "list_leftbg2" : "" %>'><a href="User_Collect_Manage.aspx">我的收藏</a></dd>
		<dd class='<%=strPage.Equals("User_Message_Manage.aspx") ? "list_leftbg2" : "" %>'> <a href="User_Message_Manage.aspx">站内短信</a></dd>
	  </dl>
	  </div>
	  
	  <div id="selfHidden" style="display:none">
	    <dl>
	    <dt ><font>个人资料</font><span><img src="images/index/left-6.gif"  onclick="ShowOrHidden(0)"/></span></dt>
	    </dl>
	  </div>
	  <div id="selfShow">
	  <dl>
	    <dt><font>个人资料</font><span><img src="images/index/left-5.gif"  onclick="ShowOrHidden(1)" /></span></dt>
		<dd class='<%=strPage.Equals("User_Informaion_Manage.aspx") ? "list_leftbg2" : "" %>'><a href="User_Informaion_Manage.aspx">编辑个人资料</a></dd>
		<dd class='<%=strPage.Equals("User_Address_Manage.aspx") ? "list_leftbg2" : "" %>'><a href="User_Address_Manage.aspx">收货地址管理</a></dd>
		<dd class='<%=strPage.Equals("User_Password_Manage.aspx") ? "list_leftbg2" : "" %>'><a href="User_Password_Manage.aspx">修改密码</a></dd>
		<dd class='<%=strPage.Equals("User_Email_Manage.aspx") ? "list_leftbg2" : "" %>'><a href="User_Email_Manage.aspx">密码保护问题</a></dd>
	  </dl>
	  </div>
	  
	  <div id="myCardHidden" style="display:none">
	    <dl>
	    <dt ><font>我的会员卡</font><span><img src="images/index/left-6.gif"  onclick="ShowOrHidden(4)"/></span></dt>
	    </dl>
	  </div>
	  <div id="myCardShow">
	  <dl>
	    <dt ><font>我的会员卡</font><span><img src="images/index/left-5.gif"  onclick="ShowOrHidden(5)"/></span></dt>
		<dd class='<%=strPage.Equals("User_UserCard_Manage.aspx") ? "list_leftbg2" : "" %>'><a href="User_UserCard_Manage.aspx">我的会员卡</a></dd>
		<dd class='<%=strPage.Equals("User_ShopCard_Manage.aspx") ? "list_leftbg2" : "" %>'><a href="User_ShopCard_Manage.aspx">我的购物卡</a></dd>
		<dd class='<%=strPage.Equals("User_PriceCard_Manage.aspx") ? "list_leftbg2" : "" %>'><a href="User_PriceCard_Manage.aspx">我的充值卡</a></dd>
		<dd class='<%=strPage.Equals("User_Coupon_Manage.aspx") ? "list_leftbg2" : "" %>'><a href="User_Coupon_Manage.aspx">我的优惠卡</a></dd>
	  </dl>
	  </div>
	  <div id="myCommentHidden" style="display:none">
	    <dl>
	    <dt ><font>我的评价</font><span><img src="images/index/left-6.gif"  onclick="ShowOrHidden(6)"/></span></dt>
	    </dl>
	  </div>
	  <div id="myCommentShow">
	  <dl>
	    <dt><font>我的评价</font><span><img src="images/index/left-5.gif" onclick="ShowOrHidden(7)" /></span></dt>
		<dd class='<%=strPage.Equals("User_ProductReview_Manage.aspx") ? "list_leftbg2" : "" %>'><a href="User_ProductReview_Manage.aspx">商品评价</a></dd>
		<dd class='<%=strPage.Equals("User_ArticleReview_Manage.aspx") ? "list_leftbg2" : "" %>'><a href="User_ArticleReview_Manage.aspx">文章评价</a></dd>
		<dd class='<%=strPage.Equals("User_Gbook_Manage.aspx") ? "list_leftbg2" : "" %>'><a href="User_Gbook_Manage.aspx">我的留言</a></dd>
		<dd class='<%=strPage.Equals("Product_OutStock_List.aspx") ? "list_leftbg2" : "" %>'><a href="Product_OutStock_List.aspx">缺货登记</a></dd>
	  </dl>
	  </div>
	<div class="clear">
	</div>
	</div>
	
	
	<div><img src="images/index/left-3.gif" /></div>
  </div>

<div style="float:left; width:759px;">
    <div><img src="images/list/top-1.gif"  alt=""/></div>
	<div style="border-right:1px #C5DCE7 solid; width:753px;height:675px; padding:3px">
	  <div style="background:url(images/list/a-1.gif); width:738px; height:30px; line-height:30px">
	    <div style="float:left; font-weight:bold; color:#014D7F; font-size:14px; padding-left:10px">收货地址编辑</div>
		<div style="float:right; padding-right:10px"><font color="#ff0000">*</font>表示该项必填</div>
	  </div>
	  <div class="account">
	  <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <th width="19%"><span>*</span> 收货人姓名：</th>
    <td width="81%"><label>
        <asp:TextBox ID="txtName" runat="server" CssClass="input2" Width="200px" MaxLength="20"/>&nbsp;
                        <asp:RequiredFieldValidator ID="rfvName" runat="server" ControlToValidate="txtName" Display="Dynamic" ErrorMessage="必须输入！" ForeColor="Red"></asp:RequiredFieldValidator>
            
    </label></td>
  </tr>
  <tr>
    <th><span>*</span> 称呼：</th>
    <td>  <asp:RadioButtonList ID="rblNickName" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Value="1" Selected="True">先生</asp:ListItem>
                            <asp:ListItem Value="2">女士</asp:ListItem>
                        </asp:RadioButtonList></td>
  </tr>
  <tr>
    <th><span>*</span> 电子邮件：</th>
    <td>
      <asp:TextBox ID="txtEmail" runat="server" Width="200px" CssClass="input2" MaxLength="50"/>
                        <asp:RequiredFieldValidator ID="rfvEmail" runat="server" ControlToValidate="txtEmail" Display="Dynamic" ErrorMessage="必须输入！" ForeColor="Red"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                            ErrorMessage="输入格式不正确" ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
 
    
    
    </td>
  </tr>
  <tr>
    <th width="19%"><span>*</span> 详细地址：</th>
    <td width="81%"><label>
    <cc1:AreaBox ID="ddlAreaID" runat="server" />
           <asp:TextBox ID="txtAddress" runat="server" Width="200px" CssClass="input2" MaxLength="150"/>
           <asp:RequiredFieldValidator ID="rfvAddress" runat="server" ControlToValidate="txtAddress" Display="Dynamic" ErrorMessage="必须输入！" ForeColor="Red"></asp:RequiredFieldValidator>
                        
    </label></td>
  </tr>
  <tr>
  <asp:Repeater ID="rptUserFields" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td align="right" style="width: 20%; height: 30px;">
                                        <%#Eval("Name") %>：
                                        <input type="hidden" name="userFields" value='<%#Eval("keyword") %>' />
                                        <input type="hidden" name="userFieldsName" value='<%#Eval("Name") %>' />
                                    </td>
                                    <td align="left" bgcolor="#ffffff" style="width: 80%; height: 30px;">
                                    
                                        <%#Eval("Value") %>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
  </tr>
  <tr>
    <th width="19%"><span>*</span> 邮政编码：</th>
    <td width="81%"><label>
       <asp:TextBox ID="txtPostCode" runat="server" CssClass="input2" Width="200px" MaxLength="6" />
                        <asp:RegularExpressionValidator runat="server" ID="revPostCode" ControlToValidate="txtPostCode" Display="dynamic" ErrorMessage="格式无效，请输入6位的数字！" ForeColor="Red" ValidationExpression="^[\d]{6}$" />
                   
    </label></td>
  </tr>
  <tr>
    <th width="19%"><span>*</span> 固定电话：</th>
    <td width="81%"><label>
          <asp:TextBox ID="txtTel" runat="server" CssClass="input2" Width="200px" MaxLength="50" />
   <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator3" ControlToValidate="txtTel" Display="dynamic" ErrorMessage="格式无效，请输入电话号码！" ForeColor="Red" ValidationExpression="^\d{3,4}-\d{7,8}(-\d{3,4})?$" />
    
    </label></td>
  </tr>
  <tr>
    <th width="19%"><span>*</span> 手机号码：</th>
    <td width="81%"><label>
      <asp:TextBox ID="txtMoblie" runat="server" CssClass="input2" Width="200px" MaxLength="11" />&nbsp;
                        <asp:RequiredFieldValidator ID="rfvMoblie" runat="server" ControlToValidate="txtMoblie" Display="Dynamic" ErrorMessage="必须输入！" ForeColor="Red" />
                             <asp:RegularExpressionValidator runat="server" ID="txtPhone1" ControlToValidate="txtMoblie" Display="dynamic" ErrorMessage="格式无效，请输入正确手机号！" ForeColor="Red" ValidationExpression="^[\d]{11}$" />

                   
    </label></td>
  </tr>

  <tr>
    <td>&nbsp;</td>
    <td>
    
    <asp:Button ID="btnComfirm" runat="server"  Text="提交"  CssClass="input_bg" OnClick="btnComfirm_Click"/>
       
    <input type="button" class="input_bg" value="返回" onclick="window.location.href='User_Address_Manage.aspx'" />
    </td>
  </tr>
</table>

	  </div>
	</div>
	<div><img src="images/list/bottom-1.gif"  alt/></div>
  </div>
   <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
                <asp:HiddenField ID="IsEdit" runat="server" Value="0" />

 
       <div class="clear"></div>
        
   </div>
   
   <div class="banner_2"><img src="images/guangao/img-2.jpg" /></div>
<div class="copy">上海威博网络科技有限公司版权所有，本公司保留所有权利<br />
Copyright 2005-2007 web08.net. All rights reserved. <br />
所有商标与品牌均为其各自拥有者的财产。使用本网站即表示接受威博网服务协议及其所有附件。
</div>
 <asp:Label ID="lblParam" runat="server" Text="参数错误" Visible="false" ></asp:Label>
</form>
<script type="text/javascript">
var nStr="",pStr="",cStr="",cyStr="";
window.addEvent('domready', function() {
   $("ddlAreaID_Sel_0").addEvent("change", function(){
    getSelectArea();
    $("txtAddress").value=nStr;
   }); 
   $("ddlAreaID_Sel_1").addEvent("change", function(){
    getSelectArea();
    $("txtAddress").value=nStr+pStr;
   });
   $("ddlAreaID_Sel_2").addEvent("change", function(){
    getSelectArea();
    $("txtAddress").value=nStr+pStr+cStr;	
   });  
   
    $("ddlAreaID_Sel_3").addEvent("change", function(){
        getSelectArea();
        $("txtAddress").value=nStr+pStr+cStr+cyStr; 
    });                   
});
function getSelectArea(){
	nStr = $("ddlAreaID_Sel_0").getSelected()[0].get("text").replace("请选择","");
	pStr = $("ddlAreaID_Sel_1").getSelected()[0].get("text").replace("请选择","");	
	cStr = $("ddlAreaID_Sel_2").getSelected()[0].get("text").replace("请选择","");	
	cyStr = $("ddlAreaID_Sel_3").getSelected()[0].get("text").replace("请选择","");
}    
</script>
</body>
</html>
