Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
36 views67 pages

HOTEL

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 67

HOTEL MANAGEMENT SYSTEM

MINOR PROJECT REPORT


Submitted by

K V NAVEEN KUMAR
21BCM025
Under the Guidance of

Dr.C.NAGARANI M.Sc.,MCA.,M.Phil.,Ph.D.,
Assistant Professor

Department of Computer Science

In partial fulfillment of the requirements for the award of the degree of

Bachelor of Science in Computer Science


Of Bharathiar University

PSG COLLEGE OF ARTS & SCIENCE


DEPARTMENT OF COMPUTER SCIENCE
-Affiliated to Bharathiar UniversityAccredited with
‘A++’grade by NAAC (4th Cycle)
College with Potential for Excellence
(Status awarded by the UGC)
STAR College Status Awarded by DBT-MST
An ISO 9001:2015 Certified Institution
Coimbatore -641 014
CERTIFICATE
PSG COLLEGE OF ARTS & SCIENCE
DEPARTMENT OF COMPUTER SCIENCE
An Autonomous College-Affiliated to Bharathiar University
Accredited with ‘A++’ grade by NAAC (4th Cycle)
College with Potential for Excellence
(Status awarded by the UGC)
STAR College Status Awarded by DBT-MST
An ISO 9001:2015 Certified Institution
Coimbatore -641 014

CERTIFICATE

This is to certify that this Project work entitled HOTEL MANAGEMENT SYSTEM is a
bonafide record of work done by K.V.NAVEEN KUMAR, 21BCM025 for the award of
Degree of Bachelor of Science in Computer Science of Bharathiar University.

Signature of the Faculty Guide Signature of the HoD

Submitted for Viva-Voce Examination held on

Internal Examiner External Examiner


DECLARATION
DECLARATION

I, K V NAVEEN KUMAR, 21BCM025, hereby declare that this Project work entitled “HOTEL
MANAGEMENT SYSTEM”, is submitted to PSG College of Arts and Science (Autonomous),
Coimbatore in partial fulfillment for the award of degree is a record of original work done byme
under the supervision and guidance of Dr.C.NAGARANI, M.Sc.,MCA.,M.Phil.,Ph.D., Assistant
Professor, Department of Computer Science, PSG College of Arts and Science, Coimbatore.
This Project work has not been submitted by me for the award of any other Degree/ Diploma/
Associate ship/ Fellowship or any other similar degree to any other university.

PLACE : Coimbatore K V NAVEEN KUMAR


DATE : 20\10\2023 21BCM025
ACKNOWLEDGEMENT
ACKNOWLEDGEMENT

With great gratitude, I would like to acknowledge the help of those who contributed with their
valuable suggestions and timely assistance to complete this work

First and foremost, I would like to extend my heartfelt gratitude and place my sincere thanks to
Thiru L. Gopalakrishnan Managing Trustee, PSG & Sons’ Charities, Coimbatore for providing all
sorts of support and necessary facilities throughout the course.

I express my deep sense of gratitude to Dr.T.Kannaian MSc., MTech., Ph.D Secretary, PSG
College of Arts & Science for infrastructure provided to undertake this work.

I whole heartedly express my gratitude to Dr.D.Brindha MSc., MPhil., Ph.D., MA(Yoga)


Principal, PSG College of Arts & Science for her academic support and constant source of inspiration
throughout the course.

I express my sincere thanks to Dr.A.Anguraj, MSc., MPhil., Ph.D., Vice Principal (Self
Financing Programmes and Mrs.M.Umarani, MBA., MPhil., Faculty-In- Charge(Student Affairs),
for their support.

I owe my deepest gratitude to Dr.S.Selvi, MCA., MPhil., Ph.D., SET NET Associate Professor
& Head, Department of Computer Science for her advice and encouragement to complete the project.
My sincere thanks to Dr.C.NAGARANI M.Sc.,MCA.,M.Phil.,Ph.D., Assistant Professor,
Department of Computer Science for the valuable suggestions, support and guidance as my Internal
Guide, without which my work would not have reached the present form.

I am greatly indebted to my parents and my friends for supporting me to complete this immense
task.
SYNOPSIS
SYNOPSIS

The Project HOTEL MANAGEMENT SYSTEM is a web based application that allows the hotel
manager to handle all hotel activities online. Interactive GUI and the ability to manage various
hotel bookings and rooms make this system very flexible and convenient. The hotel manager is
a very busy person and does not have the time to sit and manage the entire activities manually
on paper. This application gives him the power and flexibility to manage the entire system from
a single online system.

Hotel Management project provides room booking, staff management and other necessary hotel
management features. The system allows the manager to post available rooms in the system.
Customers can view and book room online. Admin has the power of either approving or
disapproving the customer's booking request.

Other hotel services can also be viewed by the customers and can book them too. The system is
hence useful for both customers and managers to portably manage the hotel activities.
TABLE OF CONTENTS
S.NO TABLE OF CONTENTS PAGE NO
1 INTRODUCTION 1
1.1 PROJECT OVERVIEW 1
1.2 OBJECTIVE OF THE PROJECT 2
1.3 MODULES 3
1.3.1 M ODULE DESCRIPT ION 3
2 SYSTEM SPECIFICATION 6
2.1 HARDWARE CONFIGURATION 6
2.2 SOFTWARE CONFIGURATION 6
2.2.1 SOFTWARE DESCRIPTION 8
3 SYSTEM ANALYSIS 10
3.1 EXISTING SYSTEM 11
3.2 PROPOSED SYSTEM 12
4 SYSTEM DESIGN 13
4.1 INPUT DESIGN 14
4.2 OUTPUT DESIGN 16
4.3 DATA FLOW DIAGRAM 17
4.4 ENTITY-RELATIONSHIP DIAGRAM 18
4.5 DATABASE DESING 18
5 TESTING AND IMPLEMENTATION 19
5.1 SYSTEM TESTING 19
5.2 SYSTEM IMPLEMENTATION 21
6 SCOPE FOR FUTURE ENHANCEMENT 22
7 CONCLUSION 23
8 APPENDICES 24
8.1 SCREENSHOTS 24

8.2 SAMPLE CODING 26


9 BIBLIOGRAPHY 31
INTRODUCTION
1. INTRODUCTION

1.1. PROJECT OVERVIEW

Hotel Management System is a system that provides us to reserving rooms, checking whether the rooms
are vacant are or not by using online browsing. This system is very useful to all especially for business
people.
For Business people they don’t have sufficient time for these then they can use these type of Online Hotel
Management Systems. By this project we will reduce the faults in bills of their expenditure and decrease
time of delay to give the bills to the customers. We can also save the bills of the customer. By this project
we can also include all the taxes on the bills according to their expenditures. It has a scope to reduce the
errors in making the bills. Computerized bill can be printed within fraction of seconds. Online ordering of
Booking is possible by using this software. This Project is based on php. If any one wants to book the room
for few days then they can specify the specific number by seeing the types of rooms we have. The bill of
this online booking is based on the type of room they can select is displayed.
HOTEL MANAGEMENT SYSTEM is a hotel reservation site script where site users will be able to search
rooms availability with an online booking reservations system. Site users can also browse hotels, view
room inventory, check availability, and book reservations in real-time. Site users enter check in date and
check out date then search for availability and rates. After choosing the right room in the wanted hotel –
all booking and reservation process is done on the site and an SMS is sent to confirm the booking.

1
1.2. OBJECTIVE OF THE PROJECT

The purpose of hotel booking system is to automate the existing manual system by the help of computerized
equipments and full fledged computer software, fulfilling their requirement, so that their valuable or
information can be stored for a longer period with easy accessing and manipulating of the same . The required
software and hardware are easily available and easy to work with.
This proposes that efficiency of hotel organizations could be improved by integrating service-oriented
operations service-oriented operations with project management principles. Such integration would instill
innovation, proactive attitudes and regulated risk-taking needed to pursue ongoing improvement and proactive
response to change. By managing each change as a project, embedded in smoothly running operations, hotels
would extend their life span by continuously reinventing themselves.

1.3. MODULES

ADMIN
 Login
 Dashboard
 Rooms
 Payment
 Staffs
 Customers
 Reports
 Logout

USER
 Login
 Room Reservation
 Logout
2
1.3.1. MODULE DESCRIPTION

1. Admin:
Admin has a control over the whole project. This contains sub modules such as Admin login module,
Staff module, Rooms, Report module etc. Administrator can handle both the front end and back end
process of the system.

2. Dashboard:
The Dashboard modules is the first page of admin where he can see all the details of the hotel like total
customers, staffs total room booked. There are two graph which in which one is pipe chart which
shows types of room booked and other one is bar graph which shows payments on dates basis

3. Room Book:
In this module the admin can see the booking details of the customer. Once the user books a room the
details are displayed here where the admin can confirm the booking. The admin can edit/delete/add
the details and can check-out in advance.

4. Payments:
Payment module is used to manage the payments made by the customers. The admin can print the
invoice of the customer after checkout and also delete the records.

5. Staffs:
All the workers details of the hotel are displayed in this module. The admin can add/delete/edit the
details of the customer

6. Customers:
This module show all the details of the customers who have user account in the hotel. The admin can
add/edit/delete the details of the customers.

3
7. Reports:
Report module is used to display all the booking details within the given dates or for a particular month.
The admin can download the data.

8. User:
User can view only front end process of the system. In this module user can view the information of
the hotel, room details and reservation.

9. Room Reservation:
In this module, the user can book a room in advance by providing the appropriate details in the form.
Once the user books a room then the confirmation message is sent to the admin

10. Login:
Both the admin and user can login the hotel website by providing the username and password.

11. Logout:
After performing all the operations both the admin and user can logout using this logout module

4
SYSTEM SPECIFICATION

5
2. SYSTEM SPECIFICATION

2.1. HARDWARE CONFIGURATION

 Processor : Intel core2 Dual


 RAM : 6.00 GB
 System Type : 64-bit operating system, x64-based processor

2.2. SOFTWARE CONFIGURATION

 Front-end Language : Php, Css, Javascript


 Back-end Language : MySQL
 Web Server : XAMPP Server

6
2.2.1 SOFTWARE DESCRIPTION

PHP :
PHP is a powerful server-side scripting language for creating dynamic and interactive websites. PHP widely
used; free and efficient alternative to competitors such as
Microsoft’s ASP.PHP is perfectly suited for Web development and can be embedded directly into the HTML
code. The PHP syntax is similar to pearl and C.
PHP is open source that it is readily available and absolutely free. Stability, flexibility and speed are chief
qualities that attract to choose PHP.PHP have multiple extensions and is extremely scalable.
Server-side scripting
This server-side scripting is the most traditional and main target field for PHP. Programmer needs three things
to make this work. Programmer need to run the web server, with a connected PHP installation. Programmer
can access the PHP program output with a web browser, viewing the PHO page through the server. All these
can run on your home machine if programmers are just experimenting with PHP programming.
Command line scripting
Programmer can make a PHP script to run it without any server or browser. Programmers only need the PHP
parser to use it this way. This type of usage is ideal for scripts regularly executed using croon (on*nix or Linux)
or Task Scheduler (on Windows).
These scripts can also be used for simple text processing tasks. Features of PHP
 PHP runs on different platforms (Windows, Linux, UNIX, etc.)
 PHP is compatible with almost all servers used today.
 PHP is free to download from the official PHP resource: www.php.net.

MYSQL :
MYSQL is an open-source relational database management system (RDBMS) is developed, distributed
and supported by MYSQL AB. MYSQL is a popular choice of database for use in web applications MYSQL
can be scaled by deploying it on more powerful hardware, such as a multi-processor server with gigabytes of
memory. MYSQL is easy to use, yet extremely powerful, secure, and scalable. And because of its small size
and speed, it is the ideal database solution for Web sites.

MYSQL is a database management system


A database is a structured collection of data. It may be anything from a simple shopping list to a picture
gallery or the vast amount of information in a corporation network. To add, access and process data stored in

7
a computer database we need a database management system.
MYSQL server. Since computers are very good at handling large amount of data, database management system
plays a central role in computing.
MYSQL is a relational database management system
A relational database stores separate data in separate tables rather than putting all the data in one big
storeroom. This adds speed and flexibility. The SQL part of “MYSQL” stands for “Structured Query
Language”. SQL is the most common standardize language used to access database and is defined by the
ANSI/ISO SQL standard. The SQL standard has been evolving since 1986 and several versions exist.
MYSQL software is open source
Open source means that it is possible for anyone to use modify the software. Anybody can download
the MYSQL software uses the GPL (GNU General Public License), to define what we may and may not use
do with the software.
MYSQL Server works in Client/ Server or embedded systems
The MYSQL database software is a client/server system that consists of a multithreaded SQL server
that supports different backend, several different client programs and libraries, administrative tools and a wide
range of Application Programming Interface(APIs). A large amount of contributed MYSQL software is
available:
Modern day websites seem to be relying more and more on compel the Structured Query Language is
a very popular database language, and its standardization makes it easy to store, update and access data. One
of the most powerful SQL servers out there is called
MYSQL and surprisingly enough, it’s free.
Some of the features of MYSQL include: Handles large databases, in the area of 50,000,000+records.
No memory leaks. Tested with a commercial memory leakage detector (purify). A privilege and password
system which is very flexible and secure, and which allows host-based verification. Passwords are secure since
all password traffic when connecting the server is encrypted.

Features of MYSQL
Client/server Architecture: MYSQL is a client/server system. There is a database server (MYSQL)
and arbitrarily many clients (application programs), which communicate with the server. The clients can run
on the same computer as the server or on another computer.
SQL Compatibility: As before said SQL is a standardized language for querying and updating data
and for the administration of a database. Through the configuration setting solmode we can make the MYSQL
server behave for the most part compatibly with various database systems.
8
Stored procedures: Stored procedures (SPs for short) are generally used to simplify steps such as
inserting or deleting a data record.
Triggers: Triggers are SQL commands that are automatically executed by the server in certain
database operations INSERT, UPDATE, and DELETE, MYSQL has supported triggers.
Replication: Replication allows the contents of a database to be copied (replicated) onto a number of
computers to increase protection against system and to improve the speed of database queries.
Platform independence: MYSQL can be executed under a number of operating systems. The most
important are Apple Macintosh OS X, Linux, Microsoft Windows, and the Unix.
Speed: MYSQL is considered a very fast database program.

9
SYSTEM ANALYSIS

10
3. SYSTEM ANALYSIS

3.1. EXISTING SYSTEM

Hotel Management involves maintaining various operations of the hotel like Booking or reservations of
the rooms, Cancellation of the rooms, Cash billing, Room service, Restaurant service, Total billing, Travels
arrangement etc. The existing system is a manual one and there is lot of issues like erroneous data, slow
process, lack of security etc. Finding out the final payment amount completely relies on the hotel manager
and if he is absent, it takes a long time to find out the
details during check out and is prone to errors.
Drawbacks of the Existing System
 Manual entry consumes more time.
 It is difficult to maintain bulk of record in manual.
 Restrictions in the users.
 Not easy to prepare the daily reports.
 Lack of accuracy and error prone.
 Overall efficiency is less.
 Lot of paperwork.
 Non-secure.
 No perfect maintenance of report.
 No method to trace details
 Human errors
 The manual system is too slow

11
3.2. PROPOSED SYSTEM

The Automated system with distributed architecture can support issues like.
 The system maintains the different location that are available and registered in a central DB, which leads
easy accessibility and consistency.
 Each Accommodation available units and all the unit facilities are also available at the click of a mouse.
 The registration of new guest is online house new guest can make them they convenient for registration
process on the basic of 24x7x326days.
 The Units can be booked by the Registered guest irrespective of the Geographical barriers.
 The Guest are provided with up to minute information related to the unit availability and their status. From
their convenient place.
 The decision process in more faster and more consistent.
 The guest have information at their demand related to any unit status of their own unit booking status.

12
SYSTEM DESIGN
13
4. SYSTEM DESIGN

4.1. INPUT DESIGN

Input design is the process of converting the user-oriented. Input to a computer based format. The goal of the
input design is to make the data entry easier, logical and free error. Errors in the input data are controlled by
the input design. The quality of the input determines the quality of the system output.
The entire data entry screen is interactive in nature, so that the user can directly enter into data according to
the prompted messages. The users are also can directly enter into data according to the prompted messages.
The users are also provided with option of selecting an appropriate input from a list of values. This will reduce
the number of error, which are otherwise likely to arise if they were to be entered by the user itself.

14
4.2. OUTPUT DESIGN

Output design is very important concept in the computerized system, without reliable output the user may feel
the entire system is unnecessary and avoids using it. The proper output design is important in any system and
facilitates effective decision-making. The output design of this system includes various reports.
Computer output is the most important and direct source of information the user.
Efficient, intelligible output design should improve the system’s relationships with the user and help in
decision making. A major form of output is the hardcopy from the printer.

15
4.3. DATAFLOW DIAGRAM

LEVEL 0

16
Level 1

17
4.4. ENTITY-RELATIONSHIP DIAGRAM

18
4.5. DATABASE DESIGN

1.Roombook Table

NAME DATA TYPE


id Int
name Varchar(20)
email Varchar(20)
country Varchar(20)
phoneno Int
roomid Int
cin Date
cout Date

2.Staff Table

NAME DATA TYPE


id Int
name Varchar(20)
work Varchar(20)

3.Room Table

NAME DATA TYPE


roomid Int
type Varchar(20)
bedding Varchar(20)

4. Admin_Login Table

NAME DATA TYPE


id Int
email Varchar(20)
password Varchar(20)

19
5.Room Table

NAME DATA TYPE


roomid Int
type Varchar(20)
bedding Varchar(20)

6.Roombook Table

NAME DATA TYPE


id Int
name Varchar(20)
email Varchar(20)
country Varchar(20)
phoneno Int
roomid Int
cin Date
cout Date

7.Payment Table

NAME DATA TYPE


id Int
name Varchar(20)
status Varchar(20)
roomid Int
roomtotal Int
bedtotal Int
total Int

20
8. User_Login Table

NAME DATA TYPE


userid Int
username Varchar(20)
email Varchar(20)
password Varchar(20)

21
SYSTEM TESTING AND IMPLEMENTATION
22
5. SYSTEM TESTING AND IMPLEMENTATION

5.1. SYSTEM TESTING

TESTING

Testing is a series of different tests that whose primary purpose is to fully exercise the computer based
system. Although each test has a different purpose, all work should verify that all system element have been
properly integrated and performed allocated function. Testing is the process of checking whether the
developed system works according to the actual requirement and objectives of the system.

The philosophy behind testing is to find the errors. A good test is one that has a high probability of finding
an undiscovered error. A successful test is one that uncovers the undiscovered error. Test cases are devised
with this purpose in mind. A test case is a set of data that the system will process as an input. However the
data are created with the intent of determining whether the system will process them correctly without any
errors to produce the required output. Types of Testing

 Unit testing

 Integration testing

 Validation testing

 Output testing

 User acceptance testing

 White box testing

• Black box testing

Unit Testing

All modules were tested and individually as soon as they were completed and were checked for their correct
functionality.

Integration Testing

The entire project was split into small program; each of these single programs gives a frame as an output.
These programs were tested individually; at last all these programs where combined together by creating
another program where all these constructors were used. It give a lot of problem by not functioning is an
integrated manner.

The user interface testing is important since the user has to declare that the arrangements made in frames are
23
convenient and it is satisfied. When the frames where given for the test, the end user gave suggestion. Based
on their suggestions the frames where modified and put into practice.

Validation Testing

At the culmination of the black box testing software is completely assembled as a package. Interfacing
errors have been uncovered and corrected and a final series of test i.e., Validation succeeds when the software
function in a manner that can be reasonably accepted by the customer.

Output Testing

After performing the validation testing the next step is output testing of the proposed system. Since the
system cannot be useful if it does not produce the required output. Asking the user about the format in which
the system is required tests the output displayed or generated by the system under consideration. Here the
output format is considered in two ways. One is on screen and another one is printed format. The output
format on the screen is found to be corrected as the format was designed in the system phase according to the
user needs. And for the hardcopy the output comes according to the specifications requested by the user.

White box testing

White box testing (also known as Clear Box Testing, Open Box Testing, Glass Box Testing, Transparent
Box Testing, Code-Based Testing or Structural Testing) is a software testing method in which the internal
structure/design/implementation of the item being tested is known to the tester. The tester chooses inputs to
exercise paths through the code and determines the appropriate outputs.

Programming know-how and the implementation knowledge is essential. White box testing is testing beyond
the user interface and into the nitty-gritty of a system.

This method is named so because the software program, in the eyes of the tester, is like a white/transparent
box; inside which one clearly sees. Definition by ISTQB

 White-box testing: Testing based on an analysis of the internal structure of the component or system.

 White-box test design technique: Procedure to derive and/or select test cases based on an analysis of
the internal structure of a component or system.

Black box testing

Black box testing, also known as Behavioral Testing, is a software testing method in which the internal
structure/design/implementation of the item being tested is not known to the tester. These tests can be
functional or non-functional, though usually functional.

This method is named so because the software program, in the eyes of the tester, is like a black box; inside
which one cannot see. This method attempts to find errors in the following categories:
24
 Incorrect or missing functions

 Interface errors

 Errors in data structures or external database access

 Behavior or performance errors

 Initialization and termination errors Definition by ISTQB

 Black box testing: Testing, either functional or non-functional, without reference to the internal
structure of the component or system.

 Black box test design technique: Procedure to derive and/or select test cases based on an analysis of
the specification, either functional or non-functional, of a component or system without reference to
its internal structure.

Acceptance testing

This testing is done to verify the readiness of the system for the implementation. Acceptance testing begins
when the system is complete. Its purpose is to provide the end user with the confidence that the system is
ready for use. It involves planning and execution of functional tests, performance tests and stress tests in order
to demonstrate that the implemented system satisfies its requirements. Tools to special importance during
acceptance testing include:

Test coverage Analyzer

Records the control paths followed for each test case.

Timing Analyzer

Also called a profiler, reports the time spent in various regions of the code are areas to
concentrate on to improve system performance.

25
5.2. SYSTEM IMPLEMENTATION

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 change over, 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 are met and the user requirements are
satisfied. The ultimate aim is quality assurance.

26
SCOPE FOR FUTURE ENHANCEMENT

27
6. SCOPE FOR FUTURE ENHANCEMENT

Mobile Integration: Developing mobile apps for guests to book rooms, order services, and receive
notifications can enhance convenience. Blockchain Technology: Enhancing the security of guest
information and transactions through blockchain. Sustainability Features: Incorporating sustainability
initiatives like energy-saving systems and waste reduction in the hotel's operations. Multi-language
Support: Expanding language support to accommodate international guests. Enhanced Analytics: Deeper
data analytics for understanding guest preferences, occupancy trends, and pricing strategies. Payment
Innovations: Integrating with various payment methods, including crypto currencies. Feedback and
Review Management: Developing mechanisms to collect and respond to guest feedback in real-time.

28
CONCLUSION
29
7. CONCLUSION

In conclusion, the development and implementation of the hotel management system have been a
significant milestone in enhancing the efficiency and customer service within our hotel. This project has
successfully addressed several critical aspects of hotel management, such as reservation handling, check-
in/check-out procedures, room allocation, billing, housekeeping, inventory management, and employee
scheduling.
Throughout the course of this project, we encountered various challenges, such as integrating legacy
systems, ensuring data security, and training staff to use the new system effectively. However, the benefits
and positive outcomes outweighed these challenges.
The benefits of the hotel management system include:
 Improved Customer Experience: The system provides a seamless and convenient experience for guests,
from reservation to check-out, leading to increased guest satisfaction.
 Enhanced Operational Efficiency: Automation of various tasks, such as billing and inventory
management, has reduced errors, saved time, and improved resource utilization.
 Data-Driven Decision-Making: The system offers powerful reporting and analytics, enabling the
management to make informed decisions and optimize hotel performance.
 Staff Productivity: Employee management and scheduling features have improved staff productivity
and job satisfaction.
 Security: Stringent security measures have been implemented to protect guest data and ensure privacy.

30
APPENDICES
31
8. APPENDICES

8.1. SCREENSHOTS

32
33
34
35
36
37
8.2. SAMPLE CODING

Index.php
<?php

include 'config.php';
session_start();

?>
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./css/login.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-
EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
crossorigin="anonymous">

38
<!-- sweet alert -->
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<!-- aos animation -->
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
<!-- loading bar -->
<script src="https://cdn.jsdelivr.net/npm/pace-js@latest/pace.min.js"></script>
<link rel="stylesheet" href="./css/flash.css">
<title>PSGCAS HOTEL</title>
</head>

<body>
<!-- carousel -->
<section id="carouselExampleControls" class="carousel slide carousel_section" data-bs-
ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img class="carousel-image" src="./image/hotel1.jpg">
</div>
<div class="carousel-item">
<img class="carousel-image" src="./image/hotel2.jpg">
</div>
<div class="carousel-item">
<img class="carousel-image" src="./image/hotel3.jpg">
</div>
<div class="carousel-item">
<img class="carousel-image" src="./image/hotel4.jpg">
</div>
</div>
</section>

<!-- main section -->


<section id="auth_section">

<div class="logo">
<img class="bluebirdlogo" src="./image/hotellogo.png" alt="logo">
<p>PSGCAS</p>
</div>

<div class="auth_container">
<!--============ login =============-->

39
<div id="Log_in">
<h2>Log In</h2>
<div class="role_btn">
<div class="btns active">User</div>
<div class="btns">Admin</div>
</div>

<!-- // ==userlogin== -->


<?php
if (isset($_POST['user_login_submit'])) {
$Email = $_POST['Email'];
$Password = $_POST['Password'];

$sql = "SELECT * FROM signup WHERE Email = '$Email' AND Password =


BINARY'$Password'";
$result = mysqli_query($conn, $sql);

if ($result->num_rows > 0) {
$_SESSION['usermail']=$Email;
$Email = "";
$Password = "";
header("Location: home.php");
} else {
echo "<script>swal({
title: 'Incorrect details',
icon: 'error',
});
</script>";
}
}
?>
<form class="user_login authsection active" id="userlogin" action="" method="POST">
<div class="form-floating">
<input type="text" class="form-control" name="Username" placeholder=" ">
<label for="Username">Username</label>
</div>
<div class="form-floating">
<input typuser_logine="email" class="form-control" name="Email" placeholder=" ">
<label for="Email">Email</label>
</div>
<div class="form-floating">
<input type="password" class="form-control" name="Password" placeholder=" ">

40
<label for="Password">Password</label>
</div>
<button type="submit" name="user_login_submit" class="auth_btn">Log in</button>

<div class="footer_line">
<h6>Don't have an account? <span class="page_move_btn"
onclick="signuppage()">sign up</span></h6>
</div>
</form>

<!-- == Emp Login == -->


<?php
if (isset($_POST['Emp_login_submit'])) {
$Email = $_POST['Emp_Email'];
$Password = $_POST['Emp_Password'];

$sql = "SELECT * FROM emp_login WHERE Emp_Email = '$Email' AND


Emp_Password = BINARY'$Password'";
$result = mysqli_query($conn, $sql);

if ($result->num_rows > 0) {
$_SESSION['usermail']=$Email;
$Email = "";
$Password = "";
header("Location: admin/admin.php");
} else {
echo "<script>swal({
title: 'Incorrect details',
icon: 'error',
});
</script>";
}
}
?>
<form class="employee_login authsection" id="employeelogin" action="" method="POST">
<div class="form-floating">
<input type="email" class="form-control" name="Emp_Email" placeholder=" ">
<label for="floatingInput">Email</label>
</div>
<div class="form-floating">
<input type="password" class="form-control" name="Emp_Password" placeholder=" ">
<label for="floatingPassword">Password</label>
</div>
41
<button type="submit" name="Emp_login_submit" class="auth_btn">Log in</button>
</form>

</div>

<!--============ signup =============-->


<?php
if (isset($_POST['user_signup_submit'])) {
$Username = $_POST['Username'];
$Email = $_POST['Email'];
$Password = $_POST['Password'];
$CPassword = $_POST['CPassword'];

if($Username == "" || $Email == "" || $Password == ""){


echo "<script>swal({
title: 'Fill the proper details',
icon: 'error',
});
</script>";
}
else{
if ($Password == $CPassword) {
$sql = "SELECT * FROM signup WHERE Email = '$Email'";
$result = mysqli_query($conn, $sql);

if ($result->num_rows > 0) {
echo "<script>swal({
title: 'Email already exits',
icon: 'error',
});
</script>";
} else {
$sql = "INSERT INTO signup (Username,Email,Password) VALUES ('$Username',
'$Email', '$Password')";
$result = mysqli_query($conn, $sql);

if ($result) {
$_SESSION['usermail']=$Email;
$Username = "";
$Email = "";
$Password = "";
$CPassword = "";

42
header("Location: home.php");
} else {
echo "<script>swal({
title: 'Something went wrong',
icon: 'error',
});
</script>";
}
}
} else {
echo "<script>swal({
title: 'Password does not matched',
icon: 'error',
});
</script>";
}
}

}
?>
<div id="sign_up">
<h2>Sign Up</h2>

<form class="user_signup" id="usersignup" action="" method="POST">


<div class="form-floating">
<input type="text" class="form-control" name="Username" placeholder=" ">
<label for="Username">Username</label>
</div>
<div class="form-floating">
<input type="email" class="form-control" name="Email" placeholder=" ">
<label for="Email">Email</label>
</div>
<div class="form-floating">
<input type="password" class="form-control" name="Password" placeholder=" ">
<label for="Password">Password</label>
</div>
<div class="form-floating">
<input type="password" class="form-control" name="CPassword" placeholder=" ">
<label for="CPassword">Confirm Password</label>
</div>

<button type="submit" name="user_signup_submit" class="auth_btn">Sign up</button>

43
<div class="footer_line">
<h6>Already have an account? <span class="page_move_btn"
onclick="loginpage()">Log in</span></h6>
</div>
</form>
</div>
</section>
</body>

<script src="./javascript/index.js"></script>

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-
MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>

<!-- aos animation-->


<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init();
</script>
</html>

Home.php
<?php

include 'config.php';
session_start();

// page redirect
$usermail="";
$usermail=$_SESSION['usermail'];
if($usermail == true){

}else{
header("location: index.php");
}

?>

44
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./css/home.css">
<title>PSGCAS HOTEL</title>
<!-- boot -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-
EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-
MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>
<!-- fontowesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-
awesome/6.2.0/css/all.min.css" integrity="sha512-
xh6O/CkQoPOWDdYTDqeRdPCVd1SpvCA9XXcUnZS2FmJNp1coAFzvtCN9BmamE+4aHK8yyUH
USCcJHgXloTyT2A==" crossorigin="anonymous" referrerpolicy="no-referrer"/>
<!-- sweet alert -->
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<link rel="stylesheet" href="./admin/css/roombook.css">
<style>
#guestdetailpanel{
display: none;
}
#guestdetailpanel .middle{
height: 450px;
}
</style>
</head>

<body>
<nav>
<div class="logo">
<img class="bluebirdlogo" src="./image/hotellogo.png" alt="logo">
<p>PSGCAS</p>
</div>
<ul>
<li><a href="#firstsection">Home</a></li>
<li><a href="#secondsection">Rooms</a></li>
45
<li><a href="#thirdsection">Facilites</a></li>
<li><a href="#contactus">contact us</a></li>
<a href="./logout.php"><button class="btn btn-danger">Logout</button></a>
</ul>
</nav>

<section id="firstsection" class="carousel slide carousel_section" data-bs-ride="carousel">


<div class="carousel-inner">
<div class="carousel-item active">
<img class="carousel-image" src="./image/hotel1.jpg">
</div>
<div class="carousel-item">
<img class="carousel-image" src="./image/hotel2.jpg">
</div>
<div class="carousel-item">
<img class="carousel-image" src="./image/hotel3.jpg">
</div>
<div class="carousel-item">
<img class="carousel-image" src="./image/hotel4.jpg">
</div>

<div class="welcomeline">
<h1 class="welcometag">Welcome to heaven on earth</h1>
</div>

<!-- bookbox -->


<div id="guestdetailpanel">
<form action="" method="POST" class="guestdetailpanelform">
<div class="head">
<h3>RESERVATION</h3>
<i class="fa-solid fa-circle-xmark" onclick="closebox()"></i>
</div>
<div class="middle">
<div class="guestinfo">
<h4>Guest information</h4>
<input type="text" name="Name" placeholder="Enter Full name">
<input type="email" name="Email" placeholder="Enter Email">

<?php
$countries = array("Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra",
"Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba",
"Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus",
"Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegowina",
46
"Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam",
"Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman
Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling)
Islands", "Colombia", "Comoros", "Congo", "Congo, the Democratic Republic of the", "Cook Islands",
"Costa Rica", "Cote d'Ivoire", "Croatia (Hrvatska)", "Cuba", "Cyprus", "Czech Republic", "Denmark",
"Djibouti", "Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador",
"Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Islands (Malvinas)", "Faroe Islands",
"Fiji", "Finland", "France", "France Metropolitan", "French Guiana", "French Polynesia", "French
Southern Territories", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece",
"Greenland", "Grenada", "Guadeloupe", "Guam", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana",
"Haiti", "Heard and Mc Donald Islands", "Holy See (Vatican City State)", "Honduras", "Hong Kong",
"Hungary", "Iceland", "India", "Indonesia", "Iran (Islamic Republic of)", "Iraq", "Ireland", "Israel",
"Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, Democratic People's
Republic of", "Korea, Republic of", "Kuwait", "Kyrgyzstan", "Lao, People's Democratic Republic",
"Latvia", "Lebanon", "Lesotho", "Liberia", "Libyan Arab Jamahiriya", "Liechtenstein", "Lithuania",
"Luxembourg", "Macau", "Macedonia, The Former Yugoslav Republic of", "Madagascar", "Malawi",
"Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Martinique", "Mauritania", "Mauritius",
"Mayotte", "Mexico", "Micronesia, Federated States of", "Moldova, Republic of", "Monaco",
"Mongolia", "Montserrat", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal",
"Netherlands", "Netherlands Antilles", "New Caledonia", "New Zealand", "Nicaragua", "Niger",
"Nigeria", "Niue", "Norfolk Island", "Northern Mariana Islands", "Norway", "Oman", "Pakistan",
"Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Pitcairn", "Poland",
"Portugal", "Puerto Rico", "Qatar", "Reunion", "Romania", "Russian Federation", "Rwanda", "Saint
Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao
Tome and Principe", "Saudi Arabia", "Senegal", "Seychelles", "Sierra Leone", "Singapore", "Slovakia
(Slovak Republic)", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Georgia and the
South Sandwich Islands", "Spain", "Sri Lanka", "St. Helena", "St. Pierre and Miquelon", "Sudan",
"Suriname", "Svalbard and Jan Mayen Islands", "Swaziland", "Sweden", "Switzerland", "Syrian Arab
Republic", "Taiwan, Province of China", "Tajikistan", "Tanzania, United Republic of", "Thailand",
"Togo", "Tokelau", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Turks and
Caicos Islands", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United
States", "United States Minor Outlying Islands", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela",
"Vietnam", "Virgin Islands (British)", "Virgin Islands (U.S.)", "Wallis and Futuna Islands", "Western
Sahara", "Yemen", "Yugoslavia", "Zambia", "Zimbabwe");
?>

<select name="Country" class="selectinput">


<option value selected >Select your country</option>
<?php
foreach($countries as $key => $value):
echo '<option
value="'.$value.'">'.$value.'</option>';
//close your tags!!
endforeach;
?>
</select>
<input type="text" name="Phone" placeholder="Enter Phoneno">
</div>

47
<div class="line"></div>

<div class="reservationinfo">
<h4>Reservation information</h4>
<select name="RoomType" class="selectinput">
<option value selected >Type Of Room</option>
<option value="Superior Room">SUPERIOR ROOM</option>
<option value="Deluxe Room">DELUXE ROOM</option>
<option value="Guest House">GUEST
HOUSE</option>
<option value="Single Room">SINGLE
ROOM</option>
</select>
<select name="Bed" class="selectinput">
<option value selected >Bedding Type</option>
<option value="Single">Single</option>
<option value="Double">Double</option>
<option value="Triple">Triple</option>
<option value="Quad">Quad</option>
<option value="None">None</option>
</select>
<select name="NoofRoom" class="selectinput">
<option value selected >No of Room</option>
<option value="1">1</option>
<!-- <option value="1">2</option>
<option value="1">3</option> -->
</select>
<select name="Meal" class="selectinput">
<option value selected >Meal</option>
<option value="Room only">Room only</option>
<option value="Breakfast">Breakfast</option>
<option value="Half Board">Half Board</option>
<option value="Full Board">Full Board</option>
</select>
<div class="datesection">
<span>
<label for="cin"> Check-In</label>
<input name="cin" type ="date">
</span>
<span>
<label for="cin"> Check-Out</label>
<input name="cout" type ="date">
</span>
48
</div>
</div>
</div>
<div class="footer">
<button class="btn btn-success" name="guestdetailsubmit">Submit</button>
</div>
</form>

<!-- ==== room book php ====-->


<?php
if (isset($_POST['guestdetailsubmit'])) {
$Name = $_POST['Name'];
$Email = $_POST['Email'];
$Country = $_POST['Country'];
$Phone = $_POST['Phone'];
$RoomType = $_POST['RoomType'];
$Bed = $_POST['Bed'];
$NoofRoom = $_POST['NoofRoom'];
$Meal = $_POST['Meal'];
$cin = $_POST['cin'];
$cout = $_POST['cout'];

if($Name == "" || $Email == "" || $Country == ""){


echo "<script>swal({
title: 'Fill the proper details',
icon: 'error',
});
</script>";
}
else{
$sta = "NotConfirm";
$sql = "INSERT INTO
roombook(Name,Email,Country,Phone,RoomType,Bed,NoofRoom,Meal,cin,cout,stat,nodays)
VALUES
('$Name','$Email','$Country','$Phone','$RoomType','$Bed','$NoofRoom','$Meal','$cin','$cout','$sta',date
diff('$cout','$cin'))";
$result = mysqli_query($conn, $sql);

if ($result) {
echo "<script>swal({
title: 'Reservation successful',
icon: 'success',
49
});
</script>";
} else {
echo "<script>swal({
title: 'Something went wrong',
icon: 'error',
});
</script>";
}
}
}
?>
</div>

</div>
</section>

<section id="secondsection">
<img src="./image/homeanimatebg.svg">
<div class="ourroom">
<h1 class="head">≼ Our room ≽</h1>
<div class="roomselect">
<div class="roombox">
<div class="hotelphoto h1"></div>
<div class="roomdata">
<h2>Superior Room</h2>
<div class="services">
<i class="fa-solid fa-wifi"></i>
<i class="fa-solid fa-burger"></i>
<i class="fa-solid fa-spa"></i>
<i class="fa-solid fa-dumbbell"></i>
<i class="fa-solid fa-person-swimming"></i>
</div>
<button class="btn btn-primary bookbtn" onclick="openbookbox()">Book</button>
</div>
</div>
<div class="roombox">
<div class="hotelphoto h2"></div>
<div class="roomdata">
<h2>Delux Room</h2>
<div class="services">
<i class="fa-solid fa-wifi"></i>

50
<i class="fa-solid fa-burger"></i>
<i class="fa-solid fa-spa"></i>
<i class="fa-solid fa-dumbbell"></i>
</div>
<button class="btn btn-primary bookbtn" onclick="openbookbox()">Book</button>
</div>
</div>
<div class="roombox">
<div class="hotelphoto h3"></div>
<div class="roomdata">
<h2>Guest Room</h2>
<div class="services">
<i class="fa-solid fa-wifi"></i>
<i class="fa-solid fa-burger"></i>
<i class="fa-solid fa-spa"></i>
</div>
<button class="btn btn-primary bookbtn" onclick="openbookbox()">Book</button>
</div>
</div>
<div class="roombox">
<div class="hotelphoto h4"></div>
<div class="roomdata">
<h2>Single Room</h2>
<div class="services">
<i class="fa-solid fa-wifi"></i>
<i class="fa-solid fa-burger"></i>
</div>
<button class="btn btn-primary bookbtn" onclick="openbookbox()">Book</button>
</div>
</div>
</div>
</div>
</section>

<section id="thirdsection">
<h1 class="head">≼ Facilities ≽</h1>
<div class="facility">
<div class="box">
<h2>Swiming pool</h2>
</div>
<div class="box">
<h2>Spa</h2>

51
</div>
<div class="box">
<h2>24*7 Restaurants</h2>
</div>
<div class="box">
<h2>24*7 Gym</h2>
</div>
<div class="box">
<h2>Heli service</h2>
</div>
</div>
</section>

<section id="contactus">
<div class="social">
<i class="fa-brands fa-instagram"></i>
<i class="fa-brands fa-facebook"></i>
<i class="fa-solid fa-envelope"></i>
</div>
<div class="createdby">
<h5>Naveen Kumar</h5>
</div>
</section>
</body>

<script>

var bookbox = document.getElementById("guestdetailpanel");

openbookbox = () =>{
bookbox.style.display = "flex";
}
closebox = () =>{
bookbox.style.display = "none";
}
</script>
</html>

52
53
BIBLIOGRAPHY

54
9. BIBLIOGRAPHY

REFERENCES

https://www.mdpi.com/2073-8994/14/4/718

https://ui.adsabs.harvard.edu/abs/2022Symm...14..718A/abstract

https://dl.acm.org/doi/10.1145/3021460.3021485

https://www.ripublication.com/ijaer20/ijaerv15n1_02.pdf

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9609682/

55

You might also like