📄 modifyemployee.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">
<br><html:form action="admin/modifyEmp2" method="post">
<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"><br></td>
<td width="5"><img src="images/3toptop_02.gif" width="5" height="28"><br></td>
<td width="200" align="center" background="images/3toptop_03.gif" class="gray-bold-word"><a href="employee_add.jsp"><font color="black">员工信息修改</font></a><br></td>
<td width="5"><img src="images/3toptop_04.gif" width="5" height="28"><br></td>
<td width="20"><img src="images/3toptop_05.gif" width="20" height="28"><br></td>
<td background="images/3top_06.gif"> <br></td>
<td width="35"><img src="images/3toptop_07.gif" width="35" height="28"><br></td>
</tr>
</table>
<table width="90%" border="0" align="center" cellpadding="4" cellspacing="2" class="gray-bd3-2">
<tr>
<td colspan="4" align="center"> <br></td>
</tr>
<tr>
<td>
<html:hidden property="mid"/>
</td>
</tr>
<tr>
<td width="100" align="center" class="brightcyan-tb"> 姓名:<br></td>
<td>
<html:text property="mname" size="16" maxlength="16">
</html:text>
<br></td>
</tr>
<tr>
<td width="100" align="center" class="brightcyan-tb">性别:<br></td>
<td>
<html:radio property="msex" value="男">男</html:radio>
<html:radio property="msex" value="女">女</html:radio>
</td>
</tr>
<tr>
<td width="100" align="center" class="brightcyan-tb">生日:<br></td>
<td>
<html:text property="mbirthday" size="16" maxlength="15" ></html:text>
<input type="button" name="change2" value="选择日期" class="small-btn" onClick="show_cele_date(change2,'','',mbirthday)">
<br></td>
</tr>
<tr>
<td width="100" align="center" class="brightcyan-tb">入职时间:<br></td>
<td>
<html:text property="mhiredate" size="16" maxlength="15"></html:text>
<input type="button" name="change2" value="选择日期" class="small-btn" onClick="show_cele_date(change2,'','',mhiredate)">
<br></td>
</tr>
<tr>
<td align="center" class="brightcyan-tb">职位:<br></td>
<td>
<html:select property="mposition">
<html:option value="a">管理员</html:option>
<html:option value="b">主管</html:option>
<html:option value="c">员工</html:option>
</html:select>
<br></td>
</tr>
<tr>
<td align="center" class="brightcyan-tb">学历:<br></td>
<td colspan="3">
<html:select property="mdegree">
<html:option value="博士">博士</html:option>
<html:option value="硕士">硕士</html:option>
<html:option value="本科">本科</html:option>
<html:option value="大专">大专</html:option>
<html:option value="高中">高中</html:option>
<html:option value="中专">中专</html:option>
<html:option value="初中">初中</html:option>
<html:option value="国小">国小</html:option>
<html:option value="幼稚园">幼稚园</html:option>
</html:select>
<br></td>
</tr>
<tr>
<td align="center" class="brightcyan-tb">专业:<br></td>
<td colspan="3">
<html:text property="mmajor" size="16" maxlength="16">
</html:text>
<br></tr>
<tr>
<td align="center" class="brightcyan-tb"> 行业经验:<br></td>
<td colspan="3">
<html:textarea property="mexperience" cols="30" rows="4">
</html:textarea>
<br></td>
</tr>
</table>
<p align="center">
<html:submit>更新</html:submit>
</p>
<p align="center"> </p>
</html:form>
</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 ********************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -