<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="getordkm.aspx.cs" Inherits="TW.UI.getordkm" %>


<!DOCTYPE html>
<html>
<head lang="en">
	
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv=X-UA-Compatible content=IE=EmulateIE9 />
<script type="text/javascript" src="/static/card/js/configweb.js"></script>
	<title>获取卡密_<%=config.SiteName %></title>
	<link rel="stylesheet" href="/static/card/css/public.css" />
    <link rel="stylesheet" href="/static/card/css/login.css" />
    <script type="text/javascript" src="/static/card/js/jquery-1.11.3.js"></script>
    <script type="text/javascript" src="/static/card/js/tools.js"></script>
    <script type="text/javascript">
        function searchkm() {
            var ordNo = $.trim($("#txtOrdNo").val());
            if (ordNo == "") {
                alert("订单号不能为空");
                $("#txtOrdNo").focus();
                return false;
            }
            var psd = $.trim($("#txtPsd").val());
            if (psd == "") {
                alert("查询密码不能为空");
                $("#txtPsd").focus();
                return false;
            }
            $.ajax({
                type: "post",
                dataType: "text",
                url: "?act=searchkm&ordNo=" + ordNo + "&psd=" + psd,
                success: function (a) {
                    if (a=="0") {
                        alert("订单号或查询密码不正确");
                    } else {
                        $("#plSearchSucs").html(a); 
                        $("#plSearchSucs").addClass("register-box");
                    }
                },
                error: function (e) {
                    alert(e.responseText);
                }
            });
        }
    </script>
</head>

<body>
<form id="form1" runat=server>
<TW:HeaderSP ID="HeaderSP1" runat="server" />

<style type="text/css">
	.input-code{
		width: 150px !important;
	}
	.get-code{
		display: inline-block;
		_display:inline;
		zoom:1;
		margin-left: 13px;
		width: 160px;
		height: 40px;
		line-height: 40px;
		text-align: center;
	    color: #404040 !important;
	    background-color: #f7f7f7;
	    border: 1px solid #d0d0d0;
	    text-decoration: none !important;
	}
	.btn-disabled {
	    background-color: #ededed;
	    border-color: #ededed;
	    color: #999;
	    cursor: default;	    
	}
	.register-form .tips{
		height: 20px !important;
	}
</style>
<div class="content">
    <div class="container">
    
        <asp:Panel ID="plGetKMBox" runat="server" CssClass="register-box clearfix" Visible="False">
            <h3 class="title">获取卡密</h3>
            <ul class="register-form pull-right">
                <li>
                    <i class="icon icon-right-circle pull-left"></i>
                    <label>订单号</label>
                    <div class="inp pull-left">
                        <asp:TextBox ID="txtOrdNo" CssClass="input-text" runat="server"></asp:TextBox>
                    </div>
                    <div class="tip-icon pull-left" id="loginId_tip_icon">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        Display="Dynamic" ErrorMessage="*" SetFocusOnError="True" 
                        ControlToValidate="txtOrdNo"></asp:RequiredFieldValidator>
                    </div>
                </li>
                <li class="tip">
                  	  
                </li>
                <li>
                    <i class="icon icon-right-circle pull-left"></i>
                    <label>查询密码</label>
                    <div class="inp pull-left">
                        <asp:TextBox ID="txtPsd" CssClass="input-text" runat="server" TextMode="Password"></asp:TextBox>
                    </div>
                    <div class="tip-icon pull-left" id="password_tip_icon">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        Display="Dynamic" ErrorMessage="*" SetFocusOnError="True" 
                        ControlToValidate="txtPsd"></asp:RequiredFieldValidator>
                    </div>
                </li>
                <li class="tip">
                  	  
                </li>
                <li>
                    <input type="button" onclick="searchkm();" class="default-btn register-btn" style="margin-left: 150px;" value="获取卡密" />
                </li>
                <br>
            </ul>
        </asp:Panel>
        <asp:Panel ID="plSearchSucs" runat="server" CssClass="register-box" Visible="False">
            <h3 class="title">查询结果</h3>
            <div class="success-wrap">
            	<div id="showDivId">
	                <p style="font-size: 20px;color:#439f0c;font-weight: bold;line-height: 40px;margin: 20px 0px;">
	                    
                        <asp:Literal ID="litCXRS" runat="server" Text=""></asp:Literal>
                    </p>
	                <p style="font-size: 14px;font-weight: bold;margin: 20px 0px;">
                        <asp:Literal ID="litKMCont" runat="server"></asp:Literal>
                    </p>
	                <p style="font-size: 20px;color:#439f0c;font-weight: bold;line-height: 40px;margin: 20px 0px;">
                    </p>
                </div>
                <button class="default-btn register-btn" type="button" onclick="location.href = '/';">回到首页</button>
            </div>
        </asp:Panel>
        <div id="plSearchSucs">

        </div>
    </div>
</div>
<TW:FooterSP ID="FooterSP1" runat="server" />
</form>
</body>
</html>

