├── web
├── static
│ ├── css
│ │ ├── signout.css
│ │ ├── student.css
│ │ ├── teacher.css
│ │ ├── admin.css
│ │ ├── index.css
│ │ └── signin.css
│ ├── fonts
│ │ ├── glyphicons-halflings-regular.eot
│ │ ├── glyphicons-halflings-regular.ttf
│ │ ├── glyphicons-halflings-regular.woff
│ │ └── glyphicons-halflings-regular.woff2
│ └── js
│ │ ├── bootstrap.min.js
│ │ └── jquery.min.js
├── WEB-INF
│ ├── lib
│ │ ├── servlet-api.jar
│ │ ├── javax.servlet.jsp.jstl-1.2.1.jar
│ │ ├── javax.servlet.jsp.jstl-api-1.2.1.jar
│ │ └── mysql-connector-java-5.1.18-bin.jar
│ └── web.xml
├── admin
│ ├── files
│ │ └── ImportUser.xls
│ ├── changeinfo.jsp
│ ├── changepasswd.jsp
│ ├── index.jsp
│ ├── classroom.jsp
│ ├── cource.jsp
│ ├── score.jsp
│ ├── user.jsp
│ ├── notesmanage.jsp
│ ├── scource.jsp
│ ├── userimport.jsp
│ ├── classroomadd.jsp
│ ├── courceadd.jsp
│ ├── notesadd.jsp
│ ├── useradd.jsp
│ └── base.jsp
├── student
│ ├── scource.jsp
│ ├── index.jsp
│ ├── notes.jsp
│ ├── changeinfo.jsp
│ ├── infoscource.jsp
│ ├── infoscore.jsp
│ ├── changepasswd.jsp
│ └── base.jsp
├── teacher
│ ├── index.jsp
│ ├── score.jsp
│ ├── infocource.jsp
│ ├── changeinfo.jsp
│ ├── scource.jsp
│ ├── changepasswd.jsp
│ └── base.jsp
├── signout.jsp
└── index.jsp
├── src
└── lib
│ ├── Model
│ ├── Cource.java
│ ├── Classroom.java
│ ├── User.java
│ ├── Notes.java
│ └── UserAdd.java
│ ├── Dao
│ ├── Dbutil.java
│ ├── UserDao.java
│ ├── TeacherDAO.java
│ ├── StudentDAO.java
│ └── AdminDAO.java
│ └── servlet
│ ├── NotesdeleteServlet.java
│ ├── ClassroomaddServlet.java
│ ├── NotesaddServlet.java
│ ├── SigninServlet.java
│ └── UseraddServlet.java
├── .gitignore
├── README.md
├── SelectCource.iml
└── CreateDatabase.sh
/web/static/css/signout.css:
--------------------------------------------------------------------------------
1 | p {
2 | text-align: center;
3 | }
--------------------------------------------------------------------------------
/web/static/css/student.css:
--------------------------------------------------------------------------------
1 | /*changepasswd*/
2 |
3 | .changepasswd label{
4 | padding-top: 9px;
5 | }
--------------------------------------------------------------------------------
/web/static/css/teacher.css:
--------------------------------------------------------------------------------
1 | /*changepasswd*/
2 |
3 | .changepasswd label{
4 | padding-top: 9px;
5 | }
--------------------------------------------------------------------------------
/web/WEB-INF/lib/servlet-api.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ttop5/SelectCource/HEAD/web/WEB-INF/lib/servlet-api.jar
--------------------------------------------------------------------------------
/web/admin/files/ImportUser.xls:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ttop5/SelectCource/HEAD/web/admin/files/ImportUser.xls
--------------------------------------------------------------------------------
/src/lib/Model/Cource.java:
--------------------------------------------------------------------------------
1 | package lib.Model;
2 |
3 | /**
4 | * Created by ttop5 on 16-4-22.
5 | */
6 | public class Cource {
7 | }
8 |
--------------------------------------------------------------------------------
/web/WEB-INF/lib/javax.servlet.jsp.jstl-1.2.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ttop5/SelectCource/HEAD/web/WEB-INF/lib/javax.servlet.jsp.jstl-1.2.1.jar
--------------------------------------------------------------------------------
/web/static/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ttop5/SelectCource/HEAD/web/static/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/web/static/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ttop5/SelectCource/HEAD/web/static/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/web/WEB-INF/lib/javax.servlet.jsp.jstl-api-1.2.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ttop5/SelectCource/HEAD/web/WEB-INF/lib/javax.servlet.jsp.jstl-api-1.2.1.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/mysql-connector-java-5.1.18-bin.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ttop5/SelectCource/HEAD/web/WEB-INF/lib/mysql-connector-java-5.1.18-bin.jar
--------------------------------------------------------------------------------
/web/static/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ttop5/SelectCource/HEAD/web/static/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/web/static/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ttop5/SelectCource/HEAD/web/static/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.class
2 |
3 | # Mobile Tools for Java (J2ME)
4 | .mtj.tmp/
5 |
6 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
7 | hs_err_pid*
8 |
9 | # .idea
10 | .idea/*
11 |
12 | # out
13 | out/*
14 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # SelectCourse
2 |
3 | `createad on 2015-09-09 by ttop5`
4 |
5 | ## 学生选课管理信息系统
6 |
7 | + 信息查询
8 | + 教室信息
9 | + 选课信息
10 | + 成绩信息
11 | + 学院信息维护
12 | + 教师信息维护
13 | + 学生信息维护
14 |
15 | ## 开发环境:
16 |
17 | + JDK1.8 + Tomcat7 + Mysql 5.6.28
18 |
19 | + Ubuntu 15.10 + Vim + Intellij IDEA + Git
20 |
--------------------------------------------------------------------------------
/web/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/web/student/scource.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 | Created by IntelliJ IDEA.
3 | User: ttop5
4 | Date: 16-4-21
5 | Time: 下午6:54
6 | To change this template use File | Settings | File Templates.
7 | --%>
8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
9 | <%@include file="base.jsp"%>
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
当前位置:选课
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/web/admin/changeinfo.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 | Created by IntelliJ IDEA.
3 | User: ttop5
4 | Date: 16-4-22
5 | Time: 下午4:25
6 | To change this template use File | Settings | File Templates.
7 | --%>
8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
9 | <%@include file="base.jsp"%>
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/web/admin/changepasswd.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 | Created by IntelliJ IDEA.
3 | User: ttop5
4 | Date: 16-4-24
5 | Time: 上午8:29
6 | To change this template use File | Settings | File Templates.
7 | --%>
8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
9 | <%@include file="base.jsp"%>
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/web/admin/index.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 | Created by IntelliJ IDEA.
3 | User: ttop5
4 | Date: 16-4-24
5 | Time: 上午8:50
6 | To change this template use File | Settings | File Templates.
7 | --%>
8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
9 | <%@include file="base.jsp"%>
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/web/student/index.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 | Created by IntelliJ IDEA.
3 | User: ttop5
4 | Date: 16-4-21
5 | Time: 下午6:49
6 | To change this template use File | Settings | File Templates.
7 | --%>
8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
9 | <%@include file="base.jsp"%>
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/web/teacher/index.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 | Created by IntelliJ IDEA.
3 | User: ttop5
4 | Date: 16-4-24
5 | Time: 上午8:50
6 | To change this template use File | Settings | File Templates.
7 | --%>
8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
9 | <%@include file="base.jsp"%>
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/web/static/css/admin.css:
--------------------------------------------------------------------------------
1 | /*courceadd*/
2 | .courceadd label{
3 | padding-top: 10px;
4 | }
5 |
6 | #credit {
7 | padding-left: 28px
8 | }
9 |
10 | .courceadd input{
11 | width: 250px;
12 | height: 30px;
13 | }
14 |
15 | /*useradd*/
16 | .useradd label{
17 | padding-top: 8px;
18 | padding-right: 5px;
19 | }
20 |
21 | .useradd input{
22 | width: 200px;
23 | height: 28px;
24 | }
25 |
26 | /*classroomadd*/
27 | .classroomadd label{
28 | padding-top: 9px;
29 | }
30 |
31 | .classroomadd input{
32 | width: 200px;
33 | height: 30px;
34 | }
--------------------------------------------------------------------------------
/web/admin/classroom.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 | Created by IntelliJ IDEA.
3 | User: ttop5
4 | Date: 16-4-22
5 | Time: 上午10:50
6 | To change this template use File | Settings | File Templates.
7 | --%>
8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
9 | <%@include file="base.jsp"%>
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
当前位置:课程管理 > 课程管理
18 |
19 |
20 | <% AdminDAO adminDao = new AdminDAO();%>
21 | <%=adminDao.getClassroom()%>
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/web/admin/cource.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 | Created by IntelliJ IDEA.
3 | User: ttop5
4 | Date: 16-4-24
5 | Time: 下午3:46
6 | To change this template use File | Settings | File Templates.
7 | --%>
8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
9 | <%@include file="base.jsp"%>
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
当前位置:课程管理 > 课程管理
18 |
19 |
20 | <% AdminDAO adminDao = new AdminDAO();%>
21 | <%=adminDao.getCource()%>
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/web/admin/score.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 | Created by IntelliJ IDEA.
3 | User: ttop5
4 | Date: 16-4-24
5 | Time: 上午9:08
6 | To change this template use File | Settings | File Templates.
7 | --%>
8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
9 | <%@include file="base.jsp"%>
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
当前位置:学生成绩管理 > 学生成绩管理
18 |
19 |
20 | <% AdminDAO adminDao = new AdminDAO();%>
21 | <%=adminDao.getScore()%>
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/web/admin/user.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 | Created by IntelliJ IDEA.
3 | User: ttop5
4 | Date: 16-4-24
5 | Time: 上午8:49
6 | To change this template use File | Settings | File Templates.
7 | --%>
8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
9 | <%@include file="base.jsp"%>
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
当前位置:用户管理 > 所有用户
18 |
19 |
20 | <% AdminDAO adminDao = new AdminDAO();%>
21 | <%=adminDao.getUser()%>
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/web/student/notes.jsp:
--------------------------------------------------------------------------------
1 | <%@ page import="lib.Dao.StudentDAO" %>
2 | <%--
3 | Created by IntelliJ IDEA.
4 | User: ttop5
5 | Date: 16-4-21
6 | Time: 下午6:50
7 | To change this template use File | Settings | File Templates.
8 | --%>
9 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
10 | <%@include file="base.jsp"%>
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
当前位置:公告
19 |
20 | <% StudentDAO studentDAO = new StudentDAO();%>
21 | <%=studentDAO.getNotes()%>
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/web/teacher/score.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 | Created by IntelliJ IDEA.
3 | User: ttop5
4 | Date: 16-4-24
5 | Time: 下午10:45
6 | To change this template use File | Settings | File Templates.
7 | --%>
8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
9 | <%@include file="base.jsp"%>
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
当前位置:信息管理 > 学生成绩管理
18 |
19 |
20 | <% TeacherDAO teacherDAO = new TeacherDAO();%>
21 | <%=teacherDAO.getScore()%>
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/web/admin/notesmanage.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 | Created by IntelliJ IDEA.
3 | User: ttop5
4 | Date: 16-4-25
5 | Time: 下午8:01
6 | To change this template use File | Settings | File Templates.
7 | --%>
8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
9 | <%@include file="base.jsp"%>
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
当前位置:公告管理 > 公告管理
18 |
19 |
20 | <% AdminDAO adminDao = new AdminDAO();%>
21 | <%=adminDao.getNotes()%>
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/web/signout.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 | Created by IntelliJ IDEA.
3 | User: ttop5
4 | Date: 16-4-19
5 | Time: 下午4:54
6 | To change this template use File | Settings | File Templates.
7 | --%>
8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
9 |
10 |
11 |
12 |
13 |
14 |
15 | <%
16 | session.invalidate();
17 | %>
18 |
19 |
20 | :)您已成功注销,正在跳转至登陆页面!
21 | ......
22 |
23 |
24 | <%
25 | response.setHeader("refresh","1;url=index.jsp");
26 | %>
27 |
28 |
29 |