oa/index.jsp

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/css/base.css">
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/css/index.css">
	<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.js"></script>
<title>欢迎登陆OA系统</title>
</head>
<script type="text/javascript">
	function changeCode() {
		document.getElementById('img').src="${pageContext.request.contextPath }/checkimg?random="+Math.random();
	}
	$(document).ready(function(){
		$("input[name='loginIn']").click(function(){
			var username = $("input[name='userid']").val();
			var password = $("input[name='password']").val();
			var codes = $("input[name='code']").val();
			 $("body").append("<div class='alerts' id='alerts' style='display: none'></div>");
			$.ajax({
				type:"GET",
				url:"${pageContext.request.contextPath }/checkLogin.do",
				async: false,
				data:{userid:username,password:password,code:codes},
				success:function(con){
					if(con == "1"){//验证码为空
						$("#alerts").removeAttr("style");
						$("#alerts").append("<a>验证码为空</a>")
						d();
						return;
					}else{
						if(con == "2"){//验证码错误
							$("#alerts").removeAttr("style");
							$("#alerts").append("<a>验证码错误</a>")
							d();
							return;
						}else{
							if(con == "3"){
								$("#alerts").removeAttr("style");
								$("#alerts").append("<a>账号或密码为空</a>")
								$("#alerts").width(300);
								d();
								return;
							}else{
								if(con == "4"){
									$("#alerts").removeAttr("style");
									$("#alerts").append("<a>账号或密码错误</a>")
									$("#alerts").width(300);
									d();
									return;
								}else{
									if(con == "0"){
										$("#alerts").removeAttr("style");
										$("#alerts").append("<a>验证通过,正在登陆...</a>")
										$("#alerts").width(300);
										d();
										form.submit();
									}
后面还有 43 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。