?? select.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="" %>
<%@ include file="../hear/hear.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>員工信息增加</title>
<link href="../css/work.css" rel="stylesheet" type="text/css" />
<script src="../js/oa.js"></script>
<style type="text/css">
<!--
.style1 {
font-family: "宋體";
font-weight: bold;
color: #000000;
font-size: 16px;
}
-->
</style>
</head>
<body bgcolor="#FFFFDF">
<table width="770" border="0" align="center" cellpadding="0" cellspacing="0">
<form name="form1" id="form1" method="post" action="select" onsubmit="return sel()">
<tr bgcolor="#FFFFFF">
<td height="25" colspan="12" align="center" class="style1" background="../KCM/zs.gif" >員工信息查找</td>
</tr>
<tr>
<td width="287" height="62" colspan="5" align="center">按
<select name="column">
<option value="employeeid">序號</option>
<option value="name">姓名</option>
<option value="sex">性別</option>
<option value="birthday">出生日期</option>
<option value="learn">學歷</option>
<option value="post">職稱</option>
<option value="departmentid">部門</option>
<option value="jobid">職位</option>
<option value="tel">電話</option>
<option value="addr">具體地址</option>
<option value="stateid">員工狀態</option>
</select>
查找 </td>
<td width="491" colspan="12" align="center"><input type="text" name="sele" />
<input type="submit" name="Submit" value="查找" /></td>
</tr>
<tr align="center">
<td height="30">序號</td>
<td>姓名</td>
<td >性別</td>
<td>出生日期</td>
<td >學歷</td>
<td>職稱</td>
<td>部門</td>
<td >職位</td>
<td >電話</td>
<td >地址</td>
<td >狀態</td>
<td >刪除</td>
</tr>
<%
Collection coll=(Collection)request.getAttribute("msg");
if(coll!=null){
Iterator it=coll.iterator();
while(it.hasNext()){
Eminfo dep=(Eminfo)it.next();
%>
<tr align="center">
<td height="25"><%= dep.getId() %></td>
<td height="22"><a href="add?id=<%= dep.getId() %>"><%= dep.getName() %></a></td>
<td height="22">
<%
if(dep.getSex()==0){
out.print("女");
}else{
out.print("男");
}
%></td>
<td height="22"><%= dep.getBirthday() %></td>
<td height="22"><%= dep.getLearn() %></td>
<td height="22"><%= dep.getPost() %></td>
<td height="22"><%= dep.getDepartment() %></td>
<td height="22"><%= dep.getJob() %></td>
<td height="22"><%= dep.getTel() %></td>
<td height="22"><%= dep.getAddr() %></td>
<td height="22"><%= dep.getState() %></td>
<td height="22"><a href="del?id=<%= dep.getId() %>"><img src="../image/empty.gif" width="20" height="20" border="0" /></a></td>
</tr>
<%
}//while
}//coll
String selmsg=(String)request.getAttribute("msg2");
if(selmsg!=null){
%>
<tr>
<td colspan="12" align="center" class="advise"> <%= selmsg %> </td>
</tr>
<%
request.removeAttribute("msg2");
}
request.removeAttribute("msg");
%>
<tr align="right" bgcolor="#FFFFDF">
<td colspan="12"><span class="return" onclick="javascript:history.back(-1);">返回</span> </td>
</tr>
</form>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -