<%@ Page Language="C#" AutoEventWireup="true" CodeFile="reg.aspx.cs" Inherits="member_user_reg" %>

<%@ Register Src="../../inClude/head.ascx" TagName="head" TagPrefix="uc1" %>
<%@ Register Src="../../inClude/bottom.ascx" TagName="bottom" TagPrefix="uc2" %>
<!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 id="Head1" runat="server">
    <title></title>
    <link href="../../inClude/style.css" rel="stylesheet" type="text/css" />
    <script src="/js/jquery.min.js" type="text/javascript"></script>
    <script src="/js/all.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#uID").click(function () {
                var v = $("#uID").val();
                if (v == "用户名/邮箱/手机号码") {
                    $("#uID").val("");
                }
                return false;

            }).focus(function () { $(this).click() });

            $("#imgClick").click(function () {
                $("#RndNum").val("");
                $("#checkCodeImg").attr("src", "/InClude/getValidate.aspx?code=abc123&len=6&id=" + Math.random());
                return false;
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <uc1:head ID="head2" runat="server" />
        <div class="height10px"></div>
        <div class="divWidth">
            <asp:Literal ID="ad950" runat="server"></asp:Literal>
        </div>
        <div class="divWidth">
            <div class="divHui" style="padding: 30px;">
                <div style="font-weight: bold; font-size: 14px;">新会员注册</div>
                <div class="height10px"></div>
                <div style="height: 1px; background-color: #e9e9e9; font-size: 0px;"></div>
                <div style="height: 20px;"></div>
                <div>
                    <table width="100%" cellpadding="3" style="line-height: 35px;">
                        <tr>
                            <td style="text-align: right;">用户名：</td>
                            <td>
                                <asp:TextBox ID="uID" runat="server" CssClass="inputText" Width="250px" MaxLength="20"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="uID" ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator SetFocusOnError="True" ID="uIDRegularExpressionValidator"
                                    runat="server" ControlToValidate="uID" ForeColor="#FF3300"></asp:RegularExpressionValidator></td>
                        </tr>
                        <tr>
                            <td style="text-align: right;">电子邮箱：</td>
                            <td>
                                <asp:TextBox ID="email" runat="server" CssClass="inputTextIME" Style="ime-mode: disabled;" MaxLength="50" Width="250px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="email" ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator SetFocusOnError="True"
                                    ID="emailRegularExpressionValidator" runat="server"
                                    ControlToValidate="email" ForeColor="#FF3300"></asp:RegularExpressionValidator></td>
                        </tr>
                        <tr>
                            <td style="text-align: right;">密码：</td>
                            <td>
                                <asp:TextBox ID="uPW" runat="server" CssClass="inputTextIME" TextMode="Password" Width="250px" Style="ime-mode: disabled;" MaxLength="20"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="uPW" ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator SetFocusOnError="True" ID="PWRegularExpressionValidator"
                                    runat="server" ControlToValidate="uPW" ForeColor="#FF3300"></asp:RegularExpressionValidator></td>
                        </tr>
                        <tr>
                            <td style="text-align: right;">确认密码：</td>
                            <td>
                                <asp:TextBox ID="uPWTwo" runat="server" CssClass="inputTextIME" TextMode="Password" Width="250px" Style="ime-mode: disabled;"></asp:TextBox>
                                <asp:RequiredFieldValidator SetFocusOnError="True" ID="RequiredFieldValidator7" runat="server"
                                    ControlToValidate="uPWTwo" ErrorMessage="*" ForeColor="#FF3300"></asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="CompareValidator1" runat="server"
                                    ControlToCompare="uPW" ControlToValidate="uPWTwo"
                                    ErrorMessage="您两次输入的登录密码不一致" ForeColor="#FF3300"
                                    SetFocusOnError="True"></asp:CompareValidator></td>
                        </tr>
                        <tr>
                            <td style="text-align: right;">姓名：</td>
                            <td>
                                <asp:TextBox ID="txtName" runat="server" CssClass="inputText" Width="150px" MaxLength="5"></asp:TextBox>
                                <asp:RegularExpressionValidator SetFocusOnError="True" ID="textNameRegularExpressionValidator"
                                    runat="server" ControlToValidate="txtName" ForeColor="#FF3300"></asp:RegularExpressionValidator></td>
                        </tr>
                        <tr>
                            <td style="text-align: right;">手机号码：</td>
                            <td>
                                <asp:TextBox ID="mobile" runat="server" CssClass="inputTextIME" Style="ime-mode: disabled;" MaxLength="11" Width="150px"></asp:TextBox>
                                <asp:RegularExpressionValidator SetFocusOnError="True" ID="mobileRegularExpressionValidator"
                                    runat="server" ControlToValidate="mobile" ForeColor="#FF3300"></asp:RegularExpressionValidator></td>
                        </tr>
                        <tr>
                            <td style="text-align: right;">验证码：</td>
                            <td>
                                <asp:TextBox ID="RndNum"
                                    runat="server" CssClass="inputTextIME" Width="100px" MaxLength="6" Style="ime-mode: disabled;"></asp:TextBox>
                                <img src="/InClude/getValidate.aspx?code=abc123&len=6" id="checkCodeImg" style="vertical-align: middle;" />&nbsp;<a href="#" onclick="javascript:document.getElementById('checkCodeImg').src='/InClude/getValidate.aspx?code=abc123&len=6&id='+Math.random();return false;">看不清楚？换个图片，不区分大小写</a>
                                <asp:RequiredFieldValidator SetFocusOnError="True" ID="RequiredFieldValidator8" runat="server"
                                    ControlToValidate="RndNum" ErrorMessage="*" ForeColor="#FF3300"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator SetFocusOnError="True" ID="rndNumRegularExpressionValidator"
                                    runat="server" ControlToValidate="RndNum" ForeColor="#FF3300"></asp:RegularExpressionValidator></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <asp:ImageButton ID="regBottom" runat="server" ImageUrl="/member/images/reg.gif" OnClick="regBottom_Click" Style="vertical-align: middle;" /></td>
                        </tr>
                    </table>

                </div>
            </div>
        </div>
        <div class="height10px"></div>
        <uc2:bottom ID="bottom1" runat="server" />
    </form>
</body>
</html>
