Hotel Management Web Report
Hotel Management Web Report
ON
PROJECT ASSOCIATES
 SHARATH P J                                                     4BD16CS082
 SUHAS R A                                                       4BD16CS100
PROJECT GUIDES
Dr. Vinutha H P M.Tech., Ph. D., M.I.S.T.E.,        Prof. Preethi B B. E., M. Tech.,
Associate Professor,                                Assistant Professor,
Department of CS&E,                                 Department of CS&E,
B.I.E.T., Davangere.                                B.I.E.T., Davangere.
                                          CERTIFICATE
         This is to certify that SHARATH P J and SUHAS R A bearing USN 4BD16CS082
and 4BD16CS100 respectively of Computer Science and Engineering department have
satisfactorily submitted the mini project report entitled “HOSPITAL MANAGEMENT
SYSTEM” for Web Technology Laboratory (15CSL77). The report of the mini project has
been approved as it satisfies the academic requirements in respect of mini project work
prescribed for the year 2019.
Project Guides
Head of Department
Place: (1)
                                                                   (2)
                             Bapuji Educational Association (Regd.)
             Bapuji Institute of Engineering and Technology, Davangere-577004
                       Department of Computer Science and Engineering
VISION
        To be a center of excellence in imparting state-of-the –art technology in Computer
Science and Engineering education enabling the students to become professionally sound and
ethically strong.
MISSION
M1: Adapting best in class teaching and learning methodology to mould the students to become
industry ready.
M2: Creating conducive environment for imparting quality education to facilitate research and
Innovation
M3: Establishing industry institute relationship to bridge the skill gap.
M4: Educating the students to be successful lifelong learners by inculcating ethical values and
social responsibilities.
       We express our sincere thanks to our guides Dr. Vinutha H P and Prof. Preethi B
for giving us constant encouragement, support and valuable guidance throughout the course
of the project without whose stable guidance this project would not have been achieved.
       We would like to extend our gratitude to all our family members and friends
especially for their advice and moral support.
SHARATH P J (4BD16CS082)
                                             SUHAS R A                   (4BD16CS100)
                                   ABSTRACT
BIBLIOGRAPHY
                    LIST OF FIGURES
CHAPTER 1
                                   INTRODUCTION
        Web technology refers to the means by which computers communicate with each
other using markup languages and multimedia packages. It gives us a way to interact with
hosted information, like websites. Web technology involves the use of hypertext markup
language (HTML) and cascading style sheets (CSS). In order to make websites look and
function a certain way, web developers utilize different languages. The three core languages
that make up the World Wide Web are HTML5, CSS, and JavaScript.
        In the IT world, the internet is an essential platform, whether its for developing or for
consumer use. When developing a website, typically three main languages come into play.
These languages are JavaScript, CSS, and HTML. HTML is the backbone of most webpages.
Essentially, it is used to create the structure of how a specific website would look like, from
the headings, to the paragraphs, the body, links, and even images.Markup languages are the
languages in which the web is written. The most common markup language used is HTML,
which uses tags to annotate text so that a computer can then manipulate the text. Most
markup languages are human readable, and use annotations that are distinguishable from the
annotated text. There are many different kinds of markups and languages, but all are
consistent in the way in which they annotate documents.
        HTML is the conventional markup language used to create and edit web pages and
web applications. HTML is used for creating the basic structure of a website. HTML consists
of different elements preceded by an opening tag, <tag>, and a closing tag, </tag>. The
content between the tags, <html> and </html>, is the content of the webpage. The content
between the tags, <head> and </head>, is the title of the webpage. This text is displayed
between the <title> and </title> tags. The content between the tags, <body> and </body>, is
B.I.E.T., Davangere                                                                            1
                                                                        Hotel Management System
the main content of the webpage. The content can include links , paragraphs, headings, and
various other elements.
        CSS is a style sheet language standard set by W3C (World Wide Web Consortium)
used to create and edit the visual presentation of web pages. CSS allows web developers to
isolate a web page's content and visual styles into separate documents and gives better page
layout control. An external CSS sheet is generally linked to HTML and XHTML, it also can
be linked to XML, SVG, and XUL. HTML and JavaScript, with CSS, is a vital part of
technology used by the majority of interfaces for websites. This is also used in interfaces for
mobile devices making the websites more engaging.
CSS can be incorporated with HTML in 3 different ways; Inline, Internal, and External.
    • Inline styles add style to a single element on the page by placing 'style' after the
         element you wish to be styled.
    • Internal styles create a style for a single document because the CSS is stored in the
         head of the HTML document. Internal styles are placed using a <style> tag around
         all style selectors.
         Ex: <style>
         body {background-color: white;}
         /*This is a comment!
         'Body' is the selector,
         'background-color' is the declaration*/
         h2 {color: blue;}
         </style>
    • External style sheets exist in separate documents from HTML documents, allowing
         for better organization of style and structure. An external style sheet can be linked to
         all HTML documents making up a web site, allowing a web developer to style the
         entire site (all pages) using one document.
        JavaScript is a scripting language that is used along with HTML and CSS as the three
core components of the World Wide Web. JavaScript has first-class functions and is used in
most websites. JavaScript does not have any I/O which means that it has to be embedded in
B.I.E.T., Davangere                                                                             2
                                                                         Hotel Management System
the host environment. JavaScript is also used in PDF documents, game development, and
desktop and mobile applications. JavaScript is most commonly used to make DHTML by
adding client-side behavior to HTML pages.
        PHPstands for Hypertext Preprocessor (no, the acronym doesn't follow the name). It is
an open source, server-side, scripting language used for the development of web applications.
By scripting language, we mean a program that is script-based (lines of code) written for the
automation of tasks.
1.2 Hotel
        The hotel proprietors Act, 1956, a hotel is an “Establishment held out by the
proprietor as offering food, drink and if so required, sleeping accommodation, without special
contract to any traveller presenting himself who appears able and willing to pay a reasonable
sum for the services and facilities provided and who is in a fit state to be received”.
        The term ‘Hotel’ was used in England in about 1760. Hotel or inn is defined by
British law as a place where a bonafide travelers can receive food and shelter, provided he is
in a position to pay for and is in a fit condition to be received’.
        A Hotel or inn may also be defined as an establishment whose primary business is
providing lodging facilities for the general public and which furnishes one or more of the
following services
     • Food and Beverage service
     • Room service
     • Uniformed service
     • Laundry service
     • Use of furniture etc.
1.2.2 History
        Hotel keeping can be traced back to many centuries and its evolution through the ages
has been brought about by Britain’s economical and industrial changes and developments
B.I.E.T., Davangere                                                                            3
                                                                         Hotel Management System
        During the seventh and eight centuries, it was the monasteries that supplied hospitality
to strangers and, as no charge was made for the accommodation; all travelers were expected
to contribute according to their means to the abbey funds. As more people began to travel
their group themselves together, not only for the company, but for mutual protection from
highway men and robbers. Consequently, travelers arrived in groups at a monastery and it
was often difficult to accommodate them all. In the early nineteenth century the concept of a
hotel room in the bedroom, and this period is known as “Golden age of hotel of the Great
Britain and the world”. Hotel proprietors were legally referred to as ‘Common Innkeepers’
        The turn of the century saw an era that was called ‘Belle Epoch’ when grand and
luxurious hotel flourished. A few hotels are still operating today. In London and some other
cities attempts have been made to recapture some of the grandeur of the past Vera in the
making of the modern hotels, and bring back the memories the grand hotel and old days.
        Many economists have often described ‘Hotel Business’ as unique and different from
much other business. Hotel is selling both goods and services. It not only provides both
tangible intangible services, but one of its unusual characteristics is also that it is one of the
very few places where production and consumption occur simultaneously; for example,
ordering subsequent preparation, services and consumption of food items.
        Both the products and services are offered on credit transaction. No other business
allows the customer an immediate line of credit, for example, the moment he registers, his
credit purchase starts with the room and a sequence of financial charges throughout the
facilities without immediately paying for them at the ‘point of purchase’. For example,
purchase of food in restaurant, drinks in bar valet services, etc. no other business offers as
varied a range of services and products at the same place as hotel business.
        Each hotel must offer lodging, food and protection to their guest and assume a
liability for guest property, provide a high standard of hygiene, cleanliness and sanitation and
should confirm to the minimum requirements of the state regarding safe hotel construction
such as height of building, municipal-by-laws, fire and safety standard so no.
B.I.E.T., Davangere                                                                             4
                                                                            Hotel Management System
        The present-day modern concept of the hotel is not just a place to provide accommodation,
food and beverage, but like city within a city and offering every possible facilities, accommodation,
service and convenience, not just rooms.
        There are more facilities like- cosmetic things, hairdryer, lounges, radio and TV etc. There is
a professionally qualified, highly trained, experienced, and efficient courteous staff in smart, clean
uniforms and the staff coming in the contact with guests could understand English. There is a 24hrs
service for reception, information and telephone. There is a plentiful supply of linen, blanket, towels
and so on. Each bedroom is provided with good vacuum jug/ thermos flask with ice cold, boiled
drinking water.
B.I.E.T., Davangere                                                                                  5
                                                                       Hotel Management System
CHAPTER 2
                              LITERATURE SURVEY
        Part of the reason why hotels utilize technological systems in their operations is
because it keeps them up to date in terms of where they are placed in the market. It makes
work easier for staff members, allowing them to work more efficiently and taking away time
consuming activities which can be carried out by the technology.          In some hotels, the
utilization of technological systems means that fewer staff members are needed and this saves
considerable costs. For others, especially luxury hotels, this is not the case but it means that
the staff can be free to attend to customers on a more personal basis, thus upholding high
standards. Therefore, it is understandable that 5-star hotels must ensure that they employ the
most advanced technology available. This is because their priority is maintaining their
position and status as a luxury brand, rather than cutting costs, which would be more of a
priority for budget hotels which cater to a lower end market. Therefore, luxury tourist
establishments rely on top quality technological systems. Jones and Lockwood (1989) noted
B.I.E.T., Davangere                                                                           6
                                                                         Hotel Management System
“Companies have also been able to produce higher quality products because technology has
developed that assists them to do so”.
        Pizam claims that revenue management in hotel management is the “business practice
of selling the right inventory to the right customer at the right price at the right time so as to
maximize revenue, profit and market share” (Pizam, 2005, p. 551). With this in mind, hotels
and hotel managers implement revenue management systems which are able to monitor how
many rooms are being reserved and react to this information. If, for example, there is a short
amount of time before the date approaches in which a number of rooms are not sold,
managers can decide to offer discounts to entice people to fill these rooms (Phillips, 2005). A
room which is unsold is more financially damaging to a business than a room which is sold
for a reduced price, due to the perishable nature of the product. The predominant negative
factor of Hotel Management systems is that they are extremely expensive and can therefore
be costly for hotels to maintain. Indeed, Phillips explains that companies with “expensive
and sophisticated revenue management systems are going bankrupt”. This is why five star
hotels are often able to employ them while hotels which are lower down the market are
not.(Phillips, 2005, p. 142).
B.I.E.T., Davangere                                                                             7
                                                                                  Hotel Management System
        It is said from the literature survey that technology is becoming far more advanced
and far more widely used throughout the hotel industry. Nowadays hotels like to use the
technological solutions to make the work easier for their staff members allowing them to
work more efficiently and taking away time consuming activities which can be carried out by
the technology which saves considerable costs and time. Hotels implement revenue
management which are able to monitor how many rooms are being reserved and react to this
information by filling rooms in offer price. For some hotels it might be luxury status and
maintain standards to make use of most advanced technology available. Customers pay a lot
of money and so expect to have a certain amount of facilities and quality additions provided
for them.
        The existing system is a manual one where all the activities are to be manually performed by
the admin/manager. The system heavily relies on them. All the hotel bookings, room maintenance
details are maintained in ledger book. Any complaints which occur in the hotel are noted and kept
tracked manually along with the expenses occurred. Staff Management is done manually along with
their salary, role, shifts and other basic information. To generate a report the manager has to go
through all the details in the ledger book. The user usually has to go the hotel physically, make
payment and confirm his/her booking.
Time Consuming
        It is very time consuming and difficult to write each and every entry and exit of customers
into the hotel in the ledger. Also, it takes a lot of time if all the entries are to be repeated say to keep in
another record for safe keeping. It is also time consuming to check for data quickly. In the current
system processes such as making reports becomes time consuming processes.
Editing of data
        Manually written data cannot be changed or edited once written. If there is a mistake and the
administrator tried to cancel it out and write it again this would make the ledger dirty and
disorganized. If data is entered incorrectly the entire system gets incorrect while editing wrongly
entered data cannot easily solve errors.
B.I.E.T., Davangere                                                                                          8
                                                                              Hotel Management System
Data Insecurity
        As the data is stored in ledger, it is not a secure place. As the storage media here are files and
books or registers, there are chances of getting this storage media lost, torn, or it may go in the hand
of the wrong person which can destroy the database or it can also be destroyed accidentally. If the
Data goes into the hands of the wrong person, he or she may take advantage of the data. So, security is
the major aspect of the Hotel Management System.
        In “Hotel Management System” we have tried to consider all of the above problems
and propose the solution. The system consists of web interface. The front page provides the
basic hotel details and functionality for admin to login. Upon successful login admin can
control all the activities through the dashboard like Room maintenance, Staff maintenance,
Complaint maintenance, Report generation etc. On the other hand, user can book a room in
advance by entering the details and making an advance payment. On successful payment, the
user receives a confirmation mail along with the booking status and other necessary
information.
2.5 Aims/Objective
        The project “Hotel Management System” is aimed to develop to maintain the day-to-
day state of admission/vacation of residents, list of staff, reports etc.
B.I.E.T., Davangere                                                                                     9
                                                                       Hotel Management System
    •   Allow admin to add new employees to the system and maintain Staff details.
    •   Complaint details are maintained and resolved by admin.
    •   Keeping details about the users, their needs and payment details, reports etc.
    •   Providing functionality for the user to book room online making an advance payment
        and receiving a confirmatory mail.
B.I.E.T., Davangere                                                                         10
                                                                        Hotel Management System
CHAPTER 3
          SOFTWARE REQUIREMENT SPECIFICATIONS
B.I.E.T., Davangere                                                                          11
                                                                       Hotel Management System
        Non-functional requirements are requirements that are not directly concerned with the
specific functions delivered by the system. They may relate to emergent system properties
such as reliability, response time and store occupancy. Alternatively, they may define
constraints on the system such as the capabilities of I/O devices and the data representations
used in system interfaces.
    •   Flexibility: The system should be flexible to the user with less complexity and user
        friendliness.
    •   Economic Feasibility: The system should be feasible that the price of the system
        should not be so high such that one cannot easily afford it.
    •   Reliability: The system should be reliable. It should not give false recommendation
        such that one cannot rely on it.
    •   Modifiability: It should be easy to modify with the change in requirements coping up
        for the updates easily.
    •   Portability: It should be possible to port the software system from one machine to
        another without any significant overhead.
    •   Scalability: The system should be scalable to use with many numbers of machines.
B.I.E.T., Davangere                                                                         12
                                                                          Hotel Management System
3.5 Technologies
    1. XAMPP Server
           XAMPP is a free and open source software which empowers technologies,
    processes, and machines to link and work together. It is established by Apache. It stands
    for x-OS, Apache, MySQL, PHP, and Perl and used as a stage for coding and designing
    web pages.
           XAMPP is very easy to install and has the capability to run on several platforms.
    XAMPP has very strict security settings and with a single command it can start and stop
    the server.
    2. MySQL
           It is an open source relational database management system which aims to offer
    multiple user access to several databases. Since MySQL is a relational database so it
    stores data in different tables instead of putting into a large storeroom. Storing /organizing
    data into tables increases the accessibility speed and flexibility.
    4. Programming Languages
           In this project, PHP was chosen as a server-side programming language and
    MySQL was selected as a backend database. HTML, CSS, and JavaScript were used for
    the client-side work.
    5. Composer
           Composer is an application-level package manager for the PHP programming
    language that provides a standard format for managing dependencies of PHP software and
    required libraries. Composer runs from the command line and installs dependencies (e.g.
    libraries) for an application. In this project, we have used Composer to install PHPMailer
    to the application.
B.I.E.T., Davangere                                                                            13
                                                                     Hotel Management System
    6. PHPMailer
           PHPMailer is a code library and used to send emails safely and easily via PHP
    code from a web server. Sending emails directly via PHP code requires a high-level
    familiarity to SMTP standard protocol and related issues and vulnerabilities about Email
    injection for spamming. PHPMailer simplifies the process of sending emails and it is very
    easy to use.
    7. Razorpay
           Razorpay is a payments solution which allows businesses to accept, process and
    disburse payments with its product suite. It gives you access to all payment modes
    including credit card, debit card, net banking, UPI and popular wallets. Razorpay
    provides clean, developer-friendly APIs and hassle-free integration by offering a fast,
    affordable and secure way for merchants, schools, e-commerce and other companies to
    accept payments online.
    8. Mailtrap
           An SMTP (Simple Mail Transfer Protocol) server is an application that’s primary
    purpose is to send, receive, and/or relay outgoing mail between email senders and
    receivers. Mailtrap provides a fake SMTP server for your development team to test, view
    and share emails sent from the pre-production environments and test with real data
    without the risk of spamming real customers.
B.I.E.T., Davangere                                                                        14
                                                                     Hotel Management System
CHAPTER 4
                                 SYSTEM DESIGN
        Once the system requirements have been defined, the next stage is the system design
process which deals with defining the architecture, components, interfaces and data for the
system to satisfy specified requirements.
        System architecture is the conceptual model that defines the structure, behaviour and
more views of a system. Architecture is a formal description and representation of a system,
organized in a way that supports reasoning about the structure of the system which comprises
system components, the externally visible properties of those components, the relationships
between them and provides a plan from which products can be procured and systems
developed.
        The architecture diagram for Hotel Management System is shown below. It consists
of the web interface both admin and user. The admin can log in and access Booking Module,
Staff Management Module, Complaint Module and Report Module. They are in turn
connected to the database. User can directly book a room when he does the payment through
payment gateway followed by confirmatory mail.
B.I.E.T., Davangere                                                                        15
                                                                       Hotel Management System
B.I.E.T., Davangere                                                                         16
                                                                        Hotel Management System
        The above figure shows the sequence diagram of Guest Room Booking system. First
the user visits the website and requests for the room availability. If the rooms are available,
the user selects the available room, Check-In and Check-Out details along with personal
information of the customer. Now the website calculates the amount to be paid by the user
based on type of room and number of days of stay. We have used Razorpay payment gateway
by which user can pay the required amount through various means at his/her convenience.
Upon successful payment, the room is booked and details are stored in the database. Also, the
Mail Server is se up that the confirmation details is sent to the user after successful booking.
        The Use Case Model figure shows the proposed system. It defines the conceptual
view of a database. It works around real-world entities and the associations among them. At
view level, the Use Case model is considered a good option for designing the proposed idea.
B.I.E.T., Davangere                                                                            17
                                                            Hotel Management System
B.I.E.T., Davangere                                                              18
                                                             Hotel Management System
B.I.E.T., Davangere                                                               19
                                                                       Hotel Management System
          Activity                                    Description
Login                       Admin can Login using valid credentials.
Add Room                    Admin can add new rooms to the system.
Update Room                 Admin can update existing rooms in the system.
Delete Room                 Admin can remove existing rooms from the system.
                            Both Admin and User can check room availability status in the
Check Room Availability
                            system.
                            Both Admin and User can Book room after providing all
Book Room
                            necessary information.
                            User has to make online payment to confirm the room booking
Online Payment
                            with the help of payment gateway.
                            User receives confirmation mail to the provided mail address
Confirmation Mail
                            sent by the system’s mail service.
Check In                    Admin can perform Check In operation upon arrival of guests.
                            Admin can perform Check Out operation during guest’s
Check Out
                            departure.
Add Employee                Admin can add new employee to the system.
Update Employee             Admin can update existing employee details in the system.
Delete Employee             Admin can remove existing employee from the system.
Complaints                  Admin can keep track of complaints in the system
Statistics                  Admin can get statistics and report of the system.
Logout                      Admin can logout of the system.
4.4 Flowchart
B.I.E.T., Davangere                                                                         20
                                                                     Hotel Management System
                The above diagram shows the flowchart of Hotel Management System. First
both the user and admin are greeted to the home page. If the person is an admin, he can login
through his credentials where he can perform various activities like room management, staff
management, complaint management, report generation and logout. Whereas if the person is
a normal user, he can book a room by making online payment for which he/she receives
email confirmation.
B.I.E.T., Davangere                                                                       21
                                                                      Hotel Management System
        Relational schema refers to the meta-data that describes the structure of data within a
certain domain. It is the blueprint of a database that outlines the way its structure organizes
data into tables.
B.I.E.T., Davangere                                                                         22
                                                                                   Hotel Management System
• booking
    Column               Type       Null           Default           Extra                Links to
check_out varchar(100) No
total_price     int(10)                No
remaining_price int(10)                No
payment_status tinyint(1)              No
• complaint
        Column                  Type        Null       Default                    Extra
 complaint_type           varchar(100)
                          )            No
 complaint                varchar(200)
                          )            No
 created_at               timestamp
                          )                 No CURRENT_TIMESTAMP
 resolve_status           tinyint(1)        No
 resolve_date             timestamp         Yes CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
B.I.E.T., Davangere                                                                                      23
                                                                                       Hotel Management System
• customer
     Column                   Type        Null Default      Extra                      Links to
 contact_no               bigint(20)
                          )            No
 email                    varchar(100) No
 id_card_type_id int(10)
                 )                        No                                id_card_type.id_card_type_id
                                                                            ON UPDATE RESTRICT
                                                                            ON DELETE RESTRICT
 id_card_no               bigint(20)   No
 address                  varchar(100) No
                          )
                                     Table 4.4: Table Description for customer
Description: This table stores data related to customer.
• emp_history
   Column         Type           Null        Default               Extra                 Links to
 id           int(11)            No                          auto_increment
 emp_id       int(11)            No                                              -> staff.emp_id
                                                                                 ON UPDATE RESTRICT
                                                                                 ON DELETE RESTRICT
 shift_id     int(11)            No                                              -> shift.shift_id
                                                                                 ON UPDATE RESTRICT
                                                                                 ON DELETE RESTRICT
 from_date timestamp No CURRENT_TIMESTAMP
• id_card_type
     Column                   Type       Null Default      Extra           Links to
                      )
                                Table 4.6: Table Description for id_card_type
Description: This table stores data related to type of id card being issued.
B.I.E.T., Davangere                                                                                         24
                                                                                      Hotel Management System
