<%@ page language="C#" masterpagefile="~/member/MemberMasterPage.master" autoeventwireup="true" inherits="V5Shop.NewMember.User_ShopCard_Payment, V5Shop.Member" title="购物卡支付" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   <script type="text/javascript" language="javascript">
        function InitCardValue(obj){
            var txtCardNumber = document.getElementById('<%=txtCardNumber.ClientID %>');
            var txtPassword = document.getElementById('<%=txtPassword.ClientID %>');
            var selectedValue = obj.options[obj.selectedIndex].value;
            var selectedText = obj.options[obj.selectedIndex].innerHTML;
            
            if(selectedValue == ""){
                txtCardNumber.value = "";
                txtPassword.value = "";
            }else{
                txtCardNumber.value = selectedText;
                txtPassword.value = selectedValue;
            }
        }
    </script>
    <div style="float: left; width: 760px">
        <div>
            <img src="images/list/top-1.gif" /></div>
        <div style="border-right: #c5dce7 1px solid; padding-right: 3px; padding-left: 2px;
            padding-bottom: 3px; width: 754px; padding-top: 3px; height: 693px">
            <div style="background: url(images/list/a-1.gif); width: 739px; line-height: 30px;
                height: 30px">
                <div style="padding-left: 10px; font-weight: bold; font-size: 14px; float: left;
                    color: #014d7f">



购物卡支付</div>
                <div style="padding-right: 10px; float: right">
                    <font color="#ff0000">*</font>表示该项必填</div>
            </div>
            <div class="account">
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <th width="19%">
                            订单号：</th>
                        <td width="81%">
                   <asp:Label ID="lblOrderNumber" runat="server" ForeColor="#999999"/>
                        </td>
                    </tr>
                  
                  
                    <tr>
                        <th width="19%">
                      购物卡支付的金额：</th>
                        <td width="81%">
                   <asp:Label ID="lblTotalPrice" runat="server" Font-Bold="true" ForeColor="red"></asp:Label> 
                        </td>
                    </tr>
                    
                    
                      <tr>
                        <th width="19%">
                            请输入您的购物卡号：</th>
                        <td width="81%">
                      <asp:TextBox ID="txtCardNumber" runat="server"></asp:TextBox>  
        <asp:DropDownList ID="ddlCardList" runat="server" onchange="return InitCardValue(this)"></asp:DropDownList>
                        </td>
                    </tr>
                    
                    
                      <tr>
                        <th width="19%">
                            请输入您的支付密码：</th>
                        <td width="81%">
                   <asp:TextBox TextMode="Password" ID="txtPassword" runat="server"></asp:TextBox> 
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword"
            ErrorMessage="请输入密码"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    
                    
                    
                      
                    
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                        
                           <asp:Button ID="btnSubmit" runat="server" Text="用购物卡支付" OnClick="btnSubmit_Click" CssClass="input_bg2" />
        <input id="btnRedirect" type="button" value="返回订单" class="input_bg2" onclick="location.href='<% =strBackUrl %>';"/>
        
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div>
            <img src="images/list/bottom-1.gif" /></div>
    </div>
      <asp:Label ID="lblSuccess" runat="server" Text="支付成功" Visible="false"></asp:Label>
    <asp:Label ID="lblChoice" runat="server" Text=" -请选择您的购物卡-" Visible="false"></asp:Label>
      <asp:Label ID="lblMiss" runat="server" Text="购物卡不存在或者密码错误！" Visible="false"></asp:Label>
        <asp:Label ID="lblCardNoFull" runat="server" Text="购物卡内金额不足，请选择其他的支付方式！" Visible="false"></asp:Label>
      <asp:Label ID="lblIsLock" runat="server" Text="购物卡已经被锁定，请选择其他的支付方式！" Visible="false"></asp:Label>
    
    

</asp:Content>