epapermakeinput.jsp

来自「培训考试系统代码」· JSP 代码 · 共 90 行

JSP
90
字号
<%@ page contentType="text/html;charset=gb2312"%> 
<%@ include file="/agt/public/jsp/top.jsp" %>
                  <!-- title>业务代表管理系统生成试卷录入页面</title -->
<br>

                  <form name="epaperform" method="POST" action="/ExamPaperMan.do">

  <table width="539" border="0" cellpadding="3" cellspacing="1" class="table-cs1">
    <input type="hidden" name="opeType" value="<%=OperatorFlagCode.EPAPER_MAKE%>">
    <tr> 
      <td width="110" align="center" class="td-cs1">试卷名称*</td>
      <td width="80%" class="td-cs2"> <input name="title" type="text" class="input2"  size="40" maxlength="50"></td>
    </tr>
    <tr> 
      <td width="110" align="center" class="td-cs1">所属类别*</td>
                        <td class="td-cs2"> 
                          <table width="89%" border="0" cellspacing="0" cellpadding="0">
                            <tr> 
                              <td width="67%"><input name="className" type="text" class="input2" size="40" readonly></td>
                              <td width="33%"><a href="javascript:;" onClick="javascript:openClassWindow('/ClsMngOperatorAction.do?operatorFlag=<%=OperatorFlagCode.CLSMNG_CHOOSE%>&select=03','选择类别');return false;" onMouseOver="MM_swapImage('view','','/agt/public/images/choise_2.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="/agt/public/images/choise.gif" name="view" width="48" height="25" border="0"></a> 
                                <input type="hidden" name="classId"> </td>
                            </tr>
                          </table></td>
    </tr>
    <tr> 
      <td width="110" align="center" class="td-cs1">试题策略*</td>
      <td class="td-cs2"> <select  name="policyId" size="1" class="input2">
          <% SysResultSet rs  =  (SysResultSet)request.getAttribute("EPAPER-GET-POLICY");
        
        if(rs != null)
        {  for(int i=0;rs.setRecord(i)&&i<rs.getMetaData().getRecordCount();i++)
           {
      %>
          <option value="<%=rs.getString(0)%>"><%=rs.getString(1)%></option>
          <%     }
         }
     %>
        </select> </td>
    </tr>
    <tr> 
      <td width="110" align="center" class="td-cs1">类型名称*</td>
      <td class="td-cs2"> <select  name="paperType" class="input2">
          <option value="0">考试题</option>
          <option value="1">自测题</option>
          <option value="2">考试题&自测题</option>
        </select></td>
    </tr>
  </table>

  <table width="539" height="30" border="0" cellpadding="0" cellspacing="0">
    <tr> 
      <td height="35" align="center"> <table width="55%" height="25" border="0" cellpadding="0" cellspacing="0">
          <tr> 
                              <td width="28%">
                                <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="7%">&nbsp; </td>
                              <td width="65%"> 
                                <input name="reset" type="image" onclick="epaperform.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></td>
    </tr>
  </table>
</form>
<script src="/agt/public/js/scriptfuns.js" type="text/javascript"></script>
<script src="/agt/public/js/my_functions.js" type="text/javascript"></script>
<script language="javascript">


//进行提交检查与提交表单
function checkSubmit()
{
    var titleObj = document.epaperform.title;
    var classId = document.epaperform.classId;
    if(titleObj == null || titleObj.value == "")
    {
        alert("试卷名称不能为空,请输入!");
        titleObj.focus();
        return false;
    } 
    
    if(classId == null || classId.value == "")
    {
        alert("所属类别不能为空,请选择!");
        return false;
    } 
    document.epaperform.submit();
}
</script>
<%@ include file="/agt/public/jsp/bot.jsp" %> 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?