• room
• room_type
 price      int(10)                 No
 max_person int(10)                 No
• shift
 shift_timing varchar(100)
              )_           No
              )
                                 Table 4.9: Table Description for shift
Description: This table stores the data about the shift details of the staff working in the hotel.
B.I.E.T., Davangere                                                                                        25
                                                                                   Hotel Management System
• staff
     Column            Type           Null Default                 Extra                     Links to
 id_card_no         bigint(20)   No
 address            varchar(100) No
 contact_no         bigint(20)        No
 salary             bigint(20)        No
 joining_date       timestamp         No      CURRENT_TIMES
                                              TAMP
 updated_at         timestamp         No      CURRENT_TIMES on update
                                              TAMP          CURRENT_TIMESTAMP
• staff_type
     Column           Type        Null        Default      Extra                Links to
                )
                              Table 4.11: Table Description for staff_type
Description: This table details of type of staff.
 • user
     Column         Type         Null       Default                Extra               Links to
 id           int(11)      No                                  auto_increment
 name         varchar(100) No
 username varchar(15)
          )            No
 email    varchar(100) No
 password     varchar(100)
              )            No
 created_at timestamp
            )                    No        CURRENT_TIMESTAMP
B.I.E.T., Davangere                                                                                     26
                                                                         Hotel Management System
Admin Login
           This module provides an interface for the admin to login. Valid login credentials i.e.
the Email ID and password should be provided at the time of login. As soon as the admin
logs in, he is greeted with admin dashboard where he is able to control and monitor all the
activities of the system.
Room Management
           Room Management module enables admin to add, delete and update new rooms into
the system. He is also able to book room directly. When the guest arrives, he is supposed to
perform the check-in process and check-out process and bill generation while leaving.
Staff Management
           Staff Management module provides authority to the admin to add new employees as
staff members by assigning them various roles, shift timings and salary. He can update or
delete employee details at any point of time.
Complaint Management
           Complaint Management module provides facilities for all the admins across the
system to make a complaint and raise an issue, so that other admin can keep track of these
issues and resolve these issues later on. Also, the budget spent on it could also be kept track
off.
B.I.E.T., Davangere                                                                           27
                                                                      Hotel Management System
Statistics Module
        Statistics module can help the admin to get insights of the system. He can generate
reports in a timely manner. He can keep track of the customers visiting the hotel. It can help
the owner to make useful decisions using these reports.
Payment Module
        Whenever the user tries to book a room using Hotel Management System, Payment
module comes into picture. For this project we are using Razorpay Payment Gateway which
is secure and provides flexibility for the user to pay using various forms. Once the advance
payment is done confirmation mail is sent stating that booking is confirmed.
Mailing System
        Once the user tries to book a room online, he is supposed to make advance online
payment. Upon successful payment the user receives booking successful mail along with
other booking related details. For this purpose, the system uses PHPMailer service to send
mail and Mailtrap SMTP server.
B.I.E.T., Davangere                                                                         28
                                                                        Hotel Management System
CHAPTER 5
                                IMPLEMENTATION
        Implementation literally means to put into effect or carry out. The system
implementation face of the software deals with the translation of the design specifications
into the source code. The ultimate goal of the implementation is to write the source code and
the internal documentation so that it can be verified easily. The code and the documentation
should be written in a manner that uses testing, debugging and modification.
        A post-implementation review is an evaluation of the extent to which the system
accomplishes stated objectives and actual project costs exceed initial estimates. It is usually a
review of major problems that need converting and those that surface during the
implementation stage.
B.I.E.T., Davangere                                                                            29
                                                                             Hotel Management System
    8. Select an installation location. Click the folder-shaped icon to the right of the current
        installation destination, then click a folder on your computer. If you have the UAC
        activated on your computer, avoid installing XAMPP in your hard drive's folder (e.g.,
        OS (C:)). You can select a folder (e.g., Desktop) and then click Make New Folder to
        create a new folder and select it as the installation destination.
    9. Click OK. Doing so confirms your selected folder as your XAMPP installation
        location.
    10. Click Next. You'll find it at the bottom of the page.
    11. Uncheck the "Learn more about Bitnami" box, then click Next. The "Learn more
        about Bitnami" box is in the middle of the page.
    12. Begin installing XAMPP. Click Next at the bottom of the window to do so. XAMPP
        will begin installing its files into the folder that you selected.
    13. Click Finish when prompted. It's at the bottom of the XAMPP window. Doing so will
        close the window and open the XAMPP Control Panel, which is where you’ll access
        your servers.
    14. Select a language. Check the box next to the American flag for English, or check the
        box next to the German flag for German.
    15. Click Save. Doing so opens the main Control Panel page.
    16. Start XAMPP from its installation point. If you need to open the XAMPP Control
        Panel in the future, you can do so by opening the folder in which you installed
        XAMPP, right-clicking the orange-and-white xampp-control icon, clicking Run as
        administrator, and clicking Yes when prompted. When you do this, you'll see red X
        marks to the left of each server type (e.g., "Apache"). Clicking one of these will
        prompt you to click Yes if you want to install the server type's software on your
        computer. Counter intuitively, double-clicking the xampp_start icon doesn't start
        XAMPP.
    17. Resolve issues with Apache refusing to run. On some Windows 10 computers,
        Apache won't run due to a "blocked port". This can happen for a couple of reasons,
        but there's a relatively easy fix:
            •         Click Config to the right of the "Apache" heading.
            •         Click Apache (httpd.conf) in the menu.
            •         Scroll down to the "Listen 80" section (you can press Ctrl + F and type in
                listen 80 to find it faster).
B.I.E.T., Davangere                                                                               30
                                                                            Hotel Management System
    1. We can download Visual Studio Community Edition 2015 from the following the
        https://visualstudio.microsoft.com/downloads/. After entering the Visual Studio
        download page, click “Free download” from Visual Studio Community menu.
    2. Now, you will be redirected to another page with a pop up showing you the VS
        package          name.         Click        on        "Save        File”       on      the
        “vs_community_ENU__266050523.1487883645.exe” will be downloaded. Now, it
        will ask for save location; jus select a location and click "Save".
    3. Double click “vs_community_ENU__266050523.1487883645.exe” and click "Run".
    4. Select your installation location and type of installation. If you want to install all
        features, select default; if you want to install specified features, select custom.
        Finally, click the "Install" button.
    5. You can see the two progress bars for Acquiring and Applying, as shown in below
        screenshot. It will take some time to finish the installation.
    6. The "finished installation screen" will look like below. Just click "Restart Now". Your
        system will be restarted.
    7. After the restart, go to Start button >> All programs >> double click Visual Studio
        2015.
    8. Visual Studio 2015 will open. We can sign in using Hotmail or Outlook mail Id. If
        you want to use it without signing in, just click “Not now, maybe later”.
    9. Now, the development settings are selected “General” by default. If needed, we can
        change that based on our requirement. Finally, chose color themes and click "Start
        Visual Studio".
    10. It will take few minutes to open Visual Studio for the first time.
B.I.E.T., Davangere                                                                              31
                                                                         Hotel Management System
     2. Click the downloaded file to start the installation process. Follow the instructions on-
        screen to install Composer. Choose a PHP executable when prompted to “choose the
        command-line PHP you want to use.” All executables will end in .exe.
     3. Create a new “Composer” folder. You'll want to navigate in file browser to the
        location you will eventually install Composer. Navigate to and double-click the
        XAMPP partition in your file browser, right-click and choose to “Add a New Folder”
        and name it “Composer.”
     4. Search for and open “Command Prompt” in your Start Menu. You can also access the
        search window by pressing ⊞Win + S . A command-line terminal will load.
     5. Navigate to the directory where you want to install PHPMailer. For example, type cd
        C : / xam pp/ com poser . The terminal will confirm it's in that folder.
6. Type "com poser r equ i re phpm ai l er/ phpm ai l er " and press ↵ Enter . Terminal
B.I.E.T., Davangere                                                                           32
                                                                        Hotel Management System
function admin_reserve_room()
{
    select type of room in the drop-down list: Single, Double, Triple or family;
    rooms available for that particular type of room is displayed in the drop-down list. Select
one of the rooms;
    then select the check-in and check-out dates in the calendar. Number of days and total
price is auto-calculated and showed to the user;
    fill the customer details: Name, Contact No., Email Address, ID Card and Address;
    click on submit to book the room;
}
function add_employee()
{
    select the type of the staff from the drop-down menu;
    from the drop-down list select the shift on which the employee works;
    then add the employee details: Name, Contact No., Email Address, ID Card, Address and
salary;
}
function add_complaint()
{
    select the admin name;
    provide the type of complaint;
    then give the description of the complaint;
}
function user_book_room()
{
    select type of room in the drop-down list: Single, Double, Triple or family;
    rooms available for that particular type of room is displayed in the drop-down list. Select
one of the rooms;
    then select the check-in and check-out dates in the calendar. Number of days and total
price is auto-calculated and showed to the user;
    fill the customer details: Name, Contact No., Email Address, ID Card and Address;
B.I.E.T., Davangere                                                                          33
                                                                     Hotel Management System
    click on submit to book the room. The user is prompted to the payment gateway;
    user makes payment of requested amount to the payment gateway through various means;
    upon successful booking, the user receives a confirmation mail to his provided mail
address;
}
B.I.E.T., Davangere                                                                       34
                                                                         Hotel Management System
CHAPTER 6
                                          TESTING
6.1 Overview
          Functional tests provide systematic demonstrations that functions tested are available
