<%@ Page Language="C#" AutoEventWireup="true"  EnableEventValidation="false" MasterPageFile="~/membercenter/membercenter.Master" CodeBehind="receaddress_edite.aspx.cs" Inherits="YXShop.Web.membercenter.accountrun.receaddress_edite" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="head">
   <link rel="stylesheet" href="../../admin/style/toolbar.css" type="text/css" />
    <link rel="stylesheet" href="../../admin/style/validator.css" type="text/css" />
    <script type="text/javascript" src="../../scripts/validate.js"></script>
    <script type="text/javascript" src="../../admin/scripts/public.js"></script>
    <script type="text/javascript" src="../../scripts/prototype.js"></script>
    <script type="text/javascript" language="javascript">
    
    
        function GetCity(controlid,code,value)
        {
            if (code.length>0){
             var control=$(controlid);
             var url="../../admin/plugin/getcity.aspx?parentid="+code; 
             new Ajax.Request(
                url,
                {
                    method: 'get',
                    encoding: 'GBK',
                    onSuccess: function(transport) 
                    {
                        var contentjson=eval("("+transport.responseText+")"); 
                        control.options.length=0;
                        control.options.add(new Option("请选择","")); 
                        for(var i=0;i<contentjson.city.length;i++)
                        {
                            
                            control.options.add(new Option(contentjson.city[i].content,contentjson.city[i].code)); 
                            if(value==contentjson.city[i].code)
                            {
                                control.options[i+1].selected=true;
                            }
                        }
                    }
                }
            );
           }
        }
        
        window.onload=function(){
            InitForm();
            <asp:Literal id="lblScript" runat="server"></asp:Literal>
        }
        
    </script>
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="pagetitle">
添加/编辑 收货地址管理
</asp:Content>
<asp:Content ID="Content3" runat="server" ContentPlaceHolderID="pageinfo">
<asp:LinkButton ID="lbtSave" runat="server" onclick="lbtSave_Click">保存</asp:LinkButton> 
&nbsp;<a href="receaddress_list.aspx">返回</a>
</asp:Content>
<asp:Content ID="Content4" runat="server" ContentPlaceHolderID="workspace">
<asp:Panel ID="pnlMsg" runat="server" Visible="false" CssClass="pnlReturnMessageErr">
    <asp:Literal ID="ltlMsg" runat="server"></asp:Literal>
</asp:Panel>

<table  class="form_table_input" border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
        <td class="form_table_input_info">联系人：</td>
        <td>
             <asp:TextBox ID="txtUserName" MaxLength="10"  runat="server"></asp:TextBox>
        </td> 
        <td>
            <asp:Panel ID="txtUserNameTip" runat="server"></asp:Panel>
        </td>    
   </tr> 
   
    <tr>
        <td class="form_table_input_info">移动电话：</td>
        <td>
            <asp:TextBox ID="txtMobile" MaxLength="24" runat="server"></asp:TextBox>
        </td> 
        <td>
            <asp:Panel ID="txtMobileTip" runat="server"></asp:Panel>
        </td>    
   </tr> 
   
    <tr>
        <td class="form_table_input_info">电话：</td>
        <td>
            <asp:TextBox ID="txtPhone" MaxLength="24" runat="server"></asp:TextBox>
        </td> 
        <td>
            <asp:Panel ID="txtPhoneTip" runat="server"></asp:Panel>
        </td>    
   </tr> 
   
    <tr>
        <td class="form_table_input_info">省份：</td>
        <td>
            <asp:DropDownList ID="ddlProvince" runat="server"></asp:DropDownList>
        </td> 
        <td>
            <div class="msgNormal">请选择收货地址所在的省份</div>
        </td>    
   </tr> 
   
    <tr>
        <td class="form_table_input_info">城市：</td>
        <td>
            <asp:DropDownList ID="ddlCity" runat="server"></asp:DropDownList>
        </td> 
        <td>
            <div class="msgNormal">请选择收货地址所在的城市</div>
        </td>    
   </tr> 
   
    <tr>
        <td class="form_table_input_info">地区：</td>
        <td>
           <asp:DropDownList ID="ddlBorough" runat="server"></asp:DropDownList>
        </td> 
        <td>
            <div class="msgNormal">请选择收货地址所在的地区</div>
        </td>    
   </tr> 
   
    <tr>
        <td class="form_table_input_info">详细地址：</td>
        <td>
            <asp:TextBox ID="txtAddress" MaxLength="200" CssClass="long_input"  runat="server"></asp:TextBox>
        </td> 
        <td>
            <asp:Panel ID="txtAddressTip" runat="server"></asp:Panel>
        </td>    
   </tr> 
   
    <tr>
        <td class="form_table_input_info">邮编：</td>
        <td>
            <asp:TextBox ID="txtZip" MaxLength="20" runat="server"></asp:TextBox>
        </td> 
        <td>
            <asp:Panel ID="txtZipTip" runat="server"></asp:Panel>
        </td>    
   </tr> 
   
    <tr>
        <td class="form_table_input_info">Email：</td>
        <td>
            <asp:TextBox ID="txtEmail" MaxLength="50" runat="server"></asp:TextBox>
        </td> 
        <td>
            <asp:Panel ID="txtEmailTip" runat="server"></asp:Panel>
        </td>    
   </tr> 
   
    <tr>
        <td class="form_table_input_info">标志建筑：</td>
        <td>
            <asp:TextBox ID="txtConstructionSigns" MaxLength="20" runat="server"></asp:TextBox>
        </td> 
        <td>
            <asp:Panel ID="Panel1" runat="server"></asp:Panel>
        </td>    
   </tr> 
   
    <tr>
        <td class="form_table_input_info">最佳送货时间：</td>
        <td>
            <asp:TextBox ID="txtConsignesTime" MaxLength="50" runat="server"></asp:TextBox>
        </td> 
        <td>
            <asp:Panel ID="Panel2" runat="server"></asp:Panel>
        </td>    
   </tr> 
   
    <tr>
        <td class="form_table_input_info">设为默认：</td>
        <td>
            <asp:RadioButtonList ID="rabState" runat="server" RepeatColumns="2" RepeatLayout="Flow">
                <asp:ListItem Value="0" Selected="True">否</asp:ListItem>
                <asp:ListItem Value="1">是</asp:ListItem>
            </asp:RadioButtonList>
        </td> 
        <td>
            <div class="msgNormal">注意：默认收货地址只能有一个</div>
        </td>    
   </tr> 
</table>
</asp:Content>
