Commit 1ee0861154d0c1d962aba58d598290169ee80835
1 parent
97149a0b
1.英文翻译(2)
Showing
18 changed files
with
2643 additions
and
16 deletions
.settings/org.eclipse.core.resources.prefs
| 1 | 1 | eclipse.preferences.version=1 |
| 2 | +encoding//WebRoot/WEB-INF/jsp/sunvote/homework/en_homework_student_report.jsp=UTF-8 | |
| 2 | 3 | encoding//WebRoot/WEB-INF/jsp/sunvote/homework/homework_student_report.jsp=UTF-8 |
| 3 | 4 | encoding//WebRoot/WEB-INF/jsp/sunvote/paper/paper_list2.jsp=UTF-8 |
| 4 | 5 | encoding//WebRoot/WEB-INF/jsp/sunvote/teacher/creat_question.jsp=UTF-8 | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/grade/en_grade_edit2.jsp
0 → 100644
| 1 | +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
| 2 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
| 3 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 4 | +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> | |
| 5 | +<% | |
| 6 | + String path = request.getContextPath(); | |
| 7 | + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; | |
| 8 | +%> | |
| 9 | +<!DOCTYPE html> | |
| 10 | +<html lang="en"> | |
| 11 | + <head> | |
| 12 | + <base href="<%=basePath%>"> | |
| 13 | + <!-- 下拉框 --> | |
| 14 | + <link rel="stylesheet" href="static/ace/css/chosen.css" /> | |
| 15 | + <!-- jsp文件头和头部 --> | |
| 16 | + <%@ include file="../../system/index/top.jsp"%> | |
| 17 | + <!-- 日期框 --> | |
| 18 | + <link rel="stylesheet" href="static/ace/css/datepicker.css" /> | |
| 19 | + <!-- 编辑页样式覆盖 --> | |
| 20 | + <link rel="stylesheet" href="static/css/edit.css" /> | |
| 21 | +</head> | |
| 22 | +<body class="no-skin"> | |
| 23 | +<!-- /section:basics/navbar.layout --> | |
| 24 | +<div class="main-container" id="main-container"> | |
| 25 | + <!-- /section:basics/sidebar --> | |
| 26 | + <div class="main-content"> | |
| 27 | + <div class="main-content-inner"> | |
| 28 | + <div class="page-content"> | |
| 29 | + <div class="row"> | |
| 30 | + <div class="col-xs-12"> | |
| 31 | + | |
| 32 | + <form action="grade/${msg }.do" name="Form" id="Form" method="post"> | |
| 33 | + <input type="hidden" name="SCHOOL_ID" id="SCHOOL_ID" value="${pd.SCHOOL_ID}"/> | |
| 34 | + <div id="zhongxin" style="padding-top: 13px;"> | |
| 35 | + <table id="table_report" class="table"> | |
| 36 | + <tr> | |
| 37 | + <td style="width:75px;text-align: right;padding-top: 13px;">Course name:</td> | |
| 38 | + <td> | |
| 39 | + <select class="chosen-select form-control" name="GRADE_ID" id="GRADE_ID" data-placeholder=""> | |
| 40 | + <c:forEach var="item" items="${gradeList}"> | |
| 41 | + <option value="${item.ID}">${item.NAME}</option> | |
| 42 | + </c:forEach> | |
| 43 | + </select> | |
| 44 | + </td> | |
| 45 | + </tr> | |
| 46 | + | |
| 47 | + <tr> | |
| 48 | + <td style="text-align: center;" colspan="10"> | |
| 49 | + <a class="btn btn-mini btn-primary" onclick="save();">Save</a> | |
| 50 | + <a class="btn btn-mini btn-danger" onclick="window.top.modal.remove();">Cancel</a> | |
| 51 | + </td> | |
| 52 | + </tr> | |
| 53 | + </table> | |
| 54 | + </div> | |
| 55 | + <div id="zhongxin2" class="center" style="display:none"><br/><br/><br/><br/><br/><img src="static/images/jiazai.gif" /><br/><h4 class="lighter block green">Submiting...</h4></div> | |
| 56 | + </form> | |
| 57 | + </div> | |
| 58 | + <!-- /.col --> | |
| 59 | + </div> | |
| 60 | + <!-- /.row --> | |
| 61 | + </div> | |
| 62 | + <!-- /.page-content --> | |
| 63 | + </div> | |
| 64 | + </div> | |
| 65 | + <!-- /.main-content --> | |
| 66 | +</div> | |
| 67 | +<!-- /.main-container --> | |
| 68 | + | |
| 69 | + | |
| 70 | + <!-- 页面底部js¨ --> | |
| 71 | + <%@ include file="../../system/index/foot.jsp"%> | |
| 72 | + <!-- 下拉框 --> | |
| 73 | + <script src="static/ace/js/chosen.jquery.js"></script> | |
| 74 | + <!-- 日期框 --> | |
| 75 | + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script> | |
| 76 | + <!--提示框--> | |
| 77 | + <script type="text/javascript" src="static/js/jquery.tips.js"></script> | |
| 78 | + <script type="text/javascript"> | |
| 79 | + $(top.hangge()); | |
| 80 | + //保存 | |
| 81 | + function save(){ | |
| 82 | + if($("#GRADE_ID").val()==""){ | |
| 83 | + $("#GRADE_ID").tips({ | |
| 84 | + side:3, | |
| 85 | + msg:'Please enter the grade name', | |
| 86 | + bg:'#AE81FF', | |
| 87 | + time:2 | |
| 88 | + }); | |
| 89 | + $("#GRADE_ID").focus(); | |
| 90 | + return false; | |
| 91 | + } | |
| 92 | + $("#Form").submit(); | |
| 93 | + $("#zhongxin").hide(); | |
| 94 | + $("#zhongxin2").show(); | |
| 95 | + } | |
| 96 | + | |
| 97 | + $(function() { | |
| 98 | + //日期框 | |
| 99 | + $('.date-picker').datepicker({autoclose: true,todayHighlight: true}); | |
| 100 | + }); | |
| 101 | + </script> | |
| 102 | +</body> | |
| 103 | +</html> | |
| 0 | 104 | \ No newline at end of file | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/grade/en_grade_list2.jsp
0 → 100644
| 1 | +<%@ page language="java" contentType="text/html; charset=UTF-8" | |
| 2 | + pageEncoding="UTF-8"%> | |
| 3 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
| 4 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 5 | +<% | |
| 6 | + String path = request.getContextPath(); | |
| 7 | + String basePath = request.getScheme() + "://" | |
| 8 | + + request.getServerName() + ":" + request.getServerPort() | |
| 9 | + + path + "/"; | |
| 10 | +%> | |
| 11 | +<!DOCTYPE html> | |
| 12 | +<html lang="en"> | |
| 13 | +<head> | |
| 14 | +<base href="<%=basePath%>"> | |
| 15 | +<!-- 下拉框 --> | |
| 16 | +<link rel="stylesheet" href="static/ace/css/chosen.css" /> | |
| 17 | +<!-- jsp文件头和头部 --> | |
| 18 | +<link href="../static/css/teach.css" rel="stylesheet"> | |
| 19 | +<!-- 日期框 --> | |
| 20 | +<link rel="stylesheet" href="static/ace/css/datepicker.css" /> | |
| 21 | +<link | |
| 22 | + href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" | |
| 23 | + rel="stylesheet"> | |
| 24 | +<link href="static/css/teach.css" rel="stylesheet"> | |
| 25 | +</head> | |
| 26 | +<body class="no-skin"> | |
| 27 | + <form action="grade/listcs.do" method="post" name="Form" id="Form"> | |
| 28 | + <input type="hidden" name="SCHOOL_ID" id="SCHOOL_ID" value="${pd.SCHOOL_ID}"/> | |
| 29 | + | |
| 30 | + <div class="head_box"> | |
| 31 | + <div class="box_header"> | |
| 32 | + <div class="head_box_l"> | |
| 33 | + <p> | |
| 34 | + <span class="right_b"></span>Grade management | |
| 35 | + </p> | |
| 36 | + </div> | |
| 37 | + <div class="head_box_r"></div> | |
| 38 | + <div class="clear"></div> | |
| 39 | + </div> | |
| 40 | + <div style="padding:0 5%;background:#fff;"> | |
| 41 | + <table class="table table-striped"> | |
| 42 | + <col style="width: 10%" /> | |
| 43 | + <col style="width: 45%" /> | |
| 44 | + <col style="width: 45%" /> | |
| 45 | + <thead> | |
| 46 | + <tr> | |
| 47 | + <th><input type="checkbox" name='ids' id="ids" value="${var.SCHOOLGRADESUBJECT_ID}" />Number</th> | |
| 48 | + <th class="center">Grade name</th> | |
| 49 | + <th class="center">Grade description</th> | |
| 50 | + </tr> | |
| 51 | + </thead> | |
| 52 | + </table> | |
| 53 | + </div> | |
| 54 | + </div> | |
| 55 | + <div class="table_box"> | |
| 56 | + <table class="table table-striped"> | |
| 57 | + <col style="width: 10%" /> | |
| 58 | + <col style="width: 30%" /> | |
| 59 | + <col style="width: 30%" /> | |
| 60 | + <col style="width: 30%" /> | |
| 61 | + | |
| 62 | + <tbody> | |
| 63 | + <c:choose> | |
| 64 | + <c:when test="${not empty varList}"> | |
| 65 | + <c:forEach items="${varList}" var="var" varStatus="vs"> | |
| 66 | + <tr> | |
| 67 | + <td><input type="checkbox" name='ids' id="ids" | |
| 68 | + value="${var.SCHOOLGRADESUBJECT_ID}" />${vs.index+1}</td> | |
| 69 | + <td class='center'>${var.NAME}</td> | |
| 70 | + <td class='center'>${var.DESC}</td> | |
| 71 | + <td class='center'></td> | |
| 72 | + | |
| 73 | + </tr> | |
| 74 | + | |
| 75 | + </c:forEach> | |
| 76 | + </c:when> | |
| 77 | + <c:otherwise> | |
| 78 | + <tr class="main_info"> | |
| 79 | + <td colspan="100" class="center">There is no data</td> | |
| 80 | + </tr> | |
| 81 | + </c:otherwise> | |
| 82 | + </c:choose> | |
| 83 | + </tbody> | |
| 84 | + </table> | |
| 85 | + <div class="footer" style="width:auto"> | |
| 86 | + <div class="creat"> | |
| 87 | + <input type="button" onclick="add()" value="Add a grade" /> | |
| 88 | + </div> | |
| 89 | + <div class="removeAll"> | |
| 90 | + <input type="button" onclick="del()" value="Remove the grade" /> | |
| 91 | + </div> | |
| 92 | + <div class="page_box"> | |
| 93 | + | |
| 94 | + <div class="pagination" | |
| 95 | + style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div> | |
| 96 | + </div> | |
| 97 | + </div> | |
| 98 | + </div> | |
| 99 | + </form> | |
| 100 | + | |
| 101 | + <!-- /.main-container --> | |
| 102 | + | |
| 103 | + <!-- basic scripts --> | |
| 104 | + <!-- 页面底部js¨ --> | |
| 105 | + <%@ include file="../../system/index/foot.jsp"%> | |
| 106 | + <!-- 删除时确认窗口 --> | |
| 107 | + <script src="static/ace/js/bootbox.js"></script> | |
| 108 | + <!-- ace scripts --> | |
| 109 | + <script src="static/ace/js/ace/ace.js"></script> | |
| 110 | + <!-- 下拉框 --> | |
| 111 | + <script src="static/ace/js/chosen.jquery.js"></script> | |
| 112 | + <!-- 日期框 --> | |
| 113 | + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script> | |
| 114 | + <!--提示框--> | |
| 115 | + <script type="text/javascript" src="static/js/jquery.tips.js"></script> | |
| 116 | + <script type="text/javascript"> | |
| 117 | + $(document).ready(function(){ | |
| 118 | + window.top.loading.remove(); | |
| 119 | + }); | |
| 120 | + | |
| 121 | + //检索 | |
| 122 | + function tosearch(){ | |
| 123 | + $("#Form").submit(); | |
| 124 | + } | |
| 125 | + | |
| 126 | + function add(){ | |
| 127 | + window.top.modal.init({ | |
| 128 | + 'title':'Add a grade', | |
| 129 | + 'url':'<%=basePath%>grade/goAdd2.do?school_id=${pd.SCHOOL_ID}', | |
| 130 | + func:function() { | |
| 131 | + tosearch(); | |
| 132 | + } | |
| 133 | + }); | |
| 134 | + window.top.modal.show(); | |
| 135 | + } | |
| 136 | + | |
| 137 | + $('#ids').on('click', function(){ | |
| 138 | + var th_checked = $("#ids").prop('checked');//checkbox inside "TH" table header | |
| 139 | + | |
| 140 | + $(".table_box .table").find('tbody > tr').each(function(){ | |
| 141 | + var row = this; | |
| 142 | + if(th_checked) $(row).find('input[type=checkbox]').eq(0).prop('checked', true); | |
| 143 | + else $(row).find('input[type=checkbox]').eq(0).prop('checked', false); | |
| 144 | + }); | |
| 145 | + }); | |
| 146 | + | |
| 147 | + function del(Id){ | |
| 148 | + window.top.remove.init({"title":"Remove","func":function(success){ | |
| 149 | + if(success){ | |
| 150 | + var str = ''; | |
| 151 | + for(var i=0;i < document.getElementsByName('ids').length;i++){ | |
| 152 | + if(document.getElementsByName('ids')[i].checked){ | |
| 153 | + if(str=='') str += document.getElementsByName('ids')[i].value; | |
| 154 | + else str += ',' + document.getElementsByName('ids')[i].value; | |
| 155 | + } | |
| 156 | + } | |
| 157 | + if(str==''){ | |
| 158 | + | |
| 159 | + }else{ | |
| 160 | + $.ajax({ | |
| 161 | + type: "POST", | |
| 162 | + url: '<%=basePath%>grade/deleteAll2.do?tm='+new Date().getTime(), | |
| 163 | + data: {DATA_IDS:str}, | |
| 164 | + dataType:'json', | |
| 165 | + //beforeSend: validateData, | |
| 166 | + cache: false, | |
| 167 | + success: function(data){ | |
| 168 | + tosearch(); | |
| 169 | + } | |
| 170 | + }); | |
| 171 | + } | |
| 172 | + } | |
| 173 | + else{ | |
| 174 | + console.log("false"); | |
| 175 | + } | |
| 176 | + }}); | |
| 177 | + window.top.remove.show(); | |
| 178 | + } | |
| 179 | + | |
| 180 | + </script> | |
| 181 | + | |
| 182 | + | |
| 183 | +</body> | |
| 184 | +</html> | |
| 0 | 185 | \ No newline at end of file | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/headmaster/en_headmaster_edit2.jsp
0 → 100644
| 1 | +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
| 2 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
| 3 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 4 | +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> | |
| 5 | +<% | |
| 6 | + String path = request.getContextPath(); | |
| 7 | + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; | |
| 8 | +%> | |
| 9 | +<!DOCTYPE html> | |
| 10 | +<html lang="en"> | |
| 11 | + <head> | |
| 12 | + <base href="<%=basePath%>"> | |
| 13 | + <!-- 下拉框 --> | |
| 14 | + <link rel="stylesheet" href="static/ace/css/chosen.css" /> | |
| 15 | + <!-- jsp文件头和头部 --> | |
| 16 | + <%@ include file="../../system/index/top.jsp"%> | |
| 17 | + <!-- 日期框 --> | |
| 18 | + <link rel="stylesheet" href="static/ace/css/datepicker.css" /> | |
| 19 | + <!-- 编辑页样式覆盖 --> | |
| 20 | + <link rel="stylesheet" href="static/css/edit.css" /> | |
| 21 | +</head> | |
| 22 | +<body class="no-skin"> | |
| 23 | +<!-- /section:basics/navbar.layout --> | |
| 24 | +<div class="main-container" id="main-container"> | |
| 25 | + <!-- /section:basics/sidebar --> | |
| 26 | + <div class="main-content"> | |
| 27 | + <div class="main-content-inner"> | |
| 28 | + <div class="page-content"> | |
| 29 | + <div class="row"> | |
| 30 | + <div class="col-xs-12"> | |
| 31 | + | |
| 32 | + <form action="headmaster/${msg }.do" name="Form" id="Form" method="post"> | |
| 33 | + <input type="hidden" name="HEADMASTER_ID" id="HEADMASTER_ID" value="${pd.HEADMASTER_ID}"/> | |
| 34 | + <input type="hidden" name="SCHOOL_ID" id="SCHOOL_ID" value="${pd.SCHOOL_ID}"/> | |
| 35 | + <input type="hidden" name="PERMISSON" id="PERMISSON" value="${pd.PERMISSON}"/> | |
| 36 | + <div id="zhongxin" style="padding-top: 13px;"> | |
| 37 | + <table id="table_report" class="table"> | |
| 38 | + <tr> | |
| 39 | + <td style="width:75px;text-align: right;padding-top: 13px;">Class:</td> | |
| 40 | + <td> | |
| 41 | + <select class="chosen-select form-control" name="CLASS_ID" id="CLASS_ID" <c:if test="${msg eq 'edit'} "> disabled="disabled" </c:if> data-placeholder="Enter the Class"> | |
| 42 | + <c:forEach var="item" items="${classes}"> | |
| 43 | + <option value="${item.ID}" <c:if test="${pd.CLASS_ID==item.ID}">selected="true"</c:if>>${item.CLASS_NAME}</option> | |
| 44 | + </c:forEach> | |
| 45 | + </select> | |
| 46 | + </td> | |
| 47 | + </tr> | |
| 48 | + <tr> | |
| 49 | + <td style="width:75px;text-align: right;padding-top: 13px;">Name:</td> | |
| 50 | + <td><input type="text" name="NAME" id="NAME" value="${pd.NAME}" maxlength="255" placeholder="Enter the Name" title="name" style="width:98%;"/></td> | |
| 51 | + </tr> | |
| 52 | + <tr> | |
| 53 | + <td style="width:75px;text-align: right;padding-top: 13px;">User Name:</td> | |
| 54 | + <td><input type="text" name="USERNAME" id="USERNAME" value="${pd.USERNAME}" maxlength="255" placeholder="Enter the User Name" title="User Name" style="width:98%;"/></td> | |
| 55 | + </tr> | |
| 56 | + <tr> | |
| 57 | + <td style="width:75px;text-align: right;padding-top: 13px;">Password:</td> | |
| 58 | + <td><input type="text" name="PASSWORD" id="PASSWORD" value="${pd.PASSWORD}" maxlength="255" placeholder="Enter the Password" title="Password" style="width:98%;"/></td> | |
| 59 | + </tr> | |
| 60 | + <tr> | |
| 61 | + <td style="width:75px;text-align: right;padding-top: 13px;">Contact number:</td> | |
| 62 | + <td><input type="text" name="PHONE" id="PHONE" value="${pd.PHONE}" maxlength="255" placeholder="Enter the Contact number" title="Contact number" style="width:98%;"/></td> | |
| 63 | + </tr> | |
| 64 | + | |
| 65 | + <tr> | |
| 66 | + <td style="text-align: center;" colspan="10"> | |
| 67 | + <a class="btn btn-mini btn-primary" onclick="save();">Save</a> | |
| 68 | + <a class="btn btn-mini btn-danger" onclick="window.top.modal.remove();">Cancel</a> | |
| 69 | + </td> | |
| 70 | + </tr> | |
| 71 | + </table> | |
| 72 | + </div> | |
| 73 | + <div id="zhongxin2" class="center" style="display:none"><br/><br/><br/><br/><br/><img src="static/images/jiazai.gif" /><br/><h4 class="lighter block green">Submiting...</h4></div> | |
| 74 | + </form> | |
| 75 | + </div> | |
| 76 | + <!-- /.col --> | |
| 77 | + </div> | |
| 78 | + <!-- /.row --> | |
| 79 | + </div> | |
| 80 | + <!-- /.page-content --> | |
| 81 | + </div> | |
| 82 | + </div> | |
| 83 | + <!-- /.main-content --> | |
| 84 | +</div> | |
| 85 | +<!-- /.main-container --> | |
| 86 | + | |
| 87 | + | |
| 88 | + <!-- 页面底部js¨ --> | |
| 89 | + <%@ include file="../../system/index/foot.jsp"%> | |
| 90 | + <!-- 下拉框 --> | |
| 91 | + <script src="static/ace/js/chosen.jquery.js"></script> | |
| 92 | + <!-- 日期框 --> | |
| 93 | + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script> | |
| 94 | + <!--提示框--> | |
| 95 | + <script type="text/javascript" src="static/js/jquery.tips.js"></script> | |
| 96 | + <script type="text/javascript"> | |
| 97 | + | |
| 98 | + //保存 | |
| 99 | + function save(){ | |
| 100 | + if($("#NAME").val()==""){ | |
| 101 | + $("#NAME").tips({ | |
| 102 | + side:3, | |
| 103 | + msg:'Please enter the name', | |
| 104 | + bg:'#AE81FF', | |
| 105 | + time:2 | |
| 106 | + }); | |
| 107 | + $("#NAME").focus(); | |
| 108 | + return false; | |
| 109 | + } | |
| 110 | + if($("#USERNAME").val()==""){ | |
| 111 | + $("#USERNAME").tips({ | |
| 112 | + side:3, | |
| 113 | + msg:'Please enter the user name', | |
| 114 | + bg:'#AE81FF', | |
| 115 | + time:2 | |
| 116 | + }); | |
| 117 | + $("#USERNAME").focus(); | |
| 118 | + return false; | |
| 119 | + } | |
| 120 | + if($("#PASSWORD").val()==""){ | |
| 121 | + $("#PASSWORD").tips({ | |
| 122 | + side:3, | |
| 123 | + msg:'Please enter the password', | |
| 124 | + bg:'#AE81FF', | |
| 125 | + time:2 | |
| 126 | + }); | |
| 127 | + $("#PASSWORD").focus(); | |
| 128 | + return false; | |
| 129 | + } | |
| 130 | + | |
| 131 | + if($("#PHONE").val()==""){ | |
| 132 | + $("#PHONE").tips({ | |
| 133 | + side:3, | |
| 134 | + msg:'Please enter the contact number', | |
| 135 | + bg:'#AE81FF', | |
| 136 | + time:2 | |
| 137 | + }); | |
| 138 | + $("#PHONE").focus(); | |
| 139 | + return false; | |
| 140 | + } | |
| 141 | + $("#Form").submit(); | |
| 142 | + $("#zhongxin").hide(); | |
| 143 | + $("#zhongxin2").show(); | |
| 144 | + } | |
| 145 | + | |
| 146 | + $(function() { | |
| 147 | + //日期框 | |
| 148 | + $('.date-picker').datepicker({autoclose: true,todayHighlight: true}); | |
| 149 | + }); | |
| 150 | + </script> | |
| 151 | +</body> | |
| 152 | +</html> | |
| 0 | 153 | \ No newline at end of file | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/headmaster/en_headmaster_list2.jsp
0 → 100644
| 1 | +<%@ page language="java" contentType="text/html; charset=UTF-8" | |
| 2 | + pageEncoding="UTF-8"%> | |
| 3 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
| 4 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 5 | +<%@ taglib prefix="myelfun" uri="/WEB-INF/tld/elfun.tld"%> | |
| 6 | +<% | |
| 7 | + String path = request.getContextPath(); | |
| 8 | + String basePath = request.getScheme() + "://" | |
| 9 | + + request.getServerName() + ":" + request.getServerPort() | |
| 10 | + + path + "/"; | |
| 11 | +%> | |
| 12 | +<!DOCTYPE html> | |
| 13 | +<html lang="en"> | |
| 14 | +<title>中天电子-教育管理系统</title> | |
| 15 | +<head> | |
| 16 | +<base href="<%=basePath%>"> | |
| 17 | + | |
| 18 | +<!-- 下拉框 --> | |
| 19 | +<link rel="stylesheet" href="static/ace/css/chosen.css" /> | |
| 20 | +<!-- jsp文件头和头部 --> | |
| 21 | + | |
| 22 | +<!-- 日期框 --> | |
| 23 | +<link rel="stylesheet" href="static/ace/css/datepicker.css" /> | |
| 24 | +<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> | |
| 25 | +<link href="static/css/teach.css" rel="stylesheet"> | |
| 26 | +</head> | |
| 27 | +<body class="no-skin"> | |
| 28 | + | |
| 29 | + | |
| 30 | + <!-- 检索 --> | |
| 31 | + <form action="headmaster/listcs.do" method="post" name="Form" id="Form"> | |
| 32 | + <input type="hidden" name="SCHOOL_ID" id="SCHOOL_ID" value="${pd.SCHOOL_ID}"/> | |
| 33 | + <input type="hidden" name="GRADE_ID" id="GRADE_ID" value="${pd.GRADE_ID}"/> | |
| 34 | + <div class="head_box"> | |
| 35 | + <div class="box_header"> | |
| 36 | + <div class="head_box_l"> | |
| 37 | + <p> | |
| 38 | + <span class="right_b"></span>Monitor Management | |
| 39 | + </p> | |
| 40 | + </div> | |
| 41 | + <div class="clearfix"></div> | |
| 42 | + </div> | |
| 43 | + <div style="background:#fff;padding:0 5%;" > | |
| 44 | + | |
| 45 | + <table class="table table-striped" > | |
| 46 | + <col style="width: 10%" /> | |
| 47 | + <col style="width: 10%" /> | |
| 48 | + <col style="width: 10%" /> | |
| 49 | + <col style="width: 10%" /> | |
| 50 | + <col style="width: 20%" /> | |
| 51 | + <col style="width: 20%" /> | |
| 52 | + <thead> | |
| 53 | + <tr> | |
| 54 | + <th><input type="checkbox" value="0" name='ids' id="ids" />Number</th> | |
| 55 | + <th class="center">Name</th> | |
| 56 | + <th class="center">User Name</th> | |
| 57 | + <th class="center">Password</th> | |
| 58 | + <th class="center">Contact Number</th> | |
| 59 | + <th class="center">Class</th> | |
| 60 | + <th class="center">Operation</th> | |
| 61 | + </tr> | |
| 62 | + | |
| 63 | + </thead> | |
| 64 | + </table> | |
| 65 | + </div> | |
| 66 | + | |
| 67 | + <div class="clearfix"></div> | |
| 68 | + <!-- 检索 --> | |
| 69 | + | |
| 70 | + </div> | |
| 71 | + <div class="table_box" > | |
| 72 | + <table class="table table-striped" > | |
| 73 | + <col style="width: 10%" /> | |
| 74 | + <col style="width: 10%" /> | |
| 75 | + <col style="width: 10%" /> | |
| 76 | + <col style="width: 10%" /> | |
| 77 | + <col style="width: 20%" /> | |
| 78 | + <col style="width: 20%" /> | |
| 79 | + <tbody> | |
| 80 | + <!-- 开始循环 --> | |
| 81 | + <c:choose> | |
| 82 | + <c:when test="${not empty varList}"> | |
| 83 | + <c:forEach items="${varList}" var="var" varStatus="vs"> | |
| 84 | + <tr> | |
| 85 | + <td><input type="checkbox" name='ids' id="ids" | |
| 86 | + value="${var.ID}" />${vs.index+1}</td> | |
| 87 | + <td class='center'>${var.NAME}</td> | |
| 88 | + <td class='center'>${var.USERNAME}</td> | |
| 89 | + <td class='center'>${var.PASSWORD}</td> | |
| 90 | + <td class='center'>${var.PHONE}</td> | |
| 91 | + <td class='center'>${var.CLASS_NAME}</td> | |
| 92 | + <td><a onclick="edit('${var.HEADMASTER_ID}');" style="margin-right:10px;"><img src="static/images/eidtor.png" /></a><a onclick="del('${var.HEADMASTER_ID}');"><img src="static/images/remove.png" /></a></td> | |
| 93 | + </tr> | |
| 94 | + | |
| 95 | + </c:forEach> | |
| 96 | + </c:when> | |
| 97 | + <c:otherwise> | |
| 98 | + <tr class="main_info"> | |
| 99 | + <td colspan="100" class="center">There is no data</td> | |
| 100 | + </tr> | |
| 101 | + </c:otherwise> | |
| 102 | + </c:choose> | |
| 103 | + </tbody> | |
| 104 | + </table> | |
| 105 | + <div class="footer" style="width:auto;margin: 0px 5%;"> | |
| 106 | + <div class="creat"> | |
| 107 | + <input type="button" onclick="add();" value="Add the monitor" /> | |
| 108 | + </div> | |
| 109 | + <div class="removeAll"> | |
| 110 | + <input type="button" onclick="del();" value="Remove" /> | |
| 111 | + </div> | |
| 112 | + | |
| 113 | + <div class="page_box"> | |
| 114 | + <div class="pagination" style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div> | |
| 115 | + </div> | |
| 116 | + </div> | |
| 117 | + </div> | |
| 118 | + </form> | |
| 119 | + </div> | |
| 120 | + <!-- /.main-container --> | |
| 121 | + | |
| 122 | + <!-- basic scripts --> | |
| 123 | + <!-- 页面底部js¨ --> | |
| 124 | + <%@ include file="../../system/index/foot.jsp"%> | |
| 125 | + | |
| 126 | + <script type="text/javascript"> | |
| 127 | + window.top.loading.remove(); | |
| 128 | + //检索 | |
| 129 | + function tosearch(){ | |
| 130 | + $("#Form").submit(); | |
| 131 | + } | |
| 132 | + //修改 | |
| 133 | + function edit(Id){ | |
| 134 | + window.top.modal.init({ | |
| 135 | + 'title':'Modify the information', | |
| 136 | + 'url':'<%=basePath%>headmaster/goEdit2.do?HEADMASTER_ID='+Id, | |
| 137 | + func:function() { | |
| 138 | + tosearch(); | |
| 139 | + } | |
| 140 | + }); | |
| 141 | + window.top.modal.show(); | |
| 142 | + } | |
| 143 | + function add(){ | |
| 144 | + window.top.modal.init({ | |
| 145 | + 'title':'Add the monitor', | |
| 146 | + 'url':'<%=basePath%>headmaster/goAdd2.do?school_id=${pd.SCHOOL_ID}&grade_id=${pd.GRADE_ID}', | |
| 147 | + func:function() { | |
| 148 | + tosearch(); | |
| 149 | + } | |
| 150 | + }); | |
| 151 | + window.top.modal.show(); | |
| 152 | + } | |
| 153 | + function del(Id){ | |
| 154 | + window.top.remove.init({"title":"Remove","func":function(success){ | |
| 155 | + if(success){ | |
| 156 | + var str = Id; | |
| 157 | + if(str == ''){ | |
| 158 | + for(var i=0;i < document.getElementsByName('ids').length;i++){ | |
| 159 | + if(document.getElementsByName('ids')[i].checked){ | |
| 160 | + if(str=='') str += document.getElementsByName('ids')[i].value; | |
| 161 | + else str += ',' + document.getElementsByName('ids')[i].value; | |
| 162 | + } | |
| 163 | + } | |
| 164 | + } | |
| 165 | + | |
| 166 | + $.ajax({ | |
| 167 | + type: "POST", | |
| 168 | + url: '<%=basePath%>headmaster/deleteAll.do?tm='+new Date().getTime(), | |
| 169 | + data: {DATA_IDS:str}, | |
| 170 | + dataType:'json', | |
| 171 | + //beforeSend: validateData, | |
| 172 | + cache: false, | |
| 173 | + success: function(data){ | |
| 174 | + tosearch(); | |
| 175 | + } | |
| 176 | + }); | |
| 177 | + | |
| 178 | + } | |
| 179 | + else{ | |
| 180 | + console.log("false"); | |
| 181 | + } | |
| 182 | + }}); | |
| 183 | + window.top.remove.show(); | |
| 184 | + } | |
| 185 | + | |
| 186 | + </script> | |
| 187 | + | |
| 188 | + | |
| 189 | +</body> | |
| 190 | +</html> | |
| 0 | 191 | \ No newline at end of file | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/homework/en_homework_edit2.jsp
0 → 100644
| 1 | +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
| 2 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
| 3 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 4 | +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> | |
| 5 | +<%@ taglib prefix="myelfun" uri="/WEB-INF/tld/elfun.tld"%> | |
| 6 | + | |
| 7 | +<% | |
| 8 | + String path = request.getContextPath(); | |
| 9 | + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; | |
| 10 | +%> | |
| 11 | +<!DOCTYPE html> | |
| 12 | +<html lang="en" style="overflow-x:hidden;"> | |
| 13 | + <head> | |
| 14 | + <base href="<%=basePath%>"> | |
| 15 | + <!-- 下拉框 --> | |
| 16 | + <link rel="stylesheet" href="static/ace/css/chosen.css" /> | |
| 17 | + <!-- jsp文件头和头部 --> | |
| 18 | + | |
| 19 | + <link rel="stylesheet" href="static/css/bootstrap.min.css"> | |
| 20 | + <!-- 日期框 --> | |
| 21 | + <link rel="stylesheet" href="static/ace/css/datepicker.css" /> | |
| 22 | + | |
| 23 | + <link rel="stylesheet" href="static/css/teach.css" /> | |
| 24 | + <link rel="stylesheet" href="static/css/edit.css?a=2" /> | |
| 25 | + <style> | |
| 26 | + .box_header{position:fixed;top:0;left:0;width:100%;z-index:9999} | |
| 27 | + #Form{margin-top:102px;} | |
| 28 | + | |
| 29 | + </style> | |
| 30 | +</head> | |
| 31 | +<body class="no-skin homework_edit"> | |
| 32 | +<!-- /section:basics/navbar.layout --> | |
| 33 | +<div class="main-container" id="main-container"> | |
| 34 | + <!-- /section:basics/sidebar --> | |
| 35 | + <div class="main-content"> | |
| 36 | + <div class="main-content-inner"> | |
| 37 | + <div class="page-content"> | |
| 38 | + <div class="row"> | |
| 39 | + <div class="col-xs-12"> | |
| 40 | + <div class="box_header"> | |
| 41 | + <div class="head_box_l"> | |
| 42 | + <p> | |
| 43 | + <span class="right_b"></span>Arrange Exercise | |
| 44 | + </p> | |
| 45 | + </div> | |
| 46 | + <div class="clear"></div> | |
| 47 | + </div> | |
| 48 | + <form action="homework/${msg }.do" name="Form" id="Form" method="post"> | |
| 49 | + <input type="hidden" name="TEACHER_ID" id="TEACHER_ID" value="${pd.TEACHER_ID}"/> | |
| 50 | + <div id="zhongxin" style="padding-top: 13px;width:80%;margin:0 auto;"> | |
| 51 | + <table id="table_report" class="table"> | |
| 52 | + <tr> | |
| 53 | + <td style="width:95px;text-align: right;padding-top: 13px;">Exercise Title</td> | |
| 54 | + <td><input type="text" name="NAME" class="form-control" id="NAME" value="${pd.NAME}" maxlength="255" placeholder="输入练习标题,不超过20个汉字" title="作业代码" /></td> | |
| 55 | + </tr> | |
| 56 | + <tr> | |
| 57 | + <td style="width:95px;text-align: right;padding-top: 13px;">Exercise Description</td> | |
| 58 | + <td><input type="text" name=HOMEWORK_DESC class="form-control" id="HOMEWORK_DESC" value="${pd.HOMEWORK_DESC}" maxlength="255" placeholder="输入题目说明,如教材第12页1-5题,教辅第5页1-3题,尽量精简,不超过100个汉字" title="作业名称" /></td> | |
| 59 | + </tr> | |
| 60 | + <tr> | |
| 61 | + <td style="width:95px;text-align: right;padding-top: 13px;">Assign completed time of class</td> | |
| 62 | + <td> | |
| 63 | + <div class="classBox"> | |
| 64 | + <ul> | |
| 65 | + <c:if test="${pd.CLASS_ID != null}"> | |
| 66 | + <li class="checked"> | |
| 67 | + <input type="checkbox" checked="true" id="class0" name="className" value="${pd.CLASS_ID}" /> | |
| 68 | + <label for="class0"></label> | |
| 69 | + <span>${myelfun:findClassName(pd.CLASS_ID)}</span> | |
| 70 | + <input class="date-picker" type="text" class="form-control" style="width:150px;text-align:center;" placeholder="completion date" name="lastStart" id="lastStart" data-date-format="yyyy-mm-dd" readonly="readonly" value="${pd.COMPLETE_DATE}"/> | |
| 71 | + </li> | |
| 72 | + </c:if> | |
| 73 | + <!-- <li> | |
| 74 | + | |
| 75 | + <input type="checkbox" id="class1" name="className" value="1" /> | |
| 76 | + <label for="class1"></label> | |
| 77 | + <span>1班</span> | |
| 78 | + <input class="date-picker" type="text" class="form-control" style="width:200px;text-align:center;" placeholder="完成日期" name="lastStart" id="lastStart" data-date-format="yyyy-mm-dd" readonly="readonly" value=""/> | |
| 79 | + </li> | |
| 80 | + <li> | |
| 81 | + | |
| 82 | + <input type="checkbox" id="class2" name="className" value="1" /> | |
| 83 | + <label for="class2"></label> | |
| 84 | + <span>2班</span> | |
| 85 | + <input class="date-picker" type="text" class="form-control" style="width:200px;text-align:center;" placeholder="完成日期" name="lastStart" id="lastStart" data-date-format="yyyy-mm-dd" readonly="readonly" value=""/> | |
| 86 | + </li> | |
| 87 | + <li> | |
| 88 | + | |
| 89 | + <input type="checkbox" id="class3" name="className" value="1" /> | |
| 90 | + <label for="class3"></label> | |
| 91 | + <span>3班</span> | |
| 92 | + <input class="date-picker" type="text" class="form-control" style="width:200px;text-align:center;" placeholder="完成日期" name="lastStart" id="lastStart" data-date-format="yyyy-mm-dd" readonly="readonly" value=""/> | |
| 93 | + </li> | |
| 94 | + <li> | |
| 95 | + | |
| 96 | + <input type="checkbox" id="class4" name="className" value="1" /> | |
| 97 | + <label for="class4"></label> | |
| 98 | + <span>4班</span> | |
| 99 | + <input class="date-picker" type="text" class="form-control" style="width:200px;text-align:center;" placeholder="完成日期" name="lastStart" id="lastStart" data-date-format="yyyy-mm-dd" readonly="readonly" value=""/> | |
| 100 | + </li> | |
| 101 | + <li> | |
| 102 | + <input type="checkbox" id="class5" name="className" value="1" /> | |
| 103 | + <label for="class5"></label> | |
| 104 | + <span>5班</span> | |
| 105 | + <input class="date-picker" type="text" class="form-control" style="width:200px;text-align:center;" placeholder="完成日期" name="lastStart" id="lastStart" data-date-format="yyyy-mm-dd" readonly="readonly" value=""/> | |
| 106 | + </li> | |
| 107 | + <li> | |
| 108 | + <input type="checkbox" id="class6" name="className" value="1" /> | |
| 109 | + <label for="class6"></label> | |
| 110 | + <span>6班</span> | |
| 111 | + <input class="date-picker" type="text" class="form-control" style="width:200px;text-align:center;" placeholder="完成日期" name="lastStart" id="lastStart" data-date-format="yyyy-mm-dd" readonly="readonly" value=""/> | |
| 112 | + </li> --> | |
| 113 | + </ul> | |
| 114 | + </div> | |
| 115 | + | |
| 116 | + </td> | |
| 117 | + </tr> | |
| 118 | + | |
| 119 | + </table> | |
| 120 | + </div> | |
| 121 | + <hr /> | |
| 122 | + <div class="subject" style="width:80%;margin:0 auto;"> | |
| 123 | + <table width="100%"> | |
| 124 | + <col width="50%"/> | |
| 125 | + <col width="20%"/> | |
| 126 | + <col width="20%"/> | |
| 127 | + <col width="10%"/> | |
| 128 | + <thead> | |
| 129 | + <tr> | |
| 130 | + <th style="text-align:left;"><span>question number</span><span class="redu">-</span><input type="number" class="w_100" id="que_num" value="${pd.QUESTION_COUNT==null?0:pd.QUESTION_COUNT}"/><span class="add">+</span></th> | |
| 131 | + <th><span>option number</span><span class="redu">-</span><input type="number" class="w_100 ans_num" id="ans_num" value="4"/><span class="add">+</span></th> | |
| 132 | + <th><span>score</span><span class="redu">-</span><input type="number" class="w_100 score" id="score" value="1"/><span class="add">+</span></th> | |
| 133 | + <th></th> | |
| 134 | + </tr> | |
| 135 | + </thead> | |
| 136 | + </table> | |
| 137 | + <table width="100%" border="0" class="subject_body_tabel"> | |
| 138 | + <col width="10%"/> | |
| 139 | + <col width="40%"/> | |
| 140 | + <col width="20%"/> | |
| 141 | + <col width="20%"/> | |
| 142 | + <col width="10%"/> | |
| 143 | + <tbody class="subject_body_tbody"> | |
| 144 | + <c:choose> | |
| 145 | + <c:when test="${not empty pd.QUESTIONS}"> | |
| 146 | + <c:forEach items="${pd.QUESTIONS}" var="var" varStatus="vs"> | |
| 147 | + <tr> | |
| 148 | + <td class="first">${var.RANK}</td> | |
| 149 | + <td class="middle"> | |
| 150 | + <div class="question question${var.RANK}"> | |
| 151 | + <ul> | |
| 152 | + <c:forEach var="i" begin="1" end="${var.OPTION_NUM}"> | |
| 153 | + <c:set var="a" value="${fn:substring('ABCDEFGHI',i-1,i)}"/> | |
| 154 | + | |
| 155 | + <li class="btn btn-default <c:if test="${fn:contains(var.RIGHT_ANSWER, a)}"> on </c:if>">${a}</li> | |
| 156 | + </c:forEach> | |
| 157 | + | |
| 158 | + </ul> | |
| 159 | + </div> | |
| 160 | + | |
| 161 | + </td> | |
| 162 | + <td class="middle"><span>option number</span><span class="redu">-</span><input type="number" class="w_100 ans_num" value="${var.OPTION_NUM}"/><span class="add">+</span></td> | |
| 163 | + <td class="middle"><span>score</span><span class="redu">-</span><input type="number" class="w_100 score" value="${var.SCORE}"/><span class="add">+</span></td> | |
| 164 | + <td class="last"><a class="remove"><img src="static/images/remove.png" /></a></td> | |
| 165 | + </tr> | |
| 166 | + </c:forEach> | |
| 167 | + </c:when> | |
| 168 | + <c:otherwise> | |
| 169 | + <tr class="main_info"> | |
| 170 | + <td colspan="100" class="center">There is no data</td> | |
| 171 | + </tr> | |
| 172 | + </c:otherwise> | |
| 173 | + </c:choose> | |
| 174 | + | |
| 175 | + </tbody> | |
| 176 | + </table> | |
| 177 | + </div> | |
| 178 | + <hr /> | |
| 179 | + <div> | |
| 180 | + <div style="text-align: center;" colspan="10"> | |
| 181 | + | |
| 182 | + <a class="btn btn-mini btn-primary" onclick="save();">confirm the assignment</a> | |
| 183 | + <a class="btn btn-mini btn-danger" onclick="back()">Cancel</a> | |
| 184 | + </div> | |
| 185 | + </div> | |
| 186 | + <div id="zhongxin2" class="center" style="display:none"><br/><br/><br/><br/><br/><img src="static/images/jiazai.gif" /><br/><h4 class="lighter block green">Submiting...</h4></div> | |
| 187 | + </form> | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + </div> | |
| 193 | + <!-- /.col --> | |
| 194 | + </div> | |
| 195 | + <!-- /.row --> | |
| 196 | + </div> | |
| 197 | + <!-- /.page-content --> | |
| 198 | + </div> | |
| 199 | + </div> | |
| 200 | + <!-- /.main-content --> | |
| 201 | +</div> | |
| 202 | +<!-- /.main-container --> | |
| 203 | + | |
| 204 | + <!-- 页面底部js¨ --> | |
| 205 | + <%@ include file="../../system/index/foot.jsp"%> | |
| 206 | + <!-- 下拉框 --> | |
| 207 | + <script src="static/ace/js/chosen.jquery.js"></script> | |
| 208 | + <!-- 日期框 --> | |
| 209 | + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script> | |
| 210 | + <!--提示框--> | |
| 211 | + <script type="text/javascript" src="static/js/jquery.tips.js"></script> | |
| 212 | + <!--页面交互--> | |
| 213 | + <script src="static/js/control_homework.js?t=2"></script> | |
| 214 | + <script> | |
| 215 | + var homework_id="${pd.HOMEWORK_ID}"; | |
| 216 | + | |
| 217 | + $(function() { | |
| 218 | + window.top.loading.remove(); | |
| 219 | + work.que_num=parseInt($("#que_num").val()); | |
| 220 | + //日期框 | |
| 221 | + $(document).on("focus",".date-picker",function(){ | |
| 222 | + $(this).datepicker({ | |
| 223 | + autoclose: true, | |
| 224 | + todayHighlight: true, | |
| 225 | + orientation:'top' | |
| 226 | + }); | |
| 227 | + }); | |
| 228 | + if(${pd.CLASS_ID==null}==true){ | |
| 229 | + $.ajax({ //获取该名教师下的班级信息 | |
| 230 | + url:'<%=basePath%>coursemanagement/teacherClass', | |
| 231 | + type:"get", | |
| 232 | + data:{teacher_id:"${pd.TEACHER_ID}"}, | |
| 233 | + success:function(res){ | |
| 234 | + console.log(res); | |
| 235 | + if(res.data.length>0){ | |
| 236 | + var _html=""; | |
| 237 | + $.each(res.data,function(k,v){ | |
| 238 | + _html+='<li><input type="checkbox" id="class'+k+'" name="className" value="'+v.ID+'"><label for="class'+k+'"></label><span>'+v.CLASS_NAME+'</span><input class="date-picker" type="text" style="width:150px;text-align:center;" placeholder="完成日期" name="lastStart" id="lastStart" data-date-format="yyyy-mm-dd" readonly="readonly" value=""></li>'; | |
| 239 | + | |
| 240 | + }); | |
| 241 | + $(".classBox ul").html(_html); | |
| 242 | + } | |
| 243 | + } | |
| 244 | + }); | |
| 245 | + } | |
| 246 | + | |
| 247 | + | |
| 248 | + }); | |
| 249 | + function back(){ | |
| 250 | + var path = '<%=basePath%>homework/list.do?teacher_id=${pd.TEACHER_ID}'; | |
| 251 | + parent.$("#mainFrame").attr('src',path); | |
| 252 | + window.top.loading.show(); | |
| 253 | + } | |
| 254 | + function save_data(data){ | |
| 255 | + $.ajax({ //获取该名教师下的班级信息 | |
| 256 | + url:'<%=basePath%>homework/uploadHomework', | |
| 257 | + type:"post", | |
| 258 | + dataType:"text", | |
| 259 | + data:{"JSON":data}, | |
| 260 | + success:function(res){ | |
| 261 | + var res=JSON.parse(res); | |
| 262 | + if(res.message=="success"){ | |
| 263 | + //alert(res.message); | |
| 264 | + console.log(res); | |
| 265 | + | |
| 266 | + var path = '<%=basePath%>homework/list.do?teacher_id=${pd.TEACHER_ID}'; | |
| 267 | + parent.$("#mainFrame").attr('src',path); | |
| 268 | + window.top.loading.show(); | |
| 269 | + } | |
| 270 | + | |
| 271 | + } | |
| 272 | + }); | |
| 273 | + } | |
| 274 | + function up_data(data){ | |
| 275 | + $.ajax({ //获取该名教师下的班级信息 | |
| 276 | + url:'<%=basePath%>homework/updateHomework', | |
| 277 | + type:"post", | |
| 278 | + dataType:"text", | |
| 279 | + data:{"JSON":data}, | |
| 280 | + success:function(res){ | |
| 281 | + var res=JSON.parse(res); | |
| 282 | + if(res.message=="success"){ | |
| 283 | + //alert(res.message); | |
| 284 | + console.log(res); | |
| 285 | + | |
| 286 | + var path = '<%=basePath%>homework/list.do?teacher_id=${pd.TEACHER_ID}'; | |
| 287 | + parent.$("#mainFrame").attr('src',path); | |
| 288 | + window.top.loading.show(); | |
| 289 | + | |
| 290 | + } | |
| 291 | + } | |
| 292 | + }); | |
| 293 | + } | |
| 294 | + | |
| 295 | + </script> | |
| 296 | +</body> | |
| 297 | +</html> | |
| 0 | 298 | \ No newline at end of file | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/homework/en_homework_list.jsp
0 → 100644
| 1 | +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
| 2 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
| 3 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 4 | +<%@ taglib prefix="myelfun" uri="/WEB-INF/tld/elfun.tld"%> | |
| 5 | +<% | |
| 6 | + String path = request.getContextPath(); | |
| 7 | + String basePath = request.getScheme() + "://" | |
| 8 | + + request.getServerName() + ":" + request.getServerPort() | |
| 9 | + + path + "/"; | |
| 10 | +%> | |
| 11 | +<!DOCTYPE html> | |
| 12 | +<html lang="en" > | |
| 13 | +<head> | |
| 14 | +<base href="<%=basePath%>"> | |
| 15 | +<!-- 下拉框 --> | |
| 16 | +<link rel="stylesheet" href="static/ace/css/chosen.css" /> | |
| 17 | +<!-- jsp文件头和头部 --> | |
| 18 | + | |
| 19 | +<!-- 日期框 --> | |
| 20 | +<link rel="stylesheet" href="static/ace/css/datepicker.css" /> | |
| 21 | +<link | |
| 22 | + href="static/css/bootstrap.min.css" | |
| 23 | + rel="stylesheet"> | |
| 24 | +<link href="static/css/teach.css" rel="stylesheet"> | |
| 25 | +</head> | |
| 26 | +<body class="no-skin"> | |
| 27 | + <form action="homework/list.do" method="post" name="Form" id="Form"> | |
| 28 | + <input type="hidden" name="TEACHER_ID" id="TEACHER_ID" value="${pd.TEACHER_ID}"/> | |
| 29 | + <div class="head_box"> | |
| 30 | + <div class="box_header"> | |
| 31 | + <div class="head_box_l"> | |
| 32 | + <p> | |
| 33 | + <span class="right_b"></span>Exercise List | |
| 34 | + </p> | |
| 35 | + </div> | |
| 36 | + <div class="head_box_r"> | |
| 37 | + <select name="status" id="status" style="width:90px;height:26px;margin-right:5px;padding:0;border-color:#aaa;"> | |
| 38 | + <option value="">All</option> | |
| 39 | + <option value="0" <c:if test="${pd.STATUS=='0'}">selected="true"</c:if>>Unfinished</option> | |
| 40 | + <option value="1" <c:if test="${pd.STATUS=='1'}">selected="true"</c:if>>Finished</option> | |
| 41 | + </select> | |
| 42 | + <input class="date-picker" type="text" placeholder="Start date" name="StartDate" id="StartDate" data-date-format="yyyy-mm-dd" readonly="readonly" value="${pd.STARTDATE }"/> | |
| 43 | + <input type="text" class="date-picker" placeholder="End date" name="EndDate" name="EndDate" data-date-format="yyyy-mm-dd" readonly="readonly" value="${pd.ENDDATE}"/> | |
| 44 | + <a onclick="tosearch();"><img | |
| 45 | + src="static/images/search.png" /></a> | |
| 46 | + </div> | |
| 47 | + <div class="clear"></div> | |
| 48 | + </div> | |
| 49 | + <div style="padding:0 5%;background:#fff;"> | |
| 50 | + <table class="table table-striped"> | |
| 51 | + <col style="width: 8%" /> | |
| 52 | + <col style="width: 20%" /> | |
| 53 | + <col style="width: 15%" /> | |
| 54 | + <col style="width: 15%" /> | |
| 55 | + <col style="width: 10%" /> | |
| 56 | + <col style="width: 7%" /> | |
| 57 | + <col style="width: 10%" /> | |
| 58 | + <col style="width: 5%" /> | |
| 59 | + <col style="width: 10%" /> | |
| 60 | + <thead> | |
| 61 | + <tr> | |
| 62 | + <th><input type="checkbox" name='ids' id="ids" />Number</th> | |
| 63 | + <th>Exercise List</th> | |
| 64 | + <th>Assignment time</th> | |
| 65 | + <th>Completion time</th> | |
| 66 | + <th>Class</th> | |
| 67 | + <th>Item number</th> | |
| 68 | + <th>Completion Situation</th> | |
| 69 | + <th>Total score</th> | |
| 70 | + <th>Operation</th> | |
| 71 | + </tr> | |
| 72 | + </thead> | |
| 73 | + </table> | |
| 74 | + </div> | |
| 75 | + </div> | |
| 76 | + <div class="table_box"> | |
| 77 | + <table class="table table-striped"> | |
| 78 | + <col style="width: 8%" /> | |
| 79 | + <col style="width: 20%" /> | |
| 80 | + <col style="width: 15%" /> | |
| 81 | + <col style="width: 15%" /> | |
| 82 | + <col style="width: 10%" /> | |
| 83 | + <col style="width: 7%" /> | |
| 84 | + <col style="width: 10%" /> | |
| 85 | + <col style="width: 5%" /> | |
| 86 | + <col style="width: 10%" /> | |
| 87 | + <tbody> | |
| 88 | + <c:choose> | |
| 89 | + <c:when test="${not empty varList}"> | |
| 90 | + <c:forEach items="${varList}" var="var" varStatus="vs"> | |
| 91 | + <tr> | |
| 92 | + <td><input type="checkbox" name='ids' id="ids" value="${var.HOMEWORK_ID}"/>${vs.index+1}</td> | |
| 93 | + <td ><a onclick="view('<%=basePath%>homework/goView.do?homework_id=${var.HOMEWORK_ID}')">${var.NAME}(${myelfun:findClassName(var.CLASS_ID)})</a></td> | |
| 94 | + <td >${var.CREATE_DATE}</td> | |
| 95 | + <td >${var.COMPLETE_DATE}</td> | |
| 96 | + <td >${myelfun:findClassName(var.CLASS_ID)}</td> | |
| 97 | + <td >${var.QUESTION_COUNT}</td> | |
| 98 | + <td >${var.COMPLETE_COUNT == "0" ? "Unfinished":"Finished"}</td> | |
| 99 | + <td >${var.ALL_SCORE}</td> | |
| 100 | + <td> | |
| 101 | + <c:if test="${var.COMPLETE_COUNT == '0'}"> | |
| 102 | + <a onclick="edit('${var.HOMEWORK_ID}');"><img src="static/images/eidtor.png" /></a> | |
| 103 | + <a onclick="del('${var.HOMEWORK_ID}');"><img src="static/images/remove.png" /></a> | |
| 104 | + </c:if> | |
| 105 | + <c:if test="${var.COMPLETE_COUNT == '1'}"> | |
| 106 | + <a onclick="del('${var.HOMEWORK_ID}');" style="margin-left: 28px"><img src="static/images/remove.png" /></a> | |
| 107 | + </c:if> | |
| 108 | + | |
| 109 | + </tr> | |
| 110 | + | |
| 111 | + | |
| 112 | + </c:forEach> | |
| 113 | + </c:when> | |
| 114 | + <c:otherwise> | |
| 115 | + <tr class="main_info"> | |
| 116 | + <td colspan="100" class="center" >There is no data</td> | |
| 117 | + </tr> | |
| 118 | + </c:otherwise> | |
| 119 | + </c:choose> | |
| 120 | + </tbody> | |
| 121 | + </table> | |
| 122 | + <div class="footer"> | |
| 123 | + <div class="creat" <c:if test="${pd.SCHOOL_ID != '' and pd.SCHOOL_ID != null}">style="display:none;"</c:if>> | |
| 124 | + <input type="button" onclick="add('${pd.TEACHER_ID}')" value="Arrange Exercise" /> | |
| 125 | + </div> | |
| 126 | + <div class="removeAll"> | |
| 127 | + <input type="button" onclick="del()" value="Batch delete" /> | |
| 128 | + </div> | |
| 129 | + <div class="page_box"> | |
| 130 | + | |
| 131 | + <div class="pagination" style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div> | |
| 132 | + </div> | |
| 133 | + </div> | |
| 134 | + </div> | |
| 135 | + </form> | |
| 136 | + | |
| 137 | + <!-- basic scripts --> | |
| 138 | + <!-- 页面底部js¨ --> | |
| 139 | + <%@ include file="../../system/index/foot.jsp"%> | |
| 140 | + <!-- 删除时确认窗口 --> | |
| 141 | + <script src="static/ace/js/bootbox.js"></script> | |
| 142 | + <!-- ace scripts --> | |
| 143 | + <script src="static/ace/js/ace/ace.js"></script> | |
| 144 | + <!-- 下拉框 --> | |
| 145 | + <script src="static/ace/js/chosen.jquery.js"></script> | |
| 146 | + <!-- 日期框 --> | |
| 147 | + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script> | |
| 148 | + <!--提示框--> | |
| 149 | + <script type="text/javascript" src="static/js/jquery.tips.js"></script> | |
| 150 | + <script type="text/javascript"> | |
| 151 | + $(document).ready(function() { | |
| 152 | + window.top.loading.remove(); | |
| 153 | + //日期框 | |
| 154 | + $('.date-picker').datepicker({ | |
| 155 | + autoclose: true, | |
| 156 | + todayHighlight: true | |
| 157 | + }); | |
| 158 | + }); | |
| 159 | + | |
| 160 | + $('#ids').on('click', function(){ | |
| 161 | + var th_checked = $("#ids").prop('checked');//checkbox inside "TH" table header | |
| 162 | + | |
| 163 | + $(".table_box .table").find('tbody > tr').each(function(){ | |
| 164 | + var row = this; | |
| 165 | + if(th_checked) $(row).find('input[type=checkbox]').eq(0).prop('checked', true); | |
| 166 | + else $(row).find('input[type=checkbox]').eq(0).prop('checked', false); | |
| 167 | + }); | |
| 168 | + }); | |
| 169 | + | |
| 170 | + function tosearch(){ | |
| 171 | + $("#Form").submit(); | |
| 172 | + } | |
| 173 | + function add(Id){ | |
| 174 | + var path = '<%=basePath%>homework/goAdd2.do?teacher_id='+Id; | |
| 175 | + parent.$("#mainFrame").attr('src',path); | |
| 176 | + window.top.loading.show(); | |
| 177 | + } | |
| 178 | + function view(url){ | |
| 179 | + var path = url | |
| 180 | + parent.$("#mainFrame").attr('src',path); | |
| 181 | + window.top.loading.show(); | |
| 182 | + } | |
| 183 | + function edit(Id){ | |
| 184 | + var path = '<%=basePath%>homework/goEdit2.do?school_id=${pd.SCHOOL_ID}&HOMEWORK_ID='+Id; | |
| 185 | + parent.$("#mainFrame").attr('src',path); | |
| 186 | + window.top.loading.show(); | |
| 187 | + } | |
| 188 | + function del(Id){ | |
| 189 | + window.top.remove.init({"title":"Remove","func":function(success){ | |
| 190 | + if(success){ | |
| 191 | + var str = Id; | |
| 192 | + if(typeof(Id) == "undefined"){ | |
| 193 | + str = ''; | |
| 194 | + } | |
| 195 | + if(str == ''){ | |
| 196 | + for(var i=0;i < document.getElementsByName('ids').length;i++){ | |
| 197 | + if(document.getElementsByName('ids')[i].checked){ | |
| 198 | + if(str=='') str += document.getElementsByName('ids')[i].value; | |
| 199 | + else str += ',' + document.getElementsByName('ids')[i].value; | |
| 200 | + } | |
| 201 | + } | |
| 202 | + } | |
| 203 | + if(str == ''){ | |
| 204 | + return ; | |
| 205 | + } | |
| 206 | + | |
| 207 | + $.ajax({ | |
| 208 | + type: "POST", | |
| 209 | + url: '<%=basePath%>homework/deleteAll.do?tm='+new Date().getTime(), | |
| 210 | + data: {DATA_IDS:str}, | |
| 211 | + dataType:'json', | |
| 212 | + //beforeSend: validateData, | |
| 213 | + cache: false, | |
| 214 | + success: function(data){ | |
| 215 | + tosearch(); | |
| 216 | + } | |
| 217 | + }); | |
| 218 | + | |
| 219 | + } | |
| 220 | + else{ | |
| 221 | + console.log("false"); | |
| 222 | + } | |
| 223 | + }}); | |
| 224 | + window.top.remove.show(); | |
| 225 | + } | |
| 226 | + | |
| 227 | + </script> | |
| 228 | + | |
| 229 | + | |
| 230 | +</body> | |
| 231 | +</html> | |
| 0 | 232 | \ No newline at end of file | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/homework/en_homework_report.jsp
0 → 100644
| 1 | +<%@ page language="java" contentType="text/html; charset=UTF-8" | |
| 2 | + pageEncoding="UTF-8"%> | |
| 3 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
| 4 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 5 | +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> | |
| 6 | +<%@ taglib prefix="myelfun" uri="/WEB-INF/tld/elfun.tld"%> | |
| 7 | +<% | |
| 8 | + String path = request.getContextPath(); | |
| 9 | + String basePath = request.getScheme() + "://" | |
| 10 | + + request.getServerName() + ":" + request.getServerPort() | |
| 11 | + + path + "/"; | |
| 12 | +%> | |
| 13 | + | |
| 14 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
| 15 | +<html> | |
| 16 | +<head> | |
| 17 | +<base href="<%=basePath%>"> | |
| 18 | + | |
| 19 | +<title>${info.CLASS_NAME}Scores report</title> | |
| 20 | +<base href="<%=basePath%>"> | |
| 21 | +<!-- 下拉框 --> | |
| 22 | +<link rel="stylesheet" href="static/ace/css/chosen.css" /> | |
| 23 | + <link type="text/css" href="static/css/tablescroller.css" rel="stylesheet" /> | |
| 24 | + | |
| 25 | +<link | |
| 26 | + href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" | |
| 27 | + rel="stylesheet"> | |
| 28 | +<!-- 日期框 --> | |
| 29 | +<link rel="stylesheet" href="static/ace/css/datepicker.css" /> | |
| 30 | + | |
| 31 | +<link rel="stylesheet" href="static/css/teach.css" /> | |
| 32 | +<style> | |
| 33 | + .font span{ font-size: 12px; | |
| 34 | + font-weight: initial;color:#000;} | |
| 35 | + .search_btn{width:30px;} | |
| 36 | + .btn{margin:0 5px;} | |
| 37 | + .center{height:39px;} | |
| 38 | + .box_header{position:fixed;top:0;left:0;width:100%;z-index:9999;} | |
| 39 | + | |
| 40 | + </style> | |
| 41 | +</head> | |
| 42 | + | |
| 43 | +<body style="background:#fff;height:auto;"> | |
| 44 | +<div class="box_header"> | |
| 45 | + <div class="head_box_l"> | |
| 46 | + <p> | |
| 47 | + <span class="right_b"></span>Exercise Report | |
| 48 | + </p> | |
| 49 | + </div> | |
| 50 | + <div class="clear"></div> | |
| 51 | +</div> | |
| 52 | +<div style="padding-top:3%;margin-top:102px;"> | |
| 53 | + | |
| 54 | + <!-- Nav tabs --> | |
| 55 | + <ul class="nav nav-tabs" role="tablist" style="padding-bottom:3%"> | |
| 56 | + | |
| 57 | + <c:forEach items="${pd.CLASSES}" var="var" varStatus="vs"> | |
| 58 | + <li class="btn ${pd.CLASS_ID==var.CLASS_ID?'btn-primary':'btn-default'} btn-default btn-lg" onclick="homeReport('${var.CLASS_ID}')">${var.CLASS_NAME}</li> | |
| 59 | + </c:forEach> | |
| 60 | + | |
| 61 | + </ul> | |
| 62 | + | |
| 63 | + | |
| 64 | + <div style="padding:20px 20px;"> | |
| 65 | + <form action="homework/report.do" method="post" name="Form" id="Form" style="margin-bottom:0;"> | |
| 66 | + <input type="hidden" name="CLASSID" id="CLASSID" value="${pd.CLASS_ID}" /> | |
| 67 | + <input type="hidden" name="ROLE" id="ROLE" value="${pd.ROLE}" /> | |
| 68 | + <table style="margin-top:5px;margin-bottom:20px;"> | |
| 69 | + <tr> | |
| 70 | + <td><div style="width:150px;text-align:center;">Course statistics: ${fn:length(pd.DATA.HOMEWORKS)}</div></td> | |
| 71 | + <td><div style="width:150px;text-align:center;">Class roster: ${myelfun:findClassName(pd.CLASS_ID)}</div></td> | |
| 72 | + | |
| 73 | + <td><div style="width:150px;text-align:center;"><span>student number: ${fn:length(pd.DATA.STUDENTS)}</span></div></td> | |
| 74 | + <td></td> | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + <td style="padding-left:2px;"> | |
| 79 | + <input | |
| 80 | + class="span10 date-picker" name="lastStart" id="lastStart" | |
| 81 | + value="${pd.START_DATE}" type="text" data-date-format="yyyy-mm-dd" | |
| 82 | + readonly="readonly" style="width:88px;" placeholder="Start Date" | |
| 83 | + title="Start Date" />— | |
| 84 | + </td> | |
| 85 | + <td style="padding-left:2px;"><input | |
| 86 | + class="span10 date-picker" name="lastEnd" id="lastEnd" value="${pd.END_DATE}" | |
| 87 | + type="text" data-date-format="yyyy-mm-dd" readonly="readonly" | |
| 88 | + style="width:88px;" placeholder="End Date" title="End Date" /></td> | |
| 89 | + <td style="vertical-align:top;padding-left:2px"><a | |
| 90 | + class="btn btn-light btn-xs" onclick="tosearch();" title="Search"><img src="static/images/search.png" alt="" class="search_btn" /></a></td> | |
| 91 | + <td><li class="btn ${pd.CURRENT_WEEK==-1?'btn-primary':'btn-default' } btn-sm" onclick="tosearch_week(${pd.CURRENT_WEEK-1})">Last week</li></td> | |
| 92 | + | |
| 93 | + <td><li class="btn ${pd.CURRENT_WEEK==1?'btn-primary':'btn-default' } btn-sm" onclick="tosearch_week(${pd.CURRENT_WEEK+1})">Next week</li></td> | |
| 94 | + </tr> | |
| 95 | + </table> | |
| 96 | + <hr /> | |
| 97 | + <table id="simple-table" | |
| 98 | + class="table table-bordered table-hover" | |
| 99 | + style="margin-top:0px;margin-bottom:0px;"> | |
| 100 | + <thead> | |
| 101 | + <tr> | |
| 102 | + <th class="center th_name"><div style="width:150px;">Name</div></th> | |
| 103 | + <th class="center "><div style="width:150px;">Average score of the course</div></th> | |
| 104 | + <th class="center"><div style="width:80px;">Course total scores</div></th> | |
| 105 | + <th class="center"><div style="width:150px;">Personal performance</div></th> | |
| 106 | + <c:forEach items="${pd.DATA.HOMEWORKS}" var="var_h" varStatus="vs"> | |
| 107 | + <th class="center kc"><a | |
| 108 | + onclick="paper('${pd.CLASS_ID}','${var_h.HOMEWORK_ID}');"><div style="width:180px; margin: 0 auto;cursor:hand" class="font">${var_h.NAME}</br><span>${var_h.COMPLETE_DATE}</span></div></a></th> | |
| 109 | + </c:forEach> | |
| 110 | + </tr> | |
| 111 | + </thead> | |
| 112 | + <tbody> | |
| 113 | + <tr> | |
| 114 | + <td class="center"><div style="width:150px;">course total scores of class</div></td> | |
| 115 | + <td class="center"><div style="width:150px;"></div></td> | |
| 116 | + <td class="center"><div style="width:80px;"></div></td> | |
| 117 | + <td class="center"><div style="width:80px;"></div></td> | |
| 118 | + <c:forEach items="${pd.DATA.HOMEWORKS}" var="var_h" varStatus="vs"> | |
| 119 | + <td class="center"><div style="width:80px;margin:0 auto;">${var_h.ALL_SCORE}</div></td> | |
| 120 | + </c:forEach> | |
| 121 | + </tr> | |
| 122 | + <tr> | |
| 123 | + <td class="center"><div style="width:150px;">Class average score</div></td> | |
| 124 | + <td class="center"><div style="width:150px;"></div></td> | |
| 125 | + <td class="center"><div style="width:80px;"></div></td> | |
| 126 | + <td class="center"><div style="width:80px;"></div></td> | |
| 127 | + <c:forEach items="${pd.DATA.HOMEWORKS}" var="var_h" varStatus="vs"> | |
| 128 | + <td class="center"><div style="width:80px;margin:0 auto;">${var_h.GET_SCORE}</div></td> | |
| 129 | + </c:forEach> | |
| 130 | + </tr> | |
| 131 | + <tr> | |
| 132 | + <td class="center"><div style="width:150px;">course average correct rate of class</div></td> | |
| 133 | + <td class="center"><div style="width:150px;"></div></td> | |
| 134 | + <td class="center"><div style="width:80px;"></div></td> | |
| 135 | + <td class="center"><div style="width:80px;"></div></td> | |
| 136 | + <c:forEach items="${pd.DATA.HOMEWORKS}" var="var_h" varStatus="vs"> | |
| 137 | + <td class="center"><div style="width:80px;margin:0 auto;">${var_h.GET_SCORE_PERSENT }</div></td> | |
| 138 | + </c:forEach> | |
| 139 | + </tr> | |
| 140 | + <tr> | |
| 141 | + <td class="center"><div style="width:150px;">Exercise finish situation</div></td> | |
| 142 | + <td class="center"><div style="width:150px;"></div></td> | |
| 143 | + <td class="center"><div style="width:80px;"></div></td> | |
| 144 | + <td class="center"><div style="width:80px;"></div></td> | |
| 145 | + <c:forEach items="${pd.DATA.HOMEWORKS}" var="var_h" varStatus="vs"> | |
| 146 | + <td class="center"><div style="width:80px;margin:0 auto;">${var_h.COMPLETE_DESC }</div></td> | |
| 147 | + </c:forEach> | |
| 148 | + </tr> | |
| 149 | + | |
| 150 | + <c:choose> | |
| 151 | + <c:when test="${not empty pd.DATA.STUDENTS}"> | |
| 152 | + <c:forEach items="${pd.DATA.STUDENTS}" var="var" varStatus="vs"> | |
| 153 | + <tr> | |
| 154 | + <%-- <td class="center"><a | |
| 155 | + href="report/student_report?studentid=${var.ID}&class_id=${info.CLASS_ID}">${var.NAME}</a> | |
| 156 | + </td> --%> | |
| 157 | + <td class="center"><div style="width:150px;cursor:hand"><a | |
| 158 | + onclick="student('${pd.CLASS_ID}','${var.STUDENT_ID}')">${var.NAME}</a></div> | |
| 159 | + </td> | |
| 160 | + <td class="center"><div style="width:150px;"><fmt:formatNumber type="number" | |
| 161 | + value="${var.PAPER_ALL_SCORE == 0 ? 0: (var.STUDENT_ALL_SCORE / var.PAPER_ALL_SCORE * 100)}" | |
| 162 | + maxFractionDigits="2" />%</div></td> | |
| 163 | + <td class="center"><div style="width:80px;margin:0 auto;">${var.PAPER_ALL_SCORE}</div></td> | |
| 164 | + <td class="center"><div style="width:80px;margin:0 auto;"><fmt:formatNumber type="number" | |
| 165 | + value="${var.ALL_COUNT == 0 ? 0: (var.COMPLETE_COUNT / var.ALL_COUNT * 100)}" | |
| 166 | + maxFractionDigits="2" />%</div></td> | |
| 167 | + <c:forEach items="${pd.DATA.HOMEWORKS}" var="var1" varStatus="vs1"> | |
| 168 | + <td class="center"><div style="width:80px;margin:0 auto;"><c:set var="TEST_ID" | |
| 169 | + value="${var1.HOMEWORK_ID}" /> ${var[TEST_ID] }</div></td> | |
| 170 | + </c:forEach> | |
| 171 | + </tr> | |
| 172 | + </c:forEach> | |
| 173 | + </c:when> | |
| 174 | + </c:choose> | |
| 175 | + </tbody> | |
| 176 | + </table> | |
| 177 | + | |
| 178 | + <div id="scrollableTable"></div> | |
| 179 | + </form> | |
| 180 | + </div> | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | +</div> | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + <%@ include file="../../system/index/foot.jsp"%> | |
| 192 | + <script src="static/ace/js/bootbox.js"></script> | |
| 193 | + <!-- ace scripts --> | |
| 194 | + <script src="static/ace/js/ace/ace.js"></script> | |
| 195 | + <!-- 下拉框 --> | |
| 196 | + <script src="static/ace/js/chosen.jquery.js"></script> | |
| 197 | + <!-- 日期框 --> | |
| 198 | + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script> | |
| 199 | + <!--提示框--> | |
| 200 | + <script type="text/javascript" src="static/js/jquery.tips.js"></script> | |
| 201 | + | |
| 202 | + <script language="javascript" src="static/js/tablescroller.js"></script> | |
| 203 | + <script language="javascript" src="static/js/tablescroller.jquery.js"></script> | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + <script type="text/javascript"> | |
| 208 | + $(function() { | |
| 209 | + | |
| 210 | + //日期框 | |
| 211 | + $('.date-picker').datepicker({ | |
| 212 | + autoclose : true, | |
| 213 | + todayHighlight : true | |
| 214 | + }); | |
| 215 | + | |
| 216 | + //下拉框 | |
| 217 | + if (!ace.vars['touch']) { | |
| 218 | + $('.chosen-select').chosen({ | |
| 219 | + allow_single_deselect : true | |
| 220 | + }); | |
| 221 | + $(window).off('resize.chosen').on('resize.chosen', function() { | |
| 222 | + $('.chosen-select').each(function() { | |
| 223 | + var $this = $(this); | |
| 224 | + $this.next().css({ | |
| 225 | + 'width' : $this.parent().width() | |
| 226 | + }); | |
| 227 | + }); | |
| 228 | + }).trigger('resize.chosen'); | |
| 229 | + $(document).on('settings.ace.chosen', | |
| 230 | + function(e, event_name, event_val) { | |
| 231 | + if (event_name != 'sidebar_collapsed') | |
| 232 | + return; | |
| 233 | + $('.chosen-select').each(function() { | |
| 234 | + var $this = $(this); | |
| 235 | + $this.next().css({ | |
| 236 | + 'width' : $this.parent().width() | |
| 237 | + }); | |
| 238 | + }); | |
| 239 | + }); | |
| 240 | + $('#chosen-multiple-style .btn').on( | |
| 241 | + 'click', | |
| 242 | + function(e) { | |
| 243 | + var target = $(this).find('input[type=radio]'); | |
| 244 | + var which = parseInt(target.val()); | |
| 245 | + if (which == 2) | |
| 246 | + $('#form-field-select-4').addClass( | |
| 247 | + 'tag-input-style'); | |
| 248 | + else | |
| 249 | + $('#form-field-select-4').removeClass( | |
| 250 | + 'tag-input-style'); | |
| 251 | + }); | |
| 252 | + } | |
| 253 | + | |
| 254 | + //复选框全选控制 | |
| 255 | + var active_class = 'active'; | |
| 256 | + $('#simple-table > thead > tr > th input[type=checkbox]').eq(0).on( | |
| 257 | + 'click', | |
| 258 | + function() { | |
| 259 | + var th_checked = this.checked;//checkbox inside "TH" table header | |
| 260 | + $(this).closest('table').find('tbody > tr').each( | |
| 261 | + function() { | |
| 262 | + var row = this; | |
| 263 | + if (th_checked) | |
| 264 | + $(row).addClass(active_class).find( | |
| 265 | + 'input[type=checkbox]').eq(0) | |
| 266 | + .prop('checked', true); | |
| 267 | + else | |
| 268 | + $(row).removeClass(active_class).find( | |
| 269 | + 'input[type=checkbox]').eq(0) | |
| 270 | + .prop('checked', false); | |
| 271 | + }); | |
| 272 | + }); | |
| 273 | + }); | |
| 274 | + | |
| 275 | + var role = '${pd.ROLE}'; | |
| 276 | + | |
| 277 | + function precent(avg,total){ | |
| 278 | + if(total == 0){ | |
| 279 | + return "0%" | |
| 280 | + } | |
| 281 | + return Math.round(avg / total * 100)/100 + '%' ; | |
| 282 | + } | |
| 283 | + | |
| 284 | + function homeReport(classId){ | |
| 285 | + var path = '<%=basePath%>homework/report.do?School_id=${pd.SCHOOL_ID}&CLASS_ID='+classId; | |
| 286 | + console.log(path); | |
| 287 | + parent.$("#mainFrame").attr('src',path); | |
| 288 | + window.top.loading.show(); | |
| 289 | + } | |
| 290 | + | |
| 291 | + function tosearch(){ | |
| 292 | + | |
| 293 | + var url = "<%=basePath%>homework/report.do?CLASS_ID=${pd.CLASS_ID}" ; | |
| 294 | + var startDate = $("#lastStart").val(); | |
| 295 | + var endDate = $("#lastEnd").val(); | |
| 296 | + //var subject_id = $("#SUBJECT_ID").val(); | |
| 297 | + url = url + "&START_DATE=" + startDate ; | |
| 298 | + if(endDate != null){ | |
| 299 | + url = url + "&END_DATE=" + endDate; | |
| 300 | + } | |
| 301 | + | |
| 302 | + window.location.href = url; | |
| 303 | + window.top.loading.show(); | |
| 304 | + /* $("#Form").sumbit(); */ | |
| 305 | + } | |
| 306 | + function tosearch_week(type){ //上一周 本周 下一周 | |
| 307 | + console.log('${pd.CLASS_ID}'); | |
| 308 | + var url = "<%=basePath%>homework/report.do?CLASS_ID=${pd.CLASS_ID}" ; | |
| 309 | + url = url + "&CURRENT_WEEK=" + type ; | |
| 310 | + | |
| 311 | + console.log(url); | |
| 312 | + window.location.href = url; | |
| 313 | + window.top.loading.show(); | |
| 314 | + /* $("#Form").sumbit(); */ | |
| 315 | + } | |
| 316 | + | |
| 317 | + function student(classid,studentid){ | |
| 318 | + | |
| 319 | + var url = "<%=basePath%>homework/student.do?STUDENT_ID=" + studentid + "&CLASS_ID=" + classid ; | |
| 320 | + var startDate = $("#lastStart").val(); | |
| 321 | + var endDate = $("#lastEnd").val(); | |
| 322 | + url = url + "&START_DATE=" + startDate + "&END_DATE=" + endDate ; | |
| 323 | + | |
| 324 | + window.location.href = url; | |
| 325 | + window.top.loading.show(); | |
| 326 | + } | |
| 327 | + | |
| 328 | + function paper(class_id,testpaper_id){ | |
| 329 | + var url = "<%=basePath%>homework/homework_report?HOMEWORK_ID=" + testpaper_id + "&CLASS_ID=" + class_id; | |
| 330 | + var startDate = $("#lastStart").val(); | |
| 331 | + var endDate = $("#lastEnd").val(); | |
| 332 | + url = url + "&START_DATE=" + startDate + "&END_DATE=" + endDate ; | |
| 333 | + window.self.location.href = url; | |
| 334 | + window.top.loading.show(); | |
| 335 | + } | |
| 336 | + | |
| 337 | + $(document).ready(function(){ | |
| 338 | + window.top.loading.remove(); | |
| 339 | + | |
| 340 | + var sour = "${pd.DATA.HOMEWORKS}"; | |
| 341 | + | |
| 342 | + | |
| 343 | + if(sour != null && sour.length > 3){ | |
| 344 | + var _width = $('#mainFrame', parent.document).width()-40; | |
| 345 | + var _heigh = $('#mainFrame', parent.document).height()-350; | |
| 346 | + var options = { | |
| 347 | + width: _width, | |
| 348 | + height: _heigh, | |
| 349 | + pinnedRows: 5, | |
| 350 | + pinnedCols: 4, | |
| 351 | + container: "#scrollableTable", | |
| 352 | + removeOriginal: true | |
| 353 | + }; | |
| 354 | + $("#simple-table").tablescroller(options); | |
| 355 | + var name_height = $(".kc").last().parent().height()-18.5; | |
| 356 | + console.log(name_height); | |
| 357 | + $(".th_name").height(name_height); | |
| 358 | + } | |
| 359 | + | |
| 360 | + }); | |
| 361 | + | |
| 362 | + </script> | |
| 363 | + | |
| 364 | +</body> | |
| 365 | +</html> | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/homework/en_homework_student_report.jsp
0 → 100644
| 1 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| 2 | +<html xmlns="http://www.w3.org/1999/xhtml"> | |
| 3 | +<head> | |
| 4 | +<% | |
| 5 | + String path = request.getContextPath(); | |
| 6 | + String basePath = request.getScheme() + "://" | |
| 7 | + + request.getServerName() + ":" + request.getServerPort() | |
| 8 | + + path + "/"; | |
| 9 | +%> | |
| 10 | +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| 11 | +<title>班级-测试名单</title> | |
| 12 | +<script src="../static/js/jquery.min.js"></script> | |
| 13 | +<script | |
| 14 | + src="../static/js/bootstrap.min.js"></script> | |
| 15 | +<link | |
| 16 | + href="../static/css/bootstrap.min.css" | |
| 17 | + rel="stylesheet" type="text/css" media="all" /> | |
| 18 | +<link href="../static/css/jquery.circliful.css" rel="stylesheet" | |
| 19 | + type="text/css" /> | |
| 20 | +<link href="../static/css/style1.css?t=123" rel="stylesheet" type="text/css" /> | |
| 21 | +<!-- 日期框 --> | |
| 22 | +<link rel="stylesheet" href="../static/ace/css/datepicker.css" /> | |
| 23 | +<script src="../static/laydate/laydate.js"></script> | |
| 24 | +<!-- 改成你的路径 --> | |
| 25 | +<script src="../static/js/jquery.circliful.min.js"></script> | |
| 26 | +<script src="../static/js/echars.js"></script> | |
| 27 | +<!-- 日期框 --> | |
| 28 | +<script src="../static/ace/js/date-time/bootstrap-datepicker.js"></script> | |
| 29 | +<!--提示框--> | |
| 30 | +<script type="text/javascript" src="../static/js/jquery.tips.js"></script> | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | +<style> | |
| 36 | +body { | |
| 37 | + padding-top: 50px; | |
| 38 | +} | |
| 39 | + | |
| 40 | +li { | |
| 41 | + list-style: none; | |
| 42 | +} | |
| 43 | +</style> | |
| 44 | +</head> | |
| 45 | +<body> | |
| 46 | + <div class="header"> | |
| 47 | + <nav class="navbar navbar-default navbar-fixed-top"> | |
| 48 | + <div class="container"> | |
| 49 | + <input type="hidden" name="SUBJECT_ID" id="SUBJECT_ID" value="${pd.SUBJECT_ID}"/> | |
| 50 | + <input type="text" class="date-picker" placeholder="Start Date" name="starDate" id="starDate" data-date-format="yyyy-mm-dd" readonly="readonly" value="${start_date}"/> | |
| 51 | + <input type="text" class="date-picker" placeholder="End Date" name="endDate" id="endDate" data-date-format="yyyy-mm-dd" readonly="readonly" value="${end_date}"/> | |
| 52 | + <input type="button" value="Search" id="search" /> | |
| 53 | + </div> | |
| 54 | + </nav> | |
| 55 | + </div> | |
| 56 | + <div class="content row"> | |
| 57 | + <div class="content_l col-md-2"> | |
| 58 | + <ul> | |
| 59 | + | |
| 60 | + </ul> | |
| 61 | + </div> | |
| 62 | + <div class="content_r col-md-10"> | |
| 63 | + <div class="tabel_t"> | |
| 64 | + <div class="name"> | |
| 65 | + <h1></h1> | |
| 66 | + </div> | |
| 67 | + <div class="circle row"> | |
| 68 | + <div class="col-md-6"> | |
| 69 | + <!-- <div id="myStathalf" data-dimension="350" data-text="9/19" data-info="参与测试" data-width="10" data-fontsize="38" data-percent="35" data-fgcolor="#8ad254" data-bgcolor="#a9f9ff" data-type="half" data-fill="#50b5c9"></div> --> | |
| 70 | + | |
| 71 | + </div> | |
| 72 | + <div class="col-md-6"> | |
| 73 | + <!-- <div id="myStathalf1" data-dimension="350" data-text="36%" data-info="个人平均得分率" data-width="10" data-fontsize="38" data-percent="35" data-fgcolor="#8ad254" data-bgcolor="#a9f9ff" data-type="half" data-fill="#50b5c9"></div> --> | |
| 74 | + | |
| 75 | + </div> | |
| 76 | + </div> | |
| 77 | + <div class="info row"> | |
| 78 | + <div class="col-md-6"> | |
| 79 | + <p> | |
| 80 | + Class average score<span id="class_avg">0.0</span>% | |
| 81 | + </p> | |
| 82 | + </div> | |
| 83 | + <div class="col-md-6"> | |
| 84 | + <p> | |
| 85 | + Highest grade rate in class<span id="class_max">0.0</span>% | |
| 86 | + </p> | |
| 87 | + </div> | |
| 88 | + </div> | |
| 89 | + <div class="prev"></div> | |
| 90 | + <div class="next"></div> | |
| 91 | + </div> | |
| 92 | + <div class="tabel_b"> | |
| 93 | + <div class="tab_top row"> | |
| 94 | + <div class="col-md-3">Comparison chart of correct rate</div> | |
| 95 | + <div class="col-md-9"> | |
| 96 | + <div class="color"> | |
| 97 | + <ul> | |
| 98 | + <li><span class="green"></span>Class average </li> | |
| 99 | + <li><span class="blue"></span>Student personal</li> | |
| 100 | + <li><span class="yellow"></span>Highest score in class</li> | |
| 101 | + <div class="clear"></div> | |
| 102 | + </ul> | |
| 103 | + </div> | |
| 104 | + <div class="check_box"> | |
| 105 | + <input type="radio" checked value="1" name="check" id="check1" /> | |
| 106 | + <label for="check1">According to the scoring rate</label> <input type="radio" value="2" | |
| 107 | + name="check" id="check2" /> <label for="check2">According to the score</label> | |
| 108 | + </div> | |
| 109 | + </div> | |
| 110 | + </div> | |
| 111 | + <div class="tabel_content"> | |
| 112 | + <div id="main" style="width: 100%;height:400px;"></div> | |
| 113 | + </div> | |
| 114 | + </div> | |
| 115 | + </div> | |
| 116 | + </div> | |
| 117 | + <script type=""> | |
| 118 | + var URL = '<%=basePath%>${URL}'; | |
| 119 | + var data = ${data}; | |
| 120 | + </script> | |
| 121 | + <script src="../static/js/home_control1.js?a=3"></script> | |
| 122 | + <!-- 日期框 --> | |
| 123 | + <script> | |
| 124 | + //lay('#version').html('-v'+ laydate.v); | |
| 125 | + //日期范围 | |
| 126 | + // laydate.render({ | |
| 127 | + // elem: '#test6' | |
| 128 | + // ,range: true | |
| 129 | + // }); | |
| 130 | + | |
| 131 | + | |
| 132 | + $(document).ready(function(){ | |
| 133 | + window.top.loading.remove(); | |
| 134 | + }); | |
| 135 | + | |
| 136 | + $('.date-picker').datepicker({ | |
| 137 | + autoclose : true, | |
| 138 | + todayHighlight : true | |
| 139 | + }); | |
| 140 | + function student(classid,studentid){ | |
| 141 | + | |
| 142 | + var url = "<%=basePath%>homework/student.do?STUDENT_ID=" + studentid + "&CLASS_ID=" + classid ; | |
| 143 | + var startDate = $("#starDate").val(); | |
| 144 | + var endDate = $("#endDate").val(); | |
| 145 | + url = url + "&START_DATE=" + startDate + "&END_DATE=" + endDate ; | |
| 146 | + | |
| 147 | + //console.log(url); | |
| 148 | + window.location.href = url; | |
| 149 | + window.top.loading.show(); | |
| 150 | + } | |
| 151 | +</script> | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | +</body> | |
| 156 | +</html> | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/homework/en_homework_view.jsp
0 → 100644
| 1 | +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
| 2 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
| 3 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 4 | +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> | |
| 5 | +<%@ taglib prefix="myelfun" uri="/WEB-INF/tld/elfun.tld"%> | |
| 6 | + | |
| 7 | +<% | |
| 8 | + String path = request.getContextPath(); | |
| 9 | + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; | |
| 10 | +%> | |
| 11 | +<!DOCTYPE html> | |
| 12 | +<html lang="en" style="overflow-x:hidden;"> | |
| 13 | + <head> | |
| 14 | + <base href="<%=basePath%>"> | |
| 15 | + <!-- 下拉框 --> | |
| 16 | + <link rel="stylesheet" href="static/ace/css/chosen.css" /> | |
| 17 | + <!-- jsp文件头和头部 --> | |
| 18 | + | |
| 19 | + <link rel="stylesheet" href="static/css/bootstrap.min.css"> | |
| 20 | + <!-- 日期框 --> | |
| 21 | + <link rel="stylesheet" href="static/ace/css/datepicker.css" /> | |
| 22 | + | |
| 23 | + <link rel="stylesheet" href="static/css/teach.css" /> | |
| 24 | + <link rel="stylesheet" href="static/css/edit.css" /> | |
| 25 | + <style> | |
| 26 | + .box_header{position:fixed;top:0;left:0;width:100%;} | |
| 27 | + #Form{margin-top:102px;} | |
| 28 | + | |
| 29 | + </style> | |
| 30 | +</head> | |
| 31 | +<body class="no-skin homework_edit"> | |
| 32 | +<!-- /section:basics/navbar.layout --> | |
| 33 | +<div class="main-container" id="main-container"> | |
| 34 | + <!-- /section:basics/sidebar --> | |
| 35 | + <div class="main-content"> | |
| 36 | + <div class="main-content-inner"> | |
| 37 | + <div class="page-content"> | |
| 38 | + <div class="row"> | |
| 39 | + <div class="col-xs-12"> | |
| 40 | + <div class="box_header"> | |
| 41 | + <div class="head_box_l"> | |
| 42 | + <p> | |
| 43 | + <span class="right_b"></span>Exercise Preview | |
| 44 | + </p> | |
| 45 | + </div> | |
| 46 | + <div class="clear"></div> | |
| 47 | + </div> | |
| 48 | + <form action="homework/${msg }.do" name="Form" id="Form" method="post"> | |
| 49 | + <input type="hidden" name="TEACHER_ID" id="TEACHER_ID" value="${pd.TEACHER_ID}"/> | |
| 50 | + <div id="zhongxin" style="padding-top: 13px;width:80%;margin:0 auto;"> | |
| 51 | + <table id="table_report" class="table"> | |
| 52 | + <tr> | |
| 53 | + <td style="width:95px;text-align: right;padding-top: 13px;">exercise title</td> | |
| 54 | + <td><input type="text" name="NAME" class="form-control" id="NAME" value="${pd.NAME}" maxlength="255" placeholder="输入练习标题,不超过20个汉字" title="exercise title" /></td> | |
| 55 | + </tr> | |
| 56 | + <tr> | |
| 57 | + <td style="width:95px;text-align: right;padding-top: 13px;">exercise description</td> | |
| 58 | + <td><input type="text" name=HOMEWORK_DESC class="form-control" id="HOMEWORK_DESC" value="${pd.HOMEWORK_DESC}" maxlength="255" placeholder="输入题目说明,如教材第12页1-5题,教辅第5页1-3题,尽量精简,不超过100个汉字" title="exercise description" /></td> | |
| 59 | + </tr> | |
| 60 | + <tr> | |
| 61 | + <td style="width:95px;text-align: right;padding-top: 13px;">Assign completed time of class</td> | |
| 62 | + <td> | |
| 63 | + <div class="classBox"> | |
| 64 | + <ul> | |
| 65 | + <c:if test="${pd.CLASS_ID != null}"> | |
| 66 | + <li class="checked"> | |
| 67 | + <input type="checkbox" checked="true" id="class0" name="className" value="${pd.CLASS_ID}" /> | |
| 68 | + <label for="class0"></label> | |
| 69 | + <span>${myelfun:findClassName(pd.CLASS_ID)}</span> | |
| 70 | + <input class="date-picker" type="text" class="form-control" style="width:150px;text-align:center;" placeholder="完成日期" name="lastStart" id="lastStart" data-date-format="yyyy-mm-dd" readonly="readonly" value="${pd.COMPLETE_DATE}"/> | |
| 71 | + </li> | |
| 72 | + </c:if> | |
| 73 | + | |
| 74 | + </ul> | |
| 75 | + </div> | |
| 76 | + | |
| 77 | + </td> | |
| 78 | + </tr> | |
| 79 | + | |
| 80 | + </table> | |
| 81 | + </div> | |
| 82 | + <hr /> | |
| 83 | + <div class="subject" style="width:80%;margin:0 auto;"> | |
| 84 | + <table width="100%"> | |
| 85 | + <col width="50%"/> | |
| 86 | + <col width="20%"/> | |
| 87 | + <col width="20%"/> | |
| 88 | + <col width="10%"/> | |
| 89 | + <thead> | |
| 90 | + <tr> | |
| 91 | + <th style="text-align:left;"><span>question number</span><input type="number" class="w_100" id="que_num" value="${pd.QUESTION_COUNT==null?0:pd.QUESTION_COUNT}"/></th> | |
| 92 | + <th><span>option number</span><input type="number" class="w_100 ans_num" id="ans_num" value="4"/></th> | |
| 93 | + <th><span>score</span><input type="number" class="w_100 score" id="score" value="1"/></th> | |
| 94 | + <th></th> | |
| 95 | + </tr> | |
| 96 | + </thead> | |
| 97 | + </table> | |
| 98 | + <table width="100%" border="0" class="subject_body_tabel"> | |
| 99 | + <col width="10%"/> | |
| 100 | + <col width="40%"/> | |
| 101 | + <col width="20%"/> | |
| 102 | + <col width="20%"/> | |
| 103 | + <col width="10%"/> | |
| 104 | + <tbody class="subject_body_tbody"> | |
| 105 | + <c:choose> | |
| 106 | + <c:when test="${not empty pd.QUESTIONS}"> | |
| 107 | + <c:forEach items="${pd.QUESTIONS}" var="var" varStatus="vs"> | |
| 108 | + <tr> | |
| 109 | + <td class="first">${var.RANK}</td> | |
| 110 | + <td class="middle"> | |
| 111 | + <div class="question question${var.RANK}"> | |
| 112 | + <ul> | |
| 113 | + <c:forEach var="i" begin="1" end="${var.OPTION_NUM}"> | |
| 114 | + <c:set var="a" value="${fn:substring('ABCDEFGHI',i-1,i)}"/> | |
| 115 | + | |
| 116 | + <li class="btn btn-default <c:if test="${fn:contains(var.RIGHT_ANSWER, a)}"> on </c:if>">${a}</li> | |
| 117 | + </c:forEach> | |
| 118 | + | |
| 119 | + </ul> | |
| 120 | + </div> | |
| 121 | + | |
| 122 | + </td> | |
| 123 | + <td class="middle"><span>option number</span><input type="number" class="w_100 ans_num" value="${var.OPTION_NUM}"/></td> | |
| 124 | + <td class="middle"><span>score</span><input type="number" class="w_100 score" value="${var.SCORE}"/></td> | |
| 125 | + <td class="last"></td> | |
| 126 | + </tr> | |
| 127 | + </c:forEach> | |
| 128 | + </c:when> | |
| 129 | + <c:otherwise> | |
| 130 | + <tr class="main_info"> | |
| 131 | + <td colspan="100" class="center">There is no data</td> | |
| 132 | + </tr> | |
| 133 | + </c:otherwise> | |
| 134 | + </c:choose> | |
| 135 | + | |
| 136 | + </tbody> | |
| 137 | + </table> | |
| 138 | + </div> | |
| 139 | + <hr /> | |
| 140 | + <div> | |
| 141 | + <div style="text-align: center;display:none" colspan="10"> | |
| 142 | + | |
| 143 | + | |
| 144 | + <a class="btn btn-mini btn-danger" onclick="back();">Quit</a> | |
| 145 | + </div> | |
| 146 | + </div> | |
| 147 | + <div id="zhongxin2" class="center" style="display:none"><br/><br/><br/><br/><br/><img src="static/images/jiazai.gif" /><br/><h4 class="lighter block green">Submiting...</h4></div> | |
| 148 | + </form> | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + </div> | |
| 154 | + <!-- /.col --> | |
| 155 | + </div> | |
| 156 | + <!-- /.row --> | |
| 157 | + </div> | |
| 158 | + <!-- /.page-content --> | |
| 159 | + </div> | |
| 160 | + </div> | |
| 161 | + <!-- /.main-content --> | |
| 162 | +</div> | |
| 163 | +<!-- /.main-container --> | |
| 164 | + | |
| 165 | + <!-- 页面底部js¨ --> | |
| 166 | + <%@ include file="../../system/index/foot.jsp"%> | |
| 167 | + <!-- 下拉框 --> | |
| 168 | + <script src="static/ace/js/chosen.jquery.js"></script> | |
| 169 | + <!-- 日期框 --> | |
| 170 | + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script> | |
| 171 | + <!--提示框--> | |
| 172 | + <script type="text/javascript" src="static/js/jquery.tips.js"></script> | |
| 173 | + <!--页面交互--> | |
| 174 | + | |
| 175 | + <script> | |
| 176 | + | |
| 177 | + $(function() { | |
| 178 | + window.top.loading.remove(); | |
| 179 | + }); | |
| 180 | + function back(){ | |
| 181 | + var path = '<%=basePath%>homework/list.do?teacher_id=${pd.TEACHER_ID}'; | |
| 182 | + parent.$("#mainFrame").attr('src',path); | |
| 183 | + window.top.loading.show(); | |
| 184 | + } | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + </script> | |
| 189 | +</body> | |
| 190 | +</html> | |
| 0 | 191 | \ No newline at end of file | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/pagetemplate/en_pagetemplate_edit.jsp
0 → 100644
| 1 | +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
| 2 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
| 3 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 4 | +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> | |
| 5 | +<% | |
| 6 | + String path = request.getContextPath(); | |
| 7 | + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; | |
| 8 | +%> | |
| 9 | +<!DOCTYPE html> | |
| 10 | +<html lang="en"> | |
| 11 | + <head> | |
| 12 | + <base href="<%=basePath%>"> | |
| 13 | + <!-- 下拉框 --> | |
| 14 | + <link rel="stylesheet" href="static/ace/css/chosen.css" /> | |
| 15 | + <!-- jsp文件头和头部 --> | |
| 16 | + <%@ include file="../../system/index/top.jsp"%> | |
| 17 | + <!-- 日期框 --> | |
| 18 | + <link rel="stylesheet" href="static/ace/css/datepicker.css" /> | |
| 19 | +</head> | |
| 20 | +<body class="no-skin"> | |
| 21 | +<!-- /section:basics/navbar.layout --> | |
| 22 | +<div class="main-container" id="main-container"> | |
| 23 | + <!-- /section:basics/sidebar --> | |
| 24 | + <div class="main-content"> | |
| 25 | + <div class="main-content-inner"> | |
| 26 | + <div class="page-content"> | |
| 27 | + <div class="row"> | |
| 28 | + <div class="col-xs-12"> | |
| 29 | + | |
| 30 | + <form action="pagetemplate/${msg }.do" name="Form" id="Form" method="post"> | |
| 31 | + <input type="hidden" name="PAGETEMPLATE_ID" id="PAGETEMPLATE_ID" value="${pd.PAGETEMPLATE_ID}"/> | |
| 32 | + <div id="zhongxin" style="padding-top: 13px;"> | |
| 33 | + <table id="table_report" class="table table-striped table-bordered table-hover"> | |
| 34 | + <tr> | |
| 35 | + <td style="width:75px;text-align: right;padding-top: 13px;">Template name:</td> | |
| 36 | + <td><input type="text" name="NAME" id="NAME" value="${pd.NAME}" maxlength="255" placeholder="Enter the template name" title="template name" style="width:98%;"/></td> | |
| 37 | + </tr> | |
| 38 | + <tr> | |
| 39 | + <td style="width:75px;text-align: right;padding-top: 13px;">School:</td> | |
| 40 | + <td><input type="text" name="SCHOOL_ID" id="SCHOOL_ID" value="${pd.SCHOOL_ID}" maxlength="100" placeholder="Enter the school" title="school" style="width:98%;"/></td> | |
| 41 | + </tr> | |
| 42 | + <tr> | |
| 43 | + <td style="width:75px;text-align: right;padding-top: 13px;">Subject:</td> | |
| 44 | + <td><input type="text" name="SUBJECT_ID" id="SUBJECT_ID" value="${pd.SUBJECT_ID}" maxlength="100" placeholder="Enter the subject" title="subject" style="width:98%;"/></td> | |
| 45 | + </tr> | |
| 46 | + <tr> | |
| 47 | + <td style="width:75px;text-align: right;padding-top: 13px;">Grade:</td> | |
| 48 | + <td><input type="text" name="GRADE_ID" id="GRADE_ID" value="${pd.GRADE_ID}" maxlength="255" placeholder="Enter the grade" title="grade" style="width:98%;"/></td> | |
| 49 | + </tr> | |
| 50 | + <tr> | |
| 51 | + <td style="width:75px;text-align: right;padding-top: 13px;">User ID:</td> | |
| 52 | + <td><input type="text" name="USER_ID" id="USER_ID" value="${pd.USER_ID}" maxlength="100" placeholder="Enter the user ID" title="user ID" style="width:98%;"/></td> | |
| 53 | + </tr> | |
| 54 | + <tr> | |
| 55 | + <td style="width:75px;text-align: right;padding-top: 13px;">Total score:</td> | |
| 56 | + <td><input type="text" name="PAGE_SCORE" id="PAGE_SCORE" value="${pd.PAGE_SCORE}" maxlength="255" placeholder="Enter the total score" title="total score" style="width:98%;"/></td> | |
| 57 | + </tr> | |
| 58 | + <tr> | |
| 59 | + <td style="width:75px;text-align: right;padding-top: 13px;">Template content:</td> | |
| 60 | + <td><input type="text" name="CONTENT" id="CONTENT" value="${pd.CONTENT}" maxlength="1000" placeholder="Enter the template content" title="template content" style="width:98%;"/></td> | |
| 61 | + </tr> | |
| 62 | + <tr> | |
| 63 | + <td style="text-align: center;" colspan="10"> | |
| 64 | + <a class="btn btn-mini btn-primary" onclick="save();">Save</a> | |
| 65 | + <a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">Cancel</a> | |
| 66 | + </td> | |
| 67 | + </tr> | |
| 68 | + </table> | |
| 69 | + </div> | |
| 70 | + <div id="zhongxin2" class="center" style="display:none"><br/><br/><br/><br/><br/><img src="static/images/jiazai.gif" /><br/><h4 class="lighter block green">Submiting...</h4></div> | |
| 71 | + </form> | |
| 72 | + </div> | |
| 73 | + <!-- /.col --> | |
| 74 | + </div> | |
| 75 | + <!-- /.row --> | |
| 76 | + </div> | |
| 77 | + <!-- /.page-content --> | |
| 78 | + </div> | |
| 79 | + </div> | |
| 80 | + <!-- /.main-content --> | |
| 81 | +</div> | |
| 82 | +<!-- /.main-container --> | |
| 83 | + | |
| 84 | + | |
| 85 | + <!-- 页面底部js¨ --> | |
| 86 | + <%@ include file="../../system/index/foot.jsp"%> | |
| 87 | + <!-- 下拉框 --> | |
| 88 | + <script src="static/ace/js/chosen.jquery.js"></script> | |
| 89 | + <!-- 日期框 --> | |
| 90 | + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script> | |
| 91 | + <!--提示框--> | |
| 92 | + <script type="text/javascript" src="static/js/jquery.tips.js"></script> | |
| 93 | + <script type="text/javascript"> | |
| 94 | + $(top.hangge()); | |
| 95 | + //保存 | |
| 96 | + function save(){ | |
| 97 | + if($("#NAME").val()==""){ | |
| 98 | + $("#NAME").tips({ | |
| 99 | + side:3, | |
| 100 | + msg:'Please enter the template name', | |
| 101 | + bg:'#AE81FF', | |
| 102 | + time:2 | |
| 103 | + }); | |
| 104 | + $("#NAME").focus(); | |
| 105 | + return false; | |
| 106 | + } | |
| 107 | + if($("#SCHOOL_ID").val()==""){ | |
| 108 | + $("#SCHOOL_ID").tips({ | |
| 109 | + side:3, | |
| 110 | + msg:'Please enter the school', | |
| 111 | + bg:'#AE81FF', | |
| 112 | + time:2 | |
| 113 | + }); | |
| 114 | + $("#SCHOOL_ID").focus(); | |
| 115 | + return false; | |
| 116 | + } | |
| 117 | + if($("#SUBJECT_ID").val()==""){ | |
| 118 | + $("#SUBJECT_ID").tips({ | |
| 119 | + side:3, | |
| 120 | + msg:'Please enter the subject', | |
| 121 | + bg:'#AE81FF', | |
| 122 | + time:2 | |
| 123 | + }); | |
| 124 | + $("#SUBJECT_ID").focus(); | |
| 125 | + return false; | |
| 126 | + } | |
| 127 | + if($("#GRADE_ID").val()==""){ | |
| 128 | + $("#GRADE_ID").tips({ | |
| 129 | + side:3, | |
| 130 | + msg:'Please enter the grade', | |
| 131 | + bg:'#AE81FF', | |
| 132 | + time:2 | |
| 133 | + }); | |
| 134 | + $("#GRADE_ID").focus(); | |
| 135 | + return false; | |
| 136 | + } | |
| 137 | + if($("#USER_ID").val()==""){ | |
| 138 | + $("#USER_ID").tips({ | |
| 139 | + side:3, | |
| 140 | + msg:'Please enter the user ID', | |
| 141 | + bg:'#AE81FF', | |
| 142 | + time:2 | |
| 143 | + }); | |
| 144 | + $("#USER_ID").focus(); | |
| 145 | + return false; | |
| 146 | + } | |
| 147 | + if($("#PAGE_SCORE").val()==""){ | |
| 148 | + $("#PAGE_SCORE").tips({ | |
| 149 | + side:3, | |
| 150 | + msg:'Please enter the total score', | |
| 151 | + bg:'#AE81FF', | |
| 152 | + time:2 | |
| 153 | + }); | |
| 154 | + $("#PAGE_SCORE").focus(); | |
| 155 | + return false; | |
| 156 | + } | |
| 157 | + if($("#CONTENT").val()==""){ | |
| 158 | + $("#CONTENT").tips({ | |
| 159 | + side:3, | |
| 160 | + msg:'Please enter the template content', | |
| 161 | + bg:'#AE81FF', | |
| 162 | + time:2 | |
| 163 | + }); | |
| 164 | + $("#CONTENT").focus(); | |
| 165 | + return false; | |
| 166 | + } | |
| 167 | + $("#Form").submit(); | |
| 168 | + $("#zhongxin").hide(); | |
| 169 | + $("#zhongxin2").show(); | |
| 170 | + } | |
| 171 | + | |
| 172 | + $(function() { | |
| 173 | + //日期框 | |
| 174 | + $('.date-picker').datepicker({autoclose: true,todayHighlight: true}); | |
| 175 | + }); | |
| 176 | + </script> | |
| 177 | +</body> | |
| 178 | +</html> | |
| 0 | 179 | \ No newline at end of file | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/pagetemplate/en_pagetemplate_list2.jsp
0 → 100644
| 1 | +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
| 2 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
| 3 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 4 | +<%@ taglib prefix="myelfun" uri="/WEB-INF/tld/elfun.tld"%> | |
| 5 | +<% | |
| 6 | + String path = request.getContextPath(); | |
| 7 | + String basePath = request.getScheme() + "://" | |
| 8 | + + request.getServerName() + ":" + request.getServerPort() | |
| 9 | + + path + "/"; | |
| 10 | +%> | |
| 11 | +<!DOCTYPE html> | |
| 12 | +<html lang="en"> | |
| 13 | +<head> | |
| 14 | +<base href="<%=basePath%>"> | |
| 15 | +<!-- 下拉框 --> | |
| 16 | +<link rel="stylesheet" href="static/ace/css/chosen.css" /> | |
| 17 | +<link | |
| 18 | + href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" | |
| 19 | + rel="stylesheet"> | |
| 20 | +<link href="static/css/teach.css" rel="stylesheet"> | |
| 21 | +<!-- 日期框 --> | |
| 22 | +<link rel="stylesheet" href="static/ace/css/datepicker.css" /> | |
| 23 | +</head> | |
| 24 | +<body class="no-skin"> | |
| 25 | + | |
| 26 | + <form action="pagetemplate/listcs.do" method="post" name="Form" id="Form"> | |
| 27 | + <input type="hidden" name="SCHOOL_ID" id="SCHOOL_ID" value="${pd.SCHOOL_ID}"/> | |
| 28 | + <div class="head_box"> | |
| 29 | + <div class="box_header"> | |
| 30 | + <div class="head_box_l"> | |
| 31 | + <p> | |
| 32 | + <span class="right_b"></span>Template management | |
| 33 | + </p> | |
| 34 | + </div> | |
| 35 | + <div class="head_box_r"></div> | |
| 36 | + <div class="clear"></div> | |
| 37 | + </div> | |
| 38 | + | |
| 39 | + <div style="padding:0 5%;background:#fff;"> | |
| 40 | + <table class="table table-striped"> | |
| 41 | + <col style="width: 10%" /> | |
| 42 | + <col style="width: 15%" /> | |
| 43 | + <col style="width: 12.5%" /> | |
| 44 | + <col style="width: 12.5%" /> | |
| 45 | + <col style="width: 12.5%" /> | |
| 46 | + <col style="width: 12.5%" /> | |
| 47 | + <thead> | |
| 48 | + <tr> | |
| 49 | + <th><input type="checkbox" name='ids' id="ids" />Number</th> | |
| 50 | + <th class="center">Template name</th> | |
| 51 | + <th class="center">Subject</th> | |
| 52 | + <th class="center">Grade</th> | |
| 53 | + <th class="center">Total score</th> | |
| 54 | + <th class="center">operation</th> | |
| 55 | + </tr> | |
| 56 | + </thead> | |
| 57 | + </table> | |
| 58 | + </div> | |
| 59 | + </div> | |
| 60 | + <div class="table_box" > | |
| 61 | + <table class="table table-striped"> | |
| 62 | + <col style="width: 10%" /> | |
| 63 | + <col style="width: 15%" /> | |
| 64 | + <col style="width: 12.5%" /> | |
| 65 | + <col style="width: 12.5%" /> | |
| 66 | + <col style="width: 12.5%" /> | |
| 67 | + <col style="width: 12.5%" /> | |
| 68 | + | |
| 69 | + <tbody> | |
| 70 | + <!-- 开始循环 --> | |
| 71 | + <c:choose> | |
| 72 | + <c:when test="${not empty varList}"> | |
| 73 | + | |
| 74 | + <c:forEach items="${varList}" var="var" varStatus="vs"> | |
| 75 | + <tr> | |
| 76 | + <td><input type="checkbox" name='ids' id="ids" value="${var.PAGETEMPLATE_ID}" />${vs.index+1}</td> | |
| 77 | + <td class='center'>${var.NAME}</td> | |
| 78 | + <td class='center'>${myelfun:findSubjectCName(var.SUBJECT_ID)}</td> | |
| 79 | + <td class='center'>${myelfun:findGradeName(var.GRADE_ID)}</td> | |
| 80 | + <td class='center'>${var.PAGE_SCORE}</td> | |
| 81 | + <td><a hidden onclick="edit('${var.PAGETEMPLATE_ID}');" style="margin-right:10px;"><img src="static/images/eidtor.png" /></a> | |
| 82 | + <a onclick="del('${var.PAGETEMPLATE_ID}');"><img src="static/images/remove.png" /></a></td> | |
| 83 | + </tr> | |
| 84 | + | |
| 85 | + </c:forEach> | |
| 86 | + | |
| 87 | + | |
| 88 | + </c:when> | |
| 89 | + <c:otherwise> | |
| 90 | + <tr class="main_info"> | |
| 91 | + <td colspan="100" class="center" >There is no data</td> | |
| 92 | + </tr> | |
| 93 | + </c:otherwise> | |
| 94 | + </c:choose> | |
| 95 | + </tbody> | |
| 96 | + </table> | |
| 97 | + <div class="footer" style="width:auto"> | |
| 98 | + <div class="creat"> | |
| 99 | + <input type="button" onclick="$('.title_time').modal('show');" value="Add the Template" /> | |
| 100 | + </div> | |
| 101 | + <div class="removeAll"> | |
| 102 | + <input type="button" onclick="del('')" value="Batch delete" /> | |
| 103 | + </div> | |
| 104 | + <div class="page_box"> | |
| 105 | + | |
| 106 | + <div class="pagination" | |
| 107 | + style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div> | |
| 108 | + </div> | |
| 109 | + </div> | |
| 110 | + </div> | |
| 111 | + </form> | |
| 112 | + <div class="modal fade title_time" tabindex="-1" role="dialog"> | |
| 113 | + <div class="modal-dialog" role="document" style="z-index:1400"> | |
| 114 | + <div class="modal-content"> | |
| 115 | + <div class="modal-header"> | |
| 116 | + <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> | |
| 117 | + <h4 class="modal-title">Add the Template</h4> | |
| 118 | + </div> | |
| 119 | + <div class="modal-body"> | |
| 120 | + <div class="form-group"> | |
| 121 | + <label for="template_name" class="col-sm-4 control-label">Template name</label> | |
| 122 | + <div class="col-sm-6"> | |
| 123 | + <input type="text" class="form-control" id="template_name" placeholder="Enter the Template name" maxlength="100" minlength="1"> | |
| 124 | + </div> | |
| 125 | + <div class="clearfix"></div> | |
| 126 | + </div> | |
| 127 | + <div class="form-group"> | |
| 128 | + <label for="subject_id" class="col-sm-4 control-label">Subject</label> | |
| 129 | + <div class="col-sm-6"> | |
| 130 | + <select class="chosen-select form-control" name="subject_id" id="subject_id" data-placeholder="Enter the subject"> | |
| 131 | + <c:forEach items="${subjectList}" var="var" varStatus="vs"> | |
| 132 | + <option value="${var.ID}">${var.CNAME}</option> | |
| 133 | + </c:forEach> | |
| 134 | + </select> | |
| 135 | + </div> | |
| 136 | + <div class="clearfix"></div> | |
| 137 | + </div> | |
| 138 | + <div class="form-group"> | |
| 139 | + <label for="grade_id" class="col-sm-4 control-label">Grade</label> | |
| 140 | + <div class="col-sm-6"> | |
| 141 | + <select class="chosen-select form-control" name="grade_id" id="grade_id" data-placeholder="Enter the grade"> | |
| 142 | + <c:forEach items="${gradeList}" var="var" varStatus="vs"> | |
| 143 | + <option value="${var.ID}">${var.NAME}</option> | |
| 144 | + </c:forEach> | |
| 145 | + </select> | |
| 146 | + </div> | |
| 147 | + <div class="clearfix"></div> | |
| 148 | + </div> | |
| 149 | + </div> | |
| 150 | + <div class="modal-footer"> | |
| 151 | + <button type="button" class="btn btn-primary" id="time_submit">confirm</button> | |
| 152 | + <button type="button" class="btn btn-primary" data-dismiss="modal">Cancel</button> | |
| 153 | + </div> | |
| 154 | + </div><!-- /.modal-content --> | |
| 155 | + </div><!-- /.modal-dialog --> | |
| 156 | + </div><!-- /.modal --> | |
| 157 | + | |
| 158 | + <!-- basic scripts --> | |
| 159 | + <!-- 页面底部js¨ --> | |
| 160 | + <%@ include file="../../system/index/foot.jsp"%> | |
| 161 | + <!-- 删除时确认窗口 --> | |
| 162 | + <script src="static/ace/js/bootbox.js"></script> | |
| 163 | + <!-- ace scripts --> | |
| 164 | + <script src="static/ace/js/ace/ace.js"></script> | |
| 165 | + <!-- 下拉框 --> | |
| 166 | + <script src="static/ace/js/chosen.jquery.js"></script> | |
| 167 | + <!-- 日期框 --> | |
| 168 | + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script> | |
| 169 | + <!--提示框--> | |
| 170 | + <script type="text/javascript" src="static/js/jquery.tips.js"></script> | |
| 171 | + <script type="text/javascript"> | |
| 172 | + | |
| 173 | + $(document).ready(function() { | |
| 174 | + window.top.loading.remove(); | |
| 175 | + }); | |
| 176 | + | |
| 177 | + $('#ids').on('click', function(){ | |
| 178 | + var th_checked = $("#ids").prop('checked');//checkbox inside "TH" table header | |
| 179 | + | |
| 180 | + $(".table_box .table").find('tbody > tr').each(function(){ | |
| 181 | + var row = this; | |
| 182 | + if(th_checked) $(row).find('input[type=checkbox]').eq(0).prop('checked', true); | |
| 183 | + else $(row).find('input[type=checkbox]').eq(0).prop('checked', false); | |
| 184 | + }); | |
| 185 | + }); | |
| 186 | + | |
| 187 | + $("#time_submit").click(function(){ | |
| 188 | + var name = $("#template_name").val(); | |
| 189 | + var subject_id = $("#subject_id").val(); | |
| 190 | + var grade_id = $("#grade_id").val(); | |
| 191 | + | |
| 192 | + if(name != null&& name != ''){ | |
| 193 | + self.location.href = "<%=basePath%>" + "pagetemplate/npaper.do?school_id=${pd.SCHOOL_ID}&subject_id=" + subject_id + "&grade_id=" + grade_id + "&name=" + name; | |
| 194 | + $(".title_time").modal("hide"); | |
| 195 | + }else{ | |
| 196 | + alert("Please enter the template name"); | |
| 197 | + } | |
| 198 | + | |
| 199 | + }); | |
| 200 | + | |
| 201 | + //复选框全选控制 | |
| 202 | + var active_class = 'active'; | |
| 203 | + $('#simple-table > thead > tr > th input[type=checkbox]').eq(0).on('click', function(){ | |
| 204 | + var th_checked = this.checked;//checkbox inside "TH" table header | |
| 205 | + $(this).closest('table').find('tbody > tr').each(function(){ | |
| 206 | + var row = this; | |
| 207 | + if(th_checked) $(row).addClass(active_class).find('input[type=checkbox]').eq(0).prop('checked', true); | |
| 208 | + else $(row).removeClass(active_class).find('input[type=checkbox]').eq(0).prop('checked', false); | |
| 209 | + }); | |
| 210 | + }); | |
| 211 | + | |
| 212 | + | |
| 213 | + //新增 | |
| 214 | + function add(){ | |
| 215 | + top.jzts(); | |
| 216 | + var diag = new top.Dialog(); | |
| 217 | + diag.Drag=true; | |
| 218 | + diag.Title ="Add"; | |
| 219 | + diag.URL = '<%=basePath%>pagetemplate/goAdd.do'; | |
| 220 | + diag.Width = 450; | |
| 221 | + diag.Height = 355; | |
| 222 | + diag.Modal = true; //有无遮罩窗口 | |
| 223 | + diag. ShowMaxButton = true; //最大化按钮 | |
| 224 | + diag.ShowMinButton = true; //最小化按钮 | |
| 225 | + diag.CancelEvent = function(){ //关闭事件 | |
| 226 | + if(diag.innerFrame.contentWindow.document.getElementById('zhongxin').style.display == 'none'){ | |
| 227 | + if('${page.currentPage}' == '0'){ | |
| 228 | + tosearch(); | |
| 229 | + }else{ | |
| 230 | + tosearch(); | |
| 231 | + } | |
| 232 | + } | |
| 233 | + diag.close(); | |
| 234 | + }; | |
| 235 | + diag.show(); | |
| 236 | + } | |
| 237 | + function tosearch(){ | |
| 238 | + $("#Form").submit(); | |
| 239 | + } | |
| 240 | + //删除 | |
| 241 | + function del(Id){ | |
| 242 | + window.top.remove.init({"title":"Remove","func":function(success){ | |
| 243 | + if(success){ | |
| 244 | + var str = Id; | |
| 245 | + if(str == ''){ | |
| 246 | + for(var i=0;i < document.getElementsByName('ids').length;i++){ | |
| 247 | + if(document.getElementsByName('ids')[i].checked){ | |
| 248 | + if(str=='') str += document.getElementsByName('ids')[i].value; | |
| 249 | + else str += ',' + document.getElementsByName('ids')[i].value; | |
| 250 | + } | |
| 251 | + } | |
| 252 | + } | |
| 253 | + if(str==''){ | |
| 254 | + | |
| 255 | + }else{ | |
| 256 | + $.ajax({ | |
| 257 | + type: "POST", | |
| 258 | + url: '<%=basePath%>pagetemplate/deleteAll.do?tm='+new Date().getTime(), | |
| 259 | + data: {DATA_IDS:str}, | |
| 260 | + dataType:'json', | |
| 261 | + //beforeSend: validateData, | |
| 262 | + cache: false, | |
| 263 | + success: function(data){ | |
| 264 | + tosearch(); | |
| 265 | + } | |
| 266 | + }); | |
| 267 | + } | |
| 268 | + } | |
| 269 | + else{ | |
| 270 | + console.log("false"); | |
| 271 | + } | |
| 272 | + }}); | |
| 273 | + window.top.remove.show(); | |
| 274 | + } | |
| 275 | + | |
| 276 | + //修改 | |
| 277 | + function edit(Id){ | |
| 278 | + top.jzts(); | |
| 279 | + var diag = new top.Dialog(); | |
| 280 | + diag.Drag=true; | |
| 281 | + diag.Title ="Edit"; | |
| 282 | + diag.URL = '<%=basePath%>pagetemplate/goEdit.do?PAGETEMPLATE_ID='+Id; | |
| 283 | + diag.Width = 450; | |
| 284 | + diag.Height = 355; | |
| 285 | + diag.Modal = true; //有无遮罩窗口 | |
| 286 | + diag. ShowMaxButton = true; //最大化按钮 | |
| 287 | + diag.ShowMinButton = true; //最小化按钮 | |
| 288 | + diag.CancelEvent = function(){ //关闭事件 | |
| 289 | + if(diag.innerFrame.contentWindow.document.getElementById('zhongxin').style.display == 'none'){ | |
| 290 | + tosearch(); | |
| 291 | + } | |
| 292 | + diag.close(); | |
| 293 | + }; | |
| 294 | + diag.show(); | |
| 295 | + } | |
| 296 | + | |
| 297 | + //批量操作 | |
| 298 | + function makeAll(msg){ | |
| 299 | + bootbox.confirm(msg, function(result) { | |
| 300 | + if(result) { | |
| 301 | + var str = ''; | |
| 302 | + for(var i=0;i < document.getElementsByName('ids').length;i++){ | |
| 303 | + if(document.getElementsByName('ids')[i].checked){ | |
| 304 | + if(str=='') str += document.getElementsByName('ids')[i].value; | |
| 305 | + else str += ',' + document.getElementsByName('ids')[i].value; | |
| 306 | + } | |
| 307 | + } | |
| 308 | + if(str==''){ | |
| 309 | + bootbox.dialog({ | |
| 310 | + message: "<span class='bigger-110'>You did not select anything!</span>", | |
| 311 | + buttons: | |
| 312 | + { "button":{ "label":"Confirm", "className":"btn-sm btn-success"}} | |
| 313 | + }); | |
| 314 | + $("#zcheckbox").tips({ | |
| 315 | + side:1, | |
| 316 | + msg:'点这里全选', | |
| 317 | + bg:'#AE81FF', | |
| 318 | + time:8 | |
| 319 | + }); | |
| 320 | + return; | |
| 321 | + }else{ | |
| 322 | + if(msg == 'Are you sure to delete the selected data?'){ | |
| 323 | + top.jzts(); | |
| 324 | + $.ajax({ | |
| 325 | + type: "POST", | |
| 326 | + url: '<%=basePath%>pagetemplate/deleteAll.do?tm='+new Date().getTime(), | |
| 327 | + data: {DATA_IDS:str}, | |
| 328 | + dataType:'json', | |
| 329 | + //beforeSend: validateData, | |
| 330 | + cache: false, | |
| 331 | + success: function(data){ | |
| 332 | + $.each(data.list, function(i, list){ | |
| 333 | + tosearch(); | |
| 334 | + }); | |
| 335 | + } | |
| 336 | + }); | |
| 337 | + } | |
| 338 | + } | |
| 339 | + } | |
| 340 | + }); | |
| 341 | + }; | |
| 342 | + | |
| 343 | + //导出excel | |
| 344 | + function toExcel(){ | |
| 345 | + window.location.href='<%=basePath%>pagetemplate/excel.do'; | |
| 346 | + } | |
| 347 | + | |
| 348 | + | |
| 349 | + </script> | |
| 350 | + | |
| 351 | + | |
| 352 | +</body> | |
| 353 | +</html> | |
| 0 | 354 | \ No newline at end of file | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/school/en_school_edit2.jsp
0 → 100644
| 1 | +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
| 2 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
| 3 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 4 | +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> | |
| 5 | +<% | |
| 6 | + String path = request.getContextPath(); | |
| 7 | + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; | |
| 8 | +%> | |
| 9 | +<!DOCTYPE html> | |
| 10 | +<html lang="en"> | |
| 11 | +<head> | |
| 12 | +<base href="<%=basePath%>"> | |
| 13 | +<!-- 下拉框 --> | |
| 14 | +<link rel="stylesheet" href="static/ace/css/chosen.css" /> | |
| 15 | +<link | |
| 16 | + href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" | |
| 17 | + rel="stylesheet"> | |
| 18 | +<link href="static/css/teach.css" rel="stylesheet"> | |
| 19 | +<!-- 日期框 --> | |
| 20 | +<link rel="stylesheet" href="static/ace/css/datepicker.css" /> | |
| 21 | +<style> | |
| 22 | + .edit_btn{ | |
| 23 | + width:20%; | |
| 24 | + margin:0 auto; | |
| 25 | + } | |
| 26 | + .edit_btn .edit_btn_sty{ | |
| 27 | + outline-style: none; | |
| 28 | + color: rgb(255, 255, 255); | |
| 29 | + margin-right: 20px; | |
| 30 | + margin-top:10%; | |
| 31 | + font-size: 16px; | |
| 32 | + background: #f29c9f; | |
| 33 | + text-decoration: none; | |
| 34 | + border-width: initial; | |
| 35 | + border-style: none; | |
| 36 | + border-color: initial; | |
| 37 | + border-image: initial; | |
| 38 | + padding: 10px 15px; | |
| 39 | + width:100%; | |
| 40 | + } | |
| 41 | + .edit_btn .save_btn_sty{ | |
| 42 | + outline-style: none; | |
| 43 | + color: rgb(255, 255, 255); | |
| 44 | + margin-right: 20px; | |
| 45 | + margin-top:10%; | |
| 46 | + font-size: 16px; | |
| 47 | + background: rgb(59, 194, 214); | |
| 48 | + text-decoration: none; | |
| 49 | + border-width: initial; | |
| 50 | + border-style: none; | |
| 51 | + border-color: initial; | |
| 52 | + border-image: initial; | |
| 53 | + padding: 10px 15px; | |
| 54 | + width:100%; | |
| 55 | + } | |
| 56 | + .school_info .col-sm-4{ | |
| 57 | + width:100px; | |
| 58 | + padding-right:0; | |
| 59 | + line-height:34px; | |
| 60 | + font-size:16px; | |
| 61 | + } | |
| 62 | +</style> | |
| 63 | +</head> | |
| 64 | +<body class="no-skin"> | |
| 65 | +<!-- /section:basics/navbar.layout --> | |
| 66 | + <form action="school/${msg }.do" name="Form" id="Form" method="post"> | |
| 67 | + <input type="hidden" name="ID" id="ID" value="${pd.ID}"/> | |
| 68 | + <div class="head_box" style="position:relative;"> | |
| 69 | + <div class="box_header"> | |
| 70 | + <div class="head_box_l"> | |
| 71 | + <p> | |
| 72 | + <span class="right_b"></span>School Management | |
| 73 | + </p> | |
| 74 | + </div> | |
| 75 | + <div class="head_box_r"> | |
| 76 | + | |
| 77 | + </div> | |
| 78 | + <div class="clear"></div> | |
| 79 | + </div> | |
| 80 | + </div> | |
| 81 | + | |
| 82 | + <div class="col-md-6 school_info" style="margin-left:25%;margin-top:5%;"> | |
| 83 | + <div class="form-group"> | |
| 84 | + <label for="enter_title" class="col-sm-4 control-label">School name:</label> | |
| 85 | + <div class="col-sm-8"> | |
| 86 | + <input type="text" class="form-control" disabled placeholder="Enter the School name" maxlength="100" minlength="1" name="NAME" id="NAME" value="${pd.NAME}"> | |
| 87 | + </div> | |
| 88 | + <div class="clearfix"></div> | |
| 89 | + </div> | |
| 90 | + | |
| 91 | + <div class="form-group"> | |
| 92 | + <label for="enter_time" class="col-sm-4 control-label">School address:</label> | |
| 93 | + <div class="col-sm-8"> | |
| 94 | + <input type="text" class="form-control" disabled placeholder="Enter the school address" name="ADDRESS" id="ADDRESS" value="${pd.ADDRESS}" maxlength="255" > | |
| 95 | + </div> | |
| 96 | + <div class="clearfix"></div> | |
| 97 | + </div> | |
| 98 | + <div class="form-group"> | |
| 99 | + <label for="enter_time" class="col-sm-4 control-label">Headmaster:</label> | |
| 100 | + <div class="col-sm-8"> | |
| 101 | + <input type="text" class="form-control" disabled placeholder="Enter the Headmaster" name="PRESIDENT" id="PRESIDENT" value="${pd.PRESIDENT}" maxlength="255" > | |
| 102 | + </div> | |
| 103 | + <div class="clearfix"></div> | |
| 104 | + </div> | |
| 105 | + <div class="form-group"> | |
| 106 | + <label for="enter_time" class="col-sm-4 control-label">Contact number:</label> | |
| 107 | + <div class="col-sm-8"> | |
| 108 | + <input type="text" class="form-control" disabled placeholder="Enter the Contact number" name="PHONE" id="PHONE" value="${pd.PHONE}" maxlength="255" > | |
| 109 | + </div> | |
| 110 | + <div class="clearfix"></div> | |
| 111 | + </div> | |
| 112 | + <div class="form-group"> | |
| 113 | + <label for="enter_time" class="col-sm-4 control-label">Remarks:</label> | |
| 114 | + <div class="col-sm-8"> | |
| 115 | + <input type="text" class="form-control" disabled placeholder="Enter the Remarks" name="REMARK" id="REMARK" value="${pd.REMARK}" maxlength="255" > | |
| 116 | + </div> | |
| 117 | + <div class="clearfix"></div> | |
| 118 | + </div> | |
| 119 | + | |
| 120 | + </div> | |
| 121 | + <div class="clearfix"></div> | |
| 122 | + | |
| 123 | + <div class="edit_btn"> | |
| 124 | + <input type="button" class="edit_btn_sty" data-state="edit" id="btn" value="Revise" /> | |
| 125 | + </div> | |
| 126 | + </form> | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + <!-- 页面底部js¨ --> | |
| 131 | + <%@ include file="../../system/index/foot.jsp"%> | |
| 132 | + <!-- 下拉框 --> | |
| 133 | + <script src="static/ace/js/chosen.jquery.js"></script> | |
| 134 | + <!-- 日期框 --> | |
| 135 | + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script> | |
| 136 | + <!--提示框--> | |
| 137 | + <script type="text/javascript" src="static/js/jquery.tips.js"></script> | |
| 138 | + <script type="text/javascript"> | |
| 139 | + $(document).ready(function(){ | |
| 140 | + window.top.loading.remove(); | |
| 141 | + }); | |
| 142 | + | |
| 143 | + $("#btn").click(function(){ | |
| 144 | + var state=$(this).attr("data-state"); | |
| 145 | + if(state=="edit"){ | |
| 146 | + $(".form-control").removeAttr("disabled"); | |
| 147 | + $("#btn").val("Save"); | |
| 148 | + $(this).attr({"class":"save_btn_sty","data-state":"save"}); | |
| 149 | + }else if(state=="save"){ | |
| 150 | + $("#Form").submit(); | |
| 151 | + $(".form-control").attr("disabled","disabled"); | |
| 152 | + $("#btn").val("Revise"); | |
| 153 | + $(this).attr({"class":"edit_btn_sty","data-state":"edit"}); | |
| 154 | + } | |
| 155 | + }) | |
| 156 | + | |
| 157 | + | |
| 158 | + </script> | |
| 159 | +</body> | |
| 160 | +</html> | |
| 0 | 161 | \ No newline at end of file | ... | ... |
src/com/fh/controller/sunvote/grade/GradeController.java
| ... | ... | @@ -150,9 +150,13 @@ public class GradeController extends BaseController { |
| 150 | 150 | pd.put("keywords", keywords.trim()); |
| 151 | 151 | } |
| 152 | 152 | page.setPd(pd); |
| 153 | - | |
| 153 | + page.setLangIsChina(isChineseLanguageClient()); | |
| 154 | 154 | List<PageData> varList = gradeService.datalistPageInSchool(page); //列出Grade列表 |
| 155 | - mv.setViewName("sunvote/grade/grade_list2"); | |
| 155 | + if(isChineseLanguageClient()){ | |
| 156 | + mv.setViewName("sunvote/grade/grade_list2"); | |
| 157 | + }else{ | |
| 158 | + mv.setViewName("sunvote/grade/en_grade_list2"); | |
| 159 | + } | |
| 156 | 160 | mv.addObject("varList", varList); |
| 157 | 161 | mv.addObject("pd", pd); |
| 158 | 162 | mv.addObject("QX",Jurisdiction.getHC()); //按钮权限 |
| ... | ... | @@ -184,7 +188,11 @@ public class GradeController extends BaseController { |
| 184 | 188 | pd = this.getPageData(); |
| 185 | 189 | List<PageData> list = gradeService.listAllNot(pd); |
| 186 | 190 | mv.addObject("gradeList", list); |
| 187 | - mv.setViewName("sunvote/grade/grade_edit2"); | |
| 191 | + if(isChineseLanguageClient()){ | |
| 192 | + mv.setViewName("sunvote/grade/grade_edit2"); | |
| 193 | + }else{ | |
| 194 | + mv.setViewName("sunvote/grade/en_grade_edit2"); | |
| 195 | + } | |
| 188 | 196 | mv.addObject("msg", "save2"); |
| 189 | 197 | mv.addObject("pd", pd); |
| 190 | 198 | return mv; | ... | ... |
src/com/fh/controller/sunvote/headmaster/HeadmasterController.java
| ... | ... | @@ -161,8 +161,14 @@ public class HeadmasterController extends BaseController { |
| 161 | 161 | pd.put("keywords", keywords.trim()); |
| 162 | 162 | } |
| 163 | 163 | page.setPd(pd); |
| 164 | + page.setLangIsChina(isChineseLanguageClient()); | |
| 164 | 165 | List<PageData> varList = headmasterService.listClass(page); //列出Headmaster列表 |
| 165 | - mv.setViewName("sunvote/headmaster/headmaster_list2"); | |
| 166 | + if(isChineseLanguageClient()){ | |
| 167 | + mv.setViewName("sunvote/headmaster/headmaster_list2"); | |
| 168 | + }else{ | |
| 169 | + mv.setViewName("sunvote/headmaster/en_headmaster_list2"); | |
| 170 | + } | |
| 171 | + | |
| 166 | 172 | mv.addObject("varList", varList); |
| 167 | 173 | mv.addObject("pd", pd); |
| 168 | 174 | return mv; |
| ... | ... | @@ -192,7 +198,11 @@ public class HeadmasterController extends BaseController { |
| 192 | 198 | ModelAndView mv = this.getModelAndView(); |
| 193 | 199 | PageData pd = new PageData(); |
| 194 | 200 | pd = this.getPageData(); |
| 195 | - mv.setViewName("sunvote/headmaster/headmaster_edit2"); | |
| 201 | + if(isChineseLanguageClient()){ | |
| 202 | + mv.setViewName("sunvote/headmaster/headmaster_edit2"); | |
| 203 | + }else{ | |
| 204 | + mv.setViewName("sunvote/headmaster/en_headmaster_edit2"); | |
| 205 | + } | |
| 196 | 206 | List<PageData> classes = headmasterService.listNoHeaderClass(pd); |
| 197 | 207 | mv.addObject("classes",classes); |
| 198 | 208 | mv.addObject("msg", "save2"); |
| ... | ... | @@ -232,7 +242,11 @@ public class HeadmasterController extends BaseController { |
| 232 | 242 | List<PageData> classes = new ArrayList(); |
| 233 | 243 | classes.add(classPageData); |
| 234 | 244 | mv.addObject("classes",classes); |
| 235 | - mv.setViewName("sunvote/headmaster/headmaster_edit2"); | |
| 245 | + if(isChineseLanguageClient()){ | |
| 246 | + mv.setViewName("sunvote/headmaster/headmaster_edit2"); | |
| 247 | + }else{ | |
| 248 | + mv.setViewName("sunvote/headmaster/en_headmaster_edit2"); | |
| 249 | + } | |
| 236 | 250 | mv.addObject("msg", "edit2"); |
| 237 | 251 | mv.addObject("pd", pd); |
| 238 | 252 | return mv; | ... | ... |
src/com/fh/controller/sunvote/homework/HomeworkController.java
| ... | ... | @@ -141,8 +141,14 @@ public class HomeworkController extends BaseController { |
| 141 | 141 | pd.put("keywords", keywords.trim()); |
| 142 | 142 | } |
| 143 | 143 | page.setPd(pd); |
| 144 | + page.setLangIsChina(isChineseLanguageClient()); | |
| 144 | 145 | List<PageData> varList = homeworkService.list(page); // 列出Homework列表 |
| 145 | - mv.setViewName("sunvote/homework/homework_list"); | |
| 146 | + if(isChineseLanguageClient()){ | |
| 147 | + mv.setViewName("sunvote/homework/homework_list"); | |
| 148 | + }else{ | |
| 149 | + mv.setViewName("sunvote/homework/en_homework_list"); | |
| 150 | + } | |
| 151 | + | |
| 146 | 152 | mv.addObject("varList", varList); |
| 147 | 153 | mv.addObject("pd", pd); |
| 148 | 154 | mv.addObject("QX", Jurisdiction.getHC()); // 按钮权限 |
| ... | ... | @@ -180,7 +186,11 @@ public class HomeworkController extends BaseController { |
| 180 | 186 | // 添加科目ID |
| 181 | 187 | pd.put("TEACHER_ID", getTeacherID()); |
| 182 | 188 | pd.put("SUBJECT_ID", homeworkService.querySubjectId(pd)); |
| 183 | - mv.setViewName("sunvote/homework/homework_edit2"); | |
| 189 | + if(isChineseLanguageClient()){ | |
| 190 | + mv.setViewName("sunvote/homework/homework_edit2"); | |
| 191 | + }else{ | |
| 192 | + mv.setViewName("sunvote/homework/en_homework_edit2"); | |
| 193 | + } | |
| 184 | 194 | mv.addObject("msg", "save"); |
| 185 | 195 | mv.addObject("operation", "add"); |
| 186 | 196 | mv.addObject("pd", pd); |
| ... | ... | @@ -219,7 +229,11 @@ public class HomeworkController extends BaseController { |
| 219 | 229 | pd = homeworkService.findById(pd); // 根据ID读取 |
| 220 | 230 | pd.put("QUESTIONS", homeworkproblemService.listProblem(pd)); |
| 221 | 231 | pd.put("TEACHER_ID", getTeacherID()); |
| 222 | - mv.setViewName("sunvote/homework/homework_edit2"); | |
| 232 | + if(isChineseLanguageClient()){ | |
| 233 | + mv.setViewName("sunvote/homework/homework_edit2"); | |
| 234 | + }else{ | |
| 235 | + mv.setViewName("sunvote/homework/en_homework_edit2"); | |
| 236 | + } | |
| 223 | 237 | mv.addObject("msg", "edit"); |
| 224 | 238 | mv.addObject("operation", "edit"); |
| 225 | 239 | mv.addObject("pd", pd); |
| ... | ... | @@ -240,7 +254,11 @@ public class HomeworkController extends BaseController { |
| 240 | 254 | pd = homeworkService.findById(pd); // 根据ID读取 |
| 241 | 255 | pd.put("QUESTIONS", homeworkproblemService.listProblem(pd)); |
| 242 | 256 | pd.put("TEACHER_ID", getTeacherID()); |
| 243 | - mv.setViewName("sunvote/homework/homework_view"); | |
| 257 | + if(isChineseLanguageClient()){ | |
| 258 | + mv.setViewName("sunvote/homework/homework_view"); | |
| 259 | + }else{ | |
| 260 | + mv.setViewName("sunvote/homework/en_homework_view"); | |
| 261 | + } | |
| 244 | 262 | mv.addObject("msg", "edit"); |
| 245 | 263 | mv.addObject("operation", "view"); |
| 246 | 264 | mv.addObject("pd", pd); |
| ... | ... | @@ -394,7 +412,11 @@ public class HomeworkController extends BaseController { |
| 394 | 412 | pd.put("CLASS_ID", ""); |
| 395 | 413 | } |
| 396 | 414 | pd.remove("JSON"); |
| 397 | - mv.setViewName("sunvote/homework/homework_report"); | |
| 415 | + if(isChineseLanguageClient()){ | |
| 416 | + mv.setViewName("sunvote/homework/homework_report"); | |
| 417 | + }else{ | |
| 418 | + mv.setViewName("sunvote/homework/en_homework_report"); | |
| 419 | + } | |
| 398 | 420 | mv.addObject("pd", pd); |
| 399 | 421 | return mv; |
| 400 | 422 | } |
| ... | ... | @@ -434,7 +456,12 @@ public class HomeworkController extends BaseController { |
| 434 | 456 | } |
| 435 | 457 | pd.remove("JSON"); |
| 436 | 458 | pd.put("STUDENT_ID", studentId); |
| 437 | - mv.setViewName("sunvote/homework/homework_student_report"); | |
| 459 | + if(isChineseLanguageClient()){ | |
| 460 | + mv.setViewName("sunvote/homework/homework_student_report"); | |
| 461 | + }else{ | |
| 462 | + mv.setViewName("sunvote/homework/en_homework_student_report"); | |
| 463 | + } | |
| 464 | + | |
| 438 | 465 | mv.addObject("pd", pd); |
| 439 | 466 | Gson gson = new Gson(); |
| 440 | 467 | mv.addObject("data",gson.toJson(pd)); | ... | ... |
src/com/fh/controller/sunvote/pagetemplate/PageTemplateController.java
| ... | ... | @@ -179,8 +179,14 @@ public class PageTemplateController extends BaseController { |
| 179 | 179 | pd.put("keywords", keywords.trim()); |
| 180 | 180 | } |
| 181 | 181 | page.setPd(pd); |
| 182 | + page.setLangIsChina(isChineseLanguageClient()); | |
| 182 | 183 | List<PageData> varList = pagetemplateService.list(page); //列出PageTemplate列表 |
| 183 | - mv.setViewName("sunvote/pagetemplate/pagetemplate_list2"); | |
| 184 | + if(isChineseLanguageClient()){ | |
| 185 | + mv.setViewName("sunvote/pagetemplate/pagetemplate_list2"); | |
| 186 | + }else{ | |
| 187 | + mv.setViewName("sunvote/pagetemplate/en_pagetemplate_list2"); | |
| 188 | + } | |
| 189 | + | |
| 184 | 190 | List<PageData> gradeList = schoolgradesubjectService.listAllGrade(pd); |
| 185 | 191 | List<PageData> subjectList = schoolgradesubjectService.listAllSubject(pd); |
| 186 | 192 | mv.addObject("varList", varList); |
| ... | ... | @@ -201,7 +207,11 @@ public class PageTemplateController extends BaseController { |
| 201 | 207 | ModelAndView mv = this.getModelAndView(); |
| 202 | 208 | PageData pd = new PageData(); |
| 203 | 209 | pd = this.getPageData(); |
| 204 | - mv.setViewName("sunvote/pagetemplate/pagetemplate_edit"); | |
| 210 | + if(isChineseLanguageClient()){ | |
| 211 | + mv.setViewName("sunvote/pagetemplate/pagetemplate_edit"); | |
| 212 | + }else{ | |
| 213 | + mv.setViewName("sunvote/pagetemplate/en_pagetemplate_edit"); | |
| 214 | + } | |
| 205 | 215 | mv.addObject("msg", "save"); |
| 206 | 216 | mv.addObject("pd", pd); |
| 207 | 217 | return mv; |
| ... | ... | @@ -217,7 +227,11 @@ public class PageTemplateController extends BaseController { |
| 217 | 227 | PageData pd = new PageData(); |
| 218 | 228 | pd = this.getPageData(); |
| 219 | 229 | pd = pagetemplateService.findById(pd); //根据ID读取 |
| 220 | - mv.setViewName("sunvote/pagetemplate/pagetemplate_edit"); | |
| 230 | + if(isChineseLanguageClient()){ | |
| 231 | + mv.setViewName("sunvote/pagetemplate/pagetemplate_edit"); | |
| 232 | + }else{ | |
| 233 | + mv.setViewName("sunvote/pagetemplate/en_pagetemplate_edit"); | |
| 234 | + } | |
| 221 | 235 | mv.addObject("msg", "edit"); |
| 222 | 236 | mv.addObject("pd", pd); |
| 223 | 237 | return mv; | ... | ... |
src/com/fh/controller/sunvote/school/SchoolController.java
| ... | ... | @@ -225,7 +225,11 @@ public class SchoolController extends BaseController { |
| 225 | 225 | PageData pd = new PageData(); |
| 226 | 226 | pd = this.getPageData(); |
| 227 | 227 | pd = schoolService.findById(pd); //根据ID读取 |
| 228 | - mv.setViewName("sunvote/school/school_edit2"); | |
| 228 | + if(isChineseLanguageClient()){ | |
| 229 | + mv.setViewName("sunvote/school/school_edit2"); | |
| 230 | + }else{ | |
| 231 | + mv.setViewName("sunvote/school/en_school_edit2"); | |
| 232 | + } | |
| 229 | 233 | mv.addObject("msg", "edit2"); |
| 230 | 234 | mv.addObject("pd", pd); |
| 231 | 235 | return mv; | ... | ... |