You are on page 1of 83

www.studentprojectguide.

com

1. Introduction

Hostel is a place which is just like second home for the people who lives
outside from the home they feel safe while living in hostel. Hostel is also a way
to earn money for many people who are working there as employee. So to
manage the data and information of the person who are living there is a very
complex task.it needs a lot of time of many people who are managing it.
The project “E-Hostel Management System” is for the SRK Bhavana
located at Lalbagh, Bangalore. Currently the system is manual hence we have
proposed a system where the work can be computerized. Our project helps in
keeping the track of work flow taking in the hostel. The hostel staff can keep the
record of hostellers and every other details hence helping in reducing the work
of the staff as well as hostellers.
The main purpose of this project is to design and implementation which
will enable hostel staffs to save the records of the hosteller about their rooms,
room fees and mess billings.
Generally these works are done and managed manually,it is very difficult to
find the records of the hostellers and the messbill of the hosteller and the
information about the those once who lives in the hostel.
The online hostel management system will work and update the hostellers
records,employees record ,guest record,hostels record and hostellers fees record,
hostellers attendance record,hostel buildings(blocks) and rooms records,mess
management and mess billings and admission process ,payment process can be
done through online.This system automatically calculates the hostel
fees,messbill etc.

Page.No: 1
www.studentprojectguide.com

2.Objective
E-Hostel Management System is a system for managing the various
activities in the hostel. It is used for managing the hostel information. It
manages the student information, room information, room allocation details, fee
details, mess bill details and employee details of the hostel. It is also used to
generate reports of student details, fee details and mess bill details of the
student. It keeps track of the number of students in the room and availability of
the room. It helps organization from the manual work from which it is very
difficult to find the record of the students and the mess bills of the students.

Page.No: 2
www.studentprojectguide.com

3.Tools/Environment used:
Hardware requirements:
 Operating system: Windows XP or higher
 Processor: Dual core or higher
 14” Monitor
 Keyboard, mouse, etc
Software requirements:
 XAMPP Software
 Apache server
 MySQL server
 IDE: Adobe dreamweaver
Software languages:
 Front end: PHP
 Back end: MySQL server

Page.No: 3
www.studentprojectguide.com

4.Software Requirement Specification

4.1 Introduction
The SRS typically contains a brief description of the project. It describes
what the proposed software should do without describing how the software will
for the do it. An SRS provides a reference for the validation of the final product,
i.e., the SRS helps the client to determine if the software meets the
requirements. SRS is the medium through which the client and user needs are
accurately specified to the developer.
The basic objective of SRS is to specify the important requirements of the
proposed system that are gathered during the system analysis. To satisfy the
basic goals, an SRS should have some desirable characteristics: correctness,
completeness, unambiguous, verifiable, modifiable and traceable, which we
have observed throughout during the process in entirely.
This document provides details about the entire software requirements
specification for the web application of Online Hostel Management System.

4.2 Purpose
As the name specifies “E-Hostel Management System” is a web based
application developing for managing various activities in the hostel. The main
purpose of this project is to design and implementation which will enable hostel
staffs to save the records of the students about their rooms, room fees and mess
billings. It helps them from the manual work from which it is very difficult to
find the record of the students and the mess bills of the students, and the
information of about the those ones who lives in the hostel.

Page.No: 4
www.studentprojectguide.com

4.3 Scope
This particular project deals with the problems on managing hostel and
avoids the problems which occur when carried manually. We design this system
according to the hostel management requirements, through this they cannot
require so efficient person to handle and calculate the things. This system
automatically calculates Student hostel fee, mess bills, etc.

4.4 Definition, Acronyms and Abbreviations


This program is a menu driven program. When we click the menu options the
different pages will be enabled.
SRS :- Software requirement specification
OHMS: - Online Hostel Management System
PHP: Hypertext pre-processor
PHP is a server scripting language, and is a powerful tool for making dynamic
and interactive Web pages quickly. PHP is a widely-used, free, and efficient
alternative to competitors such as Microsoft's ASP.
MySQL:- MySQL Database server
MySQL is a most popular database system used on the web. It supports standard
SQL Queries. The data in MySQL is stored in tables. A table is a collection of
related data, and it consists of columns and rows.

Reference:
Book references:
 Software engineering by Pankaj Jalote

 Learning PHP, MySQL, JavaScript, and CSS: A Step-by-Step Guide to


Creating Dynamic Websites by Robin Nixon

Page.No: 5
www.studentprojectguide.com

Internet references:
 www.w3schools.com

 www.php.net

 www.mysql.com

4.5 Overview

This document provides the information of Product perspective, Product


functions, User characteristics, Constraints, Assumptions and dependencies and
specific requirement.
The online hostel management system will work and update the student’s
record, hostels record and student fees record, employee records, Hostel
Buildings(blocks)and Rooms records, Mess management and Mess billings.
User Friendliness is provided in the application with various controls provided
by system Rich User Interface. This is web application and it’s developed using
PHP language. All the record stores in MySQL Database.

4.6 Overall Description


Describes the general factors that affect the product and its requirements. This
section does not state specific requirements. Instead it provides a background
for those requirements, which are defined in section 3, and makes them easier to
understand.

4.6.1 Product Perspective


The product Online Hostel Management System will be developed completely
web application and it can be accessed over the internet. Only Administrator
and Employees can login to the system by entering Login ID and password.

Page.No: 6
www.studentprojectguide.com

After login Administrator and Employees can view Student details, hostel fee
details, Mess bill details, and the other information about the students.
4.6.2 Product Function
The product functions will include the following areas:
 The application is capable enough to store all the records and also
perform some editing on them that is added.

 User Friendliness is provided in the application with various controls


provided by system Rich User Interface.

 Students records : Student profile details, Course details, etc

 Billing: Hostel Fee and Mess bill.

4.6.3 User Characterstics

 A basic knowledge of internet usage may take benefits of the software.

 The user of this product is supposed to be fairly educated about the usage
of the computers.

 A person who has no knowledge of computers will find it difficult to


understand the system. But with a little knowledge it will be very easy to
handle the project.

4.6.4 General Constraints


 Designed to run on Windows XP and further versions.

 Latest browsers like Internet explorer or Mozilla Firefox or Google


chrome required.

 Internet facility is essential to use this web application.

4.6.5 Assumptions and Dependencies


 Only the Administrator will administer the system. All other hostel
warden and employees will online have access permission

 It can be accessed over the Internet.

Page.No: 7
www.studentprojectguide.com

Specific Requirements
4.7 External Interface Requirements

4.7.1 User Interface


The software provides good graphical interface for the front end which is
self-explanatory. The website is designed using HTML and CSS. PHP is used
as front end and MySQL server used as backend. The developer will have to
study the designing of the product.

4.7.2 Hardware Interface (Minimum)


 Operating system: Windows XP

 Hard disk:40 GB hard disk

 RAM :1 GB RAM

 Peripheral devices

 Processor: Intel Pentium or above

4.7.3 Software Interface (Minimum)


 Design interface: HTML, CSS, AJAX.

 Front End: PHP 5.2

 Back end: MySQL Server 5.5

 Server: Apache server 1.8.2

 IDE: Adobe dreamweaver CS 6.0

4.8 Functional Requirements (Modules):


Page.No: 8
www.studentprojectguide.com

 Online application module: Student needs to fill the application form


through online to join hostel. Warden will check available rooms and
approve the application of student.
 Events module: This module allows administrator to upload news and
