Commit 090d8a8b021668632938b533678cbada24a6d75c

Authored by 孙向锦
1 parent f32d4bb6

居然在判断里面添加了逻辑,这代码。。。。写的。。。。

WebRoot/WEB-INF/jsp/sunvote/paper/paper_list2_bak.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 +<%
  5 + String path = request.getContextPath();
  6 + String basePath = request.getScheme() + "://"
  7 + + request.getServerName() + ":" + request.getServerPort()
  8 + + path + "/";
  9 +%>
  10 +<!DOCTYPE html>
  11 +<html lang="en">
  12 +<head>
  13 +<base href="<%=basePath%>">
  14 +<!-- 下拉框 -->
  15 +<!--
  16 +<link rel="stylesheet" href="static/ace/css/chosen.css" />
  17 +<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
  18 +<script type="text/javascript" src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
  19 +<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
  20 + --><!-- jsp文件头和头部 -->
  21 +<%@ include file="../../system/index/top.jsp"%>
  22 +<!-- 日期框 -->
  23 +<link rel="stylesheet" href="static/ace/css/datepicker.css" />
  24 +</head>
  25 +<body class="no-skin">
  26 +
  27 + <!-- /section:basics/navbar.layout -->
  28 + <div class="main-container" id="main-container">
  29 + <!-- /section:basics/sidebar -->
  30 + <div class="main-content">
  31 + <div class="main-content-inner">
  32 + <div class="page-content">
  33 + <div class="row">
  34 + <div class="col-xs-12">
  35 +
  36 + <!-- 检索 -->
  37 + <form action="paper/list2.do" method="post" name="Form" id="Form">
  38 + <table style="margin-top:5px;">
  39 + <tr>
  40 + <%-- <td>
  41 + <div class="nav-search">
  42 + <span class="input-icon">
  43 + <input type="text" placeholder="这里输入关键词" class="nav-search-input" id="nav-search-input" autocomplete="off" name="keywords" value="${pd.keywords }" placeholder="这里输入关键词"/>
  44 + <i class="ace-icon fa fa-search nav-search-icon"></i>
  45 + </span>
  46 + </div>
  47 + </td> --%>
  48 + <td style="padding-left:2px;"><input class="span10 date-picker" name="lastStart" id="lastStart" value="" type="text" data-date-format="yyyy-mm-dd" readonly="readonly" style="width:88px;" placeholder="开始日期" title="开始日期"/></td>
  49 + <td style="padding-left:2px;"><input class="span10 date-picker" name="lastEnd" name="lastEnd" value="" type="text" data-date-format="yyyy-mm-dd" readonly="readonly" style="width:88px;" placeholder="结束日期" title="结束日期"/></td>
  50 + <td style="vertical-align:top;padding-left:2px"><a class="btn btn-light btn-xs" onclick="tosearch();" title="检索"><i id="nav-search-icon" class="ace-icon fa fa-search bigger-110 nav-search-icon blue"></i></a></td>
  51 + <c:if test="${QX.cha == 1 }">
  52 + </c:if>
  53 + <%-- <c:if test="${QX.toExcel == 1 }"><td style="vertical-align:top;padding-left:2px;"><a class="btn btn-light btn-xs" onclick="toExcel();" title="导出到EXCEL"><i id="nav-search-icon" class="ace-icon fa fa-download bigger-110 nav-search-icon blue"></i></a></td></c:if>
  54 + --%> </tr>
  55 + </table>
  56 + <!-- 检索 -->
  57 +
  58 + <table id="simple-table" class="table table-striped table-bordered table-hover" style="margin-top:5px;">
  59 + <thead>
  60 + <tr>
  61 + <th class="center" style="width:35px;">
  62 + <label class="pos-rel"><input type="checkbox" class="ace" id="zcheckbox" /><span class="lbl"></span></label>
  63 + </th>
  64 + <th class="center" style="width:50px;">序号</th>
  65 + <th class="center">测验标题</th>
  66 + <th class="center">创建时间</th>
  67 + <th class="center">建议考试时长</th>
  68 + <th class="center">总分</th>
  69 + <th class="center">操作</th>
  70 + </tr>
  71 + </thead>
  72 +
  73 + <tbody>
  74 + <!-- 开始循环 -->
  75 + <c:choose>
  76 + <c:when test="${not empty varList}">
  77 + <c:forEach items="${varList}" var="var" varStatus="vs">
  78 + <tr>
  79 + <td class='center'>
  80 + <label class="pos-rel"><input type='checkbox' name='ids' value="${var.PAPER_ID}" class="ace" /><span class="lbl"></span></label>
  81 + </td>
  82 + <td class='center' style="width: 30px;">${vs.index+1}</td>
  83 + <td class='center'><a target="_blank" href="<%=basePath%>paper/iteminfo.do?paper_id=${var.PAPER_ID}">${var.TITLE}</a></td>
  84 + <td class='center'>${var.CREATE_DATE}</td>
  85 + <td class='center'>${var.EXAM_TIME}</td>
  86 + <td class='center'>${var.SCORE}</td>
  87 + <td class="center">
  88 + <div >
  89 + <a class="btn btn-xs btn-danger" onclick="del('${var.PAPER_ID}');">
  90 + <i class="ace-icon fa fa-trash-o bigger-120" title="删除"></i>
  91 + </a>
  92 + </div>
  93 + </td>
  94 + </tr>
  95 +
  96 + </c:forEach>
  97 + </c:when>
  98 + <c:otherwise>
  99 + <tr class="main_info">
  100 + <td colspan="100" class="center" >没有相关数据</td>
  101 + </tr>
  102 + </c:otherwise>
  103 + </c:choose>
  104 + </tbody>
  105 + </table>
  106 + <div class="page-header position-relative">
  107 + <table style="width:100%;">
  108 + <tr>
  109 + <td style="vertical-align:top;">
  110 + <a class="btn btn-mini btn-success" onclick="parent.$('.title_time').modal('show');">新建试卷</a>
  111 + <a class="btn btn-mini btn-danger" onclick="makeAll('确定要删除选中的数据吗?');" title="批量删除" ><i class='ace-icon fa fa-trash-o bigger-120'></i></a>
  112 + </td>
  113 + <td style="vertical-align:top;"><div class="pagination" style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div></td>
  114 + </tr>
  115 + </table>
  116 + </div>
  117 + </form>
  118 +
  119 + </div>
  120 + <!-- /.col -->
  121 + </div>
  122 + <!-- /.row -->
  123 + </div>
  124 + <!-- /.page-content -->
  125 + </div>
  126 + </div>
  127 + <!-- /.main-content -->
  128 +
  129 + <!-- 返回顶部 -->
  130 + <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
  131 + <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
  132 + </a>
  133 +
  134 + </div>
  135 +
  136 +
  137 +
  138 + <!-- /.main-container -->
  139 +
  140 + <!-- basic scripts -->
  141 + <!-- 页面底部js¨ -->
  142 + <%@ include file="../../system/index/foot.jsp"%>
  143 + <!-- 删除时确认窗口 -->
  144 + <script src="static/ace/js/bootbox.js"></script>
  145 + <!-- ace scripts -->
  146 + <script src="static/ace/js/ace/ace.js"></script>
  147 + <!-- 下拉框 -->
  148 + <script src="static/ace/js/chosen.jquery.js"></script>
  149 + <!-- 日期框 -->
  150 + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script>
  151 + <!--提示框-->
  152 + <script type="text/javascript" src="static/js/jquery.tips.js"></script>
  153 + <script type="text/javascript">
  154 + $(top.hangge());//关闭加载状态
  155 + //检索
  156 + function tosearch(){
  157 + top.jzts();
  158 + $("#Form").submit();
  159 + }
  160 + $(function() {
  161 +
  162 + //日期框
  163 + $('.date-picker').datepicker({
  164 + autoclose: true,
  165 + todayHighlight: true
  166 + });
  167 +
  168 + //下拉框
  169 + if(!ace.vars['touch']) {
  170 + $('.chosen-select').chosen({allow_single_deselect:true});
  171 + $(window)
  172 + .off('resize.chosen')
  173 + .on('resize.chosen', function() {
  174 + $('.chosen-select').each(function() {
  175 + var $this = $(this);
  176 + $this.next().css({'width': $this.parent().width()});
  177 + });
  178 + }).trigger('resize.chosen');
  179 + $(document).on('settings.ace.chosen', function(e, event_name, event_val) {
  180 + if(event_name != 'sidebar_collapsed') return;
  181 + $('.chosen-select').each(function() {
  182 + var $this = $(this);
  183 + $this.next().css({'width': $this.parent().width()});
  184 + });
  185 + });
  186 + $('#chosen-multiple-style .btn').on('click', function(e){
  187 + var target = $(this).find('input[type=radio]');
  188 + var which = parseInt(target.val());
  189 + if(which == 2) $('#form-field-select-4').addClass('tag-input-style');
  190 + else $('#form-field-select-4').removeClass('tag-input-style');
  191 + });
  192 + }
  193 +
  194 +
  195 + //复选框全选控制
  196 + var active_class = 'active';
  197 + $('#simple-table > thead > tr > th input[type=checkbox]').eq(0).on('click', function(){
  198 + var th_checked = this.checked;//checkbox inside "TH" table header
  199 + $(this).closest('table').find('tbody > tr').each(function(){
  200 + var row = this;
  201 + if(th_checked) $(row).addClass(active_class).find('input[type=checkbox]').eq(0).prop('checked', true);
  202 + else $(row).removeClass(active_class).find('input[type=checkbox]').eq(0).prop('checked', false);
  203 + });
  204 + });
  205 + });
  206 +
  207 + //新增
  208 + function add(){
  209 + top.jzts();
  210 + var diag = new top.Dialog();
  211 + diag.Drag=true;
  212 + diag.Title ="新增";
  213 + diag.URL = '<%=basePath%>paper/goAddTest.do';
  214 + diag.Width = 450;
  215 + diag.Height = 355;
  216 + diag.Modal = true; //有无遮罩窗口
  217 + diag. ShowMaxButton = true; //最大化按钮
  218 + diag.ShowMinButton = true; //最小化按钮
  219 + diag.CancelEvent = function(){ //关闭事件
  220 + if(diag.innerFrame.contentWindow.document.getElementById('zhongxin').style.display == 'none'){
  221 + if('${page.currentPage}' == '0'){
  222 + tosearch();
  223 + }else{
  224 + tosearch();
  225 + }
  226 + }
  227 + diag.close();
  228 + };
  229 + diag.show();
  230 + }
  231 +
  232 + //删除
  233 + function del(Id){
  234 + bootbox.confirm("确定要删除吗?", function(result) {
  235 + if(result) {
  236 + top.jzts();
  237 + var url = "<%=basePath%>paper/delete.do?PAPER_ID="+Id+"&tm="+new Date().getTime();
  238 + $.get(url,function(data){
  239 + tosearch();
  240 + });
  241 + }
  242 + });
  243 + }
  244 +
  245 + //修改
  246 + function edit(Id){
  247 + top.jzts();
  248 + var diag = new top.Dialog();
  249 + diag.Drag=true;
  250 + diag.Title ="编辑";
  251 + diag.URL = '<%=basePath%>paper/goEdit.do?PAPER_ID='+Id;
  252 + diag.Width = 450;
  253 + diag.Height = 355;
  254 + diag.Modal = true; //有无遮罩窗口
  255 + diag. ShowMaxButton = true; //最大化按钮
  256 + diag.ShowMinButton = true; //最小化按钮
  257 + diag.CancelEvent = function(){ //关闭事件
  258 + if(diag.innerFrame.contentWindow.document.getElementById('zhongxin').style.display == 'none'){
  259 + tosearch();
  260 + }
  261 + diag.close();
  262 + };
  263 + diag.show();
  264 + }
  265 +
  266 + //批量操作
  267 + function makeAll(msg){
  268 + bootbox.confirm(msg, function(result) {
  269 + if(result) {
  270 + var str = '';
  271 + for(var i=0;i < document.getElementsByName('ids').length;i++){
  272 + if(document.getElementsByName('ids')[i].checked){
  273 + if(str=='') str += document.getElementsByName('ids')[i].value;
  274 + else str += ',' + document.getElementsByName('ids')[i].value;
  275 + }
  276 + }
  277 + if(str==''){
  278 + bootbox.dialog({
  279 + message: "<span class='bigger-110'>您没有选择任何内容!</span>",
  280 + buttons:
  281 + { "button":{ "label":"确定", "className":"btn-sm btn-success"}}
  282 + });
  283 + $("#zcheckbox").tips({
  284 + side:1,
  285 + msg:'点这里全选',
  286 + bg:'#AE81FF',
  287 + time:8
  288 + });
  289 + return;
  290 + }else{
  291 + if(msg == '确定要删除选中的数据吗?'){
  292 + top.jzts();
  293 + $.ajax({
  294 + type: "POST",
  295 + url: '<%=basePath%>paper/deleteAll.do?tm='+new Date().getTime(),
  296 + data: {DATA_IDS:str},
  297 + dataType:'json',
  298 + //beforeSend: validateData,
  299 + cache: false,
  300 + success: function(data){
  301 + $.each(data.list, function(i, list){
  302 + tosearch();
  303 + });
  304 + }
  305 + });
  306 + }
  307 + }
  308 + }
  309 + });
  310 + };
  311 +
  312 + //导出excel
  313 + function toExcel(){
  314 + window.location.href='<%=basePath%>paper/excel.do';
  315 + }
  316 +
  317 + function click(item){
  318 + window.location.href='<%=basePath%>paper/iteminfo.do?paper_id=' + item ;
  319 + }
  320 + </script>
  321 +
  322 +
  323 +</body>
  324 +</html>
0 325 \ No newline at end of file
... ...
WebRoot/WEB-INF/jsp/sunvote/teacher/teacher_main_bak.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 +<!-- jsp文件头和头部 -->
  17 +<%@ include file="../../system/index/top.jsp"%>
  18 +<style type="text/css">
  19 +.content_l{width:30%;min-width:300px;height:100%;background:#fff;float:left;}
  20 +.info_box{width:100%;height:300px;background:#36c345;color:#fff;position:relative;}
  21 +.info{display:table;width:70%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;}
  22 +.info_l{width:120px;height:120px;float:left;border-radius:100px;overflow:hidden;position:relative;}
  23 +.info_l img{width:100%;position:absolute;top:0;min-height:100%;}
  24 +.info_r{margin-left:150px;}
  25 +.info_r p{width:100%;text-align:left;}
  26 +.info_r p:first-child{font-size:24px;}
  27 +.class{background:#36c333;color:#fff;margin-top:12px;}
  28 +.class p{margin:0;line-height:3em;box-sizing:border-box;padding-left:3em;font-size:20px;}
  29 +.test{background:#36b733;font-size:32px;text-align:center;color:#fff;padding:3% 0;letter-spacing:1em;margin-top:12px;}
  30 +.analysis{background:#36a733;font-size:32px;text-align:center;color:#fff;padding:3% 0;letter-spacing:1em;margin-top:12px;}
  31 +.commitopacity {
  32 + position: absolute;
  33 + width: 100%;
  34 + height: 100px;
  35 + background: #7f7f7f;
  36 + filter: alpha(opacity = 50);
  37 + -moz-opacity: 0.8;
  38 + -khtml-opacity: 0.5;
  39 + opacity: 0.5;
  40 + top: 0px;
  41 + z-index: 99999;
  42 +}
  43 +
  44 +.jzts {
  45 + position: fixed;
  46 + left: 50%;
  47 + top: 50%;
  48 + width: 100%;
  49 + height: 200px;
  50 + margin: -45px 190px 0px 0px;
  51 +}
  52 +</style>
  53 +
  54 +<!-- 即时通讯 -->
  55 +<link rel="stylesheet" type="text/css"
  56 + href="plugins/websocketInstantMsg/ext4/resources/css/ext-all.css">
  57 +<link rel="stylesheet" type="text/css"
  58 + href="plugins/websocketInstantMsg/css/websocket.css" />
  59 +<script type="text/javascript"
  60 + src="plugins/websocketInstantMsg/ext4/ext-all-debug.js"></script>
  61 +<script type="text/javascript"
  62 + src="plugins/websocketInstantMsg/websocket.js"></script>
  63 +<!-- 即时通讯 -->
  64 +<!--
  65 +<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
  66 +<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
  67 + <script type="text/javascript" src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
  68 + -->
  69 +
  70 +
  71 +
  72 +
  73 +</head>
  74 +<body class="no-skin">
  75 + <!-- #section:basics/navbar.layout -->
  76 +
  77 + <!-- 页面顶部¨ -->
  78 +
  79 +
  80 + <div style="width:1360px;margin:0 auto;">
  81 + <%@ include file="../../system/index/head.jsp"%>
  82 + <div class="content_l">
  83 +
  84 + <div class="info_box">
  85 + <div class="info">
  86 + <div class="info_l">
  87 + <img src="static/ace/avatars/user.jpg" />
  88 + </div>
  89 + <div class="info_r">
  90 + <p>${pd.TEACHER[0].TEACHER_NAME }</p>
  91 + <p>${pd.TEACHER[0].SCHOOL_NAME }</p>
  92 + </div>
  93 + </div>
  94 + </div>
  95 + <c:forEach items="${pd.TEACHER}" var="var" varStatus="vs">
  96 + <div class="class">
  97 + <p><a href="javascript:chooseClass('${var.CLASS_ID}','${var.TERM_ID}');">${var.GRADE_NAME}${var.SUBJECT_NAME} <span>${var.CLASS_NAME}</span></a>
  98 + &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:report('${var.CLASS_ID}');">成绩</a></p>
  99 + </div>
  100 + </c:forEach>
  101 + <div class="class" id="test"><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:;">试卷</a></p></div>
  102 + <!-- <div class="analysis">分析</div> -->
  103 + </div>
  104 + <div style="width:70%;height:100%;margin-left:30%;" class="content_r">
  105 + <iframe name="mainFrame" id="mainFrame" frameborder="0" src="paper/list2.do?" ></iframe>
  106 + </div>
  107 +</div>
  108 +
  109 +
  110 +
  111 + <%@ include file="../../system/index/foot.jsp"%>
  112 +
  113 + <!-- page specific plugin scripts -->
  114 +
  115 + <!-- ace scripts -->
  116 + <script src="static/ace/js/ace/elements.scroller.js"></script>
  117 + <script src="static/ace/js/ace/elements.colorpicker.js"></script>
  118 + <script src="static/ace/js/ace/elements.fileinput.js"></script>
  119 + <script src="static/ace/js/ace/elements.typeahead.js"></script>
  120 + <script src="static/ace/js/ace/elements.wysiwyg.js"></script>
  121 + <script src="static/ace/js/ace/elements.spinner.js"></script>
  122 + <script src="static/ace/js/ace/elements.treeview.js"></script>
  123 + <script src="static/ace/js/ace/elements.wizard.js"></script>
  124 + <script src="static/ace/js/ace/elements.aside.js"></script>
  125 + <script src="static/ace/js/ace/ace.js"></script>
  126 + <script src="static/ace/js/ace/ace.ajax-content.js"></script>
  127 + <script src="static/ace/js/ace/ace.touch-drag.js"></script>
  128 + <script src="static/ace/js/ace/ace.sidebar.js"></script>
  129 + <script src="static/ace/js/ace/ace.sidebar-scroll-1.js"></script>
  130 + <script src="static/ace/js/ace/ace.submenu-hover.js"></script>
  131 + <script src="static/ace/js/ace/ace.widget-box.js"></script>
  132 + <script src="static/ace/js/ace/ace.settings.js"></script>
  133 + <script src="static/ace/js/ace/ace.settings-rtl.js"></script>
  134 + <script src="static/ace/js/ace/ace.settings-skin.js"></script>
  135 + <script src="static/ace/js/ace/ace.widget-on-reload.js"></script>
  136 + <script src="static/ace/js/ace/ace.searchbox-autocomplete.js"></script>
  137 + <!-- inline scripts related to this page -->
  138 +
  139 + <!-- the following scripts are used in demo only for onpage help and you don't need them -->
  140 + <link rel="stylesheet" href="static/ace/css/ace.onpage-help.css" />
  141 +
  142 + <script type="text/javascript"> ace.vars['base'] = '..'; </script>
  143 + <script src="static/ace/js/ace/elements.onpage-help.js"></script>
  144 + <script src="static/ace/js/ace/ace.onpage-help.js"></script>
  145 +
  146 + <!--引入属于此页面的js -->
  147 + <script type="text/javascript" src="static/js/myjs/head.js"></script>
  148 + <!--引入属于此页面的js -->
  149 + <script type="text/javascript" src="static/js/myjs/index.js"></script>
  150 +
  151 + <!--引入弹窗组件1start-->
  152 + <!--<script type="text/javascript" src="plugins/attention/zDialog/zDrag.js"></script>-->
  153 + <!--<script type="text/javascript" src="plugins/attention/zDialog/zDialog.js"></script>-->
  154 + <!--引入弹窗组件1end-->
  155 +
  156 + <!--引入弹窗组件2start-->
  157 + <script type="text/javascript" src="plugins/attention/drag/drag.js"></script>
  158 + <script type="text/javascript" src="plugins/attention/drag/dialog.js"></script>
  159 + <link type="text/css" rel="stylesheet"
  160 + href="plugins/attention/drag/style.css" />
  161 + <!--引入弹窗组件2end-->
  162 +
  163 + <!--提示框-->
  164 + <script type="text/javascript" src="static/js/jquery.tips.js"></script>
  165 + <script>
  166 + $(".content_l").height($("#mainFrame").height());
  167 + </script>
  168 + <!-- 考试时间 -->
  169 + <div class="modal fade title_time" tabindex="-1" role="dialog">
  170 + <div class="modal-dialog" role="document" style="z-index:1400">
  171 + <div class="modal-content">
  172 + <div class="modal-header">
  173 + <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  174 + <h4 class="modal-title">新建试卷</h4>
  175 + </div>
  176 + <div class="modal-body">
  177 + <div class="form-group">
  178 + <label for="enter_title" class="col-sm-4 control-label">测验标题</label>
  179 + <div class="col-sm-6">
  180 + <input type="text" class="form-control" id="enter_title" placeholder="输入测验标题">
  181 + </div>
  182 + <div class="clearfix"></div>
  183 + </div>
  184 + <div class="form-group">
  185 + <label for="enter_time" class="col-sm-4 control-label">测验时长(分钟)</label>
  186 + <div class="col-sm-6">
  187 + <input type="number" class="form-control" id="enter_time" placeholder="输入测验时长">
  188 + </div>
  189 + <div class="clearfix"></div>
  190 + </div>
  191 +
  192 + </div>
  193 + <div class="modal-footer">
  194 + <button type="button" class="btn btn-primary" id="time_submit">确定</button>
  195 + <button type="button" class="btn btn-primary" data-dismiss="modal">取消</button>
  196 + </div>
  197 + </div><!-- /.modal-content -->
  198 + </div><!-- /.modal-dialog -->
  199 + </div><!-- /.modal -->
  200 + <script>
  201 + $("#time_submit").click(function(){
  202 + var name = $("#enter_title").val();
  203 + var time = $("#enter_time").val();
  204 + if(name != null&& name != '' && time != null && time != ''){
  205 + self.location.href = "<%=basePath%>" + "paper/npaper.do?" + "name=" + name + "&time=" + time ;
  206 + $(".title_time").modal("hide");
  207 + }
  208 + //window.open("<%=basePath%>" + "paper/npaper.do?" + "name=" + name + "&time=" + time);
  209 + });
  210 + $("#test").click(function(){
  211 + $(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" src="paper/list2.do?" style="width:100%;height:'+$(".content_l").height()+'px;"></iframe>');
  212 + })
  213 +
  214 + function chooseClass(classID,termID){
  215 + var path = "student/listcs.do?class_id=" + classID + "&term_id=" + termID ;
  216 + $(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>');
  217 + }
  218 +
  219 + function report(classId){
  220 + window.open('<%=basePath%>report/report.do?classid=' + classId);
  221 + }
  222 + /* $(".analysis").click(function(){
  223 + $(".content_r").html('<img src="static/images/analysis.png" width="100%" />');
  224 + }) */
  225 + </script>
  226 +
  227 +</body>
  228 +</html>
0 229 \ No newline at end of file
... ...
WebRoot/afterService/document/键盘-S52Plus-常见问题解答V1.0(新东方)-20180716.pdf 0 → 100644
No preview for this file type
WebRoot/static/css/teach.css 0 → 100644
  1 +html,body{width:100%;height:100%;}
  2 +.clear{clear:both;}
  3 +.right{width:12px;height:12px;display:inline-block;background:url(../images/right.png) no-repeat;background-size:100%;}
  4 +.right_b{width:20px;height:20px;margin-right:20px;display:inline-block;background:url(../images/right_b.png) no-repeat;background-size:100%;}
  5 +.down{width:12px;height:12px;display:inline-block;background:url(../images/down.png) no-repeat;background-size:100%;}
  6 +.jiao{float:right;margin-top:32.5px;margin-right:10%;}
  7 +
  8 +.pagination{border-radius:0;float:left;}
  9 +.pagination>li>a, .pagination>li>span{color:#34c99d;}
  10 +.pagination>.active>a, .pagination>.active>a:focus, .pagination>.active>a:hover, .pagination>.active>span, .pagination>.active>span:focus, .pagination>.active>span:hover{
  11 + background-color:#6fd9bb;
  12 + border-color:#6fd9bb;
  13 +}
  14 +.pagination>li:first-child>a, .pagination>li:first-child>span{border-radius:0;}
  15 +.pagination>li:last-child>a, .pagination>li:last-child>span{border-radius:0;}
  16 +
  17 +
  18 +.header{width:100%;background:#0bb8b9;box-sizing:border-box;padding:20px 30px;position:fixed;top:0;}
  19 +.header .logo{float:left;}
  20 +.header .out{float:right;font-size:18px;color:#fff;}
  21 +.header .out img{width:18px;margin-right:15px;}
  22 +.content{width:100%;height:100%;box-sizing:border-box;padding-top:66px;}
  23 +.content .content_l{width:18%;float:left;height:100%;background:#13707b;overflow-y:auto;}
  24 +.content .content_l .info_tab{padding:10% 0;border-bottom:1px solid #80afb4;}
  25 +.content .content_l .head_pic{width:88px;height:88px;border-radius:44px;overflow:hidden;float:left;margin-left:2%;}
  26 +.content .content_l .name{margin-left:calc(88px + 10%);}
  27 +.content .content_l .name p{color:#fff;}
  28 +.content .content_l .name p:first-child{font-size:14px;}
  29 +.content .content_l .name p:nth-child(2){font-size:20px;}
  30 +.content .content_l .name p:nth-child(3){font-size:14px;}
  31 +.content .content_l .tab1{border-bottom:1px solid #80afb4;}
  32 +.content .content_l .tab1 p{width:100%;height:77px;line-height:77px;margin-bottom:0;font-size:24px;color:#fff;padding-left:10%;}
  33 +.content .content_l .tab1 ul{margin-bottom:0;padding:12px 0;padding-left:15%;background:#0b535b;font-size:18px;line-height:64px;display:none;}
  34 +.content .content_l .tab1 ul li{list-style:none;color:#fff;}
  35 +.content .content_r{margin-left:18%;height:100%;overflow-y:auto;}
  36 +
  37 +
  38 + .head_box{width:100%;height:94px;background:#f5f5f5;padding:30px 5%;}
  39 + .head_box_l{float:left;font-size:30px;}
  40 + .head_box_l p{color:#106666;margin-bottom:0;}
  41 + .head_box_r{float:right;}
  42 + .head_box_r input{padding-left:10px;}
  43 + .head_box_r img{width:30px;margin-left:10px;}
  44 + .table_box{padding:5%;}
  45 + .table_box input[name="choose"]{vertical-align:top;margin-right:15px;}
  46 + .table_box img{width:24px;}
  47 + .footer .creat,.content .content_r .footer .removeAll {float:left;}
  48 + .footer .creat input{background:#3bc2d6;outline-style:none;text-decoration:none;border:none;color:#fff;padding:15px 20px;font-size:18px;}
  49 + .footer .removeAll input{background:#f29c9f;outline-style:none;text-decoration:none;border:none;margin-left:15px;color:#fff;padding:15px 20px;font-size:18px;}
  50 + .footer .page_box{float:right;}
  51 +
  52 +
  53 +.enter{padding:0 !important;}
  54 +.jump_btn{background:#74c4a2 !important;color:#fff !important;border-color:#74c4a2 !important;}
  55 +.pagination li input{display: block;border: 0;width: 3em;height:32px;outline-style: none;}
... ...
WebRoot/static/images/close.png 0 → 100644

764 Bytes

WebRoot/static/images/down.png 0 → 100644

14.9 KB

WebRoot/static/images/head_defult.png 0 → 100644

6.31 KB

WebRoot/static/images/logo.png 0 → 100644

3.77 KB

WebRoot/static/images/remove.png 0 → 100644

1.58 KB

WebRoot/static/images/right.png 0 → 100644

1.61 KB

WebRoot/static/images/right_b.png 0 → 100644

2.02 KB

WebRoot/static/images/search.png 0 → 100644

2.38 KB

WebRoot/static/js/model.js 0 → 100644
  1 +$(".tab1").click(function(){
  2 + var _this=$(this);
  3 + _this.find("ul").slideToggle(function(){
  4 + if(_this.find("ul").css("display")=="block")
  5 + _this.find(".right").attr("class","down jiao");
  6 + else
  7 + _this.find(".down").attr("class","right jiao");
  8 + });
  9 +})
  10 +$("#chooseAll").click(function(){
  11 + if(this.checked)
  12 + $("input[name='choose']").prop("checked", true);
  13 + else
  14 + $("input[name='choose']").prop("checked", false);
  15 +})
0 16 \ No newline at end of file
... ...
src/com/fh/interceptor/LoginHandlerInterceptor.java
... ... @@ -19,6 +19,11 @@ public class LoginHandlerInterceptor extends HandlerInterceptorAdapter{
19 19 if(user!=null){
20 20 path = path.substring(1, path.length());
21 21 boolean b = true;//Jurisdiction.hasJurisdiction(path); //访问权限校验
  22 + try{
  23 + Jurisdiction.hasJurisdiction(path);
  24 + }catch(Exception e){
  25 + e.printStackTrace();
  26 + }
22 27 if(!b){
23 28 response.sendRedirect(request.getContextPath() + Const.LOGIN);
24 29 }
... ...