<%@ page language="C#" autoeventwireup="true" inherits="ims.OrderVerify, ims.web" trace="false" enableviewstatemac="false" enableEventValidation="false" %>
<!DOCTYPE html>
<html id="OrderVerify">
<head runat="server">
    <title>订单确认</title><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width,initial-scale=1">
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="s1" runat="server" OnAsyncPostBackError="AsyncError">
            <CompositeScript Path="js/msajax.js" ScriptMode="Release">
                <Scripts>
                    <asp:ScriptReference Name="WebForms.js" Assembly="System.Web" /><asp:ScriptReference Name="MicrosoftAjax.js" /><asp:ScriptReference Name="MicrosoftAjaxWebForms.js" />
                </Scripts>
            </CompositeScript>
        </asp:ScriptManager>
        <div class="pageTitle">订单确认</div>
        <div class="highlight mbottom_l" runat="server" id="RuleMent"></div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        <div runat="server" id="divSendWays">
        <div class="blkTitle">送货方式</div>
        <div class="lightarea">
            <asp:RadioButtonList ID="rblSendWays" runat="server" RepeatDirection="horizontal" RepeatLayout="flow" OnSelectedIndexChanged="rblSendWays_Changed" AutoPostBack="true">
            </asp:RadioButtonList>
        </div>
        </div>
        
        <div class="blkTitle mtop_l">送货地址</div>
        <div class="lightarea" id="adds">
            <div>送货地址：<asp:TextBox ID="tbAddress" runat="server"></asp:TextBox></div>
            <div>邮政编码：<asp:TextBox ID="tbZip" runat="server"></asp:TextBox></div>
            <div>　联系人：<asp:TextBox ID="tbContactName" runat="server"></asp:TextBox></div>
            <div>联系电话：<asp:TextBox ID="tbPhone" runat="server"></asp:TextBox></div>
            <div>联系邮箱：<asp:TextBox ID="tbEmail" runat="server"></asp:TextBox></div>
        </div>

        <div class="blkTitle mtop_l" runat="server" id="paywayBlock">付款方式</div>
        <div class="lightarea" id="divPayWays" runat="server"></div>

        <div class="blkTitle">发票信息</div>
        <div class="lightarea">
            <asp:CheckBox ID="cbNeedInvoice" runat="server" AutoPostBack="true" OnLoad="cbNeedInvoice_Changed" OnCheckedChanged="cbNeedInvoice_Changed" Text="需要发票" />
            <span runat="server" id="InvoiceDiv">- 抬头：<asp:TextBox ID="tbInvoiceTitle" runat="server"></asp:TextBox></span>
        </div>
        
        <div class="blkTitle">订单金额</div>
        <div class="lightarea">
            商品总金额：<asp:Label ID="lblAmount" runat="server" ForeColor="red"></asp:Label>　<asp:HyperLink ID="HyperLink1" NavigateUrl="~/cart.aspx" runat="server">修改订单</asp:HyperLink>
            <div runat="server" id="ruleApply"></div>
        </div>
        
        <div class="blkTitle">订单备注</div>
        <div class="lightarea">
            <asp:TextBox ID="tbMent" runat="server" Rows="4" TextMode="MultiLine"></asp:TextBox>
        </div>
        
        <div class="footBtnArea">
            <div id="submiting" class="gray hide">正在提交，请稍候…</div>
            <asp:Button ID="btnSubmit" CssClass="btn" OnClick="OrderSubmit" OnClientClick="setButtonVisible(false);" runat="server" Text="提交订单" />
            <input type="button" id="btnBack" onclick="history.go(-1);" value="返回" class="btn" />
        </div>
        <br />
        </ContentTemplate>
        </asp:UpdatePanel>
    <script src="js/comm.js"></script>
    <script>
        function setButtonVisible(visible) {
            $("#btnSubmit,#btnBack").css("display", visible ? "" : "none");
            $("#submiting").css("display", visible ? "none" : "block");
        }
        function showPayMent(e) {
            var rbs = document.getElementsByName(e.name);
            var mentDiv;
            for (var i = 0; i < rbs.length; i++) {
                mentDiv = $f(rbs[i].id + "_ment");
                if (mentDiv) mentDiv.style.display = "none";
            }
            mentDiv = $f(e.id + "_ment");
            if (mentDiv) mentDiv.style.display = "block";
        }
    </script>
    </form>
</body>
</html>