📄 modifytrainstep1.jsp
字号:
<%@ page contentType="text/html;charset=gb2312" %>
<%@ include file="../incoming/Common.jsp"%>
<%@ include file="../Check.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<title><%=title%></title>
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../css/calendar-win2k-1.css" type="text/css" media="screen">
<script type="text/javascript" src="../js/calendar.js"></script>
<script type="text/javascript" src="../js/calendar-en.js"></script>
<script type="text/javascript" src="../js/calendar-setup.js"></script>
<script Language="JavaScript">
function check_input(theForm)
{
if (theForm.trainname.value == "")
{
alert("请输入培训名称。");
theForm.trainname.focus();
return (false);
}
if (theForm.trainwhat.value == "")
{
alert("请输入培训内容。");
theForm.trainwhat.focus();
return (false);
}
if (theForm.startdate.value == "")
{
alert("请输入开始日期。");
theForm.startdate.focus();
return (false);
}
if (theForm.enddate.value == "")
{
alert("请输入结束日期。");
theForm.enddate.focus();
return (false);
}
if (theForm.trainorgan.value == "")
{
alert("请输入培训单位。");
theForm.trainorgan.focus();
return (false);
}
if (theForm.trainresult.value == "")
{
alert("请输入培训结果。");
theForm.trainresult.focus();
return (false);
}
return (true);
}
</script>
</head>
<%@ include file="../incoming/Header.jsp"%>
<%
String trainno = new String(request.getParameter("trainno").getBytes("ISO8859_1"),"GBK");
Train train = Train.FindByNO(trainno);
%>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="120" valign="top" background="../images/in_left_bg.gif"><%@ include file="TrainLeft.jsp"%></td>
<td width="660" align="top">
<p align="center" class="title1">修改培训记录</p>
<form name="form1" method="post" action="ModifyTrainStep2.jsp?trainno=<%=trainno%>" onsubmit="return check_input(this)">
<table width="640" height="315" border="1" align="center" cellpadding="3" cellspacing="0" bordercolor="#CCCCCC">
<tr>
<td height="33"><div align="right">员工编号:</div></td>
<td><input name="employeeid" type="text" class="data" id="employeeid" size="20" maxlength="20" value="<%=train.getEmployeeID()%>">
*</td>
</tr>
<tr>
<td width="122" height="33"><div align="right"> 培训名称:</div></td>
<td width="500"><input name="trainname" type="text" class="data" id="trainname" size="20" maxlength="20" value="<%=train.getTrainName()%>">
*</td>
</tr>
<tr>
<td height="33"><div align="right">培训内容:</div></td>
<td><input name="trainwhat" type="text" class="data" id="trainwhat" size="40" maxlength="40" value="<%=train.getTrainWhat()%>">
*</td>
</tr>
<tr>
<td height="33"><div align="right">开始日期: </div></td>
<td><input name="startdate" type="text" class="data" id="startdate" value="<%=train.getStartDate()%>" size="10" maxlength="8" readonly="true">
<input name="start" type="button" id="start" value="...">
*</td>
</tr>
<tr>
<td height="33"><div align="right"> 结束日期:</div></td>
<td><input name="enddate" type="text" class="data" id="enddate" value="<%=train.getEndDate()%>" size="10" maxlength="8" readonly="true">
<input name="end" type="button" id="end" value="...">
* </td>
</tr>
<tr>
<td height="33"><div align="right">培训单位: </div></td>
<td><input name="trainorgan" type="text" class="data" id="trainorgan" size="40" maxlength="40" value="<%=train.getTrainOrgan()%>">
*</td>
</tr>
<tr>
<td height="33"><div align="right">培训结果: </div></td>
<td>
<select name="trainresult" id="trainresult">
<%if (train.getTrainResult().equals("差")) {%>
<option value="差" selected>差</option>
<%}else{%>
<option value="差" >差</option>
<%}%>
<%if (train.getTrainResult().equals("中")) {%>
<option value="中" selected>中</option>
<%}else{%>
<option value="中" >中</option>
<%}%>
<%if (train.getTrainResult().equals("良")) {%>
<option value="良" selected>良</option>
<%}else{%>
<option value="良" >良</option>
<%}%>
<%if (train.getTrainResult().equals("优")) {%>
<option value="优" selected>优</option>
<%}else{%>
<option value="优" >优</option>
<%}%>
</select>
*</td>
</tr>
<tr>
<td height="33"><div align="right">备注:</div></td>
<td><textarea name="remark" cols="60" rows="4" id="remark"><%=train.getRemark()%></textarea></td>
</tr>
<tr>
<td height="49" colspan="2"><div align="center">
<input type="Submit" name="Submit" value="修改" >
<input type="reset" name="Submit2" value="取消">
</div></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<%@ include file="../incoming/Footer.jsp"%>
<script language="JavaScript" type="text/JavaScript">
Calendar.setup(
{
inputField : "startdate", // ID of the input field
ifFormat : "%Y-%m-%d", // the date format
button : "start" // ID of the button
}
);
Calendar.setup(
{
inputField : "enddate", // ID of the input field
ifFormat : "%Y-%m-%d", // the date format
button : "end" // ID of the button
}
);
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -