📄 modifystaffbasicinfolist.jsp
字号:
<%@ page language="java" import="java.util.*,com.oa.page.*,com.oa.db.*" pageEncoding="gbk"%>
<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);
%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
//String use=(String)session.getAttribute("username");System.out.println("use"+use);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>联信OA-部门办公</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
body {
margin-left: 10px;
margin-top: 10px;
margin-right: 0px;
margin-bottom: 0px;
}
a:link {
color: #000000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: underline;
color: #333333;
}
a:active {
text-decoration: none;
color: #333333;
}
-->
</style>
<link href="../css/css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE1 {
font-size: 14px;
font-weight: bold;
}
.STYLE6 { font-size: 16px;
font-weight: bold;
}
.STYLE7 {font-size: 18px}
-->
html,body{
scrollbar-face-color: #f2f2f2;
scrollbar-highlight-color: #ffffff;
scrollbar-shadow-color: #999999;
scrollbar-3dlight-color: #999999;
scrollbar-arrow-color: #999999;
scrollbar-track-color: ##FFFFFF;
scrollbar-darkshadow-color: #ffffff;
}
</style>
<script language="javascript">
function modify(a){
window.open("<%=request.getContextPath()%>/biaomodify.do?id="+a,"","");
// fr.action = "<%=request.getContextPath()%>/biaomodify.do?id="+a;
//fr.submit();
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body><form action="" method="post" name="fr" style="display:inline" target="_blank"></form>
<table width="770" border="0" cellpadding="0" cellspacing="1">
<tr>
<td width="768" bgcolor="#FFFFFF" valign="top" style="padding-bottom:4px; padding-top:3px;"><table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="717" height="25" bgcolor="#A4B5E3"><span class="STYLE1"> 员工查询</span></td>
</tr>
</table><form action="<%=request.getContextPath() %>/modifystaffbasicinfolist2.do" name="fr" method="post" style="display:inline">
<table width="731" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td width="79"> </td>
<td width="122"> </td>
<td width="278"> </td>
<td width="247"> </td>
</tr>
<tr>
<td>请选择部门</td>
<td height="25"><select name="department">
<option value="0">请选择</option>
<%List departmentlist = (List)request.getAttribute("departmentlist");
String departmentid = (String)request.getAttribute("deparment");
String str = "";
if(departmentlist!=null&&departmentlist.size()!=0){
for(int i=0;i<departmentlist.size();i++){
Department ao = (Department)departmentlist.get(i);
if(departmentid!=null&&departmentid.equals(ao.getId())){
str="selected";
}%>
<option value="<%=ao.getId() %>" <%=str %>><%=ao.getDepartment() %></option>
<%}} %>
</select>
</td>
<td>输入关键字 <input type="text" name="keyword" /></td>
<td><input name="Submit3" type="submit" value="查 询" /></td>
</tr>
<tr>
<td height="6" colspan="4"></td>
</tr>
<tr>
<td height="1" colspan="4" background="<%=request.getContextPath() %>/image/line.gif"></td>
</tr>
<tr>
<td height="6" colspan="4"></td>
</tr>
<tr>
<td height="25" colspan="4">提示:关键字查询可输入员工编号、员工姓名、状态等关键字</td>
</tr>
<tr>
<td height="12" colspan="4"> </td>
</tr>
</table></form>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="718" height="25" bgcolor="#A4B5E3"><span class="STYLE1"> 查询结果</span></td>
</tr>
</table>
<table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="3"></td>
</tr>
</table>
<table width="730" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#3868f8">
<tr bgcolor="#B5B5FF">
<td width="90" height="25" bgcolor="#CCCCCC"><div align="center">员工编号</div></td>
<td width="85" bgcolor="#CCCCCC"><div align="center">姓 名</div></td>
<td width="55" bgcolor="#CCCCCC"><div align="center">性别</div></td>
<td width="120" bgcolor="#CCCCCC"><div align="center">出生年月</div></td>
<td width="80" bgcolor="#CCCCCC"><div align="center">学历</div></td>
<td width="130" bgcolor="#CCCCCC"><div align="center">所属部门</div></td>
<td width="125" bgcolor="#CCCCCC"><div align="center">职 位</div></td>
<td width="80" bgcolor="#CCCCCC"><div align="center">状 态</div></td>
<td width="60" bgcolor="#CCCCCC"><div align="center">操 作</div></td>
</tr>
<%List list = (List) request.getAttribute("modifystaffbasicinfolist");
List list2 = (List) request.getAttribute("modifystaffbasicinfolist2");
if(list==null){
list = list2;
}
if (list != null && list.size() != 0) {
for (int i = 0; i < list.size(); i++) {
StaffbasicinfoResultVo svo = (StaffbasicinfoResultVo)list.get(i); %>
<tr bgcolor="#B5B5FF">
<td height="25" bgcolor="#FFFFFF"><div align="center"><%=svo.getStaffnamebh() %></div></td>
<td bgcolor="#FFFFFF"><div align="center"><%=svo.getRealname() %></div></td>
<td bgcolor="#FFFFFF"><div align="center"><%=svo.getSex() %></div></td>
<td bgcolor="#FFFFFF"><div align="center"><%if(svo.getBirthyear().equals("0")&&svo.getBirthmonth().equals("0")&&svo.getBirthday().equals("0")){ %>
<%="-" %><%}else{ %>
<%=svo.getBirthyear() %>-<%=svo.getBirthmonth()%>-<%=svo.getBirthday() %> <%} %></div></td>
<td bgcolor="#FFFFFF"><div align="center"><%if(svo.getMostdulevel()==null||svo.getMostdulevel().equals("")||svo.getMostdulevel().equals("null")){ %>
<%="-" %><%}else{ %>
<%=svo.getMostdulevel()%> <%} %></div></td>
<td bgcolor="#FFFFFF"><div align="center"><%if(svo.getDepartmentname()==null||svo.getDepartmentname().equals("")||svo.getDepartmentname().equals("null")){ %>
<%="-" %><%}else{ %>
<%=svo.getDepartmentname() %> <%} %></div></td>
<td bgcolor="#FFFFFF"><div align="center"><%if(svo.getPost()==null) {%>
<%="-" %>
<%}else{ %>
<%=svo.getPost()%> <%} %></div></td>
<td bgcolor="#FFFFFF"><div align="center"><%=svo.getStaffstatus() %></div></td>
<td bgcolor="#FFFFFF"><div align="center">
<input type="button" name="Submit2232" value="修改" onClick="modify('<%=svo.getId() %>')"/>
</div></td>
</tr>
<%
}
}else{
%>
<tr><td colspan="10" height="20" bgcolor="#FFFFFF"><div align="center">没有您要查找的信息!</div></td></tr>
<%} %>
</table>
<%List list3 = (List) request.getAttribute("modifystaffbasicinfolist");
List list4 = (List) request.getAttribute("modifystaffbasicinfolist2"); %>
<table>
<tr>
<td bgcolor="#ffffff">
<div align="right">
<%if(list3!=null&&list3.size()!=0){%>
<logic:notEmpty name="pageBean">
<table>
<tr>
<td>
共<font color="red"><bean:write name="pageBean" property="totalRecoder" /></font>条记录
</td>
<td>
当前第<font color="red">
<bean:write name="pageBean" property="currentPage" /></font>/<font color="red"><bean:write name="pageBean" property="totalPages" /></font>页
</td>
<td>
<html:link page="/modifystaffbasicinfolist.do" paramId="currentPage"
paramName="pageBean" paramProperty="firstPage" useLocalEncoding="true">
首 页</html:link>
</td>
<td>
<html:link page="/modifystaffbasicinfolist.do" paramId="currentPage"
paramName="pageBean" paramProperty="upPage" useLocalEncoding="true"> 上一页</html:link>
</td>
<td>
<html:link page="/modifystaffbasicinfolist.do" paramId="currentPage"
paramName="pageBean" paramProperty="downPage" useLocalEncoding="true">下一页</html:link>
</td>
<td>
<html:link page="/modifystaffbasicinfolist.do" paramId="currentPage"
paramName="pageBean" paramProperty="lastPage" useLocalEncoding="true">尾 页</html:link>
</td>
</tr>
</table>
</logic:notEmpty>
<%
}
%>
<%if(list4!=null&&list4.size()!=0){%>
<logic:notEmpty name="pageBean">
<table>
<tr>
<td>
共<font color="red"><bean:write name="pageBean" property="totalRecoder" /></font>条记录
</td>
<td>
当前第<font color="red">
<bean:write name="pageBean" property="currentPage" /></font>/<font color="red"><bean:write name="pageBean" property="totalPages" /></font>页
</td>
<td>
<html:link page="/modifystaffbasicinfolist3.do" paramId="currentPage"
paramName="pageBean" paramProperty="firstPage" name="map" useLocalEncoding="true">
首 页</html:link>
</td>
<td>
<html:link page="/modifystaffbasicinfolist3.do" paramId="currentPage"
paramName="pageBean" paramProperty="upPage" name="map" useLocalEncoding="true"> 上一页</html:link>
</td>
<td>
<html:link page="/modifystaffbasicinfolist3.do" paramId="currentPage"
paramName="pageBean" paramProperty="downPage" name="map" useLocalEncoding="true">下一页</html:link>
</td>
<td>
<html:link page="/modifystaffbasicinfolist3.do" paramId="currentPage"
paramName="pageBean" paramProperty="lastPage" name="map" useLocalEncoding="true">尾 页</html:link>
</td>
</tr>
</table>
</logic:notEmpty>
<%
}
%>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -