173504-Khadja-Tul-Kubra - Online Hostel Management System-1
173504-Khadja-Tul-Kubra - Online Hostel Management System-1
173504-Khadja-Tul-Kubra - Online Hostel Management System-1
VERSION: 1.0
KHADIJA-TUL-KUBRA 173504
SESSION: 2017-2019
DEPARTMENT: COMPUTER SCIENCE: KHWAJA FAREED POST GRADUATE
COLLEGE RAHIM YAR KHAN
I
Revision History
Date Description Author Comments
Version 1.0 Khadija Tul Kubra
Document Approval
The following Software Requirements Specification has been accepted and approved by the following:
II
Table of Contents
1. INTRODUCTION 1
1.1 Purpose 1
1.2 Scope 1
1.3 Overvie 2
1.4 Reference Material 2
1.5 Definitions and Acronyms 2
2. SYSTEM OVERVIEW 2
2.1 Technology to be used 2
2.6 Assumptions 3
3. SYSTEM ARCHITECTURE 4
3.2.2 Login 8
3.2.5 Payment 11
3.2.6 Logout 12
3.2.8 Contact us 14
III
3.2.10 Feedback 16
3.2.12View Report 18
3.2.3.1 Registration 19
3.2.3.2 Login 20
3.2.3.3 Reservation 21
3.2.3.4 User 22
3.2.3.5 Payment 23
3.2.3.7 Contact us 25
3.2.4.1 Registration 27
3.2.4.2 Login 28
3.2.4.3 Feedback 29
3.2.4.4 Password 30
3.2.5.1 Registration 32
3.2.5.2 Login 33
3.2.5.5 Payment 36
3.2.6.1 Registration 37
3.2.6.2 Login 38
IV
4 Data design 41
4.1.1.1 Admin 41
4.1.1.2 User 41
4.1.1.3 Room 41
4.1.1.4 Payment 42
4.1.1.5 Registration 42
4.1.1.6 Login 42
4.1.1.7 Hostel 42
4.2.1 User 43
4.2.2 Admin 44
4.2.3 Room 44
4.2.4 Reservation 44
4.2.5 Payment 44
4.2.6 Registration 45
4.2.7 Feedback 45
5 Component Design 45
5.1 Objects 45
5.1.1 Login 45
5.1.2 User 47
5.1.3 Payment 49
5.1.5 Admin 51
5.1.6 Room 52
V
6.2 Screen Images 53
6.2.1 Registration 53
6.2.2 Login 54
6.2.4 Payment 55
6.2.5 Comment 56
6.2.7 Manager 58
6.2.9 Logout 60
6.2.12 Contact us 63
6.2.14 Feedback 65
7 Requirement Matrices 67
VI
Online Hostel Management System
1. INTRODUCTION
1.1 Purpose
The purpose of the Software Design Document is to provide a description of the design
of a system fully enough to allow for software development to proceed with an understanding of
what is to be built and how it is expected to built. The Software Design Document provides
information necessary to provide description of the details for the software and system to be
built. The primary purpose of this document is to provide the detail description of the design
element of the Online Hostel Management System. This will guide in the design of the
application. The SDD shows how the software system will be structured to satisfy the
requirements identified in the software requirements specification. It is a translation of
requirements into a description of the software structure, software components, interfaces and
data necessary for the implementation phase.
1.2 Scope
The purpose of this system is to make better “Online Hostel Management System”. The
“Online Hostel Management System’’ designed to facilitate users of it. The “Online Hostel
Management System” which help them to save the records of the students about their rooms and
other things. It helps them from the manual work from which it is very difficult to find the
records of the students .The “Online Hostel Management System” needs to create the “Online
Hostel Management system” (OHMS) to organize the rooms, mess students records and the other
information about the students how many students can live in a room, and the students of the
hostel can be recognized from their ID card number. This software product is used to improve
their services for all the students of the hostel. Through this you can check the personal profile of
all the current students within few minutes the data base of a system will help you to check a
1.3 Overview
First section contain introduction of the project, second section of SDD contain system
overview, in this section describe overall system in high level definition. Third section contains
system architecture of the project; main components and its sub components are define in section
three. Four sections contain data design in this section design the system using Entity
Relationship Diagram (ERD) and Data Flow Diagram (DFD) etc. Selection five contains
component design, in which different comments are design. Section six of the SDD contains
Human Interface Design and Last section contains the Requirements Matrix.
1. SYSTEM OVERVIEW
2.1 Technology to be used
OHMS system requires HTML, CSS, JavaScript, J-Query, and Bootstrap. HTML, CSS,
JavaScript, J-Query and Bootstrap are used for front-end designing of the site. PHP is used for
the back-end processing. MySQL is database technology used for storing records about rooms,
In online hostel site user that login must be registered and have more rights as compare
to visitors. User can search anything and visit the site without login. Registered user give
Web application
Web server
Actor Manager/student
User Action
Click on about us.
Actor User
User action
1) User selects room in OHMS.
System response 2) System process the user request to select room in OHMS.
System
Payment
User
Admin
System After enter the detail the system record information and handle error
Response
Actor Admin
Description User cans logout after performing different task on his account
Action User can click on the logout button to be logout from the system.
Actor Admin
User action 1. Click on specific room, open its option and give the specific
room.
System response 2. Process the admin request and cancel the specific room
User Action
Click on about
System Response System Display company information like company name, address
,phone no.
Actor Admin.
User Action
1. Click on delete record button.
3. Select specific record
System Response 2. Browse to select specific record.
4. Delete them.
Actor User
Post-condition The user click successfully gives the feedback about the HMS site.
Description The user can give the desired feedback about the site for the drawbacks and
for enhancement purpose.
Actor Administrator
3.2.3.1 Registration
User Registration
Database
-userName: string -name: string
-DatabaseNme: string
-userId: string -emailId: string
-password: string
-age: int -password: string
-gender: string -gender: string +searchTable()
*
-address: string 1..* -address: string +insertTable()
-phoneNo: int +updateTable()
+addUserDetails() 1..* -hobby: string 1..* +deleteTable()
+updateUserDetails() +searchRecord()
+deleteUserDetails() +getName()
+insertRecord()
+manageUserDetails() +setName()
+updateRecord()
+viewUserDetails() +getEmailId()
+deleteRecord()
+setEmailId()
+signup()
Student
Administrator
-studentEmail: string
-adminName: string
+studentId: string
-adminId: string
-password: string
-address: string
-phoneNo: int
-phoneNo: int
-address: string
-gender: string
+viewDetails()
+viewStudentRecord()
+signIn()
+updateStudentrecord()
+signOut()
+deletestudentRecord()
+logout()
User
Database
-userName: string Login
-userId: string -DatabaseNme: string
-userId: string
-age: int -password: string
-userName: string
-gender: string
-password: string +searchTable()
-address: string 1..* * +insertTable()
1..* +login()
+addUserDetails() 1 +updateTable()
+verifyDetails()
+updateUserDetails() +deleteTable()
+forgetPassword()
+deleteUserDetails() +searchRecord()
+resetPassword()
+manageUserDetails() +insertRecord()
+viewUserDetails() +updateRecord()
+deleteRecord()
Student Administrator
-studentEmail: string -adminName: string
+studentId: string -adminId: string
-password: string -address: string
-phoneNo: int -phoneNo: int
-address: string -gender: string
+viewDetails() +viewStudentRecord()
+signIn() +updateStudentrecord()
+signOut() +deletestudentRecord()
+logout()
User
Reservation Room
-name: string RoomType
-emailIdL: string -arrivalDate: int -roomNumber: int
-phoneNo: int -departureDate: int -idType: string
-roomDescrption: string
-address: string +customizedPrice: int -descrption: string
-capacity: double
-status: string * -roomPrice: double
+view() * *
+newRoom()
+search() +newReservation() +newRoomType()
+destroyRoom()
+getService() +modifyReservation() +destroyRoom()
+printOccupation()
+confirmReservation() +destoryReservation()
+getBookStatus()
+pikUpInformation() * Service
-idService: string
-description: string
+unitPrice: double
User
Registration
-userName: string
-name: string
-userId: string
-emailId: string
-age: int
-password: string
-gender: string
-gender: string
-address: string
-address: string
-phoneNo: int 1..* +addUserDetails()
-hobby: string +updateUserDetails()
+deleteUserDetails()
+getName()
+manageUserDetails()
+setName()
+viewUserDetails()
+getEmailId()
+setEmailId()
+signup()
1 Student
Administrator
Login -studentEmail: string
-adminName: string
-userId: string +studentId: string
-adminId: string
-userName: string -password: string
-address: string
-password: string -phoneNo: int
-phoneNo: int
-address: string
+login() 1..* -gender: string
1
+verifyDetails() +viewDetails()
+viewStudentRecord()
+forgetPassword() +signIn()
+updateStudentrecord()
+resetPassword() +signOut()
+deletestudentRecord()
+logout()
Payment
User
-customerId: char
-name: string -name: string
-emailIdL: string -amount: double
-phoneNo: int -bill: int
-address: string -transaction: int
1..* 0..1
+view() +updateBill()
+search() +confirmBill()
+getService() +searchBill()
+confirmReservation() +generateBill()
+getBookStatus() +makePayment()
+pikUpInformation() +confirmTransaction()
+returnAmountOnCancellation()
Student Creidt
User Registration
Student
-name: string -name: string
-name: string
-emailIdL: string -email: string
-adress: string
-phoneNo: int -dateOfBirth: int
-phoneNo: int
-address: string -phoneNo: int
-hobby: string 1 -address: string Login
-password: string +view() 1
+search() +show() -userId: int
+viewDetails()
+getService() +edit() 1 -password: int
+signIn()
+confirmReservation() +signUp()
+signOut() +setId()
+getBookStatus() +upDate()
+pikUpInformation() +setPassword() +getId()
+getPassword() +login()
+getEmailId() +logOut()
Aministrator +setEmailId()
-adminName: string
-adminId: string
-phoneNo: int Payment
-address: string
-customerId: char Reservation
+viewStudentRecord() -name: string ViewRoomDetails
+searchStudentRecord() -amount: double -arrivalDate: int
+updateStudentRecord() -bill: int -roomNO: int -departureDate: int
+logOut() -transaction: int +customizedPrice: int
+searchRoomInfo()
-status: string
+updateBill() +updateRoomDetails()
+confirmBill() +addRoomDetails() +newReservation()
+searchBill() +deleteRoomDetails() +modifyReservation()
+generateBill() +destoryReservation()
+makePayment()
+confirmTransaction()
+returnAmountOnCancellation()
Login Administrator
1
1
1..*
User
1..*
-userName: string Contact US
-userId: string
-age: int -contactNo: int
-gender: string -emailId: string
-address: string 1..* +getContactNo()
+addUserDetails() 1..* +setContactNo()
+updateUserDetails() +clickContactUs()
+deleteUserDetails()
+manageUserDetails()
+viewUserDetails()
Payment
Room
-customerId: char
-name: string -roomNumber: int
-amount: double pay 1..* -roomDescrption: string 1
-bill: int -capacity: double
-transaction: int +newRoom()
+updateBill() +destroyRoom()
+confirmBill() +printOccupation()
+searchBill()
+generateBill()
+makePayment()
+confirmTransaction() 0..*
+returnAmountOnCancellation()
Aministrator
Customer
-adminName: string
-emailId: string -adminId: string
User -name: string * -phoneNo: int
*
-phoNo: int -address: string
-name: string
-address: string
-emailIdL: string +viewStudentRecord()
-phoneNo: int 0..1 +viewAvailability() +searchStudentRecord()
-address: string 1 +bookUnit() +book +book +updateStudentRecord()
+cancelUnit() +logOut()
+view()
+search() Booking
+getService() 0..1
+confirmReservation() -dateOfBooking: int
+getBookStatus() -bookingDescription: string
+pikUpInformation() -unitOfDate: int
+addBooking()
1 +deleteBooking()
+UpdateBooking()
: user
: Registration
1 : signin()
2 : validate information()
3 : wrong information()
4 : sucessfully signin()
5 : signout()
6 : sucessfulley signout()
3 : successfully login()
7 : logout()
3 : give Feedback()
4 : take Feedback()
5 : give response()
1 : Enter password()
2 : forget password()
1 : Enter password()
2 : forget password()
Start State
User
Request to open
Open fille
Invaild input
Fill form
Submit Form
Enter Login ID
validate login Id
invalid
Invalid user
valid
is available
Yes
No
Invalid Info
Display Reservation Form
if valid
Yes No
Display Reservation Form Request For Reservation Invalid user
is valid
Yes
No
Invalid Info
Reservation Successfully
No
Quiet
Yes
Book room
Rejected Accepted
Finalize Reservation
If Found
Cancel Room
4.1.1.1 Admin
4.1.1.2 User
4.1.1.3 Room
4.1.1.4 Payment
4.1.1.5 Registration
4.1.1.6 Login
4.1.1.7 Hostel
4.2.1 User
4.2.2 Admin
4.2.3 Room
4.2.5 Reservation
4.2.5 Payment
4.2.6 Registration
4.2.7 Feedback
5 Component Design
5.1 Objects
5.1.1 Login
registration() A method which is used to perform registration when user wants to register with the
site.
1. Start
2. Get the all required information from user
3. If all fields are filled Display “Successfully register” message
4. Else If any field is not filled Display “All fields must be filled”
5. Store the information in database.
6. End
login() A method used to perform login when user wants to login with the site.
Pseudo Code
1. Start
2. Get the user name and password from user
3. Match both password and user name with the user name and password in MYSQL
database.
4. If one of these is incorrect Print “Invalid information”
5. Else If both are match
6. Print “Successfully login”
7. End
set Password() Set password method is used to set password of the user.
Pseudo Code:
1. Input user name and ID.
2. Match both ID and name with the name and ID of the user in the database.
3. If both are matched then set password successfully
4. Else Print message “Incorrect Information”
sendPassword() This method specifies that it can possible that user forget his/her password so if user
forget password then this method send password to the user.
Pseudo Code
1. Start
2. Get the email ID from user.
3. Match Email ID with the user Email ID in MYSQL database.
4. If Email ID is incorrect the Print “Invalid information”
5. Else Set password.
5.1.2 User
5.1.3 Payment
Class Name Bill /Payment
Brief Description This table contains the payment. List item, Name, price and type
will describe.
Attributes Attributes Description
Name: Name of the user
Price: Describe the total price of the thing.
List Item: How many list items used and receive
Type: Type of receive thing.
Operation Description
Pseudo code
check-On Customer receives the bill.
check-Out After receive the bill check-out.
check-In() Add bill details( Name, Price, List item, Type ) {
String name;
Int price;
String list item;
String type;
}
1. Update & check the record.
check-Out() Add Bill Details( Name, Price ,List item, Type)
{
String name;
Int price;
String list item;
String type;
}
1. Pay the bill and clear
delete Admin() This is the description of the method used to delete admin or
remove a user from admin rights.
Program description
IF user login=valid
Delete the admin
ELSE
Message” you are not an admin you can’t delete admin”.
5.1.6 Room
Female Sign UP
Gender:
6.2.2 Login
Login
Email Id:
Password:
Email Id:
Password:
It will be the payment screen when user pay amount to the OHMS.
Payment Customer Id
Comment
Name:
Email Address:
Mobile No:
Comment:
Submit
Room Reservation
Name of customer:
Id of customer:
Email:
Phone NO:
Room No:
Submit
Name:
Id:
Address:
Phone NO:
Name:
Id:
View
Address:
Email:
Modify
This screen after generating the bill clears the record of the customer.
Customer Name:
Customer Number:
Generate Clear
Bill
User Name:
Email:
Phone No:
User Name:
User ID:
Email ID:
Phone Number:
First Name:
Last Name:
Email:
Send
Contact us by:
Old Password:
New Password:
Email Id:
Password:
Feedback: Yes No
Compon Registr Login/ Admi Fee Repor Use Datab Bookin Paymen Pac Stude Hos
ent ation Logou n dba ts r ase g t kage nt tel
Require t ck room
ment
from
Srs
sUC3
3.1 x
X x x X
UC3
3.2 x x x x X
X
UC3 v
3.3 x x
x
UC3
3.4 x x x x
UC3
3.5 x x x
UC3
3.6 x x x
UC3
3.7 x x x x x
UC3
3.8 x x