├── .gitattributes
├── LICENSE
├── OnLineTest
├── .classpath
├── .mymetadata
├── .project
├── .settings
│ ├── .jsdtscope
│ ├── org.eclipse.jdt.core.prefs
│ ├── org.eclipse.wst.common.component
│ ├── org.eclipse.wst.common.project.facet.core.xml
│ ├── org.eclipse.wst.jsdt.ui.superType.container
│ └── org.eclipse.wst.jsdt.ui.superType.name
├── WebRoot
│ ├── META-INF
│ │ └── MANIFEST.MF
│ ├── WEB-INF
│ │ ├── admin
│ │ │ ├── courseManage.jsp
│ │ │ ├── studentManage.jsp
│ │ │ └── teacherManage.jsp
│ │ ├── classes
│ │ │ ├── com
│ │ │ │ └── cc
│ │ │ │ │ └── onlinetest
│ │ │ │ │ ├── action
│ │ │ │ │ ├── AdminInfoAction.class
│ │ │ │ │ ├── AdminLoginAction.class
│ │ │ │ │ ├── CourseManageAction$1.class
│ │ │ │ │ ├── CourseManageAction.class
│ │ │ │ │ ├── OnLineTestAction.class
│ │ │ │ │ ├── QuestionManageAction$1.class
│ │ │ │ │ ├── QuestionManageAction$2.class
│ │ │ │ │ ├── QuestionManageAction.class
│ │ │ │ │ ├── ScoreManageAction.class
│ │ │ │ │ ├── StudentInfoAction.class
│ │ │ │ │ ├── StudentLoginAction.class
│ │ │ │ │ ├── StudentManageAction.class
│ │ │ │ │ ├── SubjectManageAction$1.class
│ │ │ │ │ ├── SubjectManageAction.class
│ │ │ │ │ ├── TeacherInfoAction.class
│ │ │ │ │ ├── TeacherLoginAction.class
│ │ │ │ │ └── TeacherManageAction.class
│ │ │ │ │ ├── dao
│ │ │ │ │ ├── AdminDao.class
│ │ │ │ │ ├── CourseDao.class
│ │ │ │ │ ├── OnLineTestDao.class
│ │ │ │ │ ├── QuestionDao.class
│ │ │ │ │ ├── ScoreDao.class
│ │ │ │ │ ├── StudentDao.class
│ │ │ │ │ ├── SubjectDao.class
│ │ │ │ │ ├── TeacherDao.class
│ │ │ │ │ └── impl
│ │ │ │ │ │ ├── AdminDaoImpl.class
│ │ │ │ │ │ ├── CourseDaoImpl$1.class
│ │ │ │ │ │ ├── CourseDaoImpl.class
│ │ │ │ │ │ ├── OnLineTestDaoImpl.class
│ │ │ │ │ │ ├── QuestionDaoImpl.class
│ │ │ │ │ │ ├── ScoreDaoImpl$1.class
│ │ │ │ │ │ ├── ScoreDaoImpl.class
│ │ │ │ │ │ ├── StudentDaoImpl$1.class
│ │ │ │ │ │ ├── StudentDaoImpl.class
│ │ │ │ │ │ ├── SubjectDaoImpl$1.class
│ │ │ │ │ │ ├── SubjectDaoImpl.class
│ │ │ │ │ │ ├── TeacherDaoImpl$1.class
│ │ │ │ │ │ └── TeacherDaoImpl.class
│ │ │ │ │ ├── domain
│ │ │ │ │ ├── Admin.class
│ │ │ │ │ ├── Admin.hbm.xml
│ │ │ │ │ ├── Answer.class
│ │ │ │ │ ├── Answer.hbm.xml
│ │ │ │ │ ├── Choice.class
│ │ │ │ │ ├── Choice.hbm.xml
│ │ │ │ │ ├── ChoiceAnswer.class
│ │ │ │ │ ├── Course.class
│ │ │ │ │ ├── Course.hbm.xml
│ │ │ │ │ ├── Judge.class
│ │ │ │ │ ├── Judge.hbm.xml
│ │ │ │ │ ├── JudgeAnswer.class
│ │ │ │ │ ├── PageBean.class
│ │ │ │ │ ├── ResultScore.class
│ │ │ │ │ ├── Score.class
│ │ │ │ │ ├── Score.hbm.xml
│ │ │ │ │ ├── Student.class
│ │ │ │ │ ├── Student.hbm.xml
│ │ │ │ │ ├── Subject.class
│ │ │ │ │ ├── Subject.hbm.xml
│ │ │ │ │ ├── Teacher.class
│ │ │ │ │ └── Teacher.hbm.xml
│ │ │ │ │ ├── service
│ │ │ │ │ ├── AdminService.class
│ │ │ │ │ ├── CourseService.class
│ │ │ │ │ ├── OnLineTestService.class
│ │ │ │ │ ├── QuestionService.class
│ │ │ │ │ ├── ScoreService.class
│ │ │ │ │ ├── StudentService.class
│ │ │ │ │ ├── SubjectService.class
│ │ │ │ │ ├── TeacherService.class
│ │ │ │ │ └── impl
│ │ │ │ │ │ ├── AdminServiceImpl.class
│ │ │ │ │ │ ├── CourseServiceImpl.class
│ │ │ │ │ │ ├── OnLineTestServiceImpl.class
│ │ │ │ │ │ ├── QuestionServiceImpl.class
│ │ │ │ │ │ ├── ScoreServiceImpl.class
│ │ │ │ │ │ ├── StudentServiceImpl.class
│ │ │ │ │ │ ├── SubjectServiceImpl.class
│ │ │ │ │ │ └── TeacherServiceImpl.class
│ │ │ │ │ ├── test
│ │ │ │ │ ├── BaseSpring.class
│ │ │ │ │ ├── TestAdmin.class
│ │ │ │ │ ├── TestChoice.class
│ │ │ │ │ └── TestSubject.class
│ │ │ │ │ ├── utils
│ │ │ │ │ └── Md5Utils.class
│ │ │ │ │ └── web
│ │ │ │ │ └── filter
│ │ │ │ │ ├── AdminFilter.class
│ │ │ │ │ ├── StudentFilter.class
│ │ │ │ │ └── TeacherFilter.class
│ │ │ ├── hibernate
│ │ │ │ └── hibernate.cfg.xml
│ │ │ ├── spring
│ │ │ │ ├── applicationContext-admin-info.xml
│ │ │ │ ├── applicationContext-admin-login.xml
│ │ │ │ ├── applicationContext-course-manage.xml
│ │ │ │ ├── applicationContext-db.xml
│ │ │ │ ├── applicationContext-online-test.xml
│ │ │ │ ├── applicationContext-question-manage.xml
│ │ │ │ ├── applicationContext-score-manage.xml
│ │ │ │ ├── applicationContext-student-info.xml
│ │ │ │ ├── applicationContext-student-login.xml
│ │ │ │ ├── applicationContext-student-manage.xml
│ │ │ │ ├── applicationContext-subject-manage.xml
│ │ │ │ ├── applicationContext-teacher-info.xml
│ │ │ │ ├── applicationContext-teacher-login.xml
│ │ │ │ ├── applicationContext-teacher-manage.xml
│ │ │ │ └── applicationContext.xml
│ │ │ ├── struts.xml
│ │ │ └── struts2
│ │ │ │ ├── struts-admin-info.xml
│ │ │ │ ├── struts-admin-login.xml
│ │ │ │ ├── struts-course-manage.xml
│ │ │ │ ├── struts-online-test.xml
│ │ │ │ ├── struts-question-manage.xml
│ │ │ │ ├── struts-score-manage.xml
│ │ │ │ ├── struts-student-info.xml
│ │ │ │ ├── struts-student-login.xml
│ │ │ │ ├── struts-student-manage.xml
│ │ │ │ ├── struts-subject-manage.xml
│ │ │ │ ├── struts-teacher-info.xml
│ │ │ │ ├── struts-teacher-login.xml
│ │ │ │ └── struts-teacher-manage.xml
│ │ ├── lib
│ │ │ ├── db
│ │ │ │ └── mysql-connector-java-5.1.10-bin.jar
│ │ │ ├── hibernate3.5.6
│ │ │ │ ├── antlr-2.7.6.jar
│ │ │ │ ├── commons-collections-3.1.jar
│ │ │ │ ├── dom4j-1.6.1.jar
│ │ │ │ ├── hibernate-annotations.jar
│ │ │ │ ├── hibernate-commons-annotations.jar
│ │ │ │ ├── hibernate3.jar
│ │ │ │ ├── javassist-3.9.0.GA.jar
│ │ │ │ ├── jta-1.1.jar
│ │ │ │ ├── slf4j-api-1.5.8.jar
│ │ │ │ └── slf4j-log4j12.jar
│ │ │ ├── json
│ │ │ │ ├── commons-beanutils-1.8.0.jar
│ │ │ │ ├── commons-collections-3.2.1.jar
│ │ │ │ ├── commons-lang-2.5.jar
│ │ │ │ ├── commons-logging-1.1.1.jar
│ │ │ │ ├── ezmorph-1.0.6.jar
│ │ │ │ └── json-lib-2.4-jdk15.jar
│ │ │ ├── junit
│ │ │ │ └── junit.jar
│ │ │ ├── spring2.5.5
│ │ │ │ ├── aspectjrt.jar
│ │ │ │ ├── aspectjweaver.jar
│ │ │ │ ├── c3p0-0.9.1.2.jar
│ │ │ │ ├── cglib-nodep-2.1_3.jar
│ │ │ │ ├── common-annotations.jar
│ │ │ │ ├── commons-lang.jar
│ │ │ │ ├── commons-logging.jar
│ │ │ │ ├── log4j-1.2.15.jar
│ │ │ │ └── spring.jar
│ │ │ └── struts2
│ │ │ │ ├── commons-fileupload-1.2.1.jar
│ │ │ │ ├── commons-io-1.3.2.jar
│ │ │ │ ├── commons-logging.jar
│ │ │ │ ├── freemarker-2.3.15.jar
│ │ │ │ ├── ognl-2.7.3.jar
│ │ │ │ ├── struts2-core-2.1.8.1.jar
│ │ │ │ ├── struts2-spring-plugin-2.1.8.1.jar
│ │ │ │ └── xwork-core-2.1.6.jar
│ │ ├── student
│ │ │ ├── myscores.jsp
│ │ │ ├── onLineTest.jsp
│ │ │ ├── questions.jsp
│ │ │ └── score.jsp
│ │ ├── teacher
│ │ │ ├── questionManage.jsp
│ │ │ ├── score.jsp
│ │ │ ├── studentScores.jsp
│ │ │ └── subjectManage.jsp
│ │ └── web.xml
│ ├── admin
│ │ └── admin.jsp
│ ├── adminLogin.jsp
│ ├── css
│ │ ├── bootstrap-admin-theme.css
│ │ ├── bootstrap-theme.css
│ │ ├── bootstrap-theme.css.map
│ │ ├── bootstrap-theme.min.css
│ │ ├── bootstrap-theme.min.css.map
│ │ ├── bootstrap.css
│ │ ├── bootstrap.css.map
│ │ ├── bootstrap.min.css
│ │ ├── bootstrap.min.css.map
│ │ └── dataTables.bootstrap.css
│ ├── error
│ │ ├── 400.jsp
│ │ └── 500.jsp
│ ├── fonts
│ │ ├── glyphicons-halflings-regular.eot
│ │ ├── glyphicons-halflings-regular.svg
│ │ ├── glyphicons-halflings-regular.ttf
│ │ ├── glyphicons-halflings-regular.woff
│ │ └── glyphicons-halflings-regular.woff2
│ ├── img
│ │ ├── 404.png
│ │ ├── 404view.png
│ │ ├── 500.png
│ │ └── 500view.jpg
│ ├── index.jsp
│ ├── jQuery
│ │ └── jquery-3.1.1.min.js
│ ├── js
│ │ ├── addChoice.js
│ │ ├── addCourse.js
│ │ ├── addJudge.js
│ │ ├── addStudent.js
│ │ ├── addSubject.js
│ │ ├── addTeacher.js
│ │ ├── adminLogin.js
│ │ ├── adminUpdatePwd.js
│ │ ├── bootstrap-dropdown.min.js
│ │ ├── bootstrap.js
│ │ ├── bootstrap.min.js
│ │ ├── dataTables.bootstrap.js
│ │ ├── deleteChoice.js
│ │ ├── deleteCourse.js
│ │ ├── deleteJudge.js
│ │ ├── deleteStudent.js
│ │ ├── deleteSubject.js
│ │ ├── deleteTeacher.js
│ │ ├── getAllCourses.js
│ │ ├── getChoice.js
│ │ ├── getJudge.js
│ │ ├── getSubject.js
│ │ ├── jquery.dataTables.zh_CN.js
│ │ ├── onLineTest.js
│ │ ├── question.js
│ │ ├── score.js
│ │ ├── studentLogin.js
│ │ ├── studentUpdatePwd.js
│ │ ├── student_getAllCourses.js
│ │ ├── student_getSubject.js
│ │ ├── teacherLogin.js
│ │ ├── teacherUpdatePwd.js
│ │ ├── test.js
│ │ ├── updateChoice.js
│ │ ├── updateCourse.js
│ │ ├── updateJudge.js
│ │ ├── updateStudent.js
│ │ ├── updateSubject.js
│ │ └── updateTeacher.js
│ ├── student
│ │ └── student.jsp
│ ├── studentLogin.jsp
│ ├── teacher
│ │ └── teacher.jsp
│ └── teacherLogin.jsp
├── config
│ ├── hibernate
│ │ └── hibernate.cfg.xml
│ ├── spring
│ │ ├── applicationContext-admin-info.xml
│ │ ├── applicationContext-admin-login.xml
│ │ ├── applicationContext-course-manage.xml
│ │ ├── applicationContext-db.xml
│ │ ├── applicationContext-online-test.xml
│ │ ├── applicationContext-question-manage.xml
│ │ ├── applicationContext-score-manage.xml
│ │ ├── applicationContext-student-info.xml
│ │ ├── applicationContext-student-login.xml
│ │ ├── applicationContext-student-manage.xml
│ │ ├── applicationContext-subject-manage.xml
│ │ ├── applicationContext-teacher-info.xml
│ │ ├── applicationContext-teacher-login.xml
│ │ ├── applicationContext-teacher-manage.xml
│ │ └── applicationContext.xml
│ ├── struts.xml
│ └── struts2
│ │ ├── struts-admin-info.xml
│ │ ├── struts-admin-login.xml
│ │ ├── struts-course-manage.xml
│ │ ├── struts-online-test.xml
│ │ ├── struts-question-manage.xml
│ │ ├── struts-score-manage.xml
│ │ ├── struts-student-info.xml
│ │ ├── struts-student-login.xml
│ │ ├── struts-student-manage.xml
│ │ ├── struts-subject-manage.xml
│ │ ├── struts-teacher-info.xml
│ │ ├── struts-teacher-login.xml
│ │ └── struts-teacher-manage.xml
├── src
│ └── com
│ │ └── cc
│ │ └── onlinetest
│ │ ├── action
│ │ ├── AdminInfoAction.java
│ │ ├── AdminLoginAction.java
│ │ ├── CourseManageAction.java
│ │ ├── OnLineTestAction.java
│ │ ├── QuestionManageAction.java
│ │ ├── ScoreManageAction.java
│ │ ├── StudentInfoAction.java
│ │ ├── StudentLoginAction.java
│ │ ├── StudentManageAction.java
│ │ ├── SubjectManageAction.java
│ │ ├── TeacherInfoAction.java
│ │ ├── TeacherLoginAction.java
│ │ └── TeacherManageAction.java
│ │ ├── dao
│ │ ├── AdminDao.java
│ │ ├── CourseDao.java
│ │ ├── OnLineTestDao.java
│ │ ├── QuestionDao.java
│ │ ├── ScoreDao.java
│ │ ├── StudentDao.java
│ │ ├── SubjectDao.java
│ │ ├── TeacherDao.java
│ │ └── impl
│ │ │ ├── AdminDaoImpl.java
│ │ │ ├── CourseDaoImpl.java
│ │ │ ├── OnLineTestDaoImpl.java
│ │ │ ├── QuestionDaoImpl.java
│ │ │ ├── ScoreDaoImpl.java
│ │ │ ├── StudentDaoImpl.java
│ │ │ ├── SubjectDaoImpl.java
│ │ │ └── TeacherDaoImpl.java
│ │ ├── domain
│ │ ├── Admin.hbm.xml
│ │ ├── Admin.java
│ │ ├── Answer.hbm.xml
│ │ ├── Answer.java
│ │ ├── Choice.hbm.xml
│ │ ├── Choice.java
│ │ ├── ChoiceAnswer.java
│ │ ├── Course.hbm.xml
│ │ ├── Course.java
│ │ ├── Judge.hbm.xml
│ │ ├── Judge.java
│ │ ├── JudgeAnswer.java
│ │ ├── PageBean.java
│ │ ├── ResultScore.java
│ │ ├── Score.hbm.xml
│ │ ├── Score.java
│ │ ├── Student.hbm.xml
│ │ ├── Student.java
│ │ ├── Subject.hbm.xml
│ │ ├── Subject.java
│ │ ├── Teacher.hbm.xml
│ │ └── Teacher.java
│ │ ├── service
│ │ ├── AdminService.java
│ │ ├── CourseService.java
│ │ ├── OnLineTestService.java
│ │ ├── QuestionService.java
│ │ ├── ScoreService.java
│ │ ├── StudentService.java
│ │ ├── SubjectService.java
│ │ ├── TeacherService.java
│ │ └── impl
│ │ │ ├── AdminServiceImpl.java
│ │ │ ├── CourseServiceImpl.java
│ │ │ ├── OnLineTestServiceImpl.java
│ │ │ ├── QuestionServiceImpl.java
│ │ │ ├── ScoreServiceImpl.java
│ │ │ ├── StudentServiceImpl.java
│ │ │ ├── SubjectServiceImpl.java
│ │ │ └── TeacherServiceImpl.java
│ │ ├── utils
│ │ └── Md5Utils.java
│ │ └── web
│ │ └── filter
│ │ ├── AdminFilter.java
│ │ ├── StudentFilter.java
│ │ └── TeacherFilter.java
└── test
│ └── com
│ └── cc
│ └── onlinetest
│ └── test
│ ├── BaseSpring.java
│ ├── TestAdmin.java
│ ├── TestChoice.java
│ └── TestSubject.java
├── README.md
├── database
└── 在线考试sql.sql
└── img
├── 0.png
├── 1.png
├── 10.png
├── 11.png
├── 12.png
├── 13.png
├── 14.png
├── 15.png
├── 16.png
├── 2.png
├── 3.png
├── 4.png
├── 5.png
├── 6.png
├── 7.png
├── 8.png
└── 9.png
/.gitattributes:
--------------------------------------------------------------------------------
1 | *.js linguist-language=java
2 | *.css linguist-language=java
3 | *.html linguist-language=java
--------------------------------------------------------------------------------
/OnLineTest/.mymetadata:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/OnLineTest/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | OnLineTest
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.wst.common.project.facet.core.builder
10 |
11 |
12 |
13 |
14 | org.eclipse.wst.jsdt.core.javascriptValidator
15 |
16 |
17 |
18 |
19 | com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder
20 |
21 |
22 |
23 |
24 | org.eclipse.jdt.core.javabuilder
25 |
26 |
27 |
28 |
29 | com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator
30 |
31 |
32 |
33 |
34 | com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator
35 |
36 |
37 |
38 |
39 | org.eclipse.wst.validation.validationbuilder
40 |
41 |
42 |
43 |
44 | com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder
45 |
46 |
47 |
48 |
49 |
50 | com.genuitec.eclipse.ast.deploy.core.deploymentnature
51 | org.eclipse.jem.workbench.JavaEMFNature
52 | com.genuitec.eclipse.j2eedt.core.webnature
53 | org.eclipse.jdt.core.javanature
54 | org.eclipse.wst.jsdt.core.jsNature
55 | org.eclipse.wst.common.project.facet.core.nature
56 | org.eclipse.wst.common.modulecore.ModuleCoreNature
57 |
58 |
59 |
--------------------------------------------------------------------------------
/OnLineTest/.settings/.jsdtscope:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/OnLineTest/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
4 | org.eclipse.jdt.core.compiler.compliance=1.6
5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
7 | org.eclipse.jdt.core.compiler.source=1.6
8 |
--------------------------------------------------------------------------------
/OnLineTest/.settings/org.eclipse.wst.common.component:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/OnLineTest/.settings/org.eclipse.wst.common.project.facet.core.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/OnLineTest/.settings/org.eclipse.wst.jsdt.ui.superType.container:
--------------------------------------------------------------------------------
1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary
--------------------------------------------------------------------------------
/OnLineTest/.settings/org.eclipse.wst.jsdt.ui.superType.name:
--------------------------------------------------------------------------------
1 | Window
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Class-Path:
3 |
4 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/AdminInfoAction.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/AdminInfoAction.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/AdminLoginAction.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/AdminLoginAction.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/CourseManageAction$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/CourseManageAction$1.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/CourseManageAction.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/CourseManageAction.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/OnLineTestAction.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/OnLineTestAction.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/QuestionManageAction$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/QuestionManageAction$1.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/QuestionManageAction$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/QuestionManageAction$2.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/QuestionManageAction.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/QuestionManageAction.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/ScoreManageAction.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/ScoreManageAction.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/StudentInfoAction.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/StudentInfoAction.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/StudentLoginAction.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/StudentLoginAction.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/StudentManageAction.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/StudentManageAction.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/SubjectManageAction$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/SubjectManageAction$1.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/SubjectManageAction.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/SubjectManageAction.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/TeacherInfoAction.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/TeacherInfoAction.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/TeacherLoginAction.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/TeacherLoginAction.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/TeacherManageAction.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/action/TeacherManageAction.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/AdminDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/AdminDao.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/CourseDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/CourseDao.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/OnLineTestDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/OnLineTestDao.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/QuestionDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/QuestionDao.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/ScoreDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/ScoreDao.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/StudentDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/StudentDao.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/SubjectDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/SubjectDao.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/TeacherDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/TeacherDao.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/AdminDaoImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/AdminDaoImpl.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/CourseDaoImpl$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/CourseDaoImpl$1.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/CourseDaoImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/CourseDaoImpl.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/OnLineTestDaoImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/OnLineTestDaoImpl.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/QuestionDaoImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/QuestionDaoImpl.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/ScoreDaoImpl$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/ScoreDaoImpl$1.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/ScoreDaoImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/ScoreDaoImpl.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/StudentDaoImpl$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/StudentDaoImpl$1.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/StudentDaoImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/StudentDaoImpl.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/SubjectDaoImpl$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/SubjectDaoImpl$1.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/SubjectDaoImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/SubjectDaoImpl.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/TeacherDaoImpl$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/TeacherDaoImpl$1.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/TeacherDaoImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/dao/impl/TeacherDaoImpl.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Admin.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Admin.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Admin.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Answer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Answer.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Answer.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Choice.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Choice.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Choice.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/ChoiceAnswer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/ChoiceAnswer.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Course.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Course.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Course.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Judge.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Judge.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Judge.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/JudgeAnswer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/JudgeAnswer.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/PageBean.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/PageBean.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/ResultScore.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/ResultScore.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Score.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Score.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Score.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Student.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Student.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Student.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Subject.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Subject.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Teacher.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Teacher.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/domain/Teacher.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/AdminService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/AdminService.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/CourseService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/CourseService.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/OnLineTestService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/OnLineTestService.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/QuestionService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/QuestionService.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/ScoreService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/ScoreService.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/StudentService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/StudentService.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/SubjectService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/SubjectService.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/TeacherService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/TeacherService.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/impl/AdminServiceImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/impl/AdminServiceImpl.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/impl/CourseServiceImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/impl/CourseServiceImpl.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/impl/OnLineTestServiceImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/impl/OnLineTestServiceImpl.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/impl/QuestionServiceImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/impl/QuestionServiceImpl.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/impl/ScoreServiceImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/impl/ScoreServiceImpl.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/impl/StudentServiceImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/impl/StudentServiceImpl.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/impl/SubjectServiceImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/impl/SubjectServiceImpl.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/impl/TeacherServiceImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/service/impl/TeacherServiceImpl.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/test/BaseSpring.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/test/BaseSpring.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/test/TestAdmin.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/test/TestAdmin.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/test/TestChoice.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/test/TestChoice.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/test/TestSubject.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/test/TestSubject.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/utils/Md5Utils.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/utils/Md5Utils.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/web/filter/AdminFilter.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/web/filter/AdminFilter.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/web/filter/StudentFilter.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/web/filter/StudentFilter.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/web/filter/TeacherFilter.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/classes/com/cc/onlinetest/web/filter/TeacherFilter.class
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/hibernate/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | com.mysql.jdbc.Driver
9 |
10 |
11 | jdbc:mysql://localhost:3306/OnLineTest
12 |
13 |
16 | root
17 |
20 | 123
21 |
24 | true
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/spring/applicationContext-admin-info.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/spring/applicationContext-admin-login.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/spring/applicationContext-course-manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/spring/applicationContext-online-test.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/spring/applicationContext-question-manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/spring/applicationContext-score-manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/spring/applicationContext-student-info.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/spring/applicationContext-student-login.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/spring/applicationContext-student-manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/spring/applicationContext-subject-manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/spring/applicationContext-teacher-info.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/spring/applicationContext-teacher-login.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/spring/applicationContext-teacher-manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/spring/applicationContext.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/struts.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/struts2/struts-admin-info.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/struts2/struts-admin-login.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | adminLogin.jsp
9 |
10 |
11 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/struts2/struts-course-manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | /WEB-INF/admin/courseManage.jsp
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/struts2/struts-online-test.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | /WEB-INF/admin/courseManage.jsp
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/struts2/struts-question-manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | /WEB-INF/teacher/questionManage.jsp
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/struts2/struts-score-manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | /WEB-INF/student/score.jsp
9 | /WEB-INF/student/myscores.jsp
10 |
11 |
12 |
13 |
14 |
15 |
16 | /WEB-INF/teacher/studentScores.jsp
17 | /WEB-INF/teacher/score.jsp
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/struts2/struts-student-info.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/struts2/struts-student-login.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | studentLogin.jsp
9 |
10 |
11 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/struts2/struts-student-manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | /WEB-INF/admin/studentManage.jsp
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/struts2/struts-subject-manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | /WEB-INF/teacher/subjectManage.jsp
9 | /WEB-INF/teacher/questionManage.jsp
10 |
11 |
12 |
13 |
14 |
15 |
16 | /WEB-INF/student/onLineTest.jsp
17 | /WEB-INF/student/questions.jsp
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/struts2/struts-teacher-info.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/struts2/struts-teacher-login.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | teacherLogin.jsp
9 |
10 |
11 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/classes/struts2/struts-teacher-manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | /WEB-INF/admin/teacherManage.jsp
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/db/mysql-connector-java-5.1.10-bin.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/db/mysql-connector-java-5.1.10-bin.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/hibernate3.5.6/antlr-2.7.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/hibernate3.5.6/antlr-2.7.6.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/hibernate3.5.6/commons-collections-3.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/hibernate3.5.6/commons-collections-3.1.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/hibernate3.5.6/dom4j-1.6.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/hibernate3.5.6/dom4j-1.6.1.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/hibernate3.5.6/hibernate-annotations.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/hibernate3.5.6/hibernate-annotations.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/hibernate3.5.6/hibernate-commons-annotations.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/hibernate3.5.6/hibernate-commons-annotations.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/hibernate3.5.6/hibernate3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/hibernate3.5.6/hibernate3.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/hibernate3.5.6/javassist-3.9.0.GA.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/hibernate3.5.6/javassist-3.9.0.GA.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/hibernate3.5.6/jta-1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/hibernate3.5.6/jta-1.1.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/hibernate3.5.6/slf4j-api-1.5.8.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/hibernate3.5.6/slf4j-api-1.5.8.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/hibernate3.5.6/slf4j-log4j12.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/hibernate3.5.6/slf4j-log4j12.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/json/commons-beanutils-1.8.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/json/commons-beanutils-1.8.0.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/json/commons-collections-3.2.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/json/commons-collections-3.2.1.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/json/commons-lang-2.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/json/commons-lang-2.5.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/json/commons-logging-1.1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/json/commons-logging-1.1.1.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/json/ezmorph-1.0.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/json/ezmorph-1.0.6.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/json/json-lib-2.4-jdk15.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/json/json-lib-2.4-jdk15.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/junit/junit.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/junit/junit.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/spring2.5.5/aspectjrt.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/spring2.5.5/aspectjrt.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/spring2.5.5/aspectjweaver.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/spring2.5.5/aspectjweaver.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/spring2.5.5/c3p0-0.9.1.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/spring2.5.5/c3p0-0.9.1.2.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/spring2.5.5/cglib-nodep-2.1_3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/spring2.5.5/cglib-nodep-2.1_3.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/spring2.5.5/common-annotations.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/spring2.5.5/common-annotations.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/spring2.5.5/commons-lang.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/spring2.5.5/commons-lang.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/spring2.5.5/commons-logging.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/spring2.5.5/commons-logging.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/spring2.5.5/log4j-1.2.15.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/spring2.5.5/log4j-1.2.15.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/spring2.5.5/spring.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/spring2.5.5/spring.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/struts2/commons-fileupload-1.2.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/struts2/commons-fileupload-1.2.1.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/struts2/commons-io-1.3.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/struts2/commons-io-1.3.2.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/struts2/commons-logging.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/struts2/commons-logging.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/struts2/freemarker-2.3.15.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/struts2/freemarker-2.3.15.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/struts2/ognl-2.7.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/struts2/ognl-2.7.3.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/struts2/struts2-core-2.1.8.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/struts2/struts2-core-2.1.8.1.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/struts2/struts2-spring-plugin-2.1.8.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/struts2/struts2-spring-plugin-2.1.8.1.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/WEB-INF/lib/struts2/xwork-core-2.1.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/WEB-INF/lib/struts2/xwork-core-2.1.6.jar
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/error/400.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" pageEncoding="UTF-8" isErrorPage="true"%>
2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
3 |
4 |
5 |
6 | 找不到页面
7 |
17 |
29 |
31 |
32 |
33 |
34 |
35 |

