Mini Project Hostel Management System
Mini Project Hostel Management System
Introduction
The Lord has been faithful in granting the strength, wisdom, knowledge and the
courage needed throughout this period of study. We take this occasion to thank
almighty for blessing us with his grace and taking our effort to a successful
culmination. We are grateful and deeply indebted to our supervisor Dr. Anup
Kumar Paul For guiding us through the right way and give his valuable advice
at the crucial moment. He gives us the freedom to pursue aspects of reversible
fault tolerant computing which we found interesting and compelling. We would like
to thank the other faculty members for their supporting instructions and
encouragements. Finally, we would like to thank our friends for their support and
assistance they have given us during the course of our work.
1.0.1 Aim
“To manage room booking and students information in hostel using this web
based software”.
The aim of the Hostel Management System is to do all the activities of Hostel in a
systemic way. It is a web based software to provides college students
accommodation to the university hostel more efficiently. It is headed by Warden.
Who will be the administrator .This project keeps details of the hostellers and
applied students .The main theme of this project is to minimize human works and
makes the hostel activities more easier. This project providing online application
for hostel, automatically select the students from the waiting list and mess
calculation, complaint registration, notice
1
board etc. Students will get approval notification can view notice board, hostel
fee by login into the online system.
The Hostel Management System is developed for advancing the activities of the
hostel. The main benefit of the software is to remove manual system. Since most
hostels are being run by only one hostel manager. The number of students in a
room, the students who owe to the hostel etc are saved on papers or sometimes
receipts. If these documents should go missing or stolen, one would never be able to
know .The employees might not know the number of students in a room or know
if a room is full or not. This project will be great relief to the employees. This
will help to carry out the activities of Hostel in an efficient way.
1.2.1 Goal
The hostels handle the entire information manually, which is very tedious and
misman- aged.
• To keep all detail in brief like room information and total number of students.
1.3 OBJECTIVES
• To store the data of all current students and also the students who had left
the hostel.
• To make the hostel management system more interactive, speedy and user friendly.
2
1.4 LIMITATIONS OF STUDY
Time and financial constraints were the major factors that hindered the
progress of this research. The study involved a lot of financial obligations such as
the cost of stationary, printing, photocopying and transportation. Moreover,
combining fieldwork and lectures to produce a comprehensive research report
within the time limit was tiresome. Nevertheless, the quality of this study was not
compromised.
3
Chapter 2
Background Knowledge
In this section we are going to analysis the existing system and provide solutions
to errors or build a new system all together.
For the past few years the number of educational institutions are increasing
rapidly. Thereby the number of hostels are also increasing for the accommodation
of the students studying in this institution.[1] And hence there is a lot of strain on
the person who are running the hostel and software’s are not usually used in this
context. This particular project deals with the problems on managing a hostel and
avoids the problems which occur when carried manually Identification of the
drawbacks of the existing system leads to the designing of computerized system
that will be compatible to the existing system with the system which is more user
friendly. [2] We can improve the efficiency of the system ,thus overcome the
following drawbacks of the existing system.[3]
2.2 DISADVANTAGES
• Low security.
• Data redundancy.
4
• Difficulty to handle.
2.3 ADVANTAGES
• High security
• Data consistency
• Easy to handle
The proposed system is having many advantage over the existing system.
Notifications System
Automatic Notifications: The system can send notifications about fee due dates, room
allocation updates, attendance reports, and other important announcements via email/SMS.
5
Chapter 3
Feasibility Study
The technical feasibility in the proposed system deals with the technology used in
the system. It deals with the hardware and software used in the system whether
they are of latest technology or not and if it happens that after a system is
prepared, a new technology arises and the user wants the system based on that
technology. This system use windows platform,[4] apache server, sql for database,
php as the language and html or xml as user interface. Thus HOSTEL
MANAGEMENT SYSTEM is technically feasible.
Economic analysis is the most frequently used method for evaluating the
effectiveness of a new system. More commonly known as cost/benefit analysis.
Php, html, xml and sql database are easily available on internet.
The project has been developed in such a way that it becomes very easy even for
a person with little computer knowledge to operate it. This software is very user
friendly and does not require any technical person to operate .Thus the project is
even operationally feasible.[5]
6
3.4 REQUIREMENT ANALYSIS AND
SPECIFICATION
Functions and features delivered to the end users. The end users of the proposed
system are:
This helps the administrator and user to login to homepage only if password and
user- name matches.
This module is used to store student details i.e. information like profile details,
contact information, educational details etc. Users can search according different
criteria such as name, course, room number etc.
This displays fee records, student dues status and balance amount status. It is also
used to renew students rent every semester.
This is provided to view summary detail regarding hostel fees and bills. Students
can check hostel fees and bill details by entering the unique hostel ID.
In this module, only the administrator can access. Administrator has a unique
account with much special access and permissions over normal users. Module
7
allows add, edit,
8
delete and employee records, building block information, room details, course
details etc.
To implement this database management system any technologies that are used are
open sources. We are discussing about them below:
3.6.1 HTML
Html is a markup language for describing the web documents. In our website we use
HTML5. Every web page you see on the Internet, including this one contains
HTML code that helps format and show text and images in an easy to read
format . Without HTML a browser would not know how to format a page and
would only display plain text with no formatting that contained no
links.www.w3schools.com
9
3.6.2 CSS
We use CSS3 to give our HTML a shape.CSS stands for cascading style sheet.
3.6.4 JQuery
3.6.5 PHP
PHP is probably the most popular scripting language on the web. It is used to
enhance web pages. With PHP, you can do things like create username and
password login pages, check details from a form, create forums, picture galleries,
surveys, and a whole lot more. If you’ve come across a web page that ends in
PHP then the author has written some programming code to liven up the plain, old
HTML. PHP is known as a server-sided language. That’s because the PHP
doesn’t get executed on your computer. But on the computer you requested the
page from. The results are then handed over to you, and displayed in your
browser.
10
3.6.7 BOOTSTRAP
Bootstrap is the most popular HTML, CSS, and JS framework for developing
responsive, mobile first projects on the web. Bootstrap makes front-end web
development faster and easier. It’s made for folks of all skill levels, devices of all
shapes, and projects of all sizes.
Sublime Text is the web development tool that lets you efficiently design, develop
and maintain standards-based websites and applications. Sublime text provides a
powerful combination of visual layout tools, application development features,
and code editing support.
There are several factors considered in selecting MySQL for hospital database
11
manage-ment system such
Cost
The most obvious cost associated with database software is the purchase price.
MySQL is the most popular free relational database management system and
eliminating any related costs for the system software. While some users may
think that free software should be inferior to commercial product, MySQL has
been evaluated in a review in PC Magazine as “one of the top five databases”.
Also, training and support materials that are also freely available on the web as
MySQL is being widely used and grown in popularity.
3.6.10.1 Performance
MySQL database system takes a very less storage in disk space while provides a
well performance on UNIX and LINUX system. Although MySQL may fall
shorts in con- sisting less features when comes to comparison with other
database system, however its own features and capabilities is usually more than
enough to handle system that requires a reliable database. Besides, MySQL has
complementary features in many areas. For example, partitioning MySQL
provides more options for various type of partitioning as it offers range, hash,
key, list and composite partitioning.
The aspects of ease of use include the ability to install the software without
difficulties, allows user to maintain the software with minimal effort and
problems, and also access the software from remote location. Also, supporting
materials and documentations can be acquired easily as a reference tool for end
users. MySQL comprises all the aspects stated and hence it has become a fast,
robust and a reliable open source system.
12
3.6.10.4 Security
13
Chapter 4
SYSTEM DESIGN
4.0.1 ADMINISTRATOR
• He can store the records of the students and edit or delete the students records.
14
4.0.2 DATA FLOW DIAGRAMS (DFD)
Log in/
Registration
form Hostel Verificatio
n
Stude Manageme Admi
nt Access Log
in
nt System Confirmatio
n
n
usernam
e Access
Stude Log Student
nt passwor in
d Register
Detail
s
HMS
14
Usernam Student
Admi e
passwor
Log Registratio
n d in n filling
Eligibl
e
HMS
FIGURE 4.4: Diagram for Admin Module
Create Modify
new Databas
Room e
Usernam Eligibl
Applicatio
Admi e
Log n
e
HMS
n
passwor
d in
Verificatio
Manage Databas
Room e
15
Chapter 5
Implementation is the stage in the project where the theoretical design is turned
into a working system and is giving confidence on the new system for the users
that it will work efficiently and effectively. It involves careful planning,
investigation of the current system and its constraints on implementation, design
of methods to achieve the changeover, an evaluation of change over methods.
Apart from planning major task of preparing the implementation are education
and training of users. The implementation process begins with preparing a plan
for the implementation of the system. According to this plan, the activities are to
be carried out, discussions made regarding the equipment and resources and the
additional equipment has to be acquired to implement the new system. In network
backup system no additional resources are needed. Implementation is the final
and the most important phase. The most critical stage in achieving a successful
new system is giving the users confidence that the new system will work and be
effective. The system can be implemented only after thorough testing is done and
if it is found to be working according to the specification. This method also offers
the greatest security since the old system can take over if the errors are found or
inability to handle certain type of transactions while using the new system.
As the part of system testing we execute the program with the intent of finding
errors and missing operations and also a complete verification to determine
whether the objectives
16
are met and the user requirements are satisfied. The ultimate aim is quality
assurance. Tests are carried out and the results are compared with the expected
document. In the case of erroneous results, debugging is done. Using detailed
testing strategies a test plan is carried out on each module. The various tests
performed are unit testing, integration testing and user acceptance testing.
The software units in the system is are modules and routines that are assembled
and integrated to perform a specific function. As a part of unit testing we
executed the program for individual modules independently. This enables, to
detect errors in coding and logic that are contained within each of the three
module. This testing includes entering data that is filling forms and ascertaining if
the value matches to the type and entered into the database. The various controls
are tested to ensure that each performs its action as required.
Data can be lost across any interface, one module can have an adverse effect on
another, sub functions when combined, may not produce the desired major
functions. Integration testing is a systematic testing to discover errors associated
within the interface. The objective is to take unit tested modules and build a
program structure. All the modules are combined and tested as a whole. Here the
admin module, employee module and student module options are integrated and
tested. This testing provides the assurance that the application is well integrated
functional unit with smooth transition of data.
User acceptance of a system is the key factor for the success of any system. The
sys- tem under consideration is tested for user acceptance by constantly keep the
records of applicants and making changes to the details and password whenever
required.
5.1.5 SUMMARY
This project is aimed at developing a system for keeping records and showing
information about or in a hostel. This system will help the hostel officer to be
able to manage the affairs of the hostel. This system will provide full
information about a student in the
17
hostel. It will show rooms available or not and number of people in a particular
room. This will also provide information on students who have paid in full or are
still owing. This system will also provide a report on the summary detail
regarding fees and bills students are owing. Also included is a user module for
employees or the hostel officer.
5.2 CODE
5.2.1 Index.php
18
else
{
echo " <script > alert(’ Invalid Username / Email or password ’); </ script >";
}
}
?>
<! doctype html >
<html lang =" en" class="no - js" >
<head >
<meta charset=" UTF -8 " >
<meta http - equiv ="X-UA - Compatible " content=" IE= edge " >
<meta name =" viewport" content=" width = device -
width , initial - scale =1 , minimum - scale =1 , maximum -
scale =1 " >
<meta name =" description " content="" >
<meta name =" author" content="" >
<meta name =" theme - color" content="#3 e454c " >
<title > Student Hostel Registration </ title >
<link rel=" stylesheet" href=" css/ font - awesome . min . css" >
<link rel=" stylesheet" href=" css/ bootstrap . min . css" >
<link rel=" stylesheet" href=" css/ data Tables. bootstrap . min . css" >>
<link rel=" stylesheet" href=" css/ bootstrap - social. css" >
<link rel=" stylesheet" href=" css/ bootstrap - select. css" >
<link rel=" stylesheet" href=" css/ fileinput. min . css" >
<link rel=" stylesheet" href=" css/ awesome - bootstrap - checkbox . css" >
<link rel=" stylesheet" href=" css/ style . css" >
<script type =" text/ javascript" src=" js/ jquery -1.11.3 - jquery . min . js" ></
script >
<script type =" text/ javascript" src=" js/ validation . min . js" >
</ script >
<script type =" text/ javascript" src=" http :// code . jquery . com / jquery . min . js" >
</ script > <script type =" text/ javascript" > function valid ()
{
if( document. registration . password . value != document. registration . cpassword .
value )
{
alert(" Password and Re - Type Password Field do not match !!");
19
return true ; }
</ script >
</ head >
<body >
<? php include (’ includes/ header. php ’);? >
<div class="ts - main - content" >
<? php include (’ includes/ sidebar. php ’);? >
<div class=" content - wrapper" >
<div class=" container - fluid " >
<div class=" row " >
<div class=" col -md -12 " >
<h2 class=" page - title " >User Login </ h2 >
<div class=" row " >
<div class=" col -md -6 col -md - offset -3 " >
<div class=" well row pt -2 x pb -3 x bk - light" >
<div class=" col -md -8 col -md - offset -2 " >
<form action ="" class=" mt" method =" post" >
<label for="" class=" text - uppercase text
- sm" >Email </ label >
<input type =" text" placeholder=" Email" name =" email" class=" form - control
mb" >
<label for="" class=" text - uppercase textsm " >Password </ label >
<input type =" password " placeholder=" Password " name =" password " class=" form
- control
<input type =" submit" name =" login " class=" btnbtn - primary btn - block "
value =" login " >
</ form >
</ div >
</ div >
<div class=" text - center text - light" style =" color: black ;" >
<a href=" forgot - password . php " style =" color: black ;" >Forgot password ? </ a>
</ div >
</ div >
</ div >
</ div >
</ div >
</ div >
</ div >
</ div >
</ div >
20
</ div >
</ div >
21
5.2.2 login.php
22
return true ; } </ script >
</ head >
<body >
<? php include (’ includes/ header. php ’);? >
<div class="ts - main - content" >
<? php include (’ includes/ sidebar. php ’);? >
<div class=" content - wrapper" >
<div class=" container - fluid " >
<div class=" row " >
23
<div class=" col -md -12 " >
<h2 class=" page - title " >User Login </ h2 >
<div class=" row " >
<div class=" col -md -6 col -md - offset -3 " >
<div class=" well row pt -2 x pb -3 x bk - light" >
<div class=" col -md -8 col -md - offset -2 " >
<form action ="" class=" mt" method =" post" >
<label for="" class=" text - uppercase text
- sm" >Email </ label >
<input type =" text" placeholder=" Email" name =" email" class=" form - control
mb" >
<label for="" class=" text - uppercase textsm " >Password </ label >
<input type =" password " placeholder=" Password
" name =" password " class=" form - control mb" >
<input type =" submit" name =" login " class=" btnbtn - primary btn -
block " value =" login " >
</ form >
</ div >
</ div >
<div class=" text - center text - light" style =" color: black ;" >
<a href=" forgot - password . php " style =" color: black ;" >Forgot password ? </ a>
</ div >
</ div >
</ div >
</ div >
</ div >
</ div >
</ div >
</ div >
</ div >
<script src=" js/ jquery . min . js" ></ script >
<script src=" js/ bootstrap - select. min . js" ></ script >
<script src=" js/ bootstrap . min . js" ></ script >
<script src=" js/ jquery . data Tables. min . js" ></ script >
<script src=" js/ data Tables. bootstrap . min . js" ></ script >
<script src=" js/ Chart. min . js" ></ script >
<script src=" js/ fileinput. js" ></ script >
<script src=" js/ chartData . js" ></ script >
<script src=" js/ main . js" ></ script >
</ body >
</ html >
24
5.2.3 logout.php
5.2.4 Admin.php
<div
26
class=" stat - panel text - center" > <? php
$result1 =" SELECT count (*) FROM rooms ";
$stmt1 = $mysqli -> prepare ( $result1 );
$stmt1 -> execute ();
$stmt1 -> bind_result( $count1 );
$stmt1 -> fetch (); $stmt1 -> close ();
?>
<div class=" stat - panel - number h1 " ><? php echo $count1 ;? > </ div >
<div class=" stat - panel - title text - uppercase " >Total Rooms </ div >
</ div >
</ div >
<a
href=" manage - rooms. php
class=" block - anchor panel - footer text - center" >See All & nbsp ; <i class="
fa fa - arrow - right" ></i></ a>
</ div >
</ div >
<div class=" col -md -3 " >
<div class=" panel
panel - default" > href=" manage - courses. php "
class=" block - anchor panel - footer text - center" >See All & nbsp ;
<i class=" fa fa - arrow - right"
></i></ a> class=" panel - body
bk - info text - light" >
<div
class=" stat - panel text - center" >
<? php
$result2 =" SELECT count (*) FROM courses ";
$stmt2 = $mysqli -> prepare ( $result2 );
$stmt2 -> execute ();
$stmt2 -> bind_result( $count2 );
$stmt2 -> fetch ();
$stmt2 -> close ();
<div
?>
<div class=" stat - panel - number h1 " ><? php echo $count2 ;? > </ div >
<div class=" stat - panel - title text - uppercase " >Total Courses </ div >
</ div >
</ div >
<a
</ div >
</ div >
</ div > </ div >
</ div >
27
</ div >
</ div >
</ div >
</ div >
</ div >
28
5.2.5 Create-Room.php
29
<div class=" panel - heading "
>Add a Room </ div >
<div class=" panel - body " >
<? php if( isset( $_POST [’ submit ’]))
{ ?>
<p style =" color: red " >
<? php echo htmlentities( $_SESSION [’ msg ’])
; ? ><? php echo htmlentities( $_SESSION [’ msg ’]="");
?>
</p>
<? php
}
?>
<form method =" post" class=" formhorizontal" >
<div class=" hrdashed " ></ div >
<div class=" form - group " >
<label class=" col -sm -
2 control - label" >Select Seater </ label >
<div class=" col -sm - 8 " >
<Select name =" seater" class=" form - control" required >
<option value ="" >Select Seater </ option >
<option value ="1 " >Single Seater </ option >
<option value ="2 " >Two Seater </ option >
<option value ="3 " >Three Seater </ option >
30
fee
31
5.2.6 Registration.php
}
</ script >
</ head >
<body >
<? php include (’ includes/ header. php ’);? >
<div class="ts - main - content" >
<? php include (’ includes/ sidebar. php ’);? >
<div class=" content - wrapper" >
<div class=" container - fluid " >
<div class=" row " >
<div class=" col -md -12 " >
<h2 class=" page - title " > Registration </ h2 >
<div class=" row " >
<div class=" col -md -12 " >
<div class=" panel panel - primary " > <div class=" panelheading " >Fill all
Info </ div >
<div class=" panel - body " > <form method =" post" action ="" class=" form -
horizontal" >
<div class=" form - group " >
<label class=" col -sm -4 control - label" >
<h4 style =" color: green " align =" left" >Room Related info </ h4 ></ label >
</ div >
<div class=" form - group " >
<label class=" col -sm -2 control - label" >Room no. </ label >
<div class=" col -sm -8 " >
<select name =" room " id=" room " class=" form -
control" on Change =" getSeater( this. value );" onBlur=" check
Availability ()" required >
<option value ="" >Select Room </ option >
<? php $query =" SELECT * FROM rooms";
$stmt2 = $mysqli -> prepare ( $query );
$stmt2 -> execute (); $res= $stmt2 -
>get_result (); while ( $row =$res > fetch_object(
)) { ?>
<option value =" <? php echo $row -> room_no ;? >" ><? php echo $row -> room_no ;?
>
</ option > <? php
} ?>
</ select >
33
<span id=" room - availability - status" style =" font - size :12 px;" ></ span >
</ div >
</ div >
<select name =" state " id=" state " class=" form - control" required >
<option value ="" >Select Division </ option >
<? php $query =" SELECT * FROM states";
$stmt2 = $mysqli -> prepare ( $query );
$stmt2 -> execute (); $res= $stmt2 -> get_result ();
while ( $row =$res -> fetch_object ())
{
?>
<option value =" <? php echo $row -> State ;? >" >
<? php echo $row -> State ;? > </ option > <? php } ?>
</ select ></ div >
</ div >
<div class=" form - group " >
<label class=" col -sm -2 control - label" >Pincode : </ label >
<div class=" col -sm -8 " >
<input type =" text" name =" pincode " id=" pincode " class=" form -
control" required =" required " > </ div > </ div >
<div class=" form - group " >
<label class=" col -sm -3 control - label" >
<h4 style =" color: green " align =" left" >Permanent Address </ h4 >
</ label >
</ div >
<div class=" form - group " >
<label class=" col -sm -5 control - label" >
Permanent Address same as Correspondenseaddress : </ label > <div class=" col -
sm -4 " >
<input type =" checkbox " name =" adcheck " value ="1 "/ >
</ div >
</ div >
<div class=" form - group " >
<label class=" col -sm -2 control - label" >Address : </ label >
<div class=" col -sm -8 " >
38
<textarea rows="5 " name =" paddress" id=" paddress" class="
formcontrol" required =" required " ></ textarea > </ div >
</ div >
<div class=" form - group " >
<label class=" col -sm -2 control - label" >City : </ label >
<div class=" col -sm -8 " >
<input type =" text" name =" pcity " id=" pcity " class=" form -
control" required =" required " > </ div > </ div >
<div class=" form - group " >
<label class=" col -sm -2 control - label" >Division </ label >
<div class=" col -sm -8 " >
<select name =" pstate " id=" pstate " class=" form - control" required >
<option value ="" >Select Division </ option >
<? php $query =" SELECT * FROM states";
$stmt2 = $mysqli -> prepare ( $query );
$stmt2 -> execute (); $res= $stmt2 -> get_result ();
while ( $row =$res -> fetch_object ())
{
?>
<option value =" <? php echo $row -> State ;? >" >
<? php echo $row -> State ;? > </ option > <? php } ?>
</ select ></ div >
</ div >
<div class=" form - group " >
<label class=" col -sm -2 control - label" >Pincode : </ label >
<div class=" col -sm -8 " >
<input type =" text" name =" ppincode " id=" ppincode " class=" form
- control" required =" required " > </ div >
</ div >
<div class=" col -sm -6 col -sm - offset -4 " >
<button class=" btnbtn - default" type =" submit" >Cancel </ button >
<input type =" submit" name =" submit" Value ="
Register" class=" btnbtn - primary " > </ div > </ form
>
</ div >
</ div >
39
</ div >
</ div > </ div >
</ div >
</ div >
</ div >
</ div >
</ div >
41
5.3 SCREENSHOTS
42
5.3.3 Dashboard
43
5.3.5 User-booked Info
44
5.3.6 Admin Login in page
Conclusion
To conclude the description about the project : The project, developed using PHP
and MySQL is based on the requirement specification of the user and the analysis
of the existing system, with flexibility for future enhancement. Last few years the
educational institutions are increased rapidly. As a result for the accommodation
of the students of these institutions, the number of hostel also increase. So it is
very hard to do all the hostel management activities manually. There is a lot of
strain on the person who are running the hostel. This hostel management software
is designed for those people who want to manage hostel activities easily.This
particular project deals with the problems on managing a hostel and avoids the
problems which occur when carried manually.
In this app, we already set a platform as the users want. We also take some user
feedback. But it needs more user feedback. As much we get feedback it becomes
easy to make this app more user-friendly. It needs to involve the authority to
solve this kind of issue. We also need authority’s feedback to solve their issues.
46
Bibliography
[4] AR Sujana. Hostel management system for Trincomalee Campus. PhD thesis,
Fac- ulty of Management and Commerce SEUSL, 2013.
[6] Asadullah Khan and Sajid Rashid Ahmad. Desktop gis application for hostel
man- agement of punjab university lahore. Journal of Himalayan Earth
Science, 45(2), 2012.
47