📄 examaddinput.jsp
字号:
<%@ page contentType="text/html;charset=gb2312"%>
<%@ include file="/agt/public/jsp/top.jsp" %>
<script src="/public/scripts/cal.js"></script>
<!-- title>业务代表管理系统录入考试安排</title -->
<form name="examform" method="POST" action="/ExamMan.do">
<table width="539" border="0" cellpadding="3" cellspacing="1" class="table-cs1">
<tr>
<td width="80" align="center" class="td-cs1">考试形式</td>
<td class="td-cs2" colspan="3"> <select name="groupExam" class="input3" onchange="changeGroupExam(this.value)">
<option value="0" selected >按参加人</option>
<option value="1">按班级分组</option>
</select></td>
</tr>
<tr>
<td width="80" align="center" class="td-cs1">考试名称*</td>
<td colspan="3" class="td-cs2"> <input name="title" type="text" class="input2" size="40" maxlength="50"></td>
</tr>
<tr>
<td width="80" align="center" class="td-cs1">考试主题</td>
<td colspan="3" class="td-cs2"> <input name="subject" type="text" class="input2" size="40" maxlength="75"></td>
</tr>
<input type="hidden" name="state" value="0">
<input type="hidden" name="opeType" value="<%=OperatorFlagCode.EXAM_ADD%>">
<tr>
<td width="80" align="center" class="td-cs1">所用考卷*</td>
<td colspan="3" class="td-cs2">
<table width="89%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="63%"><input name="paperName" type="text" class="input2" size="40" readonly>
</td>
<td width="37%">
<input name="choise" type="image" onClick="selectPaper();return false;" src="/agt/public/images/choise.gif" width="48" height="25" border="0" onMouseOver="this.src='/agt/public/images/'+ this.name + '_2.gif';" onMouseOut="this.src='/agt/public/images/'+ this.name + '.gif'">
<input type="hidden" name="paperId"> </td>
</tr>
</table>
</td>
</tr>
<td width="80" height="28" align="center" class="td-cs1">所属类别*</td>
<input type="hidden" name="classId">
<td colspan="3" class="td-cs2">
<table width="89%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="63%"><input name="className" type="text" class="input2" size="40" readonly>
</td>
<td width="37%">
<input name="choise" type="image" onClick="openClassWindow('/ClsMngOperatorAction.do?operatorFlag=<%=OperatorFlagCode.CLSMNG_CHOOSE%>&select=04','选择类别');return false;" src="/agt/public/images/choise.gif" width="48" height="25" border="0" onMouseOver="this.src='/agt/public/images/'+ this.name + '_2.gif';" onMouseOut="this.src='/agt/public/images/'+ this.name + '.gif'">
</td>
</tr>
</table> </td>
</tr>
<tr>
<td width="80" align="center" class="td-cs1">所属地市*</td>
<td class="td-cs2">
<%
LinkedList cityId = (LinkedList)session.getAttribute("CITYID");
LinkedList cityName = (LinkedList)session.getAttribute("CITYNAME");
if(cityId != null)
{
%>
<select name="cityId" size="1" class="input3">
<% for(int i=0;i<cityId.size();i++)
{
%>
<option value="<%=cityId.get(i)%>" <%if(i==0){%> selected <%}%>><%=cityName.get(i)%></option>
<% }%>
</select>
<%}
%>
</td>
<input name="paperScore" type="hidden">
<td width="80" align="center" class="td-cs1">及格分数*</td>
<td class="td-cs2"> <input name="passScore" type="text" class="input1" size="20" maxlength="3">
</td>
</tr>
<tr>
<td width="80" align="center" class="td-cs1">最大次数</td>
<td width="187" class="td-cs2"> <input name="maxCount" type="text" class="input1" size="20" maxlength="3"></td>
<td width="80" align="center" class="td-cs1">考试时长</td>
<td width="206" class="td-cs2"> <input name="examTime" type="text" class="input1" size="20" maxlength="3">
分钟</td>
</tr>
<tr>
<td width="80" align="center" class="td-cs1">开始时间</td>
<td class="td-cs2"> <input type="text" name="startTime" class="input1" size="20" onClick="javascript:calDateTimeNoS(this);" onKeyPress="javascript:calDateTimeNoS(this);"></td>
<td width="80" align="center" class="td-cs1">结束时间</td>
<td class="td-cs2"> <input type="text" name="endTime" class="input1" size="20" onClick="javascript:calDateTimeNoS(this);" onKeyPress="javascript:calDateTimeNoS(this);"></td>
</tr>
<tr>
<td width="80" align="center" class="td-cs1">评卷教师工号</td>
<td class="td-cs2">
<table>
<tr>
<td>
<input name="teacherId" type="text" class="input1" maxlength="10" >
</td>
<td>
<input name="choise" type="image" onClick="window.open('/GetStaff.do?opeType=<%=OperatorFlagCode.GET_TEACHER%>','选择评卷教师', 'toolbar=no,location=no,width=450,height=350,status=no','bReplace');return false;" src="/agt/public/images/choise.gif" width="48" height="25" border="0" onMouseOver="this.src='/agt/public/images/'+ this.name + '_2.gif';" onMouseOut="this.src='/agt/public/images/'+ this.name + '.gif'">
</td>
</tr>
</table>
</td>
<td width="80" align="center" class="td-cs1">审查人工号*</td>
<td class="td-cs2">
<table>
<tr>
<td>
<input name="checkHandler" type="text" class="input1" maxlength="10" >
</td>
<td>
<input name="choise" type="image" onClick="window.open('/GetStaff.do?opeType=<%=OperatorFlagCode.GET_EXAMCHECKER%>','选择审查人', 'toolbar=no,location=no,width=450,height=350,status=no','bReplace');return false;" src="/agt/public/images/choise.gif" width="48" height="25" border="0" onMouseOver="this.src='/agt/public/images/'+ this.name + '_2.gif';" onMouseOut="this.src='/agt/public/images/'+ this.name + '.gif'">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="80" align="center" class="td-cs1">公开答案</td>
<td class="td-cs2" colspan="3"> <select name="publicResult" class="input3">
<option value="0" selected >否</option>
<option value="1">是</option>
</select></td>
</tr>
<tr>
<td width="80" align="center" class="td-cs1">参与范围</td>
<td class="td-cs2" colspan="3"> <select name="scope" class="input3" onchange="changeScope(this.value)">
<option value="1" selected >指定人员与班组</option>
<option value="0">所有员工都参与</option>
</select></td>
</tr>
</table>
<table width="539" border="0" cellpadding="3" cellspacing="1" class="table-cs1" id="scopeTable">
<tr>
<td width="13%" align="center" class="td-cs1">参与人员</td>
<td width="87%" class="td-cs2">
<table width="89%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="63%" >
<input type="text" name="staffIds" class="input2">
</td>
<td width="37%">
<input name="choise" type="image" onClick="window.showModalDialog('/GetStaff.do?opeType=<%=OperatorFlagCode.GET_STAFFNO%>',document.forms[0],'dialogWidth:460px; dialogHeight:380px; toolbar:no; status:no; location:no; scrolling:no; resize:no;');return false;" src="/agt/public/images/choise.gif" width="48" height="25" border="0" onMouseOver="this.src='/agt/public/images/'+ this.name + '_2.gif';" onMouseOut="this.src='/agt/public/images/'+ this.name + '.gif'">
</td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" class="td-cs1">参与班组</td>
<td class="td-cs2">
<table width="89%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="63%">
<input type="text" name="groupIds" class="input2">
</td>
<td width="37%">
<input name="choise" type="image" onClick="window.showModalDialog('/GetStaff.do?opeType=<%=OperatorFlagCode.GET_GROUP%>',document.forms[0],'dialogWidth:460px; dialogHeight:380px; toolbar:no; status:no; location:no; scrolling:no; resize:no;');return false;" src="/agt/public/images/choise.gif" width="48" height="25" border="0" onMouseOver="this.src='/agt/public/images/'+ this.name + '_2.gif';" onMouseOut="this.src='/agt/public/images/'+ this.name + '.gif'">
</td>
</tr>
</table></td>
</tr>
</table>
<table width="55%" height="35" border="0" cellpadding="0" cellspacing="0">
<tr align="center">
<td width="100">
<input name="save" type="image" onclick="saveSubmit();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="100">
<input name="submit" type="image" onclick="checkSubmit();return false;" src="/agt/public/images/submit.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="100">
<input name="reset" type="image" onclick="examform.reset();changeScope('0');changeScope('1');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 src="../public/js/scriptfuns.js" type="text/javascript"></script>
<script src="/agt/public/js/my_functions.js" type="text/javascript"></script>
<script language="javascript">
//检查提交的表单
function checkForm()
{
var title = document.examform.title;
var subject = document.examform.subject;
var paperId = document.examform.paperId;
var classId = document.examform.classId;
var passScore = document.examform.passScore;
var examTime = document.examform.examTime;
var maxCount = document.examform.maxCount;
var startTime = document.examform.startTime;
var endTime = document.examform.endTime;
var checkHandler = document.examform.checkHandler;
var paperScore = document.examform.paperScore;
var teacherId = document.examform.teacherId;
if(title == null || trim(title.value)=="")
{
alert("考试安排的名称不能为空,请输入!");
title.focus();
return false;
}
if(paperId == null || trim(paperId.value)=="")
{
alert("考试安排的所用试卷不能为空,请输入!");
return false;
}
if(classId ==null || trim(classId.value)=="")
{
alert("考试安排的所属类别不能为空,请输入!");
return false;
}
if(passScore ==null || trim(passScore.value)=="")
{
alert("考试安排的及格分数不能为空,请输入!");
passScore.focus();
return false;
}
if(!isNumber(passScore.value))
{
alert("考试安排的及格分数应是数字,输入错误,请重新输入!");
passScore.focus();
return false;
}
var paperScoreValue = parseInt(paperScore.value);
var passScoreValue = parseInt(passScore.value);
if(passScoreValue > paperScoreValue)
{
alert("考试的及格分数" + passScore.value + "大于试卷的总分数" + paperScore.value + ",请重新输入!");
passScore.focus();
return false;
}
if(examTime != null && examTime.value != "")
{
if(!isNumber(examTime.value))
{
alert("考试安排的考试时间应是数字,输入错误,请重新输入!");
examTime.focus();
return false;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -