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

📄 left.jsp

📁 用jsp和Oracle写的人事管理系统
💻 JSP
字号:
<%@ page contentType="text/html;charset=gb2312"%> 
<%@ include file="JSP/OPENDB.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<link rel="stylesheet" href="css/css.css">
<title>人事管理系统</title>
</head>
<base target="main">

<script language="JavaScript1.2">
scores = new Array(20);
var numTotal=0;
NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
ver4 = (NS4 || IE4) ? 1 : 0;

if (ver4) {    with (document) {        write("<STYLE TYPE='text/css'>");        if (NS4) {            write(".parent {position:absolute; visibility:visible}");            write(".child {position:absolute; visibility:visible}");            write(".regular {position:absolute; visibility:visible}")        }        else {            write(".child {display:none}")        }        write("</STYLE>");    }}



function getIndex(el) {    ind = null;    for (i=0; i<document.layers.length; i++) {        whichEl = document.layers[i];        if (whichEl.id == el) {            ind = i;            break;        }    }    return ind;}


function arrange() {    nextY = document.layers[firstInd].pageY +document.layers[firstInd].document.height;    for (i=firstInd+1; i<document.layers.length; i++) {        whichEl = document.layers[i];        if (whichEl.visibility != "hide") {            whichEl.pageY = nextY;            nextY += whichEl.document.height;        }    }}function initIt(){    if (!ver4) return;    if (NS4) {        for (i=0; i<document.layers.length; i++) {            whichEl = document.layers[i];            if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide";       }        arrange();    }    else {        divColl = document.all.tags("DIV");        for (i=0; i<divColl.length; i++) {            whichEl = divColl(i);            if (whichEl.className == "child") whichEl.style.display = "none";        }    }}


function expandIt(el) {	if (!ver4) return;    if (IE4) {        whichEl1 = eval(el + "Child");		for(i=1;i<=numTotal;i++){			whichEl = eval(scores[i] + "Child");			if(whichEl!=whichEl1) {				whichEl.style.display = "none";			}		}        whichEl1 = eval(el + "Child");        if (whichEl1.style.display == "none") {            whichEl1.style.display = "block";        }        else {            whichEl1.style.display = "none";        }    }    else {        whichEl = eval("document." + el + "Child");		for(i=1;i<=numTotal;i++){			whichEl = eval("document." + scores[i] + "Child");			if(whichEl!=whichEl1) {				whichEl.visibility = "hide";			}		}        if (whichEl.visibility == "hide") {            whichEl.visibility = "show";        }        else {            whichEl.visibility = "hide";        }        arrange();    }}



onload = initIt;

</script>




<body bgcolor="#eeeeee" topmargin="0" leftmargin="5">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td height=5></td>
</tr>
</table>
 <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
      <td height=68>
        <table border="0" cellpadding="0" cellspacing="0" width="100%" height="68">
          <tr>
            
<table cellspacing="1" cellpadding="4" width="99%" align="center" >
<tr class="header"><td colspan="3"><center><h1>人事管理</h1></center></td></tr>
<tr class="altbg2" align="center">
</tr></table>

          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td valign=top>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
          <tr>
            <td background="IMAGES/J4.GIF" width=18 height=280></td>
            <td valign=top height=280>

<%String oabusyname = (String) session.getValue("oabusyname"); 
String oabusyusername = (String) session.getValue("oabusyusername"); 
String oabusyuserdept = (String) session.getValue("oabusyuserdept"); 
String oabusyuserlevel = (String) session.getValue("oabusyuserlevel"); 
String cook_allow_see_all_workrep = (String) session.getValue("cook_allow_see_all_workrep"); 
String cook_allow_see_dept_workrep= (String) session.getValue("cook_allow_see_dept_workrep"); 
String cook_allow_control_dept_user = (String) session.getValue("cook_allow_control_dept_user"); 
String cook_allow_control_all_user = (String) session.getValue("cook_allow_control_all_user"); 
String cook_allow_send_note = (String) session.getValue("cook_allow_send_note"); 
String cook_allow_control_note = (String) session.getValue("cook_allow_control_note"); 
String cook_allow_control_file = (String) session.getValue("cook_allow_control_file"); 
String cook_allow_control_level = (String) session.getValue("cook_allow_control_level"); 

//打开数据库,读出权限
String sql="select * from scott.userinf where username='"+oabusyusername+"'"; 
ResultSet rs=stmt.executeQuery(sql); 
if(rs.next())
{
String cook_allow_see_all_personinf=rs.getString("allow_see_all_personinf");
String cook_allow_see_dept_personinf=rs.getString("allow_see_dept_personinf");

String cook_allow_edit_all_jobchanginf=rs.getString("allow_edit_all_jobchanginf");
String cook_allow_edit_dept_jobchanginf=rs.getString("allow_edit_dept_jobchanginf");

String cook_allow_edit_all_rewpuninf=rs.getString("allow_edit_all_rewpuninf");
String cook_allow_edit_dept_rewpuninf=rs.getString("allow_edit_dept_rewpuninf");

String cook_allow_edit_all_checkinf=rs.getString("allow_edit_all_checkinf");
String cook_allow_edit_dept_checkinf=rs.getString("allow_edit_dept_checkinf");

%>


<div id='KB1Parent' class='parent'>
<a href="#" onClick="expandIt('KB1'); return false">
<IMG SRC='IMAGES/WORKPLAN.GIF' BORDER=0 width="30" height="16" alt="在这里管理 工作"><h2>工作管理</h2>
</a>
</div>
<div id='KB1Child' class='child'>
<%String yesvalue;
yesvalue="yes";
if(yesvalue.equals(cook_allow_see_all_workrep)|(yesvalue.equals(cook_allow_see_dept_workrep)))
{
%>

<%
}
%>
<a href="deptsystem.jsp"> <IMG SRC='IMAGES/BLANK.GIF' BORDER=0>部门管理</a><br>
<a href="levelsystem.jsp"> <IMG SRC='IMAGES/BLANK.GIF' BORDER=0>职位管理</a><br>
</div>

<div id='KB2Parent' class='parent'>

</div>
<div id='KB2Child' class='child'>

</div>

<div id='KB3Parent' class='parent'>

</div>
<div id='KB3Child' class='child'>

</div>

<div id='KB4Parent' class='parent'> <a href="#" onClick="expandIt('KB4'); return false"> 
  <IMG SRC='IMAGES/RENLI.GIF' BORDER=0 width="30" height="16" alt="在这里管理员工档案"><h2>人员管理</h2>
  </a> </div>
<div id='KB4Child' class='child'>
<a href="user.jsp"> <IMG SRC='IMAGES/BLANK.GIF' BORDER=0>个人档案管理</a><br>
<a href="check.jsp"> <IMG SRC='IMAGES/BLANK.GIF' BORDER=0>考核管理</a><br>
<a href="chang.jsp"> <IMG SRC='IMAGES/BLANK.GIF' BORDER=0>职位变动管理</a><br>

<%if(yesvalue.equals(cook_allow_see_all_personinf)|(yesvalue.equals(cook_allow_see_dept_personinf)))
{
%>

<%
}
%>
<%if(yesvalue.equals(cook_allow_edit_all_jobchanginf)|(yesvalue.equals(cook_allow_edit_dept_jobchanginf)))
{
%>


<%
}
%>

</div>

<div id='KB5Parent' class='parent'> <a href="#" onClick="expandIt('KB5'); return false"> 
  </a></div>
<div id='KB5Child' class='child'>

</div>

<div id='KB6Parent' class='parent'>

</div>
<div id='KB6Child' class='child'> </div>
  </td>
       
          </tr>
        </table>
    </tr>
    <tr>
      <td height=19>
        <table border="0" cellpadding="0" cellspacing="0" width="100%" height="19">
          <tr>
           
          </tr>
        </table>
      </td>
    </tr>
  </table>

<SCRIPT>
numTotal=6;scores[1]='KB6';scores[2]='KB1';scores[3]='KB2';scores[4]='KB3';scores[5]='KB4';scores[6]='KB5';</SCRIPT>
<%}%>
<table>
<td align=buttom><img src="IMAGES/gs1.gif" width=155 height=150 border=0 alt="本系统图标">
<img src="IMAGES/gs2.gif" width=155 height=150 border=0 alt="本系统图标">
<img src="IMAGES/gs3.gif" width=155 height=150 border=0 alt="本系统图标">
<img src="IMAGES/gs4.gif" width=155 height=150 border=0 alt="本系统图标"></td></body>
</html>

⌨️ 快捷键说明

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