747 lines
31 KiB
Plaintext
747 lines
31 KiB
Plaintext
<!DOCTYPE html
|
||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
|
||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
|
||
<style type="text/css">
|
||
.select2-container .select2-selection--single {
|
||
height: 34px;
|
||
line-height: 34px;
|
||
}
|
||
|
||
.select2-selection__arrow {
|
||
margin-top: 3px;
|
||
}
|
||
|
||
|
||
.hiddenscroll::-webkit-scrollbar{
|
||
display: none;
|
||
width: 0;
|
||
height: 0;
|
||
}
|
||
</style>
|
||
<script type="text/javascript">
|
||
|
||
var addDetailFun = function() {
|
||
var questitleid=$('#id').val();
|
||
// stopBubbleDefaultEvent();
|
||
$.post(ext.contextPath + '/exam/examTitleRange/showExamTitleRangeAdd.do' ,{questitleid:questitleid}, function(data) {
|
||
$("#subDetailDiv").html(data);
|
||
openModal('subDetailModal');
|
||
});
|
||
};
|
||
|
||
|
||
var showUser4SelectsFun = function() {
|
||
var userIds= $("#examuserids").val();
|
||
$.post(ext.contextPath + '/user/userForSelect.do', {formId:"editForm",hiddenId:"examuserids",textId:"_auditMan",userIds:userIds} , function(data) {
|
||
$("#user4SelectDiv").html(data);
|
||
openModal("user4SelectModal");
|
||
});
|
||
};
|
||
var typechange = function(){
|
||
if($("#examtype").val()=="正式考试"){
|
||
$("#frequency-div").hide();
|
||
// $("#frequency").attr("value","");
|
||
}else if($("#examtype").val()=="模拟考试"){
|
||
$("#frequency-div").show();
|
||
}
|
||
}
|
||
|
||
//下一题
|
||
var donext = function() {
|
||
var quesnum = $("#quesnum");
|
||
$.post(ext.contextPath + '/exam/examrecord/donext.do', {quesnum:quesnum} , function(data) {
|
||
|
||
});
|
||
};
|
||
|
||
//初始化题目
|
||
var init = function(){
|
||
var quesnum = $("#quesnum");
|
||
var examrecordid = $('#examrecordid');
|
||
// console.log(quesnum);
|
||
// console.log(examrecordid);
|
||
$.post(ext.contextPath + '/exam/examrecord/doexamhtml.do', {quesnum:quesnum,examrecordid:examrecordid} , function(data) {
|
||
$('#examhtml').html(data);
|
||
});
|
||
};
|
||
// 保存用户答案
|
||
var saveanswer = function(){
|
||
var quesid = $("#quesid").val();
|
||
var daytestrecordid = $('#daytestrecordid').val();
|
||
var questype = $('#questype').val();
|
||
var useranswer = '';
|
||
// console.log(questype);
|
||
if(questype == '填空题'){
|
||
// console.log("1");
|
||
useranswer= $('#useranswer').val();
|
||
// console.log(useranswer);
|
||
}else{
|
||
var id_array=new Array();
|
||
$('input[name="option"]:checked').each(function(){
|
||
id_array.push($(this).attr('id'));//向数组中添加元素
|
||
});
|
||
useranswer=id_array.join(',');//将数组元素连接起来以构建一个字符串
|
||
// console.log("2"+useranswer);
|
||
}
|
||
$.post(ext.contextPath + '/exam/daytestrecord/dosaveanswer.do', {quesid:quesid,useranswer:useranswer,questype:questype} , function(data) {
|
||
|
||
});
|
||
};
|
||
|
||
/*
|
||
切换上下题
|
||
*/
|
||
function doSwitch(switchtype){//switchtype为上一个/下一个的切换类型 quesnum 为当前题序号
|
||
//切换之前先保存用户答案
|
||
saveanswer();
|
||
//隐藏答案区域
|
||
$("#analysis").hide();
|
||
//变色
|
||
// var quescolorid = $('#quesid').val();
|
||
// console.log("-----"+quescolorid);
|
||
// $("#"+quescolorid).css({
|
||
// "border-color":"#568dbd",
|
||
// "background":"#568dbd",
|
||
// });
|
||
// $("#"+quescolorid+"000").css({
|
||
// 'color':'white',
|
||
// });
|
||
var quesallcount = $('#quesallcount').val();
|
||
var quesnum = $('#quesnum').val();
|
||
var daytestrecordid = $('#daytestrecordid').val();
|
||
// console.log(examrecordid);
|
||
$.post("<%=request.getContextPath()%>/exam/daytestrecord/dodaytesthtml.do",{switchtype:switchtype,quesnum:quesnum,daytestrecordid:daytestrecordid},function(data){
|
||
if(data==1){
|
||
swal("没有上一道题了");
|
||
}else if(data == 2){
|
||
swal("正在生成答题反馈!");
|
||
// fullscreen();
|
||
$(".modal-backdrop").remove();
|
||
closeModal('subModal');
|
||
//最后一题,打开题目解析
|
||
openanalysis(daytestrecordid);
|
||
}else{
|
||
var arr= JSON.parse(data);
|
||
var questitlediv = '<div>'+arr.quesnum+'、'+arr.quesdescript+'</div>';
|
||
var progress = '当前第'+arr.quesnum+'题,总共'+quesallcount+'题';
|
||
var questoptiondiv = '';
|
||
// console.log(arr.rows);
|
||
if(arr.questype=='填空题'){
|
||
questoptiondiv += '<div><input type="text" name="useranswer" id="useranswer" style="width: 90%;" value="'+arr.useranswer+'" placeholder="请将正确答案填写此处 多个答案用,隔开"/>'+
|
||
'</div>';
|
||
}else if(arr.questype=='多选题'){
|
||
var array = arr.useranswer.split(",");
|
||
for(var i = 0;i<arr.rows.length;i++){
|
||
var count = 0;
|
||
for(var j = 0;j<array.length;j++){
|
||
count++;
|
||
if(arr.rows[i].optionid == array[j]){
|
||
questoptiondiv += '<div><input type="checkbox" style="zoom: 140%;" name="option" id="'+arr.rows[i].optionid+'" value="'+arr.rows[i].optionid+'" checked="checked"/>'+
|
||
''+arr.rows[i].optionx+"."+arr.rows[i].optioncontent+'</div>';
|
||
break;
|
||
}else{
|
||
if(count == array.length){
|
||
questoptiondiv += '<div><input type="checkbox" style="zoom: 140%;" name="option" id="'+arr.rows[i].optionid+'" value="'+arr.rows[i].optionid+'" />'+
|
||
''+arr.rows[i].optionx+"."+arr.rows[i].optioncontent+'</div>';
|
||
break;
|
||
}
|
||
|
||
}
|
||
}
|
||
// console.log("aaa"+i);
|
||
}
|
||
}else if(arr.questype=='单选题' || arr.questype=='判断题'){
|
||
for(var i = 0;i<arr.rows.length;i++){
|
||
if(arr.rows[i].optionid == arr.useranswer){
|
||
questoptiondiv += '<div><input type="radio" style="zoom: 140%;" name="option" id="'+arr.rows[i].optionid+'" value="'+arr.rows[i].optionid+'" checked="checked"/>'+
|
||
''+arr.rows[i].optionx+"."+arr.rows[i].optioncontent+'</div>';
|
||
}else{
|
||
questoptiondiv += '<div><input type="radio" style="zoom: 140%;" name="option" id="'+arr.rows[i].optionid+'" value="'+arr.rows[i].optionid+'" />'+
|
||
''+arr.rows[i].optionx+"."+arr.rows[i].optioncontent+'</div>';
|
||
}
|
||
|
||
}
|
||
}
|
||
$('#questitlediv').html(questitlediv);
|
||
$('#questoptiondiv').html(questoptiondiv);
|
||
$('#progress').html(progress);
|
||
$("#quesnum").val(arr.quesnum);
|
||
$("#quesid").val(arr.quesid);
|
||
$('#questype').val(arr.questype);
|
||
$('#leftquesttype').html(arr.questype);
|
||
$('#analysis').html("答案解析:"+arr.analysis+",本题正确答案为 "+arr.rightanswer);
|
||
if(arr.questype=='单选题' || arr.questype=='判断题'){
|
||
$('#questypenamediv').html(arr.questype+":(只有一个正确答案)");
|
||
}else if(arr.questype=='多选题'){
|
||
$('#questypenamediv').html(arr.questype+":(有多个正确答案)");
|
||
}else if(arr.questype=='填空题'){
|
||
$('#questypenamediv').html(arr.questype+":(请将答案填写在输入框内并用,隔开)");
|
||
}
|
||
|
||
}
|
||
|
||
|
||
})
|
||
}
|
||
|
||
//打开题目解析
|
||
var openanalysis = function(id) {
|
||
var daytestrecordid = id;
|
||
$.post(ext.contextPath + '/exam/daytestrecord/openanalysis.do',{daytestrecordid:daytestrecordid}, function(data) {
|
||
// console.log(data);
|
||
$("#subDiv").html(data);
|
||
openModal('subModal');
|
||
});
|
||
};
|
||
|
||
function dojumpques(id){
|
||
var examrecordid = $('#examrecordid').val();
|
||
var questitleid = id;
|
||
$.post(ext.contextPath + '/exam/examrecord/dojumpques.do', {examrecordid:examrecordid,questitleid:questitleid} , function(data) {
|
||
// console.log(data);
|
||
var arr= JSON.parse(data);
|
||
var questitlediv = '<div>'+arr.quesnum+'、'+arr.quesdescript+'</div>';
|
||
var questoptiondiv = '';
|
||
console.log(arr.rows);
|
||
if(arr.questype=='填空题'){
|
||
questoptiondiv += '<div><input type="text" name="useranswer" id="useranswer" style="width: 90%;" value="'+arr.useranswer+'" placeholder="请将正确答案填写此处 多个答案用,隔开"/>'+
|
||
'</div>';
|
||
}else if(arr.questype=='多选题'){
|
||
var array = arr.useranswer.split(",");
|
||
for(var i = 0;i<arr.rows.length;i++){
|
||
var count = 0;
|
||
for(var j = 0;j<array.length;j++){
|
||
count++;
|
||
if(arr.rows[i].optionid == array[j]){
|
||
questoptiondiv += '<div><input type="checkbox" style="zoom: 140%;" name="option" id="'+arr.rows[i].optionid+'" value="'+arr.rows[i].optionid+'" checked="checked"/>'+
|
||
''+arr.rows[i].optionx+"."+arr.rows[i].optioncontent+'</div>';
|
||
break;
|
||
}else{
|
||
if(count == array.length){
|
||
questoptiondiv += '<div><input type="checkbox" style="zoom: 140%;" name="option" id="'+arr.rows[i].optionid+'" value="'+arr.rows[i].optionid+'" />'+
|
||
''+arr.rows[i].optionx+"."+arr.rows[i].optioncontent+'</div>';
|
||
break;
|
||
}
|
||
|
||
}
|
||
}
|
||
// console.log("aaa"+i);
|
||
}
|
||
}else if(arr.questype=='单选题' || arr.questype=='判断题'){
|
||
for(var i = 0;i<arr.rows.length;i++){
|
||
if(arr.rows[i].optionid == arr.useranswer){
|
||
questoptiondiv += '<div><input type="checkbox" style="zoom: 140%;" name="option" id="'+arr.rows[i].optionid+'" value="'+arr.rows[i].optionid+'" checked="checked"/>'+
|
||
''+arr.rows[i].optionx+"."+arr.rows[i].optioncontent+'</div>';
|
||
}else{
|
||
questoptiondiv += '<div><input type="checkbox" style="zoom: 140%;" name="option" id="'+arr.rows[i].optionid+'" value="'+arr.rows[i].optionid+'" />'+
|
||
''+arr.rows[i].optionx+"."+arr.rows[i].optioncontent+'</div>';
|
||
}
|
||
|
||
}
|
||
}
|
||
$('#questitlediv').html(questitlediv);
|
||
$('#questoptiondiv').html(questoptiondiv);
|
||
$("#quesnum").val(arr.quesnum);
|
||
$("#quesid").val(arr.quesid);
|
||
$('#questype').val(arr.questype);
|
||
$('#leftquesttype').html(arr.questype);
|
||
});
|
||
}
|
||
|
||
|
||
//交卷功能
|
||
var dosendpaper = function() {
|
||
//交卷之前先保存用户最后一题答案
|
||
saveanswer();
|
||
|
||
var examrecordid = $("#examrecordid").val();
|
||
|
||
swal({
|
||
title: "您确定要交卷吗?",
|
||
// text:"这将花费大约几秒的时间",
|
||
dangerMode: true,
|
||
icon: "warning",
|
||
buttons: {
|
||
cancel: {
|
||
text: "取消",
|
||
value: null,
|
||
visible: true,
|
||
className: "btn btn-default btn-sm",
|
||
closeModal: true,
|
||
},
|
||
confirm: {
|
||
text: "确定",
|
||
value: true,
|
||
visible: true,
|
||
className: "btn btn-danger btn-sm",
|
||
closeModal: true
|
||
}
|
||
}
|
||
})
|
||
.then(function (willDelete) {
|
||
if (willDelete) {
|
||
|
||
$.post(ext.contextPath + '/exam/examrecord/dosendpaper.do', {examrecordid:examrecordid} , function(data) {
|
||
exitfullscreen();
|
||
swal("交卷成功!");
|
||
closeModal('subModal');
|
||
location.reload();
|
||
});
|
||
|
||
}
|
||
});
|
||
|
||
};
|
||
|
||
|
||
|
||
//获取当前时间
|
||
function time() {
|
||
//获得显示时间的div
|
||
t_div = document.getElementById('nowtime');
|
||
var now = new Date()
|
||
//替换div内容
|
||
// t_div.innerHTML = "现在是" + now.getFullYear() + "年" + (now.getMonth() + 1) + "月" + now.getDate() + "日" + now.getHours() + "时" + now.getMinutes() + "分" + now.getSeconds() + "秒";
|
||
var hours = now.getHours();
|
||
var min = now.getMinutes();
|
||
var sec = now.getSeconds();
|
||
if(hours<10){
|
||
hours = "0"+hours;
|
||
}
|
||
if(min<10){
|
||
min = "0"+min;
|
||
}
|
||
if(sec<10){
|
||
sec = "0"+sec;
|
||
}
|
||
t_div.innerHTML = hours + ":" + min + ":" + sec;
|
||
//等待一秒钟后调用time方法,由于settimeout在time方法内,所以可以无限调用
|
||
setTimeout(time, 1000);
|
||
}
|
||
|
||
//全屏功能 F11
|
||
function fullscreen(){
|
||
//全屏
|
||
var docElm = document.documentElement;
|
||
//W3C
|
||
if(docElm.requestFullscreen) {
|
||
docElm.requestFullscreen();
|
||
}
|
||
|
||
//FireFox
|
||
else if(docElm.mozRequestFullScreen) {
|
||
docElm.mozRequestFullScreen();
|
||
}
|
||
|
||
//Chrome等
|
||
else if(docElm.webkitRequestFullScreen) {
|
||
docElm.webkitRequestFullScreen();
|
||
}
|
||
|
||
//IE11
|
||
else if(elem.msRequestFullscreen) {
|
||
elem.msRequestFullscreen();
|
||
}
|
||
}
|
||
|
||
//退出全屏
|
||
function exitfullscreen(){
|
||
//W3C
|
||
if (document.exitFullscreen) {
|
||
document.exitFullscreen();
|
||
}
|
||
//FireFox
|
||
else if (document.mozCancelFullScreen) {
|
||
document.mozCancelFullScreen();
|
||
}
|
||
//Chrome等
|
||
else if (document.webkitCancelFullScreen) {
|
||
document.webkitCancelFullScreen();
|
||
}
|
||
//IE11
|
||
else if (document.msExitFullscreen) {
|
||
document.msExitFullscreen();
|
||
}
|
||
}
|
||
|
||
//题目标记功能
|
||
function domarkques(){
|
||
var testpaperid = $('#quesid').val();
|
||
$.post(ext.contextPath + '/exam/examrecord/domarkques.do', {testpaperid:testpaperid} , function(data) {
|
||
console.log(data);
|
||
$("#"+data).css({
|
||
"border-color":"#E7505A",
|
||
"background":"#E7505A",
|
||
});
|
||
$("#"+data+"000").css({
|
||
'color':'white',
|
||
});
|
||
|
||
swal("标记成功");
|
||
|
||
});
|
||
}
|
||
|
||
//题目解析
|
||
function doanalysis(){
|
||
$("#analysis").css({
|
||
display: "block",
|
||
});
|
||
}
|
||
|
||
function doclose() {
|
||
swal({
|
||
title: "您确定要退出吗?",
|
||
// text:"这将花费大约几秒的时间",
|
||
dangerMode: true,
|
||
icon: "warning",
|
||
buttons: {
|
||
cancel: {
|
||
text: "取消",
|
||
value: null,
|
||
visible: true,
|
||
className: "btn btn-default btn-sm",
|
||
closeModal: true,
|
||
},
|
||
confirm: {
|
||
text: "确定",
|
||
value: true,
|
||
visible: true,
|
||
className: "btn btn-danger btn-sm",
|
||
closeModal: true
|
||
}
|
||
}
|
||
})
|
||
.then(function (willDelete) {
|
||
if (willDelete) {
|
||
|
||
swal("退出成功!");
|
||
closeModal('subModal');
|
||
|
||
}
|
||
});
|
||
|
||
|
||
}
|
||
|
||
|
||
|
||
$(function () {
|
||
// $("#status").select2({ minimumResultsForSearch: -1 }).val("${rankType.status}").trigger("change");
|
||
// init();
|
||
// time();
|
||
// fullscreen();
|
||
// typechange();
|
||
|
||
// $("#examtype").change(function(){
|
||
// typechange();
|
||
// })
|
||
|
||
|
||
var examPlanId=$('#id').val();
|
||
|
||
});
|
||
</script>
|
||
|
||
<body class="hold-transition sidebar-mini" >
|
||
<div class="wrapper">
|
||
<div class="content-wrapper">
|
||
<!-- Main content -->
|
||
<section class="content container-fluid">
|
||
<input type="hidden" name="quesnum" id="quesnum" value="${quesnum}" />
|
||
<input type="hidden" name="quesallcount" id="quesallcount" value="${quesallcount}" />
|
||
<input type="hidden" name="quesid" id="quesid" value="${quesid}" />
|
||
<input type="hidden" name="daytestrecordid" id="daytestrecordid" value="${daytestrecordid}" />
|
||
|
||
<input type="hidden" name="questype" id="questype" value="${questypename}" />
|
||
<input type="hidden" name="questitlenum" id="questitlenum" value="${questitlenum}" />
|
||
<input type="hidden" name="examtime" id="examtime" value="${examtime}" />
|
||
<!-- 新增界面formid强制为subForm -->
|
||
<form class="form-horizontal" id="subForm">
|
||
<div id="alertDiv"></div>
|
||
<div class="box box-primary">
|
||
<div class="box-header with-border">
|
||
<h3 class="box-title">调查问卷</h3>
|
||
<div class="box-tools pull-right">
|
||
</div>
|
||
</div>
|
||
<!-- /.box-header -->
|
||
<div class="box-body" id="box-body">
|
||
<div class="form-group">
|
||
<label class="col-sm-12 control-label">为了给您提供更好的服务,希望您能抽出几分钟时间,将您的感受和建议告诉我们,我们非常重视每位用户的宝贵意见,期待您的参与!现在我们就马上开始吧!</label>
|
||
</div>
|
||
</div>
|
||
<div class="box-footer">
|
||
<button type="button" class="btn btn-primary" onclick="dosave()" id="btn_save">开始</button>
|
||
</div>
|
||
</div>
|
||
</form>
|
||
</section>
|
||
</div>
|
||
</div>
|
||
</body>
|
||
</html>
|
||
<div class="modal fade hiddenscroll" id="subModal">
|
||
<!-- <input type="hidden" name="questitleid" id="questitleid" value="${questitleid}"> -->
|
||
<div>
|
||
<div class="modal-content" style="width: 82%;margin-left: 10%;height: 88%;margin-top: 3%;">
|
||
<!-- <div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||
<span aria-hidden="true">×</span></button>
|
||
<h4 class="modal-title">考试界面</h4>
|
||
</div> -->
|
||
<div class="modal-body">
|
||
<div style="width: 100%;height: 97%;background-color: #FAFAFA;">
|
||
<div id="margintopdiv" style="width: 100%;height: 2%;"></div>
|
||
<div id="out" style="width: 100%;height: 5%;">
|
||
<div style="width: 90%;height: 100%;float: left;"></div>
|
||
<div style="width: 8%;height: 100%;float: left;"><img src="<%=request.getContextPath()%>/IMG/main/daytest_out.png" style="width: 100%;height: 100%;cursor: pointer;" onclick="doclose();"></div>
|
||
<div style="width: 2%;height: 100%;float: left;"></div>
|
||
</div>
|
||
|
||
<div id="topdiv" style="width: 100%;height: 10%;">
|
||
<div style="width:28%;height: 100%;float: left;"></div>
|
||
<div id="logo" style="width:13%;height: 100%;float: left;">
|
||
<div style="width: 100%;height: 5%;"></div>
|
||
<div style="width: 100%;height: 90%;">
|
||
<img src="<%=request.getContextPath()%>/IMG/login/bksw1.png" style="width: 100%;height: 100%;">
|
||
</div>
|
||
|
||
</div>
|
||
<div style="width:0.5%;height:100%;float:left;"></div>
|
||
<div style="width:0.1%;height:100%;float:left;background-color:#EEEEEE"></div>
|
||
<div style="width:0.5%;height:100%;float:left;color: white;"></div>
|
||
<div id="logotitle" style="width:auto;height: 100%;float: left;">
|
||
<div style="width: 100%;height: 34%;color: #2C2C2C;font-weight: 600;font-size: x-large;">
|
||
北 控 水 务 集 团 有 限 公 司
|
||
</div>
|
||
<div style="width: 100%;height: 20%;"></div>
|
||
<div style="width: 100%;height: 34%;color: #2C2C2C;font-weight: 600;font-size: x-large;">
|
||
广东业务区技能实训平台应知练习
|
||
</div>
|
||
</div>
|
||
<div style="width:auto;height: 100%;float: left;"></div>
|
||
|
||
</div>
|
||
<div style="width: 100%;height: 4%;"></div>
|
||
|
||
<div id="maindiv" style="width: 100%;height: 80%;">
|
||
<div id="marginleft" style="width: 1%;height:100%;float: left;"></div>
|
||
<div id="leftmain" style="width:98%;height: 100%;float: left;">
|
||
<div id="lefttop" style="width: 100%;height:4.5%;color: black;background-color: #FAFAFA;font-weight: 600;font-size: medium;">
|
||
|
||
<div style="width: 65%;height: 100%;float: left;">
|
||
<div id="questypenamediv" style="width: auto;height: 100%;float: left;">
|
||
<!-- 判断题型 -->
|
||
<c:if test="${questypename == '单选题'}">
|
||
单选题:(只有一个正确答案)
|
||
</c:if>
|
||
<c:if test="${questypename == '判断题'}">
|
||
判断题:(只有一个正确答案)
|
||
</c:if>
|
||
<c:if test="${questypename == '多选题'}">
|
||
多选题:(有多个正确答案)
|
||
</c:if>
|
||
<c:if test="${questypename == '填空题'}">
|
||
填空题:(请将答案填写在输入框内并用,隔开)
|
||
</c:if>
|
||
</div>
|
||
<div id="progress" style="width: auto;height: 100%;float: left;">
|
||
当前第${quesnum}题,总共${quesallcount}题
|
||
</div>
|
||
</div>
|
||
<div style="width: 35%;height: 100%;float: left;text-align: right;">
|
||
练习类别:每日一练
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<div id="leftmid" style="width:100%;height:93.5%;">
|
||
<!-- <div style="width: 100%;height: 2.5%;"></div> -->
|
||
<!--竖版-->
|
||
<!-- <div id="leftques" style="width: 100%;height: 99%;">
|
||
<div id="questitledivout" style="width: 24%;height: 100%;background-color: white;float: left;">
|
||
<div style="width: 10%;height: 100%;float: left;"></div>
|
||
<div style="width: 80%;height: 100%;float: left;">
|
||
<div style="width: 100%;height: 6%;"></div>
|
||
<div id="questitlediv" style="width: 100%;height: 60%;font-size: x-large;"> ${quesnum}、${questitle} </div>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
<div style="width:0.2%;height: 100%;background-color: #EBEBEB;float: left;"></div>
|
||
<div id="questoptiondivout" style="width: 75.8%;height: 100%;background-color: white;float: left;">
|
||
<div style="width: 3%;height: 100%;float: left;"></div>
|
||
<div style="width: 96%;height: 100%;float: left;">
|
||
<div style="width: 100%;height: 6%;"></div>
|
||
<div id="questoptiondiv" style="width: 100%;height: 56%;font-size: x-large;">
|
||
|
||
判断填空题
|
||
<c:if test="${questypename == '填空题'}">
|
||
<div>
|
||
<input type="text" name="useranswer" id="useranswer" style="width: 90%;" value="" placeholder="请将正确答案填写此处 多个答案用,隔开"/>'+
|
||
</div>
|
||
</c:if>
|
||
|
||
<c:if test="${questypename == '多选题'}">
|
||
<c:forEach var="quesoptionlist" items="${quesoptionlist}">
|
||
<div>
|
||
<input type="checkbox" name="option" id="${quesoptionlist.optionid}" value="${quesoptionlist.optionid}" style="zoom: 140%;"/>
|
||
${quesoptionlist.optioncontent}
|
||
</div>
|
||
</c:forEach>
|
||
</c:if>
|
||
|
||
<c:if test="${questypename == '单选题' || questypename == '判断题'}">
|
||
<c:forEach var="quesoptionlist" items="${quesoptionlist}">
|
||
<div>
|
||
<input type="radio" name="option" id="${quesoptionlist.optionid}" value="${quesoptionlist.optionid}" style="zoom: 140%;"/>
|
||
${quesoptionlist.optioncontent}
|
||
</div>
|
||
</c:forEach>
|
||
</c:if>
|
||
|
||
</div>
|
||
<div style="width: 100%;height: 30%;">
|
||
<div id="analysis" style="width: 100%;height: 100%;font-size: medium;color: #568D8D;display: none;">答案解析:${analysis},本题正确答案为 ${rightanswer}</div>
|
||
</div>
|
||
|
||
<div style="width: 100%;height: 7%;">
|
||
<div style="width: 75%;height: 100%;float: left;"></div>
|
||
<div style="width: 11%;height: 100%;float: left;">
|
||
<img src="<%=request.getContextPath()%>/IMG/main/daytest_analysis.png" style="width: 100%;height: 100%;cursor: pointer;" onclick="doanalysis();">
|
||
</div>
|
||
<div style="width: 2%;height: 100%;float: left;">
|
||
|
||
</div>
|
||
<div style="width: 9%;height: 100%;float: left;">
|
||
<img src="<%=request.getContextPath()%>/IMG/main/daytest_confirm.png" style="width: 100%;height: 100%;cursor: pointer;" onclick="doSwitch('next')">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
</div> -->
|
||
<!--横版-->
|
||
<div id="leftques" style="width: 100%;height: 99%;background-color: white;">
|
||
<div style="width: 5%;height: 100%;float: left;"></div>
|
||
<div style="width: 90%;height: 100%;float: left;">
|
||
<div style="width: 100%;height: 5%;"></div>
|
||
<div id="questitlediv" style="width: 100%;height: auto; min-height:15%;font-size: x-large;border-bottom: 3px solid #EBEBEB;">${quesnum}、${questitle}</div>
|
||
<div style="width: 100%;height: 5%;"></div>
|
||
<div id="questoptiondiv" style="width: 100%;height: 45%;font-size: x-large;">
|
||
<!--判断填空题-->
|
||
<c:if test="${questypename == '填空题'}">
|
||
<div>
|
||
<input type="text" name="useranswer" id="useranswer" style="width: 90%;" value="" placeholder="请将正确答案填写此处 多个答案用,隔开"/>'+
|
||
</div>
|
||
</c:if>
|
||
|
||
<c:if test="${questypename == '多选题'}">
|
||
<c:forEach var="quesoptionlist" items="${quesoptionlist}">
|
||
<div>
|
||
<input type="checkbox" name="option" id="${quesoptionlist.optionid}" value="${quesoptionlist.optionid}" style="zoom: 140%;"/>
|
||
${quesoptionlist.optionx}.${quesoptionlist.optioncontent}
|
||
</div>
|
||
</c:forEach>
|
||
</c:if>
|
||
|
||
<c:if test="${questypename == '单选题' || questypename == '判断题'}">
|
||
<c:forEach var="quesoptionlist" items="${quesoptionlist}">
|
||
<div>
|
||
<input type="radio" name="option" id="${quesoptionlist.optionid}" value="${quesoptionlist.optionid}" style="zoom: 140%;"/>
|
||
${quesoptionlist.optionx}.${quesoptionlist.optioncontent}
|
||
</div>
|
||
</c:forEach>
|
||
</c:if>
|
||
</div>
|
||
<div style="width: 100%;height: 25%;">
|
||
<div style="width: 70%;height: 100%;float: left;">
|
||
<div id="analysis" style="width: 100%;height: 100%;font-size: medium;color: #568D8D;display: none;float: left;">答案解析:${analysis},本题正确答案为 ${rightanswer}</div>
|
||
</div>
|
||
<div style="width: 30%;height: 100%;float: left;">
|
||
<div style="width: 100%;height: 70%;"></div>
|
||
<div style="width: 100%;height: 30%;">
|
||
<div style="width: 40%;height: 100%;float: left;"></div>
|
||
<div style="width: 32%;height: 100%;float: left;">
|
||
<img src="<%=request.getContextPath()%>/IMG/main/daytest_analysis.png" style="width: 100%;height: 100%;cursor: pointer;" onclick="doanalysis();">
|
||
</div>
|
||
<div style="width: 2%;height: 100%;float: left;">
|
||
|
||
</div>
|
||
<div style="width: 26%;height: 100%;float: left;">
|
||
<img src="<%=request.getContextPath()%>/IMG/main/daytest_confirm.png" style="width: 100%;height: 100%;cursor: pointer;" onclick="doSwitch('next')">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div id="marginmid" style="width:1%;height:100%;float:left;"></div>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<!-- <div id="examhtml">
|
||
<div>
|
||
${quesnum}、${questitlelist.quesdescript}
|
||
</div>
|
||
<c:forEach var="quesoptionlist" items="${quesoptionlist}">
|
||
<div>
|
||
<input type="checkbox" name="option" id="${quesoptionlist.optionid}" value="${quesoptionlist.optionid}" />
|
||
${quesoptionlist.optioncontent}
|
||
</div>
|
||
</c:forEach>
|
||
</div>
|
||
</div> -->
|
||
<!-- <div class="modal-footer">
|
||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">关闭</button>
|
||
<button type="button" class="btn btn-primary" onclick="dosendpaper()">交卷</button>
|
||
<button type="button" class="btn btn-primary" onclick="doSwitch('prev')">上一题</button>
|
||
<button type="button" class="btn btn-primary" onclick="doSwitch('next')">下一题</button>
|
||
</div> -->
|
||
</div>
|
||
<!-- /.modal-content -->
|
||
</div>
|
||
<!-- /.modal-dialog -->
|
||
</div>
|
||
<script>
|
||
//倒计时功能
|
||
// var oBox= document.getElementById('timer');
|
||
// var maxtime = $("#examtime").val() * 60;
|
||
// function CountDown() {
|
||
// if (maxtime >= 0) {
|
||
// minutes = Math.floor(maxtime / 60);
|
||
// seconds = Math.floor(maxtime % 60);
|
||
// if(minutes < 10){
|
||
// minutes = "0"+minutes;
|
||
// }
|
||
// if(seconds < 10){
|
||
// seconds = "0"+seconds;
|
||
// }
|
||
// msg = minutes + ":" + seconds ;
|
||
// oBox.innerHTML = msg;
|
||
// if (maxtime == 5 * 60)swal("还剩5分钟!请考生仔细检查试卷");
|
||
// --maxtime;
|
||
// } else{
|
||
// clearInterval(timer);
|
||
// swal("时间到,考试结束!");
|
||
// closeModal('subModal');
|
||
// }
|
||
// }
|
||
// timer = setInterval("CountDown()", 1000);
|
||
|
||
</script> |