<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Member.User_Address_Manage, V5Shop.Member" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>
<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" 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 runat="server">
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/membercss.css" rel="stylesheet" type="text/css" />
    <title>威博单用户系统</title>

    <script type="text/javascript" language="javascript" src="Js/Common.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <div>
          <table border="0" cellpadding="5" cellspacing="0" class="membertable">
            <tr>
              <td height="20" colspan="2" background="../images/user/tbj10.gif" bgcolor="#65697A"><font color="FFFFFF"><strong><asp:Label ID="Label6" runat="server" Text="- 送货地址管理 -" style="color:#ffffff;font-weight:bold;" />          
              </strong></font></td>
            </tr>
            <tr>
              <td colspan="2" align="center" bgcolor="#FFFFFF"><div id="content" class="opreate">
                  <div style="padding-right: 25px; padding-left: 25px; padding-bottom: 3px; color: #4b6888; padding-top: 3px; border-bottom: #cccccc 1px solid">
                    <input name="checkbox" type="checkbox" class="checkbox" id="CheckAllBox" onclick="CheckAll()" /> 
                    全选
        　    <asp:LinkButton ID="btnAdd" runat="server" ForeColor="#4B6888" meta:resourcekey="btnAddResource2" OnClick="btnAdd_Click"><img src="images/icon/key_add.gif" alt="Read/Write Property"/> 添加</asp:LinkButton>
        　    <asp:LinkButton ID="btnEdit" runat="server" CausesValidation="False" ForeColor="#4B6888" meta:resourcekey="btnEditResource2" OnClick="btnEdit_Click" OnClientClick="return CheckEdit()"><img src="images/icon/key_edit.gif" alt="编辑"/> 编辑</asp:LinkButton>
        　    <asp:LinkButton ID="btnDel" runat="server" CausesValidation="False" ForeColor="#4B6888" meta:resourcekey="btnDelResource2" OnClick="btnDel_Click" OnClientClick="return CheckDel()"><img src="images/icon/key_delete.gif" alt="删除"/> 删除</asp:LinkButton>
                  </div>
                <div class="listborder">
                    <cc1:V5ShopGridView ID="GridViewShow" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CssClass="datalist" EmptyDataText="没有任何可用信息！" HeaderStyle-ForeColor="#000000" PageSize="15">
                      <PagerSettings Mode="NumericFirstLast" />
                      <Columns>
                      <asp:TemplateField ItemStyle-Width="5%" meta:resourcekey="DetilData">
                        <itemtemplate>
                          <input name="checkbox2" type="checkbox" class="checkbox" id="CheckBoxID"
                                                                                        onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" value='<%# Eval("ID") %>' runat="server" />
                        </itemtemplate>
                        <itemstyle horizontalalign="Center" />          
                      </asp:TemplateField>
                      <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" />
                      <asp:BoundField DataField="Name" HeaderText="收货人" SortExpression="Name" />
                      <asp:BoundField DataField="NickName" HeaderText="称呼" SortExpression="NickName" />
                      <asp:BoundField DataField="Email" HeaderText="电子邮件" SortExpression="Email" />
                      <asp:BoundField DataField="Address" HeaderText="详细地址" SortExpression="Address" />
                      <asp:BoundField DataField="PostCode" HeaderText="邮编" SortExpression="PostCode" />
                      <asp:BoundField DataField="Tel" HeaderText="电话" SortExpression="Tel" />
                      <asp:BoundField DataField="Moblie" HeaderText="手机" SortExpression="Moblie" />
                      <asp:BoundField DataField="Flag" HeaderText="标志性建筑" SortExpression="Flag" />
                      <asp:BoundField DataField="BestTime" HeaderText="最佳送货时间" SortExpression="BestTime" />
                      <asp:TemplateField meta:resourcekey="DetilData" HeaderText="默认地址" SortExpression="IsDefault">
                        <itemtemplate>
                          <asp:Label ID="lblIsDefault" runat="server" 
                                                                                        Text='<%# FormatState("IsDefault", DataBinder.Eval(Container, "DataItem(IsDefault)","{0}")) %>'></asp:Label>
                        </itemtemplate>
                        <itemstyle horizontalalign="Center"/>          
                      </asp:TemplateField>
                      </Columns>
                      <HeaderStyle CssClass="category" ForeColor="Black" />          
                  </cc1:V5ShopGridView>
                  </div>
              </div>
                  <div id="hiddenfield">
                    <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
                    <asp:HiddenField ID="PageIndex" runat="server" Value="0" />
                    <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0" />
                    <uc1:HiddenField ID="Alert" runat="server" />
                </div></td>
            </tr>
          </table>
        </div>
    </form>
</body>
</html>
