<%@ page language="C#" autoeventwireup="true" inherits="user_m_address, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>我的收货地址</title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
    <link rel="stylesheet" href="/image/main.css" />
    <script type="text/javascript">
        function setdefault(userid, id)
        {
            D.Shop.BLL.B_ShopAddress.setDefault(userid, id,calldefault);
        }

        function calldefault(res)
        {
            window.location.href = 'buy.aspx';
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="main">
            <ul class="addressb">
                <asp:Repeater ID="RepAddress" runat="server" OnItemCommand="RepAddress_ItemCommand" OnItemDataBound="RepAddress_ItemDataBound">
                    <ItemTemplate>
                        <li>
                            <div class="addresslist">
                                <ul>
                                    <li class="l1"><%#Eval("Name") %><span><%#Eval("Tel") %></span></li>
                                    <li><%#Eval("Address") %></li>
                                </ul>
                            </div>
                            <div class="addressedit">
                                <asp:LinkButton ID="LinkButton2" runat="server" CommandName="Delete" CssClass="fa del" CommandArgument='<%#Eval("Id") %>'
                            OnClientClick="return confirm('您确定要移除该条信息吗?')">移除</asp:LinkButton><a href="setaddress.aspx?Id=<%#Eval("Id") %>" class="fa edit">编辑</a><asp:Literal ID="Literal1" runat="server"></asp:Literal>
                            </div>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
        </div>
        <div class="setaddress"><a href="setaddress.aspx" class="fa add1">添加收件人</a></div>
    </form>
</body>
</html>
