<%@ page language="vb" autoeventwireup="false" inherits="WebExam.Web.logon, App_Web_ork0kvpt" enableviewstate="false" %>

<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html>
<head runat="server">
    <title>网络考试系统</title>
    <meta content="WebExam,考试软件,网络考试系统,网络考试软件,在线考试系统,在线考试软件,网上考试系统,网上考试软件,考试系统,题库," name="KEYWORDS">
    <link href="../style/main.css" type="text/css" rel="stylesheet" />
    <meta content="Microsoft Visual Studio .NET 7.0" name="GENERATOR">
    <meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
    <meta content="JavaScript" name="vs_defaultClientScript">
    <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">

    <script language="javascript" id="clientEventHandlersJS">
<!--
        if (top!=self){top.location=self.location;self.close(); }
        function GetCookie(sName) {
            var aCookie = document.cookie.split("; ");
            for (var i = 0; i < aCookie.length; i++) {
                var aCrumb = aCookie[i].split("=");
                if (sName == aCrumb[0])
                    return DecodeCookie(decodeURIComponent(aCrumb[1]));
            }
            return null;
        }
        function CodeCookie(str) {
            var strRtn = "";

            for (var i = str.length - 1; i >= 0; i--) {
                strRtn += str.charCodeAt(i);
                if (i) strRtn += "a";
            }
            return strRtn;
        }
        function DecodeCookie(str) {
            var strArr;
            var strRtn = "";
            strArr = str.split("a");
            for (var i = strArr.length - 1; i >= 0; i--)
                strRtn += String.fromCharCode(eval(strArr[i]));
            return strRtn;
        }
        function SetCookie(name, value, expires) {


            if (expires == 1) {
                var exp = new Date("December 31, 3666"); ; //长期有效的办法//;new Date()//
                document.cookie = name + "=" + encodeURIComponent(CodeCookie(value)) + " ;  expires=" + exp.toGMTString() + " ; path=/";
            }
            else {
                var exp = new Date()
                exp.setTime(exp.getTime() - exp.getTime());
                document.cookie = name + "=" + encodeURIComponent(CodeCookie(value)) + " ;  expires=" + exp.toGMTString() + " ; path=/";

            } 
        }
        function rememberMe() {
            SetCookie("client:myId", Login.yhm.value, 1)


        }
        function window_onload() {
            var strUI = GetCookie("client:myId");
            Login.yhm.focus();

            if (strUI != null) {
                if (Login.yhm.value == "") Login.yhm.value = strUI;


                Login.pwd.focus();

            }
            if (Login.yhm.value == "") {
                Login.yhm.focus();

            }


        }
//-->
    </script>

    <style type="text/css">
        #center
        {
            margin-right: auto;
            margin-left: auto;
            width: 300px;
        }
        body
        {
            background-color: #b6c7e5;
        }
        .input_red
        {
            font-size: 12px;
            line-height: 17px;
            color: #000000;
            background-color: #FFFFFF;
            margin: 0px;
            height: 19px;
            width: 130px;
            padding-top: 0px;
            padding-right: 2px;
            padding-bottom: 0px;
            padding-left: 2px;
            border: 1px solid #228AD4;
        }
        .info_bg
        {
            background-color: #FFFFFF;
            background-image: url(/images/admin_login_16.gif);
            background-repeat: no-repeat;
            background-position: right top;
        }
        .STYLE1
        {
            color: #343A78;
        }
        .STYLE2
        {
            color: #2B5EBB;
            text-align: center;
        }
        .mailhead
        {
            background-color: #FFFFFF;
            background-image: url(images/mailhead_bg.jpg);
            background-repeat: repeat-x;
            text-align: right;
            height: 24px;
        }
    </style>
</head>
<body onload="return window_onload()">
    <form id="Login" method="post" runat="server" target="_parent">
    <div id="center">
        <div style="position: absolute; top: 100px;">
            <table cellspacing="0" cellpadding="0" width="273" bgcolor="#b6c7e5" border="0">
                <tr>
                    <td style="width: 273px; text-align: center; height: 40px; font-weight: bold; font-size: large;"
                        colspan="2">
                        用户登录
                    </td>
                </tr>
                <tr>
                    <td style="width: 96px; height: 40px;" align="right" class="STYLE1">
                        用户帐号&nbsp;&nbsp;
                    </td>
                    <td style="height: 40px;">
                        <input id="yhm" style="width: 125px" tabindex="1" maxlength="20" size="14" name="yhm"
                            runat="server" autocomplete="off" class="input_red" /><asp:RequiredFieldValidator
                                ID="RequiredFieldValidator1" runat="server" Display="Dynamic" ControlToValidate="yhm"
                                ErrorMessage="必须输入用户名！">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 96px; height: 40px;" class="STYLE1">
                        密 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;码&nbsp;&nbsp;
                    </td>
                    <td style="height: 40px;">
                        <input id="pwd" style="width: 125px" tabindex="2" type="password" maxlength="16"
                            name="pwd" runat="server" class="input_red" /><asp:RequiredFieldValidator ID="RequiredFieldValidator2"
                                runat="server" Display="Dynamic" ControlToValidate="pwd" ErrorMessage="必须输入密码！">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" colspan="2" style="padding-right: 33px">
                        <input type="checkbox" class="STYLE2" id="ck_remember" runat="server" tabindex="3" /><label for="ck_remember">记住为我自动登录</label>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="STYLE1" style="padding-left: 10px">
                        <asp:ImageButton ID="btn_logon" runat="server" Height="30px" onMouseOver="this.src='../images/button_bg3.gif'"
                            onMouseOut="this.src='../images/button_bg2.gif'" ImageUrl="~/images/button_bg2.gif"
                            Width="70px" OnClientClick="rememberMe()" />&nbsp; &nbsp;<a href="RecoverPasswd.aspx" target="_top">忘记密码？</a>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <img height="15" src="../images/mail_t009.gif" width="273" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="padding-left: 10px">
                        <asp:Label ID="MismatchLabel" runat="server" ForeColor="RED" Visible="False"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="STYLE1" align="right">
                        没有帐号？ <a href="../selfreg.aspx" target="_top">立即注册</a>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
