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

<%@ Register TagName="meta" TagPrefix="UC" Src="~/s/include/meta.ascx" %>
<%@ Register TagName="head" TagPrefix="UC" Src="~/s/include/head.ascx" %>
<%@ Register TagName="tip_bar" TagPrefix="UC" Src="~/s/include/tip_bar.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/s/include/foot.ascx" %>
<%@ Register TagName="side_menu" TagPrefix="UC" Src="~/user/side_menu.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>会员中心_
        <%=ZK.config("sitetitle") %></title>
    <meta name="keywords" content="<%=ZK.config("sitekeywords") %>" />
    <meta name="description" content="<%=ZK.config("sitedescription") %>" />
    <UC:meta ID="meta1" runat="server" />
</head>
<body>
    <div class="wrap">
        <a name="pagetop" id="pagetop"></a>
        <UC:head ID="head1" runat="server" />
        <UC:tip_bar ID="tip_bar1" runat="server" />
        <form id="form1" runat="server" autocomplete="off">
        <div class="box">
            <div class="hot">
                <div class="fl" style="width: 180px">
                    <div class="c1 mt5">
                        <div class="b">
                            <div class="fl">
                            </div>
                            <div class="con" style="width: 80px">
                                功能菜单</div>
                            <div class="fr">
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="v">
                            <UC:side_menu ID="side_menu1" runat="server" />

                            <script type="text/javascript">showonly_user_side_menu("1");</script>

                        </div>
                    </div>
                </div>
                <div class="fr flow" style="width: 765px">
                    <div class="c1 mt5">
                        <div class="b">
                            <div class="fl">
                            </div>
                            <div class="con" style="width: 400px; padding-left: 0">
                                <div class="moveareab1">
                                    <ul>
                                        <li class="on"><a href="bindqq.aspx">绑定新号</a></li>
                                        <li><a href="bindqq_old.aspx">绑定原号</a></li>
                                    </ul>
                                    <div class="clear">
                                    </div>
                                </div>
                           
                            
                            
                            
                            </div>
                            <div class="fr"></div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="v">
                            <asp:Panel ID="Panel1" runat="server" style="padding-top:20px;">
                                <style type="text/css">
                                    .self_tip
                                    {
                                        border: solid 1px #f4d39e;
                                        background-color: #fff9f1;
                                        padding: 6px 6px 6px 12px;
                                        font-size: 14px;
                                        color: #f30;
                                        width: 783px;
                                        margin: 0 auto;
                                        width: 700px;
                                        -moz-border-radius: 5px;
                                        -webkit-border-radius: 5px;
                                        border-radius: 5px;
                                    }
                                </style>
                                <div class="self_tip">
                                    您当前使用的是QQ号登录，为了方便您下次可直接用本站帐号登录，请在下面输入绑定您的用户帐号和密码！
                                </div>
                            </asp:Panel>
                            <div class="do1" style="padding-left: 20px; padding-top: 25px; padding-bottom: 25px">

                                <script type="text/javascript">               
function check()
{    
var u=document.getElementById("u").value.replace(/　/,"").replace(/ /,"");
var pnew=document.getElementById("pnew").value.replace(/　/,"").replace(/ /,"");var pnew_=document.getElementById("pnew_").value.replace(/　/,"").replace(/ /,"");
var nickname=document.getElementById("nickname").value.replace(/　/,"").replace(/ /,"");
var email=document.getElementById("email").value.replace(/　/,"").replace(/ /,"");
if(u==""){alert("请输入用户名！");return false;}
else if(u.length<2){alert("用户名太短！");return false;}
else if(pnew==""){alert("请输入密码！");return false;}
else if(pnew.length<4){alert("密码太短！");return false;}
else if(pnew_==""){alert("请输入验证密码！");return false;}
else if(pnew!=pnew_){alert("两次密码输入不一致！");return false;}
else if(nickname==""){alert("昵称不能为空！");return false;}
else if(nickname.length<2){alert("昵称太短！");return false;}
//else if(email==""){alert("邮箱不能为空！");return false;}
if(email!=""&&!emailReg.test(email)){alert("邮箱不正确！");return false;}
}
                                </script>

                                <table border="0" cellpadding="0" cellspacing="0" class="table1" width="100%">
                                    <tr>
                                        <td class="tt" style="width:120px">
                                            用户名：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="u" runat="server" MaxLength="15" CssClass="inp4" Width="150" onblur="replaceCharLegal(this,this.value)"></asp:TextBox><span style="margin-left: 10px"><span
                                                    class="msgon" style="color:red">请输入您的用户名，下次可使用此用户名登录网站！</span></span>
                                        </td>
                                    </tr>
                                    <tr>
                                           <td class="tt" style="width:120px">
                                            <b>输入密码：</b>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="pnew" runat="server" TextMode="Password" MaxLength="20" CssClass="inp4"
                                                Width="150" onfocus="replaceCharLegal(document.getElementById('u'),document.getElementById('u').value)"></asp:TextBox><span style="margin-left: 10px"><span class="msgon" style="color:red">请输入您的登录密码，下次可使用此密码登录网站！</span></span>
                                        </td>
                                    </tr>
                                    <tr>
                                         <td class="tt" style="width:120px">
                                            <b>验证密码：</b>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="pnew_" runat="server" TextMode="Password" MaxLength="20" CssClass="inp4"
                                                Width="150"></asp:TextBox><span style="margin-left: 10px"><span class="msgon">请再次输入您的登录密码！</span></span>
                                        </td>
                                    </tr>
                                    <tr>
                                         <td class="tt" style="width:120px">
                                            昵称：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="nickname" runat="server" MaxLength="10" CssClass="inp4" Width="150"></asp:TextBox>
                                        </td>
                                    </tr>
                                     <tr>
                                           <td class="tt" style="width:120px">
                                            电子邮箱：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="email" runat="server" MaxLength="100" CssClass="inp4" Width="200"></asp:TextBox><span style="margin-left: 10px"><span class="msgon">请输入您的邮箱，忘记密码时可以通过此邮箱找回！</span></span>
                                        </td>
                                    </tr>
                                    <tr>
                                          <td class="tt" style="width:120px">
                                            &nbsp;<asp:HiddenField ID="HiddenField1" runat="server" />
                                        </td>
                                        <td>
                                            <table border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        <asp:Button ID="ButtonSubmit" runat="server" CssClass="but4" Text="立即绑定" OnClick="ButtonSubmit_Click"
                                                            OnClientClick="return check()" onmouseover="hover(this,0.8)" onmouseout="hover(this,1)" />
                                                    </td>
                                                    <td>
                                                        &nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="msg" runat="server" CssClass="red str"></asp:Label>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="clear">
                </div>
            </div>
        </div>
        </form>
        <UC:foot ID="foot1" runat="server" />
    </div>
</body>
</html>
