?? resultview.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> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </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"> </td>
<td colspan="3" bgcolor="#FFFFCC"> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td><span class="style9">詳細考試結果</span></td>
<td width="180"> </td>
<td width="180"> </td>
<td width="180"> </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> <%=count++ %></strong></td>
<td> <%=questionResult.get(i).getAnswer() %></td>
<td> <%=questionResult.get(i).getRightanswer() %></td>
<td> <%=questionResult.get(i).getResult() %></td>
</tr>
<%}%>
</table>
<p> </p>
<p> </p>
</div>
<p> </p>
<p> </p>
<p> </p>
<p> </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> </p>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -