diff --git a/WebRoot/WEB-INF/jsp/sunvote/paper/paper_list4.jsp b/WebRoot/WEB-INF/jsp/sunvote/paper/paper_list4.jsp index 5fbd002..df1d39c 100644 --- a/WebRoot/WEB-INF/jsp/sunvote/paper/paper_list4.jsp +++ b/WebRoot/WEB-INF/jsp/sunvote/paper/paper_list4.jsp @@ -44,6 +44,7 @@
+ 0 && itime <= 300){ - self.location.href = "<%=basePath%>" + "paper/npaper.do?" + "name=" + name + "&time=" + time +"&TEMPLATE_ID=" + TEMPLATE_ID; + self.location.href = encodeURI("<%=basePath%>" + "paper/npaper.do?" + "name=" + name + "&time=" + time +"&TEMPLATE_ID=" + TEMPLATE_ID); $(".title_time").modal("hide"); }else{ alert("请输入正确的时间,时间不能超过300分钟"); diff --git a/WebRoot/static/js/control-604.js b/WebRoot/static/js/control-604.js index c48a68e..ed65549 100644 --- a/WebRoot/static/js/control-604.js +++ b/WebRoot/static/js/control-604.js @@ -32,7 +32,7 @@ $(function() { } q_num = str.length; $(".content").append('

第' + answer_index_b+ '大题(单选)总分: ' + + (q_num * fraction) + '" style="margin-top:80px;">

第' + answer_index_b+ '大题(单选)总分: ' + q_num + ' X ' + fraction + ' = ' + (q_num * fraction) + ' 分

'); for (var i = 0; i < q_num; i++) { @@ -66,7 +66,7 @@ $(function() { } } $(".section-" + answer_index_b).attr("data-score", - $(".section-1").find(".question").length * fraction); + q_num * fraction); total_score += q_num * fraction; $("#score_all").text(total_score); } @@ -485,7 +485,7 @@ $(function() { + i + '" data-fraction="' + data.questions[i].score - + '" style="margin-top:20px;">

' + + '" style="margin-top:80px;">

' + '第' + (i + 1) + '大题总分:' @@ -502,7 +502,7 @@ $(function() { if (i == 0) { $(".content") .append( - '
'); + '
'); } $(".section0").find(".question_list").append( '
' @@ -661,5 +661,13 @@ $(function() { } } creatHtml(testData); + }else{ + if(testData != null){ + $(".header_box h1").html(testData.title); + $("#time").html(testData.exam_time); + if(data.score != null && testData.score > 0 && testData.score != ''){ + $("#score_all").html(testData.score); + } + } } }) diff --git a/resources/dbconfig.properties b/resources/dbconfig.properties index f2e726b..773eb26 100644 --- a/resources/dbconfig.properties +++ b/resources/dbconfig.properties @@ -1,5 +1,5 @@ #数据源 1 -url:jdbc:mysql://120.78.57.84:3306/education3?autoReconnect=true&failOverReadOnly=false&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8 +url:jdbc:mysql://120.78.57.84:3306/education?autoReconnect=true&failOverReadOnly=false&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8 #url:jdbc:mysql://192.168.0.3:3306/education?autoReconnect=true&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8 driverClassName:com.mysql.jdbc.Driver username:root