JavaWeb项目开发案例精粹-第3章在线考试系统-007View层
0.login.jsp
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title>教师(学生)登录页面</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #1D3647;
}
.STYLE1 {color: #E6EBF1}
-->
</style>
<link href="teacher/images/skin.css" rel="stylesheet" type="text/css">
</head> <body>
<table width="100%" height="166" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="42" valign="top"><table width="100%" height="42" border="0" cellpadding="0" cellspacing="0" class="login_top_bg">
<tr>
<td width="1%" height="21"> </td>
<td height="42"> </td>
<td width="17%"> </td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top"><table width="100%" height="532" border="0" cellpadding="0" cellspacing="0" class="login_bg">
<tr>
<td width="49%" align="right"><table width="91%" height="532" border="0" cellpadding="0" cellspacing="0" class="login_bg2">
<tr>
<td height="138" valign="top"><table width="89%" height="427" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="149"> </td>
</tr>
<tr>
<td height="80" align="right" valign="top"> </td>
</tr>
<tr>
<td height="198" align="right" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="35%"> </td>
<td width="65%" height="25" class="left_txt"><p>1- 教师录入考试题目以及答案信息</p></td>
</tr>
<tr>
<td> </td>
<td height="25" class="left_txt"><p>2- 学生参加考试并自动评分和查看正确答案</p></td>
</tr>
<tr>
<td> </td>
<td height="25" class="left_txt"><p>3- 教师查看学生考试成绩</p></td>
</tr>
</table></td>
</tr>
</table></td>
</tr> </table></td>
<td width="1%" > </td>
<td width="50%" valign="bottom"><table width="100%" height="59" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="4%"> </td>
<td width="96%" height="38"><span class="login_txt_bt">教师(学生)登录</span></td>
</tr>
<tr>
<td> </td>
<td height="21"><table cellSpacing="0" cellPadding="0" width="100%" border="0" id="table211" height="328">
<tr>
<td height="164" colspan="2" align="middle">
<form name="myform" action="login.action" method="post">
<table cellSpacing="0" cellPadding="0" width="100%" border="0" height="143" id="table212">
<tr>
<td colspan="2"><FONT color="red"><s:actionerror/></FONT></td><!--显示错误信息 -->
</tr>
<tr>
<td width="14%" height="38" class="top_hui_text"><span class="login_txt">编号: </span></td>
<td height="38" colspan="2" class="top_hui_text"><input name="id" class="editbox4" value="" size="20"> </td>
</tr>
<tr>
<td width="14%" height="35" class="top_hui_text"><span class="login_txt"> 密 码: </span></td>
<td height="35" colspan="2" class="top_hui_text"><input class="editbox4" type="password" size="20" name="password">
<img src="teacher/images/luck.gif" width="19" height="18"> </td>
</tr>
<tr>
<td width="14%" height="35" ><span class="login_txt">登录角色:</span></td>
<td height="35" colspan="2" class="login_txt"><input type="radio" name="role" value="teacher" checked="checked">教师
<input type="radio" name="role" value="student">学生</td>
</tr>
<tr>
<td height="35" > </td>
<td width="19%" height="35" ><input name="Submit" type="submit" class="button" id="Submit" value="登 录"> </td>
<td width="67%" class="top_hui_text"><input name="cs" type="button" class="button" id="cs" value="取 消" onClick="showConfirmMsg1()"></td>
</tr>
</table>
<br>
</form></td>
</tr>
<tr>
<td width="433" height="164" align="right" valign="bottom"><img src="teacher/images/login-wel.gif" width="242" height="138"></td>
<td width="57" align="right" valign="bottom"> </td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="20"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="login-buttom-bg">
<tr>
<td align="center"><span class="login-buttom-txt STYLE1">在线考试系统Copyright © 2009-2010 </span></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
1.student/index.jsp
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title>开始考试</title>
<link href="student/images/css2.css" rel="stylesheet" type="text/css"/>
<style type="text/css">
<!--
.STYLE3 {font-size: 18px; }
.STYLE4 {font-size: 18px; font-weight: bold; }
.STYLE5 {color: #FF0000}
-->
</style>
<script type="text/javascript">
var ksTime; //定义考试时间以分钟计算
ksTime = 120;//设置时间 这里设置为0.1代表是6秒,测试用
if(readCookie("ss")==""){
setCookie("ss",new Date(),ksTime/60);
}
function sT(){
var tti = new Date();
var lt = parseInt((tti-new Date(readCookie("ss")))/1000)
if((ksTime*60-lt)<0){
setCookie("ss",new Date(),0);
alert("考试时间到!\n即将提交试卷!");
document.forms[0].submit();
}else{
lm = Math.floor(lt / 60);
ls = lt % 60;
allY = ksTime*60-lt;
ym = Math.floor(allY / 60);
ys = allY % 60;
document.getElementById("tTime").innerHTML = "考试已经开始了" + lm + "分" + ls + "秒" + ",剩余" + ym + "分" + ys + "秒";
var ttt = setTimeout("sT()",1000);
}
}
function readCookie(name) {
var cookieValue = "";
var search = name + "=";
if(document.cookie.length > 0) {
offset = document.cookie.indexOf(search);
if (offset != -1) {
offset += search.length;
end = document.cookie.indexOf(";", offset);
if (end == -1)
end = document.cookie.length;
cookieValue = document.cookie.substring(offset, end)
}
}
return cookieValue;
}
function setCookie(name, value, hours) {
var expire = "";
if(hours != null) {
expire = new Date((new Date()).getTime() + hours * 3600000);
expire = "; expires=" + expire.toGMTString();
}
document.cookie = name + "=" + value + expire;
}
</script>
</head> <body onload="sT()">
<table width="1003" height="485" border="0" cellpadding="0" cellspacing="0" class="centerbg">
<tr>
<td width="149" height="485"> </td>
<td width="741" valign="top" class="rightbian">
<form action="submitExam.action" method="post">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="10">
<tr>
<td><div align="center" class="STYLE3">考试时间:120 分钟</div></td>
<td><div align="center" class="STYLE3">考生:${sessionScope.studentInfo.studentName}</div></td>
<td><div align="center" class="STYLE3">总分 :100 分</div></td>
</tr>
<tr>
<td> </td>
<td><div id="tTime"></div></td>
<td> </td>
</tr>
<tr>
<td colspan="3" bgcolor="#999999" class="STYLE4">选择题(每小题5分,共20个)</td>
</tr>
<!--题目开始--> <s:iterator value="#request.subjects" var="subject" status="sta">
<tr>
<input type="hidden" name="subjectID" value="${subject.subjectID}"/>
<td colspan="3"><strong>第<span class="STYLE5">${sta.index + 1}</span>题 ${subject.subjectTitle}</strong> </td>
</tr>
<tr>
<td colspan="3"><strong>A.</strong>${subject.subjectOptionA}</td>
</tr>
<tr>
<td colspan="3"><strong>B.</strong>${subject.subjectOptionB}</td>
</tr>
<tr>
<td colspan="3"><strong>C.</strong>${subject.subjectOptionC}</td>
</tr>
<tr>
<td colspan="3"><strong>D.</strong>${subject.subjectOptionD}</td>
</tr>
<tr>
<td height="32" colspan="3" bgcolor="#CCCCCC">选择答案:
<input type="radio" name="subjectAnswer${sta.index}" value="A" checked="checked"/>
A
<input type="radio" name="subjectAnswer${sta.index}" value="B" />
B
<input type="radio" name="subjectAnswer${sta.index}" value="C" />
C
<input type="radio" name="subjectAnswer${sta.index}" value="D" />
D</td>
</tr>
</s:iterator>
<!--题目结束-->
<tr>
<td colspan="3"><div align="center">
<input type="submit" value=" 提交答卷 " name="Submit" />
</div></td>
</tr>
</table>
</form>
</td>
<td width="113"> </td>
</tr>
</table>
</body>
</html>
2.student/exampleResult.jsp
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>考试结果</title>
<link href="images/css2.css" rel="stylesheet" type="text/css"/>
<style type="text/css">
<!--
.STYLE3 {font-size: 18px; }
.STYLE4 {font-size: 18px; font-weight: bold; }
.STYLE5 {color: #FF0000}
-->
</style> <body>
<table width="1003" height="485" border="0" cellpadding="0" cellspacing="0" class="centerbg">
<tr>
<td width="149" height="485"> </td>
<td width="741" valign="top" class="rightbian">
<table width="60%" align="center" cellpadding="10" cellspacing="0" border="1">
<tr>
<td height="35" colspan="2"></td>
</tr>
<tr>
<td height="49" colspan="2"><div align="center"><span class="STYLE4"><strong>eggpeijun</strong>考试情况表</span></div></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td><div align="center">考试姓名:${request.studentName}</div></td>
<td><div align="center">考生得分:${request.GeneralPoint}分</div></td>
</tr>
<tr>
<td colspan="2"><div align="center"><a href="showSubjectAnswer.action">查看答案</a></div></td>
</tr>
</table></td>
<td width="113"> </td>
</tr>
</table>
</body>
</html>
3.student/showAnswer.jsp
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>显示试题答案</title>
<link href="student/images/css2.css" rel="stylesheet" type="text/css"/>
<style type="text/css">
<!--
.STYLE3 {font-size: 18px; }
.STYLE4 {font-size: 18px; font-weight: bold; }
.STYLE5 {color: #FF0000}
-->
</style>
</head> <body>
<table width="1003" height="485" border="0" cellpadding="0" cellspacing="0" class="centerbg">
<tr>
<td width="149" height="485"> </td>
<td width="741" valign="top" class="rightbian">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="10">
<tr>
<td><div align="center" class="STYLE3">考试时间:120 分钟</div></td>
<td><div align="center" class="STYLE3">考生:${sessionScope.studentInfo.studentName}</div></td>
<td><div align="center" class="STYLE3">总分 :100 分</div></td>
</tr>
<tr>
<td> </td>
<td></td>
<td> </td>
</tr>
<tr>
<td colspan="3" bgcolor="#999999" class="STYLE4">选择题(每小题5分,共20个)</td>
</tr>
<!--题目开始-->
<s:iterator value="#request.subjects" var="subject" status="sta">
<tr>
<td colspan="3"><strong>第<span class="STYLE5">${sta.index + 1}</span>题 ${subject.subjectTitle}</strong> </td>
</tr>
<tr>
<td colspan="3"><strong>A.</strong>${subject.subjectOptionA}</td>
</tr>
<tr>
<td colspan="3"><strong>B.</strong>${subject.subjectOptionB}</td>
</tr>
<tr>
<td colspan="3"><strong>C.</strong>${subject.subjectOptionC}</td>
</tr>
<tr>
<td colspan="3"><strong>D.</strong>${subject.subjectOptionD}</td>
</tr>
<tr>
<td height="32" colspan="3" bgcolor="#CCCCCC">
<strong>【正确答案】:${subject.subjectAnswer}</strong><br/>
<strong>【参考解析】:${subject.subjectParse}</strong></tr>
</s:iterator>
<!--题目结束-->
</table></td>
<td width="113"> </td>
</tr>
</table>
</body>
</html>
4.teacher/index.html
<html>
<head>
<title>考试系统管理中心</title>
<meta http-equiv=Content-Type content=text/html;charset=gb2312>
</head>
<frameset rows="64,*" frameborder="NO" border="0" framespacing="0">
<frame src="admin_top.html" noresize="noresize" frameborder="NO" name="topFrame" scrolling="no" marginwidth="0" marginheight="0" target="main" />
<frameset cols="200,*" rows="560,*" id="frame">
<frame src="left.html" name="leftFrame" noresize="noresize" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" target="main" />
<frame src="right.html" name="main" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" target="_self" />
</frameset>
<noframes>
<body></body>
</noframes>
</html>
5.teacher/left.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>管理页面</title> <script src="js/prototype.lite.js" type="text/javascript"></script>
<script src="js/moo.fx.js" type="text/javascript"></script>
<script src="js/moo.fx.pack.js" type="text/javascript"></script>
<style>
body {
font:12px Arial, Helvetica, sans-serif;
color: #000;
background-color: #EEF2FB;
margin: 0px;
}
#container {
width: 182px;
}
H1 {
font-size: 12px;
margin: 0px;
width: 182px;
cursor: pointer;
height: 30px;
line-height: 20px;
}
H1 a {
display: block;
width: 182px;
color: #000;
height: 30px;
text-decoration: none;
moz-outline-style: none;
background-image: url(images/menu_bgs.gif);
background-repeat: no-repeat;
line-height: 30px;
text-align: center;
margin: 0px;
padding: 0px;
}
.content{
width: 182px;
height: 26px; }
.MM ul {
list-style-type: none;
margin: 0px;
padding: 0px;
display: block;
}
.MM li {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
line-height: 26px;
color: #333333;
list-style-type: none;
display: block;
text-decoration: none;
height: 26px;
width: 182px;
padding-left: 0px;
}
.MM {
width: 182px;
margin: 0px;
padding: 0px;
left: 0px;
top: 0px;
right: 0px;
bottom: 0px;
clip: rect(0px,0px,0px,0px);
}
.MM a:link {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
line-height: 26px;
color: #333333;
background-image: url(images/menu_bg1.gif);
background-repeat: no-repeat;
height: 26px;
width: 182px;
display: block;
text-align: center;
margin: 0px;
padding: 0px;
overflow: hidden;
text-decoration: none;
}
.MM a:visited {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
line-height: 26px;
color: #333333;
background-image: url(images/menu_bg1.gif);
background-repeat: no-repeat;
display: block;
text-align: center;
margin: 0px;
padding: 0px;
height: 26px;
width: 182px;
text-decoration: none;
}
.MM a:active {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
line-height: 26px;
color: #333333;
background-image: url(images/menu_bg1.gif);
background-repeat: no-repeat;
height: 26px;
width: 182px;
display: block;
text-align: center;
margin: 0px;
padding: 0px;
overflow: hidden;
text-decoration: none;
}
.MM a:hover {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
line-height: 26px;
font-weight: bold;
color: #006600;
background-image: url(images/menu_bg2.gif);
background-repeat: no-repeat;
text-align: center;
display: block;
margin: 0px;
padding: 0px;
height: 26px;
width: 182px;
text-decoration: none;
}
</style>
</head> <body>
<table width="100%" height="280" border="0" cellpadding="0" cellspacing="0" bgcolor="#EEF2FB">
<tr>
<td width="182" valign="top"><div id="container">
<h1 class="type"><a href="javascript:void(0)">试题管理</a></h1>
<div class="content">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="data:images/menu_topline.gif" width="182" height="5" /></td>
</tr>
</table>
<ul class="MM">
<li><a href="subjectAdd.jsp" target="main">录入试题</a></li>
<li><a href="subjectQuery.action" target="main">管理试题</a></li>
<li><a href="subjectQuery.jsp" target="main">查询试题</a></li>
</ul>
</div>
<h1 class="type"><a href="javascript:void(0)">学生管理</a></h1>
<div class="content">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="data:images/menu_topline.gif" width="182" height="5" /></td>
</tr>
</table>
<ul class="MM">
<li><a href="studentQueryByName.jsp" target="main">通过姓名查找学生成绩</a></li>
<li><a href="studentQueryByClass.jsp" target="main">查找某班级全部学生成绩</a></li>
</ul>
</div>
</div>
<script type="text/javascript">
var contents = document.getElementsByClassName('content');
var toggles = document.getElementsByClassName('type'); var myAccordion = new fx.Accordion(
toggles, contents, {opacity: true, duration: 400}
);
myAccordion.showThisHideOpen(contents[0]);
</script>
</td>
</tr>
</table>
</body>
</html>
6.teacher/right.html
<link href="images/skin.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #EEF2FB;
}
-->
</style>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="17" valign="top" background="images/mail_leftbg.gif"><img src="data:images/left-top-right.gif" width="17" height="29" /></td>
<td valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
<tr>
<td height="31"><div class="titlebt">欢迎界面</div></td>
</tr>
</table></td>
<td width="16" valign="top" background="images/mail_rightbg.gif"><img src="data:images/nav-right-bg.gif" width="16" height="29" /></td>
</tr>
<tr>
<td valign="middle" background="images/mail_leftbg.gif"> </td>
<td valign="top" bgcolor="#F7F8F9"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="53%" valign="top"> </td>
</tr>
<tr>
<td valign="top"><span class="left_bt">欢迎使用在线考试管理系统</span><br>
<br>
<span class="left_txt"> <img src="data:images/ts.gif" width="16" height="16">各位老师您好:<br>
您现在使用的是</span><span class="left_txt">XXX公司开发的在线考试系统,通过该系统,您可以在线录入考试题目,更新考试系统以及查询考试题目;同时还可以对学生信息还有学生成绩信息进行维护。<br>
</span></td>
</tr> </table></td>
<td background="images/mail_rightbg.gif"> </td>
</tr>
<tr>
<td valign="bottom" background="images/mail_leftbg.gif"><img src="data:images/buttom_left2.gif" width="17" height="17" /></td>
<td background="images/buttom_bgs.gif"><img src="data:images/buttom_bgs.gif" width="17" height="17"></td>
<td valign="bottom" background="images/mail_rightbg.gif"><img src="data:images/buttom_right2.gif" width="16" height="17" /></td>
</tr>
</table>
</body>
7.teacher/studentManager.jsp
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<link href="images/skin.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #EEF2FB;
}
#manageSubject table td{
font-size:12px;
}
-->
</style>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="17" valign="top" background="images/mail_leftbg.gif"><img src="data:images/left-top-right.gif" width="17" height="29" /></td>
<td valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
<tr>
<td height="31"><div class="titlebt">管理学生</div></td>
</tr>
</table></td>
<td width="16" valign="top" background="images/mail_rightbg.gif"><img src="data:images/nav-right-bg.gif" width="16" height="29" /></td>
</tr>
<tr>
<td valign="middle" background="images/mail_leftbg.gif"> </td>
<td valign="top" bgcolor="#F7F8F9"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="53%" valign="top"> </td>
</tr>
<tr>
<td valign="middle"><span class="left_txt">
<div id="manageSubject" align="center"><!--管理试题-->
<table width="95%" cellspacing="10">
<tr align="center">
<td>学生编号</td>
<td>所属班级</td>
<td>学生姓名</td>
<td>成绩</td>
</tr>
<s:iterator value="#request.students" var="student">
<tr align="center">
<td>${student.studentID}</td>
<td>${student.sclass}</td>
<td>${student.studentName}</td>
<td>${student.result}</td>
</tr>
</s:iterator>
</table>
</div>
</td>
</tr> </table></td>
<td background="images/mail_rightbg.gif"> </td>
</tr>
<tr>
<td valign="bottom" background="images/mail_leftbg.gif"><img src="data:images/buttom_left2.gif" width="17" height="17" /></td>
<td background="images/buttom_bgs.gif"><img src="data:images/buttom_bgs.gif" width="17" height="17"></td>
<td valign="bottom" background="images/mail_rightbg.gif"><img src="data:images/buttom_right2.gif" width="16" height="17" /></td>
</tr>
</table>
</body>
8.teacher/subjectAdd.jsp
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title>试题添加页面</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #EEF2FB;
}
#addSubjectForm table td{
font-size:12px;
}
-->
</style>
<link href="images/skin.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="17" valign="top" background="images/mail_leftbg.gif"><img src="data:images/left-top-right.gif" width="17" height="29" /></td>
<td valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
<tr>
<td height="31"><div class="titlebt">录入试题</div></td>
</tr>
</table></td>
<td width="16" valign="top" background="images/mail_rightbg.gif"><img src="data:images/nav-right-bg.gif" width="16" height="29" /></td>
</tr>
<tr>
<td valign="middle" background="images/mail_leftbg.gif"> </td>
<td valign="top" bgcolor="#F7F8F9"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="53%" valign="top"> </td>
</tr>
<tr>
<td valign="middle"><span class="left_txt">
<div id="addSubjectForm" align="center"><!--录入试题表单-->
<form action="subjectAdd.action" method="post">
<table border="0" cellspacing="10" cellpadding="0">
<tr>
<td colspan="2"><FONT color="red"><s:actionerror/></FONT></td>
</tr>
<tr>
<td>试题题目:</td>
<td><input type="text" name="subjectTitle" size="80" ></td>
</tr>
<tr>
<td>选项A:</td>
<td><input type="text" name="subjectOptionA" size="20" ></td>
</tr>
<tr>
<td>选项B:</td>
<td><input type="text" name="subjectOptionB" size="20" ></td>
</tr>
<tr>
<td>选项C:</td>
<td><input type="text" name="subjectOptionC" size="20" ></td>
</tr>
<tr>
<td>选项D:</td>
<td><input type="text" name="subjectOptionD" size="20" ></td>
</tr>
<tr>
<td>答案:</td>
<td>
<input name="subjectAnswer" type="radio" value="A" checked>A
<input name="subjectAnswer" type="radio" value="B">B
<input name="subjectAnswer" type="radio" value="C">C
<input name="subjectAnswer" type="radio" value="D">D
</td>
</tr>
<tr>
<td valign="top">试题解析:</td>
<td>
<textarea name="subjectParse" cols="76" rows="10"></textarea>
</td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" value="录入">
<input type="reset" value="重置">
</div>
</td>
</tr>
</table>
</form>
</div>
</td>
</tr> </table></td>
<td background="images/mail_rightbg.gif"> </td>
</tr>
<tr>
<td valign="bottom" background="images/mail_leftbg.gif"><img src="data:images/buttom_left2.gif" width="17" height="17" /></td>
<td background="images/buttom_bgs.gif"><img src="data:images/buttom_bgs.gif" width="17" height="17"></td>
<td valign="bottom" background="images/mail_rightbg.gif"><img src="data:images/buttom_right2.gif" width="16" height="17" /></td>
</tr>
</table>
</body>
</html>
9.
JavaWeb项目开发案例精粹-第3章在线考试系统-007View层的更多相关文章
- JavaWeb项目开发案例精粹-第3章在线考试系统-005action层
1. <?xml version="1.0" encoding="UTF-8" ?><!-- XML声明 --> <!DOCTYP ...
- JavaWeb项目开发案例精粹-第3章在线考试系统-004Service层
1. package com.sanqing.service; import java.util.List; import com.sanqing.po.Student; public interfa ...
- JavaWeb项目开发案例精粹-第3章在线考试系统-003Dao层
1. package com.sanqing.dao; import java.util.List; import com.sanqing.po.Student; public interface S ...
- JavaWeb项目开发案例精粹-第3章在线考试系统-006实体层
1. package com.sanqing.po; /* * 学生表,保存学生编号,系统密码 */ public class Student { private String studentID; ...
- JavaWeb项目开发案例精粹-第3章在线考试系统-002配置文件及辅助类
1. <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5&qu ...
- JavaWeb项目开发案例精粹-第3章在线考试系统-001设计
1. 2. 3. 4. # MySQL-Front 5.0 (Build 1.0) /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE */; /*!40101 SET SQL ...
- JavaWeb项目开发案例精粹-第6章报价管理系统-05Action层
0. <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC &quo ...
- JavaWeb项目开发案例精粹-第6章报价管理系统-002辅助类及配置文件
1. <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www ...
- JavaWeb项目开发案例精粹-第2章投票系统-001设计
1.项目结构 2.数据库设计 # MySQL-Front 5.0 (Build 1.0) /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE */; /*!40101 SET ...
随机推荐
- 2013-07-29 IT 要闻速记快想
### ========================= ###传动视暴雪82亿美元赎身,腾讯参与投资 ### ========================= ###帮助企业解决打印&邮 ...
- RGB颜色二值化
原理:RGB颜色根据计算'灰度'的公式,可以转化为黑白2种颜色,实现二值化. 业务场景的应用:可以根据背景颜色,取一个黑色或白色的颜色,作为背景色上的文案字体颜色 具体代码: function get ...
- Delphi 中的全局快捷键+给指定窗体发送按键
[背景] 公司做视频影像采集,平时采集图像的时候都需要打开采集窗口,然后需要开着采集窗口来进行图像采集.同事问我能不能做一个全局快捷键,哪怕我没有操作也可以采集图像.说干就干,一直想做全局快捷键了,网 ...
- 为什么24位位图(真彩色)的biSizeImage不等于(biWidth*biBitCount+31)/32*4*biHeight?
规定的,规定BMP文件的像素数据是按行存储的,而且每行的字节数必须为4的倍数,如果实际的像素数据不是4的倍数咋办?这就需要字节对齐,对齐是在一行的末尾添0以补足一行的字节数为4的倍数, ( biWid ...
- hdu 5451 Best Solver 矩阵循环群+矩阵快速幂
http://acm.hdu.edu.cn/showproblem.php?pid=5451 题意:给定x 求解 思路: 由斐波那契数列的两种表示方法, 之后可以转化为 线性表示 F[n] = ...
- YARN环境搭建 之 一:CentOS7.0系统配置
一.我缘何选择CentOS7.0 14年7月7日17:39:42发布了CentOS 7.0.1406正式版,我曾使用过多款Linux,对于Hadoop2.X/YARN的环境配置缘何选择CentOS7. ...
- php正则表达式判断是否为ip格式
<?php $a = '127.0.0.111'; $b = preg_match("/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/",$a); ...
- 简单的C#线程开发实例(隔一秒改变一下Label的Text)
要实现的效果:点击按纽,窗口上的label上出现1~100数字的变化. 第一个实例(把窗口上的label上文字改成0): using System; using System.Windows.Form ...
- jQuery 单选按钮切换
html代码片段一: <div class="row"> <div class="col-sm-12"> <label for=& ...
- Winform 文件控件 - 转
1. OpenFileDialog private void openFileDialogBTN_Click(object sender, System.EventArgs e) { OpenFile ...