<%@ page language="C#" autoeventwireup="true" inherits="ims.userbind, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<!DOCTYPE html>
<html id="userbind">
<head runat="server">
    <title>账户绑定</title><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <style type="text/css">
        body{margin:1.5em 1.5em 0 !important}
        #main{margin:0 auto;max-width:480px}
        #header{margin-bottom:3em;font-weight:300;color:#666;font-size:1.15rem;text-align:center}
        .row{border-bottom:1px #ddd solid;margin-bottom:14px;padding-bottom:4px}
        .row input{width:100%;font-weight:300;filter:none}
        #btnBind{width:100%;box-sizing:border-box;margin:3em 0 0;font-weight:300}
        :-webkit-autofill{background-color:transparent;-webkit-box-shadow:0 0 0 1000px white inset}
    </style>
    <script src="js/comm.js"></script>
    <script>
        function preBind() {
            var cbAgree = $("#cbArgee");
            if (cbAgree.length && !cbAgree.prop("checked")) return showAndExit("必须同意用户协议才能绑定！");
            if (!$("#tbName").val()) return showAndExit("请输入用户名！");
            if (!$("#tbPwd").val()) return showAndExit("请输入密码！");
            __doPostBack('btnBind', '');
            return false;
        }
    </script>
</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 id="main" onkeydown="return enterTo(event,'btnBind');">
            <div id="header">系统账户绑定</div>
            <div class="row"><input type="text" autocomplete="off" placeholder="用户名/手机/邮箱" class="nobgborder" runat="server" id="tbName" /></div>
            <div class="row mbottom_m"><input type="password" autocomplete="off" placeholder="密码" class="nobgborder" runat="server" id="tbPwd" /></div>
            <div runat="server" id="agreement" class="middle">
                <asp:CheckBox runat="server" ID="cbArgee" Text="同意" /><a href="agreement.htm" onclick="return toPopup(this.href);">用户协议</a>
            </div>
            <div class="infoico gray smaller" runat="server" id="pmt1">新用户输入用户名和密码，将自动注册并绑定。</div>
            <input type="button" runat="server" id="btnBind" onserverclick="Bind" onclick="return preBind();" value="绑 定" class="btn sec big" />
            <div class="infoico gray smaller mtop_m" runat="server" id="pmt2">新用户输入用户名和密码，将自动注册并绑定。</div>
        </div>
    </form>
</body>
</html>