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

📄 resultview.jsp

📁 远程电子考试系统
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page
import = "java.util.List"
import = "fangsoft.testcenter.model.QuestionResult"
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>考试结果</title>
<style type="text/css">
<!--
body {
	background-color: #000000;
}
.style1 {font-family: "宋体";
	font-size: xx-large;
	color: #0000FF;
}
.style4 {font-family: "宋体"; color: #0000FF; font-size: 14px;}
body,td,th {
	font-family: 宋体;
	font-size: 16px;
}
.style5 {color: #663300}
.style9 {color: #000000; font-weight: bold; }
.style6 {	font-size: 18px;
	font-weight: bold;
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>

</head>

<body>
<%
	String username = (String)request.getAttribute("username");
	String pass = (String)request.getAttribute("pass");
	String tmp=request.getAttribute("score").toString();
	int score=Integer.parseInt(tmp);
    //int score = Integer.parseInt((String)request.getAttribute("score"));
	String starttime = (String)request.getAttribute("starttime");
	String endtime  = (String)request.getAttribute("endtime");
 %>
<div id="Layer2" style="position:absolute; left:100px; top:0px; width:801px; height:55px; z-index:2; background-color: #D2EEF0; layer-background-color: #D2EEF0; border: 1px none #000000;"><span class="style1">fangsoft考试中心</span>
  <div id="Layer6" class="style6" style="position:absolute; width:68px; height:29px; z-index:5; left: 732px; top: 23px; visibility: visible;"><a href="testCenter">回首页</a></div>
</div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="Layer1" class="style5" style="position:absolute; width:800px; height:510px; z-index:3; left: 100px; top: 55px; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000;">
  <table width="801" height="400" border="0" bordercolor="0">
    <tr>
      <td height="20" colspan="4" bgcolor="#FFFFCC"><span class="style9">考试结果报告</span></td>
    </tr>
    <tr>
      <td height="20" width="245">参考人:</td>
      <td colspan="3"><%=username%></td>
    </tr>
    <tr>
      <td height="20" bgcolor="#FFFFCC">是否通过考试:</td>
      <td colspan="3" bgcolor="#FFFFCC"><%=pass%></td>
    </tr>
    <tr>
      <td>考试得分:</td>
      <td colspan="3"><%=score%></td>
    </tr>
    <tr>
      <td bgcolor="#FFFFCC">考试开始时间:</td>
      <td colspan="3" bgcolor="#FFFFCC"><%=starttime%></td>
    </tr>	
    <tr>
      <td>考试结束时间:</td>
      <td colspan="3"><%=endtime%></td>
    </tr>
    <tr>
      <td bgcolor="#FFFFCC">&nbsp;</td>
      <td colspan="3" bgcolor="#FFFFCC">&nbsp;</td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td><span class="style9">详细考试结果</span></td>
      <td width="180">&nbsp;</td>
      <td width="180">&nbsp;</td>
      <td width="180">&nbsp;</td>
    </tr>
    <tr bordercolor="#FFFFCC" bgcolor="#FFFFCC">
      <td><span class="style9">题号:</span></td>
      <td><span class="style9">你的答案:</span></td>
      <td><span class="style9">参考正确答案:</span></td>
      <td><span class="style9">对错</span></td>
    </tr>
<%
List<QuestionResult> questionResult = (List)request.getAttribute("questionResult");
int count=1;    
//System.out.println(questionResult.get(0).getAnswer());
for(int i=0;i<questionResult.size();i++){%>
	<tr bgcolor="#FFFFCC">
    <td><strong>&nbsp;<%=count++ %></strong></td>
    <td>&nbsp;<%=questionResult.get(i).getAnswer() %></td>
    <td>&nbsp;<%=questionResult.get(i).getRightanswer() %></td>
    <td>&nbsp;<%=questionResult.get(i).getResult() %></td>
    </tr>	
<%}%>	    
  </table>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
</div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp; </p>
<p>&nbsp;</p>
<div id="Layer3" style="position:absolute; width:801px; height:43px; z-index:3; left: 99px; bottom: 0px; background-color: #D2EEF0; layer-background-color: #D2EEF0; border: 1px none #000000; visibility: visible;" class="style4">(c)2007 fangsoft.org All rights reserved.方软科技(北京)有限公司版权所有.email:<a href="mailto:fangsoft.web@gmail.com">fangsoft.web@gmail.com</a></div>
<p>&nbsp; </p>
</body>
</html>

⌨️ 快捷键说明

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