├── README.md ├── WebContent ├── META-INF │ └── MANIFEST.MF ├── NewFile.jsp ├── NewFile1.jsp ├── WEB-INF │ ├── lib │ │ ├── jstl-1.2.jar │ │ ├── jxl.jar │ │ ├── mysql-connector-java-5.1.18-bin.jar │ │ └── servlet-api.jar │ └── web.xml ├── admin │ ├── SysCome.jsp │ ├── SysHead.jsp │ ├── SysLeft.jsp │ ├── SysTop.jsp │ ├── admin.jsp │ ├── check.jsp │ ├── control_student.jsp │ ├── control_teacher.jsp │ ├── download │ │ ├── student.xls │ │ └── teacher.xls │ ├── student_Padd.jsp │ ├── student_add.jsp │ ├── student_adds.jsp │ ├── student_list.jsp │ ├── student_validate.jsp │ ├── task_add.jsp │ ├── task_list.jsp │ ├── task_list2.jsp │ ├── task_verify.jsp │ ├── teacher_Padd.jsp │ ├── teacher_add.jsp │ ├── teacher_adds.jsp │ ├── teacher_list.jsp │ └── teacher_validate.jsp ├── images1 │ ├── 02.jpg │ ├── 04.jpg │ ├── 043.jpg │ ├── 1.jpg │ ├── 21.jpg │ ├── 210.jpg │ └── 211.jpg ├── index.jsp ├── js │ ├── CssAdmin.css │ └── css.css ├── loginmsg │ └── loginFailed.html ├── student │ ├── SysCome.jsp │ ├── SysHead.jsp │ ├── SysLeft.jsp │ ├── SysTop.jsp │ ├── check.jsp │ ├── msg.jsp │ ├── student.jsp │ ├── student_add.jsp │ ├── task_choose.jsp │ ├── task_list.jsp │ ├── task_list2.jsp │ └── task_mysel.jsp └── teacher │ ├── NewFile.jsp │ ├── SysCome.jsp │ ├── SysHead.jsp │ ├── SysLeft.jsp │ ├── SysTop.jsp │ ├── check.jsp │ ├── msg.jsp │ ├── task_add.jsp │ ├── task_add2.jsp │ ├── task_list.jsp │ ├── task_list2.jsp │ ├── task_mysel.jsp │ ├── task_mysel2.jsp │ ├── task_validate.jsp │ ├── task_validate2.jsp │ ├── teacher.jsp │ └── teacher_edit.jsp ├── build └── classes │ ├── dao │ ├── MsgManager.class │ ├── PasswordNotCorrectException.class │ ├── StudentManager.class │ ├── TeacherManager.class │ ├── TopicManager.class │ └── UserNotFoundException.class │ ├── servlet │ ├── AdminServlet.class │ ├── LoginServlet.class │ ├── StudentServlet.class │ └── TeacherServlet.class │ ├── util │ ├── DB.class │ └── FileUpLoad.class │ └── vo │ ├── Msg.class │ ├── Student.class │ ├── Teacher.class │ └── Topic.class ├── classes └── artifacts │ └── work_war_exploded │ ├── META-INF │ └── MANIFEST.MF │ ├── NewFile.jsp │ ├── NewFile1.jsp │ ├── WEB-INF │ ├── classes │ │ ├── dao │ │ │ ├── MsgManager.class │ │ │ ├── PasswordNotCorrectException.class │ │ │ ├── StudentManager.class │ │ │ ├── TeacherManager.class │ │ │ ├── TopicManager.class │ │ │ └── UserNotFoundException.class │ │ ├── servlet │ │ │ ├── AdminServlet.class │ │ │ ├── LoginServlet.class │ │ │ ├── StudentServlet.class │ │ │ └── TeacherServlet.class │ │ ├── util │ │ │ ├── DB.class │ │ │ └── FileUpLoad.class │ │ └── vo │ │ │ ├── Msg.class │ │ │ ├── Student.class │ │ │ ├── Teacher.class │ │ │ └── Topic.class │ ├── lib │ │ ├── jstl-1.2.jar │ │ ├── jxl.jar │ │ ├── mysql-connector-java-5.1.18-bin.jar │ │ └── servlet-api.jar │ └── web.xml │ ├── admin │ ├── SysCome.jsp │ ├── SysHead.jsp │ ├── SysLeft.jsp │ ├── SysTop.jsp │ ├── admin.jsp │ ├── check.jsp │ ├── control_student.jsp │ ├── control_teacher.jsp │ ├── download │ │ ├── student.xls │ │ └── teacher.xls │ ├── student_Padd.jsp │ ├── student_add.jsp │ ├── student_adds.jsp │ ├── student_list.jsp │ ├── student_validate.jsp │ ├── task_add.jsp │ ├── task_list.jsp │ ├── task_list2.jsp │ ├── task_verify.jsp │ ├── teacher_Padd.jsp │ ├── teacher_add.jsp │ ├── teacher_adds.jsp │ ├── teacher_list.jsp │ └── teacher_validate.jsp │ ├── images1 │ ├── 02.jpg │ ├── 04.jpg │ ├── 043.jpg │ ├── 1.jpg │ ├── 21.jpg │ ├── 210.jpg │ └── 211.jpg │ ├── index.jsp │ ├── js │ ├── CssAdmin.css │ └── css.css │ ├── loginmsg │ └── loginFailed.html │ ├── student │ ├── SysCome.jsp │ ├── SysHead.jsp │ ├── SysLeft.jsp │ ├── SysTop.jsp │ ├── check.jsp │ ├── msg.jsp │ ├── student.jsp │ ├── student_add.jsp │ ├── task_choose.jsp │ ├── task_list.jsp │ ├── task_list2.jsp │ └── task_mysel.jsp │ └── teacher │ ├── NewFile.jsp │ ├── SysCome.jsp │ ├── SysHead.jsp │ ├── SysLeft.jsp │ ├── SysTop.jsp │ ├── check.jsp │ ├── msg.jsp │ ├── task_add.jsp │ ├── task_add2.jsp │ ├── task_list.jsp │ ├── task_list2.jsp │ ├── task_mysel.jsp │ ├── task_mysel2.jsp │ ├── task_validate.jsp │ ├── task_validate2.jsp │ ├── teacher.jsp │ └── teacher_edit.jsp ├── src ├── dao │ ├── MsgManager.java │ ├── PasswordNotCorrectException.java │ ├── StudentManager.java │ ├── TeacherManager.java │ ├── TopicManager.java │ └── UserNotFoundException.java ├── servlet │ ├── AdminServlet.java │ ├── LoginServlet.java │ ├── StudentServlet.java │ └── TeacherServlet.java ├── util │ ├── DB.java │ └── FileUpLoad.java └── vo │ ├── Msg.java │ ├── Student.java │ ├── Teacher.java │ └── Topic.java └── work.iml /README.md: -------------------------------------------------------------------------------- 1 | # 项目名称 2 | 3 | 基于Java的高校毕业设计选题管理系统毕业论文+任务书+设计源码+数据库文件+答辩PPT 4 | 5 | # 系统介绍 6 | 本系统功能划分明显,操作简单易懂,其中主要功能如下 7 | 8 | 用户操作界面简单易懂,在操作过程中有提示信息来帮助用户来迅速完成需要的操作。 9 | 2. 管理员虽然也是一个角色,但是是个特殊的用户,其实在数据库中也是由教师信息表来维护,只不过有一个字段是专门来识别是否是管理员。管理员可以注册教师和学生的信息,同时支持Excel表批量注册,只要上传的Excel工作表符合规范要求即可。同时系统提供规范的工作表给管理员下载。 10 | 普通用户分为学生角色和教师角色,基本功能都提供了修改个人信息以及密码,学生可以选择、修改、退选课题,老师可以创建、修改、删除课题。课题连接学生和教师的关系,双方可以通过课题来查看对方的信息。 11 | 12 | 在此提供系统功能结构图,如下所示 13 | 14 | # 环境需要 15 | 16 | 1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。\ 17 | 2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA;\ 18 | 3.tomcat环境:Tomcat 7.x,8.x,9.x版本均可\ 19 | 4.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS; \ 20 | 5.数据库:MySql 5.7版本;\ 21 | 6.是否Maven项目:否; 22 | 23 | # 技术栈 24 | 25 | 1. 后端:Spring+SpringMVC+Mybatis\ 26 | 2. 前端:JSP+CSS+JavaScript+jQuery 27 | 28 | # 使用说明 29 | 30 | 1. 使用Navicat或者其它工具,在mysql中创建对应名称的数据库,并导入项目的sql文件;\ 31 | 2. 使用IDEA/Eclipse/MyEclipse导入项目,Eclipse/MyEclipse导入时,若为maven项目请选择maven;\ 32 | 若为maven项目,导入成功后请执行maven clean;maven install命令,然后运行;\ 33 | 3. 将项目中springmvc-servlet.xml配置文件中的数据库配置改为自己的配置;\ 34 | 4. 运行项目,在浏览器中输入http://localhost:8080/ 登录 35 | 36 | # 高清视频演示 37 | 38 | https://www.bilibili.com/video/BV1DN4y1M7c2/ 39 | 40 | ​ -------------------------------------------------------------------------------- /WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /WebContent/NewFile.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 8 | RunJS 演示代码 9 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /WebContent/NewFile1.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 1 10 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jstl-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/WEB-INF/lib/jstl-1.2.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jxl.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/WEB-INF/lib/jxl.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/mysql-connector-java-5.1.18-bin.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/WEB-INF/lib/mysql-connector-java-5.1.18-bin.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/servlet-api.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/WEB-INF/lib/servlet-api.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | LoginServlet 10 | servlet.LoginServlet 11 | 12 | 13 | StudentServlet 14 | servlet.StudentServlet 15 | 16 | 17 | TeacherServlet 18 | servlet.TeacherServlet 19 | 20 | 21 | AdminServlet 22 | servlet.AdminServlet 23 | 24 | 25 | 26 | 27 | AdminServlet 28 | /admin 29 | 30 | 31 | TeacherServlet 32 | /teacher 33 | 34 | 35 | StudentServlet 36 | /student 37 | 38 | 39 | LoginServlet 40 | /login 41 | 42 | 43 | 44 | /index.jsp 45 | 46 | 47 | -------------------------------------------------------------------------------- /WebContent/admin/SysCome.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/admin/SysCome.jsp -------------------------------------------------------------------------------- /WebContent/admin/SysHead.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/admin/SysHead.jsp -------------------------------------------------------------------------------- /WebContent/admin/SysLeft.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/admin/SysLeft.jsp -------------------------------------------------------------------------------- /WebContent/admin/SysTop.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/admin/SysTop.jsp -------------------------------------------------------------------------------- /WebContent/admin/admin.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/admin/admin.jsp -------------------------------------------------------------------------------- /WebContent/admin/check.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="GBK"%> 2 | <%@page import="vo.*, dao.*"%> 3 | <% 4 | Teacher teacher = (Teacher) session.getAttribute("user"); 5 | int ty = 0; 6 | if (teacher == null) 7 | response.sendRedirect("../index.jsp"); 8 | else { 9 | ty = (Integer) session.getAttribute("type"); 10 | if (ty != 3) 11 | response.sendRedirect("../index.jsp"); 12 | } 13 | %> 14 | -------------------------------------------------------------------------------- /WebContent/admin/control_student.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/admin/control_student.jsp -------------------------------------------------------------------------------- /WebContent/admin/control_teacher.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/admin/control_teacher.jsp -------------------------------------------------------------------------------- /WebContent/admin/download/student.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/admin/download/student.xls -------------------------------------------------------------------------------- /WebContent/admin/download/teacher.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/admin/download/teacher.xls -------------------------------------------------------------------------------- /WebContent/admin/student_Padd.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/admin/student_Padd.jsp -------------------------------------------------------------------------------- /WebContent/admin/student_add.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/admin/student_add.jsp -------------------------------------------------------------------------------- /WebContent/admin/student_adds.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/admin/student_adds.jsp -------------------------------------------------------------------------------- /WebContent/admin/student_list.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/admin/student_list.jsp -------------------------------------------------------------------------------- /WebContent/admin/student_validate.jsp: -------------------------------------------------------------------------------- 1 | <%@page import="vo.*, dao.*"%> 2 | <% 3 | response.setContentType("text/xml"); 4 | response.setHeader("Cache-Control", "no-store"); //HTTP1.1 5 | response.setHeader("Pragma", "no-cache"); //HTTP1.0 6 | response.setDateHeader("Expires", 0); //prevents catching at proxy server 7 | String id = request.getParameter("id"); 8 | Student user = StudentManager.getBySno(id); 9 | //check the database 10 | if (user == null) { 11 | response.getWriter().write("valid"); 12 | } else 13 | response.getWriter().write("invalid"); 14 | %> 15 | -------------------------------------------------------------------------------- /WebContent/admin/task_add.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/admin/task_add.jsp -------------------------------------------------------------------------------- /WebContent/admin/task_list.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/admin/task_list.jsp -------------------------------------------------------------------------------- /WebContent/admin/task_list2.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/admin/task_list2.jsp -------------------------------------------------------------------------------- /WebContent/admin/task_verify.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/admin/task_verify.jsp -------------------------------------------------------------------------------- /WebContent/admin/teacher_Padd.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/admin/teacher_Padd.jsp -------------------------------------------------------------------------------- /WebContent/admin/teacher_add.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/admin/teacher_add.jsp -------------------------------------------------------------------------------- /WebContent/admin/teacher_adds.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/admin/teacher_adds.jsp -------------------------------------------------------------------------------- /WebContent/admin/teacher_list.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/admin/teacher_list.jsp -------------------------------------------------------------------------------- /WebContent/admin/teacher_validate.jsp: -------------------------------------------------------------------------------- 1 | <%@page import="vo.*, dao.*"%> 2 | <% 3 | response.setContentType("text/xml"); 4 | response.setHeader("Cache-Control", "no-store"); //HTTP1.1 5 | response.setHeader("Pragma", "no-cache"); //HTTP1.0 6 | response.setDateHeader("Expires", 0); //prevents catching at proxy server 7 | String id = request.getParameter("id"); 8 | Teacher user = TeacherManager.getByTno(id); 9 | 10 | if (user == null) { 11 | response.getWriter().write("valid"); 12 | } else 13 | response.getWriter().write("invalid"); 14 | %> 15 | -------------------------------------------------------------------------------- /WebContent/images1/02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/images1/02.jpg -------------------------------------------------------------------------------- /WebContent/images1/04.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/images1/04.jpg -------------------------------------------------------------------------------- /WebContent/images1/043.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/images1/043.jpg -------------------------------------------------------------------------------- /WebContent/images1/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/images1/1.jpg -------------------------------------------------------------------------------- /WebContent/images1/21.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/images1/21.jpg -------------------------------------------------------------------------------- /WebContent/images1/210.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/images1/210.jpg -------------------------------------------------------------------------------- /WebContent/images1/211.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/images1/211.jpg -------------------------------------------------------------------------------- /WebContent/index.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/index.jsp -------------------------------------------------------------------------------- /WebContent/js/CssAdmin.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-color: #FFFFFF; 3 | font-size: 12px; 4 | line-height: 16px; 5 | } 6 | A:link { 7 | color: #2f2f2f; 8 | text-decoration: none; 9 | } 10 | A:visited { 11 | color: #2f2f2f; 12 | text-decoration: none; 13 | } 14 | A:hover { 15 | color: #FF6600; 16 | text-decoration: none; 17 | } 18 | td { 19 | font-size: 12px; 20 | color: #2f2f2f; 21 | line-height: 16px; 22 | } 23 | 24 | td.SystemLeft { 25 | font-size: 12px; 26 | color: #0f42a6; 27 | font-weight:bold; 28 | } 29 | td.SystemLeft A:link { 30 | color: #003EBD; 31 | text-decoration: none; 32 | } 33 | td.SystemLeft A:visited { 34 | color: #003EBD; 35 | text-decoration: none; 36 | } 37 | td.SystemLeft A:hover { 38 | color: #ffffff; 39 | text-decoration: none; 40 | } 41 | textarea.ConstSet { 42 | background-color: #F8FAFC; 43 | border: 1px solid #8DB5E9; 44 | border-top: #8DB5E9 1px ridge; 45 | border-left: #8DB5E9 1px ridge; 46 | color: #333333; 47 | scrollbar-3dlight-color:#DAE4EF; 48 | scrollbar-arrow-color:#FFFFFF; 49 | scrollbar-darkshadow-color:#DAE4EF; 50 | scrollbar-face-color:#DAE4EF; 51 | scrollbar-highlight-color:#DAE4EF; 52 | scrollbar-shadow-color:#DAE4EF; 53 | scrollbar-track-color:#F8FAFC; 54 | } 55 | .button { 56 | border-left: #ffffff 1px ridge; 57 | border-right: #333333 1px ridge; 58 | border-top: #ffffff 1px ridge; 59 | border-bottom: #1c1c1c 1px ridge; 60 | font-size: 12px; 61 | color: #1c1c1c; 62 | background-color: #EBF2F9; 63 | cursor: hand; 64 | } 65 | .textfield{ 66 | border-top-width:1px; 67 | border-bottom-width:2px; 68 | border-left-width:1px; 69 | border-right-width:2px; 70 | font-size: 12px; 71 | color: #2f2f2f; 72 | } 73 | 74 | 75 | .SortFolderOpen { 76 | /*background-image: url(../admin/Images/Sort_Folder_Close.gif);*/ 77 | background-repeat: no-repeat; 78 | height: 16px; 79 | left: 16px; 80 | padding-left: 16px; 81 | cursor: hand; 82 | } 83 | .SortFolderClose { 84 | /* background-image: url(../admin/Images/Sort_Folder_Open.gif);*/ 85 | background-repeat: no-repeat; 86 | height: 16px; 87 | left: 16px; 88 | padding-left: 16px; 89 | cursor: hand; 90 | } 91 | .SortEndFolderOpen { 92 | /* background-image: url(../admin/Images/SortEnd_Folder_Close.gif);*/ 93 | background-repeat: no-repeat; 94 | height: 16px; 95 | left: 16px; 96 | padding-left: 16px; 97 | cursor: hand; 98 | } 99 | .SortEndFolderClose { 100 | /* background-image: url(../admin/Images/SortEnd_Folder_Open.gif);*/ 101 | background-repeat: no-repeat; 102 | height: 16px; 103 | left: 16px; 104 | padding-left: 16px; 105 | cursor: hand; 106 | } 107 | .SortListline { 108 | padding-left: 16px; 109 | /* background-image: url(../admin/Images/Sort_Listline.gif);*/ 110 | background-repeat: repeat-y; 111 | } 112 | .SortEndListline { 113 | padding-left: 16px; 114 | } 115 | .SortFile { 116 | /* background-image: url(../admin/Images/Sort_File.gif);*/ 117 | background-repeat: no-repeat; 118 | height: 16px; 119 | cursor: hand; 120 | padding-left: 16px; 121 | } 122 | .SortFileEnd { 123 | /* background-image: url(../admin/Images/Sort_File_End.gif);*/ 124 | background-repeat: no-repeat; 125 | height: 16px; 126 | cursor: hand; 127 | padding-left: 16px; 128 | } 129 | -------------------------------------------------------------------------------- /WebContent/js/css.css: -------------------------------------------------------------------------------- 1 | /* CSS Document */ 2 | 3 | .bg { 4 | background-color: #235789; 5 | margin: 0px; 6 | } 7 | .FontWit { 8 | font-family: "楷体_GB2312", "System"; 9 | font-size: 16px; 10 | line-height: 22px; 11 | color: #FFFFFF; 12 | } 13 | -------------------------------------------------------------------------------- /WebContent/loginmsg/loginFailed.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 登录失败 7 | 8 | 9 |
10 |

