⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testdetail.jsp

📁 培训考试系统代码
💻 JSP
字号:
<%@ page contentType="text/html;charset=gb2312"%>

<%@ include file="/agt/public/jsp/top.jsp" %>
                  <!-- title>业务代表管理系统试题详细信息</title -->
<br>

                  <table width="539" height="35" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td class="12">试题的详细信息:</td>
                    </tr>
                  </table>
                  <table width="539" border="0" cellpadding="3" cellspacing="1" class="table-cs1">

  <tr>

    <td width="73" height="25" align="center" class="td-cs1">试题题型</td>

    <td colspan="3" class="td-cs2"><%=request.getAttribute("typeName")%></td>

  </tr>

  <tr>

    <td width="73" height="25" align="center" class="td-cs1">试题内容</td>

    <td colspan="3" class="td-cs2" style="word-break:break-all"> <%=request.getAttribute("content")%></td>

  <tr>

    <%

     int testType = Integer.parseInt((String)request.getAttribute("testType"));

     String optionRsSet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";

     int loc = 0;

     String testOption = (String)request.getAttribute("testOption");

     String result = (String)request.getAttribute("result");

     StringTokenizer stoken = new StringTokenizer(testOption,"#");

     StringTokenizer resultStoken = new StringTokenizer(result,"#");



     if(testType == 1 || testType == 2 || testType==3)

     {//判断题,单选题,多选题

  %>

    <td width="73" height="25" align="center" class="td-cs1">试题选项 </td>

    <td colspan="3" class="td-cs2">

      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <%while(stoken.hasMoreTokens())

                 {

                     String optionRs = optionRsSet.substring(loc,loc+1);

               %>
        <tr> 
          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                

                <td><%=optionRs%>.<input name="option" type="<%if(testType==3){%>checkbox<%} else{%>radio<%}%>" value="<%=optionRs%>">

            <%=stoken.nextToken()%></td>              </tr>

   </table></td>
          <td>&nbsp;</td>
        </tr>
        <%loc++;

                }%>
      </table></td>

  <tr>

    <td width="73" height="25" align="center" class="td-cs1">试题答案 </td>

    <td colspan="3" class="td-cs2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          
          <td><%=request.getAttribute("result")%></td>
        </tr>
      </table>
</td>

  </tr>

  <%

     }

     else

     {//填空题,问答题



  %>

  <tr>

    <td width="73" height="25" align="center" class="td-cs1">试题填项 </td>

    <td colspan="3" class="td-cs2">

      <table border="0" cellpadding="0" cellspacing="0">

        <%

                 while(stoken.hasMoreTokens())

                 {

                     String optionRs = optionRsSet.substring(loc,loc+1);

               %>

        <tr>

        
             <td><%=optionRs%>.<textarea rows="<%=stoken.nextToken()%>" name="option" cols="55" class="remark"></textarea></td>
                 

        </tr>

        <%loc++;

                }%>

      </table></td>

  <tr>

    <td width="73" height="25" align="center" class="td-cs1">试题答案 </td>

    <td colspan="3" class="td-cs2">

      <table border="0" cellpadding="0" cellspacing="0">

        <%loc =0;

                 stoken = new StringTokenizer(testOption,"#");

                 while(resultStoken.hasMoreTokens())

                 {

                     String optionRs = optionRsSet.substring(loc,loc+1);

               %>

        <tr>

          <td><%=optionRs%>

<textarea name="option" cols="55" rows="<%=stoken.nextToken()%>" class="remark"><%=resultStoken.nextToken()%></textarea></td>

        </tr>

        <%loc++;

                }%>

      </table></td>

  </tr>

  <% }%>

  <tr>

    <td width="73" height="25" align="center" class="td-cs1">简要说明</td>

    <%String explain = (String)request.getAttribute("explain");

     if(explain==null) { explain = "&nbsp; ";}%>

    <td colspan="3" class="td-cs2"><%=explain%></td>

  </tr>

  <tr>

    <td width="73" height="25" align="center" class="td-cs1">试题难度 </td>

    <td width="172" class="td-cs2"><%=request.getAttribute("degreeName")%> </td>

    <td width="80" align="center" class="td-cs1">所属类别 </td>

    <td width="192" class="td-cs2"><%=ClassInfo.get((String)request.getAttribute("classId"))%></td>

  </tr>

  <tr>

    <td width="73" height="25" align="center" class="td-cs1">测试手段 </td>

    <td class="td-cs2"><%=request.getAttribute("meansName")%></td>

    <td width="80" align="center" class="td-cs1">使用级别 </td>
    
    
        <%String useLevel = (String)request.getAttribute("useLevel");
          String useLevelStr = "常用";
          if("0".equalsIgnoreCase(useLevel)){useLevelStr = "常用";}
          else if("1".equalsIgnoreCase(useLevel)){useLevelStr = "专用";}
          else if("2".equalsIgnoreCase(useLevel)){useLevelStr = "暂不使用";}
          
        %>

       <td class="td-cs2"><%=useLevelStr%></td>

  </tr>

  <tr>

    <td width="73" height="25" align="center" class="td-cs1">使用频率 </td>

    <td class="td-cs2"><%=request.getAttribute("useFrequency")%></td>

    <td width="80" align="center" class="td-cs1">答题参考时间 </td>

    <%String referenceTime = (String)request.getAttribute("referenceTime");

       if(referenceTime == null){referenceTime = "&nbsp; ";}

       else{referenceTime += "分钟";};

     %>

    <td class="td-cs2"><%=referenceTime%></td>

  </tr>

</table>

<table width="539" height="30" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="35" align="center"> <table width="44%" height="25" border="0" cellpadding="0" cellspacing="0">
                          <tr align="left">
                            <td width="50%" align="center"> <input name="back" type="image" onclick="history.back();return false;" src="/agt/public/images/back.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>
                  <p>&nbsp;

<%@ include file="/agt/public/jsp/bot.jsp" %>

⌨️ 快捷键说明

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