<%@ page language="C#" autoeventwireup="true" inherits="manage_Login, App_Web_oj44ifac" %>

<!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">
    <title>管理员登陆</title>
    <link href="Css/css.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        <!--
        #loginBox
        {
            background-image: url(Images/LoginBg.jpg);
            height: 292px;
            width: 684px;
            border: 0px solid #E8EAEF;
            margin-top: 120px;
            margin-right: auto;
            margin-bottom: auto;
            margin-left: auto;
        }
        body
        {
            text-align: center;
            background-color: #F7F8FA;
            margin: auto;
            padding: 0px;
            color: #666666;
        }
        #loginDiv
        {
            margin: 0px;
            padding: 85px;
        }
        #loginDiv td
        {
            height: 30px;
        }
        .userInput, .code
        {
            background-color: #F9FAFB;
            border: 1px solid #E2E8EE;
            height: 18px;
            width: 116px;
            vertical-align: middle;
        }
        .code
        {
            width: 40px;
        }
        .loginBt
        {
            color: #666666;
            background-image: url(Images/loginBtBg.jpg);
            background-repeat: no-repeat;
            border-top-style: none;
            border-right-style: none;
            border-bottom-style: none;
            border-left-style: none;
            background-color: #FFFFFF;
            height: 20px;
            width: 45px;
            vertical-align: middle;
        }
        .CodeImage
        {
            vertical-align: middle;
        }
        --></style>
</head>
<body class="loginBody">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="LoginScriptManager" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="LoginUpdateProgress" runat="server">
        <ProgressTemplate>
            <div class="loader_container" style="top:30%;">
                <div class="loader">
                    <div>
                        <img src="Images/loading.gif" alt="loading" />
                        正在登录。。。
                    </div>
                </div>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <div id="loginBox">
        <div id="loginDiv">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <table width="224" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                            <td width="68" align="right" valign="middle">
                                用户:
                            </td>
                            <td width="156" align="left" class="td" id="userNameTd">
                                &nbsp;<asp:TextBox ID="UserName" runat="server" CssClass="userInput"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" valign="middle">
                                密码:
                            </td>
                            <td align="left" class="td">
                                &nbsp;<asp:TextBox ID="Password" runat="server" CssClass="userInput" TextMode="Password"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" valign="middle">
                                验证码:
                            </td>
                            <td align="left" class="td" valign="middle">
                                &nbsp;<asp:TextBox ID="Code" runat="server" CssClass="code" MaxLength="4"></asp:TextBox>&nbsp;
                                <asp:Image ID="CodeImage" runat="server" ImageAlign="Middle" ImageUrl="~/manage/Code.aspx"
                                    CssClass="CodeImage" />
                                <asp:Button ID="LoginBt" runat="server" CssClass="loginBt" Text="登 陆" OnClick="LoginBt_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center" valign="top" style="height: 30px">
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="UserName"
                                    Display="Dynamic" EnableClientScript="False">用户不能为空</asp:RequiredFieldValidator>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Password"
                                    Display="Dynamic" ErrorMessage="RequiredFieldValidator" EnableClientScript="False">密码不能为空</asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="用户名不合法"
                                    ControlToValidate="UserName" Display="Dynamic" EnableClientScript="False" ValidationExpression="[a-zA-Z0-9]{0,12}"></asp:RegularExpressionValidator>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="Code"
                                    Display="Dynamic" ErrorMessage="RequiredFieldValidator" EnableClientScript="False">验证码不能为空</asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="Code"
                                    Display="Dynamic" ErrorMessage="验证码应为数字" ValidationExpression="\d+" EnableClientScript="False"></asp:RegularExpressionValidator>
                                <asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="Code"
                                    Display="Dynamic" ErrorMessage="验证码错误" OnServerValidate="CustomValidator1_ServerValidate"
                                    EnableClientScript="False"></asp:CustomValidator>
                                <asp:Label ID="ShowErr" runat="server" ForeColor="Red" Text="错误信息"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:UpdatePanel>
            <asp:Literal ID="Aeseeecch" runat="server"></asp:Literal>
            <%--TODO:[Free Code]--%>
            </div>
    </div>

    <script type="text/javascript">
	        window.onload=function(){
		        var userNameTextBox=document.getElementById("userNameTd").getElementsByTagName("input")[0];
		        userNameTextBox.focus();
	        }
    </script>

    </form>
</body>
</html>