登录失败

点此处返回登录页面 11 |
12 | 13 | -------------------------------------------------------------------------------- /WebContent/student/SysCome.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/student/SysCome.jsp -------------------------------------------------------------------------------- /WebContent/student/SysHead.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/student/SysHead.jsp -------------------------------------------------------------------------------- /WebContent/student/SysLeft.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/student/SysLeft.jsp -------------------------------------------------------------------------------- /WebContent/student/SysTop.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/student/SysTop.jsp -------------------------------------------------------------------------------- /WebContent/student/check.jsp: -------------------------------------------------------------------------------- 1 | <%@page pageEncoding="GBK" import="vo.*, dao.*"%> 2 | <% 3 | Student student = (Student) session.getAttribute("user"); 4 | if (student == null || student.getNumber() == null) { 5 | response.sendRedirect("../index.jsp"); 6 | return; 7 | } 8 | %> 9 | -------------------------------------------------------------------------------- /WebContent/student/msg.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/student/msg.jsp -------------------------------------------------------------------------------- /WebContent/student/student.jsp: -------------------------------------------------------------------------------- 1 | <%@page pageEncoding="GBK"%> 2 | <%@include file="check.jsp"%> 3 | 4 | 5 | 6 | 7 | 18 | 19 | 21 | 23 | 24 | 29 | 30 | 31 | 37 | 42 | 43 | 48 | 49 | 50 | 54 | 55 |
40 | 3 41 |
56 | 57 | -------------------------------------------------------------------------------- /WebContent/student/student_add.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/student/student_add.jsp -------------------------------------------------------------------------------- /WebContent/student/task_choose.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/student/task_choose.jsp -------------------------------------------------------------------------------- /WebContent/student/task_list.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/student/task_list.jsp -------------------------------------------------------------------------------- /WebContent/student/task_list2.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/student/task_list2.jsp -------------------------------------------------------------------------------- /WebContent/student/task_mysel.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/student/task_mysel.jsp -------------------------------------------------------------------------------- /WebContent/teacher/NewFile.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.* ,vo.*,util.*,dao.*" 2 | pageEncoding="UTF-8"%> 3 | <%@ include file="check.jsp"%> 4 | 5 | 6 | 7 | 8 | Insert title here 9 | 10 | 11 | 尊敬的老师,你还可以选<%=teacher.getGroup()%>道题目 12 | <% 13 | String str = teacher.getGroup(); 14 | int n= Integer.valueOf(str); 15 | if(n>0) 16 | { 17 | %> 18 | >添加课题 20 | <%}else{%> 21 |
您已经不能添加题目 22 | <% } %> 23 | 24 | -------------------------------------------------------------------------------- /WebContent/teacher/SysCome.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/teacher/SysCome.jsp -------------------------------------------------------------------------------- /WebContent/teacher/SysHead.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/teacher/SysHead.jsp -------------------------------------------------------------------------------- /WebContent/teacher/SysLeft.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/teacher/SysLeft.jsp -------------------------------------------------------------------------------- /WebContent/teacher/SysTop.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/teacher/SysTop.jsp -------------------------------------------------------------------------------- /WebContent/teacher/check.jsp: -------------------------------------------------------------------------------- 1 | <%@page pageEncoding="GBK" import="vo.*, dao.*"%> 2 | <% 3 | Teacher teacher = (Teacher)session.getAttribute("user"); 4 | if(teacher==null || teacher.getNumber()==null) { 5 | response.sendRedirect("../index.jsp"); 6 | return ; 7 | } 8 | request.getSession().setAttribute("teacher", teacher); 9 | %> 10 | -------------------------------------------------------------------------------- /WebContent/teacher/msg.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/teacher/msg.jsp -------------------------------------------------------------------------------- /WebContent/teacher/task_add.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/teacher/task_add.jsp -------------------------------------------------------------------------------- /WebContent/teacher/task_add2.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/teacher/task_add2.jsp -------------------------------------------------------------------------------- /WebContent/teacher/task_list.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/teacher/task_list.jsp -------------------------------------------------------------------------------- /WebContent/teacher/task_list2.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/teacher/task_list2.jsp -------------------------------------------------------------------------------- /WebContent/teacher/task_mysel.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/teacher/task_mysel.jsp -------------------------------------------------------------------------------- /WebContent/teacher/task_mysel2.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/teacher/task_mysel2.jsp -------------------------------------------------------------------------------- /WebContent/teacher/task_validate.jsp: -------------------------------------------------------------------------------- 1 | <%@page import="vo.*, dao.*"%> 2 | <% 3 | response.setContentType("text/xml"); 4 | response.setHeader("Cache-Control", "no-store"); //HTTP1.1 5 | response.setHeader("Pragma", "no-cache"); //HTTP1.0 6 | response.setDateHeader("Expires", 0); //prevents catching at proxy server 7 | String id = request.getParameter("id"); 8 | Topic user = TopicManager.getByNum(id); 9 | //check the database 10 | if (user == null) { 11 | response.getWriter().write("valid"); 12 | } else 13 | response.getWriter().write("invalid"); 14 | %> 15 | -------------------------------------------------------------------------------- /WebContent/teacher/task_validate2.jsp: -------------------------------------------------------------------------------- 1 | <%@page import="vo.*, dao.*"%> 2 | <%@page pageEncoding="GBK"%> 3 | <% 4 | response.setContentType("text/xml"); 5 | response.setHeader("Cache-Control", "no-store"); //HTTP1.1 6 | response.setHeader("Pragma", "no-cache"); //HTTP1.0 7 | response.setDateHeader("Expires", 0); //prevents catching at proxy server 8 | request.setCharacterEncoding("GBK"); 9 | String id = request.getParameter("id"); 10 | String name = new String(request.getParameter("name").getBytes("ISO8859_1"), "GBK"); 11 | Topic user = TopicManager.getByTnumAndHname(id, name); 12 | //check the database 13 | if (user == null) { 14 | response.getWriter().write("valid"); 15 | } else 16 | response.getWriter().write("invalid"); 17 | %> 18 | -------------------------------------------------------------------------------- /WebContent/teacher/teacher.jsp: -------------------------------------------------------------------------------- 1 | <%@page pageEncoding="GBK"%> 2 | <%@ include file="check.jsp"%> 3 | 4 | 5 | 6 | 7 | 18 | 19 | 20 | 22 | 24 | 25 | 30 | 31 | 32 | 38 | 43 | 44 | 49 | 50 | 51 | 55 | 56 |
41 | 3 42 |
57 | 58 | -------------------------------------------------------------------------------- /WebContent/teacher/teacher_edit.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/WebContent/teacher/teacher_edit.jsp -------------------------------------------------------------------------------- /build/classes/dao/MsgManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/build/classes/dao/MsgManager.class -------------------------------------------------------------------------------- /build/classes/dao/PasswordNotCorrectException.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/build/classes/dao/PasswordNotCorrectException.class -------------------------------------------------------------------------------- /build/classes/dao/StudentManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/build/classes/dao/StudentManager.class -------------------------------------------------------------------------------- /build/classes/dao/TeacherManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/build/classes/dao/TeacherManager.class -------------------------------------------------------------------------------- /build/classes/dao/TopicManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/build/classes/dao/TopicManager.class -------------------------------------------------------------------------------- /build/classes/dao/UserNotFoundException.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/build/classes/dao/UserNotFoundException.class -------------------------------------------------------------------------------- /build/classes/servlet/AdminServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/build/classes/servlet/AdminServlet.class -------------------------------------------------------------------------------- /build/classes/servlet/LoginServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/build/classes/servlet/LoginServlet.class -------------------------------------------------------------------------------- /build/classes/servlet/StudentServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/build/classes/servlet/StudentServlet.class -------------------------------------------------------------------------------- /build/classes/servlet/TeacherServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/build/classes/servlet/TeacherServlet.class -------------------------------------------------------------------------------- /build/classes/util/DB.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/build/classes/util/DB.class -------------------------------------------------------------------------------- /build/classes/util/FileUpLoad.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/build/classes/util/FileUpLoad.class -------------------------------------------------------------------------------- /build/classes/vo/Msg.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/build/classes/vo/Msg.class -------------------------------------------------------------------------------- /build/classes/vo/Student.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/build/classes/vo/Student.class -------------------------------------------------------------------------------- /build/classes/vo/Teacher.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/build/classes/vo/Teacher.class -------------------------------------------------------------------------------- /build/classes/vo/Topic.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/build/classes/vo/Topic.class -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/NewFile.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 8 | RunJS 演示代码 9 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/NewFile1.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 1 10 | -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/WEB-INF/classes/dao/MsgManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/WEB-INF/classes/dao/MsgManager.class -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/WEB-INF/classes/dao/PasswordNotCorrectException.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/WEB-INF/classes/dao/PasswordNotCorrectException.class -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/WEB-INF/classes/dao/StudentManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/WEB-INF/classes/dao/StudentManager.class -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/WEB-INF/classes/dao/TeacherManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/WEB-INF/classes/dao/TeacherManager.class -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/WEB-INF/classes/dao/TopicManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/WEB-INF/classes/dao/TopicManager.class -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/WEB-INF/classes/dao/UserNotFoundException.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/WEB-INF/classes/dao/UserNotFoundException.class -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/WEB-INF/classes/servlet/AdminServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/WEB-INF/classes/servlet/AdminServlet.class -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/WEB-INF/classes/servlet/LoginServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/WEB-INF/classes/servlet/LoginServlet.class -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/WEB-INF/classes/servlet/StudentServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/WEB-INF/classes/servlet/StudentServlet.class -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/WEB-INF/classes/servlet/TeacherServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/WEB-INF/classes/servlet/TeacherServlet.class -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/WEB-INF/classes/util/DB.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/WEB-INF/classes/util/DB.class -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/WEB-INF/classes/util/FileUpLoad.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/WEB-INF/classes/util/FileUpLoad.class -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/WEB-INF/classes/vo/Msg.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/WEB-INF/classes/vo/Msg.class -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/WEB-INF/classes/vo/Student.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/WEB-INF/classes/vo/Student.class -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/WEB-INF/classes/vo/Teacher.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/WEB-INF/classes/vo/Teacher.class -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/WEB-INF/classes/vo/Topic.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/WEB-INF/classes/vo/Topic.class -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/WEB-INF/lib/jstl-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/WEB-INF/lib/jstl-1.2.jar -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/WEB-INF/lib/jxl.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/WEB-INF/lib/jxl.jar -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/WEB-INF/lib/mysql-connector-java-5.1.18-bin.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/WEB-INF/lib/mysql-connector-java-5.1.18-bin.jar -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/WEB-INF/lib/servlet-api.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/WEB-INF/lib/servlet-api.jar -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | LoginServlet 10 | servlet.LoginServlet 11 | 12 | 13 | StudentServlet 14 | servlet.StudentServlet 15 | 16 | 17 | TeacherServlet 18 | servlet.TeacherServlet 19 | 20 | 21 | AdminServlet 22 | servlet.AdminServlet 23 | 24 | 25 | 26 | 27 | AdminServlet 28 | /admin 29 | 30 | 31 | TeacherServlet 32 | /teacher 33 | 34 | 35 | StudentServlet 36 | /student 37 | 38 | 39 | LoginServlet 40 | /login 41 | 42 | 43 | 44 | /index.jsp 45 | 46 | 47 | -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/admin/SysCome.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/admin/SysCome.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/admin/SysHead.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/admin/SysHead.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/admin/SysLeft.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/admin/SysLeft.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/admin/SysTop.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/admin/SysTop.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/admin/admin.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/admin/admin.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/admin/check.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="GBK"%> 2 | <%@page import="vo.*, dao.*"%> 3 | <% 4 | Teacher teacher = (Teacher) session.getAttribute("user"); 5 | int ty = 0; 6 | if (teacher == null) 7 | response.sendRedirect("../index.jsp"); 8 | else { 9 | ty = (Integer) session.getAttribute("type"); 10 | if (ty != 3) 11 | response.sendRedirect("../index.jsp"); 12 | } 13 | %> 14 | -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/admin/control_student.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/admin/control_student.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/admin/control_teacher.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/admin/control_teacher.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/admin/download/student.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/admin/download/student.xls -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/admin/download/teacher.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/admin/download/teacher.xls -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/admin/student_Padd.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/admin/student_Padd.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/admin/student_add.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/admin/student_add.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/admin/student_adds.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/admin/student_adds.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/admin/student_list.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/admin/student_list.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/admin/student_validate.jsp: -------------------------------------------------------------------------------- 1 | <%@page import="vo.*, dao.*"%> 2 | <% 3 | response.setContentType("text/xml"); 4 | response.setHeader("Cache-Control", "no-store"); //HTTP1.1 5 | response.setHeader("Pragma", "no-cache"); //HTTP1.0 6 | response.setDateHeader("Expires", 0); //prevents catching at proxy server 7 | String id = request.getParameter("id"); 8 | Student user = StudentManager.getBySno(id); 9 | //check the database 10 | if (user == null) { 11 | response.getWriter().write("valid"); 12 | } else 13 | response.getWriter().write("invalid"); 14 | %> 15 | -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/admin/task_add.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/admin/task_add.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/admin/task_list.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/admin/task_list.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/admin/task_list2.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/admin/task_list2.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/admin/task_verify.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/admin/task_verify.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/admin/teacher_Padd.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/admin/teacher_Padd.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/admin/teacher_add.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/admin/teacher_add.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/admin/teacher_adds.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/admin/teacher_adds.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/admin/teacher_list.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/admin/teacher_list.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/admin/teacher_validate.jsp: -------------------------------------------------------------------------------- 1 | <%@page import="vo.*, dao.*"%> 2 | <% 3 | response.setContentType("text/xml"); 4 | response.setHeader("Cache-Control", "no-store"); //HTTP1.1 5 | response.setHeader("Pragma", "no-cache"); //HTTP1.0 6 | response.setDateHeader("Expires", 0); //prevents catching at proxy server 7 | String id = request.getParameter("id"); 8 | Teacher user = TeacherManager.getByTno(id); 9 | 10 | if (user == null) { 11 | response.getWriter().write("valid"); 12 | } else 13 | response.getWriter().write("invalid"); 14 | %> 15 | -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/images1/02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/images1/02.jpg -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/images1/04.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/images1/04.jpg -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/images1/043.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/images1/043.jpg -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/images1/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/images1/1.jpg -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/images1/21.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/images1/21.jpg -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/images1/210.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/images1/210.jpg -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/images1/211.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/images1/211.jpg -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/index.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/index.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/js/CssAdmin.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-color: #FFFFFF; 3 | font-size: 12px; 4 | line-height: 16px; 5 | } 6 | A:link { 7 | color: #2f2f2f; 8 | text-decoration: none; 9 | } 10 | A:visited { 11 | color: #2f2f2f; 12 | text-decoration: none; 13 | } 14 | A:hover { 15 | color: #FF6600; 16 | text-decoration: none; 17 | } 18 | td { 19 | font-size: 12px; 20 | color: #2f2f2f; 21 | line-height: 16px; 22 | } 23 | 24 | td.SystemLeft { 25 | font-size: 12px; 26 | color: #0f42a6; 27 | font-weight:bold; 28 | } 29 | td.SystemLeft A:link { 30 | color: #003EBD; 31 | text-decoration: none; 32 | } 33 | td.SystemLeft A:visited { 34 | color: #003EBD; 35 | text-decoration: none; 36 | } 37 | td.SystemLeft A:hover { 38 | color: #ffffff; 39 | text-decoration: none; 40 | } 41 | textarea.ConstSet { 42 | background-color: #F8FAFC; 43 | border: 1px solid #8DB5E9; 44 | border-top: #8DB5E9 1px ridge; 45 | border-left: #8DB5E9 1px ridge; 46 | color: #333333; 47 | scrollbar-3dlight-color:#DAE4EF; 48 | scrollbar-arrow-color:#FFFFFF; 49 | scrollbar-darkshadow-color:#DAE4EF; 50 | scrollbar-face-color:#DAE4EF; 51 | scrollbar-highlight-color:#DAE4EF; 52 | scrollbar-shadow-color:#DAE4EF; 53 | scrollbar-track-color:#F8FAFC; 54 | } 55 | .button { 56 | border-left: #ffffff 1px ridge; 57 | border-right: #333333 1px ridge; 58 | border-top: #ffffff 1px ridge; 59 | border-bottom: #1c1c1c 1px ridge; 60 | font-size: 12px; 61 | color: #1c1c1c; 62 | background-color: #EBF2F9; 63 | cursor: hand; 64 | } 65 | .textfield{ 66 | border-top-width:1px; 67 | border-bottom-width:2px; 68 | border-left-width:1px; 69 | border-right-width:2px; 70 | font-size: 12px; 71 | color: #2f2f2f; 72 | } 73 | 74 | 75 | .SortFolderOpen { 76 | /*background-image: url(../admin/Images/Sort_Folder_Close.gif);*/ 77 | background-repeat: no-repeat; 78 | height: 16px; 79 | left: 16px; 80 | padding-left: 16px; 81 | cursor: hand; 82 | } 83 | .SortFolderClose { 84 | /* background-image: url(../admin/Images/Sort_Folder_Open.gif);*/ 85 | background-repeat: no-repeat; 86 | height: 16px; 87 | left: 16px; 88 | padding-left: 16px; 89 | cursor: hand; 90 | } 91 | .SortEndFolderOpen { 92 | /* background-image: url(../admin/Images/SortEnd_Folder_Close.gif);*/ 93 | background-repeat: no-repeat; 94 | height: 16px; 95 | left: 16px; 96 | padding-left: 16px; 97 | cursor: hand; 98 | } 99 | .SortEndFolderClose { 100 | /* background-image: url(../admin/Images/SortEnd_Folder_Open.gif);*/ 101 | background-repeat: no-repeat; 102 | height: 16px; 103 | left: 16px; 104 | padding-left: 16px; 105 | cursor: hand; 106 | } 107 | .SortListline { 108 | padding-left: 16px; 109 | /* background-image: url(../admin/Images/Sort_Listline.gif);*/ 110 | background-repeat: repeat-y; 111 | } 112 | .SortEndListline { 113 | padding-left: 16px; 114 | } 115 | .SortFile { 116 | /* background-image: url(../admin/Images/Sort_File.gif);*/ 117 | background-repeat: no-repeat; 118 | height: 16px; 119 | cursor: hand; 120 | padding-left: 16px; 121 | } 122 | .SortFileEnd { 123 | /* background-image: url(../admin/Images/Sort_File_End.gif);*/ 124 | background-repeat: no-repeat; 125 | height: 16px; 126 | cursor: hand; 127 | padding-left: 16px; 128 | } 129 | -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/js/css.css: -------------------------------------------------------------------------------- 1 | /* CSS Document */ 2 | 3 | .bg { 4 | background-color: #235789; 5 | margin: 0px; 6 | } 7 | .FontWit { 8 | font-family: "楷体_GB2312", "System"; 9 | font-size: 16px; 10 | line-height: 22px; 11 | color: #FFFFFF; 12 | } 13 | -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/loginmsg/loginFailed.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 登录失败 7 | 8 | 9 |
10 |

