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

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>会员登录</title>
    <link href="/inClude/style.css" rel="stylesheet" type="text/css" />
    <link href="member.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        body {
            margin: 15px;
            padding: 15px;
            font-size: 12px;
        }
    </style>
    <script src="/js/jquery.min.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;
            });

            $("#close").click(function () {
                top.location.href = '<%=returnUrl%>';
                //parent.Util.Dialog.close('divlogin', function () { });                
                return false;
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="divMemberWidth" style="height: 75px;">
            <div class="divLeft">
                <div style="text-align: left; font-size: 24px;">
                    <img src="../images/loginHead.gif" style="vertical-align: middle;" />&nbsp;用户登录
                </div>
                <div style="line-height: 36px;">
                    <asp:Label ID="errorInfo" runat="server" ForeColor="#FF3300"></asp:Label>
                </div>
            </div>
            <div class="divRight">
                <div style="padding-right: 30px;">
                    <img id="close" src="../images/close.gif" title="关闭登录窗口" alt="关闭登录窗口" style="vertical-align: middle; cursor: pointer;" />
                </div>
            </div>
        </div>
        <div class="divMemberWidth">
            <table>
                <tr>
                    <td style="width: 305px;">
                        <ul style="line-height: 22px;">
                            <li>
                                <asp:TextBox ID="uID" runat="server" MaxLength="20" CssClass="minLoginInput" Width="250px" Wrap="False" AutoCompleteType="Disabled"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator SetFocusOnError="True" ID="RequiredFieldValidator1" runat="server" ControlToValidate="uID" ErrorMessage="*" ForeColor="#FF3300"></asp:RequiredFieldValidator></li>
                            <li>
                                <asp:RegularExpressionValidator SetFocusOnError="True" ID="uIDRegularExpressionValidator" runat="server" ControlToValidate="uID" ForeColor="#FF3300"></asp:RegularExpressionValidator></li>
                            <li>
                                <asp:TextBox ID="uPW" runat="server"
                                    MaxLength="20" TextMode="Password" CssClass="minLoginInput" Width="250px"
                                    Wrap="False" Text="请输入密码" Style="ime-mode: disabled;"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator SetFocusOnError="True" ID="RequiredFieldValidator4" runat="server" ControlToValidate="uPW" ErrorMessage="*" ForeColor="#FF3300"></asp:RequiredFieldValidator></li>
                            <li>
                                <asp:RegularExpressionValidator SetFocusOnError="True" ID="PWRegularExpressionValidator" runat="server" ControlToValidate="uPW" ForeColor="#FF3300"></asp:RegularExpressionValidator></li>
                            <li>
                                <asp:TextBox ID="RndNum"
                                    runat="server" MaxLength="6" CssClass="minLoginInput" Width="98px"
                                    Wrap="False" Text="" AutoCompleteType="Disabled" Style="ime-mode: disabled;"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator SetFocusOnError="True"
                                        ID="RequiredFieldValidator5" runat="server"
                                        ControlToValidate="RndNum" ErrorMessage="*" ForeColor="#FF3300"></asp:RequiredFieldValidator><span id="imgClick"><img id="checkCodeImg" src="/InClude/getValidate.aspx?code=abc123" alt="看不清楚？换个图片" title="看不清楚？换个图片" style="vertical-align: middle; cursor: pointer;" /></span></li>
                            <li>
                                <asp:RegularExpressionValidator SetFocusOnError="True" ID="RndNumReg" runat="server" ControlToValidate="RndNum" ForeColor="#FF3300"></asp:RegularExpressionValidator></li>
                            <li style="color: #7b7b7b; font-size: 14px;">
                                <table style="width: 256px;">
                                    <tr>
                                        <td style="text-align: left;">
                                            <asp:CheckBox ID="checkLogin" runat="server" />&nbsp;下次自动登录</td>
                                        <td style="text-align: right;"><a href="forget.aspx" target="_top" style="color: #0000ee; text-decoration: underline; font-size: 14px;">忘记密码？</a></td>
                                    </tr>
                                </table>
                            </li>
                            <li>
                                <asp:ImageButton ID="loginEnter" runat="server" ImageUrl="~/member/images/login.gif" OnClick="loginEnter_Click" Style="vertical-align: middle;" />
                            </li>
                            <li style="font-weight: bold; line-height: 30px;">使用其它登录方式：</li>
                            <li><a href="../api/qqLogin.aspx" target="_top">
                                <img runat="server" id="qq" src="~/member/images/qq_Login.png" style="vertical-align: middle;" alt="QQ快捷登录" /></a>&nbsp;<a href="../api/alipayLogin.aspx" target="_top"><img runat="server" id="alipay" src="~/member/images/alipay_Login.png" style="vertical-align: middle;" alt="支付宝快捷登录" /></a></li>
                        </ul>
                    </td>
                    <td style="background-color: #dadada; width: 2px;"></td>
                    <td style="width: 293px;">
                        <ul>
                            <li style="text-align: center; color: #7b7b7b; font-size: 14px;">还没开通？赶快注册一个吧！</li>
                            <li style="height: 140px; line-height: 140px; text-align: center;">
                                <asp:ImageButton ID="regImages" runat="server" ImageUrl="~/member/images/reg.gif" CausesValidation="False" OnClick="regImages_Click" />
                            </li>
                        </ul>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
