First of all, I declare that this small project is implemented by the teacher mainly to fulfill the instructor's project requirements. Of course, many features not required by the teacher are added. The project code is very simple, when I share it, I want to share it with my fellow cainiao. It is only suitable for beginners to learn it. Daniel can directly bypass it. If anything is inappropriate, you are welcome to give your comments.
This project is a course selection system for students. The following describes the main requirements of the instructors:
1. * User Logon
2. * view personal information
3. * modify personal information
4. * view the Course selections of individuals
5. * view all course information and select a course
6. * withdraw from the course
7. Div + CSS beautify the page
8. added the query function. For example, you can perform a fuzzy query based on the Course name and query the course class term.
9. International Processing
10. Add the paging Function
Of course, I have added some additional functions on this basis. The system has been completed in four days. I hope to share these functions to help you learn, the following describes the main code functions of the DaO layer:
3.1 General Database category hibernateutil
Method Name |
Function Description |
Add |
Add object |
Delete |
Delete object |
Update |
Update object |
Select |
Query object |
Check |
Verify login information |
Selectpage |
Paging Query |
3.2 studentdao Interface
Method Name |
Function Description |
Checkstu |
Determine whether the student ID to be added exists |
Exists |
Obtains the data set of the corresponding page number. |
Pagelist |
Student ID |
Getstu |
Modify Student Information |
Update |
Delete student |
Delete |
Add student |
3.3studentdaoimpl implementation class:
Method Name |
Function Description |
Checkstu |
Determine whether the student ID to be added exists |
Exists |
Obtains the data set of the corresponding page number. |
Pagelist |
Student ID |
Getstu |
Modify Student Information |
Update |
Delete student |
Delete |
Add student |
3.4coursedao Interface
Method Name |
Function Description |
Pagelist |
Returns the results of the current page of the paging query. |
Getcour |
Obtain the course object with the corresponding ID |
Getcourse |
A set of course selections for students |
Delete |
Delete Course |
Updatecour |
Modify course information |
Addcour |
Add Course |
3.5coursedaoimpl implementation class:
Method Name |
Function Description |
Pagelist |
Returns the results of the current page of the paging query. |
Getcour |
Obtain the course object with the corresponding ID |
Getcourse |
A set of course selections for students |
Delete |
Delete Course |
Updatecour |
Modify course information |
Addcour |
Add Course |
3.6adminerdao Interface
Method Name |
Function Description |
Checkadminer |
Verify that the login administrator information is correct |
Exists |
Determine whether the username of the added administrator exists |
Addadmin |
Add Administrator |
Getstu |
Student ID |
Update |
Update administrator Information |
3.7adminerdaoimpl implementation class:
Method Name |
Function Description |
Checkadminer |
Verify that the login administrator information is correct |
Exists |
Determine whether the username of the added administrator exists |
Addadmin |
Add Administrator |
Getstu |
Student ID |
Update |
Update administrator Information |
Iv. project module Introduction
1. Foreground Module
Main functions:
1.1 student Login
1.2 personal information management
1.2.1: Personal Information Display
1.2.2: Personal Information Modification
1.3 Course Selection Information Management
1.3.1 list of selected courses
1.4 course Sheet Information Management
1.4.1 display of course list
Let's take a look at the running effects of several front-end modules:
Logon interface:
Modify personal information
Course list
The overall page is displayed:
2. Background Management Module
2.1 Administrator Logon
2.2 administrator Information Display
2.3 add an administrator: Ajax asynchronous verification is used to verify the existence of the user name.
2.4 update administrator Information
2.5 student list
2.6 Add students
2.7 course list
2.8 add Course
Add Administrator
Student list
Modify student information in the form of a Mode window
Overall background page display
The last feature is on the user's homepage. You can choose to log in as administrator or as a student. For example:
Click:Download source code
The database is successfully re-created to charge for graduation design!