⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 totallogin1.jsp

📁 公司人员管理系统源代码,公司人员管理系统源代码,公司人员管理系统源代码
💻 JSP
字号:
<%@ page language="java" contentType="text/html;charset=gb2312" import = "java.sql.*,java.util.*"%>
<html>
<head>
<title>totallogin1</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
</script>
</head>
<form name="S_form" method="post" >
<jsp:useBean id="db" scope="page" class="opendb.opendb"/>
<%
   String getAusername=new String(request.getParameter("username").getBytes("ISO8859_1"));
   String getApassword=new String(request.getParameter("password").getBytes("ISO8859_1"));
   String sql="select EMP_CODE,EMP_WEB from wglPERSON where EMP_USERNAME='"+
   getAusername+"'and EMP_PASSWORD='"+getApassword+"'";
   System.out.println("sql="+sql);
   ResultSet rs=db.executeQuery(sql);
   System.out.println("aa2");
   if(rs.next())
   {
   String personID=rs.getString("EMP_CODE");
   int web =rs.getInt("EMP_WEB");
   rs.close();
   session.setAttribute("personID",personID);
//在此处完善代码
if(web==1)
{
%>
<body background="b.files/bj.gif">
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%" >
  <TBODY>
  <TR class=top>
      <TD width=296><IMG align=left
      alt=SoftshapeArt border=0 height=58 hspace=0 src="b.files/top1.gif"
      width=80><IMG align=left border=0 height=58 hspace=0
      src="b.files/top2.gif" width=216></TD>
    <TD>&nbsp;&nbsp;</TD>
    <TD width=517>&nbsp; </TD>
  </TR></TBODY></TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
  <TBODY>
  <TR >
    <td width="16%"> <IMG align=left border=0 height=22 hspace=0 src="b.files/nav1.gif"
      width=165></td>
    <TD background="b.files/TdBg.gif" width="84%" valign="bottom">&nbsp; <font color="#00FF00"size="2"><a href="personAdd.jsp" target="_parent">人员添加</a></font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <font color="#00FF00" size="2"><a href="personSelect.jsp" target="_parent">人员查询</a></font> &nbsp;&nbsp;&nbsp;&nbsp;
      <font color="#00FF00" size="2" size="2"><a href="userBack.jsp">进入普通用户界面</a></font> &nbsp;&nbsp;&nbsp;&nbsp;
      <font color="#00FF00" size="2" size="2"><a href="totallogin.jsp">重新登录</a></font></a></font> </TD>
  </TR></TBODY></TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 class=splash width="100%">
  <TBODY>
  <TR>
    <TD class=splash width="8%" align="center" valign="bottom"><IMG align=left border=0 height=72 hspace=0
      src="b.files/spl_1.gif" width=76></TD>
    <TD width="92%" align="center"><font size="5">欢迎进入管理员界面</font> </TD>
  </TR>
  </TBODY>
</TABLE>
</body>
<%}
 if(web==0)
 {%>
 <body background="b.files/bj.gif">
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%" >
  <TBODY>
  <TR class=top>
    <TD width=296><IMG align=left
      alt=SoftshapeArt border=0 height=58 hspace=0 src="b.files/top1.gif"
      width=80><IMG align=left border=0 height=58 hspace=0
      src="b.files/top2.gif" width=216></TD>
    <TD>&nbsp;&nbsp;</TD>
    <TD width=517>&nbsp; </TD>
  </TR></TBODY></TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
  <TBODY>
  <TR >
    <td width="16%"> <IMG align=left border=0 height=22 hspace=0 src="b.files/nav1.gif"
      width=165></td>
    <TD background="b.files/TdBg.gif" width="84%" valign="bottom">&nbsp; <font color="#00FF00"size="2"><a href="rest.jsp" target="_parent">请假条填写</a></font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <font color="#00FF00" size="2"><a href="restUser.jsp" target="_parent">个人请假查询</a></font> &nbsp;&nbsp;&nbsp;&nbsp;
      <font color="#00FF00" size="2"><a href="totallogin.jsp">重新登录</a></font> </TD>
  </TR></TBODY></TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 class=splash width="100%">
  <TBODY>
  <TR>
    <TD class=splash width="8%" align="center" valign="bottom"><IMG align=left border=0 height=72 hspace=0
      src="b.files/spl_1.gif" width=76></TD>
    <TD width="92%" align="center"><font size="5">欢迎进入普通用户界面</font> </TD>
  </TR>
  </TBODY>
</TABLE>
</body>
<%}if(web==2)
{%>
<body background="b.files/bj.gif">
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%" >
  <TBODY>
  <TR class=top>
    <TD width=296><IMG align=left
      alt=SoftshapeArt border=0 height=58 hspace=0 src="b.files/top1.gif"
      width=80><IMG align=left border=0 height=58 hspace=0
      src="b.files/top2.gif" width=216></TD>
    <TD>&nbsp;&nbsp;</TD>
    <TD width=517>&nbsp; </TD>
  </TR></TBODY></TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
  <TBODY>
  <TR >
    <td width="16%"> <IMG align=left border=0 height=22 hspace=0 src="b.files/nav1.gif"
      width=165></td>
    <TD background="b.files/TdBg.gif" width="84%" valign="bottom">&nbsp; <font color="#00FF00"size="2"><a href="restAdmin.jsp" target="_parent">请假条批示</a></font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <font color="#00FF00" size="2"><a href="restleader.jsp" target="_parent">员工请假查询</a></font>&nbsp;&nbsp;&nbsp;&nbsp;
      <font color="#00FF00" size="2"><a href="userBack.jsp">进入普通用户界面</a></font> &nbsp;&nbsp;&nbsp;&nbsp;
      <font color="#00FF00" size="2"><a href="totallogin.jsp">重新登录</a></font> </TD>
  </TR></TBODY></TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 class=splash width="100%">
  <TBODY>
  <TR>
    <TD class=splash width="8%" align="center" valign="bottom"><IMG align=left border=0 height=72 hspace=0
      src="b.files/spl_1.gif" width=76></TD>
    <TD width="92%" align="center"><font size="5">欢迎进入领导管理界面</font> </TD>
  </TR>
  </TBODY>
</TABLE>
</body>
 <%}%>
 <%}
else
{
rs.close();
%>
<p align="center">对不起!您的输入有误,请重新填写!</p>
<p align="center"><a href="totallogin.jsp">返回首页</a></p>
</body>
<%}%>
</form>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -