1、在线考试系统详细设计说明书V10在线考试系统详细设计说明书 1.0版 2013年05月20日兰州交通大学履历记录版号日期内容责任人审批人1.02013/5/20拟定在线考试系统详细设计说明书魏建猛1.引言1.1.编写目的随着计算机技术与网络技术越来越广地应用于各个领域,改变着人们的学习、工作、生活乃至思维方式,也引起了教育领域的重大变革。将计算机与网络技术应用于现代高等教育中,是现代高等教育发展的需要,也是改革教育模式,提高学校教学效果和教学效率、提高科研和管理水平的必要手段。目前的一个发展趋势是采用大规模试题库的计算机网络考试模式 随着计算机网络在生产生活、科技教育中的普及,传统试的考试出卷
2、、答卷方式以及学绩管理正发生着巨大的变革,因此,如何使考试过程变得方便、高效、快捷、公正,是现代教育的一个重要课题。网络考试系统是传统考场的延伸,它可以利用网络的无限广阔空间,随时随地对学生进行考试,加上数据库技术的利用,大大简化了传统考试的过程。因此网络考试系统是电子化教学不可缺少的一个重要环节。1.2.参考资料在线考试系统需求规格说明书V1.0在线考试系统概要设计说明书V1.0 2.程序系统的组织结构2.1.核心程序清单2.1.1.用户登录 管理员登录 用户名: 密码: function check() if(document.forms0
3、.username.value=| document.forms0.password.value=) alert(请输入用户名密码); return false; return true; 2.1.2.题库管理 form name= action=questionAction.jsp?action= method=post 题目编辑 题目名称: input type=hidden name=id value= / input name=qName type=text id=qName value= style=width:98%/ 答案 input name=qAnwser type=text
4、 maxlength=1 size=2 id=qAnwser value= style=width:98%/ 选项 选项编号:input name=oNo type=text id=oNo value= size=4 maxlength=1 / 选项名称:input name=oName type=text id=oName value= style=width:80%/ % /输出空白的选项行 for(int i=0;i 选项编号: 选项名称: 2.1.3.用户答题 !DOCTYPE html PUBLIC -/W3C/DTD XHTM
5、L 1.0 Transitional/EN % int id = (Integer)request.getAttribute(id); TestPaper testPaper =(TestPaper)request.getAttribute(testPaper); form name= action=testAction.jsp?action= onsubmit=return checkForm(); method=post 题库管理 试卷名称: input name=tName type=text id=tName size=25 value= / input name=id type=hi
6、dden id=id value= / 开始时间:input type=text name=startTime id=startTime style=width:110 value= Calendar.setup( inputField : startTime, / id of the input field ifFormat : %Y-%m-%d %H:%M, / format of the input field showsTime : true, button : startTrigger, / trigger for the calendar (button ID) timeForma
7、t : 24, align : Tl, / alignment (defaults to Bl) singleClick : true ); 结束时间: input type=text name=endTime id=endTime style=width:110 value= Calendar.setup( inputField : endTime, / id of the input field ifFormat : %Y-%m-%d %H:%M, / format of the input field showsTime : true, button : endTrigger, / tr
8、igger for the calendar (button ID) timeFormat : 24, align : Tl, / alignment (defaults to Bl) singleClick : true ); 题目名称 答案 选项 % for(int i=0;i input type=checkbox onclick=addQCount(this) name=qId value= checked/ 已选择 道题 注:只能选择10道题,不能多
9、也不能少 var allCount = 10;/总共需要选择题目数/检查题目数function checkForm() if(document.forms0.tName.value=) alert(请输入试卷名称); return false; var qCount = parseInt(document.getElementById(qCount).innerHTML); if(qCount!=allCount) alert(请选择10道题); return false; return true;function addQCount(obj) var qCount = parseInt(do
10、cument.getElementById(qCount).innerHTML); if(obj.checked) qCount+; else qCount-; document.getElementById(qCount).innerHTML = qCount; 2.1.4.成绩查询 Insert title here%/用户 查询自己的考试 信息 TestResultDao testResultDao = new TestResultDao(); int tId = 0; if(request.getParameter(tId)!=null) tId = Integer.parseInt(request.getParameter(tId); else/默认查最新考试 int userId = 0; List list = testResultDao.getReusltList(tId, userId); request.setAttribute(list, list);/结果 /-所有考试试卷- TestPaperDao testPaperDao = new Test
copyright@ 2008-2023 冰点文库 网站版权所有
经营许可证编号:鄂ICP备19020893号-2