events. Public website visitors can view published news and events.
 Admin account module: Administrator is the main user of system who
can monitor complete status of the website. Admin can add warden
details, webpages, events, room settings, etc. Only the administrator can
view all types of reports.
 Warden Account module: This module is for hostel warden who allots
rooms to the hosteller. Warden will submit daily attendance of the
student. Warden can add and view Room chart, Attendance report,
Payment report, mess bill report, etc.
 Admission module: This module will allocate a room to hosteller . A
room will allocated to a hosteller and an ID will generate for it. Even it
displays the details of the hostellers staying in rooms. At last when
student leaves the room its detail like Exit date also stores in the database.
The system generates admission fee with printed receipt.
 Hosteller account module: hosteller can view his attendance report and
pending mess bill, hostel fees through online. Hosteller needs to login to
the system to access this feature. It contains the following information:
i.e. Students Profile details, Contact information, parents detail, etc. The
Users can search the students from the database according to different
criteria such as name, Course, Room number, etc.
 Room settings module: This module allows administrator to add hostel
room details with cost, room number, capacity, etc.

Page.No: 9
www.studentprojectguide.com

 Room chart module: This module displays how many rooms vacated


and how many rooms are full. Admin and Warden can view live report
through online.
 Hosteller attendance module: This module warden to enter attendance
details of the student. Admin can view monthly or daily attendance
report.
 Mess Bill module: This module keeps track of all the transactions related
to mess. The mess item expenditure for each student in the hostel is
calculated for each month and the mess bill for each hosteller calculated
and displayed.
 Payment module: This module allows student to make payment through
online. This allows to make monthly mess bill payment and year wise
room bill payment.
 Guest module: This module helps for guest to book the room by entering
name, from date, todate, etc. Guest has to pay Rs. 500 per day for the
room and online payment available for the guest.
 Report module: Report generation is also provided to view summarized
detail regarding hostel fees and mess bill. It includes Hostel fees, Mess
Inventory reports. hosteller can check hostel fees and mess bill by
entering their Unique Hostel ID.

4.9 Performance Requirements


The system is supposed to be having good memory space and RAM should be
Above 1GB preferably. The sound card and graphics card will have to be of
good quality and capacity.

4.10 Design Constraints


Computer: INTEL compatible

Page.No: 10
www.studentprojectguide.com

RAM: 256 MB or higher


Operating system: Windows XP or above

Reliability
This system is designed to have very simple database just to cater the exact
need of Online Hostel Management System It is tested for all the constraints at
development stage.

Security

This can give the good security for user information because data is not in client
machine. Authentication is provided for this application only registered Users
can access.
Maintainability
There will be no maintenance required for this web application. The
database is provided by the end-user and therefore is maintained by this user.

Portability
The internet connection required.

Other Requirements (If any)


None

Page.No: 11
www.studentprojectguide.com

5.1System Design

5.1.1 Introduction:
 System Analysis:
The system analysis approach emphasises a closed look on all parts of the
system. The analyst must consider all the system elements, their inputs,
outputs, control, feedback and the environment when the system is being
constructed.
 System Design: The goal of system design phase is to produce a model
or representation of the system, which can be used to build the system.
Here the emphasis is on translating the requirements of the system into
design specification.

1. Applicable Documents:

The document used in system design is Software Requirement


Specification Document.

2. Functional Decomposition:
This particular project deals with the problems on managing hostel
and avoids the problems which occur when carried manually. We design
this system according to the hostel management requirements, through
this they cannot require so efficient person to handle and calculate the
things. This system automatically calculates Student hostel fee, mess
bills, etc.

Page.No: 12
www.studentprojectguide.com

3.Program Description:

5.1.1 Context Flow Diagram:

Context flow diagram is a top level data flow diagram. It only


contains one process node that generalises the function of the entire
system in relationship to external entities. In context diagram the entire
system is treated as a single process and all its inputs, outputs, sinks and
sources are identified and shown.

5.1.2 Context Flow Diagram (Level 0):

Login,register,payment
Guest
Hosteller Guest register,pay

View messbill,view
Payment report
Hostel management
system View billing
Add messbill
Add attendance View report

Warden
View reports Add block,
Admin
Send data room
receive data

hostel_manage
ment_system

5.1.3 Data Flow Diagram:

A data flow diagram is a graphical representation of the flow of data


through an information system. A data flow diagram can also be used for the
visualization of the data processing. It is common practice for a designer to

Page.No: 13
www.studentprojectguide.com

draw a context level DFD. It shows the interaction between the system and the
outside entities. This context level DFD, is then exploded to show more detail
of the system being modelled.
A DFD represents flow of data through a system. Data flow diagrams are
commonly used during problem analysis. It views a system as a function that
performs the input into the desired output. A DFD shows movement of data
through the different transformations or processes in the system.
Data Flow diagrams can be used to provide the end users with the
physical idea of where the data they input ultimately has an effect upon the
structure of whole system from order to dispatch to restock how any system is
developed can be determined through data flow diagram. The appropriate
register saved in database and maintained by appropriate authorities.

Notations in the DFD:

Page.No: 14
www.studentprojectguide.com

Symbol Description
The circle or bubble represents a process.
A process is named and each process is
represented by a named circle.

The source or sink is represented as a


rectangular box. The source or sink is the
net originator or the consumer of the data
that flows in the system.

The arrow represents the flow of data


through the system. The labeled arrows
enter or leave the bubbles.

The database is represented with the


open box symbol.

Top Level DFD - Level-1 :


Page.No: 15
www.studentprojectguide.com

2.1
Adding room Room_id, room
admin room details room_no

2.2
Hosteller admission name.email,password
process hosteller
hosteller profile,
admission detail start_date,
end_date admission

hosteller
2.3 name,visit
Guest registration reason
process guest

guest detail

guest

2.4
Attendance entry attdate,
process
att_status
attendance
attendance entry
details
warden 2.5
Mess bill calculation
process
mess bill messbill
charge_type,
messbill

2.6
Mess bill payment
process billing
bill_type,paid amt
payment details

2.7
Publishing events events
events events titles
DFD Level 2.1:

Page.No: 16
www.studentprojectguide.com

admin

Block detail Adding blocks block_id,block_name

blocks

fee structure Adding fee block_id,block_name


structure
room_type,cost,block_id

fees_structure

room detail Adding room fee_str_id,cost

room room_id,login_id,no_of_beds

room
Adding employee
employee detail
record
employee

Description of component:
 Input:
 Block details
 Fees structure
 Room details
 Employee details
 Process Definition:
 Adding blocks
 Adding fees structure
 Adding room
 Adding employee record
 Output definition:
 Block_id,block _name
 Room type,cost,block_id
 Room_id room_no,no_of_beds
 Employee name,login_id,passwor

Page.No: 17
www.studentprojectguide.com

DFD Level 2.2:


Hosteller registration
Hosteller profile process name,email_id,password
Hosteller

hosteller
Hosteller login
process
login credential email,password

logged in hosteller id
Searching available
Room details room

`
room_id,room_no
room logged in hosteller
hosteller_id,room_id
Admission start_date
process
admission

Payment process

billing

Description of component:
 Input :
 Hosteller profile
 Login credentials
 Room details
 Payment details
 Process Definition:
 Hosteller registration process
 Hosteller login process
 Searching available room
 Admission process
 Payment process
 Output definition:
Page.No: 18
www.studentprojectguide.com

 Name,email_id,password
 Hosteller_id room id,start date,end date

DFD Level 2.3

Guest registration
Detail Registration name,email_id,password
guest process

guest

login process emailed,


password from date,
login credentials todate
logged in guest

Booking guest
room
payment receipt

paid_amt,paid_date

billing

Description of component:
 Input:
 Guest registration detail
 Login credentials

 Process Definition:
 Registration process
 Login process
 Booking guest room

 Output definition:
 Name,visit reason,email_id,password
 Payment recipt
Page.No: 19
www.studentprojectguide.com

 Paid_amt,paid_date
 From date,todate

DFD Level 2.4:

Warden Hosteler list hosteller


hostellerid
emailid,
Loading hosteller password
list

hosteller profile

Attendance entry attendance id,attdate,


process status

attendance
Description of component:
 Input:
 Hosteller list
 Hosteller_id,email_id,password

 Process Definition:
 Loading hosteller list
 Attendance entry process
 Output definition:
 Hosteller profile
 Attendance id,attendance date,attendance status

DFD Level 2.5:

warden
Page.No: 20
www.studentprojectguide.com

messbill

Loading messbill messbill id,date,messbill

total amount messbill

Messbill
calculation
process messbill id,messbill,date

messbill recipt
hosteller

Generating hosteller_id,name
messbill invoice

penalty amount hosteller

penalty Adding penalty charge_type,messbill

Description of component:
 Input:
 Mess bill
 Penalty
 Messbill_id,messbill,date
 Process Definition:
 Loading messbill
 Messbill calculation process
 Generating messbill invoice
 Adding penalty

 Output definition:
 Messbill id,date,messbill
 Penaty amount
 Charge type,messbill

Page.No: 21
www.studentprojectguide.com

DFD Level 2.6:

messbill messbill
hosteller
messbill id,messbill

Loading mess bill


details

penalty Loading penalty and Messbill,


charges other charges billtype

pament detail Payment process total amount

billing
Description of component:
 Input:
 Mess bill
 Penalty charges
 Payment details
 Process Definition:
 Loading messbill details
 Loading penalty and other charges
 Payment process
 Output definition:
 Billing_id,paid_amt

5.2 Data Base Design


5.2.1 Introduction :

 Database: A Database is collection of related data, which can be of


any size and complexity. By using the concept of Database, we can

Page.No: 22
www.studentprojectguide.com

easily store and retrieve the data. The major purpose of a database is
to provide the information, which utilizes it with the information’s
that the system needs according to its own requirements

 Database Design :Database design is done before building it to


meet needs of end-users within a given information-system that the
database is intended to support. The database design defines the
needed data and data structures that such a database comprises

The database is physically implemented using MySQL.

The database sriramakrishnavidhyarthinibhavana is organized into 11 tables:

 admission
 attendance
 billing
 blocks
 employee
 fees
 fees_structure
 guest
 hosteller
 mess_bill
 room

5.2.2 Table structure:

Each entity can be described as follows along with its attributes:

Table Name: admission


Column Type Index Description
admission_id int(10) Primary Admission ID
key

Page.No: 23
www.studentprojectguide.com

Hostellerid int(10) Not Null Hosteller ID


room_id int(10) Not Null Room ID
start date Date Not Null Start date
end_date Date Not Null End date
food_type varchar(25) Not Null Food type
Status varchar(10) Not Null Admission status

Table Name: attendance


Column Type Index Description
attendanceid int(10) Primary Attendance ID
key
admission_id int(10) Not Null Admission ID
attdate Date Not Null Attendance date
attendancestatu varchar(10 Not Null Attendance status
s )

Table Name: billing


Column Type Index Description
billid int(10) Primary Bill ID
key
admission_id int(10) Not Null Admission ID
guestid int(10) Not Null Guest ID
bill_type varchar(20) Not Null Bill type
paid_amt double(10,2 Not Null Paid amount
)
paid_date Date Not Null Paid date
payment_type varchar(10) Not Null Payment type
particulars Text Not Null Particulars
status varchar(10) Not Null Billing status

Table Name: blocks


Column Type Index Description
block_id int(10) Primary Block ID
key
block_name varchar(25) Not Null Block name

Page.No: 24
www.studentprojectguide.com

Description Text Not Null Description


Status varchar(10) Not Null Status

Table Name: employee


Column Type Index Description
emp_id int(10) Primary key Employee ID
emp_name varchar(50) Not Null Employee name
login_id varchar(20) Not Null Login ID
password varchar(20) Not Null Password
emp_type varchar(20) Not Null Employee type
gender varchar(10) Not Null Gender
designatio varchar(50) Not Null Designation
n
status varchar(10) Not Null Status

Table Name: fees


Column Type Index Description
fee_id int(10) Primary Fee ID
key
admission_i int(10) Not Null Admission ID
d
fee_str_id int(10) Not Null Fee structure ID
total_fees double(10,2) Not Null Total fees
invoice_date Date Not Null Invoice date
status varchar(20) Not Null Status

Table Name: fees_structure


Column Type Index Description
fee_str_id int(10) Primary key Fee structure ID
block_id int(10) No Block ID
usertype varchar(15) Not Null User type
room_type varchar(25) Not Null Room type
Cost float(10,2) Not Null Cost
Status varchar(10) Not Null Status

Table Name: guest


Column Type Index Description
Guestid int(10) Primary Guest ID

Page.No: 25
www.studentprojectguide.com

key
Name varchar(25) Not Null Guest name
Visitreaso varchar(100) Not Null Visit reason
n
Emailed varchar(20) Not Null Guest Email ID
Password varchar(20) Not Null Guest password
Contactno varchar(15) Not Null Contact number
comment Text Not Null Comment
fromdate Date Not Null Booking date –
from
Todate Date Not Null Booking Date –
To
Status varchar(10) Not Null Guest status

Table Name: hosteller


Column Type Index Description
hostellerid int(10) Primary Hosteller ID
key
hostellertype varchar(15) Not Null Hosteller type
Name varchar(50) Not Null Hosteller name
Emailed varchar(50) Not Null Email ID
Password varchar(100) Not Null Password
Dob Date Not Null Date of Birth
father_name varchar(50) Not Null Father name
mother_nam varchar(50) Not Null Mother name
e
Address Text Not Null Address
contact_no varchar(15) Not Null Contact number
parent_no varchar(15) Not Null Parents number
Status varchar(10) Not Null Status

Table Name: mess_bill

Page.No: 26
www.studentprojectguide.com

Column Type Index Description


mess_bill_id int(10) Primary Mess bill ID
key
admission_i int(10) Not Null Admission ID
d
charge_type varchar(20) Not Null Charge Type
date Date Not Null Bill date
mess_bill double(10,2) Not Null Mess Bill
note Text Not Null Note
status varchar(10) Not Null Status

Table Name: room


Column Type Index Description
room_id int(10) Primary key Room ID
block_id int(10) Not Null Block ID
fee_str_id int(10) Not Null Fee structure ID
room_no int(10) Not Null Room number
no_of_bed int(5) Not Null Number of beds
s
description Text Not Null Room description
Status varchar(10) Not Null Status

Table Name: feedback


Column Type Index Description
feedback_id int(10) Primary Feedback Id
key
hostellerid int(10) Not Null Hosteller Id
feedbackdttime datetime Not Null Feedback Time
feedbacksubject Not Null Feedback
varchar(150) Subject

feedbackmessag text Not Null Feedback


e message

Page.No: 27
www.studentprojectguide.com

5.2.3 Entity-Relationship Diagram:

An entity-relationship (ER) diagram is a specialized graphic that illustrates the


relationships between entities in a database. ER diagrams often use symbols to
represent three different types of information. Boxes are commonly used to
represent entities. Diamonds are normally used to represent relationships and
ovals are used to represent attributes.

The Symbols are shown in below table:

Name Notation Description

Entity is represented by a
box within the ERD.
Entity Entities are abstract
concepts, each
representing one or more
instances of the concept
in question. An entity
might be considered a
container that holds all of
the instances of a
particular thing in a
system. Entities are
equivalent to database
tables in a relational
database, with each row
of the table representing
an instance of that entity.

Relationship are
represented by Diamonds.
Relationship A relationship is a named
collection or association

Page.No: 28
www.studentprojectguide.com

between entities or used


to relate to two or more
entities with some
common attributes or
meaningful interaction
between the objects.

Attributes are represented


by Oval. An attribute is a
Attributes single data item related to
a database object. The
database schema
associates one or more
attributes with each
database entity.

event_titlte
status
emp_name
emp_id event_id
login_id
end_date
adds events
emp_type employee
Page.No: 29
www.studentprojectguide.com

1 n
event description
1
event_banner
adds

block_name
block_id
n
description 1
status blocks enters
name email
title
1 hostellerid
assign n
addsss
1 n feedback
fee_str_id status hosteller
n
att
password message
room_type fees_structur date
start_date
e
1 attendanceid
cost
insert admission_id
end_date
room_id n
1 selected 1 1 n
for views
room admission attendanc
room_no m e

pays
1
no_of_beds food_type pays att_status
1 n
n fees
generetes

guest_id name invoice_date


1
billid bill_type total_fees

guest 1 views n billing fees_id

mess_bill
emailid password paid_amt paid_date

note
messbill_id

messbill charge_type

5.3 Detailed Design


5.3.1 Introduction :

Page.No: 30
www.studentprojectguide.com

Detailed design start after the system design phase is completed


and the system design been certified through reviews. The goal of the
phase is to develop the internal logic of each of the modules identified
during system design.
The design process for the software system has two levels. At first
level focus is on deciding which modules are needed for the system, the
specification of the modules and how the module should be
interconnected. This is called the system design or the top level design. In
the second level the internal design of the modules or how the
specification of the modules can be satisfied is decide. This design is
often called “Detailed design or logical design”.

1. Applicable documents:

The documents used during detailed design are

 System Requirements Document


 System Design
 Database Design

2. Structure of the software package:


The software package contains of following functional components:
Functional component 1: Online Application Module
Functional component 2: Events Module
Functional component 3: Admin Account Module
Functional component 4: Warden Account Module
Functional component 5: Admission Module
Functional component 6: Student Account Module
Functional component 7: Room setting Module

Page.No: 31
www.studentprojectguide.com

Functional component 8: Room Chart Module


Functional component 9: Student Attendance Module
Functional component 10 : Mess Bill Module
Functional component 11: Payment Module
Functional component 12: Guest Module
Functional component 13: Report Module

5.4 Modular Decomposition of Components:

Online Application Component:


Identification of Modules:
The module identified in this component are:

 Registration
 Hosteller login

Online application

Register login

Events components:
Identification of Modules:
The module identified in this component are:

 Post Events
 View Events

Events

Post events

Page.No: 32
www.studentprojectguide.com

View events

Admin Account Component:


Identification of Modules:
The module identified in this component are:

 Add Warden
 View Warden Reports
 Modify webpages
 Post events
 Add room setting

Admin

Add Warden View Warden Modify Post Events Add room


webpage settings

Warden Component:
Identification of Modules:
The module identified in this component are:

 Warden login
 View room chart
 View attendance report
 View payment report
 Messbill

Warden

Page.No: 33
www.studentprojectguide.com

Login View room Attendance Payment Messbill


chart report report

Admission Component:
Identification of Modules:
The module identified in this component are:

 Student admission entry


 View admission details

Admission

Student admission View admission


entry detail

Hosteller Account component:


Identification of Modules:
The module identified in this component are:

 Pay room rent


 Pay mess bill
 View hosteller profile
 Change password
 View messbill

Hosteller

Pay room rent View profile


Page.No: 34
www.studentprojectguide.com

Pay mess bill Change View Messbill


password

Room Setting Component:


Identification of Modules:
The module identified in this component are:

 Add room
 View room

Room setting

Add room View room

Room Chart Component:


Identification of Modules:
The module identified in this component are:

 View available room

Room chart

View available room

Attendance Component:
Identification of Modules:
The module identified in this component are:
 Add room
 View room

Room setting

Add room
Page.No: 35
www.studentprojectguide.com

View room

Messbill Component:
Identification of Modules:
The module identified in this component are:
 Add messbill
 Messbill calculation
 View messbill report

Messbill

Add mess bill Messbill calculation View mess bill


report

Payment Component:
Identification of Modules:
The module identified in this component are:
 Room Rent payment
 Messbill payment
 View payment report

Payment

Room rent payment Messbill payment Payment report

Guest Component:
Identification of Modules:
The module identified in this component are:
 Guest registration
 Guest login
 Guest room booking
 Online payment
 View report

Page.No: 36
www.studentprojectguide.com

Guest

Guest Guest login Guest room Online View report


registration booking payment

Report Component:
Identification of Modules:
The module identified in this component are:
 Hostel fees report
 View messbill report
 View hosteller report
 View guest report
 View attendance report

Report

Hostel fees Messbill Hosteller Guest report Attendance


report report report report

6.Program Code
6.1 PHP (PHP HYPERTEXT PREPROCESSOR)

PHP started out as a small open source project that evolved as more and more
people found out how useful it was. Rasmus Lerdorf unleashed the first version
of PHP way back in 1994.

Page.No: 37
www.studentprojectguide.com

 PHP is a recursive acronym for "PHP: Hypertext Preprocessor".

 PHP is a server side scripting language that is embedded in HTML. It is


used to manage dynamic content, databases, session tracking, even build
entire e-commerce sites.

 It is integrated with a number of popular databases, including MySQL,


PostgreSQL, Oracle, Sybase, Informix, and Microsoft SQL Server.

 PHP is pleasingly zippy in its execution, especially when compiled as an


Apache module on the Unix side. The MySQL server, once started,
executes even very complex queries with huge result sets in record-
setting time.

 PHP supports a large number of major protocols such as POP3, IMAP,


and LDAP. PHP4 added support for Java and distributed object
architectures (COM and CORBA), making n-tier development a
possibility for the first time.

 PHP is forgiving: PHP language tries to be as forgiving as possible.

 PHP Syntax is C-Like.

Common uses of PHP


 PHP performs system functions, i.e. from files on a system it can create,
open, read, write, and close them.

 PHP can handle forms, i.e. gather data from files, save data to a file,
through email you can send data, return data to the user.

 You add, delete, modify elements within your database through PHP.

Page.No: 38
www.studentprojectguide.com

MySQL
MySQL is a fast, easy-to-use RDBMS being used for many small and big
businesses. MySQL is developed, marketed and supported by MySQL AB,
which is a Swedish company. MySQL is becoming so popular because of
many good reasons −

 MySQL is released under an open-source license. So you have nothing to


pay to use it.
 MySQL is a very powerful program in its own right. It handles a large
subset of the functionality of the most expensive and powerful database
packages.
 MySQL uses a standard form of the well-known SQL data language.
 MySQL works on many operating systems and with many languages
including PHP, PERL, C, C++, JAVA, etc.
 MySQL works very quickly and works well even with large data sets.
 MySQL is very friendly to PHP, the most appreciated language for web
development.
 MySQL supports large databases, up to 50 million rows or more in a
table. The default file size limit for a table is 4GB, but you can increase
this (if your operating system can handle it) to a theoretical limit of 8
million terabytes (TB).
 MySQL is customizable. The open-source GPL license allows
programmers to modify the MySQL software to fit their own specific
environments.

HTML
HTML stands for Hypertext Markup Language, and it is the most widely used
language to write Web Pages.

Page.No: 39
www.studentprojectguide.com

 Hypertext refers to the way in which Web pages (HTML documents) are


linked together. Thus, the link available on a webpage is called
Hypertext.
 As its name suggests, HTML is a Markup Language which means you
use HTML to simply "mark-up" a text document with tags that tell a
Web browser how to structure it to display.

Originally, HTML was developed with the intent of defining the structure of
documents like headings, paragraphs, lists, and so forth to facilitate the sharing
of scientific information between researchers.

Now, HTML is being widely used to format web pages with the help of
different tags available in HTML language.

 HTML was created by Berners-Lee in late 1991 but "HTML 2.0" was the first
standard HTML specification which was published in 1995. HTML 4.01 was a
major version of HTML and it was published in late 1999. Though HTML 4.01
version is widely used but currently we are having HTML-5 version which is an
extension to HTML 4.01, and this version was published in 2012.

HTML Documents

All HTML documents must start with a document type declaration: <!


DOCTYPE html>.

The HTML document itself begins with <html> and ends with </html>.

The visible part of the HTML document is between <body> and </body>.

CSS (Cascading Style Sheets)
Cascading Style Sheets, fondly referred to as CSS, is a simple design language
intended to simplify the process of making web pages presentable.
Page.No: 40
www.studentprojectguide.com

CSS handles the look and feel part of a web page. Using CSS, you can control
the color of the text, the style of fonts, the spacing between paragraphs, how
columns are sized and laid out, what background images or colors are used,
layout designs,variations in display for different devices and screen sizes as
well as a variety of other effects.

CSS is easy to learn and understand but it provides powerful control over the
presentation of an HTML document. Most commonly, CSS is combined with
the markup languages HTML or XHTML.

Advantages of CSS
 CSS saves time − You can write CSS once and then reuse same sheet in
multiple HTML pages. You can define a style for each HTML element
and apply it to as many Web pages as you want.
 Pages load faster − If you are using CSS, you do not need to write
HTML tag attributes every time. Just write one CSS rule of a tag and
apply it to all the occurrences of that tag. So less code means faster
download times.
 Easy maintenance − To make a global change, simply change the style,
and all elements in all the web pages will be updated automatically.
 Superior styles to HTML − CSS has a much wider array of attributes
than HTML, so you can give a far better look to your HTML page in
comparison to HTML attributes.

JAVASCRIPT

JavaScript is a dynamic computer programming language. It is lightweight and


most commonly used as a part of web pages, whose implementations allow
client-side script to interact with the user and make dynamic pages. It is an
interpreted programming language with object-oriented capabilities.

Page.No: 41
www.studentprojectguide.com

JavaScript was first known as LiveScript, but Netscape changed its name to


JavaScript, possibly because of the excitement being generated by Java.
JavaScript made its first appearance in Netscape 2.0 in 1995 with the
name LiveScript. The general-purpose core of the language has been
embedded in Netscape, Internet Explorer, and other web browsers.

The ECMA-262 Specification defined a standard version of the core JavaScript


language.

 JavaScript is a lightweight, interpreted programming language.


 Designed for creating network-centric applications.
 Complementary to and integrated with Java.
 Complementary to and integrated with HTML.
 Open and cross-platform

Advantages of JavaScript
The merits of using JavaScript are −

 Less server interaction − You can validate user input before sending the
page off to the server. This saves server traffic, which means less load on
your server.
 Immediate feedback to the visitors − They don't have to wait for a page
reload to see if they have forgotten to enter something.
 Increased interactivity − You can create interfaces that react when the
user hovers over them with a mouse or activates them via the keyboard.

Richer interfaces − You can use JavaScript to include such items as drag-and-
drop components and sliders to give a Rich Interface to your site visitors

Page.No: 42
www.studentprojectguide.com

6.2 Coding For Hosteller Register Page:

<?php

include("header.php");

if(isset($_POST[submit]))

if(isset($_GET[editid]))

//Update statement starts here

$sql ="UPDATE hosteller SET


hostellertype='$_POST[hostellertype]',name='$_POST[name]',emailid='$_POS
T[emailid]',password='$_POST[password]',dob='$_POST[dob]',father_name='$
_POST[father_name]',mother_name='$_POST[mother_name]',address='$_POS
T[address]',contact_no='$_POST[contact_no]',status='Active' WHERE
hostellerid='$_GET[editid]'";

$qsql = mysqli_query($con,$sql);

if(mysqli_affected_rows($con) ==1 )

echo "<SCRIPT>alert('Hosteller record updated


successfully..');</SCRIPT>";

echo
"<script>window.location='viewhosteller.php';</script>";

else

echo mysqli_error($con);

Page.No: 43
www.studentprojectguide.com

else

$sql = "INSERT INTO


hosteller(hostellertype,name,emailid,password,dob,father_name,m
other_name,address,contact_no,status)
VALUES('$_POST[hostellertype]','$_POST[name]','$_POST[emai
lid]','$_POST[password]','$_POST[dob]','$_POST[father_name]','$
_POST[mother_name]','$_POST[address]','$_POST[contact_no]','
Active')";

$qsql = mysqli_query($con,$sql);

if(mysqli_affected_rows($con) ==1 )

echo "<SCRIPT>alert('Hosteller Registration completed


successfully..');</SCRIPT>";

echo
"<script>window.location='hostellerlogin.php';</script>";

else

echo mysqli_error($con);

if(isset($_GET[editid]))

Page.No: 44
www.studentprojectguide.com

$sqledit = "SELECT * FROM hosteller WHERE


hostellerid='$_GET[editid]'";

$qsqledit = mysqli_query($con,$sqledit);

$rsedit = mysqli_fetch_array($qsqledit);

?>

</div>

<!-- //banner -->

<!-- contact -->

<section class="contact-wthree" id="contact">

<div class="container py-lg-3">

<div class="title text-center">

<h3 class="title-w3 text-bl text-center font-weight-


bold">Hosteller Registration Panel</h3>

</div>

<div class="row pt-xl-4">

<div class="col-lg-12 ">

<div class="contact-form-wthreelayouts">

<form action="" method="post" class="register-wthree" name="frmform"


onsubmit="return validateform()">

<div class="row">

<div class="col-lg-6">

<label>

Hosteller type

</label><span class="errclass"id="idhostellertype"></span>
Page.No: 45
www.studentprojectguide.com

<select name="hostellertype" class="form-control">

<option value="">Select</option>

<?php

$arr = array("Employee","Student","Others");

foreach($arr as $val)

if($val == $rsedit[hostellertype])

echo "<option value='$val' selected>$val</option>";

else

echo "<option value='$val'>$val</option>";

?>

</select>

</div>

<div class="col-lg-6">

<label>

Name

</label><span class="errclass" id="idname"></span>

<input class="form-control" type="text" name="name"


value="<?php echo $rsedit[name];?>">
Page.No: 46
www.studentprojectguide.com

</div>

</div>

<div class="row">

<div class="col-lg-6">

<br>

<label>

Email ID

</label><span class="errclass" id="idemailid"></span>

<input class="form-control" type="email" placeholder="Email ID"


name="emailid" value="<?php echo $rsedit[emailid];?>">

</div>

<div class="col-lg-6">

<br>

<label>Date of Birth</label><span class="errclass"


id="iddob"></span>

<input class="form-control" type="date"


placeholder="DOB" name="dob" value="<?php echo $rsedit[dob];?>">

</div>

</div>

<div class="row">

<div class="col-lg-6">

<br>

<label>

Password

</label><span class="errclass" id="idpassword"></span>


Page.No: 47
www.studentprojectguide.com

<input class="form-control" type="password"


placeholder="Password" name="password" value="<?php echo
$rsedit[password];?>" >

</div>

<div class="col-lg-6">

<br>

<label>

Confirm Password

</label><span class="errclass" id="idcpassword"></span>

<input class="form-control" type="password"


placeholder="Confirm Password" name="cpassword" value="<?php echo
$rsedit[password];?>" >

</div>

</div>

<div class="row">

<div class="col-lg-6">

<br>

<label>

Father Name

</label><span class="errclass" id="idfather_name"></span>

<input class="form-control" type="text"


name="father_name" value="<?php echo $rsedit[father_name];?>">

</div>

<div class="col-lg-6">

<br>

Page.No: 48
www.studentprojectguide.com

<label>

Mother Name

</label><span class="errclass"
id="idmother_name"></span>

<input class="form-control" type="text"


name="mother_name" value="<?php echo $rsedit[mother_name];?>">

</div>

</div>

<div class="form-group">

<br>

<label>

Address

</label><span class="errclass" id="idaddress"></span>

<textarea name="address" class="form-control"><?php echo


$rsedit[address];?></textarea>

</div>

<div class="form-group">

<br>

<label>

Contact No

</label><span class="errclass" id="idparent_no"></span>

<input class="form-control" type="text" name="contact_no"


value="<?php echo $rsedit[contact_no];?>">

</div>

<div class="form-group mt-4 mb-0">

Page.No: 49
www.studentprojectguide.com

<button type="submit" name="submit" class="btn btn-w3layouts


w-100">Click here to Register</button>

</div>

</form>

</div>

</div>

</div>

</div>

</section>

<!-- //contact -->

<?php

include("footer.php");

?>

<script>

function validateform()

var numericExpression = /^[0-9]+$/;

var alphaExp = /^[a-zA-Z]+$/;

var alphaSpaceExp = /^[a-zA-Z\s]+$/;

var alphanumericExp = /^[0-9a-zA-Z]+$/;

var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;

$(".errclass").html('');

var errstatus = "true";

if(document.frmform.hostellertype.value == "")
Page.No: 50
www.studentprojectguide.com

document.getElementById("idhostellertype").innerHTML =
"Kindly select hosteller type...";

errstatus = "false";

if(!document.frmform.name.value.match(alphaSpaceExp))

document.getElementById("idname").innerHTML = "Entered
name is not valid...";

errstatus = "false";

if(document.frmform.name.value == "")

document.getElementById("idname").innerHTML = "Name should


not be empty...";

errstatus = "false";

if(!document.frmform.emailid.value.match(emailExp))

document.getElementById("idemailid").innerHTML = "Entered
Email ID is not valid...";

errstatus = "false";

if(document.frmform.emailid.value == "")

Page.No: 51
www.studentprojectguide.com

document.getElementById("idemailid").innerHTML = "Email ID
should not be empty...";

errstatus = "false";

if(document.frmform.dob.value == "")

document.getElementById("iddob").innerHTML = "Date of Birth


should not be empty...";

errstatus = "false";

if(document.frmform.password.value.length<6)

document.getElementById("idpassword").innerHTML =
"Password should contain more than 6 characters.....";

errstatus = "false";

if(document.frmform.password.value == "")

document.getElementById("idpassword").innerHTML =
"Password should not be empty...";

errstatus = "false";

if(document.frmform.cpassword.value == "")

Page.No: 52
www.studentprojectguide.com

document.getElementById("idcpassword").innerHTML =
"Confirm password should not be empty...";

errstatus = "false";

if(document.frmform.password.value !=
document.frmform.cpassword.value)

document.getElementById("idcpassword").innerHTML =
"Password and Confirm password not matching...";

errstatus = "false";

if(!document.frmform.father_name.value.match(alphaSpaceExp))

document.getElementById("idfather_name").innerHTML =
"Entered name is not valid...";

errstatus = "false";

if(document.frmform.father_name.value == "")

document.getElementById("idfather_name").innerHTML =
"Father name should not be empty...";

errstatus = "false";

if(document.frmform.address.value == "")

Page.No: 53
www.studentprojectguide.com

document.getElementById("idaddress").innerHTML = "Address
should not be empty...";

errstatus = "false";

if(!document.frmform.contact_no.value.match(numericExpression))

document.getElementById("idparent_no").innerHTML = "Contact
number should contain digits..";

errstatus = "false";

if(document.frmform.contact_no.value.length != 10)

document.getElementById("idparent_no").innerHTML = "Contact
number should contain 10 digits..";

errstatus = "false";

if(document.frmform.contact_no.value == "")

document.getElementById("idparent_no").innerHTML = "Contact
number should not be empty...";

errstatus = "false";

if(errstatus == "true")

return true;

Page.No: 54
www.studentprojectguide.com

else

return false;

</script>

Coding For Employee Login Page:


<?php

include("header.php");

if(isset($_SESSION['emp_id']))

echo "<script>window.location='empaccount.php';</script>";

if(isset($_POST['submit']))

$sql ="SELECT * FROM employee WHERE


login_id='$_POST[login_id]' AND password='$_POST[password]' AND
status='Active'";

$qsql=mysqli_query($con,$sql);

echo mysqli_error($con);

if(mysqli_num_rows($qsql)==1)

Page.No: 55
www.studentprojectguide.com

$rs= mysqli_fetch_array($qsql);

$_SESSION['emp_id'] = $rs['emp_id'];

$_SESSION['emp_type'] = $rs['emp_type'];

echo "<script>window.location='empaccount.php';</script>";

else

echo "<script>alert('You have entered invalid login


credentials..');</script>";

?>

</div>

<!-- //banner -->

<!-- page details -->

<div class="breadcrumb-agile">

<ol class="breadcrumb m-0">

<li class="breadcrumb-item">

<a href="index.php">Home</a>

</li>

</ol>

</div>

<!-- //page details -->

Page.No: 56
www.studentprojectguide.com

<!-- contact -->

<section class="contact-wthree py-5" id="contact">

<div class="container py-xl-5 py-lg-3">

<div class="title text-center mb-sm-5 mb-4">

<h3 class="title-w3 text-bl text-center font-weight-


bold">Employee Login Portal</h3>

<div class="arrw">

<i class="fa fa-building-o" aria-


hidden="true"></i>

</div>

</div>

<div class="row pt-xl-4">

<div class="col-lg-8 offset-2">

<div class="contact-form-wthreelayouts">

<form action="" method="post" class="register-wthree">

<div class="form-group">

<label>

Login ID

</label>

<input class="form-control" type="text" name="login_id">

</div>

<div class="form-group">

<label>

Password

Page.No: 57
www.studentprojectguide.com

</label>

<input class="form-control" type="password" name="password">

</div>

<div class="form-group mt-4 mb-0">

<button type="submit" name="submit" class="btn btn-w3layouts


w-100">Click here to Login</button>

</div>

</form>

</div>

</div>

</div>

</div>

</section>

<!-- //contact -->

<?php

include("footer.php");

?>

Coading For Data Connection

<?php

$con=mysqli_connect("localhost","root","","sriramakrishnavidyarthinibhavana"
);

if (mysqli_connect_errno($con))

Page.No: 58
www.studentprojectguide.com

echo "Failed to connect to MySQL: " . mysqli_connect_error();

?>

Code For View,Delete,Update:

<?php

include("header.php");

if(isset($_GET['delid']))

$sql = "DELETE FROM guest WHERE guestid='$_GET[delid]'";

$qsql = mysqli_query($con,$sql);

echo mysqli_error($con);

if(mysqli_affected_rows($con) == 1)

echo "<script>alert('Record deleted successfully..');</script>";

echo "<script>window.location='viewguest.php';</script>";

?>

</div>

<!-- //banner -->

<!-- page details -->

<div class="breadcrumb-agile">

<ol class="breadcrumb m-0">

Page.No: 59
www.studentprojectguide.com

<li class="breadcrumb-item">

<a href="index.php">Home</a>

</li>

</ol>

</div>

<!-- //page details -->

<!-- contact -->

<section class="contact-wthree id="contact">

<div class="container">

<div class="title text-center">

<h3 class="title-w3 text-bl text-center font-weight-


bold">View Guest</h3>

<div class="arrw">

<i class="fa fa-building-o" aria-


hidden="true"></i>

</div>

</div>

<div class="row pt-xl-4">

<div class="col-lg-12">

<div class="contact-form-wthreelayouts">

<table id="datatable" class="table table-striped table-bordered">

<thead>

<tr>

Page.No: 60
www.studentprojectguide.com

<th>Name</th>

<th>Email id</th>

<th>Contact Number</th>

<th>Action</th>

</tr>

</thead>

<tbody>

<?php

$sql ="SELECT * FROM guest";

$qsql = mysqli_query($con,$sql);

while($rs = mysqli_fetch_array($qsql))

echo "<tr>

<td>$rs[name]</td>

<td>$rs[emailid]</td>

<td>$rs[contactno]</td>

<td><a href='guest.php?editid=$rs[0]'>Edit</a> | <a


href='viewguest.php?delid=$rs[0]' onclick='return
confirmdel()'>Delete</a></td>

</tr>";

?>

</tbody>

</table>

Page.No: 61
www.studentprojectguide.com

</div>

</div>

</div>

</div>

</section>

<!-- //contact -->

<?php

include("footer.php");

?>

<script>

$(document).ready( function () {

$('#datatable').DataTable();

} );

</script>

<script>

function confirmdel()

if(confirm("Are you sure?") == true)

return true;

else

Page.No: 62
www.studentprojectguide.com

return false;

</script>

7.Testing
7.1 Introduction
Software testing is a critical element of software quality assurance and
represents the ultimate review of specification, design and coding.
Testing presents an interesting of a system using various test data.
Preparation of the test data plays a vital role in the system testing. After
preparation the test data, the system under study is tested those test data.
Error were found and corrected by using the following testing steps and
corrections are recorded for future references. Thus, series of testing is
performed on the system before it is already for implementation.

Page.No: 63
www.studentprojectguide.com

7.2 Objectives of testing:

The objectives of testing are:


 Testing is a process of executing a program with the intent of
finding errors.
 A successful test case is one that uncovers an as- yet- undiscovered
error.

System Testing:

Software testing is a critical element of software quality assurance and


represents the ultimate review of specification, design and coding. The
testing phase involves the testing of the system using various test data;
Preparation of test data plays a vital role in system testing. After
preparation the test data, the system under study is tested.
Those test data, error were found and correct it by following testing steps
and correction are recorded for feature reference. Thus a series is testing
performed on the system before is ready for implementation.

Testing methods:
System testing is the stage of implementation. This is to check whether
the system after works accurately and efficiently before live operation
commences. Testing is the vital to the success of the system. The
candidate system is subject to a variety of tests: online response, volume,
stress, recovery, security and usability tests. A series of tests are
performed for the proposed system is ready for user acceptance testing.

7.3 The various type of testing on the system is:


 Unit testing
 Integrated testing

Page.No: 64
www.studentprojectguide.com

 Validation testing
 Output testing
 User acceptance testing

Unit testing:
Unit testing focuses on verification effort on the smallest unit of software design
module. Using the unit test plans. Prepared in the design phase of the system as
a guide important control paths are tested to uncover errors within the boundary
of the modules. The interfaces of each of the modules under consideration are
also tested. Boundary conditions were checked.
All independent paths were exercised to ensure that all statements in the
module executed at least once and all error-handling paths were tested. Each
unit was thoroughly tested to check if it might fall in any possible situation.
This testing was carried out during the programming itself. At the end of this
testing phase each unit was found to be working satisfactorily as regarded to the
expected out tom the module.

Integration Testing:
Data can be across an interface one module can have an adverse effect
on another's Sub function when combined may not produce the desired
major function; global data structures can present problems. Integration
testing is a symmetric technique for constructing tests to uncover errors
associated with the interface. All modules are combined in this testing
step. Then the entire program was tested as a whole.

Validation Testing:
At the culmination of integration testing software is completely
assemble. as a package. Interfacing errors have been uncovered and
Page.No: 65
www.studentprojectguide.com

corrected and fin; series of software test-validation testing begins.


Validation testing can be defined in many ways but a Simple definition is
that validation succeeds when software functions in manner that is
reasonably expected by the consumer.
Software validation is achieved through a series of black box tests that
demonstrate conformity with requirement after validation test has been
conducted one of two conditions exists.
 The function or performance Characteristics confirm to
specification that are accepted.
 A validation from specification is uncovered and a deficiency
created.
Deviation or errors discovered at this step in this project is corrected prior
to completion of the project with the help of user by negotiating to
establish a method for resolving deficiencies. Thus the proposed system
under consideration has been tested by using validation testing and found
to be working satisfactorily.

Output testing:
After performing the validation testing the next step is output testing
of the proposed system since a system is useful if it does not produce the
required output in the specific format required by them tests the output
generator displayed on the system under consideration. Here the output is
considered in two ways - one is onscreen and the other is printed format.
The output formation the screen is found to be correct as the format was
designed in the system design phase according to the user needs. As far as
hardcopies are considered it goes in terms with the user requirement
Hence output testing does not result any correction in the system.

Page.No: 66
www.studentprojectguide.com

User acceptance Testing:


User acceptance of the system is a key factor for success of any
system. The system under consideration is tested for user acceptance by
constantly keeping in touch with prospective System and user at the time
of developing and making changes whenever required.
7.4 Test Cases:
Test unit : Hosteller Registration

Serial No. Condition Test Data Expected Remarks


To be Tested Output
1. If hosteller type is Hosteller type Kindly select SUCCESSFULL
not selected hosteller
type
If hosteller name Name Name should SUCCESSFUL

2 contains other than contain only


character types alphabets

3 If email id does not Email id Entered


contains proper email id is SUCCESSFUL
format not valid
4 If password length password Password
is less than 6 must contain
at least 6 SUCCESSFUL
characters.
5 If password and password, Password SUCCESSFUL
confirm password confirm and
does not match. password Confirmed
password are

Page.No: 67
www.studentprojectguide.com

not
matching.
6 If date of birth is not Date of birth Date of birth SUCCESSFUL
selected should not be
empty
7 If father name Father name Father Name SUCCESSFUL
contains other than should
character types contain only
alphabets
8 If mother name Mother name mother SUCCESSFUL
contains other than Name should
character types contain only
alphabets
9 If address contains address SUCCESSFUL
other than character address should
types contain only
alphabets
10 If contact number Contact Contact SUCCESSFUL
number
does not contain 10 number
digits should
contain 10
digits

 Test Unit :Login

Serial No Condition Test Data Expected Remarks


To be Tested Output
1 If any field in the Value of Alert the user SUCCESSFUL

Page.No: 68
www.studentprojectguide.com

form is empty. form fields. to enter all the


fields and then
proceed.
2 If the emailid and emailid, Alert user that SUCCESSFUL
Password does password “ Invalid
not match. emailid and
Password”
And stay in
same page.

 Test Unit :Feedback

Serial No. Condition Test Data Expected Remarks


To be Tested Output
1 If feedback Feedback Feedback SUCCESSFUL
title in the title title should
form is not be empty
empty
2 If feedback Feedback Feedback SUCCESSFUL
message in message message
the form is should not be
empty empty

 Test Unit : Hosteller Admission

Page.No: 69
www.studentprojectguide.com

Serial Condition Test Data Expected Output Remarks


No. To be Tested
1. If start date is Start date kindly select start SUCCESSFUL
not selected date
2. If start date is End date kindly select end SUCCESSFUL
not selected date

3. If food type is Food type kindly select food SUCCESSFUL


not selected type

 Test Unit : Add Employee

Seria Condition Test Data Expected Output Remarks


l No. To be Tested
1. If employee Employee Name should contain only SUCCESSFU
alphabets
name contains Name L
other than
character types

2. If login id field Lodin id Login id should not SUCCESSFU


is empty be empty L
3. If password password Password must SUCCESSFU
length is less contain at least 6 L
than 6 characters
4 If password and Confirm Password and SUCCESSFU
confirm password Confirmed password L

Page.No: 70
www.studentprojectguide.com

password does are not matching.


not match
5 If employee Employee Kindly select SUCCESSFU
type is not type employee type L
selected
6 If gender is not gender Kindly select gender SUCCESSFU
selected L
7 If designation designatio Designation field SUCCESSFU
field is empty n should not be empty L
8 If status is not status Kindly select status SUCCESSFU
selected L

 Test Unit : Events

Seria Condition Test Data Expected Output Remarks


l No. To be Tested
1. If event title Event title Event title field SUCCESSFU
field is empty should not be empty L
2. If event banner Event Event banner should SUCCESSFU
field is empty banner not be empty L
3. If event Event Event description SUCCESSFU
description field description should not be empty L
is empty
4. If event date is Event date Kindly select date SUCCESSFU
not selected L
5. If status is not status Kindly select status SUCCESSFU
selected L

Page.No: 71
www.studentprojectguide.com

 Test Unit : Add Room

Seria Condition Test Data Expected Output Remarks


l No. To be Tested
1. If block is not blocks Kindly select blocks SUCCESSFU
selected L
2. If fees structure Fees Kindly select fees SUCCESSFU
is not selected structure structure L
3. If room No Room No Room No should SUCCESSFU
contains other contain digits L
than digits
4. If No.of beds No.of beds No.of beds feild SUCCESSFU
contains other should contain digits L
than digits

5 If status is not status Kindly select status SUCCESSFU


selected L
 Test Unit : Add Fees Structure

Seria Condition Test Data Expected Remarks


l No. To be Tested Output
1. If block is not blocks Kindly select SUCCESSFU
selected blocks L
2. If hosteller type is Hosteller Kindly select SUCCESSFU
not selected type hosteller type L

3. If room type is not room Kindly select SUCCESSFU


selected room type L
Page.No: 72
www.studentprojectguide.com

4. If cost fields cost cost fields should SUCCESSFU


contains other than contain digits L
digits

5. If status is not status Kindly select SUCCESSFU


selected status L

 Test Unit : Add Blocks

Serial Condition Test Data Expected Remarks


No. To be Tested Output
1 If block name block Block name SUCCESSFUL
contains other than should
character types contain only
alphabets
2 If status is not Kindly select SUCCESSFUL
selected status
 Test Unit : Billing

Serial Condition Test Data Expected Remarks


No. To be Tested Output
1 If card holder Card holder Card holder SUCCESSFUL
name contains name name should
alphabets other contain only
than character alphabets

Page.No: 73
www.studentprojectguide.com

types
2 If payment type is Payment Kindly SUCCESSFUL
not selected Type select
payment
type
3 If card number Card card number SUCCESSFUL
contains less than Number should
16 digits contain
16 digits
4 If CVV number CVV card number SUCCESSFUL
contains less than 3 number should
contain
digits
3 digits

8. Input and Output Screen


Home Page:

Page.No: 74
www.studentprojectguide.com

Hosteller Registration Panel:

Page.No: 75
www.studentprojectguide.com

Employee Login Page:

View Employee page:

Page.No: 76
www.studentprojectguide.com

Adding Employee page:

Attendance Page:

Page.No: 77
www.studentprojectguide.com

Admission page:

Guest Payment Page:

Page.No: 78
www.studentprojectguide.com

9.Limitation
Page.No: 79
www.studentprojectguide.com

 24X7 Hosting service required.


 Internet connection required to access this website portal.
 The MySQL server required to store records.
 User must have basic knowledge of the computer

10.Conclusion
Page.No: 80
www.studentprojectguide.com

• The Hostel Management System reduces the manual work for the users of
the system. It saves time, resources and reduces redundancy of the data.
• It is very efficient when compared to the paper work that was used
before the automation of the system. The hostel management system
reduces the use of the paper.
• The hosteller and hostel information is stored in database. Data stored in
the database can easily be retrieved, and updated or even deleted. Links
are provided in each page so that the user can move from one page to
another quickly.
• Proper error messages are displayed. So the user can easily identify the
problem.

11.Future Scope
Page.No: 81
www.studentprojectguide.com

 We can make android or iPhone compatible application in the future.


 Biometric Fingerprint attendance system can be added in the future.
 Offline payment or software application can be integrated in the
future.
 Currently the system has income report. We can add Warden salary ,
hostel maintenance report, or any other expenditure report can be
added in the future.

12.Bibliography
Page.No: 82
www.studentprojectguide.com

 Book Reference:

Software engineering by Pankaj Jalote


Database System by Elmasri, Navate
My SQL Admin Book
Learning PHP, MySQL, JavaScript and CSS: A Step-by-Step Guide to
Creating Dynamic Websites by Robin Nixon.
 Website:
PHP Tutorial - 
http://www.w3schools.com/php/default.asp
http://www.tutorialspoint.com/php/

MySQL Tutorial - 
http://www.w3schools.com/php/php_mysql_intro.asp
http://www.tutorialspoint.com/mysql/index.htm

JavaScript - 
http://www.w3schools.com/js/default.asp
http://www.tutorialspoint.com/javascript/index.htm

CSS -
http://www.w3schools.com/css/default.asp
http://www.tutorialspoint.com/css/index.htm

HTML -
http://www.w3schools.com/html/default.asp
http://www.tutorialspoint.com/html/index.htm
HTML 5 - http://www.tutorialspoint.com/html5/index.htm

AJAX -
http://www.w3schools.com/ajax/default.asp
http://www.tutorialspoint.com/ajax/index.htm

Question and answer site: 


www.stackoverflow.com

Page.No: 83

You might also like