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

📄 query_test.jsp

📁 在线考试软件。 在线考试软件详细设计说明书:说明在线测试这一模块各部分的功能和结构
💻 JSP
📖 第 1 页 / 共 2 页
字号:
{
	var count = errorpad.elements.length;
	var noSelect = true;
 	for(var i=0;i<count;i++)
 	{
    	if(errorpad.elements[i].checked)
    		{
      		      noSelect = false;
		      break;
		}
  	}
	if(noSelect == true)
	{
	    alert("您还没有选择要增加错误级别的错题!");
	    return(false);
	 }
  	else
  	{
        	if(confirm("增加所有选择的错题的错误级别吗?"))
        	{
                document.errorpad.method = "POST";
                document.errorpad.action = "errorpad_addrate.jsp";
                document.errorpad.target="_self";
                document.errorpad.submit();
        	}
        	else
        	{
                document.errorpad.method = "GET";
                document.errorpad.action = "";
		}
         }
         return false;
}
function decrate_check()
{
	var count = errorpad.elements.length;
	var noSelect = true;
 	for(var i=0;i<count;i++)
 	{
    	if(errorpad.elements[i].checked)
    		{
      		      noSelect = false;
		      break;
		}
  	}
	if(noSelect == true)
	{
	    alert("您还没有选择要降低错误级别的错题!");
	    return(false);
	 }
  	else
  	{
        	if(confirm("降低所有选择的错题的错误级别吗?"))
        	{
                document.errorpad.method = "POST";
                document.errorpad.action = "errorpad_decrate.jsp";
                document.errorpad.target="_self";
                document.errorpad.submit();
        	}
        	else
        	{
                document.errorpad.method = "GET";
                document.errorpad.action = "";
		}
         }
         return false;
}
function subform(stract)
{
	switch (stract){
		case "del":
            del_check();
			break;
		case "addrate":
            addrate_check();
			break;
		case "decrate":
			decrate_check();
			break;
        case "test":
            selectid();
            break;
		case "print":
			printerror();
            break;

	}

}
function selectid(){
    var winpoint=window.open('','err_test_type','height=240,width=470,top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no,depended=yes,alwaysRaised =yes,z-look=yes');
    var toppos=(window.screen.height-240)/2;
    var leftpos=(window.screen.width-470)/2;
    winpoint.moveTo(toppos,leftpos);
    winpoint.focus();
    document.errorpad.method="POST";
    document.errorpad.action="err_test_type.jsp";
    document.errorpad.target="err_test_type";
    document.errorpad.submit();

}
function printerror(){

    var winpoint=window.open('','err_print_type','height=240,width=520,top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no,depended=yes,alwaysRaised =yes,z-look=yes');
    var toppos=(window.screen.height-240)/2;
    var leftpos=(window.screen.width-470)/2;
    winpoint.moveTo(toppos,leftpos);
    winpoint.focus();
    document.errorpad.method="POST";
    document.errorpad.action="err_print_type.jsp";
    document.errorpad.target="err_print_type";
    document.errorpad.submit();
}
function openDetail(var1){
    var winpoint=window.open('err_query_detail.jsp?id='+var1,'newwindow','height=400,width=300,top=0,left=0,toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no,depended=yes,alwaysRaised =yes,z-look=yes');
    winpoint.focus();
}
function InitMyform(){
    document.myform.Grade.value='<%=query_grade%>';
    changegs(document.myform.Grade.options[document.myform.Grade.selectedIndex].value);
    document.myform.Subject.value='<%=query_sub%>';
    changesk(document.myform.Subject.options[document.myform.Subject.selectedIndex].value);
    document.myform.KnowPoint.value='<%=query_knowpoint%>';
    document.myform.testtype.value='<%=query_testtype%>';


}

</script>
<HTML>
<HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<TITLE>精华学堂-考试查询</TITLE>
<SCRIPT language=JavaScript>
<!--

function SymError()
{
  return true;
}

window.onerror = SymError;


//-->
</SCRIPT>


<!-- saved from url=(0041)http://jsptestonline.cosoft.org.cn/senior/none_xt.jsp -->
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK
href="../errorpad/style/style.css" type=text/css rel=stylesheet>
<SCRIPT src=""></SCRIPT>

<SCRIPT src=""></SCRIPT>

<SCRIPT src=""></SCRIPT>

<SCRIPT src=""></SCRIPT>

<SCRIPT src=""></SCRIPT>

<META content="MSHTML 6.00.2462.0" name=GENERATOR>
<link rel="stylesheet" type="text/css" href="../css.css">
</HEAD>
<BODY bgColor=#ffffff text=#000000 onLoad="InitMyform()">

<CENTER>

<TABLE cellSpacing=0 cellPadding=0 width=650 border=0>
  <TBODY>
  <TR>
          <TD><IMG height=27 src="../errorpad/images/test_pop_01.gif" width=102></TD>
          <TD align=right><IMG height=27 src="../errorpad/images/test_pop_02.gif"
      width=134></TD>
        </TR></TBODY></TABLE>
  <strong><font color="#3366FF" size="+2" face="黑体">精华学堂试卷查询</font></strong>
  <!--begin test -->
  <FORM action=Query_test.jsp method=post name=myform target="_self" id="myform">
    <TABLE width=100% height="60" border=0 cellPadding=0 cellSpacing=0>
      <TBODY>
        <TR>
          <TD height="75"  align=middle>
            <table width="600" height="56" border="1" align="center" cellspacing="1" bordercolor="#799AE1" id="AutoNumber3" style="border-collapse: collapse">
              <tr>
                <td width="100" height="52" align="center" valign="baseline" nowrap background="../errorpad/images/admin_bg_1.gif" bgcolor="#FFFDE8">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td>年&nbsp;级:</td>
                    </tr>
                    <tr>
                      <td height="24" nowrap> <select id=select30 name=Grade onclick="changegs(document.myform.Grade.options[document.myform.Grade.selectedIndex].value)" size="1">
                          <option value="all" selected>-全 部-</option>
                          <%Tools.showGradeOption(con,out);%>
                        </select> </td>
                    </tr>
                  </table>
                  &nbsp; </td>
                <td width="88" align="center" valign="baseline" nowrap background="../errorpad/images/admin_bg_1.gif" bgcolor="#FFFDE8">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td nowrap>科&nbsp;目:</td>
                    </tr>
                    <tr>
                      <td nowrap> <select id=select29 name=Subject onclick="changesk(document.myform.Subject.options[document.myform.Subject.selectedIndex].value)"
size="1">
                          <option value="all" selected>全 部</option>
                        </select> </td>
                    </tr>
                  </table>
                  <strong> </strong> </td>
                <td width="187" align="center" valign="baseline" nowrap background="../images/admin_bg_1.gif" bgcolor="#FFFDE8">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td nowrap>知识点:</td>
                    </tr>
                    <tr>
                      <td nowrap> <select name=KnowPoint id="select31">
                          <option value="all" selected>----全 部----</option>
                        </select> </td>
                    </tr>
                  </table></td>
                <td width="104" align="center" valign="baseline" nowrap background="../errorpad/images/admin_bg_1.gif" bgcolor="#FFFDE8">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td nowrap>考试类型:</td>
                    </tr>
                    <tr>
                      <td nowrap> <select name="testtype" id="select8">
                          <option value="2" selected>单元测试</option>
                          <option value="3">模拟测试 </option>
                        </select> </td>
                    </tr>
                  </table></td>
                <td width="111" align="center" valign="baseline" nowrap background="../images/admin_bg_1.gif" bgcolor="#FFFDE8"><input type="submit"  class="s03" name="Submit" value="查询"></td>
              </tr>
            </table>
            </TD>
        </TR>

      </TBODY>
    </TABLE>
		</FORM>
 <%if (testSet.size()>0){
 %>
  <FORM method="post" name="errorpad" id="errorpad">
    <TABLE width=600 border=1 align=center cellSpacing=1 bordercolor="#799AE1" style="border-collapse: collapse">
      <TBODY>
        <TR>
          <td width="587" height=22 bgColor=#E3E3E3 class=l> <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="41" height="20" nowrap><div align="center"><strong>序号</strong></div></td>
                <td width="50" nowrap><div align="center"><strong>年级</strong></div></td>
                <td width="190" nowrap> <div align="left"><strong>考试名称</strong></div></td>
                <td width="149" nowrap><div align="center"><strong>考试发布时间</strong></div></td>
                <td width="78" nowrap><div align="center"><strong>考试类型</strong></div></td>
                <td width="84" nowrap><div align="center"><strong>总分</strong></div></td>
              </tr>
            </table></td>
        </TR>
<%          Iterator iter = testSet.listIterator();
            int order=0;
            while (iter.hasNext()) {
                Test t = (Test) iter.next();
                order++;
%>
            <TR>
          <td width="587" height=22 class=l> <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="41" height="20" nowrap><div align="center"><%=order%>.</div></td>
                <td width="48" nowrap><div align="center"><%=t.grade%></div></td>
                <td width="190" nowrap> <div align="left"><%=t.name%></div></td>
                <td width="153" nowrap><div align="center"><%=t.time%></div></td>
                <td width="77" nowrap><div align="center"><%=t.testclass%></div></td>
                <td width="83" nowrap> <div align="center"><%=t.totalMark%></div></td>
              </tr>
            </table></td>
        </TR>


<%
            }
%>
      </TBODY>
    </TABLE>
    <p>

<input name="stu_id" type="hidden" id="studentid2" value="">

</FORM>
<%}
else{
   %>


  <table width="77%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="33%"><img src="images/pic_notice.gif" width="150" height="150"></td>
      <td width="67%" align="center" valign="middle" nowrap>
        <div align="center"><font size="+2">没有查询到满足条件的数据!</font></div></td>
    </tr>
  </table>

   <%
}
%>
  <!--end test -->
  <!--begin bottom -->
  <!--end bottom -->
</CENTER>
</BODY>
</HTML>

<%}
catch(SQLException se){
    out.println("<br>sql="+sql);
    out.println("<br>"+se.toString());
}
catch(Exception e){
    out.print(e.toString());
}
finally{
    DBCon.dropConnection();
}
%>

⌨️ 快捷键说明

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