" />
36 |
37 |
38 |
39 |

" class="center"/>
40 |
41 | 您已偏离路线
42 | 正在为您重新导航路线...
43 | 秒后自动跳转到主页
44 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/error/500.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" pageEncoding="UTF-8" isErrorPage="true"%>
2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
3 |
4 |
5 |
6 |
7 | 出错啦~
8 |
18 |
30 |
32 |
33 |
34 |
35 |
36 |

" />
37 |
38 |
39 |
40 |

" class="center"/>
41 |
42 | 抱歉...好像出现了奇怪的问题...
43 | 秒后自动跳转到主页
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/img/404.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/img/404.png
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/img/404view.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/img/404view.png
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/img/500.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/img/500.png
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/img/500view.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/OnLineTest/WebRoot/img/500view.jpg
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/index.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
2 | <%
3 | String path = request.getContextPath();
4 | String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
5 | %>
6 |
7 |
8 |
9 |
10 |
11 |
12 | My JSP 'index.jsp' starting page
13 |
14 |
15 |
16 |
17 |
18 |
21 |
22 |
23 |
24 | This is my JSP page.
25 |
26 |
27 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/js/addCourse.js:
--------------------------------------------------------------------------------
1 |
2 | $(function () {
3 |
4 |
5 |
6 |
7 | $('#addCourse').click(function () {
8 | if (!validAddCourse()) {
9 | return;
10 | }
11 |
12 | $.ajax({
13 | type: 'POST',
14 | url: 'admin/courseManageAction_addCourse.action',
15 | cache: false,
16 | data: {
17 | courseName: $.trim($("#addCourseName").val()),
18 | },
19 | success: function (data) {
20 | if (data == 1) {
21 | showInfo("添加成功");
22 |
23 | } else if (data == 0) {
24 | showInfo("添加失败,请重试");
25 | } else if (data == -1) {
26 | showInfo("该课程已存在");
27 | }else {
28 | showInfo("添加失败,请重试");
29 | }
30 |
31 | },
32 | error: function (jqXHR, textStatus, errorThrown) {
33 | showInfo("添加失败,请重试");
34 | }
35 | });
36 |
37 |
38 | });
39 |
40 | $('#modal_info').on('hide.bs.modal',function() {//提示模糊框隐藏时候触发
41 | location.reload(); //刷新当前页面
42 | });
43 |
44 |
45 |
46 | });
47 |
48 |
49 | function validAddCourse() {
50 | var flag = true;
51 |
52 | var courseName = $.trim($("#addCourseName").val());
53 | if (courseName == "") {
54 | $('#addCourseName').parent().addClass("has-error");
55 | $('#addCourseName').next().text("请输入课程名");
56 | $("#addCourseName").next().show();
57 | flag = false;
58 | }else {
59 | $('#addCourseName').parent().removeClass("has-error");
60 | $('#addCourseName').next().text("");
61 | $("#addCourseName").next().hide();
62 | }
63 |
64 |
65 | return flag;
66 | }
67 |
68 |
69 |
70 |
71 |
72 |
73 | function showInfo(msg) {
74 | $("#div_info").text(msg);
75 | $("#modal_info").modal('show');
76 | }
77 |
78 |
79 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/js/bootstrap-dropdown.min.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Project: Twitter Bootstrap Hover Dropdown
3 | * Author: Cameron Spear
4 | * Contributors: Mattia Larentis
5 | *
6 | * Dependencies: Twitter Bootstrap's Dropdown plugin, jQuery
7 | *
8 | * A simple plugin to enable twitter bootstrap dropdowns to active on hover and provide a nice user experience.
9 | *
10 | * License: MIT
11 | *
12 | * http://cameronspear.com/blog/twitter-bootstrap-dropdown-on-hover-plugin/
13 | */(function(e,t,n){var r=e();e.fn.dropdownHover=function(n){r=r.add(this.parent());return this.each(function(){var i=e(this),s=i.parent(),o={delay:500,instantlyCloseOthers:!0},u={delay:e(this).data("delay"),instantlyCloseOthers:e(this).data("close-others")},a=e.extend(!0,{},o,n,u),f;s.hover(function(e){if(!s.hasClass("open")&&!i.is(e.target))return!0;a.instantlyCloseOthers===!0&&r.removeClass("open");t.clearTimeout(f);s.addClass("open")},function(){f=t.setTimeout(function(){s.removeClass("open")},a.delay)});i.hover(function(){a.instantlyCloseOthers===!0&&r.removeClass("open");t.clearTimeout(f);s.addClass("open")});s.find(".dropdown-submenu").each(function(){var n=e(this),r;n.hover(function(){t.clearTimeout(r);n.children(".dropdown-menu").show();n.siblings().children(".dropdown-menu").hide()},function(){var e=n.children(".dropdown-menu");r=t.setTimeout(function(){e.hide()},a.delay)})})})};e(document).ready(function(){e('[data-hover="dropdown"]').dropdownHover()})})(jQuery,this);
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/js/deleteChoice.js:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | function deleteChoice(id){
5 |
6 |
7 | $.ajax({
8 | type: 'POST',
9 | url: 'teacher/questionManageAction_deleteChoice.action',
10 | cache: false,
11 | data: {
12 | choiceId:id,
13 | },
14 | success: function (data) {
15 | if (data == 1) {
16 | showInfo("删除成功");
17 | }
18 | else {
19 | showInfo("删除失败");
20 | }
21 |
22 | },
23 | error: function (jqXHR, textStatus, errorThrown) {
24 | showInfo("删除失败,请重试");
25 | }
26 | });
27 |
28 |
29 | }
30 |
31 | $('#modal_info').on('hide.bs.modal',function() {//提示模糊框隐藏时候触发
32 | location.reload(); //刷新当前页面
33 | });
34 |
35 |
36 |
37 | function showInfo(msg) {
38 | $("#div_info").text(msg);
39 | $("#modal_info").modal('show');
40 | }
41 |
42 |
43 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/js/deleteCourse.js:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | function deleteCourse(id){
5 |
6 |
7 | $.ajax({
8 | type: 'POST',
9 | url: 'admin/courseManageAction_deleteCourse.action',
10 | cache: false,
11 | data: {
12 | courseId:id,
13 | },
14 | success: function (data) {
15 | if (data == 1) {
16 | showInfo("删除成功");
17 | }
18 | else {
19 | showInfo("删除失败");
20 | }
21 |
22 | },
23 | error: function (jqXHR, textStatus, errorThrown) {
24 | showInfo("删除失败,请重试");
25 | }
26 | });
27 |
28 |
29 | }
30 |
31 | $('#modal_info').on('hide.bs.modal',function() {//提示模糊框隐藏时候触发
32 | location.reload(); //刷新当前页面
33 | });
34 |
35 |
36 |
37 | function showInfo(msg) {
38 | $("#div_info").text(msg);
39 | $("#modal_info").modal('show');
40 | }
41 |
42 |
43 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/js/deleteJudge.js:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | function deleteJudge(id){
5 |
6 |
7 | $.ajax({
8 | type: 'POST',
9 | url: 'teacher/questionManageAction_deleteJudge.action',
10 | cache: false,
11 | data: {
12 | judgeId:id,
13 | },
14 | success: function (data) {
15 | if (data == 1) {
16 | showInfo("删除成功");
17 | }
18 | else {
19 | showInfo("删除失败");
20 | }
21 |
22 | },
23 | error: function (jqXHR, textStatus, errorThrown) {
24 | showInfo("删除失败,请重试");
25 | }
26 | });
27 |
28 |
29 | }
30 |
31 | $('#modal_info').on('hide.bs.modal',function() {//提示模糊框隐藏时候触发
32 | location.reload(); //刷新当前页面
33 | });
34 |
35 |
36 |
37 | function showInfo(msg) {
38 | $("#div_info").text(msg);
39 | $("#modal_info").modal('show');
40 | }
41 |
42 |
43 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/js/deleteStudent.js:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | function deleteStudent(id){
5 |
6 |
7 | $.ajax({
8 | type: 'POST',
9 | url: 'admin/studentManageAction_deleteStudent.action',
10 | cache: false,
11 | data: {
12 | studentId:id,
13 | },
14 | success: function (data) {
15 | if (data == 1) {
16 | showInfo("删除成功");
17 | }
18 | else {
19 | showInfo("删除失败");
20 | }
21 |
22 | },
23 | error: function (jqXHR, textStatus, errorThrown) {
24 | showInfo("删除失败,请重试");
25 | }
26 | });
27 |
28 |
29 | }
30 |
31 | $('#modal_info').on('hide.bs.modal',function() {//提示模糊框隐藏时候触发
32 | location.reload(); //刷新当前页面
33 | });
34 |
35 |
36 |
37 | function showInfo(msg) {
38 | $("#div_info").text(msg);
39 | $("#modal_info").modal('show');
40 | }
41 |
42 |
43 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/js/deleteSubject.js:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | function deleteSubject(id){
5 |
6 |
7 | $.ajax({
8 | type: 'POST',
9 | url: 'teacher/subjectManageAction_deleteSubject.action',
10 | cache: false,
11 | data: {
12 | subjectId:id,
13 | },
14 | success: function (data) {
15 | if (data == 1) {
16 | showInfo("删除成功");
17 | }
18 | else {
19 | showInfo("删除失败");
20 | }
21 |
22 | },
23 | error: function (jqXHR, textStatus, errorThrown) {
24 | showInfo("删除失败,请重试");
25 | }
26 | });
27 |
28 |
29 | }
30 |
31 | $('#modal_info').on('hide.bs.modal',function() {//提示模糊框隐藏时候触发
32 | location.reload(); //刷新当前页面
33 | });
34 |
35 |
36 |
37 | function showInfo(msg) {
38 | $("#div_info").text(msg);
39 | $("#modal_info").modal('show');
40 | }
41 |
42 |
43 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/js/deleteTeacher.js:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | function deleteTeacher(id){
5 |
6 |
7 | $.ajax({
8 | type: 'POST',
9 | url: 'admin/teacherManageAction_deleteTeacher.action',
10 | cache: false,
11 | data: {
12 | teacherId:id,
13 | },
14 | success: function (data) {
15 | if (data == 1) {
16 | showInfo("删除成功");
17 | }
18 | else {
19 | showInfo("删除失败");
20 | }
21 |
22 | },
23 | error: function (jqXHR, textStatus, errorThrown) {
24 | showInfo("删除失败,请重试");
25 | }
26 | });
27 |
28 |
29 | }
30 |
31 | $('#modal_info').on('hide.bs.modal',function() {//提示模糊框隐藏时候触发
32 | location.reload(); //刷新当前页面
33 | });
34 |
35 |
36 |
37 | function showInfo(msg) {
38 | $("#div_info").text(msg);
39 | $("#modal_info").modal('show');
40 | }
41 |
42 |
43 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/js/getAllCourses.js:
--------------------------------------------------------------------------------
1 | window.onload = new function(){
2 |
3 | $.ajax({
4 | type: 'GET',
5 | url: 'teacher/getAllCourseAction.action',
6 | dataType: "json",
7 | cache: false,
8 | success: function (data) {
9 | for(var index in data) {
10 | var op = document.createElement("option");
11 | op.value = data[index].courseId;
12 | var textNode = document.createTextNode(data[index].courseName);
13 | op.appendChild(textNode);
14 |
15 | document.getElementById("courseId").appendChild(op);
16 | }
17 |
18 | },
19 | });
20 |
21 |
22 |
23 |
24 | };
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/js/getChoice.js:
--------------------------------------------------------------------------------
1 | function getChoice(id){
2 |
3 | $.ajax({
4 | type: 'POST',
5 | url: 'teacher/questionManageAction_getChoice.action',
6 | cache: false,
7 | dataType: "json",
8 | data: {
9 | choiceId: id,
10 | },
11 | success: function (data) {
12 | $("#findChoice_course").val(data.subject.course.courseName);
13 | $("#findChoice_subject").val(data.subject.subjectName);
14 | $("#findChoice_question").val(data.question);
15 | $("#findOptionA").val(data.optionA);
16 | $("#findOptionB").val(data.optionB);
17 | $("#findOptionC").val(data.optionC);
18 | $("#findOptionD").val(data.optionD);
19 | $("#findChoice_answer").val(data.answer);
20 | $("#findChoice_score").val(data.subject.choiceScore);
21 | }
22 | });
23 |
24 | }
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/js/getJudge.js:
--------------------------------------------------------------------------------
1 | function getJudge(id){
2 |
3 | $.ajax({
4 | type: 'POST',
5 | url: 'teacher/questionManageAction_getJudge.action',
6 | cache: false,
7 | dataType: "json",
8 | data: {
9 | judgeId: id,
10 | },
11 | success: function (data) {
12 | $("#findJudge_course").val(data.subject.course.courseName);
13 | $("#findJudge_subject").val(data.subject.subjectName);
14 | $("#findJudge_question").val(data.question);
15 | $("#findJudge_answer").val(data.answer);
16 | $("#findJudge_score").val(data.subject.judgeScore);
17 | }
18 | });
19 |
20 | }
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/js/getSubject.js:
--------------------------------------------------------------------------------
1 | function getSubject(id){
2 |
3 | $.ajax({
4 | type: 'POST',
5 | url: 'teacher/subjectManageAction_getSubject.action',
6 | cache: false,
7 | dataType: "json",
8 | data: {
9 | subjectId: id,
10 | },
11 | success: function (data) {
12 | $("#findSubjectName").val(data.subjectName);
13 | $("#findCourseName").val(data.course.courseName);
14 | $("#findSubjectTime").val(data.subjectTime + " 分钟");
15 | $("#findChoiceScore").val(data.choiceScore + " 分");
16 | $("#findJudgeScore").val(data.judgeScore + " 分");
17 | $("#findChoiceNum").val(data.choiceNum + " 个");
18 | $("#findJudgeNum").val(data.judgeNum + " 分");
19 | $("#findAllScore").val(data.allScore + " 分");
20 | }
21 | });
22 |
23 | }
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/js/question.js:
--------------------------------------------------------------------------------
1 |
2 | function question(id){
3 | var question_action = $.trim($("#question_action").val()) +"?subjectId="+ id;
4 |
5 | window.location.href = question_action;
6 | }
7 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/js/score.js:
--------------------------------------------------------------------------------
1 |
2 | function score(id,sid){
3 | var score_action = $.trim($("#score_action").val()) +"?subjectId="+ id + "&studentId="+sid;
4 |
5 | window.location.href = score_action;
6 | }
7 |
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/js/student_getAllCourses.js:
--------------------------------------------------------------------------------
1 | window.onload = new function(){
2 |
3 | $.ajax({
4 | type: 'GET',
5 | url: 'student/getAllCourseAction.action',
6 | dataType: "json",
7 | cache: false,
8 | success: function (data) {
9 | for(var index in data) {
10 | var op = document.createElement("option");
11 | op.value = data[index].courseId;
12 | var textNode = document.createTextNode(data[index].courseName);
13 | op.appendChild(textNode);
14 |
15 | document.getElementById("courseId").appendChild(op);
16 | }
17 |
18 | },
19 | });
20 |
21 |
22 |
23 |
24 | };
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/js/student_getSubject.js:
--------------------------------------------------------------------------------
1 | function getSubject(id){
2 |
3 | $.ajax({
4 | type: 'POST',
5 | url: 'student/subjectManageAction_getSubject.action',
6 | cache: false,
7 | dataType: "json",
8 | data: {
9 | subjectId: id,
10 | },
11 | success: function (data) {
12 | $("#findSubjectName").val(data.subjectName);
13 | $("#findCourseName").val(data.course.courseName);
14 | $("#findSubjectTime").val(data.subjectTime + " 分钟");
15 | $("#findChoiceScore").val(data.choiceScore + " 分");
16 | $("#findJudgeScore").val(data.judgeScore + " 分");
17 | $("#findChoiceNum").val(data.choiceNum + " 个");
18 | $("#findJudgeNum").val(data.judgeNum + " 个");
19 | $("#findAllScore").val(data.allScore + " 分");
20 | }
21 | });
22 |
23 | }
--------------------------------------------------------------------------------
/OnLineTest/WebRoot/js/test.js:
--------------------------------------------------------------------------------
1 | function test(id){
2 | //先去请求这个学生是否在考试或者该试卷已经做过了
3 | $.ajax({
4 | type: 'POST',
5 | url: 'student/studentManageAction_getState.action',
6 | cache: false,
7 | data: {
8 | studentId: $.trim($("#test_studentId").val()),
9 | subjectId:id,
10 | },
11 | success: function (data) {
12 | if (data == 1) {
13 | var test_action = $.trim($("#test_action").val()) +"?subjectId="+ id;
14 | window.location.href = test_action;
15 | } else if (data == 0) {
16 | showInfo("失败,请重试");
17 | } else if (data == -1) {
18 | showInfo("正在考试,请继续考试");
19 | }else if (data == -2){
20 | showInfo("该试卷已经做过了");
21 | }else{
22 | showInfo("失败,请重试");
23 | }
24 |
25 | },
26 | error: function (jqXHR, textStatus, errorThrown) {
27 | showInfo("失败,请重试");
28 | }
29 | });
30 | }
31 |
32 |
33 | function showInfo(msg) {
34 | $("#div_info").text(msg);
35 | $("#modal_info").modal('show');
36 | }
37 |
38 |
--------------------------------------------------------------------------------
/OnLineTest/config/hibernate/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | com.mysql.jdbc.Driver
9 |
10 |
11 | jdbc:mysql://localhost:3306/OnLineTest
12 |
13 |
16 | root
17 |
20 | 123
21 |
24 | true
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/OnLineTest/config/spring/applicationContext-admin-info.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/OnLineTest/config/spring/applicationContext-admin-login.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/OnLineTest/config/spring/applicationContext-course-manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/OnLineTest/config/spring/applicationContext-db.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
17 | classpath:hibernate/hibernate.cfg.xml
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/OnLineTest/config/spring/applicationContext-online-test.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 |
--------------------------------------------------------------------------------
/OnLineTest/config/spring/applicationContext-question-manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 |
--------------------------------------------------------------------------------
/OnLineTest/config/spring/applicationContext-score-manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 |
--------------------------------------------------------------------------------
/OnLineTest/config/spring/applicationContext-student-info.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/OnLineTest/config/spring/applicationContext-student-login.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/OnLineTest/config/spring/applicationContext-student-manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 |
--------------------------------------------------------------------------------
/OnLineTest/config/spring/applicationContext-subject-manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 |
--------------------------------------------------------------------------------
/OnLineTest/config/spring/applicationContext-teacher-info.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/OnLineTest/config/spring/applicationContext-teacher-login.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/OnLineTest/config/spring/applicationContext-teacher-manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/OnLineTest/config/spring/applicationContext.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/OnLineTest/config/struts.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/OnLineTest/config/struts2/struts-admin-info.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/OnLineTest/config/struts2/struts-admin-login.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | adminLogin.jsp
9 |
10 |
11 |
--------------------------------------------------------------------------------
/OnLineTest/config/struts2/struts-course-manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | /WEB-INF/admin/courseManage.jsp
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/OnLineTest/config/struts2/struts-online-test.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | /WEB-INF/admin/courseManage.jsp
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/OnLineTest/config/struts2/struts-question-manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | /WEB-INF/teacher/questionManage.jsp
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/OnLineTest/config/struts2/struts-score-manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | /WEB-INF/student/score.jsp
9 | /WEB-INF/student/myscores.jsp
10 |
11 |
12 |
13 |
14 |
15 |
16 | /WEB-INF/teacher/studentScores.jsp
17 | /WEB-INF/teacher/score.jsp
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/OnLineTest/config/struts2/struts-student-info.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/OnLineTest/config/struts2/struts-student-login.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | studentLogin.jsp
9 |
10 |
11 |
--------------------------------------------------------------------------------
/OnLineTest/config/struts2/struts-student-manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | /WEB-INF/admin/studentManage.jsp
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/OnLineTest/config/struts2/struts-subject-manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | /WEB-INF/teacher/subjectManage.jsp
9 | /WEB-INF/teacher/questionManage.jsp
10 |
11 |
12 |
13 |
14 |
15 |
16 | /WEB-INF/student/onLineTest.jsp
17 | /WEB-INF/student/questions.jsp
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/OnLineTest/config/struts2/struts-teacher-info.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/OnLineTest/config/struts2/struts-teacher-login.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | teacherLogin.jsp
9 |
10 |
11 |
--------------------------------------------------------------------------------
/OnLineTest/config/struts2/struts-teacher-manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | /WEB-INF/admin/teacherManage.jsp
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/action/AdminInfoAction.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.action;
2 |
3 | import java.io.IOException;
4 | import java.util.Map;
5 |
6 | import org.apache.struts2.ServletActionContext;
7 |
8 | import com.cc.onlinetest.domain.Admin;
9 | import com.cc.onlinetest.service.AdminService;
10 | import com.cc.onlinetest.utils.Md5Utils;
11 | import com.opensymphony.xwork2.ActionSupport;
12 |
13 | @SuppressWarnings("serial")
14 | public class AdminInfoAction extends ActionSupport{
15 |
16 | private AdminService adminService;
17 |
18 | public void setAdminService(AdminService adminService) {
19 | this.adminService = adminService;
20 | }
21 | private String oldPwd;
22 | private String newPwd;
23 | private String confirmPwd;
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 | public void setOldPwd(String oldPwd) {
34 | this.oldPwd = oldPwd;
35 | }
36 |
37 |
38 |
39 |
40 | public void setNewPwd(String newPwd) {
41 | this.newPwd = newPwd;
42 | }
43 |
44 |
45 |
46 |
47 | public void setConfirmPwd(String confirmPwd) {
48 | this.confirmPwd = confirmPwd;
49 | }
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 | /**
60 | * 管理员密码修改
61 | * @return
62 | */
63 | public String adminPwd(){
64 | Admin admin = (Admin) ServletActionContext.getContext().getSession().get("admin");
65 | int state = -1;//原密码错误
66 | //取出原密码进行比对
67 | if(admin.getPassword().equals(Md5Utils.md5(oldPwd))){
68 | if(newPwd.equals(confirmPwd)){
69 | state = 1;//修改成功
70 | admin.setPassword(Md5Utils.md5(newPwd));
71 | admin = adminService.updateAdminInfo(admin);
72 | //重新存入session
73 | ServletActionContext.getContext().getSession().put("admin", admin);
74 | }else{
75 | state = 0;//确认密码不一致
76 | }
77 | }
78 | try {
79 | ServletActionContext.getResponse().getWriter().print(state);
80 | } catch (IOException e) {
81 | // TODO Auto-generated catch block
82 | throw new RuntimeException(e.getMessage());
83 | }
84 | return null;
85 | }
86 | }
87 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/action/AdminLoginAction.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.action;
2 |
3 | import java.io.IOException;
4 |
5 | import javax.servlet.http.HttpServletResponse;
6 |
7 | import org.apache.struts2.ServletActionContext;
8 |
9 |
10 |
11 | import com.cc.onlinetest.domain.Admin;
12 | import com.cc.onlinetest.service.AdminService;
13 | import com.cc.onlinetest.utils.Md5Utils;
14 | import com.opensymphony.xwork2.ActionSupport;
15 |
16 |
17 | @SuppressWarnings("serial")
18 | public class AdminLoginAction extends ActionSupport {
19 |
20 | private AdminService adminService;
21 |
22 | public void setAdminService(AdminService adminService) {
23 | this.adminService = adminService;
24 | }
25 |
26 |
27 | private String username;
28 | private String password;
29 |
30 |
31 |
32 | public void setUsername(String username) {
33 | this.username = username;
34 | }
35 |
36 |
37 | public void setPassword(String password) {
38 | this.password = password;
39 | }
40 |
41 |
42 |
43 |
44 | /**
45 | * Ajax异步请求获得登录许可
46 | * @return 返回登录状态
47 | */
48 | public String login(){
49 | //管理员
50 | Admin admin = new Admin();
51 | admin.setUsername(username);
52 | admin.setPassword(Md5Utils.md5(password));
53 | Admin newAdmin = adminService.getAdminByUserName(admin);
54 | int login = 1;
55 | if(newAdmin==null){
56 | //用户名不存在
57 | login = -1;
58 | }else if(!newAdmin.getPassword().equals(admin.getPassword())){
59 | //密码不正确
60 | login = -2;
61 | }else{
62 | //存储入session
63 | ServletActionContext.getContext().getSession().put("admin", newAdmin);
64 | }
65 | HttpServletResponse response = ServletActionContext.getResponse();
66 | try {
67 | response.getWriter().print(login);
68 | } catch (IOException e) {
69 | throw new RuntimeException(e.getMessage());
70 | }
71 | return null;
72 | }
73 |
74 |
75 | /**
76 | * 退出登录
77 | */
78 | public String logout(){
79 | ServletActionContext.getContext().getSession().remove("admin");
80 | return "logout";
81 | }
82 |
83 |
84 |
85 |
86 |
87 | }
88 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/action/OnLineTestAction.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.action;
2 |
3 |
4 | import java.io.IOException;
5 |
6 | import javax.servlet.http.HttpServletResponse;
7 |
8 | import org.apache.struts2.ServletActionContext;
9 |
10 | import com.cc.onlinetest.domain.Student;
11 | import com.cc.onlinetest.domain.Subject;
12 | import com.cc.onlinetest.service.OnLineTestService;
13 | import com.opensymphony.xwork2.ActionSupport;
14 |
15 | public class OnLineTestAction extends ActionSupport{
16 |
17 | private OnLineTestService onLineTestService;
18 |
19 |
20 |
21 |
22 |
23 |
24 | /**
25 | * @param onLineTestService the onLineTestService to set
26 | */
27 | public void setOnLineTestService(OnLineTestService onLineTestService) {
28 | this.onLineTestService = onLineTestService;
29 | }
30 |
31 | private String answer;
32 | private String studentId;
33 | private int subjectId;
34 |
35 |
36 |
37 | /**
38 | * @param answer the answer to set
39 | */
40 | public void setAnswer(String answer) {
41 | this.answer = answer;
42 | }
43 |
44 |
45 |
46 | /**
47 | * @param studentId the studentId to set
48 | */
49 | public void setStudentId(String studentId) {
50 | this.studentId = studentId;
51 | }
52 |
53 |
54 |
55 |
56 |
57 | public String onLineTest(){
58 | Student student = new Student();
59 | student.setStudentId(studentId);
60 | Subject subject = new Subject();
61 | subject.setSubjectId(subjectId);
62 | boolean b = onLineTestService.onLineTest(student,subject,answer);
63 | int state = 0;
64 | if(b){
65 | state = 1;
66 | }else{
67 | state = -1;
68 | }
69 | HttpServletResponse response = ServletActionContext.getResponse();
70 | try {
71 | response.getWriter().print(state);
72 | } catch (IOException e) {
73 | throw new RuntimeException(e.getMessage());
74 | }
75 | return null;
76 | }
77 |
78 |
79 |
80 |
81 | /**
82 | * @param subjectId the subjectId to set
83 | */
84 | public void setSubjectId(int subjectId) {
85 | this.subjectId = subjectId;
86 | }
87 |
88 |
89 | }
90 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/action/TeacherInfoAction.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.action;
2 |
3 | import java.io.IOException;
4 | import java.util.Map;
5 |
6 | import org.apache.struts2.ServletActionContext;
7 |
8 | import com.cc.onlinetest.domain.Teacher;
9 | import com.cc.onlinetest.service.TeacherService;
10 | import com.cc.onlinetest.utils.Md5Utils;
11 | import com.opensymphony.xwork2.ActionSupport;
12 |
13 | @SuppressWarnings("serial")
14 | public class TeacherInfoAction extends ActionSupport{
15 |
16 | private TeacherService teacherService;
17 |
18 |
19 |
20 |
21 |
22 | /**
23 | * @param teacherService the teacherService to set
24 | */
25 | public void setTeacherService(TeacherService teacherService) {
26 | this.teacherService = teacherService;
27 | }
28 |
29 |
30 |
31 | private String oldPwd;
32 | private String newPwd;
33 | private String confirmPwd;
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 | public void setOldPwd(String oldPwd) {
45 | this.oldPwd = oldPwd;
46 | }
47 |
48 |
49 |
50 |
51 | public void setNewPwd(String newPwd) {
52 | this.newPwd = newPwd;
53 | }
54 |
55 |
56 |
57 |
58 | public void setConfirmPwd(String confirmPwd) {
59 | this.confirmPwd = confirmPwd;
60 | }
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 | public String teacherPwd(){
70 | Teacher teacher = (Teacher) ServletActionContext.getContext().getSession().get("teacher");
71 | int state = -1;//原密码错误
72 | //取出原密码进行比对
73 | if(teacher.getPassword().equals(Md5Utils.md5(oldPwd))){
74 | if(newPwd.equals(confirmPwd)){
75 | state = 1;//修改成功
76 | teacher.setPassword(Md5Utils.md5(newPwd));
77 | teacher = teacherService.updateTeacherInfo(teacher);
78 | //重新存入session
79 | ServletActionContext.getContext().getSession().put("teacher", teacher);
80 | }else{
81 | state = 0;//确认密码不一致
82 | }
83 | }
84 | try {
85 | ServletActionContext.getResponse().getWriter().print(state);
86 | } catch (IOException e) {
87 | // TODO Auto-generated catch block
88 | throw new RuntimeException(e.getMessage());
89 | }
90 | return null;
91 | }
92 | }
93 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/dao/AdminDao.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.dao;
2 |
3 | import java.util.List;
4 |
5 | import com.cc.onlinetest.domain.Admin;
6 |
7 |
8 | public interface AdminDao {
9 |
10 | public Admin getAdminByUserName(Admin admin);
11 |
12 | public Admin updateAdminInfo(Admin admin);
13 |
14 |
15 | public boolean addAdmin(Admin admin);
16 |
17 | public Admin getAdminById(Admin admin);
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/dao/CourseDao.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.dao;
2 |
3 | import java.util.List;
4 |
5 | import com.cc.onlinetest.domain.Course;
6 | import com.cc.onlinetest.domain.PageBean;
7 |
8 | public interface CourseDao {
9 |
10 | public PageBean findCourseByPage(int pageCode, int pageSize);
11 |
12 | public boolean addCourse(Course course);
13 |
14 | public Course getCourseByName(Course course);
15 |
16 | public Course getCourseById(Course course);
17 |
18 | public Course updateCourse(Course course);
19 |
20 | public boolean deleteCourse(Course course);
21 |
22 | public PageBean queryCourse(Course course, int pageCode,
23 | int pageSize);
24 |
25 | public List getAllCourses();
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/dao/OnLineTestDao.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.dao;
2 |
3 | import com.cc.onlinetest.domain.Answer;
4 | import com.cc.onlinetest.domain.Choice;
5 | import com.cc.onlinetest.domain.Judge;
6 | import com.cc.onlinetest.domain.Student;
7 | import com.cc.onlinetest.domain.Subject;
8 |
9 | public interface OnLineTestDao {
10 |
11 |
12 | boolean addAnswer(Answer an);
13 |
14 | Answer getChoiceAnswer(Student student, Subject subject, Choice choice);
15 |
16 | Answer getJudgeAnswer(Student student, Subject subject, Judge judge);
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/dao/QuestionDao.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.dao;
2 |
3 | import com.cc.onlinetest.domain.Choice;
4 | import com.cc.onlinetest.domain.Judge;
5 |
6 | public interface QuestionDao {
7 |
8 | boolean addChoice(Choice choice);
9 |
10 | boolean addJudge(Judge judge);
11 |
12 | Choice getChoiceById(Choice choice);
13 |
14 | Judge getJudgeById(Judge judge);
15 |
16 | Choice updateChoice(Choice choice);
17 |
18 | Judge updateJudge(Judge judgeById);
19 |
20 | boolean deleteChoice(Choice choice);
21 |
22 | boolean deleteJudge(Judge judge);
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/dao/ScoreDao.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.dao;
2 |
3 | import com.cc.onlinetest.domain.PageBean;
4 | import com.cc.onlinetest.domain.Score;
5 | import com.cc.onlinetest.domain.Student;
6 | import com.cc.onlinetest.domain.Subject;
7 |
8 | public interface ScoreDao {
9 |
10 | boolean addScore(Score score);
11 |
12 | Score getScore(Student student, Subject subject);
13 |
14 | PageBean findScoreByPage(int pageCode, int pageSize);
15 |
16 | PageBean queryMyScore(Subject subject, int pageCode, int pageSize);
17 |
18 | PageBean findMyScoreByPage(Student student, int pageCode,
19 | int pageSize);
20 |
21 | PageBean queryScore(Subject subject, Student student, int pageCode,
22 | int pageSize);
23 | }
24 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/dao/StudentDao.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.dao;
2 |
3 | import com.cc.onlinetest.domain.PageBean;
4 | import com.cc.onlinetest.domain.Student;
5 |
6 | public interface StudentDao {
7 |
8 | Student getStudentById(Student student);
9 |
10 | Student updateStudent(Student updateStudent);
11 |
12 | boolean addStudent(Student student);
13 |
14 | PageBean findStudentByPage(int pageCode, int pageSize);
15 |
16 | PageBean queryStudent(Student student, int pageCode, int pageSize);
17 |
18 | boolean deleteStudent(Student student);
19 |
20 | Student updateStudentInfo(Student student);
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/dao/SubjectDao.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.dao;
2 |
3 | import com.cc.onlinetest.domain.Choice;
4 | import com.cc.onlinetest.domain.Judge;
5 | import com.cc.onlinetest.domain.PageBean;
6 | import com.cc.onlinetest.domain.Subject;
7 |
8 | public interface SubjectDao {
9 |
10 | PageBean findSubjectByPage(int pageCode, int pageSize);
11 |
12 | Subject getSubjectByName(Subject subject);
13 |
14 | boolean addSubject(Subject subject);
15 |
16 | Subject getSubjectById(Subject subject);
17 |
18 | Subject updateSubject(Subject updateSubject);
19 |
20 | boolean deleteSubject(Subject subject);
21 |
22 | PageBean querySubject(Subject subject, int pageCode, int pageSize);
23 |
24 | boolean setChoiceNum(Subject subject);
25 |
26 | boolean setJudgeNum(Subject subject);
27 |
28 | boolean setAllScore(Subject subject);
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/dao/TeacherDao.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.dao;
2 |
3 | import com.cc.onlinetest.domain.PageBean;
4 | import com.cc.onlinetest.domain.Teacher;
5 |
6 | public interface TeacherDao {
7 |
8 | Teacher getTeacherById(Teacher teacher);
9 |
10 | Teacher updateTeacher(Teacher updateTeacher);
11 |
12 | boolean addTeacher(Teacher teacher);
13 |
14 | PageBean findTeacherByPage(int pageCode, int pageSize);
15 |
16 | PageBean queryTeacher(Teacher teacher, int pageCode, int pageSize);
17 |
18 | boolean deleteTeacher(Teacher teacher);
19 |
20 | Teacher updateTeacherInfo(Teacher teacher);
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/dao/impl/OnLineTestDaoImpl.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.dao.impl;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
6 |
7 | import com.cc.onlinetest.dao.OnLineTestDao;
8 | import com.cc.onlinetest.domain.Answer;
9 | import com.cc.onlinetest.domain.Choice;
10 | import com.cc.onlinetest.domain.Course;
11 | import com.cc.onlinetest.domain.Judge;
12 | import com.cc.onlinetest.domain.Student;
13 | import com.cc.onlinetest.domain.Subject;
14 | import com.cc.onlinetest.service.OnLineTestService;
15 |
16 | public class OnLineTestDaoImpl extends HibernateDaoSupport implements OnLineTestDao{
17 |
18 | @Override
19 | public boolean addAnswer(Answer answer) {
20 | boolean b = true;
21 | try{
22 | this.getHibernateTemplate().clear();
23 | this.getHibernateTemplate().save(answer);
24 | this.getHibernateTemplate().flush();
25 | }catch (Throwable e1) {
26 | b = false;
27 | e1.printStackTrace();
28 | throw new RuntimeException(e1.getMessage());
29 | }
30 | return b;
31 | }
32 |
33 | @Override
34 | public Answer getChoiceAnswer(Student student, Subject subject,
35 | Choice choice) {
36 | String hql= "from Answer a where a.student.studentId=? and a.subject.subjectId=? and a.question=? and a.questionType=1";
37 | List list = this.getHibernateTemplate().find(hql, new Object[]{student.getStudentId(),subject.getSubjectId(),choice.getChoiceId()});
38 | if(list!=null && list.size()>0){
39 | return (Answer) list.get(0);
40 | }
41 | return null;
42 | }
43 |
44 | @Override
45 | public Answer getJudgeAnswer(Student student, Subject subject, Judge judge) {
46 | String hql= "from Answer a where a.student.studentId=? and a.subject.subjectId=? and a.question=? and a.questionType=2";
47 | List list = this.getHibernateTemplate().find(hql, new Object[]{student.getStudentId(),subject.getSubjectId(),judge.getJudgeId()});
48 | if(list!=null && list.size()>0){
49 | return (Answer) list.get(0);
50 | }
51 | return null;
52 | }
53 |
54 |
55 |
56 | }
57 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/domain/Admin.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/domain/Admin.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.domain;
2 |
3 | public class Admin {
4 |
5 | private Integer adminId;
6 | private String username;
7 | private String password;
8 | /**
9 | * @return the adminId
10 | */
11 | public Integer getAdminId() {
12 | return adminId;
13 | }
14 | /**
15 | * @param adminId the adminId to set
16 | */
17 | public void setAdminId(Integer adminId) {
18 | this.adminId = adminId;
19 | }
20 | /**
21 | * @return the username
22 | */
23 | public String getUsername() {
24 | return username;
25 | }
26 | /**
27 | * @param username the username to set
28 | */
29 | public void setUsername(String username) {
30 | this.username = username;
31 | }
32 | /**
33 | * @return the password
34 | */
35 | public String getPassword() {
36 | return password;
37 | }
38 | /**
39 | * @param password the password to set
40 | */
41 | public void setPassword(String password) {
42 | this.password = password;
43 | }
44 |
45 |
46 |
47 | }
48 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/domain/Answer.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/domain/Choice.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/domain/ChoiceAnswer.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.domain;
2 |
3 | public class ChoiceAnswer {
4 |
5 | private Answer answer;
6 | private Choice choice;
7 | /**
8 | * @return the answer
9 | */
10 | public Answer getAnswer() {
11 | return answer;
12 | }
13 | /**
14 | * @param answer the answer to set
15 | */
16 | public void setAnswer(Answer answer) {
17 | this.answer = answer;
18 | }
19 | /**
20 | * @return the choice
21 | */
22 | public Choice getChoice() {
23 | return choice;
24 | }
25 | /**
26 | * @param choice the choice to set
27 | */
28 | public void setChoice(Choice choice) {
29 | this.choice = choice;
30 | }
31 |
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/domain/Course.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/domain/Course.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.domain;
2 |
3 | import java.util.Set;
4 |
5 | public class Course {
6 |
7 | private Integer courseId;
8 | private String courseName;
9 | private Set subjects;
10 |
11 |
12 | /**
13 | * @return the subjects
14 | */
15 | public Set getSubjects() {
16 | return subjects;
17 | }
18 | /**
19 | * @param subjects the subjects to set
20 | */
21 | public void setSubjects(Set subjects) {
22 | this.subjects = subjects;
23 | }
24 | /**
25 | * @return the courseId
26 | */
27 | public Integer getCourseId() {
28 | return courseId;
29 | }
30 | /**
31 | * @param courseId the courseId to set
32 | */
33 | public void setCourseId(Integer courseId) {
34 | this.courseId = courseId;
35 | }
36 | /**
37 | * @return the courseName
38 | */
39 | public String getCourseName() {
40 | return courseName;
41 | }
42 | /**
43 | * @param courseName the courseName to set
44 | */
45 | public void setCourseName(String courseName) {
46 | this.courseName = courseName;
47 | }
48 |
49 |
50 |
51 |
52 | }
53 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/domain/Judge.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/domain/Judge.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.domain;
2 |
3 | public class Judge {
4 |
5 | private Integer judgeId;
6 | private Subject subject;
7 | private String question;
8 | private String answer;
9 |
10 | /**
11 | * @return the question
12 | */
13 | public String getQuestion() {
14 | return question;
15 | }
16 | /**
17 | * @param question the question to set
18 | */
19 | public void setQuestion(String question) {
20 | this.question = question;
21 | }
22 | /**
23 | * @return the judgeId
24 | */
25 | public Integer getJudgeId() {
26 | return judgeId;
27 | }
28 | /**
29 | * @param judgeId the judgeId to set
30 | */
31 | public void setJudgeId(Integer judgeId) {
32 | this.judgeId = judgeId;
33 | }
34 | /**
35 | * @return the subject
36 | */
37 | public Subject getSubject() {
38 | return subject;
39 | }
40 | /**
41 | * @param subject the subject to set
42 | */
43 | public void setSubject(Subject subject) {
44 | this.subject = subject;
45 | }
46 | /**
47 | * @return the answer
48 | */
49 | public String getAnswer() {
50 | return answer;
51 | }
52 | /**
53 | * @param answer the answer to set
54 | */
55 | public void setAnswer(String answer) {
56 | this.answer = answer;
57 | }
58 |
59 |
60 | }
61 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/domain/JudgeAnswer.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.domain;
2 |
3 | public class JudgeAnswer {
4 |
5 | private Answer answer;
6 | private Judge judge;
7 | /**
8 | * @return the answer
9 | */
10 | public Answer getAnswer() {
11 | return answer;
12 | }
13 | /**
14 | * @param answer the answer to set
15 | */
16 | public void setAnswer(Answer answer) {
17 | this.answer = answer;
18 | }
19 | /**
20 | * @return the judge
21 | */
22 | public Judge getJudge() {
23 | return judge;
24 | }
25 | /**
26 | * @param judge the judge to set
27 | */
28 | public void setJudge(Judge judge) {
29 | this.judge = judge;
30 | }
31 |
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/domain/PageBean.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.domain;
2 |
3 | import java.io.Serializable;
4 | import java.util.List;
5 |
6 | /**
7 | * 分页类
8 | * @author c
9 | *
10 | */
11 | public class PageBean implements Serializable{
12 |
13 | private int pageCode;//当前页码
14 | private int totaPage;//总页数
15 | private int totalRecord;//总记录数
16 | private int pageSize;//每页记录数
17 | private List beanList;// 当前页记录数
18 | private String url; //url的条件
19 |
20 | public int getPageCode() {
21 | return pageCode;
22 | }
23 |
24 | public void setPageCode(int pageCode) {
25 | this.pageCode = pageCode;
26 | }
27 |
28 | /**
29 | * 计算总页数
30 | * @return
31 | */
32 | public int getTotaPage() {
33 | // 通过总记录数和每页记录数来计算总页数
34 | int tp = totalRecord / pageSize;
35 | return totalRecord%pageSize==0 ? tp : tp+1;
36 | }
37 |
38 |
39 | public int getTotalRecord() {
40 | return totalRecord;
41 | }
42 |
43 | public void setTotalRecord(int totalRecord) {
44 | this.totalRecord = totalRecord;
45 | }
46 |
47 | public int getPageSize() {
48 | return pageSize;
49 | }
50 |
51 | public void setPageSize(int pageSize) {
52 | this.pageSize = pageSize;
53 | }
54 |
55 | public List getBeanList() {
56 | return beanList;
57 | }
58 |
59 | public void setBeanList(List beanList) {
60 | this.beanList = beanList;
61 | }
62 |
63 | public String getUrl() {
64 | return url;
65 | }
66 |
67 | public void setUrl(String url) {
68 | this.url = url;
69 | }
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 | }
79 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/domain/ResultScore.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.domain;
2 |
3 | import java.util.List;
4 |
5 |
6 | public class ResultScore {
7 |
8 | private List choiceAnswers;
9 | private List judgeAnswers;
10 | private Score score;
11 | /**
12 | * @return the choiceAnswers
13 | */
14 | public List getChoiceAnswers() {
15 | return choiceAnswers;
16 | }
17 | /**
18 | * @param choiceAnswers the choiceAnswers to set
19 | */
20 | public void setChoiceAnswers(List choiceAnswers) {
21 | this.choiceAnswers = choiceAnswers;
22 | }
23 | /**
24 | * @return the judgeAnswers
25 | */
26 | public List getJudgeAnswers() {
27 | return judgeAnswers;
28 | }
29 | /**
30 | * @param judgeAnswers the judgeAnswers to set
31 | */
32 | public void setJudgeAnswers(List judgeAnswers) {
33 | this.judgeAnswers = judgeAnswers;
34 | }
35 | /**
36 | * @return the score
37 | */
38 | public Score getScore() {
39 | return score;
40 | }
41 | /**
42 | * @param score the score to set
43 | */
44 | public void setScore(Score score) {
45 | this.score = score;
46 | }
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 | }
55 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/domain/Score.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/domain/Score.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.domain;
2 |
3 | public class Score {
4 |
5 | private Integer scoreId;
6 | private Student student;
7 | private Subject subject;
8 | private Integer choiceScore;
9 | private Integer judgeScore;
10 | private Integer allScore;
11 | /**
12 | * @return the scoreId
13 | */
14 | public Integer getScoreId() {
15 | return scoreId;
16 | }
17 | /**
18 | * @param scoreId the scoreId to set
19 | */
20 | public void setScoreId(Integer scoreId) {
21 | this.scoreId = scoreId;
22 | }
23 | /**
24 | * @return the student
25 | */
26 | public Student getStudent() {
27 | return student;
28 | }
29 | /**
30 | * @param student the student to set
31 | */
32 | public void setStudent(Student student) {
33 | this.student = student;
34 | }
35 | /**
36 | * @return the subject
37 | */
38 | public Subject getSubject() {
39 | return subject;
40 | }
41 | /**
42 | * @param subject the subject to set
43 | */
44 | public void setSubject(Subject subject) {
45 | this.subject = subject;
46 | }
47 | /**
48 | * @return the choiceScore
49 | */
50 | public Integer getChoiceScore() {
51 | return choiceScore;
52 | }
53 | /**
54 | * @param choiceScore the choiceScore to set
55 | */
56 | public void setChoiceScore(Integer choiceScore) {
57 | this.choiceScore = choiceScore;
58 | }
59 | /**
60 | * @return the judgeScore
61 | */
62 | public Integer getJudgeScore() {
63 | return judgeScore;
64 | }
65 | /**
66 | * @param judgeScore the judgeScore to set
67 | */
68 | public void setJudgeScore(Integer judgeScore) {
69 | this.judgeScore = judgeScore;
70 | }
71 | /**
72 | * @return the allScore
73 | */
74 | public Integer getAllScore() {
75 | return allScore;
76 | }
77 | /**
78 | * @param allScore the allScore to set
79 | */
80 | public void setAllScore(Integer allScore) {
81 | this.allScore = allScore;
82 | }
83 |
84 |
85 | }
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/domain/Student.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/domain/Student.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.domain;
2 |
3 | import java.util.Set;
4 |
5 | public class Student {
6 |
7 | private String studentId;
8 | private String studentName;
9 | private String password;
10 | private Integer lockState;
11 |
12 |
13 |
14 |
15 | /**
16 | * @return the lockState
17 | */
18 | public Integer getLockState() {
19 | return lockState;
20 | }
21 | /**
22 | * @param lockState the lockState to set
23 | */
24 | public void setLockState(Integer lockState) {
25 | this.lockState = lockState;
26 | }
27 | /**
28 | * @return the studentId
29 | */
30 | public String getStudentId() {
31 | return studentId;
32 | }
33 | /**
34 | * @param studentId the studentId to set
35 | */
36 | public void setStudentId(String studentId) {
37 | this.studentId = studentId;
38 | }
39 | /**
40 | * @return the studentName
41 | */
42 | public String getStudentName() {
43 | return studentName;
44 | }
45 | /**
46 | * @param studentName the studentName to set
47 | */
48 | public void setStudentName(String studentName) {
49 | this.studentName = studentName;
50 | }
51 | /**
52 | * @return the password
53 | */
54 | public String getPassword() {
55 | return password;
56 | }
57 | /**
58 | * @param password the password to set
59 | */
60 | public void setPassword(String password) {
61 | this.password = password;
62 | }
63 |
64 |
65 | }
66 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/domain/Teacher.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/domain/Teacher.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.domain;
2 |
3 | public class Teacher {
4 |
5 | private String teacherId;
6 | private String teacherName;
7 | private String password;
8 |
9 | /**
10 | * @return the teacherId
11 | */
12 | public String getTeacherId() {
13 | return teacherId;
14 | }
15 | /**
16 | * @param teacherId the teacherId to set
17 | */
18 | public void setTeacherId(String teacherId) {
19 | this.teacherId = teacherId;
20 | }
21 | /**
22 | * @return the teacherName
23 | */
24 | public String getTeacherName() {
25 | return teacherName;
26 | }
27 | /**
28 | * @param teacherName the teacherName to set
29 | */
30 | public void setTeacherName(String teacherName) {
31 | this.teacherName = teacherName;
32 | }
33 | /**
34 | * @return the password
35 | */
36 | public String getPassword() {
37 | return password;
38 | }
39 | /**
40 | * @param password the password to set
41 | */
42 | public void setPassword(String password) {
43 | this.password = password;
44 | }
45 |
46 |
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/service/AdminService.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.service;
2 |
3 | import java.util.List;
4 |
5 | import com.cc.onlinetest.domain.Admin;
6 |
7 |
8 |
9 | public interface AdminService {
10 | /**
11 | * 指定管理员用户名得到指定管理员
12 | * @param admin
13 | * @return
14 | */
15 | public Admin getAdminByUserName(Admin admin);
16 |
17 | /**
18 | * 修改管理员个人资料
19 | * @param admin 传入修改的对象
20 | * @return 修改后的对象
21 | */
22 | public Admin updateAdminInfo(Admin admin);
23 |
24 |
25 | /**
26 | * 添加管理员
27 | * @param admin 传入添加的管理员
28 | * @return 是否添加成功
29 | */
30 | public boolean addAdmin(Admin admin);
31 |
32 | /**
33 | * 指定管理员id得到指定管理员
34 | * @param admin
35 | * @return
36 | */
37 | public Admin getAdminById(Admin admin);
38 |
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/service/CourseService.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.service;
2 |
3 | import java.util.List;
4 |
5 | import com.cc.onlinetest.domain.Course;
6 | import com.cc.onlinetest.domain.PageBean;
7 |
8 | public interface CourseService {
9 |
10 | PageBean findCourseByPage(int pageCode, int pageSize);
11 |
12 | boolean addCourse(Course course);
13 |
14 | Course getCourseByName(Course course);
15 |
16 | Course getCourseById(Course course);
17 |
18 | Course updateCourse(Course updateCourse);
19 |
20 | boolean deleteCourse(Course course);
21 |
22 | PageBean queryCourse(Course course, int pageCode, int pageSize);
23 |
24 | List getAllCourses();
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/service/OnLineTestService.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.service;
2 |
3 | import java.util.List;
4 |
5 | import com.cc.onlinetest.domain.ResultScore;
6 | import com.cc.onlinetest.domain.Student;
7 | import com.cc.onlinetest.domain.Subject;
8 |
9 | public interface OnLineTestService {
10 |
11 | boolean onLineTest(Student student, Subject subject, String answer);
12 |
13 | ResultScore getResultScore(Student student, Subject subject);
14 | }
15 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/service/QuestionService.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.service;
2 |
3 | import com.cc.onlinetest.domain.Choice;
4 | import com.cc.onlinetest.domain.Judge;
5 |
6 | public interface QuestionService {
7 |
8 | boolean addChoice(Choice choice);
9 |
10 | boolean addJudge(Judge judge);
11 |
12 | Choice getChoiceById(Choice choice);
13 |
14 | Judge getJudgeById(Judge judge);
15 |
16 | Choice updateChoice(Choice choice);
17 |
18 | Judge updateJudge(Judge judgeById);
19 |
20 | boolean deleteChoice(Choice choice);
21 |
22 | boolean deleteJudge(Judge judge);
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/service/ScoreService.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.service;
2 |
3 | import com.cc.onlinetest.domain.PageBean;
4 | import com.cc.onlinetest.domain.Score;
5 | import com.cc.onlinetest.domain.Student;
6 | import com.cc.onlinetest.domain.Subject;
7 |
8 | public interface ScoreService {
9 |
10 | Score getScore(Student student,Subject subject);
11 |
12 | PageBean findScoreByPage(int pageCode, int pageSize);
13 |
14 | PageBean queryMyScore(Subject subject, int pageCode, int pageSize);
15 |
16 | PageBean findMyScoreByPage(Student student, int pageCode,
17 | int pageSize);
18 |
19 | PageBean queryScore(Subject subject, Student student, int pageCode,
20 | int pageSize);
21 | }
22 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/service/StudentService.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.service;
2 |
3 | import com.cc.onlinetest.domain.PageBean;
4 | import com.cc.onlinetest.domain.Student;
5 |
6 | public interface StudentService {
7 |
8 | Student getStudentById(Student student);
9 |
10 | Student updateStudent(Student updateStudent);
11 |
12 | boolean addStudent(Student student);
13 |
14 | PageBean findStudentByPage(int pageCode, int pageSize);
15 |
16 | PageBean queryStudent(Student student, int pageCode, int pageSize);
17 |
18 | boolean deleteStudent(Student student);
19 |
20 | Student updateStudentInfo(Student student);
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/service/SubjectService.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.service;
2 |
3 | import com.cc.onlinetest.domain.PageBean;
4 | import com.cc.onlinetest.domain.Subject;
5 | import com.cc.onlinetest.domain.Teacher;
6 |
7 | public interface SubjectService {
8 |
9 | PageBean findSubjectByPage(int pageCode, int pageSize);
10 |
11 | Subject getSubjectByName(Subject subject);
12 |
13 | boolean addSubject(Subject subject);
14 |
15 | Subject getSubjectById(Subject subject);
16 |
17 | Subject updateSubject(Subject updateSubject);
18 |
19 | boolean deleteSubject(Subject subject);
20 |
21 | PageBean querySubject(Subject subject, int pageCode, int pageSize);
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/service/TeacherService.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.service;
2 |
3 | import com.cc.onlinetest.domain.PageBean;
4 | import com.cc.onlinetest.domain.Student;
5 | import com.cc.onlinetest.domain.Teacher;
6 |
7 | public interface TeacherService {
8 |
9 | Teacher getTeacherById(Teacher teacher);
10 |
11 | Teacher updateTeacher(Teacher updateTeacher);
12 |
13 | boolean addTeacher(Teacher teacher);
14 |
15 | PageBean findTeacherByPage(int pageCode, int pageSize);
16 |
17 | PageBean queryTeacher(Teacher teacher, int pageCode, int pageSize);
18 |
19 | boolean deleteTeacher(Teacher teacher);
20 |
21 | Teacher updateTeacherInfo(Teacher teacher);
22 |
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/service/impl/AdminServiceImpl.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.service.impl;
2 |
3 |
4 | import java.util.List;
5 |
6 | import com.cc.onlinetest.dao.AdminDao;
7 | import com.cc.onlinetest.domain.Admin;
8 | import com.cc.onlinetest.service.AdminService;
9 |
10 |
11 | public class AdminServiceImpl implements AdminService{
12 |
13 | private AdminDao adminDao;
14 |
15 | public void setAdminDao(AdminDao adminDao) {
16 | this.adminDao = adminDao;
17 | }
18 |
19 | @Override
20 | public Admin getAdminByUserName(Admin admin) {
21 | return adminDao.getAdminByUserName(admin);
22 | }
23 |
24 | @Override
25 | public Admin updateAdminInfo(Admin admin) {
26 | return adminDao.updateAdminInfo(admin);
27 | }
28 |
29 |
30 | @Override
31 | public boolean addAdmin(Admin admin) {
32 | return adminDao.addAdmin(admin);
33 | }
34 |
35 | @Override
36 | public Admin getAdminById(Admin admin) {
37 | return adminDao.getAdminById(admin);
38 | }
39 |
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/service/impl/CourseServiceImpl.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.service.impl;
2 |
3 | import java.util.List;
4 |
5 | import com.cc.onlinetest.dao.AdminDao;
6 | import com.cc.onlinetest.dao.CourseDao;
7 | import com.cc.onlinetest.domain.Course;
8 | import com.cc.onlinetest.domain.PageBean;
9 | import com.cc.onlinetest.service.CourseService;
10 |
11 | public class CourseServiceImpl implements CourseService{
12 |
13 | private CourseDao courseDao;
14 |
15 | public void setCourseDao(CourseDao courseDao) {
16 | this.courseDao = courseDao;
17 | }
18 |
19 |
20 |
21 | @Override
22 | public PageBean findCourseByPage(int pageCode, int pageSize) {
23 | // TODO Auto-generated method stub
24 | return courseDao.findCourseByPage(pageCode,pageSize);
25 | }
26 |
27 |
28 |
29 | @Override
30 | public boolean addCourse(Course course) {
31 | // TODO Auto-generated method stub
32 | return courseDao.addCourse(course);
33 | }
34 |
35 |
36 |
37 | @Override
38 | public Course getCourseByName(Course course) {
39 | // TODO Auto-generated method stub
40 | return courseDao.getCourseByName(course);
41 | }
42 |
43 |
44 |
45 | @Override
46 | public Course getCourseById(Course course) {
47 | // TODO Auto-generated method stub
48 | return courseDao.getCourseById(course);
49 | }
50 |
51 |
52 |
53 | @Override
54 | public Course updateCourse(Course updateCourse) {
55 | // TODO Auto-generated method stub
56 | return courseDao.updateCourse(updateCourse);
57 | }
58 |
59 |
60 |
61 | @Override
62 | public boolean deleteCourse(Course course) {
63 | // TODO Auto-generated method stub
64 | return courseDao.deleteCourse(course);
65 | }
66 |
67 |
68 |
69 | @Override
70 | public PageBean queryCourse(Course course, int pageCode,
71 | int pageSize) {
72 | // TODO Auto-generated method stub
73 | return courseDao.queryCourse(course, pageCode,pageSize);
74 | }
75 |
76 |
77 |
78 | @Override
79 | public List getAllCourses() {
80 | // TODO Auto-generated method stub
81 | return courseDao.getAllCourses();
82 | }
83 | }
84 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/service/impl/ScoreServiceImpl.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.service.impl;
2 |
3 | import com.cc.onlinetest.dao.ScoreDao;
4 | import com.cc.onlinetest.domain.PageBean;
5 | import com.cc.onlinetest.domain.Score;
6 | import com.cc.onlinetest.domain.Student;
7 | import com.cc.onlinetest.domain.Subject;
8 | import com.cc.onlinetest.service.ScoreService;
9 |
10 |
11 | public class ScoreServiceImpl implements ScoreService{
12 |
13 | private ScoreDao scoreDao;
14 |
15 | /**
16 | * @param scoreDao the scoreDao to set
17 | */
18 | public void setScoreDao(ScoreDao scoreDao) {
19 | this.scoreDao = scoreDao;
20 | }
21 |
22 | @Override
23 | public Score getScore(Student student, Subject subject) {
24 | // TODO Auto-generated method stub
25 | return scoreDao.getScore(student,subject);
26 | }
27 |
28 | @Override
29 | public PageBean findScoreByPage(int pageCode, int pageSize) {
30 | // TODO Auto-generated method stub
31 | return scoreDao.findScoreByPage(pageCode,pageSize);
32 | }
33 |
34 | @Override
35 | public PageBean queryMyScore(Subject subject, int pageCode,
36 | int pageSize) {
37 | // TODO Auto-generated method stub
38 | return scoreDao.queryMyScore(subject, pageCode,pageSize);
39 | }
40 |
41 | @Override
42 | public PageBean findMyScoreByPage(Student student, int pageCode,
43 | int pageSize) {
44 | // TODO Auto-generated method stub
45 | return scoreDao.findMyScoreByPage(student,pageCode,pageSize);
46 | }
47 |
48 | @Override
49 | public PageBean queryScore(Subject subject, Student student,
50 | int pageCode, int pageSize) {
51 | // TODO Auto-generated method stub
52 | return scoreDao.queryScore(subject,student,pageCode,pageSize);
53 | }
54 |
55 | }
56 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/service/impl/StudentServiceImpl.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.service.impl;
2 |
3 | import com.cc.onlinetest.dao.StudentDao;
4 | import com.cc.onlinetest.domain.PageBean;
5 | import com.cc.onlinetest.domain.Student;
6 | import com.cc.onlinetest.service.StudentService;
7 |
8 | public class StudentServiceImpl implements StudentService{
9 |
10 | private StudentDao studentDao;
11 |
12 | /**
13 | * @param studentDao the studentDao to set
14 | */
15 | public void setStudentDao(StudentDao studentDao) {
16 | this.studentDao = studentDao;
17 | }
18 |
19 | @Override
20 | public Student getStudentById(Student student) {
21 | // TODO Auto-generated method stub
22 | return studentDao.getStudentById(student);
23 | }
24 |
25 | @Override
26 | public Student updateStudent(Student updateStudent) {
27 | // TODO Auto-generated method stub
28 | return studentDao.updateStudent(updateStudent);
29 | }
30 |
31 | @Override
32 | public boolean addStudent(Student student) {
33 | // TODO Auto-generated method stub
34 | return studentDao.addStudent(student);
35 | }
36 |
37 | @Override
38 | public PageBean findStudentByPage(int pageCode, int pageSize) {
39 | // TODO Auto-generated method stub
40 | return studentDao.findStudentByPage(pageCode,pageSize);
41 | }
42 |
43 | @Override
44 | public PageBean queryStudent(Student student, int pageCode,
45 | int pageSize) {
46 | // TODO Auto-generated method stub
47 | return studentDao.queryStudent(student,pageCode,pageSize);
48 | }
49 |
50 | @Override
51 | public boolean deleteStudent(Student student) {
52 | // TODO Auto-generated method stub
53 | return studentDao.deleteStudent(student);
54 | }
55 |
56 | @Override
57 | public Student updateStudentInfo(Student student) {
58 | // TODO Auto-generated method stub
59 | return studentDao.updateStudentInfo(student);
60 | }
61 |
62 |
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/service/impl/SubjectServiceImpl.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.service.impl;
2 |
3 | import com.cc.onlinetest.dao.SubjectDao;
4 | import com.cc.onlinetest.domain.PageBean;
5 | import com.cc.onlinetest.domain.Subject;
6 | import com.cc.onlinetest.domain.Teacher;
7 | import com.cc.onlinetest.service.SubjectService;
8 |
9 | public class SubjectServiceImpl implements SubjectService{
10 |
11 | private SubjectDao subjectDao;
12 |
13 | /**
14 | * @param subjectDao the subjectDao to set
15 | */
16 | public void setSubjectDao(SubjectDao subjectDao) {
17 | this.subjectDao = subjectDao;
18 | }
19 |
20 | @Override
21 | public PageBean findSubjectByPage(int pageCode, int pageSize) {
22 | // TODO Auto-generated method stub
23 | return subjectDao.findSubjectByPage(pageCode,pageSize);
24 | }
25 |
26 | @Override
27 | public Subject getSubjectByName(Subject subject) {
28 | // TODO Auto-generated method stub
29 | return subjectDao.getSubjectByName(subject);
30 | }
31 |
32 | @Override
33 | public boolean addSubject(Subject subject) {
34 | // TODO Auto-generated method stub
35 | return subjectDao.addSubject(subject);
36 | }
37 |
38 | @Override
39 | public Subject getSubjectById(Subject subject) {
40 | // TODO Auto-generated method stub
41 | return subjectDao.getSubjectById(subject);
42 | }
43 |
44 | @Override
45 | public Subject updateSubject(Subject updateSubject) {
46 | // TODO Auto-generated method stub
47 | Subject subject = subjectDao.updateSubject(updateSubject);
48 | //同时需要修改总分
49 | subjectDao.setAllScore(subject);
50 | return subject;
51 | }
52 |
53 | @Override
54 | public boolean deleteSubject(Subject subject) {
55 | // TODO Auto-generated method stub
56 | return subjectDao.deleteSubject(subject);
57 | }
58 |
59 | @Override
60 | public PageBean querySubject(Subject subject, int pageCode,
61 | int pageSize) {
62 | // TODO Auto-generated method stub
63 | return subjectDao.querySubject(subject,pageCode,pageSize);
64 | }
65 |
66 |
67 | }
68 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/service/impl/TeacherServiceImpl.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.service.impl;
2 |
3 | import com.cc.onlinetest.dao.TeacherDao;
4 | import com.cc.onlinetest.domain.PageBean;
5 | import com.cc.onlinetest.domain.Teacher;
6 | import com.cc.onlinetest.service.TeacherService;
7 |
8 | public class TeacherServiceImpl implements TeacherService{
9 |
10 | private TeacherDao teacherDao;
11 |
12 | /**
13 | * @param teacherDao the teacherDao to set
14 | */
15 | public void setTeacherDao(TeacherDao teacherDao) {
16 | this.teacherDao = teacherDao;
17 | }
18 |
19 | @Override
20 | public Teacher getTeacherById(Teacher teacher) {
21 | // TODO Auto-generated method stub
22 | return teacherDao.getTeacherById(teacher);
23 | }
24 |
25 | @Override
26 | public Teacher updateTeacher(Teacher updateTeacher) {
27 | // TODO Auto-generated method stub
28 | return teacherDao.updateTeacher(updateTeacher);
29 | }
30 |
31 | @Override
32 | public boolean addTeacher(Teacher teacher) {
33 | // TODO Auto-generated method stub
34 | return teacherDao.addTeacher(teacher);
35 | }
36 |
37 | @Override
38 | public PageBean findTeacherByPage(int pageCode, int pageSize) {
39 | // TODO Auto-generated method stub
40 | return teacherDao.findTeacherByPage(pageCode,pageSize);
41 | }
42 |
43 | @Override
44 | public PageBean queryTeacher(Teacher teacher, int pageCode,
45 | int pageSize) {
46 | // TODO Auto-generated method stub
47 | return teacherDao.queryTeacher(teacher,pageCode,pageSize);
48 | }
49 |
50 | @Override
51 | public boolean deleteTeacher(Teacher teacher) {
52 | // TODO Auto-generated method stub
53 | return teacherDao.deleteTeacher(teacher);
54 | }
55 |
56 | @Override
57 | public Teacher updateTeacherInfo(Teacher teacher) {
58 | // TODO Auto-generated method stub
59 | return teacherDao.updateTeacherInfo(teacher);
60 | }
61 |
62 |
63 | }
64 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/utils/Md5Utils.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.utils;
2 |
3 | import java.security.MessageDigest;
4 | import java.security.NoSuchAlgorithmException;
5 |
6 | import sun.misc.BASE64Encoder;
7 |
8 | public class Md5Utils {
9 |
10 | /**
11 | * md5加密
12 | * @param message 输入的数据
13 | * @return 加密后的数据
14 | */
15 | public static String md5(String message){
16 | try{
17 | MessageDigest md = MessageDigest.getInstance("md5");
18 | byte md5[] = md.digest(message.getBytes());
19 |
20 | BASE64Encoder encoder = new BASE64Encoder();
21 | return encoder.encode(md5);
22 | }catch(NoSuchAlgorithmException e){
23 | throw new RuntimeException(e);
24 | }
25 | }
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/web/filter/AdminFilter.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.web.filter;
2 |
3 | import java.io.IOException;
4 |
5 | import javax.servlet.Filter;
6 | import javax.servlet.FilterChain;
7 | import javax.servlet.FilterConfig;
8 | import javax.servlet.ServletException;
9 | import javax.servlet.ServletRequest;
10 | import javax.servlet.ServletResponse;
11 | import javax.servlet.http.HttpServletRequest;
12 | import javax.servlet.http.HttpServletResponse;
13 | import javax.servlet.http.HttpSession;
14 |
15 | import com.cc.onlinetest.domain.Admin;
16 |
17 |
18 |
19 | public class AdminFilter implements Filter{
20 |
21 | @Override
22 | public void init(FilterConfig filterConfig) throws ServletException {
23 | // TODO Auto-generated method stub
24 |
25 | }
26 |
27 | @Override
28 | public void doFilter(ServletRequest request, ServletResponse response,
29 | FilterChain chain) throws IOException, ServletException {
30 | //根据session中的用户对象的Type属性来判断是否为管理员
31 | HttpServletRequest req = (HttpServletRequest)request;
32 | HttpServletResponse resp = (HttpServletResponse)response;
33 | HttpSession session = req.getSession();
34 | //从session中获取用户对象
35 | Object obj = session.getAttribute("admin");
36 | if(obj!=null && obj instanceof Admin){
37 | //用户为管理员,放行
38 | chain.doFilter(request, response);
39 |
40 | }else{
41 | resp.sendRedirect(req.getContextPath()+"/adminLogin.jsp");
42 | }
43 |
44 |
45 | }
46 |
47 | @Override
48 | public void destroy() {
49 | // TODO Auto-generated method stub
50 |
51 | }
52 | }
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/web/filter/StudentFilter.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.web.filter;
2 |
3 | import java.io.IOException;
4 |
5 | import javax.servlet.Filter;
6 | import javax.servlet.FilterChain;
7 | import javax.servlet.FilterConfig;
8 | import javax.servlet.ServletException;
9 | import javax.servlet.ServletRequest;
10 | import javax.servlet.ServletResponse;
11 | import javax.servlet.http.HttpServletRequest;
12 | import javax.servlet.http.HttpServletResponse;
13 | import javax.servlet.http.HttpSession;
14 |
15 | import com.cc.onlinetest.domain.Student;
16 |
17 |
18 |
19 |
20 | public class StudentFilter implements Filter{
21 |
22 | @Override
23 | public void init(FilterConfig filterConfig) throws ServletException {
24 | // TODO Auto-generated method stub
25 |
26 | }
27 |
28 | @Override
29 | public void doFilter(ServletRequest request, ServletResponse response,
30 | FilterChain chain) throws IOException, ServletException {
31 | HttpServletRequest req = (HttpServletRequest)request;
32 | HttpServletResponse resp = (HttpServletResponse)response;
33 | HttpSession session = req.getSession();
34 | //从session中获取用户对象
35 | Object obj = session.getAttribute("student");
36 | if(obj!=null && obj instanceof Student){
37 | chain.doFilter(request, response);
38 |
39 | }else{
40 | resp.sendRedirect(req.getContextPath()+"/studentLogin.jsp");
41 | }
42 |
43 |
44 | }
45 |
46 | @Override
47 | public void destroy() {
48 | // TODO Auto-generated method stub
49 |
50 | }
51 | }
--------------------------------------------------------------------------------
/OnLineTest/src/com/cc/onlinetest/web/filter/TeacherFilter.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.web.filter;
2 |
3 | import java.io.IOException;
4 |
5 | import javax.servlet.Filter;
6 | import javax.servlet.FilterChain;
7 | import javax.servlet.FilterConfig;
8 | import javax.servlet.ServletException;
9 | import javax.servlet.ServletRequest;
10 | import javax.servlet.ServletResponse;
11 | import javax.servlet.http.HttpServletRequest;
12 | import javax.servlet.http.HttpServletResponse;
13 | import javax.servlet.http.HttpSession;
14 |
15 | import com.cc.onlinetest.domain.Teacher;
16 |
17 |
18 |
19 | public class TeacherFilter implements Filter{
20 |
21 | @Override
22 | public void init(FilterConfig filterConfig) throws ServletException {
23 | // TODO Auto-generated method stub
24 |
25 | }
26 |
27 | @Override
28 | public void doFilter(ServletRequest request, ServletResponse response,
29 | FilterChain chain) throws IOException, ServletException {
30 | HttpServletRequest req = (HttpServletRequest)request;
31 | HttpServletResponse resp = (HttpServletResponse)response;
32 | HttpSession session = req.getSession();
33 | //从session中获取用户对象
34 | Object obj = session.getAttribute("teacher");
35 | if(obj!=null && obj instanceof Teacher){
36 | chain.doFilter(request, response);
37 |
38 | }else{
39 | resp.sendRedirect(req.getContextPath()+"/teacherLogin.jsp");
40 | }
41 |
42 |
43 | }
44 |
45 | @Override
46 | public void destroy() {
47 | // TODO Auto-generated method stub
48 |
49 | }
50 | }
--------------------------------------------------------------------------------
/OnLineTest/test/com/cc/onlinetest/test/BaseSpring.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.test;
2 |
3 | import org.junit.Before;
4 | import org.springframework.context.ApplicationContext;
5 | import org.springframework.context.support.ClassPathXmlApplicationContext;
6 |
7 |
8 |
9 | public class BaseSpring {
10 |
11 | public static ApplicationContext context;
12 |
13 | @Before
14 | public void startSpring(){
15 | context = new ClassPathXmlApplicationContext("spring/applicationContext.xml");
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/OnLineTest/test/com/cc/onlinetest/test/TestAdmin.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.test;
2 |
3 | import org.hibernate.SessionFactory;
4 | import org.hibernate.Transaction;
5 | import org.hibernate.classic.Session;
6 | import org.junit.Test;
7 |
8 | import com.cc.onlinetest.domain.Admin;
9 | import com.cc.onlinetest.utils.Md5Utils;
10 |
11 |
12 | public class TestAdmin extends BaseSpring{
13 |
14 |
15 | @Test
16 | public void testSaveAdmin(){
17 | SessionFactory sessionFactory = (SessionFactory)context.getBean("sessionFactory");
18 | Session session = sessionFactory.openSession();
19 | Transaction transaction = session.beginTransaction();
20 | Admin admin = new Admin();
21 | admin.setUsername("admin");
22 | admin.setPassword(Md5Utils.md5("admin"));
23 | System.out.println(Md5Utils.md5("cairou"));
24 | session.save(admin);
25 | transaction.commit();
26 | session.close();
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/OnLineTest/test/com/cc/onlinetest/test/TestChoice.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.test;
2 |
3 | import org.hibernate.SessionFactory;
4 | import org.hibernate.Transaction;
5 | import org.hibernate.classic.Session;
6 | import org.junit.Test;
7 |
8 | import com.cc.onlinetest.domain.Admin;
9 | import com.cc.onlinetest.domain.Choice;
10 | import com.cc.onlinetest.domain.Subject;
11 | import com.cc.onlinetest.utils.Md5Utils;
12 |
13 | public class TestChoice extends BaseSpring{
14 |
15 |
16 | @Test
17 | public void testSaveChoice(){
18 | SessionFactory sessionFactory = (SessionFactory)context.getBean("sessionFactory");
19 | Session session = sessionFactory.openSession();
20 | Transaction transaction = session.beginTransaction();
21 | Subject subject = (Subject) session.get(Subject.class, 1);
22 | Choice choice = new Choice();
23 | choice.setAnswer("A");
24 | choice.setQuestion("下列选项正确的是:");
25 | choice.setOptionA("选择A");
26 | choice.setOptionB("选择B");
27 | choice.setOptionC("选择C");
28 | choice.setOptionD("选择D");
29 | choice.setSubject(subject);
30 | session.save(choice);
31 | transaction.commit();
32 | session.close();
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/OnLineTest/test/com/cc/onlinetest/test/TestSubject.java:
--------------------------------------------------------------------------------
1 | package com.cc.onlinetest.test;
2 |
3 | import java.util.Set;
4 |
5 | import org.hibernate.SessionFactory;
6 | import org.hibernate.Transaction;
7 | import org.hibernate.classic.Session;
8 | import org.junit.Test;
9 |
10 | import com.cc.onlinetest.domain.Choice;
11 | import com.cc.onlinetest.domain.Subject;
12 |
13 | public class TestSubject extends BaseSpring{
14 |
15 | @Test
16 | public void testGetSubject(){
17 | SessionFactory sessionFactory = (SessionFactory)context.getBean("sessionFactory");
18 | Session session = sessionFactory.openSession();
19 | Transaction transaction = session.beginTransaction();
20 | Subject subject = (Subject) session.get(Subject.class, 1);
21 | System.out.println(subject.getChoices().size());
22 | Set choices = subject.getChoices();
23 | for(Choice choice : choices){
24 | System.out.println(choice.getAnswer());
25 | }
26 | session.close();
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/img/0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/img/0.png
--------------------------------------------------------------------------------
/img/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/img/1.png
--------------------------------------------------------------------------------
/img/10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/img/10.png
--------------------------------------------------------------------------------
/img/11.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/img/11.png
--------------------------------------------------------------------------------
/img/12.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/img/12.png
--------------------------------------------------------------------------------
/img/13.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/img/13.png
--------------------------------------------------------------------------------
/img/14.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/img/14.png
--------------------------------------------------------------------------------
/img/15.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/img/15.png
--------------------------------------------------------------------------------
/img/16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/img/16.png
--------------------------------------------------------------------------------
/img/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/img/2.png
--------------------------------------------------------------------------------
/img/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/img/3.png
--------------------------------------------------------------------------------
/img/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/img/4.png
--------------------------------------------------------------------------------
/img/5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/img/5.png
--------------------------------------------------------------------------------
/img/6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/img/6.png
--------------------------------------------------------------------------------
/img/7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/img/7.png
--------------------------------------------------------------------------------
/img/8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/img/8.png
--------------------------------------------------------------------------------
/img/9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cckevincyh/OnLineTest/9f38d5733e407fdb4f419fce30e5e16798b061fc/img/9.png
--------------------------------------------------------------------------------