as specified by the business and technical requirements, system documentation, and user
manuals.
Functional testing is based on the following items:
    •     Valid messages: Identified classes of valid messages must be accepted.
    •     Invalid messages: Identified classes of invalid messages must be rejected.
    •     Functions: Identified functions must be exercised.
    •     Output: Identified classes of application outputs must be exercised.
    •     Systems/Procedures: Interfacing systems or procedures must be invoked
B.I.E.T., Davangere                                                                            35
                                                                         Hotel Management System
B.I.E.T., Davangere                                                                            36
                                                                     Hotel Management System
        Since the project is deployed in test mode, the user have the liberty to accept the
payment or reject the payment for demonstration/testing purpose
B.I.E.T., Davangere                                                                       37
                                                                      Hotel Management System
CHAPTER 7
                         SNAPSHOTS AND RESULTS
B.I.E.T., Davangere                                                                           38
                                                                    Hotel Management System
B.I.E.T., Davangere                                                                      39
                                                                  Hotel Management System
B.I.E.T., Davangere                                                                    40
                                                                      Hotel Management System
Description: This page enables the admin to login using the credentials.
B.I.E.T., Davangere                                                                        41
                                                                      Hotel Management System
Description: The figure shows the confirmation code received in email to be entered in order
to recover password
Description: The figure shows new password to be typed in order to reset it.
B.I.E.T., Davangere                                                                        42
                                                                    Hotel Management System
Description: The figure shows the room management options such as add room, book room,
Check-In, Check-Out, etc.
Description: The figure shows the form to be filled by the admin to book rooms.
B.I.E.T., Davangere                                                                      43
                                                                    Hotel Management System
Description: The figure shows the staff management functions available to the admin.
Description: The figure shows the form to be filled by the admin to add new employee to the
system.
B.I.E.T., Davangere                                                                       44
                                                                     Hotel Management System
Description: The figure shows the form which admin fills if a complaint is found in the
system.
Description: The figure shows the complaint management operations that admin can perform
to resolve the complaint with necessary expenditure.
B.I.E.T., Davangere                                                                       45
                                                                     Hotel Management System
B.I.E.T., Davangere                                                                       46
                                                                   Hotel Management System
Description: The figure shows the successful room booking status upon successful payment.
Description: The figure shows the snapshot of SMTP server used to send confirmation mail
to the customer through the provided mail address.
B.I.E.T., Davangere                                                                        47
                                                                       Hotel Management System
CHAPTER 8
Conclusion
        “HOTEL MANAGEMENT SYSTEM” is successfully designed and developed to
fulfill the necessary requirements, as identified in the literature survey. The system aims
providing friendly and easy-to-use environment for Hotel Administrator to meet the modern
day requirements. The major functionalities of the project are to perform activites like Room
management, Staff management and Complaint management along with the ability for the
user to book rooms online is easy to use and reduces manual efforts. Various modern
technologies and frameworks are used to successfully complete the project.
Future scope:
        The project has been developed in a very short period of time and all efforts have
been taken so that the project is very efficient in its execution. There still exists some scope
of improvement in our project. The following losts some of the enhancement that can be
added incorporate into the project:
    •   Integrating a Real-time chatbot for checking availability status and answering basic
        questions of the customers.
    •   Using of Messaging service so that, the user is notified each time the user books a
        room, checks-in or checks-out for convenience and security purpose as well.
    •   Developing advanced reports and analytics on the captured data so that the admin
        would get the business insights of the system.
B.I.E.T., Davangere                                                                          48
                                BIBILOGRAPHY
BOOKS:
  [1] Randy Connolly, Ricardo Hoar, "Fundamentals of Web Development”, 1st Edition,
      Pearson Education India. (ISBN:978-9332575271)
  [2] Robert W. Sebesta, “Programming the World Wide Web”, 8th Edition, Pearson
      Education India. (ISBN: 978-8131764589)
  [3] Robin Nixon, “Learning PHP, MySQL &JavaScript with jQuery, CSS and HTML5”, 4th
      Edition, O’Reilly Publications, 2015. (ISBN:978-9352130153)
  [4] Luke Welling, Laura Thomson, “PHP and MySQL Web Development”, 5th Edition, Pearson
      Education, 2016. (ISBN:978-9332582736)
  [5] Nicholas C Zakas, “Professional JavaScript for Web Developers”, 3rd Edition, Wrox/Wiley
      India, 2012. (ISBN:978-8126535088)
WEBSITES:
  •   https://github.com/PHPMailer/PHPMailer
  •   https://razorpay.com/docs/payment-gateway/
  •   https://w3schools.com
  •   https://www.udemy.com/course/php-mysql-login-and-registration-system-with-email-
      confirm-activation/