📄 online.jsp
字号:
<%@ page language="java" import="java.util.*,java.sql.*" pageEncoding="gbk"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<jsp:useBean id="db" class ="com.zte.database.Database" scope="session"/>
<%
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 'online.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">
<!--
.STYLE7 {
font-family: "楷体_GB2312";
font-size: 16px;
font-weight: bold;
}
.STYLE11 {
font-size: 18px;
color: #FF0000;
font-family: "楷体_GB2312";
font-weight: bold;
}
.STYLE12 {font-size: 16px; font-family: "楷体_GB2312";}
.STYLE14 {color: #FF0000}
.STYLE15 {
font-family: "华文新魏";
font-size: 16px;
color: #000000;
}
.STYLE16 {font-family: "楷体_GB2312"}
.STYLE17 {
color: #FF0000;
font-family: "楷体_GB2312";
font-size: 16px;
}
-->
</style>
</head>
<body vLink=#ffcc33 aLink=#ffcc33 link=#993333 bgColor=#FFFFCC leftMargin=0
topMargin=0 rightMargin=0 MARGINHEIGHT="0" MARGINWIDTH="0">
<form id="form4" name="form4" method="post" action="starttestservlet">
<table width="619" border="0" align="center">
<tr>
<td colspan="3">
<input type="image" name="imageField" src="image/zte.jpg" />
</td>
</tr>
<%
request.setCharacterEncoding("gbk");
String username=(String)session.getAttribute("name");
%>
<tr>
<td colspan="3" align="center" class="STYLE11">欢迎光临在线考试系统</td>
</tr>
<tr>
<td colspan="3"><span class="STYLE12"><span class="STYLE14"><%=username %></span>同学</span><span class="STYLE7">:</span></td>
</tr>
<tr>
<td colspan="3" class="STYLE15"> <span class="STYLE16"> 请验证一下你的学号是否正确!<br>
若正确请点击开始进入在线考试,若错误请与考场老师联系!</span></td>
</tr>
<tr>
<td width="33" align="center"><br>
<input type="image" name="imageField2" src="image/laba.jpg" />
</td>
<td colspan="2" align="left" valign="baseline"><br>
<span class="STYLE12">请遵守本场考试规则如下:</span>
</td>
</tr>
<tr>
<td> </td>
<td colspan="2">
<input type="image" name="imageField3" src="image/tanhao.jpg" />
<span class="STYLE17">请不要点击刷新,后退等违纪按钮。<br>
<input type="image" name="imageField4" src="image/tanhao.jpg" />
考生如果做完题目,可以点击“完成”按钮,提交试卷。<br>
<input type="image" name="imageField5" src="image/tanhao.jpg" />
系统将根据考生选择的考试类型,随机从题库生成考题。</span>
</td>
</tr>
<tr>
<td colspan="3" align="center"><span class="STYLE7">请选择考试类型:</span></td>
</tr>
<tr>
<td height="18"> </td><br>
<td width="255" align="right">
<br> <select name="select">
<option selected="selected">请选择</option>
<c:forEach items="${list}" var="title">
<option>${title.testtitle}</option>
</c:forEach>
</select>
</td>
<td width="317">
<br> <input type="submit" name="Submit" value="开 始" />
</td>
</table>
</form>
<p> </p>
<table>
<tr>
<td vAlign=top align=center height="80" width="746" colspan="2"><IMG height=1 alt=""
src="top_band.jpg" width=1
border=0><BR><FONT face=Verdana,Arial,Helvetica size=1>
copyright ?004Captain Fresh Seafood Supermarket
<BR>
designed and programmed by <a href="http://it.neworiental.org/" target="_blank">neworiental</a></FONT>
</td></tr></table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -