📄 information.jsp
字号:
<%@ page import="java.util.*"%>
<%@ page contentType="text/html;charset=gb2312" %>
<%@ page import="cn.com.search.*"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>人员信息查询</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 display(id){
var div=document.getElementById(id);
if(div.style.display=="none"){
div.style.display="block";
}else{
div.style.display="none";
}
}
//点击改变右边子页面
function changeContent(url){
this.content.location = url;
// parent.content.location=url;
}
</script>
<style type="text/css">
<!--
body {
background-color: #FFFFFF;
}
.style2 { font-size: 18px;
color: #66FFFF;
}
.style3 {color: #333333}
.style5 {font-size: 18px; color: #00A6D6; }
-->
</style>
</head>
<body>
<div id="Layer2"
style="position:absolute;
left:0px;
top:105px;
width:175px;
height:460px;
z-index:2">
<table width="200" border="0">
<tr>
<th height="50" colspan="2" scope="col"><div align="left" class="style2 style3">人员档案</div></th>
</tr>
<tr>
<td width="22"><img src="image/tree_blank.gif" width="16" height="18"></td>
<td width="168"><a href="binfo.htm">人员基本信息</a></td>
</tr>
<tr>
<td><img src="image/tree_blank.gif" width="16" height="18"></td>
<td><a href="file.htm">员工档案</a></td>
</tr>
<tr>
<td><img src="image/tree_blank.gif" width="16" height="18"></td>
<td><a href="record.htm">员工履历</a></td>
</tr>
<tr>
<td><img src="image/tree_blank.gif" width="16" height="18"></td>
<td><a href="contract.htm">员工合同</a></td>
</tr>
<tr>
<td><img src="image/tree_blank.gif" width="16" height="18"></td>
<td><a href="award.htm">奖惩管理</a></td>
</tr>
<tr>
<td><img src="image/tree_blankln.gif" width="16" height="22"></td>
<td><a href="infosea.htm">人员基本信息查询</a></td>
</tr>
</table>
</div>
<div id="Layer1"
style="position:absolute;
left:0px;
top:0px;
width:1002px;
height:100px;
z-index:1">
<table width="1002" height="100" border="0">
<tr bgcolor="#00A6D6">
<th colspan="3" scope="col"><div align="center"><img src="image/bu1.gif" width="299" height="70"><a href="binfo.htm"><img src="image/zy-1-1.gif" width="56" height="70" border="0"></a><a href="move.htm"><img src="image/zy-3.gif" width="56" height="70" border="0"></a><a href="trasort.htm"><img src="image/zy-6-6.gif" width="56" height="70" border="0"></a><a href="inslevel.htm"><img src="image/zy-8.gif" width="56" height="70" border="0"></a></div></th>
</tr>
<tr>
<td width="888" height="25" bgcolor="#EAEAEA"><div align="left"><img src="image/index-18.gif" width="20" height="20"> <span class="style5">用户名:<%=(String)session.getAttribute("userName") %></span></div></td>
<td width="67" bgcolor="#EAEAEA"><a href="index.htm"><img src="image/index-19.gif" width="67" height="20" border="0"></a></td>
<td width="74" bgcolor="#EAEAEA"><a href="form/denglu.jsp"><img src="image/1.gif" width="67" height="20" border="0"></a></td>
</tr>
</table>
</div>
<div id="Layer3"
style="position:absolute; left:200px; top:105px; width:801px; height:489px; z-index:3; background-color: #EAEAEA; layer-background-color: #EAEAEA; border: 1px none #000000;">
<form name="form2" method="post" action="">
<p><hr></p>
<strong>人员信息
</strong>
<%
List users = (List)request.getAttribute("infoSea");
/* 将ActionServlet中定义的 users全局变量值在本页取出并定义同名list users来存储这些值 */
%>
<table width="657" border="1" bgcolor="#FFFFFF">
<tr>
<td width="73" align="center">人员编号</td>
<td width="90" align="center">姓名</td>
<td width="102" align="center">性别</td>
<td width="139" align="center">出生日期</td>
<td width="219" align="center">身份证号</td>
</tr>
<%
for(int i = 0;i<users.size();i++){
UserInfo user = (UserInfo)users.get(i);
//由于list里面会有多条记录所以要通过循环将每一条的信息都显示在sucess。jsp页面上
%>
<tr>
<td><%=user.getEmp_id() %></td>
<td><%=user.getEmp_name()%></td>
<td><%=user.getEmp_sex() %></td>
<td><%=user.getEmp_birth()%></td>
<td><%=user.getEmp_idenfy()%></td>
</tr>
<%
}
%>
</table>
</form>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -