Commit ffa525ff8c1eb14f8dd88166e8b82c2d0aebab37

Authored by 孙向锦
1 parent 83b5ddeb

修改出卷页面

WebRoot/WEB-INF/jsp/sunvote/paper/paper_list4.jsp
@@ -44,6 +44,7 @@ @@ -44,6 +44,7 @@
44 </div> 44 </div>
45 <div class="head_box_r"> 45 <div class="head_box_r">
46 <input type="hidden" name="SCHOOL_ID" id="PAPER_ID" value="${pd.SCHOOL_ID}"/> 46 <input type="hidden" name="SCHOOL_ID" id="PAPER_ID" value="${pd.SCHOOL_ID}"/>
  47 +
47 <input class="date-picker" type="text" placeholder="开始日期" name="lastStart" id="lastStart" data-date-format="yyyy-mm-dd" readonly="readonly" value="${pd.LASTSTART }"/> 48 <input class="date-picker" type="text" placeholder="开始日期" name="lastStart" id="lastStart" data-date-format="yyyy-mm-dd" readonly="readonly" value="${pd.LASTSTART }"/>
48 <input type="text" class="date-picker" placeholder="结束日期" name="lastEnd" name="lastEnd" data-date-format="yyyy-mm-dd" readonly="readonly" value="${pd.LASTEND}"/> 49 <input type="text" class="date-picker" placeholder="结束日期" name="lastEnd" name="lastEnd" data-date-format="yyyy-mm-dd" readonly="readonly" value="${pd.LASTEND}"/>
49 <a href="#" onclick="tosearch();"><img 50 <a href="#" onclick="tosearch();"><img
WebRoot/WEB-INF/jsp/sunvote/teacher/teacher_main.jsp
@@ -205,7 +205,7 @@ @@ -205,7 +205,7 @@
205 if(name != null&& name != '' && time != null && time != ''){ 205 if(name != null&& name != '' && time != null && time != ''){
206 var itime = parseInt(time); 206 var itime = parseInt(time);
207 if(itime > 0 && itime <= 300){ 207 if(itime > 0 && itime <= 300){
208 - self.location.href = "<%=basePath%>" + "paper/npaper.do?" + "name=" + name + "&time=" + time +"&TEMPLATE_ID=" + TEMPLATE_ID; 208 + self.location.href = encodeURI("<%=basePath%>" + "paper/npaper.do?" + "name=" + name + "&time=" + time +"&TEMPLATE_ID=" + TEMPLATE_ID);
209 $(".title_time").modal("hide"); 209 $(".title_time").modal("hide");
210 }else{ 210 }else{
211 alert("请输入正确的时间,时间不能超过300分钟"); 211 alert("请输入正确的时间,时间不能超过300分钟");
WebRoot/static/js/control-604.js
@@ -32,7 +32,7 @@ $(function() { @@ -32,7 +32,7 @@ $(function() {
32 } 32 }
33 q_num = str.length; 33 q_num = str.length;
34 $(".content").append('<div class="section section-' + answer_index_b+ ' single" data-fraction="'+ fraction+ '" data-score="' 34 $(".content").append('<div class="section section-' + answer_index_b+ ' single" data-fraction="'+ fraction+ '" data-score="'
35 - + (q_num * fraction) + '"><div class="title"><h3>第' + answer_index_b+ '大题(单选)总分: ' 35 + + (q_num * fraction) + '" style="margin-top:80px;"><div class="title"><h3>第' + answer_index_b+ '大题(单选)总分: '
36 + q_num + ' X ' + fraction + ' = ' + (q_num * fraction) 36 + q_num + ' X ' + fraction + ' = ' + (q_num * fraction)
37 + ' 分<!--<span>请在试题选项上点击,亮色为该试题的正确答案&nbsp; </span> --></h3> </div><div class="question_list"></div></div>'); 37 + ' 分<!--<span>请在试题选项上点击,亮色为该试题的正确答案&nbsp; </span> --></h3> </div><div class="question_list"></div></div>');
38 for (var i = 0; i < q_num; i++) { 38 for (var i = 0; i < q_num; i++) {
@@ -66,7 +66,7 @@ $(function() { @@ -66,7 +66,7 @@ $(function() {
66 } 66 }
67 } 67 }
68 $(".section-" + answer_index_b).attr("data-score", 68 $(".section-" + answer_index_b).attr("data-score",
69 - $(".section-1").find(".question").length * fraction); 69 + q_num * fraction);
70 total_score += q_num * fraction; 70 total_score += q_num * fraction;
71 $("#score_all").text(total_score); 71 $("#score_all").text(total_score);
72 } 72 }
@@ -485,7 +485,7 @@ $(function() { @@ -485,7 +485,7 @@ $(function() {
485 + i 485 + i
486 + '" data-fraction="' 486 + '" data-fraction="'
487 + data.questions[i].score 487 + data.questions[i].score
488 - + '" style="margin-top:20px;"> <h3><span class="que_num">' 488 + + '" style="margin-top:80px;"> <h3><span class="que_num">'
489 + '第' 489 + '第'
490 + (i + 1) 490 + (i + 1)
491 + '大题总分:' 491 + '大题总分:'
@@ -502,7 +502,7 @@ $(function() { @@ -502,7 +502,7 @@ $(function() {
502 if (i == 0) { 502 if (i == 0) {
503 $(".content") 503 $(".content")
504 .append( 504 .append(
505 - '<div class="section section0"> <div class="question_list"></div></div>'); 505 + '<div class="section section0"> <div class="question_list" style="margin-top:80px"></div></div>');
506 } 506 }
507 $(".section0").find(".question_list").append( 507 $(".section0").find(".question_list").append(
508 '<div class="question question' + (i + 1) + '"><span>' 508 '<div class="question question' + (i + 1) + '"><span>'
@@ -661,5 +661,13 @@ $(function() { @@ -661,5 +661,13 @@ $(function() {
661 } 661 }
662 } 662 }
663 creatHtml(testData); 663 creatHtml(testData);
  664 + }else{
  665 + if(testData != null){
  666 + $(".header_box h1").html(testData.title);
  667 + $("#time").html(testData.exam_time);
  668 + if(data.score != null && testData.score > 0 && testData.score != ''){
  669 + $("#score_all").html(testData.score);
  670 + }
  671 + }
664 } 672 }
665 }) 673 })
resources/dbconfig.properties
1 #数据源 1 1 #数据源 1
2 -url:jdbc:mysql://120.78.57.84:3306/education3?autoReconnect=true&failOverReadOnly=false&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8 2 +url:jdbc:mysql://120.78.57.84:3306/education?autoReconnect=true&failOverReadOnly=false&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8
3 #url:jdbc:mysql://192.168.0.3:3306/education?autoReconnect=true&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8 3 #url:jdbc:mysql://192.168.0.3:3306/education?autoReconnect=true&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8
4 driverClassName:com.mysql.jdbc.Driver 4 driverClassName:com.mysql.jdbc.Driver
5 username:root 5 username:root