<%@ page language="C#" autoeventwireup="true" inherits="UserInfo_AddrList, App_Web_gjwkslq_" %>
<%@ register tagname="FenYe" tagprefix="Uc1" src="/ascx/fenYe.ascx" %>
<%@ Register Src="temp/top.ascx" TagName="pageTop" TagPrefix="uc1" %>
<%@ Register Src="temp/bottom.ascx" TagName="pageBottom" TagPrefix="uc1" %>
<%@ Register Src="temp/UserLeft.ascx" TagName="pageLeft" TagPrefix="uc1" %>
<!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>
    <title>编辑收货地址 - 会员首页</title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../css/fenye.css" rel="stylesheet" type="text/css" />
    <link href="green/css/style.css" rel="stylesheet" type="text/css" />
  <script src="/js/calendar.js" type="text/javascript" charset="gb2312"></script>
  <script src="/js/City.js" type="text/javascript" charset="gb2312"></script>
  <script src="/js/jsCommon.js" type="text/javascript" charset="gb2312"></script>
</head>
<body>
<uc1:pageTop runat="server" ID="PageTop" />
<div id="user_box">
  <uc1:pageLeft runat="server" ID="PageLeft" />
  <div id="user_box_right">
    <div class="clearfix usBox_y" style="_height:1%;">
      <h5 style="border-bottom:0;"><span style="padding-left:10px;">收货地址</span></h5>
      <form id="Form1" runat="server">
        <table width="100%" border="0" cellpadding="5" cellspacing="1" class="bgTable" style="margin-bottom:-1px;">
          <tr class="bgWhite">
            <td width="15%" align="right">设为默认地址： </td>
            <td colspan="3"><asp:CheckBox runat="server" ID="ChkblDefault" /><b style="color:Red;">备注：多个默认地址时，系统将会把最后一个当成默认地址</b></td>
          </tr>
          <tr class="bgWhite">
            <td width="15%" align="right">收货人： </td>
            <td width="35%"><asp:TextBox runat="server" ID="txtAUserName"></asp:TextBox>*</td>
            <td width="15%" align="right">联系手机： </td>
            <td width="35%"><asp:TextBox runat="server" ID="txtAmobile" onkeyup="Onlynumber(this)" MaxLength="11"></asp:TextBox>*</td>
          </tr>
          <tr class="bgWhite">
            <td align="right">城市： </td>
            <td>
                <select name="DropAsheng" id="DropAsheng" onchange="areaMap1.city(this.value);"></select>
                <select name="DropAcity" id="DropAcity"></select>
            </td>
            <script type="text/javascript">
                var areaMap1 = new AreaMap('DropAsheng','DropAcity');
                    areaMap1.province('<%=Asheng %>','<%=ACity %>');
            </script>
            <td align="right">详细街道： </td>
            <td><asp:TextBox runat="server" ID="txtAadd" MaxLength="50"></asp:TextBox>*</td>
          </tr>
          <tr class="bgWhite">
            <td align="right">邮政编码： </td>
            <td><asp:TextBox runat="server" ID="txtAcode" onkeyup="Onlynumber(this)" MaxLength="6"></asp:TextBox></td>
            <td align="right">联系电话： </td>
            <td><asp:TextBox runat="server" ID="txtAtel" onkeyup="Onlynumber(this)" MaxLength="15"></asp:TextBox>如：05925553409</td>
          </tr>
          <tr class="bgWhite">
            <td align="center" colspan="4">
              <asp:Button ID="BtnInsert" Text="新 增" runat="server" CssClass="button" OnClick="BtnInsert_Click" />
              <asp:Button ID="BtnEdit" Text="修 改" runat="server" CssClass="button" OnClick="BtnEdit_Click" />
              <asp:Button ID="BtnDelete" Text="删 除" runat="server" CssClass="button" OnClick="BtnDelete_Click" />
            </td>
          </tr>
        </table>
        <asp:DataGrid ID="DataGrid1" runat="server" AutoGenerateColumns="False" CssClass="bgTable"
             CellPadding="0" CellSpacing="1" GridLines="None" Width="100%"
             OnSelectedIndexChanged="DataGrid1_SelectedIndexChanged">
          <ItemStyle CssClass="bgWhite" />
          <SelectedItemStyle CssClass="Select" />
          <Columns>
          <asp:TemplateColumn HeaderText=" " ItemStyle-Width="10px">
            <ItemTemplate> </ItemTemplate>
          </asp:TemplateColumn>
          <asp:TemplateColumn HeaderText="选择">
            <ItemTemplate>
              <asp:LinkButton runat="server" ID="all" CommandName="Select" Text="选择"></asp:LinkButton>
            </ItemTemplate>
          </asp:TemplateColumn>
          <asp:BoundColumn DataField="blDefault2" HeaderText="默认地址" />
          <asp:BoundColumn DataField="AUserName" HeaderText="收货人" />
          <asp:BoundColumn DataField="Atel" HeaderText="联系电话" />
          <asp:BoundColumn DataField="Amobile" HeaderText="手机号码" />
          <asp:BoundColumn DataField="Acode" HeaderText="邮政编码" />
          <asp:TemplateColumn HeaderText=" " ItemStyle-Width="10px">
            <ItemTemplate> </ItemTemplate>
          </asp:TemplateColumn>        
          <asp:TemplateColumn HeaderText="变量" Visible="false">
            <ItemTemplate>
              <asp:Literal runat="server" ID="LitAsheng" Visible="false" Text='<%#DataBinder.Eval(Container.DataItem, "Asheng")%>'></asp:Literal>
              <asp:Literal runat="server" ID="LitAcity" Visible="false" Text='<%#DataBinder.Eval(Container.DataItem, "ACity")%>'></asp:Literal>
              <asp:Literal runat="server" ID="LitAadd" Visible="false" Text='<%#DataBinder.Eval(Container.DataItem, "Aadd")%>'></asp:Literal>
              <asp:Literal runat="server" ID="Uid" Visible="false" Text='<%#DataBinder.Eval(Container.DataItem, "AId")%>'></asp:Literal>
              <asp:Literal runat="server" ID="blDefault" Visible="false" Text='<%#DataBinder.Eval(Container.DataItem, "blDefault")%>'></asp:Literal>
            </ItemTemplate>
          </asp:TemplateColumn>
          </Columns>
          <HeaderStyle CssClass="bgWhite" />
        </asp:DataGrid>
        <div class="Userfy" style="border-top:none; padding-left:10px;">
          <Uc1:FenYe runat="server" ID="FenYe1" />
        </div>        
      </form>
      <br />
    </div>
  </div>
</div>
<uc1:pageBottom runat="server" ID="PageBottom" />
</body>
</html>