<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Web.AdminManager.Login" %>

<!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>
    <script src="/Common/jQuery/jquery-1.7.1.min.js" type="text/javascript"></script>
    <link href="/Common/css/Admin.css" rel="stylesheet" type="text/css" />
    <link href="/Common/css/wxcloud.min.css" rel="stylesheet" />
    <script src="/Common/js/Common_RegexString.js" type="text/javascript"></script>
    <script src="/Common/js/Common.js" type="text/javascript"></script>
    <script src="/Common/js/Common_CheckCode.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("form").submit(function () {
                var UserName = $("#UserName"),
			    PassWord = $("#PassWord"),
			    CheckCode = $("#CheckCode"),
                allFields = $([])
                .add(UserName)
                .add(PassWord)
                .add(CheckCode)
                ;
                var bValid = true;
                allFields.removeClass("ui-state-error");
                bValid = bValid && checkRegexp(UserName, Regex_UserName, "用户格式不正确");
                bValid = bValid && checkLength(PassWord, "密码", 4, 16);
                bValid = bValid && checkNumlength(CheckCode, "验证码不能放空", 0, 9999);
                return bValid;
            });
        })
    </script>
</head>
<body>
    <form id="form1" runat="server" class="ui-form ui-form-vertical">
        <div id="LoginTOP"></div>
        <div id="Login">
            <div class="con">
                <div class="ui-form-group">
                    <label class="ui-form-label">用户名称</label>
                    <div class="ui-form-ctrls">
                        <input type="text" name="UserName" id="UserName"
                            class="ui-input-small" value="<%=Web.Lib.CookiesHelper.GetCookiesValue(Web.Lib.CookiesType.Admin_LoginFormUser.ToString()) %>" /><span class="ui-help-inline UserName"></span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">用户密码</label>
                    <div class="ui-form-ctrls">
                        <input type="password" name="PassWord" id="PassWord"
                            class="ui-input-small" value="" /><span class="ui-help-inline PassWord"></span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">验证码</label>
                    <div class="ui-form-ctrls">
                        <input type="text" name="CheckCode" autocomplete="off" id="CheckCode"
                            class="text ui-widget-content ui-corner-all CheckCode_Input" style="width: 48px"
                            value="" /><img class="CheckCode_Image" src="/Common/images/loading.gif"
                                style="cursor: pointer; display: none;" /><span class="ui-help-inline CheckCode"></span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">&nbsp;</label>
                    <div class="ui-form-ctrls">
                        <input class="ui-btn ui-btn-primary" type="submit" value="登录" /><span></span>
                    </div>
                </div>
            </div>
        </div>
        <div class="talc" style="padding-top: 60px; color: #6C6C6C;">Powered by 清竹虚拟主机管理系统 &copy; 2005-<%=DateTime.Now.Year.ToString() %> <a href="http://soft.qzsys.com" target="_blank">清竹科技</a></div>
    </form>
</body>
</html>