登录失败

点此处返回登录页面 11 |
12 | 13 | -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/student/SysCome.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/student/SysCome.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/student/SysHead.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/student/SysHead.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/student/SysLeft.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/student/SysLeft.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/student/SysTop.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/student/SysTop.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/student/check.jsp: -------------------------------------------------------------------------------- 1 | <%@page pageEncoding="GBK" import="vo.*, dao.*"%> 2 | <% 3 | Student student = (Student) session.getAttribute("user"); 4 | if (student == null || student.getNumber() == null) { 5 | response.sendRedirect("../index.jsp"); 6 | return; 7 | } 8 | %> 9 | -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/student/msg.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/student/msg.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/student/student.jsp: -------------------------------------------------------------------------------- 1 | <%@page pageEncoding="GBK"%> 2 | <%@include file="check.jsp"%> 3 | 4 | 5 | 6 | 7 | 18 | 19 | 21 | 23 | 24 | 29 | 30 | 31 | 37 | 42 | 43 | 48 | 49 | 50 | 54 | 55 |
40 | 3 41 |
56 | 57 | -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/student/student_add.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/student/student_add.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/student/task_choose.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/student/task_choose.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/student/task_list.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/student/task_list.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/student/task_list2.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/student/task_list2.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/student/task_mysel.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/student/task_mysel.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/teacher/NewFile.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.* ,vo.*,util.*,dao.*" 2 | pageEncoding="UTF-8"%> 3 | <%@ include file="check.jsp"%> 4 | 5 | 6 | 7 | 8 | Insert title here 9 | 10 | 11 | 尊敬的老师,你还可以选<%=teacher.getGroup()%>道题目 12 | <% 13 | String str = teacher.getGroup(); 14 | int n= Integer.valueOf(str); 15 | if(n>0) 16 | { 17 | %> 18 | >添加课题 20 | <%}else{%> 21 |
您已经不能添加题目 22 | <% } %> 23 | 24 | -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/teacher/SysCome.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/teacher/SysCome.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/teacher/SysHead.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/teacher/SysHead.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/teacher/SysLeft.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/teacher/SysLeft.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/teacher/SysTop.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/teacher/SysTop.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/teacher/check.jsp: -------------------------------------------------------------------------------- 1 | <%@page pageEncoding="GBK" import="vo.*, dao.*"%> 2 | <% 3 | Teacher teacher = (Teacher)session.getAttribute("user"); 4 | if(teacher==null || teacher.getNumber()==null) { 5 | response.sendRedirect("../index.jsp"); 6 | return ; 7 | } 8 | request.getSession().setAttribute("teacher", teacher); 9 | %> 10 | -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/teacher/msg.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/teacher/msg.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/teacher/task_add.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/teacher/task_add.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/teacher/task_add2.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/teacher/task_add2.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/teacher/task_list.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/teacher/task_list.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/teacher/task_list2.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/teacher/task_list2.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/teacher/task_mysel.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/teacher/task_mysel.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/teacher/task_mysel2.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/teacher/task_mysel2.jsp -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/teacher/task_validate.jsp: -------------------------------------------------------------------------------- 1 | <%@page import="vo.*, dao.*"%> 2 | <% 3 | response.setContentType("text/xml"); 4 | response.setHeader("Cache-Control", "no-store"); //HTTP1.1 5 | response.setHeader("Pragma", "no-cache"); //HTTP1.0 6 | response.setDateHeader("Expires", 0); //prevents catching at proxy server 7 | String id = request.getParameter("id"); 8 | Topic user = TopicManager.getByNum(id); 9 | //check the database 10 | if (user == null) { 11 | response.getWriter().write("valid"); 12 | } else 13 | response.getWriter().write("invalid"); 14 | %> 15 | -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/teacher/task_validate2.jsp: -------------------------------------------------------------------------------- 1 | <%@page import="vo.*, dao.*"%> 2 | <%@page pageEncoding="GBK"%> 3 | <% 4 | response.setContentType("text/xml"); 5 | response.setHeader("Cache-Control", "no-store"); //HTTP1.1 6 | response.setHeader("Pragma", "no-cache"); //HTTP1.0 7 | response.setDateHeader("Expires", 0); //prevents catching at proxy server 8 | request.setCharacterEncoding("GBK"); 9 | String id = request.getParameter("id"); 10 | String name = new String(request.getParameter("name").getBytes("ISO8859_1"), "GBK"); 11 | Topic user = TopicManager.getByTnumAndHname(id, name); 12 | //check the database 13 | if (user == null) { 14 | response.getWriter().write("valid"); 15 | } else 16 | response.getWriter().write("invalid"); 17 | %> 18 | -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/teacher/teacher.jsp: -------------------------------------------------------------------------------- 1 | <%@page pageEncoding="GBK"%> 2 | <%@ include file="check.jsp"%> 3 | 4 | 5 | 6 | 7 | 18 | 19 | 20 | 22 | 24 | 25 | 30 | 31 | 32 | 38 | 43 | 44 | 49 | 50 | 51 | 55 | 56 |
41 | 3 42 |
57 | 58 | -------------------------------------------------------------------------------- /classes/artifacts/work_war_exploded/teacher/teacher_edit.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/classes/artifacts/work_war_exploded/teacher/teacher_edit.jsp -------------------------------------------------------------------------------- /src/dao/MsgManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/src/dao/MsgManager.java -------------------------------------------------------------------------------- /src/dao/PasswordNotCorrectException.java: -------------------------------------------------------------------------------- 1 | package dao; 2 | 3 | public class PasswordNotCorrectException extends RuntimeException { 4 | 5 | public PasswordNotCorrectException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/dao/StudentManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/src/dao/StudentManager.java -------------------------------------------------------------------------------- /src/dao/TeacherManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/src/dao/TeacherManager.java -------------------------------------------------------------------------------- /src/dao/TopicManager.java: -------------------------------------------------------------------------------- 1 | package dao; 2 | 3 | import java.sql.Connection; 4 | import java.sql.PreparedStatement; 5 | import java.sql.ResultSet; 6 | import java.sql.SQLException; 7 | import java.sql.Statement; 8 | import java.util.ArrayList; 9 | import java.util.List; 10 | 11 | import util.DB; 12 | import vo.Topic; 13 | 14 | public class TopicManager { 15 | 16 | public static boolean save(Topic t) { 17 | Connection conn = DB.getConn(); 18 | String sql = null; 19 | boolean b = false; 20 | sql = "insert into topic_info values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"; 21 | PreparedStatement pstmt = DB.prepare(conn, sql); 22 | try { 23 | pstmt.setString(1, t.getNumber()); 24 | pstmt.setString(2, t.getName()); 25 | pstmt.setString(3, t.getType()); 26 | pstmt.setString(4, t.getKind()); 27 | pstmt.setString(5, t.getSource()); 28 | pstmt.setString(6, t.getStatus()); 29 | pstmt.setString(7, t.getContent()); 30 | pstmt.setString(8, t.getResult()); 31 | pstmt.setString(9, t.getDirection()); 32 | pstmt.setString(10, t.getTnumber()); 33 | pstmt.setString(11, t.getSnumber()); 34 | pstmt.execute(); 35 | b = true; 36 | } catch (SQLException e) { 37 | e.printStackTrace(); 38 | } finally { 39 | DB.close(pstmt); 40 | DB.close(conn); 41 | } 42 | return b; 43 | } 44 | 45 | public static int getTopics(List topics, int pageNo, int pageSize, boolean status) { 46 | 47 | int totalRecords = -1; 48 | 49 | Connection conn = DB.getConn(); 50 | String sql = null; 51 | if(status==true) 52 | sql = "select * from topic_info where hstatus='" + status + "'limit " + (pageNo - 1) * pageSize + "," + pageSize; 53 | else 54 | sql = "select * from topic_info limit " + (pageNo - 1) * pageSize + "," + pageSize; 55 | Statement stmt = DB.getStatement(conn); 56 | ResultSet rs = DB.getResultSet(stmt, sql); 57 | 58 | Statement stmtCount = DB.getStatement(conn); 59 | ResultSet rsCount = null; 60 | rsCount = DB.getResultSet(stmtCount, "select count(*) from topic_info"); 61 | 62 | try { 63 | rsCount.next(); 64 | totalRecords = rsCount.getInt(1); 65 | 66 | while (rs.next()) { 67 | Topic topic = new Topic(); 68 | topic.setContent(rs.getString("hcontent")); 69 | topic.setDirection(rs.getString("direction")); 70 | topic.setKind(rs.getString("hkind")); 71 | topic.setName(rs.getString("hname")); 72 | topic.setNumber(rs.getString("hno")); 73 | topic.setResult(rs.getString("hresult")); 74 | topic.setSnumber(rs.getString("sno")); 75 | topic.setSource(rs.getString("hsource")); 76 | topic.setStatus(rs.getString("hstatus")); 77 | topic.setType(rs.getString("htype")); 78 | topic.setTnumber(rs.getString("tno")); 79 | topics.add(topic); 80 | } 81 | } catch (SQLException e) { 82 | e.printStackTrace(); 83 | } finally { 84 | DB.close(rsCount); 85 | DB.close(stmtCount); 86 | DB.close(rs); 87 | DB.close(stmt); 88 | DB.close(conn); 89 | } 90 | 91 | return totalRecords; 92 | } 93 | 94 | public static boolean deleteByHno(String hno) { 95 | boolean b = false; 96 | Connection conn = DB.getConn(); 97 | String sql = null; 98 | sql = "delete from topic_info where hno = '" + hno + "'"; 99 | Statement stmt = DB.getStatement(conn); 100 | try { 101 | DB.executeUpdate(stmt, sql); 102 | b = true; 103 | } catch (Exception e) { 104 | e.printStackTrace(); 105 | } finally { 106 | DB.close(stmt); 107 | DB.close(conn); 108 | } 109 | return b; 110 | } 111 | 112 | public static boolean check(String tno, String hname) { 113 | boolean b = false; 114 | Connection conn = DB.getConn(); 115 | String sql = null; 116 | sql = "select * from topic_info where tno = '" + tno + "'"; 117 | Statement stmt = DB.getStatement(conn); 118 | ResultSet rs = DB.getResultSet(stmt, sql); 119 | try { 120 | if (rs.next()) 121 | b = true; 122 | } catch (SQLException e) { 123 | e.printStackTrace(); 124 | } finally { 125 | DB.close(rs); 126 | DB.close(stmt); 127 | DB.close(conn); 128 | } 129 | return b; 130 | } 131 | 132 | public static boolean update(Topic t) { 133 | Connection conn = DB.getConn(); 134 | String sql = null; 135 | boolean b = false; 136 | sql = "update topic_info set htype=?, tno=?, hname=?, hsource=?, hkind=?, hstatus=?, hresult=?, sno=?, direction=?, hcontent=? where hno = ?"; 137 | PreparedStatement pstmt = DB.prepare(conn, sql); 138 | try { 139 | pstmt.setString(1, t.getType()); 140 | pstmt.setString(2, t.getTnumber()); 141 | pstmt.setString(3, t.getName()); 142 | pstmt.setString(4, t.getSource()); 143 | pstmt.setString(5, t.getKind()); 144 | pstmt.setString(6, t.getStatus()); 145 | pstmt.setString(7, t.getResult()); 146 | pstmt.setString(8, t.getSnumber()); 147 | pstmt.setString(9, t.getDirection()); 148 | pstmt.setString(10, t.getContent()); 149 | pstmt.setString(11, t.getNumber()); 150 | pstmt.executeUpdate(); 151 | b = true; 152 | } catch (SQLException e) { 153 | e.printStackTrace(); 154 | } finally { 155 | DB.close(pstmt); 156 | DB.close(conn); 157 | } 158 | return b; 159 | } 160 | 161 | public static boolean updatesno(String hno) { 162 | boolean b = false; 163 | 164 | Connection conn = DB.getConn(); 165 | String sql2 = "select * from topic_info where hno = '" + hno + "'"; 166 | Statement stmt = DB.getStatement(conn); 167 | ResultSet rs = DB.getResultSet(stmt, sql2); 168 | Topic t = new Topic(); 169 | try { 170 | if (rs.next()){ 171 | t.setContent(rs.getString("hcontent")); 172 | t.setDirection(rs.getString("direction")); 173 | t.setKind(rs.getString("hkind")); 174 | t.setName(rs.getString("hname")); 175 | t.setNumber(rs.getString("hno")); 176 | t.setResult(rs.getString("hresult")); 177 | t.setSnumber(rs.getString("sno")); 178 | t.setSource(rs.getString("hsource")); 179 | t.setStatus(rs.getString("hstatus")); 180 | t.setType(rs.getString("htype")); 181 | t.setTnumber(rs.getString("tno")); 182 | } 183 | } catch (SQLException e1) { 184 | e1.printStackTrace(); 185 | DB.close(stmt); 186 | DB.close(conn); 187 | return b; 188 | } 189 | String sql3 = "delete from topic_info where hno = '" + hno + "'"; 190 | PreparedStatement pstmt3 = DB.prepare(conn, sql3); 191 | try { 192 | pstmt3.executeUpdate(); 193 | } catch (SQLException e1) { 194 | e1.printStackTrace(); 195 | DB.close(pstmt3); 196 | DB.close(conn); 197 | return b; 198 | } 199 | 200 | String sql4 = "insert into topic_info (hno,hname,htype,hkind,hsource,hstatus,hcontent,hresult,direction,tno)values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"; 201 | PreparedStatement pstmt4 = DB.prepare(conn, sql4); 202 | try { 203 | pstmt4.setString(1, t.getNumber()); 204 | pstmt4.setString(2, t.getName()); 205 | pstmt4.setString(3, t.getType()); 206 | pstmt4.setString(4, t.getKind()); 207 | pstmt4.setString(5, t.getSource()); 208 | pstmt4.setString(6, t.getStatus()); 209 | pstmt4.setString(7, t.getContent()); 210 | pstmt4.setString(8, t.getResult()); 211 | pstmt4.setString(9, t.getDirection()); 212 | pstmt4.setString(10, t.getTnumber()); 213 | pstmt4.execute(); 214 | b = true; 215 | } catch (SQLException e) { 216 | e.printStackTrace(); 217 | } finally { 218 | DB.close(pstmt4); 219 | DB.close(conn); 220 | } 221 | 222 | /*String sql = "update topic_info set sno=? where hno = ?"; 223 | PreparedStatement pstmt = DB.prepare(conn, sql); 224 | try { 225 | pstmt.setString(1, ""); 226 | pstmt.setString(2, hno); 227 | pstmt.executeUpdate(); 228 | b = true; 229 | } catch (SQLException e) { 230 | e.printStackTrace(); 231 | } finally { 232 | DB.close(pstmt); 233 | DB.close(conn); 234 | }*/ 235 | return b; 236 | } 237 | 238 | public static Topic getByNum(String num) { 239 | Connection conn = DB.getConn(); 240 | String sql = null; 241 | sql = "select * from topic_info where hno='" + num + "'"; 242 | Statement stmt = DB.getStatement(conn); 243 | ResultSet rs = DB.getResultSet(stmt, sql); 244 | Topic topic = null; 245 | try { 246 | if (rs.next()) { 247 | topic = new Topic(); 248 | topic.setContent(rs.getString("hcontent")); 249 | topic.setDirection(rs.getString("direction")); 250 | topic.setKind(rs.getString("hkind")); 251 | topic.setName(rs.getString("hname")); 252 | topic.setNumber(rs.getString("hno")); 253 | topic.setResult(rs.getString("hresult")); 254 | topic.setSnumber(rs.getString("sno")); 255 | topic.setSource(rs.getString("hsource")); 256 | topic.setStatus(rs.getString("hstatus")); 257 | topic.setType(rs.getString("htype")); 258 | topic.setTnumber(rs.getString("tno")); 259 | } 260 | } catch (SQLException e) { 261 | e.printStackTrace(); 262 | } finally { 263 | DB.close(rs); 264 | DB.close(conn); 265 | } 266 | return topic; 267 | } 268 | 269 | public static List getByTno(String num) { 270 | Connection conn = DB.getConn(); 271 | String sql = null; 272 | List topics = new ArrayList(); 273 | sql = "select * from topic_info where tno='" + num + "'"; 274 | Statement stmt = DB.getStatement(conn); 275 | ResultSet rs = DB.getResultSet(stmt, sql); 276 | Topic topic = null; 277 | try { 278 | while (rs.next()) { 279 | topic = new Topic(); 280 | topic.setContent(rs.getString("hcontent")); 281 | topic.setDirection(rs.getString("direction")); 282 | topic.setKind(rs.getString("hkind")); 283 | topic.setName(rs.getString("hname")); 284 | topic.setNumber(rs.getString("hno")); 285 | topic.setResult(rs.getString("hresult")); 286 | topic.setSnumber(rs.getString("sno")); 287 | topic.setSource(rs.getString("hsource")); 288 | topic.setStatus(rs.getString("hstatus")); 289 | topic.setType(rs.getString("htype")); 290 | topic.setTnumber(rs.getString("tno")); 291 | topics.add(topic); 292 | } 293 | } catch (SQLException e) { 294 | e.printStackTrace(); 295 | } finally { 296 | DB.close(rs); 297 | DB.close(conn); 298 | } 299 | return topics; 300 | } 301 | 302 | public static int query(List topics, int pageNo, int pageSize, String str, String kind, String name, boolean status) { 303 | int totalRecords = -1; 304 | 305 | Connection conn = DB.getConn(); 306 | String sql = null; 307 | if (str == null) 308 | str = ""; 309 | if (kind == null) 310 | kind = ""; 311 | if (name == null) 312 | name = ""; 313 | if(status==true){ 314 | sql = "select * from topic_info where hstatus='" + status + "' hname like '%" + name + "%' and htype like '%" + str 315 | + "%' and hkind like '%" + kind + "%'"; 316 | sql += "limit " + (pageNo - 1) * pageSize + "," + pageSize; 317 | }else{ 318 | sql = "select * from topic_info where hname like '%" + name + "%' and htype like '%" + str 319 | + "%' and hkind like '%" + kind + "%'"; 320 | sql += "limit " + (pageNo - 1) * pageSize + "," + pageSize; 321 | } 322 | Statement stmt = DB.getStatement(conn); 323 | ResultSet rs = DB.getResultSet(stmt, sql); 324 | 325 | Statement stmtCount = DB.getStatement(conn); 326 | ResultSet rsCount = null; 327 | rsCount = DB.getResultSet(stmtCount, "select count(*) from topic_info where hname like '%" + name 328 | + "%' and htype like '%" + str + "%' and hkind like '%" + kind + "%'"); 329 | 330 | try { 331 | if (rsCount != null) 332 | rsCount.next(); 333 | totalRecords = rsCount.getInt(1); 334 | 335 | while (rs.next()) { 336 | Topic topic = new Topic(); 337 | topic.setContent(rs.getString("hcontent")); 338 | topic.setDirection(rs.getString("direction")); 339 | topic.setKind(rs.getString("hkind")); 340 | topic.setName(rs.getString("hname")); 341 | topic.setNumber(rs.getString("hno")); 342 | topic.setResult(rs.getString("hresult")); 343 | topic.setSnumber(rs.getString("sno")); 344 | topic.setSource(rs.getString("hsource")); 345 | topic.setStatus(rs.getString("hstatus")); 346 | topic.setType(rs.getString("htype")); 347 | topic.setTnumber(rs.getString("tno")); 348 | topics.add(topic); 349 | } 350 | } catch (SQLException e) { 351 | e.printStackTrace(); 352 | } finally { 353 | DB.close(rsCount); 354 | DB.close(stmtCount); 355 | DB.close(rs); 356 | DB.close(stmt); 357 | DB.close(conn); 358 | } 359 | 360 | return totalRecords; 361 | } 362 | 363 | public static List getByStatus(String num) { 364 | Connection conn = DB.getConn(); 365 | List topics = new ArrayList(); 366 | String sql = null; 367 | sql = "select * from topic_info where hstatus='" + num + "'"; 368 | Statement stmt = DB.getStatement(conn); 369 | ResultSet rs = DB.getResultSet(stmt, sql); 370 | Topic topic = null; 371 | try { 372 | while (rs.next()) { 373 | topic = new Topic(); 374 | topic.setContent(rs.getString("hcontent")); 375 | topic.setDirection(rs.getString("direction")); 376 | topic.setKind(rs.getString("hkind")); 377 | topic.setName(rs.getString("hname")); 378 | topic.setNumber(rs.getString("hno")); 379 | topic.setResult(rs.getString("hresult")); 380 | topic.setSnumber(rs.getString("sno")); 381 | topic.setSource(rs.getString("hsource")); 382 | topic.setStatus(rs.getString("hstatus")); 383 | topic.setType(rs.getString("htype")); 384 | topic.setTnumber(rs.getString("tno")); 385 | topics.add(topic); 386 | } 387 | } catch (SQLException e) { 388 | e.printStackTrace(); 389 | } finally { 390 | DB.close(rs); 391 | DB.close(conn); 392 | } 393 | return topics; 394 | } 395 | 396 | public static Topic getBySnum(String num) { 397 | Connection conn = DB.getConn(); 398 | String sql = null; 399 | sql = "select * from topic_info where sno='" + num + "'"; 400 | Statement stmt = DB.getStatement(conn); 401 | ResultSet rs = DB.getResultSet(stmt, sql); 402 | Topic topic = null; 403 | try { 404 | if (rs.next()) { 405 | topic = new Topic(); 406 | topic.setContent(rs.getString("hcontent")); 407 | topic.setDirection(rs.getString("direction")); 408 | topic.setKind(rs.getString("hkind")); 409 | topic.setName(rs.getString("hname")); 410 | topic.setNumber(rs.getString("hno")); 411 | topic.setResult(rs.getString("hresult")); 412 | topic.setSnumber(rs.getString("sno")); 413 | topic.setSource(rs.getString("hsource")); 414 | topic.setStatus(rs.getString("hstatus")); 415 | topic.setType(rs.getString("htype")); 416 | topic.setTnumber(rs.getString("tno")); 417 | } 418 | } catch (SQLException e) { 419 | e.printStackTrace(); 420 | } finally { 421 | DB.close(rs); 422 | DB.close(conn); 423 | } 424 | return topic; 425 | } 426 | 427 | public static Topic getByTnumAndHname(String tnum, String hname) { 428 | Connection conn = DB.getConn(); 429 | String sql = null; 430 | sql = "select * from topic_info where tno='" + tnum + "' and hname='" + hname + "'"; 431 | Statement stmt = DB.getStatement(conn); 432 | ResultSet rs = DB.getResultSet(stmt, sql); 433 | Topic topic = null; 434 | try { 435 | if (rs.next()) { 436 | topic = new Topic(); 437 | topic.setContent(rs.getString("hcontent")); 438 | topic.setDirection(rs.getString("direction")); 439 | topic.setKind(rs.getString("hkind")); 440 | topic.setName(rs.getString("hname")); 441 | topic.setNumber(rs.getString("hno")); 442 | topic.setResult(rs.getString("hresult")); 443 | topic.setSnumber(rs.getString("sno")); 444 | topic.setSource(rs.getString("hsource")); 445 | topic.setStatus(rs.getString("hstatus")); 446 | topic.setType(rs.getString("htype")); 447 | topic.setTnumber(rs.getString("tno")); 448 | } 449 | } catch (SQLException e) { 450 | e.printStackTrace(); 451 | } finally { 452 | DB.close(rs); 453 | DB.close(conn); 454 | } 455 | return topic; 456 | } 457 | } 458 | -------------------------------------------------------------------------------- /src/dao/UserNotFoundException.java: -------------------------------------------------------------------------------- 1 | package dao; 2 | 3 | public class UserNotFoundException extends RuntimeException { 4 | 5 | public UserNotFoundException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/servlet/AdminServlet.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/src/servlet/AdminServlet.java -------------------------------------------------------------------------------- /src/servlet/LoginServlet.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/src/servlet/LoginServlet.java -------------------------------------------------------------------------------- /src/servlet/StudentServlet.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/src/servlet/StudentServlet.java -------------------------------------------------------------------------------- /src/servlet/TeacherServlet.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/src/servlet/TeacherServlet.java -------------------------------------------------------------------------------- /src/util/DB.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/src/util/DB.java -------------------------------------------------------------------------------- /src/util/FileUpLoad.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/src/util/FileUpLoad.java -------------------------------------------------------------------------------- /src/vo/Msg.java: -------------------------------------------------------------------------------- 1 | package vo; 2 | 3 | public class Msg { 4 | private String title; 5 | private String text; 6 | 7 | public String getTitle() { 8 | return title; 9 | } 10 | 11 | public void setTitle(String title) { 12 | this.title = title; 13 | } 14 | 15 | public String getText() { 16 | return text; 17 | } 18 | 19 | public void setText(String text) { 20 | this.text = text; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/vo/Student.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyangxiaobai/-Java-df-/ef3a4d8e35c21566a0182a24f74ae32f57755c6f/src/vo/Student.java -------------------------------------------------------------------------------- /src/vo/Teacher.java: -------------------------------------------------------------------------------- 1 | package vo; 2 | 3 | public class Teacher { 4 | 5 | private String name = null; 6 | private String password = null; 7 | private String phone = null; 8 | private String sex = null; 9 | private String number = null; 10 | private String email = null; 11 | private String degree = null; 12 | private String dept = null; 13 | private Short right = null; 14 | private String group = null; 15 | private String title = null; 16 | 17 | public String getName() { 18 | return name; 19 | } 20 | 21 | public void setName(String name) { 22 | this.name = name; 23 | } 24 | 25 | public String getPassword() { 26 | return password; 27 | } 28 | 29 | public void setPassword(String password) { 30 | this.password = password; 31 | } 32 | 33 | public String getPhone() { 34 | return phone; 35 | } 36 | 37 | public void setPhone(String phone) { 38 | this.phone = phone; 39 | } 40 | 41 | public String getSex() { 42 | return sex; 43 | } 44 | 45 | public void setSex(String sex) { 46 | this.sex = sex; 47 | } 48 | 49 | public String getNumber() { 50 | return number; 51 | } 52 | 53 | public void setNumber(String number) { 54 | this.number = number; 55 | } 56 | 57 | public String getEmail() { 58 | return email; 59 | } 60 | 61 | public void setEmail(String email) { 62 | this.email = email; 63 | } 64 | 65 | public String getDegree() { 66 | return degree; 67 | } 68 | 69 | public void setDegree(String degree) { 70 | this.degree = degree; 71 | } 72 | 73 | public String getDept() { 74 | return dept; 75 | } 76 | 77 | public void setDept(String dept) { 78 | this.dept = dept; 79 | } 80 | 81 | public Short getRight() { 82 | return right; 83 | } 84 | 85 | public void setRight(Short right) { 86 | this.right = right; 87 | } 88 | 89 | public String getGroup() { 90 | return group; 91 | } 92 | 93 | public void setGroup(String group) { 94 | this.group = group; 95 | } 96 | 97 | public String getTitle() { 98 | return title; 99 | } 100 | 101 | public void setTitle(String title) { 102 | this.title = title; 103 | } 104 | } 105 | -------------------------------------------------------------------------------- /src/vo/Topic.java: -------------------------------------------------------------------------------- 1 | package vo; 2 | 3 | public class Topic { 4 | 5 | private String name = null; 6 | private String type = null; 7 | private String kind = null; 8 | private String source = null; 9 | private String number = null; 10 | private String status = null; 11 | private String content = null; 12 | private String result = null; 13 | private String direction = null; 14 | private String tnumber = null; 15 | private String snumber = null; 16 | 17 | public String getName() { 18 | return name; 19 | } 20 | 21 | public void setName(String name) { 22 | this.name = name; 23 | } 24 | 25 | public String getType() { 26 | return type; 27 | } 28 | 29 | public void setType(String type) { 30 | this.type = type; 31 | } 32 | 33 | public String getKind() { 34 | return kind; 35 | } 36 | 37 | public void setKind(String kind) { 38 | this.kind = kind; 39 | } 40 | 41 | public String getSource() { 42 | return source; 43 | } 44 | 45 | public void setSource(String source) { 46 | this.source = source; 47 | } 48 | 49 | public String getNumber() { 50 | return number; 51 | } 52 | 53 | public void setNumber(String number) { 54 | this.number = number; 55 | } 56 | 57 | public String getStatus() { 58 | return status; 59 | } 60 | 61 | public void setStatus(String status) { 62 | this.status = status; 63 | } 64 | 65 | public String getContent() { 66 | return content; 67 | } 68 | 69 | public void setContent(String contant) { 70 | this.content = contant; 71 | } 72 | 73 | public String getResult() { 74 | return result; 75 | } 76 | 77 | public void setResult(String result) { 78 | this.result = result; 79 | } 80 | 81 | public String getDirection() { 82 | return direction; 83 | } 84 | 85 | public void setDirection(String direction) { 86 | this.direction = direction; 87 | } 88 | 89 | public String getTnumber() { 90 | return tnumber; 91 | } 92 | 93 | public void setTnumber(String tnumber) { 94 | this.tnumber = tnumber; 95 | } 96 | 97 | public String getSnumber() { 98 | return snumber; 99 | } 100 | 101 | public void setSnumber(String snumber) { 102 | this.snumber = snumber; 103 | } 104 | 105 | } 106 | -------------------------------------------------------------------------------- /work.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | --------------------------------------------------------------------------------