📄 showemployee.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>大唐任务管理系统</title>
<link href="css/main.css" rel="stylesheet" type="text/css"></link>
<link href="css/index.css" rel="stylesheet" type="text/css"></link>
<style type="text/css">
<!--
body {
margin-left: 30px;
margin-top: 15px;
margin-right: 15px;
margin-bottom: 15px;
background-attachment: fixed;
background-image: url(admin/images/downbg.gif);
background-repeat: no-repeat;
background-position: right bottom;
}
-->
</style>
</head>
<body onLoad="MM_preloadImages('images/down.gif','images/up.gif','images/view-chooseo.gif')">
<p><span class="gray-bold-word"></span>
<p>
</p>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="35"><img src="images/3toptop_01.gif" width="35" height="28"></td>
<td width="5"><img src="images/3toptop_02.gif" width="5" height="28"></td>
<td width="200" align="center" background="images/3toptop_03.gif" class="gray-bold-word"><font color="black">员工信息查询</font></td>
<td width="5"><img src="images/3toptop_04.gif" width="5" height="28"></td>
<td width="20"><img src="images/3toptop_05.gif" width="20" height="28"></td>
<td background="images/3top_06.gif"> </td>
<td width="35"><img src="images/3toptop_07.gif" width="35" height="28"></td>
</tr>
</table>
<table width="90%" border="1" align="center" cellpadding="4" cellspacing="2" class="gray-bd3-2">
<tr>
<td colspan="10" align="center"> </td>
</tr>
<tr>
<td width="12%" class="brightcyan-tb"> <div align="center"><strong>用户名</strong></div></td>
<td width="16%"><div align="center"><strong><span class="brightcyan-tb">姓名</span></strong></div></td>
<td width="10%"><div align="center"><strong><span class="brightcyan-tb">性别</span></strong></div></td>
<td width="10%"><div align="center"><strong><span class="brightcyan-tb">职位</span></strong></div></td>
<td width="16%"><div align="center"><strong>入职时间</strong></div></td>
<td width="16%"><div align="center"><strong><span class="brightcyan-tb">所属主管</span></strong></div></td>
<td width="20%"><div align="center"><strong>操作</strong></div></td>
</tr>
<logic:iterate id="allEmployee" name="showEmpForm" property="list">
<tr>
<td align="center" class="brightcyan-tb">
<div align="center">
<bean:write name="allEmployee" property="id"/>
</div>
</td>
<td>
<div align="center">
<a href="showEmployeeInfo.do?showEmployee_id=<bean:write name="allEmployee" property="id"/>">
<bean:write name="allEmployee" property="name"/>
</a>
</div>
</td>
<td>
<div align="center">
<bean:write name="allEmployee" property="sex"/>
</div>
</td>
<td>
<div align="center">
<bean:write name="allEmployee" property="position"/>
</div>
</td>
<td>
<div align="center">
<bean:write name="allEmployee" property="hiredate"/>
</div>
</td>
<td>
<div align="center">
<logic:notEqual name ="showEmpForm" property="managerid" value="108312">
<a href="showManagerInfo.do?showManager_id=<bean:write name="allEmployee" property="managerid"/>">
<bean:write name="allEmployee" property="manager"/>
</a>
</logic:notEqual>
<logic:equal name ="showEmpForm" property="managerid" value="108312">
<a href="dispaterClerk.do?dispater_id=<bean:write name="allEmployee" property="id"/>">
<bean:write name="allEmployee" property="manager"/>
</a>
</logic:equal>
</div>
</td>
<td>
<div align="center">
<a href="modifyEmp.do?modify_id=<bean:write name="allEmployee" property="id"/>">
修改
</a>
<a href="deleteEmp.do?delete_id=<bean:write name="allEmployee" property="id"/>">
删除
</a>
</div>
</td>
</tr>
</logic:iterate>
</table>
<center>
<logic:greaterThan name="showEmpForm" property="current_page" value="1">
<a href ="showEmp.do?act=first">第一页</a> <a href ="showEmp.do?act=pre">上一页</a>
</logic:greaterThan>
<logic:lessThan name="showEmpForm" property="current_page" value="3">
<a href ="showEmp.do?act=next">下一页</a> <a href ="showEmp.do?act=last">最后一页</a>
</logic:lessThan>
当前<bean:write name="showEmpForm" property="current_page"/>/<bean:write name="showEmpForm" property="total_page"/>
</center>
<p align="center"> </p>
<p align="center"> </p>
</body>
</html>
<SCRIPT LANGUAGE="JavaScript">
<!--
//有效的时间范围
var date_start,date_end,g_object
var today = new Date();
var separator="-";
var inover=false;
//mode :时间变换的类型0-年 1-月 2-直接选择月
function change_date(temp,mode)
{
var t_month,t_year
if (mode){
if(mode==1)
t_month=parseInt(cele_date_month.value,10)+parseInt(temp,10);
else
t_month=parseInt(temp)
if (t_month<cele_date_month.options(0).text) {
cele_date_month.value=cele_date_month.options(cele_date_month.length-1).text;
change_date(parseInt(cele_date_year.value,10)-1,0);
}
else{
if (t_month>cele_date_month.options(cele_date_month.length-1).text){
cele_date_month.value=cele_date_month.options(0).text;
change_date(parseInt(cele_date_year.value,10)+1,0);
}
else
{cele_date_month.value=t_month;
set_cele_date(cele_date_year.value,cele_date_month.value);
}
}
}
else{
t_year=parseInt(temp,10);
if (t_year<cele_date_year.options(0).text) {
cele_date_year.value=cele_date_year.options(0).text;
set_cele_date(cele_date_year.value,1);
}
else{
if (parseInt(t_year,10)>parseInt(cele_date_year.options(cele_date_year.length-1).text,10)){
cele_date_year.value=cele_date_year.options(cele_date_year.length-1).text;
set_cele_date(cele_date_year.value,12);
}
else
{cele_date_year.value=t_year;
set_cele_date(cele_date_year.value,cele_date_month.value);
}
}
}
/*********2002-02-01 MODIFY BY WING **************/
window.cele_date.focus();
/****************MODIFY END***********************/
}
//初始化日历
function init(d_start,d_end)
{
var temp_str;
var i=0
var j=0
date_start=new Date(2000,7,1)
date_end=new Date(2004,8,1)
//必须要有内容(奇怪)
/*************************2002-02-01 MODIFY BY WING *********************************************************************************/
document.writeln("<div name=\"cele_date\" id=\"cele_date\" style=\"display:none\" style=\"LEFT: 69px; POSITION: absolute; TOP: 159px;Z-INDEX:99\" onClick=\"event.cancelBubble=true;\" onBlur=\"hilayer()\" onMouseout=\"lostlayerfocus()\">? </div>");
/*******************************************MODIFY END*******************************************************************************/
window.cele_date.innerHTML="";
temp_str="<table border=\"1\" bgcolor=\"#4682b4\" bordercolor=\"white\"><tr><td colspan=7 onmouseover=\"overcolor(this)\">";
temp_str+="<input type=\"Button\" value=\"<<\" onclick=\"change_date(-1,1)\" onmouseover=\"getlayerfocus()\" style=\"color: #FFFFFF; background-color: #5d7790; cursor: hand\">年";//左面的箭头
/**************************2002-02-01 MODIFY BY WING ********************************************************************************/
/*temp_str+="<input type=\"Button\" value=\"<<\" onclick=\"change_date(-1,1)\" >?";//左面的箭头 */
/************************************************************************************************************************************/
temp_str+=""//年
temp_str+="<select name=\"cele_date_year\" id=\"cele_date_year\" language=\"javascript\" onchange=\"change_date(this.value,0)\" onmouseover=\"getlayerfocus()\" onblur=\"getlayerfocus()\" style=\"font-size: 9pt; border: 1px #666666 outset; background-color: #F4F8FB\">"
/**************************2002-02-01 MODIFY BY WING ********************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -