在线考试系统详细设计说明书V10.docx

上传人:b****3 文档编号:6249134 上传时间:2023-05-09 格式:DOCX 页数:14 大小:54.46KB
下载 相关 举报
在线考试系统详细设计说明书V10.docx_第1页
第1页 / 共14页
在线考试系统详细设计说明书V10.docx_第2页
第2页 / 共14页
在线考试系统详细设计说明书V10.docx_第3页
第3页 / 共14页
在线考试系统详细设计说明书V10.docx_第4页
第4页 / 共14页
在线考试系统详细设计说明书V10.docx_第5页
第5页 / 共14页
在线考试系统详细设计说明书V10.docx_第6页
第6页 / 共14页
在线考试系统详细设计说明书V10.docx_第7页
第7页 / 共14页
在线考试系统详细设计说明书V10.docx_第8页
第8页 / 共14页
在线考试系统详细设计说明书V10.docx_第9页
第9页 / 共14页
在线考试系统详细设计说明书V10.docx_第10页
第10页 / 共14页
在线考试系统详细设计说明书V10.docx_第11页
第11页 / 共14页
在线考试系统详细设计说明书V10.docx_第12页
第12页 / 共14页
在线考试系统详细设计说明书V10.docx_第13页
第13页 / 共14页
在线考试系统详细设计说明书V10.docx_第14页
第14页 / 共14页
亲,该文档总共14页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

在线考试系统详细设计说明书V10.docx

《在线考试系统详细设计说明书V10.docx》由会员分享,可在线阅读,更多相关《在线考试系统详细设计说明书V10.docx(14页珍藏版)》请在冰点文库上搜索。

在线考试系统详细设计说明书V10.docx

在线考试系统详细设计说明书V10

 

在线考试系统详细设计说明书

[1.0版]

 

2013年05月20日

兰州交通大学

履历记录

版号

日期

内容

责任人

审批人

1.0

2013/5/20

拟定在线考试系统详细设计说明书

魏建猛

 

1.引言

1.1.编写目的

随着计算机技术与网络技术越来越广地应用于各个领域,改变着人们的学习、工作、生活乃至思维方式,也引起了教育领域的重大变革。

将计算机与网络技术应用于现代高等教育中,是现代高等教育发展的需要,也是改革教育模式,提高学校教学效果和教学效率、提高科研和管理水平的必要手段。

目前的一个发展趋势是采用大规模试题库的计算机网络考试模式随着计算机网络在生产生活、科技教育中的普及,传统试的考试出卷、答卷方式以及学绩管理正发生着巨大的变革,因此,如何使考试过程变得方便、高效、快捷、公正,是现代教育的一个重要课题。

网络考试系统是传统考场的延伸,它可以利用网络的无限广阔空间,随时随地对学生进行考试,加上数据库技术的利用,大大简化了传统考试的过程。

因此网络考试系统是电子化教学不可缺少的一个重要环节。

1.2.参考资料

●《在线考试系统需求规格说明书V1.0》

●《在线考试系统概要设计说明书V1.0》

2.程序系统的组织结构

2.1.核心程序清单

2.1.1.用户登录

<%@pagecontentType="text/html;charset=UTF-8"language="java"import="java.sql.*"errorPage=""%>

DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http:

//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

//www.w3.org/1999/xhtml">

<%session.invalidate();%>

管理员登录

用户名:

密码:

    

functioncheck(){

if(document.forms[0].username.value==""||document.forms[0].password.value==""){

alert("请输入用户名密码");

returnfalse;

}

returntrue;

}

2.1.2.题库管理

<%@pagecontentType="text/html;charset=UTF-8"language="java"import="java.sql.*"errorPage=""%>

<%@pageimport="java.util.*,com.gxa.bean.*,com.gxa.dao.*"%>

DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http:

//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

//www.w3.org/1999/xhtml">

--错误显示区域-->

<%=request.getAttribute("error")==null?

"":

request.getAttribute("error")%>

<%Questionsquestions=(Questions)request.getAttribute("questions");

intid=(Integer)request.getAttribute("id");

%>

action=<%=id==0?

"add":

"update"%>"method="post">

题目编辑

题目名称:

"/>

"":

questions.getqName()%>"style="width:

98%"/>

答案

"":

questions.getqAnwser()%>"style="width:

98%"/>

选项

<%

intaCount=0;

if(questions!

=null){

aCount=questions.getOptions().size();

for(Iteratorit=questions.getOptions().iterator();it.hasNext();){//输出已有选项行

Optionsoptions=(Options)it.next();

%>

选项编号:

"size="4"maxlength="1"/>

选项名称:

"style="width:

80%"/>

<%

}

}

//输出空白的选项行

for(inti=0;i<5-aCount;i++){

%>

选项编号:

选项名称:

80%"/>

<%}%>

    

2.1.3.用户答题

<%@pagecontentType="text/html;charset=UTF-8"language="java"import="java.sql.*"errorPage=""%>

<%@pageimport="java.util.*,com.gxa.bean.*,com.gxa.dao.*,com.gxa.util.*"%>

DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN"

<%=request.getAttribute("error")==null?

"":

request.getAttribute("error")%>

<%

intid=(Integer)request.getAttribute("id");

TestPapertestPaper=(TestPaper)request.getAttribute("testPaper");

action=<%=id==0?

"add":

"update"%>"onsubmit="returncheckForm();"method="post">

题库管理

试卷名称:

"":

testPaper.gettName()%>"/>

"/>

开始时间:

110"value="<%=testPaper==null?

"":

dateTools.convertDateToString(testPaper.getStartTime(),"yyyy-MM-ddHH:

mm")%>">

Calendar.setup({

inputField:

"startTime",//idoftheinputfield

ifFormat:

"%Y-%m-%d%H:

%M",//formatoftheinputfield

showsTime:

true,

button:

"startTrigger",//triggerforthecalendar(buttonID)

timeFormat:

"24",

align:

"Tl",//alignment(defaultsto"Bl")

singleClick:

true

});

结束时间:

110"value="<%=testPaper==null?

"":

dateTools.convertDateToString(testPaper.getEndTime(),"yyyy-MM-ddHH:

mm")%>">

Calendar.setup({

inputField:

"endTime",//idoftheinputfield

ifFormat:

"%Y-%m-%d%H:

%M",//formatoftheinputfield

showsTime:

true,

button:

"endTrigger",//triggerforthecalendar(buttonID)

timeFormat:

"24",

align:

"Tl",//alignment(defaultsto"Bl")

singleClick:

true

});

 

题目名称

答案

选项

<%

for(inti=0;i

Questionsquestions=(Questions)questionList.get(i);

%>

"<%if(qIdMap.get(questions.getId())!

=null){%>checked<%}%>/>

<%=questions.getqName()%>

<%=questions.getqAnwser()%>

 

<%for(Iteratorit=questions.getOptions().iterator();it.hasNext();){

Optionsoptions=(Options)it.next();

out.println(options.getoNo()+"、"+options.getoName()+"  ");

}

%>

<%}%>

        已选择<%=testPaper==null?

"0":

testPaper.getQuestionsList().size()%> 道题注:

只能选择10道题,不能多也不能少

varallCount=10;//总共需要选择题目数

//检查题目数

functioncheckForm(){

if(document.forms[0].tName.value==""){

alert("请输入试卷名称");

returnfalse;

}

varqCount=parseInt(document.getElementById("qCount").innerHTML);

if(qCount!

=allCount){

alert("请选择10道题");

returnfalse;

}

returntrue;

}

functionaddQCount(obj){

varqCount=parseInt(document.getElementById("qCount").innerHTML);

if(obj.checked){

qCount++;

}else{

qCount--;

}

document.getElementById("qCount").innerHTML=qCount;

}

2.1.4.成绩查询

<%@pagelanguage="java"contentType="text/html;charset=UTF-8"

pageEncoding="UTF-8"%>

<%@pageimport="java.util.*,com.gxa.bean.*,com.gxa.dao.*,com.gxa.util.*,com.gxa.service.*"%>

DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Transitional//EN""http:

//www.w3.org/TR/html4/loose.dtd">

Inserttitlehere

<%

//用户查询自己的考试信息

TestResultDaotestResultDao=newTestResultDao();

inttId=0;

if(request.getParameter("tId")!

=null){

tId=Integer.parseInt(request.getParameter("tId"));

}else{//默认查最新考试

}

intuserId=0;

Listlist=testResultDao.getReusltList(tId,userId);

request.setAttribute("list",list);//结果

//----------------------所有考试试卷----------------------------------

TestPaperDaotestPaperDao=newTest

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 小学教育 > 语文

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2