Professional Documents
Culture Documents
Hotel
Hotel
INTRODUCTION
A web-based operation developed for the action, the Online Hotel Room
Booking System, enables hotel admin to manage all operations online. Because
they're so busy, the hotel operation doesn't have time to settle down and oversee all of
the operations manually on paper. The capability to control the complete system from
a single online system is handed by this operation. This action facilitates reserving
rooms as well as other essential hotel operation features. The system enables the
director to list available rooms. Guests can view and book rooms online. The system
is thus useful for stoners. In this design, the hotel admin adds the available room
details. And the customer can view the room, conference hall details, and vehicle
details, as well as make payment via the internet, while the admin can manage the
overall process of the design. This operation will help admin handle customer
information, room allocation details, payment information, etc.
Explanation about design and modules are handed in this design attestation.
The system is manually maintained. All the records that are to be maintained for the
details of each customer, room assignment, etc., are entered and recaptured manually,
and because of this, there are numerous disadvantages like streamlining the process,
consuming time, and losing data. To avoid this, we introduced a new system in the
proposed system: the motorised interpretation of the being system. In this design, we
can search the hotel apartments, book them, and make the payment via the internet.
The administrator can add the empty rooms, etc.
The admin maintains the details about druggies as well as the hotel for future
reference. A hotel system manages information about rooms, guests, reservations, and
customer billing. When a customer makes reservations, they need to check if the room
the customer wants to reserve is available. However, the customer enters their
information into the system and receives evidence from the web point that a room is
available.
1
2. SYSTEM STUDY
DISADVANTAGES
2
1.1.2 PROPOSED SYSTEM
The suggested system was created after a thorough examination of the user's
requirements. The suggested system is automated, making up for all the drawbacks of
the manual system. The online hotel room booking system's room details have
streamlined the working information and created a user-friendly environment, giving
the user a lot of freedom to manage successfully. It enables the administrator to create
better outcomes and more desirable reports more quickly. Customers should be able
to check the hotel's supply of rooms on a specific date before making a reservation.
They ought to be able to reserve the accessible rooms ahead of time in accordance
with their needs. to ensure their satisfaction while there. The administrator gives the
customer's reservation details. The users can register and log into the system.
ADVANTAGES
3
3. REQUIREMENT ANALYISIS
The requirement analysis is very important to the project. The project would not
exist without the requirements. Otherwise, I only have an idea. For efficient use all
computer software and hardware components and other software sources in the
computer system where it is used. These prerequisites are known as computer or
system requirements. The hardware and software requirements of the system are
given as below.
The most common set of conditions defined by any operating system or software
operation is the physical computer closet, also known as the tackle. The tackle
conditions list specifies the type of processor needed by the operation, the minimal
size of tackle for the hard fragment, etc.
4
generally not included in the software installation package and need to be installed
separately before the software.
PHP
My SQL
MySQL is the world's most used open source relational database management
system( RDBMS) as of 2008 and runs as a server, furnishing multi-user access to a
number of databases. The MySQL development design has made its source code
available under the terms of the GNU General Public License, as well as under a
variety of personal agreements. MySQL was possessed and patronised by a single for-
profit establishment, the Swedish company MySQL AB, now possessed by Oracle
Corporation.
5
4.SYSTEM DESIGN
6
ONLINE HOTEL ROOM BOOKING
SYSTEM
Admin User
Add vehicle
details
Booking
Search user
details
Payment
View booking
details
This system contains two modules admin and user. In the admin, they can add the
room details, add hall details, add vehicle details, search user details, and view
booking details. On the user side, they can register to login, view the details, and book
the room, then pay to confirm their booking.
7
4.2 INPUT DESIGN
The raw material used as input is transformed to create output. The input devices
must be taken into account by the makers when designing the input. As a result, the
system output's quality depends on the input's quality. displays and input fields with
good design.
Name
Gender
Age
Aadhar No
Email Id
Register Database
Phone No
Location
Address
Username
Password
8
4.3 OUTPUT DESIGN
The most crucial job for any system is output design. Developers determine
the required output types during output design. They also take into account the output
controls and report layout prototypes.
View Account
Name
Gender
Age
Aadhar No
Email Id
View account
Phone No Database
Location
Address
Username
Password
9
4.4 DATABASE DESIGN
A table is a data structure that organises information into rows and columns. It
can be used to both store and display data in a structured format. For illustration,
databases store data in tables so that information can be quickly gleaned from
specific rows. Websites frequently use tables to display multiple rows of data.
Spreadsheets combine both purposes of a table by storing and displaying data in a
structured format. Databases frequently contain multiple tables, with each one
designed for a specific purpose. For illustration, a company database may contain
separate tables for workers, guests, and suppliers. Each table may include its own
set of fields, based on what data it needs to store. In database tables, each field is
considered a column, while each entry( or record) is considered a row. A specific
value can be extracted from the table by requesting data from an individual
column and row.
10
LEVEL 0
The Level 0 DFD shows how the system is divided into 'sub-systems', each of
which deals with one or more of the data flows to or from an external agent, and
which together provide all of the functionality of the system as a whole. It also
identifies internal data stores that must be present in order for the system to do its job,
and shows the flow of data between the various parts of the system.
Hotel room
Admin booking User
system
Database
11
LEVEL 1
The next stage is to create the Level 1 Data Flow Diagram. This highlights the
main functions carried out by the system. As a rule, to describe the system was using
between two and seven functions - two being a simple system and seven being a
complicated system. This enables us to keep the model manageable on screen or
paper.
Login
Store the data
Add room
details Store the data
Conference
Admin Hall
View User
Store the data
Details
View Booking
Retrieving the data
Details
12
LEVEL 2
A Data Flow Diagram (DFD) tracks processes and their data paths within the
business or system boundary under investigation. A DFD defines each domain
boundary and illustrates the logical movement and transformation of data within the
defined boundary. The diagram shows 'what' input data enters the domain, 'what'
logical processes the domain applies to that data, and 'what' output data leaves the
domain. Essentially, a DFD is a tool for process modelling and one of the oldest.
User
View Details Store the data
13
4.4.2 DATA DICTIONARY
A data dictionary contains metadata about the database. The data dictionary is
very important as it contains information such as what is in the database, who is
allowed to access it, where is the database physically stored etc. The users of the
database normally don’t interact with the data dictionary, it is only handled by the
database administrators.
14
sdate varchar(50) not null
edate varchar(50) not null
amnt varchar(50) not null
tdays varchar(50) not null
tamnt varchar(50) not null
status varchar(50) not null
15
id int(50) not null primary
name varchar(50) not null
gender varchar(50) not null
age varchar(50) not null
aadhar varchar(50) not null
email varchar(50) not null
phone varchar(50) not null
location varchar(50) not null
address varchar(200) not null
uname varchar(50) not null
psw varchar(50) not null
16
4.5 PROGRAM DESIGN
The online hotel room booking system provide a fast and easy way for people all
over the world to make online reservations. The method for booking hotel rooms
online is simple to use. The programme is written in PHP and HTML by connecting
to a hotel's website.
MODULE
Admin
• Login
• Add Room Details
• Add Conference Hall
• Add Vehicle Details
• View User Details
• View Booking Details
User
• Register
• Login
• View Details
➢ Room
➢ Hall
➢ Vehicle
• Booking
• Payment
• View Notification
17
4.5.1 MODULE DESCRIPTION
Admin
• Login
In this module, the admin can login in the system using their username and
password.
• Add Room Details
In this module, the admin can add the room details like, room number, facility,
type etc.
• Add Hall Details
• In this module, the admin can add the hall details like, hall number, facility,
type etc.
• Add Vehicle Details
• In this module, the admin can add the vehicle details like vehicle number,
type, amount etc..
• View User Details
In this module, the admin can view the user information’s like user name,
email, gender, mobile number, address, and etc.
• View Booking Details
In this module, the employee can view the user booking details. The booking
details contain booking id, room details, user details etc.
User
• Register
There is registration form available where new vendor can create their account
by providing required information to the system. The registration form details
are like vendor name, email, gender, mobile number, address, and etc. These
details are stored in the database. And then can getting to the username and
password in the system.
• Login
In this module, the user can login in the system using their3 username and
password.
18
• View Details
The user can view the room details, conference hall details, vehicle detail
using this application.
• Booking
After viewing all details, the user can book product using this module. The
user booking details are sent to the admin.
• Payment
In this module used to make payment. This module contains user’s card details
like name, card no, amount etc.
• View Notification
19
5. SYSTEM DEVELOPMENT
SOURCE CODE
hotel.sql
20
-- Host: 127.0.0.1
-- Generation Time: Feb 06, 2023 at 11:51 AM
-- Server version: 10.4.25-MariaDB
-- PHP Version: 8.1.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET
@OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET
@OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET
@OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `hotel2`
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`name` varchar(50) NOT NULL,
`psw` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`name`, `psw`) VALUES
('admin', '11');
--
-- Table structure for table `book`
--
CREATE TABLE `book` (
`sno` int(50) NOT NULL,
`uid` varchar(50) NOT NULL,
`rno` varchar(50) NOT NULL,
`sdate` varchar(50) NOT NULL,
`edate` varchar(50) NOT NULL,
`amnt` varchar(50) NOT NULL,
`tdays` varchar(50) NOT NULL,
`tamnt` varchar(50) NOT NULL,
`status` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `book`
21
--
INSERT INTO `book` (`sno`, `uid`, `rno`, `sdate`, `edate`, `amnt`, `tdays`, `tamnt`,
`status`) VALUES
(1, '1', '1', '2023-01-19', '2023-01-21', '5000', '2', '10000', '1'),
(2, '1', '2', '2023-02-24', '2023-03-04', '2000', '8', '16000', '1');
--
-- Table structure for table `booking`
--
CREATE TABLE `booking` (
`sno` int(50) NOT NULL,
`uid` varchar(50) NOT NULL,
`rno` varchar(50) NOT NULL,
`sdate` varchar(50) NOT NULL,
`edate` varchar(50) NOT NULL,
`amnt` varchar(50) NOT NULL,
`tdays` varchar(50) NOT NULL,
`tamnt` varchar(50) NOT NULL,
`status` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `booking`
--
INSERT INTO `booking` (`sno`, `uid`, `rno`, `sdate`, `edate`, `amnt`, `tdays`, `tamnt`,
`status`) VALUES
(1, '1', '3', '2022-12-28', '2023-01-12', '15000', '2', '30000', '1'),
(2, '1', '3', '2023-01-18', '2023-02-01', '15000', '1', '15000', '1'),
(3, '1', '2', '2023-02-15', '2023-02-23', '20000', '1', '20000', '1');
--
-- Table structure for table `booking2`
--
CREATE TABLE `booking2` (
`sno` int(50) NOT NULL,
`uid` varchar(50) NOT NULL,
`rno` varchar(50) NOT NULL,
`sdate` varchar(50) NOT NULL,
`edate` varchar(50) NOT NULL,
`amnt` varchar(50) NOT NULL,
`tdays` varchar(50) NOT NULL,
`tamnt` varchar(50) NOT NULL,
`status` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `booking2`
22
--
INSERT INTO `booking2` (`sno`, `uid`, `rno`, `sdate`, `edate`, `amnt`, `tdays`,
`tamnt`, `status`) VALUES
(1, '1', '2', '2023-01-25', '2023-02-03', '2000', '9', '18000', '1'),
(2, '1', '1', '2023-02-21', '2023-02-25', '4000', '2', '8000', '1'),
(3, '1', '3', '2023-03-12', '2023-03-14', '4500', '2', '9000', '1');
--
-- Table structure for table `halls`
--
CREATE TABLE `halls` (
`sno` int(50) NOT NULL,
`rno` varchar(50) NOT NULL,
`type` varchar(50) NOT NULL,
`amnt` varchar(50) NOT NULL,
`img` varchar(50) NOT NULL,
`desc` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `halls`
--
INSERT INTO `halls` (`sno`, `rno`, `type`, `amnt`, `img`, `desc`) VALUES
(1, '1', 'Ac', '15000', 'lawcopper.jpg', 'Conference hall');
--
-- Table structure for table `register`
--
CREATE TABLE `register` (
`sno` int(50) NOT NULL,
`name` varchar(50) NOT NULL,
`gender` varchar(50) NOT NULL,
`age` varchar(50) NOT NULL,
`email` varchar(50) NOT NULL,
`phone` varchar(50) NOT NULL,
`location` varchar(50) NOT NULL,
`address` varchar(200) NOT NULL,
`uname` varchar(50) NOT NULL,
`psw` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `register`
--
INSERT INTO `register` (`sno`, `name`, `gender`, `age`, `email`, `phone`, `location`,
`address`, `uname`, `psw`) VALUES
(1, 'saran', 'male', '21', 'saran22@gmail.com', '6383023580', 'trichy', 'trichy', 'saran',
'111');
23
--
-- Table structure for table `rooms`
--
CREATE TABLE `rooms` (
`sno` int(50) NOT NULL,
`rno` varchar(50) NOT NULL,
`type` varchar(50) NOT NULL,
`bed` varchar(50) NOT NULL,
`amnt` varchar(50) NOT NULL,
`img` varchar(50) NOT NULL,
`desc` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `rooms`
--
INSERT INTO `rooms` (`sno`, `rno`, `type`, `bed`, `amnt`, `img`, `desc`) VALUES
(1, '1', 'Ac', 'Single Cot', '5000', '3.jpg', 'Junior suite'),
(2, '2', 'Ac', 'Single Cot', '2000', '2.jpg', 'Deluxe');
--
-- Table structure for table `vechicle`
--
CREATE TABLE `vechicle` (
`sno` int(50) NOT NULL,
`type` varchar(50) NOT NULL,
`name` varchar(50) NOT NULL,
`amnt` varchar(50) NOT NULL,
`img` varchar(50) NOT NULL,
`desc` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `vechicle`
--
INSERT INTO `vechicle` (`sno`, `type`, `name`, `amnt`, `img`, `desc`) VALUES
(1, 'Bus', 'RLS-20', '15000', 'luffy.jpg', 'test');
--
-- Indexes for dumped tables
--
-- Indexes for table `book`
--
ALTER TABLE `book`
ADD PRIMARY KEY (`sno`);
--
-- Indexes for table `booking`
24
--
ALTER TABLE `booking`
ADD PRIMARY KEY (`sno`);
--
-- Indexes for table `register`
--
ALTER TABLE `register`
ADD PRIMARY KEY (`sno`);
--
-- Indexes for table `rooms`
--
ALTER TABLE `rooms`
ADD PRIMARY KEY (`sno`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `book`
--
ALTER TABLE `book`
MODIFY `sno` int(50) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=20;
--
-- AUTO_INCREMENT for table `booking`
--
ALTER TABLE `booking`
MODIFY `sno` int(50) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `register`
--
ALTER TABLE `register`
MODIFY `sno` int(50) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `rooms`
--
ALTER TABLE `rooms`
MODIFY `sno` int(50) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=3;
COMMIT;
/*!40101 SET
CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
25
/*!40101 SET
CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET
COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
index.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Hotel Paradise</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="keywords">
<meta content="" name="description">
<!-- Favicon -->
<link href="img/favicon.ico" rel="icon">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700&fam
ily=Montserrat:wght@400;500;600;700&display=swap" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-
awesome/5.10.0/css/all.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-
icons.css" rel="stylesheet">
<!-- Libraries Stylesheet -->
<link href="lib/animate/animate.min.css" rel="stylesheet">
<link href="lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
<link href="lib/tempusdominus/css/tempusdominus-bootstrap-4.min.css"
rel="stylesheet" />
<!-- Customized Bootstrap Stylesheet -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Template Stylesheet -->
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<div class="container-xxl bg-white p-0">
<!-- Spinner Start -->
<div id="spinner" class="show bg-white position-fixed translate-middle w-100 vh-
100 top-50 start-50 d-flex align-items-center justify-content-center">
26
<div class="spinner-border text-primary" style="width: 3rem; height: 3rem;"
role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
<!-- Spinner End -->
27
<div class="collapse navbar-collapse justify-content-between" id="navbarCollapse">
<div class="navbar-nav mr-auto py-0">
<a href="index.php" class="nav-item nav-link ">Home</a>
<a href="about.php" class="nav-item nav-link ">About</a>
<a href="room.php" class="nav-item nav-link ">Package</a>
<a href="ami.php" class="nav-item nav-link ">Amenities</a>
<a href="pro.php" class="nav-item nav-link ">Property rules</a>
<a href="admin.php" class="nav-item nav-link">Admin</a>
<a href="user.php" class="nav-item nav-link">User</a>
</div>
</div>
</nav>
</div>
</div>
</div>
<!-- Header End -->
<!-- Carousel Start -->
<div class="container-fluid p-0 mb-5">
<div id="header-carousel" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img class="w-100" src="img/carousel-1.jpg" alt="Image">
<div class="carousel-caption d-flex flex-column align-items-center justify-content-
center">
<div class="p-3" style="max-width: 700px;">
<h6 class="section-title text-white text-uppercase mb-3 animated
slideInDown">Luxury Living</h6>
<h1 class="display-3 text-white mb-4 animated slideInDown">Discover A Brand
Luxurious Hotel</h1>
</div>
</div>
</div>
<div class="carousel-item">
<img class="w-100" src="img/carousel-2.jpg" alt="Image">
<div class="carousel-caption d-flex flex-column align-items-center justify-content-
center">
<div class="p-3" style="max-width: 700px;">
<h6 class="section-title text-white text-uppercase mb-3 animated
slideInDown">Luxury Living</h6>
<h1 class="display-3 text-white mb-4 animated slideInDown">Discover A Brand
Luxurious Hotel</h1>
</div>
</div>
</div>
28
<div class="carousel-item">
<img class="w-100" src="img/carousel-3.jpg" alt="Image">
<div class="carousel-caption d-flex flex-column align-items-center justify-content-
center">
<div class="p-3" style="max-width: 700px;">
<h6 class="section-title text-white text-uppercase mb-3 animated
slideInDown">Luxury Living</h6>
<h1 class="display-3 text-white mb-4 animated slideInDown">Discover A Brand
Luxurious Hotel</h1>
</div>
</div>
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#header-
carousel"
data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#header-
carousel"
data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
</div>
<!-- Carousel End -->
</p>
</div>
</div>
<div class="col-md-6 col-lg-3">
29
<h6 class="section-title text-start text-primary text-uppercase mb-4">Contact</h6>
<p class="mb-2"><i class="fa fa-map-marker-alt me-3"></i>TRICHY</p>
<p class="mb-2"><i class="fa fa-phone-alt me-3"></i>90953 18982</p>
<p class="mb-2"><i class="fa fa-envelope me-3"></i>hotelparadise@gmail.com</p>
<div class="d-flex pt-2">
<a class="btn btn-outline-light btn-social" href="https://freewebsitecode.com"><i
class="fab fa-twitter"></i></a>
<a class="btn btn-outline-light btn-social" href="https://facebook.com/freewebsitecode"><i
class="fab fa-facebook-f"></i></a>
<a class="btn btn-outline-light btn-social"
href="https://youtube.com/freewebsitecode"><i class="fab fa-youtube"></i></a>
<a class="btn btn-outline-light btn-social" href="https://freewebsitecode.com"><i
class="fab fa-linkedin-in"></i></a>
</div>
</div>
<div class="col-lg-5 col-md-12">
<div class="row gy-5 g-4">
<div class="col-md-6">
<h6 class="section-title text-start text-primary text-uppercase mb-4">Company</h6>
<a class="btn btn-link" href="">About Us</a>
<a class="btn btn-link" href="">Contact Us</a>
<a class="btn btn-link" href="">Privacy Policy</a>
<a class="btn btn-link" href="">Terms & Condition</a>
<a class="btn btn-link" href="">Support</a>
</div>
<div class="col-md-6">
<h6 class="section-title text-start text-primary text-uppercase mb-4">Services</h6>
<a class="btn btn-link" href="">Food & Restaurant</a>
<a class="btn btn-link" href="">Spa & Fitness</a>
<a class="btn btn-link" href="">Sports & Gaming</a>
<a class="btn btn-link" href="">Event & Party</a>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="copyright">
<div class="row">
</div>
</div>
</div>
<br>
30
</div>
<!-- Footer End -->
<!-- Back to Top -->
<a href="#" class="btn btn-lg btn-primary btn-lg-square back-to-top"><i class="bi bi-
arrow-up"></i></a>
</div>
</html>
About.php
<div class="container-xxl py-5">
<div class="container">
<div class="col-lg-6">
<h6 class="section-title text-start text-primary text-uppercase">About Us</h6>
<h1 class="mb-4">Welcome to <span class="text-primary text-uppercase">Hotel
Paradise</span></h1>
<p class="mb-4"><h3><p style="color:blue">Location:</p></h4><h5><p>Situated
next to Cantonment, This Hotel is a modernproperty in Trichy. Catering to business
and leisure travellers alike, the hotel is within 20 mins from Trichy Central Railway
Station and about half-hour from Trichy International Airport.
</p></h5>
31
<h3><p style="color:blue"> Hotel Facilities:</p></h3><h5><p> Fitness-conscious
travellers can enjoy a few refreshing laps in the outdoor pool, and work out at the
modern and fully equipped gym.Thai and Korean massages is offered at the Spa. The
hotels travel desk can organise local tours. Facilities on offer also include valet
parking and free Wi-Fi access.</p></h5>
</div>
<div class="col-lg-6">
<div class="row g-3">
<div class="col-6 text-end">
<img class="img-fluid rounded w-100 wow zoomIn" data-wow-delay="0.1s"
src="img/about-3.jpg" style=>
</div>
<div class="col-6 text-start">
<img class="img-fluid rounded w-150 wow zoomIn" data-wow-delay="0.3s"
src="img/about-1.jpg">
</div>
<div class="col-6 text-end">
<img class="img-fluid rounded w-100 wow zoomIn" data-wow-delay="0.5s"
src="img/80.jpeg">
</div>
<div class="col-6 text-start">
<img class="img-fluid rounded w-100 wow zoomIn" data-wow-delay="0.7s"
src="img/70.jpeg">
</div>
</div>
</div>
</div>
</div>
</div>
room.php
<div class="container-xxl py-5">
<div class="container">
<div class="text-center wow fadeInUp" data-wow-delay="0.1s">
<h6 class="section-title text-center text-primary text-uppercase">Our Rooms</h6>
<h1 class="mb-5">Explore Our <span class="text-primary text-
uppercase">Rooms</span></h1>
</div>
<div class="row g-4">
<div class="col-lg-4 col-md-6 wow fadeInUp" data-wow-delay="0.1s">
<div class="room-item shadow rounded overflow-hidden">
<div class="position-relative">
32
<img class="img-fluid" src="img/13.jpg" alt="">
<small class="position-absolute start-0 top-100 translate-middle-y bg-primary text-
white rounded py-1 px-3 ms-4">$2000/Night</small>
</div>
<div class="p-4 mt-2">
<div class="d-flex justify-content-between mb-3">
<h5 class="mb-0">Junior Suite</h5>
<div class="ps-2">
<small class="fa fa-star text-primary"></small>
<small class="fa fa-star text-primary"></small>
<small class="fa fa-star text-primary"></small>
<small class="fa fa-star text-primary"></small>
<small class="fa fa-star text-primary"></small>
</div>
</div>
<div class="d-flex mb-3">
<small class="border-end me-3 pe-3"><i class="fa fa-bed text-primary me-2"></i>1
Bed</small>
<small class="border-end me-3 pe-3"><i class="fa fa-bath text-primary me-2"></i>1
Bath</small>
<small><i class="fa fa-wifi text-primary me-2"></i>Wifi</small>
</div>
<p class="text-body mb-3"></p>
<div class="d-flex justify-content-between">
<a class="btn btn-sm btn-dark rounded py-2 px-4" href="user.php">Book Now</a>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 wow fadeInUp" data-wow-delay="0.3s">
<div class="room-item shadow rounded overflow-hidden">
<div class="position-relative">
<img class="img-fluid" src="img/10.jpeg" alt="">
<small class="position-absolute start-0 top-100 translate-middle-y bg-primary text-
white rounded py-1 px-3 ms-4">$3000/Night</small>
</div>
<div class="p-4 mt-2">
<div class="d-flex justify-content-between mb-3">
<h5 class="mb-0">Executive Suite</h5>
<div class="ps-2">
<small class="fa fa-star text-primary"></small>
<small class="fa fa-star text-primary"></small>
<small class="fa fa-star text-primary"></small>
<small class="fa fa-star text-primary"></small>
33
<small class="fa fa-star text-primary"></small>
</div>
</div>
<div class="d-flex mb-3">
<small class="border-end me-3 pe-3"><i class="fa fa-bed text-primary me-2"></i>1
Bed</small>
<small class="border-end me-3 pe-3"><i class="fa fa-bath text-primary me-2"></i>1
Bath</small>
<small><i class="fa fa-wifi text-primary me-2"></i>Wifi</small>
</div>
<p class="text-body mb-3"></p>
<div class="d-flex justify-content-between">
<a class="btn btn-sm btn-dark rounded py-2 px-4" href="user.php">Book Now</a>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 wow fadeInUp" data-wow-delay="0.6s">
<div class="room-item shadow rounded overflow-hidden">
<div class="position-relative">
<img class="img-fluid" src="img/16.jpg" alt="">
<small class="position-absolute start-0 top-100 translate-middle-y bg-primary text-
white rounded py-1 px-3 ms-4">$5000/Night</small>
</div>
<div class="p-4 mt-2">
<div class="d-flex justify-content-between mb-3">
<h5 class="mb-0">Super Deluxe</h5>
<div class="ps-2">
<small class="fa fa-star text-primary"></small>
<small class="fa fa-star text-primary"></small>
<small class="fa fa-star text-primary"></small>
<small class="fa fa-star text-primary"></small>
<small class="fa fa-star text-primary"></small>
</div>
</div>
<div class="d-flex mb-3">
<small class="border-end me-3 pe-3"><i class="fa fa-bed text-primary me-2"></i>1
Bed</small>
<small class="border-end me-3 pe-3"><i class="fa fa-bath text-primary me-2"></i>1
Bath</small>
<small><i class="fa fa-wifi text-primary me-2"></i>Wifi</small>
</div>
<p class="text-body mb-3"></p>
<div class="d-flex justify-content-between">
34
<a class="btn btn-sm btn-dark rounded py-2 px-4" href="user.php">Book Now</a>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 wow fadeInUp" data-wow-delay="0.6s">
<div class="room-item shadow rounded overflow-hidden">
<div class="position-relative">
<img class="img-fluid" src="img/room-3.jpg" alt="">
<small class="position-absolute start-0 top-100 translate-middle-y bg-primary text-
white rounded py-1 px-3 ms-4">$6000/Night</small>
</div>
<div class="p-4 mt-2">
<div class="d-flex justify-content-between mb-3">
<h5 class="mb-0">Junior suite</h5>
<div class="ps-2">
<small class="fa fa-star text-primary"></small>
<small class="fa fa-star text-primary"></small>
<small class="fa fa-star text-primary"></small>
<small class="fa fa-star text-primary"></small>
<small class="fa fa-star text-primary"></small>
</div>
</div>
<div class="d-flex mb-3">
<small class="border-end me-3 pe-3"><i class="fa fa-bed text-primary me-2"></i>2
Bed</small>
<small class="border-end me-3 pe-3"><i class="fa fa-bath text-primary me-2"></i>2
Bath</small>
<small><i class="fa fa-wifi text-primary me-2"></i>Wifi</small>
</div>
<p class="text-body mb-3"></p>
<div class="d-flex justify-content-between">
<a class="btn btn-sm btn-dark rounded py-2 px-4" href="user.php">Book Now</a>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 wow fadeInUp" data-wow-delay="0.1s">
<div class="room-item shadow rounded overflow-hidden">
<div class="position-relative">
<img class="img-fluid" src="img/room-1.jpg" alt="">
<small class="position-absolute start-0 top-100 translate-middle-y bg-primary text-
white rounded py-1 px-3 ms-4">$7000/Night</small>
</div>
35
<div class="p-4 mt-2">
<div class="d-flex justify-content-between mb-3">
<h5 class="mb-0">Executive Suite</h5>
<div class="ps-2">
<small class="fa fa-star text-primary"></small>
<small class="fa fa-star text-primary"></small>
<small class="fa fa-star text-primary"></small>
<small class="fa fa-star text-primary"></small>
<small class="fa fa-star text-primary"></small>
</div>
</div>
<div class="d-flex mb-3">
<small class="border-end me-3 pe-3"><i class="fa fa-bed text-primary me-2"></i>2
Bed</small>
<small class="border-end me-3 pe-3"><i class="fa fa-bath text-primary me-2"></i>2
Bath</small>
<small><i class="fa fa-wifi text-primary me-2"></i>Wifi</small>
</div>
<p class="text-body mb-3"></p>
<div class="d-flex justify-content-between">
<a class="btn btn-sm btn-dark rounded py-2 px-4" href="user.php">Book Now</a>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 wow fadeInUp" data-wow-delay="0.3s">
<div class="room-item shadow rounded overflow-hidden">
<div class="position-relative">
<img class="img-fluid" src="img/room-2.jpg" alt="">
<small class="position-absolute start-0 top-100 translate-middle-y bg-primary text-
white rounded py-1 px-3 ms-4">$9000/Night</small>
</div>
<div class="p-4 mt-2">
<div class="d-flex justify-content-between mb-3">
<h5 class="mb-0">Super Deluxe</h5>
<div class="ps-2">
<small class="fa fa-star text-primary"></small>
<small class="fa fa-star text-primary"></small>
<small class="fa fa-star text-primary"></small>
<small class="fa fa-star text-primary"></small>
<small class="fa fa-star text-primary"></small>
</div>
</div>
<div class="d-flex mb-3">
36
<small class="border-end me-3 pe-3"><i class="fa fa-bed text-primary me-2"></i>2
Bed</small>
<small class="border-end me-3 pe-3"><i class="fa fa-bath text-primary me-2"></i>2
Bath</small>
<small><i class="fa fa-wifi text-primary me-2"></i>Wifi</small>
</div>
<p class="text-body mb-3"></p>
<div class="d-flex justify-content-between">
<a class="btn btn-sm btn-dark rounded py-2 px-4" href="user.php">Book Now</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
ami.php
<div class="container-xxl py-5">
<div class="container">
<div class="col-lg-6">
<h1 class="section-title text-start text-primary text-uppercase">Amenities</h1>
<p class="mb-4"><p style="color:blue"><h3>Basic Facilities:</h3><h5></p><p>-
Free Parking <br>-Free Wi-Fi <br>-Air Conditioning <br>-Room Service <br>-
Laundry Service <br>-Telephone <br>-Housekeeping <br>-Newspaper </p></h5>
<p style="color:blue"><h3>Transfers:</h3></p><h5><p>-Paid Pickup/Drop</p>
<p style="color:blue"><h3>Safety and Security:</h3></p><h5><p>-Emergency Exit
<br>-MapSafe <br>-CCTV <br>-Fire Extinguishers</p></h5>
<p style="color:blue"><h3>Health and wellness:</h3></p><h5><p>-Gym <br>-
First-aid Services</p></h5>
<p style="color:blue"><h3>General Services:</h3></p><h5><p>-Luggage Storage
<br>-Multilingual Staff <br>-Doctor on Call</p></h5>
<p style="color:blue"><h3>Common Area:</h3></p><h5><p>-Lounge <br>-Lawn
<br>-Reception <br>-Seating Area</p></h5>
</div>
<div class="col-lg-6">
<div class="row g-3">
<div class="col-6 text-end">
<img class="img-fluid rounded w-500 wow zoomIn" data-wow-delay="0.1s"
src="img/about-1.jpg">
37
</div>
<div class="col-6 text-start">
<img class="img-fluid rounded w-500 wow zoomIn" data-wow-delay="0.1s"
src="img/about-2.jpg">
</div>
<div class="col-6 text-end">
<img class="img-fluid rounded w-500 wow zoomIn" data-wow-delay="0.1s"
src="img/video.jpg">
</div>
<div class="col-6 text-start">
<img class="img-fluid rounded w-500 wow zoomIn" data-wow-delay="0.1s"
src="img/115.jpg">
</div>
<div class="col-6 text-start">
<img class="img-fluid rounded w-500 wow zoomIn" data-wow-delay="0.1s"
src="img/112.jpg">
</div>
<div class="col-6 text-start">
<img class="img-fluid rounded w-500 wow zoomIn" data-wow-delay="0.1s"
src="img/about-3.jpg">
</div>
</div>
</div>
</div>
</div>
</div>
Pro.php
<div class="container-xxl py-5">
<div class="container">
<div class="text-center wow fadeInUp" data-wow-delay="0.1s">
</div>
<div class="row g-4">
<div class="col-lg-4 col-md-6 wow fadeInUp" data-wow-delay="0.1s">
<a class="service-item rounded" href="">
<div class="service-icon bg-transparent border rounded p-1">
<div class="w-100 h-100 border rounded d-flex align-items-center justify-content-
center">
<i class="fas fa-ban fa-2x text-primary"></i>
</div>
</div>
<h5 class="mb-3"><ul>RESTRICTIONS</ul></h5>
38
<p class="text-body mb-0"><li>Unmarried couples are not allowed.</li><li> Non-
Govt IDs are not accepted as ID proof.</li><li>Does not allow private parties or
events.</li></p>
</a>
</div>
<div class="col-lg-4 col-md-6 wow fadeInUp" data-wow-delay="0.2s">
<a class="service-item rounded" href="">
<div class="service-icon bg-transparent border rounded p-1">
<div class="w-100 h-100 border rounded d-flex align-items-center justify-content-
center">
<i class="fas fa-medkit fa-2x text-primary"></i>
</div>
</div>
<h5 class="mb-3"><ul>SAFETY AND HYGINE<ul></h5>
<p class="text-body mb-0"><li>All rooms are disinfected using bleach or other
disinfectant.</li><li>Laundry are washed.</li><li>Rooms are properly
sanitized.</li></p>
</a>
</div>
<div class="col-lg-4 col-md-6 wow fadeInUp" data-wow-delay="0.3s">
<a class="service-item rounded" href="">
<div class="service-icon bg-transparent border rounded p-1">
<div class="w-100 h-100 border rounded d-flex align-items-center justify-content-
center">
<i class="fas fa-hamburger fa-2x text-primary"></i>
</div>
</div>
<h5 class="mb-3">FOOD ARRANGEMENT</h5>
<p class="text-body mb-0"><li>Non veg food is allowed.</li><li>Outside food is not
allowed.</li><li>Food Delivery available from Zomato and Swiggy.</li></p>
</a>
</div>
<div class="col-lg-4 col-md-6 wow fadeInUp" data-wow-delay="0.4s">
<a class="service-item rounded" href="">
<div class="service-icon bg-transparent border rounded p-1">
<div class="w-100 h-100 border rounded d-flex align-items-center justify-content-
center">
<i class="fa fa-bed fa-2x text-primary"></i>
</div>
</div>
<h5 class="mb-3">Property Accessibility</h5>
<p class="text-body mb-0"><li>Bed height is accessible.</li><li>The entire unit is
wheelchair accessible.</li><li>The property has a wide entryway.</li></p>
</a>
39
</div>
<div class="col-lg-4 col-md-6 wow fadeInUp" data-wow-delay="0.5s">
<a class="service-item rounded" href="">
<div class="service-icon bg-transparent border rounded p-1">
<div class="w-100 h-100 border rounded d-flex align-items-center justify-content-
center">
<i class="fab fa-cc-visa fa-2x text-primary"></i>
</div>
</div>
<h5 class="mb-3">Payment Related</h5>
<p class="text-body mb-0"><li>Credit/debit cards are accepted.</li><li>Master Card
and Visa cards are accepted.</li></p>
</a>
</div>
<div class="col-lg-4 col-md-6 wow fadeInUp" data-wow-delay="0.6s">
<a class="service-item rounded" href="">
<div class="service-icon bg-transparent border rounded p-1">
<div class="w-100 h-100 border rounded d-flex align-items-center justify-content-
center">
<i class="fas fa-user-slash fa-2x text-primary"></i>
</div>
</div>
<h5 class="mb-3">Smoking/Alcohol consumption Rules</h5>
<p class="text-body mb-0"><li>Smoking within the premises is not
allowed.</li><li>Alcohol consumption is not allowed within the property
premises.</li></p>
</a>
</div>
</div>
</div>
</div>
admin.php
<?php
include("dbconnect.php");
extract($_POST);
session_start();
if(isset($_POST['btn']))
{
40
$qry=mysqli_query($conn,"select * from admin where name='$uname' &&
psw='$password'");
$num=mysqli_num_rows($qry);
if($num==1)
{
?>
<script>alert('welcome to admin home page');
</script>
<?php
header("location:adminhome.php");
}
else
{
echo "<script>alert('User Name Password Wrong.....')</script>";
}
}
?>
<form id="form1" name="form1" method="post" action="">
<table width="46%" border="0" align="center">
<tr>
<td colspan="2" rowspan="1"><div align="center" class="style1"><strong><font
size="+1">Admin Login</font> </div></td>
</tr>
<tr>
<td width="48%"> </td>
<td width="52%"> </td>
</tr>
</tr>
<tr>
<td height="31"align="center"><span class="style2"><strong>User Name
</strong></span></td>
<td><label>
<input name="uname" type="text" id="uname" />
</label></td>
</tr>
<tr>
<td height="44" align="center"><span
class="style2"><strong>Password</strong></span></td>
<td><label>
<input name="password" type="password" id="password" />
</label></td>
</tr>
41
<tr>
<td> </td>
<td rowspan="2"><label>
<input name="btn" type="submit" id="btn" value="Login" />
<input type="reset" name="Submit2" value="Cancel" />
</label></td>
</tr>
</table>
</form>
adminhome.php
<?php
session_start();
include("dbconnect.php");
extract($_POST);
if(isset($_POST['btn']))
{
$imgpath=$_FILES['file']['name'];
$errors= array();
$fname = $_FILES['file']['name'];
$file_tmp =$_FILES['file']['tmp_name'];
move_uploaded_file($_FILES['file']['tmp_name'],"images/".$fname);
42
?>
<form id="f1" name="f1" method="post" action="#" enctype="multipart/form-data"
>
<table width="37%" height="423" border="0" align="center">
<tr>
<td colspan="2" align="center"><strong> Add Hall Details</strong></td>
</tr>
<tr>
<tr>
<td width="46%" height="31"> </td>
<td width="54%"> </td>
</tr>
<tr>
<td height="42">Hall Capacity</td>
<td>
<input name="rno" type="text" required>
</td>
</tr>
<tr>
<td height="43">Hall Type</td>
<td>
<input name="type" type="radio" value=" Non Ac" required> Non Ac
<input name="type" type="radio" value="Ac"> Ac
</td>
</tr>
<tr>
<td height="43">Amount</td>
<td>
<input name="amnt" type="text" required>
</td>
</tr>
<tr>
<td height="52">Hall Image</td>
<td>
<input name="file" type="file" required>
</td>
</tr>
<tr>
<td height="52">Description</td>
<td>
<textarea name="desc" required></textarea>
</td>
</tr>
<tr>
43
<td height="61"> </td>
<td><input name="btn" type="submit" id="btn" value="Submit" />
<input type="reset" name="Submit2" value="Reset" /></td>
</tr>
</table>
</form>
ehome.php
<?php
session_start();
include("dbconnect.php");
extract($_POST);
if(isset($_POST['btn']))
{
$imgpath=$_FILES['file']['name'];
$errors= array();
$fname = $_FILES['file']['name'];
$file_tmp =$_FILES['file']['tmp_name'];
move_uploaded_file($_FILES['file']['tmp_name'],"images/".$fname);
$max_qry = mysqli_query($conn,"select max(sno) from rooms");
$max_row = mysqli_fetch_array($max_qry);
$sno=$max_row['max(sno)']+1;
$qry=mysqli_query($conn,"insert into rooms
values('$sno','$rno','$type','$bed','$amnt','$fname','$desc')");
if($qry)
{
echo"<script> alert('Entered suceessfully')</script>";
}
else
{
echo"<script> alert('Check Fields')</script>";
}
}
?>
<form id="f1" name="f1" method="post" action="#" enctype="multipart/form-data"
>
<table width="37%" height="423" border="0" align="center">
<tr>
<td colspan="2" align="center"><strong> Add Rooms Details</strong></td>
</tr>
44
<tr>
<tr>
<td width="46%" height="31"> </td>
<td width="54%"> </td>
</tr>
<tr>
<td height="42">Number Of Rooms</td>
<td>
<input name="rno" type="text" required>
</td>
</tr>
<tr>
<td height="43">Room Type</td>
<td>
<input name="type" type="radio" value=" Non Ac" required> Non Ac
<input name="type" type="radio" value="Ac"> Ac
</td>
<tr>
<tr>
<tr>
<td height="42">Bed Type</td>
<td>
<input name="bed" type="radio" value="Single Cot" required> Single Cot
<input name="bed" type="radio" value="Double Cot"> Double Cot
</td>
</tr>
<tr>
<td height="43">Amount</td>
<td>
<input name="amnt" type="text" required>
</td>
</tr>
<tr>
<td height="52">Room Image</td>
<td>
<input name="file" type="file" required>
</td>
</tr>
<tr>
<td height="52">Description</td>
<td>
<textarea name="desc" required></textarea>
</td>
</tr>
45
<tr>
<td height="61"> </td>
<td><input name="btn" type="submit" id="btn" value="Submit" />
<input type="reset" name="Submit2" value="Reset" /></td>
</tr>
</table>
</form>
addtravels.php
<?php
session_start();
include("dbconnect.php");
extract($_POST);
if(isset($_POST['btn']))
{
$imgpath=$_FILES['file']['name'];
$errors= array();
$fname = $_FILES['file']['name'];
$file_tmp =$_FILES['file']['tmp_name'];
move_uploaded_file($_FILES['file']['tmp_name'],"images/".$fname);
$max_qry = mysqli_query($conn,"select max(sno) from rooms");
$max_row = mysqli_fetch_array($max_qry);
$sno=$max_row['max(sno)']+1;
$qry=mysqli_query($conn,"insert into vechicle
values('$sno','$rno','$type','$amnt','$fname','')");
if($qry)
{
echo"<script> alert('Entered suceessfully')</script>";
}
else
{
echo"<script> alert('Check Fields')</script>";
}
}
?>
<form id="f1" name="f1" method="post" action="#" enctype="multipart/form-data"
>
<table width="37%" height="423" border="0" align="center">
<tr>
<td colspan="2" align="center"><strong> Add Vehicle Details</strong></td>
</tr>
46
<tr>
<tr>
<td width="46%" height="31"> </td>
<td width="54%"> </td>
</tr>
<tr>
<td height="42">Vechicle Type</td>
<td>
<input name="rno" type="text" required>
</td>
</tr>
<tr>
<td height="43">Vechicle name</td>
<td>
<input type="text" name="type" />
</td>
</tr>
<tr>
<td height="43">Amount</td>
<td>
<input name="amnt" type="text" required>
</td>
</tr>
<tr>
<td height="52">Vechile Image</td>
<td>
<input name="file" type="file" required>
</td>
</tr>
<tr>
<td height="61"> </td>
<td><input name="btn" type="submit" id="btn" value="Submit" />
<input type="reset" name="Submit2" value="Reset" /></td>
</tr>
</table>
</form>
adminview.php
<?php
session_start();
include("dbconnect.php");
47
extract($_POST);
<form action="" method="post" style="width:300px;height:300px;margin:0 auto;">
<input type="text" name="uid">
<input name="btn" type="submit"value="Search" />
</form>
<?php
if(isset($_POST['btn']))
{
?>
<br />
<table width="96%" align="center">
<tr>
<td colspan="10" align="center">Room Booking</td>
</tr>
<tr>
<td width="0%"> </td>
<td width="11%"><div align="center" class="style6"><strong>User ID</strong>
</div></td>
<td width="11%"><div align="center" class="style6"><strong>Room NO</strong>
</div></td>
<td width="12%"><div align="center" class="style6"><strong>Type</strong>
</div></td>
<td width="12%"><div align="center" class="style6"><strong>Bed</strong>
</div></td>
<td width="8%"><div align="center" class="style6"><strong>From</strong>
</div></td>
<td width="11%"><div align="center" class="style6"><strong>To</strong>
</div></td>
<td width="13%"><div align="center" class="style6"><strong>Amount Per
Day</strong> </div></td>
<td width="16%"><div align="center" class="style6"><strong>Total days</strong>
</div></td>
<td width="12%"><div align="center" class="style6"><strong>Total
Amount</strong> </div></td>
<td width="15%"><div align="center" class="style6"><strong>Status</strong>
</div></td>
</tr>
</form>
<tr>
<td colspan="10"> </td>
</tr>
<?php
48
$qry=mysqli_query($conn,"select * from book WHERE uid='$uid' ");
$i=1;
while($row=mysqli_fetch_array($qry))
{
$pid=$row['rno'];
$qry1=mysqli_query($conn,"select * from rooms where sno='$pid'");
$row1=mysqli_fetch_array($qry1);
?>
<tr>
<td width="0%"> </td>
<td><div align="center"><?php echo $row['uid'];?></div></td>
<td><div align="center"><?php echo $row['rno'];?></div></td>
<td><div align="center"><?php echo $row1['type'];?></div></td>
<td><div align="center"><?php echo $row1['bed'];?></div></td>
<td><div align="center"><?php echo $row['sdate'];?></div></td>
<td><div align="center"><?php echo $row['edate'];?></div></td>
<td><div align="center"><?php echo $row['amnt'];?></div></td>
<td><div align="center"><?php echo $row['tdays'];?></div></td>
<td><div align="center"><?php echo $row['tamnt'];?></div></td>
<td><div align="center"><?php echo "booked"?></div></td>
<td width="2%"> </div></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<?php
$i++;
}
?>
<tr>
<td colspan="10" align="center"> </td>
</tr>
</table>
<br>
<br />
49
<table width="96%" align="center">
<tr>
?>
<tr>
50
<td width="0%"> </td>
<td><div align="center"><?php echo $row['uid'];?></div></td>
<td><div align="center"><?php echo $row['rno'];?></div></td>
<td><div align="center"><?php echo $row1['type'];?></div></td>
<td><div align="center"><?php echo $row1['name'];?></div></td>
<td><div align="center"><?php echo $row['sdate'];?></div></td>
<td><div align="center"><?php echo $row['edate'];?></div></td>
<td><div align="center"><?php echo $row['amnt'];?></div></td>
<td><div align="center"><?php echo $row['tdays'];?></div></td>
<td><div align="center"><?php echo $row['tamnt'];?></div></td>
</tr>
<?php
$i++;
}
?>
</table>
<br />
<br />
<table width="96%" align="center">
<tr>
<td colspan="10" align="center">Hall Booking</td>
</tr>
<tr>
<td width="0%"> </td>
<td width="11%"><div align="center" class="style6"><strong>User ID</strong>
</div></td>
<td width="11%"><div align="center" class="style6"><strong>Hall NO</strong>
</div></td>
<td width="12%"><div align="center" class="style6"><strong>Type</strong>
</div></td>
51
<td width="12%"><div align="center" class="style6"><strong>Total
Amount</strong> </div></td>
<td width="15%"><div align="center" class="style6"><strong>Status</strong>
</div></td>
</tr>
</form>
<tr>
<td colspan="10"> </td>
</tr>
<?php
$qry=mysqli_query($conn,"select * from booking2 WHERE uid='$uid'");
$i=1;
while($row=mysqli_fetch_array($qry))
{
$pid=$row['rno'];
$qry1=mysqli_query($conn,"select * from halls where sno='$pid'");
$row1=mysqli_fetch_array($qry1);
?>
<tr>
<td width="0%"> </td>
<td><div align="center"><?php echo $row['uid'];?></div></td>
<td><div align="center"><?php echo $row['rno'];?></div></td>
<td><div align="center"><?php echo $row1['type'];?></div></td>
<td><div align="center"><?php echo $row['sdate'];?></div></td>
<td><div align="center"><?php echo $row['edate'];?></div></td>
<td><div align="center"><?php echo $row['amnt'];?></div></td>
<td><div align="center"><?php echo $row['tdays'];?></div></td>
<td><div align="center"><?php echo $row['tamnt'];?></div></td>
<td><div align="center"><?php echo "booked"?></div></td>
<td width="2%"> </div></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<?php
$i++
}
?>
52
<tr>
<td colspan="10" align="center"> </td>
</tr>
</table>
<br><br><br><br><br><br><br><br><br><br>
<?php
}
?>
register.php
<?php
include("dbconnect.php");
extract($_POST);
session_start();
if(isset($_POST['btn']))
{
$qry1=mysqli_query($conn,"select * from register where uname='$uname'");
$count=mysqli_num_rows($qry1);
if($count>0){ echo "<script>alert('username
already taken')</script>";
}else{
$qry=mysqli_query($conn,"insert into register
values('','$name','$gender','$age','$email','$phone','$address','$loc','$uname','$psw','$ad
')");
if($qry)
{
echo "<script>alert('inserted sucessfully')</script>";
}
}
}
<form id="f1" name="f1" method="post" action="#" onSubmit="return vali()">
<table width="35%" border="0" align="center">
<tr>
<td colspan="2" align="center" ><div class="style5"><h3>New User
Registation</h3></div></td>
</tr>
<tr>
<td width="38%" height="51">Name</td>
<td width="62%"><input name="name" type="text" id="name"required/>
</td>
</tr>
53
<tr>
<td height="49">Gender</td>
<td><input name="gender" type="radio" value="male" required/>
Male
<input name="gender" type="radio" value="female" />
Female</td>
</tr>
<tr>
<td height="48">Age</td>
<td>
<input name="age" type="text" id="age"required />
</td></tr>
<tr>
<td height="48">Aadhaar Number</td>
<td>
<input name="ad" type="text" required />
</td>
</tr>
<tr>
<td height="51">Email Id</td>
<td><input name="email" type="email" id="email"required /></td>
</tr>
<tr>
<td height="49">Phone Number </span></td>
<td><input name="phone" type="text" id="phone" required /></td>
</tr>
<tr>
<td height="46">Location</td>
<td><input type="text" name="loc" id="loc" required></td>
</tr>
<tr>
<td height="51">Address</td>
<td><textarea name="address" id="address" required></textarea></td>
</tr>
<tr>
<td height="48">User Name</td>
<td><input name="uname" type="text" id="uname" required/></td>
</tr>
<tr>
<td height="51">Passwrod</td>
<td><input name="psw" type="password" id="psw" required/></td>
</tr>
<tr>
<td height="52"> </td>
54
<td><input name="btn" type="submit" id="btn" value="Submit" />
<input type="reset" name="Submit2" value="Reset" /></td>
</tr>
</table>
</form>
?>
user.php
<?php
include("dbconnect.php");
extract($_POST);
session_start();
if(isset($_POST['btn']))
{
$qry=mysqli_query($conn,"select * from register where uname='$uname' &&
psw='$password'");
$num=mysqli_num_rows($qry);
if($num==1)
{
$qry1=mysqli_query($conn,"select * from register where uname='$uname' &&
psw='$password'");
$row=mysqli_fetch_assoc($qry);
$_SESSION['uid']=$row['sno'];
?>
<script>alert('welcome to User home page');
</script>
<?php
header("location:uhome.php");
}
else
{
echo "<script>alert('User Name Password Wrong.....')</script>";
}
}
?>
<form action="" method="post">
<table width="46%" border="0" align="center">
<tr>
<td colspan="2" rowspan="1"><div align="center" class="style1"><strong><font
size="+1">User Login</font> </div></td>
</tr>
<tr>
<td width="48%"> </td>
55
<td width="52%"> </td>
</tr>
</tr>
<tr>
<td height="31"align="center"><span class="style2"><strong>User Name
</strong></span></td>
<td><label>
<input name="uname" type="text" id="uname" />
</label></td>
</tr>
<tr>
<td height="44" align="center"><span
class="style2"><strong>Password</strong></span></td>
<td><label>
<input name="password" type="password" id="password" />
</label></td>
</tr>
<tr>
<td> </td>
<td colspan="2"><label>
<input name="btn" type="submit" id="btn" value="Login" />
<input type="reset" name="Submit2" value="Cancel" />
</label></td>
</tr>
<tr>
<td> </td>
<td colspan="2"><label>
<a href="register.php">New User Register</a>
</label></td>
</tr>
</table>
</form>
uhome.php
<?php
session_start();
include("dbconnect.php");
extract($_POST);
?>
<table width="97%" height="297" align="center">
<tr>
<td colspan="10" align="center"><h2>Room Details</h2></td>
56
</tr>
<tr>
<td colspan="10"> </td>
</tr>
<tr>
<td width="2%"> </td>
<td width="8%"><div align="center" class="style6"><strong>Id</strong>
</div></td>
<td width="15%"><div align="center" class="style6"><strong>Room Type</strong>
</div></td>
<td width="13%"><div align="center" class="style6"><strong>Bed Type</strong>
</div></td>
<td width="15%"><div align="center" class="style6"><strong>Amount</strong>
</div></td>
<td width="15%"><div align="center" class="style6"><strong>Room
Image</strong> </div></td>
<td width="14%"><div align="center" class="style6"><strong>Details</strong>
</div></td>
<td width="18%"><div align="center" class="style6"><strong>Book</strong>
</div></td>
</tr>
<tr>
<td colspan="10"> </td>
</tr>
<?php
$qry=mysqli_query($conn,"select * from rooms");
$i=1;
while($row=mysqli_fetch_array($qry))
{
?>
<tr>
<td width="2%"> </td>
<td><div align="center"><?php echo $row['sno'];?></div></td>
<td><div align="center"><?php echo $row['type'];?></div></td>
<td><div align="center"><?php echo $row['bed'];?></div></td>
<td><div align="center"><?php echo $row['amnt'];?></div></td>
<td><div align="center"><img src="images\<?php echo $row['img'];?>"
width="135" height="130"></div></td>
<td><div align="center"><?php echo $row['desc'];?></div></td>
<td><div align="center"><a href="book.php?sno=<?php echo
$row['sno'];?>&amnt=<?php echo $row['amnt'];?>">Book Room</a></div></td>
</tr>
<tr>
<td height="21"> </td>
57
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td width="14%"> </td>
</tr>
<?php
$i++;
}
?>
<tr>
<td height="21" colspan="10" align="center"> </td>
</tr>
</table>
viewt.php
<table width="100%" align="center">
<tr>
</tr>
<tr>
<td colspan="7"> </td>
</tr>
<tr>
<td > </td>
<td width="15%"><div align="center" class="style6"><strong>Vehicle Id</strong>
</div></td>
<td width="15%"><div align="center" class="style6"><strong>Vehicle
Name</strong> </div></td>
<td width="15%"><div align="center" class="style6"><strong>Type</strong>
</div></td>
<td width="15%"><div align="center" class="style6"><strong>Amount per
day</strong> </div></td>
<td width="15%"><div align="center" class="style6"><strong>Image</strong>
</div></td>
<td width="15%"><div align="center" class="style6"><strong>Book</strong>
</div></td>
</tr>
</form>
58
<tr>
<td colspan="7"> </td>
</tr>
<?php
$qry=mysqli_query($conn,"select * from vechicle");
$i=1;
while($row=mysqli_fetch_array($qry))
{
?>
<tr>
<td width="10%"> </td>
<td><div align="center"><?php echo $row['sno'];?></div></td>
<td><div align="center"><?php echo $row['name'];?></div></td>
<td><div align="center"><?php echo $row['type'];?></div></td>
<td><div align="center"><?php echo $row['amnt'];?></div></td>
<td><div align="center"><img src="images\<?php echo $row['img'];?>"
width="135" height="130"></div></td>
<td><div align="center"><a href="book1.php?sno=<?php echo
$row['sno'];?>&amnt=<?php echo $row['amnt'];?>">Book Transport</a></div></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<?php
$i++;
}
?>
<tr>
<td colspan="5" align="center"> </td>
</tr>
</table>
viewhall.php
<table width="97%" height="297" align="center">
<tr>
<td colspan="10" align="center"><h2>View Hall</h2></td>
</tr>
59
<tr>
<td colspan="10"> </td>
</tr>
<tr>
<td width="2%"> </td>
<td width="8%"><div align="center" class="style6"><strong>Id</strong>
</div></td>
<td width="15%"><div align="center" class="style6"><strong>Hall Type</strong>
</div></td>
<td width="15%"><div align="center" class="style6"><strong>Amount</strong>
</div></td>
<td width="15%"><div align="center" class="style6"><strong>Room
Image</strong> </div></td>
<td width="15%"><div align="center"
class="style6"><strong>Details</Details></strong> </div></td>
<td width="18%"><div align="center" class="style6"><strong>Book</strong>
</div></td>
</tr>
<tr>
<td colspan="10"> </td>
</tr>
<?php
$qry=mysqli_query($conn,"select * from halls");
$i=1;
while($row=mysqli_fetch_array($qry))
{
?>
<tr>
<td width="2%"> </td>
<td><div align="center"><?php echo $row['sno'];?></div></td>
<td><div align="center"><?php echo $row['type'];?></div></td>
<td><div align="center"><?php echo $row['amnt'];?></div></td>
<td><div align="center"><img src="images\<?php echo $row['img'];?>"
width="135" height="130"></div></td>
<td><div align="center"><?php echo $row['desc'];?></div></td>
<td><div align="center"><a href="book2.php?sno=<?php echo
$row['sno'];?>&amnt=<?php echo $row['amnt'];?>">Book Hall</a></div></td>
</tr>
<tr>
<td height="21"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
60
<td> </td>
<td width="14%"> </td>
</tr>
<?php
$i++;
}
?>
<tr>
<td height="21" colspan="10" align="center"> </td>
</tr>
</table>
viewbooking.php
<table width="96%" align="center">
<tr>
<td colspan="10" align="center">Room Booking</td>
</tr>
<tr>
<td width="0%"> </td>
<td width="11%"><div align="center" class="style6"><strong>Room NO</strong>
</div></td>
<td width="12%"><div align="center" class="style6"><strong>Type</strong>
</div></td>
<td width="12%"><div align="center" class="style6"><strong>Bed</strong>
</div></td>
<td width="8%"><div align="center" class="style6"><strong>From</strong>
</div></td>
<td width="11%"><div align="center" class="style6"><strong>To</strong>
</div></td>
<td width="13%"><div align="center" class="style6"><strong>Amount Per
Day</strong> </div></td>
<td width="16%"><div align="center" class="style6"><strong>Total days</strong>
</div></td>
<td width="12%"><div align="center" class="style6"><strong>Total
Amount</strong> </div></td>
<td width="15%"><div align="center" class="style6"><strong>Status</strong>
</div></td>
</tr>
</form>
<tr>
61
<td colspan="10"> </td>
</tr>
<?php
$qry=mysqli_query($conn,"select * from book where uid='$uid'");
$i=1;
while($row=mysqli_fetch_array($qry))
{
$pid=$row['rno'];
$qry1=mysqli_query($conn,"select * from rooms where sno='$pid'");
$row1=mysqli_fetch_array($qry1);
?>
<tr>
<td width="0%"> </td>
<td><div align="center"><?php echo $row['rno'];?></div></td>
<td><div align="center"><?php echo $row1['type'];?></div></td>
<td><div align="center"><?php echo $row1['bed'];?></div></td>
<td><div align="center"><?php echo $row['sdate'];?></div></td>
<td><div align="center"><?php echo $row['edate'];?></div></td>
<td><div align="center"><?php echo $row['amnt'];?></div></td>
<td><div align="center"><?php echo $row['tdays'];?></div></td>
<td><div align="center"><?php echo $row['tamnt'];?></div></td>
<td><div align="center"><?php echo "booked"?></div></td>
<td width="2%"> </div></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<?php
$i++;
}
?>
<tr>
<td colspan="10" align="center"> </td>
</tr>
</table>
<br>
62
<br />
<tr>
<td width="0%"> </td>
<td><div align="center"><?php echo $row['rno'];?></div></td>
63
<td><div align="center"><?php echo $row1['type'];?></div></td>
<td><div align="center"><?php echo $row1['name'];?></div></td>
<td><div align="center"><?php echo $row['sdate'];?></div></td>
<td><div align="center"><?php echo $row['edate'];?></div></td>
<td><div align="center"><?php echo $row['amnt'];?></div></td>
<td><div align="center"><?php echo $row['tdays'];?></div></td>
<td><div align="center"><?php echo $row['tamnt'];?></div></td>
<td><div align="center"><?php echo "booked"?></div></td>
<td width="2%"> </div></td>
</tr>
<?php
$i++;
}
?>
</table>
<br />
<br />
<table width="96%" align="center">
<tr>
<td colspan="10" align="center">Hall Booking</td>
</tr>
<tr>
<td width="0%"> </td>
<td width="11%"><div align="center" class="style6"><strong>Room NO</strong>
</div></td>
<td width="12%"><div align="center" class="style6"><strong>Type</strong>
</div></td>
<td width="8%"><div align="center" class="style6"><strong>From</strong>
</div></td>
<td width="11%"><div align="center" class="style6"><strong>To</strong>
</div></td>
<td width="13%"><div align="center" class="style6"><strong>Amount Per
Day</strong> </div></td>
<td width="16%"><div align="center" class="style6"><strong>Total days</strong>
</div></td>
<td width="12%"><div align="center" class="style6"><strong>Total
Amount</strong> </div></td>
<td width="15%"><div align="center" class="style6"><strong>Status</strong>
</div></td>
</tr>
</form>
<tr>
<td colspan="10"> </td>
</tr>
64
<?php
$qry=mysqli_query($conn,"select * from booking2 where uid='$uid'");
$i=1;
while($row=mysqli_fetch_array($qry))
{
$pid=$row['rno'];
$qry1=mysqli_query($conn,"select * from halls where sno='$pid'");
$row1=mysqli_fetch_array($qry1);
?>
<tr>
<td width="0%"> </td>
<td><div align="center"><?php echo $row['rno'];?></div></td>
<td><div align="center"><?php echo $row1['type'];?></div></td>
<td><div align="center"><?php echo $row['sdate'];?></div></td>
<td><div align="center"><?php echo $row['edate'];?></div></td>
<td><div align="center"><?php echo $row['amnt'];?></div></td>
<td><div align="center"><?php echo $row['tdays'];?></div></td>
<td><div align="center"><?php echo $row['tamnt'];?></div></td>
<td><div align="center"><?php echo "booked"?></div></td>
<td width="2%"> </div></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<?php
$i++;
}
?>
<tr>
<td colspan="10" align="center"> </td>
</tr>
</table>
65
6. SYSTEM TESTING
66
the proven specifications and contains easily defined inputs and anticipated results.
Functional and trustability testing in an engineering terrain Producing tests for the
gestation of factors( bumps and vertices) of a product to ensure their correct gestation
prior to system integration.
To login, fill up the User Name and Password fields in this module.
Testing in which modules are combined and tested as a group. Modules are
generally law modules, individual operations, source and destination operations on a
network, etc. Integration testing follows unit testing and precedes system testing.
Testing occurs after the product is lawfully complete. Betas are frequently extensively
distributed, or indeed distributed to the public at large, in the hopes that they will buy
the final product upon its release.
67
Fig.6.2 New User Registration Page
68
Fig.6.3 New User Registration Page
Validate the account by verifying the required details in this module. If any
required detail is missed it alert the user to fill that field.
69
7. SYSTEM IMPLEMENTATION
SCREENSHOTS
This module contains the page such as about, package, amenities, property
rules, admin and user.
70
Fig.7.2 About Page
This pagee contains about the hotel such as location and hotel facilities.
This page contains the room packages such as types of rooms and rents are
displayed.
71
Fig.7.4 Amenities page
This page contains the amenities of the hotel such as Facilities, transfers,
safety and security, health and wellness etc.
This page contains the property rules of the hotel such as restrictions, safety,
food arrangement, property accessibility, payment related, smoking rules etc.
72
Fig.7.6 Admin Page
To login, admin can fill up the Email Address and Password fields in this
module.
In this page, admin fill the hall information such as hall capacity, hall type,
amount, image for this website.
73
Fig.7.8 Add Room Details Page
In this module, admin fill the room information such as room type, bed type,
amount, image for this website.
In this module, admin fill the vehicle information such as vehicle type, vehicle
name, amount, image for this website.
74
Fig.7.10 View User Details Page
In this module, admin views the details of particular user’s booking details.
In this module, admin views the details such as user booking rooms, halls and
vehicles.
75
Fig.7.12 New User Registration
In this module, all you have to do is fill in your personal information such as
your name, phone number, and email address for this website, then type your
password and hit the submit button.
To login, fill up the Email Address and Password fields in this module.
76
Fig.7.14 Room Details Page
In this module, user views the rooms information such as types of rooms, bed
type, amount per day, room image and book room.
In this module, user views the halls information such as types of hall, amount,
hall image, hall details and book.
77
Fig.7.16 Transport Details Page
In this module, user views the vehicles information such as vehicle id, vehicle
name, vehicle type, amount, image, details and book.
In this module, user fill check in and checkout date and then click the submit
button to pay.
78
Fig.7.18 Payment Page
In this module, user fill the details such as amount, card number, cvv number,
card name and then click the pay button.
79
8. CONCLUSION
The hotel room booking system was developed to satisfy all the proposed
conditions. The hostel’s advertising trouble is now accompanied by a virtual stint
created on the system. Also, this operation can be used far and wide, anytime. More
importantly, integrating web operations will give further convenience to handling
events because it allows for complete authentication in one checkup. Hence, we're in
the middle phase of operations development. Completion of this design will make this
operation live on the Web. This operation will also include an event phase. In this
phase, each event will be uploaded. These events will be viewed by the druggies as
well as the director.
In future advancements, this system can offer further services similar to flight
ticket purchase and holiday package advice. The unborn development of this
operation will also consider the point of making it platform independent.
80