📄 modlessonarchive.jsp
字号:
<%@ page contentType="text/html;charset=gb2312"%>
<%@ include file="/agt/public/jsp/top.jsp" %>
<title>新增培训档案</title>
<script src="/public/scripts/cal.js"></script>
<form name="TrnmngForm" method="post" action="/TrnmngAction.do" >
<a class="lnk-cs3" href="/TrnmngAction.do?operatorflag=TRNMNG_QUERYLESSONDETAIL&staffno=<%=request.getAttribute("staffno")%>">[返回课程档案列表]</a>
<input type="hidden" name="operatorflag">
<input type="hidden" name="staffno" value="<%= request.getAttribute("staffno") %>">
<input type="hidden" name="lessonid" value="<%= request.getAttribute("lessonid") %> ">
<table width="539" border="0" cellpadding="3" cellspacing="1" class="table-cs1">
<tr>
<td width="80" align="center" class="td-cs1">工号</td>
<td width="135" class="td-cs2"><%= request.getAttribute("staffno") %>
</td>
<td width="80" align="center" class="td-cs1">学时</td>
<td class="td-cs2">
<input name="duration" type="text" class="input1"
value = "<%= request.getAttribute("duration") %>" maxlength=3>
小时</td>
</tr>
<tr>
<td width="80" align="center" class="td-cs1">课程</td>
<td class="td-cs2"><%= request.getAttribute("lessontitle") %>
</td>
<td width="80" align="center" class="td-cs1">开课时间</td>
<td width="172" class="td-cs2">
<input name="lessondate" type="text" class="input1" onClick="javascript:calDate(this);" onKeypress="javascript:calDate(this);"
value = "<%= request.getAttribute("lessondate")%>"
readonly
></td>
</tr>
</table>
<table width="323" height="35" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="107">
<input name="save" type="image" onclick="doSubmit('TRN_TRNMOD_LESSON');return false;" src="/agt/public/images/save.gif" width="82" height="22" border="0" onmouseover="this.src='/agt/public/images/'+ this.name + '_2.gif';" onmouseout="this.src='/agt/public/images/'+ this.name + '.gif'"></td>
<td width="109">
<input name="reset" type="image" onclick="TrnmngForm.reset();return false;" src="/agt/public/images/reset.gif" width="82" height="22" border="0" onmouseover="this.src='/agt/public/images/'+ this.name + '_2.gif';" onmouseout="this.src='/agt/public/images/'+ this.name + '.gif'"></td>
</tr>
</table>
</form>
<script language="JavaScript" type="text/JavaScript">
function isNumber(str){
if(str.length==0) return false;
for(var i=0;i<str.length;i++){
if((str.charAt(i)<'0') ||( str.charAt(i)>'9'))
return false;
}
return true;
}
function CheckAvailable()
{
if (((!((isNumber(document.TrnmngForm.duration.value))))||(document.TrnmngForm.duration.value == 0))
&&(document.TrnmngForm.duration.value != ""))
{
alert("学时必须是大于0的整数");
document.TrnmngForm.duration.focus();
return false;
}
else
{
return true;
}
}
function doSubmit(ope){
if (CheckAvailable())
{
document.TrnmngForm.operatorflag.value = ope;
TrnmngForm.submit();
}
}
</script>
<%@ include file="/agt/public/jsp/bot.jsp" %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -