Commit 6ec88f667a0d3b24cdde3965d395c95ad86bd64c

Authored by 孙向锦
1 parent b5cf92b7

获取班级学生的bug 修复

WebRoot/WEB-INF/jsp/sunvote/student/uploadexcel.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 +
  19 +</head>
  20 +<body class="no-skin">
  21 +
  22 + <!-- /section:basics/navbar.layout -->
  23 + <div class="main-container" id="main-container">
  24 + <!-- /section:basics/sidebar -->
  25 + <div class="main-content">
  26 + <div class="main-content-inner">
  27 + <div class="page-content">
  28 + <div class="row">
  29 + <div class="col-xs-12">
  30 + <form action="student/readExcel.do?CLASS_ID=${pd.CLASS_ID}&TERM_ID=${pd.TERM_ID}" name="Form" id="Form" method="post" enctype="multipart/form-data">
  31 + <div id="zhongxin">
  32 + <input type="hidden" name="CLASS_ID" id="CLASS_ID" value="${pd.CLASS_ID}"/>
  33 + <input type="hidden" name="TERM_ID" id="TERM_ID" value="${pd.TERM_ID}"/>
  34 + <table style="width:95%;" >
  35 + <tr>
  36 + <td style="padding-top: 20px;"><input type="file" id="excel" name="excel" style="width:50px;" onchange="fileType(this)" /></td>
  37 + </tr>
  38 + <tr>
  39 + <td style="text-align: center;padding-top: 10px;">
  40 + <a class="btn btn-mini btn-primary" onclick="save();">导入</a>
  41 + <a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">取消</a>
  42 + <a style="display:none" class="btn btn-mini btn-success" onclick="window.location.href='<%=basePath%>/user/downExcel.do'">下载模版</a>
  43 + </td>
  44 + </tr>
  45 + </table>
  46 + </div>
  47 + <div id="zhongxin2" class="center" style="display:none"><br/><img src="static/images/jzx.gif" /><br/><h4 class="lighter block green"></h4></div>
  48 + </form>
  49 + </div>
  50 + <!-- /.col -->
  51 + </div>
  52 + <!-- /.row -->
  53 + </div>
  54 + <!-- /.page-content -->
  55 + </div>
  56 + </div>
  57 + <!-- /.main-content -->
  58 + </div>
  59 + <!-- /.main-container -->
  60 +
  61 + <!-- basic scripts -->
  62 + <!-- 页面底部js¨ -->
  63 + <%@ include file="../../system/index/foot.jsp"%>
  64 + <!-- ace scripts -->
  65 + <script src="static/ace/js/ace/ace.js"></script>
  66 + <!-- 上传控件 -->
  67 + <script src="static/ace/js/ace/elements.fileinput.js"></script>
  68 + <!--提示框-->
  69 + <script type="text/javascript" src="static/js/jquery.tips.js"></script>
  70 + <script type="text/javascript">
  71 + $(top.hangge());
  72 + $(function() {
  73 + //上传
  74 + $('#excel').ace_file_input({
  75 + no_file:'请选择EXCEL ...',
  76 + btn_choose:'选择',
  77 + btn_change:'更改',
  78 + droppable:false,
  79 + onchange:null,
  80 + thumbnail:false, //| true | large
  81 + whitelist:'xls|xls',
  82 + blacklist:'gif|png|jpg|jpeg'
  83 + //onchange:''
  84 + });
  85 + });
  86 +
  87 + //保存
  88 + function save(){
  89 + if($("#excel").val()=="" || document.getElementById("excel").files[0] =='请选择xls格式的文件'){
  90 +
  91 + $("#excel").tips({
  92 + side:3,
  93 + msg:'请选择文件',
  94 + bg:'#AE81FF',
  95 + time:3
  96 + });
  97 + return false;
  98 + }
  99 + $("#Form").submit();
  100 + $("#zhongxin").hide();
  101 + $("#zhongxin2").show();
  102 + }
  103 + function fileType(obj){
  104 + var fileType=obj.value.substr(obj.value.lastIndexOf(".")).toLowerCase();//获得文件后缀名
  105 + if(fileType != '.xls'){
  106 + $("#excel").tips({
  107 + side:3,
  108 + msg:'请上传xls格式的文件',
  109 + bg:'#AE81FF',
  110 + time:3
  111 + });
  112 + $("#excel").val('');
  113 + document.getElementById("excel").files[0] = '请选择xls格式的文件';
  114 + }
  115 + }
  116 + </script>
  117 +
  118 +
  119 +</body>
  120 +</html>
0 121 \ No newline at end of file
... ...
WebRoot/afterService/document/基站-EA1000-常见问题解答V1.0-20170825.pdf 0 → 100644
No preview for this file type
WebRoot/afterService/document/答题器-S56-常见问题解答V1.0-20180227(高思定制).pdf 0 → 100644
No preview for this file type
resources/mybatis1/api/V1Mapper.xml
... ... @@ -44,8 +44,8 @@
44 44 sv_student.`KEYPAD_ID`
45 45 FROM
46 46 sv_classroster
47   - LEFT JOIN sv_term ON sv_classroster.TEAMID = sv_term.TERM_ID
48   - LEFT JOIN sv_student ON sv_classroster.STUDENT_ID = sv_student.ID
  47 + inner JOIN sv_term ON sv_classroster.TEAMID = sv_term.TERM_ID
  48 + inner JOIN sv_student ON sv_classroster.STUDENT_ID = sv_student.ID
49 49 WHERE
50 50 sv_term.START_DATE &lt; NOW()
51 51 AND sv_term.END_DATE &gt; NOW()
... ...
src/com/fh/interceptor/UrlFilter.java 0 → 100644
  1 +package com.fh.interceptor;
  2 +
  3 +import java.io.IOException;
  4 +
  5 +import javax.servlet.Filter;
  6 +import javax.servlet.FilterChain;
  7 +import javax.servlet.FilterConfig;
  8 +import javax.servlet.ServletException;
  9 +import javax.servlet.ServletRequest;
  10 +import javax.servlet.ServletResponse;
  11 +
  12 +public class UrlFilter implements Filter {
  13 +
  14 + @Override
  15 + public void destroy() {
  16 + // TODO Auto-generated method stub
  17 +
  18 + }
  19 +
  20 + @Override
  21 + public void doFilter(ServletRequest arg0, ServletResponse arg1,
  22 + FilterChain arg2) throws IOException, ServletException {
  23 +
  24 +
  25 + }
  26 +
  27 + @Override
  28 + public void init(FilterConfig arg0) throws ServletException {
  29 +
  30 + }
  31 +
  32 +
  33 +}
... ...