📄 loginoa.jsp
字号:
<%@page language="java" contentType="text/html;charset=GBK"%>
<jsp:useBean id="ds" scope="page" class="oa.main.DealString"/>
<%
oa.bean.PersonBean myBean =null;
try{
myBean = new oa.bean.PersonBean();
if(myBean.getConn()==null)
{
%>
数据库无法响应,请<a href="javascript:window.history.back(-1);">返回</a>重试
<%out.close();
}
String screenwidth = (String)request.getParameter("w");
session.setAttribute("SCREEN",screenwidth);
String yhm = ds.toGBK(request.getParameter("uid"));
String pwd = request.getParameter("pwd");
//System.out.println("\n=="+yhm+"==");
yhm=yhm.toLowerCase();
yhm=yhm.trim();
//System.out.println("\n=="+yhm+"==");
// yhm = myBean.toID("ZZ_ZGB","YHM","ZGBH",yhm)+"";
yhm = myBean.getZGBH(yhm);
myBean.setPersonNO(yhm);
boolean b = myBean.verifyPwd(pwd);
%>
<html>
<head>
<title>密码验证</title>
</head>
<body leftmargin=0 topmargin=0>
<iframe marginwidth=0 marginheight=0 src="progress/start.jsp?b=<%=b%>" frameborder=0 scrolling=no width=350 height="120">
</iframe>
<%
if(b)//密码正确
{
session.setAttribute("zgbh",yhm);
%>
<script>
setTimeout("loginoa()",1500);
</script>
<%
}
else
{
%>
<script>
window.opener.document.all.uid.value="";
window.opener.document.all.pwd.value="";
alert("您输入的用户名或密码不正确!");
window.close();
</script>
<%
}
%>
<script>
function loginoa()
{
window.opener.document.all.uid.value="";
window.opener.document.all.pwd.value="";
mywin = window.open("../../oa.jsp","_self","menubar=yes,status=yes,toolbar=yes");
mywin.focus();
//定义窗口最大化
window.moveTo(0,0);
//window.resizeTo(screen.width,screen.height);
window.resizeTo(screen.availWidth,screen.availHeight);
}
</script>
</body>
</html>
<%}catch(Exception e){oa.main.Logger.log("ERROR:oa.main.loginoa.jsp=>");e.printStackTrace(oa.main.Logger.log);}
finally{
if(myBean!=null)myBean.closeConn();
}%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -