?? showfraction.jsp
字號:
<%@ page language="java" import="java.util.*,com.zte.database.*,com.zte.beans.*" pageEncoding="gbk"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'ShowFraction.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<style type="text/css">
<!--
.STYLE1 {
font-family: "楷體_GB2312";
font-size: 18px;
color: #FF0000;
}
.STYLE2 {
font-family: "楷體_GB2312";
font-size: 16px;
font-weight: bold;
}
-->
</style>
</head>
<body vLink=#ffcc33 aLink=#ffcc33 link=#993333 bgColor=#FFFFCC leftMargin=0
topMargin=0 rightMargin=0 MARGINHEIGHT="0" MARGINWIDTH="0">
<table width="200" border="0" align="center">
<tr>
<td colspan="2">
<input type="image" name="imageField" src="image/zte.jpg" />
</td>
</tr>
<tr>
<%
int count=1;
int score=1;
String name=(String)session.getAttribute("name");
String testtype=(String)session.getAttribute("testtype");
//String quscore =(String)session.getAttribute("quscore");
//String currentpage=(String)session.getAttribute("intpage");
String strpage=request.getParameter("page");
System.out.println(testtype);
//System.out.println("dadffafdfaf"+currentpage);
List list=(List)session.getAttribute("list");
for(int i=01;i<list.size();i++)
{
ExamQuestion eq=(ExamQuestion)list.get(i);
count+=eq.getSumcount();
score+=eq.getSumscore();
}
%>
<td colspan="2" align="center"><p class="STYLE1"><%=name%>同學,您參與的<%=testtype %>考試成績如下:</p>
<p class="STYLE1"> </p></td>
</tr>
<tr>
<td colspan="2" align="center"><p class="STYLE2">你目前已經答了:<%=strpage%>題<br>
<br>
其中答對了:<%=count %><br>
<br>
總得分:<%=score %></p>
<p class="STYLE2"> </p></td>
</tr>
<tr>
<td width="340" align="center"><form id="form2" name="form2" method="post" action="student/starttest.jsp?select=語文">
<input type="submit" name="Submit" value="繼續答題" />
</form>
</td>
<td width="266" align="left"><form id="form3" name="form3" method="post" action="">
<input type="submit" name="Submit2" value="結束答題" />
</form>
</td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -