<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/views/common/base.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <title> MyExam在线考试系统</title>
    <link href="css/login1/css.css" rel="stylesheet" type="text/css">
    <link href="css/login1/link.css" rel="stylesheet" type="text/css">
    
    <script language="javascript" type="text/javascript" src="css/login1/jquery-1.8.3.min.js"></script>
    <script language="javascript" type="text/javascript" src="css/login1/jquery.watermark.min.js"></script>
    <script type="text/javascript">
//layout.js等多个自定义js中会使用到此变量
var imagesBasePath = '${imagesBasePath}';
var contextPath = '${contextPath}';
</script>
    <script language="javascript" type="text/javascript">
        
        jQuery(function () {
            jQuery("#loginName").watermark("请输入登陆名");
            jQuery("#password").watermark("请输入密码");
            jQuery("#validateCode").watermark("请输入验证码");
        });

       
    </script>
</head>
<body  youdao="bind">
    <form  method="post" id="loginFrom">
    <div class="login">
        <div class="login_logo">
            MyExam在线考试系统</div>
            
        <div class="text">
            <ul>
                <li>
                    <input type="text" name="loginName" id="loginName" class="load_bg" placeholder="请输入登陆名">
                </li>
                <li>
                    <input name="password" id="password" type="password" class="load_bg" placeholder="请输入密码"></li>
                
                 <li>
				 <table  width=92% class="title"><tr><td><input name="password" id="password" type="checkbox" class="" value="ded"></td><td>下次自动登录</td>
				 <td class="forget"><a >忘记密码？</a></td></tr></table>
                   </li>
                    <a id="submit"><img src="css/login1/sy-13a.gif"></a></li>
            </ul>
        </div>
       
    </div>
    <div class="copy">
       花田软件公司版权所有<span class="button rosy small">申请账号>></span></div>
    <div id="div1">
        <img src="css/login1/bg.jpg"></div>
    </form>

<script>
$(document).ready(function(){
$("#submit").bind("click",submit);
 document.onkeydown=keyListener;
});
function submit(){
var formObj = $("#loginFrom");
url="${contextPath}/loginAction.do";
	formObj.attr("action",url);
	formObj.submit();
}
//监听回车
function keyListener(e){
    e = e ? e :event;
    if(e.keyCode == 13){
    	submit();
    }
}
</script>
</body></html>