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

📄 showfraction.jsp

📁 用java+servlet实现在线考试系统
💻 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">&nbsp;</p></td>
  </tr>
  <tr>
    <td colspan="2" align="center"><p class="STYLE2">你目前已经答了:<%=strpage%>题<br>
        <br>
      其中答对了:<%=count %><br>
      <br>
    总得分:<%=score %></p>
    <p class="STYLE2">&nbsp;</p></td>
  </tr>
  <tr>
    <td width="340" align="center"><form id="form2" name="form2" method="post" action="student/starttest.jsp?select=语文">
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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 + -