Commit ffa525ff8c1eb14f8dd88166e8b82c2d0aebab37

Authored by 孙向锦
1 parent 83b5ddeb

修改出卷页面

WebRoot/WEB-INF/jsp/sunvote/paper/paper_list4.jsp
... ... @@ -44,6 +44,7 @@
44 44 </div>
45 45 <div class="head_box_r">
46 46 <input type="hidden" name="SCHOOL_ID" id="PAPER_ID" value="${pd.SCHOOL_ID}"/>
  47 +
47 48 <input class="date-picker" type="text" placeholder="开始日期" name="lastStart" id="lastStart" data-date-format="yyyy-mm-dd" readonly="readonly" value="${pd.LASTSTART }"/>
48 49 <input type="text" class="date-picker" placeholder="结束日期" name="lastEnd" name="lastEnd" data-date-format="yyyy-mm-dd" readonly="readonly" value="${pd.LASTEND}"/>
49 50 <a href="#" onclick="tosearch();"><img
... ...
WebRoot/WEB-INF/jsp/sunvote/teacher/teacher_main.jsp
... ... @@ -205,7 +205,7 @@
205 205 if(name != null&& name != '' && time != null && time != ''){
206 206 var itime = parseInt(time);
207 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 209 $(".title_time").modal("hide");
210 210 }else{
211 211 alert("请输入正确的时间,时间不能超过300分钟");
... ...
WebRoot/static/js/control-604.js
... ... @@ -32,7 +32,7 @@ $(function() {
32 32 }
33 33 q_num = str.length;
34 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 36 + q_num + ' X ' + fraction + ' = ' + (q_num * fraction)
37 37 + ' 分<!--<span>请在试题选项上点击,亮色为该试题的正确答案&nbsp; </span> --></h3> </div><div class="question_list"></div></div>');
38 38 for (var i = 0; i < q_num; i++) {
... ... @@ -66,7 +66,7 @@ $(function() {
66 66 }
67 67 }
68 68 $(".section-" + answer_index_b).attr("data-score",
69   - $(".section-1").find(".question").length * fraction);
  69 + q_num * fraction);
70 70 total_score += q_num * fraction;
71 71 $("#score_all").text(total_score);
72 72 }
... ... @@ -485,7 +485,7 @@ $(function() {
485 485 + i
486 486 + '" data-fraction="'
487 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 490 + (i + 1)
491 491 + '大题总分:'
... ... @@ -502,7 +502,7 @@ $(function() {
502 502 if (i == 0) {
503 503 $(".content")
504 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 507 $(".section0").find(".question_list").append(
508 508 '<div class="question question' + (i + 1) + '"><span>'
... ... @@ -661,5 +661,13 @@ $(function() {
661 661 }
662 662 }
663 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
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 3 #url:jdbc:mysql://192.168.0.3:3306/education?autoReconnect=true&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8
4 4 driverClassName:com.mysql.jdbc.Driver
5 5 username:root
... ...