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

📄 scores_viewindex.jsp

📁 基于java的jsp开发的在线考试系统 基于java的jsp开发的在线考试系统
💻 JSP
字号:
<%@page contentType="text/html; charset=gb2312" language="java" errorPage="../Err.jsp"%>
<html>
<head>
<link rel="stylesheet" href="../menu/css/ioa.css" type="text/css">
<title>学员成绩查询-索引</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div align="center"> 
  <table width="100%" border="0">
    <tr> 
      <td colspan="2">学员姓名</td>
      <td width="12%"> 学员SN号</td>
      <td width="18%">所属班级</td>
      <td width="17%">试题分类</td>
      <td colspan="2">分&nbsp;&nbsp;数&nbsp;&nbsp;范&nbsp;&nbsp;围</td>
      <td rowspan="2" width="10%"> 
        <div align="center"> 
          <input type="button" name="Button" value="搜 索" onClick="javascript:document.getElementById('myFrame').src='Scores_View.jsp?names='+names.value+'&SN='+SN.value+'&classID='+classID.value+'&testTypeID='+testTypeID.value+'&minScores='+minScores.value+'&maxScores='+maxScores.value;">
        </div>
      </td>
    </tr>
    <tr> 
      <td colspan="2"> 
        <input type="text" name="names" size="12">
      </td>
      <td width="12%"> 
        <input type="text" name="SN" size="12">
      </td>
      <td width="18%"> 
        <%@include file="../include/ClassListIncludeAll.jsp"%> </td>
      <td width="17%"> 
        <%@include file="../include/TestTypeListIncludeAll.jsp"%>
      </td>
<script language="javascript">
var oldMinScores=0;
var oldMaxScores=100;
function checkScores()
{
	if(eval(minScores.value)>eval(maxScores.value)){
		alert("您选择的最大分数比最小分数小\n这样将不会搜索到任何记录\n此次选择无效,请重新选择!");
		minScores.value=oldMinScores;
		maxScores.value=oldMaxScores;
	}
	else{
		oldMinScores=minScores.value;
		oldMaxScores=maxScores.value;
	}	
}
</script>
      <td width="17%">
	  <font color="#FF0000">&gt;=</font><select name="minScores" onChange="javascript:checkScores();">
          <%for(int i=0;i<=100;i+=10){%>
          <option value="<%=i%>"><%=i%>分</option>
          <%}%>
        </select>
      </td>
      <td width="16%"> 
	  <font color="#FF0000">&lt;=</font><select name="maxScores" onChange="javascript:checkScores();">
          <%for(int i=100;i>=0;i-=10){%>
          <option value="<%=i%>"><%=i%>分</option>
          <%}%>
        </select>
      </td>
    </tr>
    <tr> 
      <td colspan="8"> 
        <hr width="100%">
      </td>
    </tr>
  </table>
</div>
<div align="left">
<iframe id="myFrame" frameborder="0" width="800" height="700" scrolling="auto" src="Scores_View.jsp"></iframe>
</div>
</body>
</html>

⌨️ 快捷键说明

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