Online Hotel Management System Project
Online Hotel Management System Project
2
3
4
5
6
7
8
Selection Reason of the Project
The biggest task when moving to any other city is to book a hotel for
yourself. Some hotels are either very expensive then some are below
standard. Finding a hotel by roaming around in this way is a very tuff task.
That's why we have selected hotel management. my project help to work
this problem
9
Title of the Project
10
Myself Komal Shikha enrolled for BCA 6th semester in "Indira Gandhi
National Open University". The theme of my project is Online Hotel
Administration automation system. I am going to develop a software
application Hotel E-Booking i.e., implemented by hotels to allow guests to
create secure online reservations. This project work bears the course code
BCSP-064.
The Hotel E-admin software has been provided many supports to hotel
manager to handle all hotel activities online. This project provides room
booking, staff management and other necessary hotel management
features.
This 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. This
system is useful for both customers and managers to portable manage the
hotel activities.
11
Introduction
12
My project " Online Hotel Administration automation system " is a fine thought
to make complex work of the Hotel management system to an easy manner
which is systematic, modular design and constructed system is very much user
friendly in which user can understand the tools and can do edit of his own
choice.
This project can be easily managed by the less educated or simple computer
knowledge person without any fault.
1. Online Users,
The online users are the customers or the staff who can view the information and
updates of the Hotel and the admin are responsible for updating the Hotels
details on computer. The administrator has the power to operate the system and
can change or edit the updates of the hotels.
In this system all the daily activities will be involved like Room activities, Entering
details of the new customer check in, Also provide a room as per the customer
need or interest, Recording of the checkout time and details of the customer will
also be available and all other regular activities of the Hotel will be recorded too.
The application of the Hotel management system bears following functions to use
by the Administrator:
1. Room status
14
The main objectives of this project is-
2. The searching of record has been made quite simple as all the
details of the customer can be obtained by simply keying in the
identification of that customer.
10. The main objective of the entire activity is to automate the process of
day to day activities of Hotel like
Room activities,
Admission of a New Customer,
Assign a room according to customer’s demand,
Checkout of a computer and releasing the room
Finally compute the bill etc.
Packages available. 7. Advance online bookings.
Online Cancellation.
List of Regular customers.
Email facility
Project category
16
Relational database management system (RDBMS) is nothing
more than a computerized record keeping system. It is a collection of
computerized data files. It will be given to perform a variety of operation data
record such as:
Normalization of Data
Normalization is the process of organizing data in the database. This includes
creating tables and establishing the relationships between those tables according to
the rules designed both to project the data and make the database more flexible by
eliminating two factors: redundancy and dependency.
SOFTWARE REQUIREMENTS:
Windows 10
Office 2019
TOOLS USED:
XAMPP
Dreamweaver CS-3
19
REQUIREMENT ANALYSIS
Functional Requirements
The system supports customers booking and able to modify them.
Customers can search based on hotels, availability of rooms and so on.
When a customer search for hotels or rooms and the search result
must contain hotels or rooms information and also its availability
20
within choose in check in or check out date.
Customer able to cancel their booking from their account.
Admin or staffs able to edit customers booking information(updating
check in, check out ,room preferences, bed preferences and also
cancelling booking).
Customer can book online and pay with credit or debit card.
The system must send booking confirmation email after successful
payment.
Customer can write reviews about hotels and rooms and also rate
them.
Customer can send feedback or call the company for booking
purposes.
Creating new Entity (Hotel, Room, Customers, Members etc.) This is
used to add a new employee details, delete entity details and view the
details. In that screen, the automatic item is created. In this function,
whenever a new entity is required to be added the corresponding
forms are opened and the database is manipulated to check whether
the data is already existing or not. If it already exists, then it prompts
that “Entry already existing” and if not than the data is entered with
the various validation checks.
Password In this module, this website is for multiple users. If a User
enters a password and the software checks its validity. If the password
is valid then option is given to change the password, otherwise
“Invalid User/Password” message is displayed. There is an option for
password recovery, log out, login, new users sign in. The Administrator
can also update changes in the site after login.
Function NEW_ROOM() This is the function used to open a new room
for a customer so that he/she can assign a separate room . In that
screen, the automatic room number is created. After opening a new
room for the customer, finally a room is assigned to a customer and
the room records are appended in the data file.
Function GENERATE_BILL() When any customer check-out, his/her bill
is generated automatically by calculated check-out date minus check-
in date and getting multiplied it by daily room charge plus other
charges and the bill has to be saved in the table in the database.
Function DISPLAY_RECORD() This function is used to display all the
transaction including the customer name, address, phone, bed
number, and doctor assigned to him/her in the screen. This is a global
21
repor to display all the transaction records in the screen.
Non-functional Requirements
The system must ensure that all the transferable data as for examples
customers credit or debit card number ,CVV code, e-payment should
be done in secured connection.
The system must be able to handle multiple transactions at a time.
The system must provide customers 24*7 hours online booking
service.
The system should support almost all the browsers (Internet Explorer,
Chrome, Mozilla Firefox).
Customers need to cancel the booking before 24hrs. Otherwise their
credit card will be charged for one day.
In promotion time the system will charge credit card promptly.
22
0-LEVEL
23
0-LEVEL
24
1-LEVEL
25
Data flow of employee service
2-LEVEL
26
ER-Diagram
Module
27
As all the programming is divided into different modules and they will interact with
each other to maintain the data and information. Modular structure is designed with
the consideration of the case to maintain the logic for modification and
maintenance. Since program has to interact with the database. Each module is
interacting with database and gives the desired output as follows-
Admin varchar 20 PK
Password Varchar 20
Customer Details
C_id varchar 20 PK
Password Varchar 20
F_Name Varchar 30
L_Name Varchar 30
City Varchar 50
State Varchar 30
Gender Varchar 6
Contact_no Int 10
e_mail Varchar 20
Employee
C_id varchar 20 PK
Amount int 5
Vat. float 5
Total Int 5
accommodation search
Price Int 4
30
Arability varchar 5
registration
F_name varchar 20
F_name varchar 20
E_mail varchar 30
Process Logic
As all programming is divided into different modules and they will interact with each
other to maintain the data and information. Modular structure is designed with the
consideration of ease to maintain the logic for modification and maintenance.
Science program has to interact with the database and give the desired output as
follows:
31
Employee Login Module : This module will provides user interface to enter
existing employee to the Software and adding entry for new user with there
all concerning information and details like user id , password , the validity of
user in the database. It is totally under control of DBA.
Admin Login Module : If the user is DBA, this module provides the facility
to enter important notice, view & edit customer Detail, view & edit customer
Bill Generate, Employee Attendance, etc.
Testing
Testing
Testing is the activity where the errors remaining from all the previous phases
must be detected. Hence, testing performs a very critical role for ensuring quality.
The focus of this topic is primarily on system testing in which the entire software
is tested, though testing is also performed on individual programs written by
programmers and the concept discussed are also applicable for individual
program testing.
Testing is a dynamic method for verification and validation, where the system to
be tested is executed and the behaviour of the system is observed.
During testing, the program to be tested is executed with the set of test cases and
the output of the program for the test cases is evaluated to determine if the
performing as expected.
The following are the two fundamental goals of a practical testing activity:
Testing is the major quality control measure used during software development. It
is the basic function to detect errors in the software. The goal of testing is to
uncover requirement, design and coding error in the program.
Testing methodologies:
Integrated Testing
Integration testing takes as its input modules that have been unit tested, groups
them in larger aggregates, applies tests defined in an integration test plan to those
aggregates, and delivers as its output the integrated system ready for system
testing.
Some different types of integration testing are big bang, top-down, and bottom-up.
A type of “Big Bang” Integration testing is called Usage Model testing. Usage Model
testing can be used in both software and hardware integration testing. The basis
behind this type of integration testing is to run user-like workloads in integrated
user-like environments. In doing the testing in this manner, the environment is
proofed, while the individual components are proofed indirectly through their use.
Usage Model testing takes an optimistic approach to testing, because it expects to
have little problems with the individual components. The strategy relies heavily on
the component developers to do the isolated unit testing for their product. The goal
of the strategy is to avoid redoing the testing done by the developers, and instead
flesh out problems caused by the interaction of the components in the environment.
For integration testing, Usage Model testing can be more efficient and provides
better test coverage than traditional focused functional integration testing. To be
more efficient and accurate, care must be used in defining the user-like workloads
for creating realistic scenarios in exercising the environment. This gives added
comfort that the integrated environment will work as expected for the target
customers.
Another is the Bottom Up testing. All the bottom or low-level modules, procedures
or functions are integrated and then tested. After the integration testing of lower
level integrated modules, the next level of modules will be formed and can be used
for integration testing. This approach is helpful only when all or most of the
modules of the same development level are ready. This method also helps to
determine the levels of software developed and makes it easier to report testing
progress in the form of a percentage.
35
Report Generation
In-customer Record
Leaving customer Record
In-Customer Bill Generatation
Out-customer Record
Query Record
Important contact number
Employee Detail Record
36
Employee Attendance Report
Inventory Detail Record
Future Scope
In future as per requirement, the system have to be developed for changing the
status of the Hotel. It will give various kind of reports.
37
HMS provides manifold benefits to Hotel whether large or medium
sized.
38
Introduction
My project " Online Hotel Administration automation system " is a fine thought
to make complex work of the Hotel management system to an easy manner
which is systematic, modular design and constructed system is very much user
friendly in w hich user can understand the tools and can do edit of his own
choice.
This project can be easily managed by the less educated or simple computer
knowledge person without any fault.
The online users are the customers or the staff who can view the information and
updates of the Hotel and the admin are responsible for updating the Hotels
details on computer. The administrator has the power to operate the system and
can change or edit the updates of the hotels.
In this system all the daily activities will be involved like Room activities, Entering
details of the new customer check in, Also provide a room as per the customer
need or interest, Recording of the checkout time and details of the customer will
also be available and all other regular activities of the Hotel will be recorded too.
The application of the Hotel management system bears following functions to use
by the Administrator:
1. Room status
Mainly this system is developed for hotels those those are using a manual system
to handle hotel processes. This system will automate the major operations of the
hotel. The main aim of the entire activity is to automate the process of day to day
activities of Hotel.
The main objective of the entire activity is to automate the process of day to day
activities of Hotel. Using this system you can manage room activities and keep
track of admission of a New Customer. Using this system you can check rooms
according to customer’s need and can assign easily room to customer. Checkout
of a customer and updating the releasing room information in the system is very
easy. When user do checkout system will generate final bill after calculating all
the bills. User can also check online, all the packages available. He can also books
40
room online and he can cancel booked room online. Hotel management can also
check the list of Regular customers and feedback of the hotel’s customer.
13.To provide Hotel a medium to publish its news or updates to all the
customer who will visit the site.
41
15.This software application will help admin to handle customers
information ,room allocation details ,payment details, billing
information, etc.
The objective of the project is to computerize the system of the hotel, “Hotel
Management” is the project not only keeps the records of various people like
customers, manager etc. but as well as it reduce the extensive paper work in the
present system. It wills maker the system more versatile and user friendly. It also
calculates the proper billing slip of high level and middle level customers. This
project is based on description about the structure of HOTEL MANAGEMENT
SYSTEM.
Room activities,
Admission of a New Customer,
Assign a room according to customer’s demand,
Checkout of a computer and releasing the room
Finally compute the bill etc.
Packages available. 7. Advance online bookings.
Online Cancellation.
List of Regular customers.
Email facility
System Connectivity
No data duplication
Cost Efficient
Project category
Relational database management system (RDBMS) is nothing
more than a computerized record keeping system. It is a collection of
computerized data files. It will be given to perform a variety of operation data
record such as:
Normalization of Data
Normalization is the process of organizing data in the database. This includes
creating tables and establishing the relationships between those tables according to
the rules designed both to project the data and make the database more flexible by
eliminating two factors: redundancy and dependency.
44
TOOLS AND PLATFORMS USED
HARDWARE REQUIREMENTS:
RAM 8GB
SSD 512 GB
Keyboard
Mouse
Pointer
SOFTWARE REQUIREMENTS:
45
Windows 10
Office 2019
TOOLS USED:
XAMPP
Dreamweaver CS-3
HTML
CSS
JAVASCRIPT
Server : Apache
Tools : PHPMyAdmin
Language : MySQL
46
TOOLS USED
XAMPP helps a local host or server to test its website and clients via
computers and laptops before releasing it to the main server. It is a platform
that furnishes a suitable environment to test and verify the working of
projects based on Apache, Perl, MySQL database, and PHP through the
system of the host itself. Among these technologies, Perl is a programming
language used for web development, PHP is a backend scripting language,
and MariaDB is the most vividly used database developed by MySQL.
XAMPP is one of the widely used cross-platform web servers, which helps
developers to create and test their programs on a local webserver. It was
developed by the Apache Friends, and its native source code can be
revised or modified by the audience. It consists of Apache HTTP Server,
MariaDB, and interpreter for the different programming languages like
PHP and Perl. It is available in 11 languages and supported by different
platforms such as the IA-32 package of Windows & x64 package of macOS
and Linux.
47
Dreamweaver CS-3
Adobe Dreamweaver is a software program for designing web pages,
essentially a more fully featured HTML web and programming editor. The
program provides a WYSIWYG (what you see is what you get) interface to
create and edit web pages. Dreamweaver supports many markup languages,
including HTML, XML, CSS, and JavaScript. As for human languages, it
supports English, Spanish, French, German, Japanese, Chinese (both
simplified and traditional), Italian, Russian, and many more.
48
Backend Tools and Language:
Features:
Multiple-server administration
Web interface
Advantages of PhpMyAdmin:
Supports and acts flexible for majority of the commonly used file
formats, which comes in handy for documentation purposes while
working on the database management system.
Disadvantages of PhpMyAdmin:
49
It cannot be used for any and all databases, as it supports only MySQL
and MariaDB.
Though it supports the classic servers and systems, its growth is not
parallel to the technological growth of the current industry standards.
Features of MySQL :
MySQL is simple and easy to use we can build and interact with
MySQL with only the basic knowledge of MySQL and a few
simple SQL statements.
50
Disadvantages of MySQL:
51
Frontend Tools Used
HTML (Hypertext Markup Language):
Example
</html><!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
</body>
52
CSS(Cascading Style Sheets)
CSS stands for Cascading Style Sheets.
CSS describes how HTML elements are to be displayed on
screen, paper, or in other media.
CSS saves a lot of work. It can control the layout of
multiple web pages all at once.
o External stylesheets are stored in CSS files.
CSS Example
body {
background-color: lightblue;
h1 {
color: white;
text-align: center;
p{
font-family: verdana;
font-size: 20px;
53
HTML was NEVER intended to contain tags for formatting a web
page!
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
When tags like <font>, and color attributes were added to the
HTML 3.2 specification, it started a nightmare for web
developers. Development of large websites, where fonts and
color information were added to every single page, became a
long and expensive process.
54
Java script
JavaScript (js) is a light-weight object-oriented programming language
which is used by several websites for scripting the webpages. It is an
interpreted, full-fledged programming language that enables dynamic
interactivity on websites when applied to an HTML document. It was
introduced in the year 1995 for adding programs to the webpages in the
Netscape Navigator browser. Since then, it has been adopted by all other
graphical web browsers. With JavaScript, users can build modern web
applications to interact directly without reloading the page every time. The
traditional website uses js to provide several forms of interactivity and
simplicity.
55
There are following features of JavaScript:
6. It is a case-sensitive language.
56
SERVER Tools and Language
Compiler and Engine : Zend
The Zend Engine PHP compiler is a special kind of compiler that provides
a platform to compile the PHP program and also offers the runtime
engine. It can also be considered as a special kind of program that is
written in order to provide a complete solution to compile and render the
code written in PHP programming language. It works the same way as
that of the compiler by offering something much more this. This program
can be deployed in the server side to serve the execution of the PHP
script which has to be sent to the client from here the script run request
was originated.
The working of the Zend engine is very simple and has been defined
below using the diagram. In normal terms, the PHP code is turned into
the machine level language which is then processed by the processor. But
when working with the Zend compiler, the PHP script is turned into the
Zend Opcodes. The opcodes are then leveraged while the generation of
the HTML page that is served to the client eventually. It works in a simple
manner and provides additional features as compared to the normal
compiler. The Zend Engine also offers the runtime engine that lets the
user work with the program. Though the Zend engine provides the
platform to compile, it has to load the PHP script into the memory before
it could initiate the entire compiling process.
The reason for preferring the Zend engine over the other PHP compiler
program is the additional functionalities that it offers. No compiler assists
in the actual running of the program but the runtime engine provided by
Zend engine helps us in running the application as well. In addition to
that, it also provides assistance which is offered by Zend technologies. As
57
shown in the above diagram, the HTML is generated using the Zend
Opcodes, where the output generated using PHP is combined with HTML
in order to serve the output to the user in a simple and understandable
form. Eventually, the client or a web browser that has initiated the
request to run the script is served with the output and it all happens
using the Zend engine.
58
Server : Apache
An Apache Server is a web server application that delivers content such as
HTML pages, multimedia and CSS Style sheets over the internet. Apache is
a community-developed web application published by the Apache Software
Foundation. It is arguably the most popular web server software available
on the World Wide Web and is most commonly found on Unix based
operating systems such as Linux, OSX, Solaris and FreeBSD.
59
implemented by service providers to offer clients web hosting solutions,
like Atlantic.Net's HIPAA compliant website hosting, and content delivery.
60
Language : PHP (Hypertext Preprocessor)
The PHP Hypertext Preprocessor (PHP) is a programming language that
allows web developers to create dynamic content that interacts with
databases. PHP is basically used for developing web based software
applications.
PHP started out as a small open source project that evolved as more and
more people found out how useful it was. Rasmus Lerdorf unleashed the
first version of PHP way back in 1994.
61
PHP Syntax is C-Like.
Characteristics of PHP
Simplicity
Efficiency
Security
Flexibility
62
Project analysis
This software is mainly made for management of a Hotel. The software has
been designed with front-end as Dreamweaver and backend as PHP.
Additon of the record of the customer who comes into the hotel, deletion of
the record when customer leaves the hotel, printing and calculation of the
bill , record of facilities available in the hotel, allotment of the rooms etc. In
this project we have also analysed that the project or software should npt be
very costly but its quality and interface must be attractive. If any wrong
operation is being performed then the software must invoke the operation
accordingly.
FEASIBILITY STUDY
A feasibility study is carried out to select the best system thet must
performance requirement and its working ability in an organization.
Functional Requirements
63
The system supports customers booking and able to modify them.
Customers can search based on hotels, availability of rooms and so on.
When a customer search for hotels or rooms and the search result
must contain hotels or rooms information and also its availability
within choose in check in or check out date.
Customer able to cancel their booking from their account.
Admin or staffs able to edit customers booking information(updating
check in, check out ,room preferences, bed preferences and also
cancelling booking).
Customer can book online and pay with credit or debit card.
The system must send booking confirmation email after successful
payment.
Customer can write reviews about hotels and rooms and also rate
them.
Customer can send feedback or call the company for booking
purposes.
Creating new Entity (Hotel, Room, Customers, Members etc.) This is
used to add a new employee details, delete entity details and view the
details. In that screen, the automatic item is created. In this function,
whenever a new entity is required to be added the corresponding
forms are opened and the database is manipulated to check whether
the data is already existing or not. If it already exists, then it prompts
that “Entry already existing” and if not than the data is entered with
the various validation checks.
Password In this module, this website is for multiple users. If a User
enters a password and the software checks its validity. If the password
is valid then option is given to change the password, otherwise
“Invalid User/Password” message is displayed. There is an option for
password recovery, log out, login, new users sign in. The Administrator
can also update changes in the site after login.
Function NEW_ROOM() This is the function used to open a new room
for a customer so that he/she can assign a separate room . In that
screen, the automatic room number is created. After opening a new
room for the customer, finally a room is assigned to a customer and
the room records are appended in the data file.
Function GENERATE_BILL() When any customer check-out, his/her bill
is generated automatically by calculated check-out date minus check-
in date and getting multiplied it by daily room charge plus other
64
charges and the bill has to be saved in the table in the database.
Function DISPLAY_RECORD() This function is used to display all the
transaction including the customer name, address, phone, bed
number, and doctor assigned to him/her in the screen. This is a global
repor to display all the transaction records in the screen.
Non-functional Requirements
The system must ensure that all the transferable data as for examples
customers credit or debit card number ,CVV code, e-payment should
be done in secured connection.
The system must be able to handle multiple transactions at a time.
The system must provide customers 24*7 hours online booking
service.
The system should support almost all the browsers (Internet Explorer,
Chrome, Mozilla Firefox).
Customers need to cancel the booking before 24hrs. Otherwise their
credit card will be charged for one day.
In promotion time the system will charge credit card promptly.
65
0-LEVEL
66
0-LEVEL
67
1-LEVEL
68
Data flow of employee service
2-LEVEL
69
ER-Diagram
70
A Complete Structure
No. of Module and their description
As all the programming is divided into different modules and they will interact with
each other to maintain the data and information. Modular structure is designed with
the consideration of the case to maintain the logic for modification and
maintenance. Since program has to interact with the database. Each module is
interacting with database and gives the desired output as follows-
71
Database of The Project
Master Login
Admin varchar 20 PK
Password Varchar 20
Customer Details
C_id varchar 20 PK
Password Varchar 20
F_Name Varchar 30
L_Name Varchar 30
City Varchar 50
State Varchar 30
Gender Varchar 6
Contact_no Int 10
e_mail Varchar 20
Employee
C_id varchar 20 PK
Amount int 5
Vat. float 5
Total Int 5
accommodation search
73
Price Int 4
Arability varchar 5
registration
F_name varchar 20
F_name varchar 20
E_mail varchar 30
Reports Generations
In this project reports are generated for the following entities:
a) Customer Details
74
b) Requirements of the Customer
c) Rooms Details
d) Bill Details
e) Checkin Reports
f) Booking Details
g) Online Bookings
h) Checkout Details
i) Membership Details
j) Packages Available.
Process Logic
As all programming is divided into different modules and they will interact with
each other to maintain the data and information. Modular structure is designed
with the consideration of ease to maintain the logic for modification and
75
maintenance. Science program has to interact with the database and give the
desired output as follows:
Client Login Module : This module will provides user interface to client
registration, room booking, cancel booking,etc.
Employee Login Module : This module will provides user interface to enter
existing employee to the Software and adding entry for new user with
there all concerning information and details like user id , password , the
validity of user in the database. It is totally under control of DBA.
Admin Login Module : If the user is DBA, this module provides the facility
to enter important notice, view & edit customer Detail, view & edit
customer Bill Generate, Employee Attendance, etc.
76
77
index.php
78
<?php
session_start();
error_reporting(1);
include('connection.php');
?>
<!DOCTYPE html>
<html lang="en">
<title>hotelrepublic.co.in</title>
<meta charset="utf-8">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.
css">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></s
cript>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"
></script>
<link href="https://fonts.googleapis.com/css?family=Abril+Fatface"
rel="stylesheet">
<link href="css/style.css"rel="stylesheet"/>
<body style="margin-top:50px;">
<?php
include('Menu Bar.php')
79
?>
<ol class="carousel-indicators">
</ol>
<?php
$i=1;
while($slider=mysqli_fetch_assoc($sql))
$slider_img=$slider['image'];
$slider_cap=$slider['caption'];
$path="image/Slider/$slider_img";
if($i==1)
80
?>
<div class="carousel-caption">
</div>
</div>
<?php
else
?>
<div class="item">
<div class="carousel-caption">
</div>
</div>
<?php } ?>
81
</div>
<span class="sr-only">Previous</span>
</a>
<span class="sr-only">Next</span>
</a>
<div class="row">
82
<?php
while($r_res=mysqli_fetch_assoc($sql))
?>
<div class="col-sm-4">
</div>
<?php } ?>
</div>
</div>
</div>
</div>
<?php
include('Footer.php')
?>
83
</body>
</html>
Menu.php
<?php
session_start();
$eid=$_SESSION['create_account_logged_in'];
error_reporting(1);
?>
84
<!--Menu Bar Close Here-->
<div class="container">
<div class="navbar-header">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<img src="logo/logo2.png"/width="160px"height="40px"style="margin-
top:5px;">
</div>
<li><a href="index.php"title="Home">Home</a></li>
</ul>
85
<?php
if($_SESSION['create_account_logged_in']!="")
?>
<ul class="dropdown-menu">
<li><a href="profile.php">Profile</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</li>
<?PHP } else
?>
</li>
<?php
} ?>
</ul>
</div>
</div>
</nav>
86
<!--Menu Bar Close Here-->
footer.php
<?php
include('connection.php');
extract($_REQUEST);
if(isset($send))
87
?>
<div class="container-fluid">
<img
src="logo/logo2.png"width="200px"height="50px"/><br><br>
<?php
include('Social ican.php')
?>
</div>
<p style="color:white;"><strong>Address: </strong>Sector,59
Main Road, Purnia</p>
<p style="color:white;"><strong>Email-
Id:hotelrepublic</strong>@gmail.com</p>
88
<p style="color:white;"><strong>Contact Us: </strong>(+91)
98355112200</p><br><br><br>
<center><img src="image/devlop/img2.png"class="img-
responsive"style="width:200px;height:150px;border-
radius:100%;"></center>
</div>
<div class="panel-heading">Feedback</div>
<div class="panel-body">
<div class="feedback">
<div class="form-group">
</div>
<div class="form-group">
</div>
<div class="form-group">
89
</div>
<div class="form-group">
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</footer>
</footer>
90
<!--Footer2 start Here-->
Socialmedia.php
<!DOCTYPE html>
<html>
<head>
<style>
.fa {
padding:20px;
font-size:20px;
91
text-align:center;
border-radius:50%;
text-decoration:none;
.fa:hover {
opacity: 0.7;
.fa-facebook {
background: #3B5998;
color: white;
.fa-twitter {
background: #55ACEE;
color: white;
.fa-google-plus{
background: #dd4b39;
color: white;
92
.fa-linkedin {
background: #007bb5;
color: white;
.fa-youtube {
background: #bb0000;
color: white;
.fa-instagram {
background: #125688;
color: white;
</style>
</head>
<body>
93
<a href="https://linkedin.com/" class="fa fa-
linkedin"target="blank"title="linkedin"></a>
</body>
</html>
Mail.php
<?php
$name = $_REQUEST['name'];
$email = $_REQUEST['email'];
$mob = $_REQUEST['mob'];
$name = $_REQUEST['name'];
94
$mail_body = "Name : ".$name;
$to = "[email protected]";
//$to = "[email protected]";
$headers .= "Content-type:text/html;charset=iso-8859-1"
. "\r\n";
95
echo "<script>alert('Thank You For Contact
Me.')</script>";
echo "<script>window.location='index'</script>";
else
?>
96
image gallery.php
<!DOCTYPE html>
<html lang="en">
<title>Republic Hotel</title>
<meta charset="utf-8">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.
css">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></s
cript>
97
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"
></script>
<link href="css/style.css"rel="stylesheet"/>
<body style="margin-top:50px;">
<?php
include('Menu Bar.php')
?>
<div class="container">
<h2>Image Gallery</h2>
<div class="row">
<div class="col-md-4">
<div class="thumbnail">
</a>
</div>
</div>
<div class="col-md-4">
<div class="thumbnail">
98
<img src="image/image gallery/2.jpg" alt="img2 Not Show"
style="width:100%;height:160px;">
</a>
</div>
</div>
<div class="col-md-4">
<div class="thumbnail">
</a>
</div>
</div>
<div class="col-md-4">
<div class="thumbnail">
</a>
</div>
</div>
<div class="col-md-4">
<div class="thumbnail">
99
<img src="image/Luxury Room/Luxury_img9.jpg" alt="img3 Not
Show" style="width:100%;height:160px;">
</a>
</div>
</div>
<div class="col-md-4">
<div class="thumbnail">
</a>
</div>
</div>
<div class="col-md-4">
<div class="thumbnail">
</a>
</div>
</div>
<div class="col-md-4">
<div class="thumbnail">
100
<img src="image/image gallery/5.jpg" alt="img5 Not Show"
style="width:100%;height:160px;">
</a> </div>
</div>
<div class="col-md-4">
<div class="thumbnail">
</a>
</div>
</div>
<div class="col-md-4">
<div class="thumbnail">
</a>
</div>
</div>
</div>
</div>
<?php
include('Footer.php')
?>
101
</body>
</html>
102
Login.php
<?php
session_start();
error_reporting(1);
if($_SESSION['create_account_logged_in']!="")
header('location:Booking Form.php');
error_reporting(1);
require('connection.php');
extract($_REQUEST);
if(isset($login))
if($eid=="" || $pass=="")
else
103
$sql=mysqli_query($con,"select * from create_account where email='$eid'
&& password='$pass' ");
if(mysqli_num_rows($sql))
$_SESSION['create_account_logged_in']=$eid;
header('location:Booking Form.php');
else
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Repblic Hotel</title>
<meta charset="utf-8">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.
css">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></s
cript>
104
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"
></script>
<link href="css/style.css"rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css?family=Akronim|
Libre+Baskerville" rel="stylesheet">
</head>
<body style="margin-top:50px;">
<?php
include('Menu Bar.php')
?>
<div class="container">
<div class="row"><br>
<div class="col-sm-4"></div>
<form method="post"><br>
<div class="form-group">
105
<input type="Email" class="form-
control"name="eid"placeholder="Email Id" autocomplete="off"required >
</div>
<div class="form-group">
</div>
</div>
</form><br>
</div>
</div><br>
</div>
</div>
<?php
include('Footer.php')
?>
</body>
</html>
106
107
Registation form.php
<?php
include('connection.php');
extract($_REQUEST);
if(isset($save))
if(mysqli_num_rows($sql))
else
$sql="insert into
create_account(name,email,password,mobile,address,gender,country,pictrur
e)
values('$fname','$email','$Passw','$mobi','$addr','$gend','$countr','$pict')";
if(mysqli_query($con,$sql))
header('location:Login.php');
}
108
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Hotel Republic</title>
<meta charset="utf-8">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.
css">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></s
cript>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"
></script>
<link href="css/style.css"rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css?family=Baloo+Bhai"
rel="stylesheet">
</head>
<body style="margin-top:50px;">
<?php
include('Menu Bar.php');
?>
109
<div class="container-fluid"style="background-
color:#4286f4;color:#000;"> <!-- Primary Id-->
<div class="container">
<div class="row">
<div class="col-sm-2"></div>
<form class="form-horizontal"method="post">
<div class="form-group">
<div class="col-sm-7">
</div>
</div>
<div class="form-group">
<div class="col-sm-7">
</div>
110
</div>
<div class="form-group">
<div class="col-sm-7">
</div>
</div>
<div class="form-group">
<div class="col-sm-7">
</div>
</div>
<div class="form-group">
<div class="col-sm-7">
</div>
</div>
111
<div class="form-group">
<div class="col-sm-7">
<input type="radio"
name="gend"value="male"required><b>Male</b> 
<input type="radio"
name="gend"value="male"required><b>Female</b> 
<input type="radio"
name="gend"value="male"required><b>Other</b>
</div>
</div>
<div class="form-group">
<div class="col-sm-7">
<option>India</option>
<option>Pakistan</option>
<option>China</option>
</select>
</div>
</div>
<div class="form-group">
112
<div class="control-label col-sm-5"><h4 id="top">profile pic
:</h4></div>
<div class="col-sm-7">
</div>
<div class="row">
<div class="col-sm-6"style="text-align:right;"><br>
</div>
</div>
</div>
</form>
</div>
</div>
<div class="col-sm-4">
</div>
</div>
</div>
</div>
<?php
include('Footer.php')
?>
</body>
113
</html>
114
115
116
forgetPassword.php
<?php
include('connection.php');
error_reporting(1);
extract($_REQUEST);
if(isset($submit))
if(mysqli_num_rows($sql))
$res=mysqli_fetch_assoc($sql);
else
?>
<!DOCTYPE html>
<html lang="en">
117
<head>
<title>Hotel Republic</title>
<meta charset="utf-8">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.
css">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></s
cript>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"
></script>
<link href="css/style.css"rel="stylesheet"/>
</head>
<body style="margin-top:50px;">
<?php
include('Menu Bar.php')
?>
<div class="container">
<div class="row">
<div class="col-sm-3"></div>
<div class="col-sm-6">
118
<h1 style="margin-top:50px;padding-top:50px;">Forgot Account?
</h1><hr>
<form method="post">
<div class="form-group">
</div><hr>
</form><br><br><br><br>
</div>
</div>
</div>
</div>
<?php
include('Footer.php')
?>
</body>
</html>
119
120
Booking Form.php
<?php
include('Menu Bar.php');
include('connection.php');
if($eid=="")
header('location:Login.php');
$result=mysqli_fetch_assoc($sql);
//print_r($result);
extract($_REQUEST);
error_reporting(1);
if(isset($savedata))
if(mysqli_num_rows($sql))
else
121
$sql="insert into
room_booking_details(name,email,phone,address,city,state,zip,contry,room
_type,Occupancy,check_in_date,check_in_time,check_out_date)
values('$name','$email','$phone','$address','$city','$state','$zip','$country',
'$room_type','$Occupancy','$cdate','$ctime','$codate')";
if(mysqli_query($con,$sql))
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Online Hotel.com</title>
<meta charset="utf-8">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.
css">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></s
cript>
122
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"
></script>
<link href="css/style.css"rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css?family=Lobster"
rel="stylesheet">
</head>
<body style="margin-top:50px;">
<?php
include('Menu Bar.php');
?>
<div class="container">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<div class="row">
<div class="col-sm-8">
123
<input type="text" value="<?php echo $result['name']; ?>"
readonly="readonly" class="form-control" name="name"
placeholder="Enter Your Frist Name"required>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-sm-8">
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-sm-8">
</div>
124
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-sm-8">
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-sm-8">
</div>
</div>
</div>
<div class="form-group">
125
<div class="row">
<div class="col-sm-8">
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-sm-8">
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<div class="row">
<div class="col-sm-7">
126
<select class="form-control" name="room_type"required>
<option>Deluxe Room</option>
<option>Luxurious Suite</option>
<option>Standard Room</option>
<option>Suite Room</option>
</select>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<div class="row">
<div class="col-sm-7">
</div>
</div>
</div>
</div>
127
<div class="col-sm-6">
<div class="form-group">
<div class="row">
<div class="col-sm-7">
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<div class="row">
<div class="col-sm-7">
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
128
<div class="row">
<div class="col-sm-7">
</div>
</div>
</div>
</div>
</form><br>
</div>
</div>
</div>
</div>
<?php
include('Footer.php')
?>
</body>
</html>
129
130
Order.php
<?php
session_start();
error_reporting(1);
include('connection.php');
echo $eid=$_SESSION['create_account_logged_in'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Online Hotel.com</title>
<meta charset="utf-8">
131
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.
css">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></s
cript>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"
></script>
<link href="css/style.css"rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css?family=Lobster"
rel="stylesheet">
</head>
<body style="margin-top:50px;">
<?php
include('Menu Bar.php');
?>
<div class="container">
<div class="row">
<tr>
132
<th>Name</th>
<th>Email</th>
<th>Mobile Number</th>
<th>Address</th>
<th>Contury</th>
<th>Room Type</th>
<th>Check In Date</th>
<th>Check In Time</th>
<th>Occupancy</th>
<th>Cancel</th>
</tr>
<?php
while($result=mysqli_fetch_assoc($sql))
$oid=$result['id'];
echo "<tr>";
echo "<td>".$result['name']."</td>";
echo "<td>".$result['email']."</td>";
echo "<td>".$result['phone']."</td>";
echo "<td>".$result['address']."</td>";
133
echo "<td>".$result['contry']."</td>";
echo "<td>".$result['room_type']."</td>";
echo "<td>".$result['check_in_date']."</td>";
echo "<td>".$result['check_in_time']."</td>";
echo "<td>".$result['check_out_date']."</td>";
echo "<td>".$result['Occupancy']."</td>";
echo "</tr>";
?>
</table>
</div>
</div>
</div>
<?php
include('Footer.php')
?>
</body>
</html>
cancilOrder.php
134
<?php
include('../connection.php');
$oid=$_GET['booking_id'];
if($q)
header('location:dashboard.php?option=booking_details');
?>
135
Admin/index.php
<?php
session_start();
error_reporting(1);
require('../connection.php');
extract($_REQUEST);
if(isset($login))
if($eid=="" || $pass=="")
136
else
if(mysqli_num_rows($sql))
$_SESSION['admin_logged_in']=$eid;
header('location:dashboard.php');
else
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Online Hotel.Com</title>
<meta charset="utf-8">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.
css">
137
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></s
cript>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"
></script>
<link href="../css/style.css"rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css?family=Akronim|
Libre+Baskerville" rel="stylesheet">
</head>
<body id="primary"style="margin-top:50px;">
<?php
include('Menu Bar.php');
?>
<div class="container">
<div class="row"><br>
<div class="col-sm-4"></div>
138
<img src="../image/clipart/user.png"alt="Bird" width="200"
height="170"style="padding-top:30px;">
<div class="form-group">
</div>
<div class="form-group">
</div>
</form><br>
</div>
</div><br>
</div>
</div>
<?php
include('Footer.php');
?>
</body>
</html>
139
140
Dashboard.php
<?php
session_start();
extract($_REQUEST);
include('../connection.php');
$admin=$_SESSION['admin_logged_in'];
if($admin=="")
header('location:index.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
141
<title>Hotel Republic</title>
<meta charset="utf-8">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.
css">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></s
cript>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"
></script>
<style>
.navbar {
margin-bottom: 0;
border-radius: 0;
</style>
</head>
<body>
<div class="container-fluid">
<div class="navbar-header">
142
<button type="button" class="navbar-toggle collapsed" data-
toggle="collapse" data-target="#navbar" aria-expanded="false" aria-
controls="navbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<li><a href="dashboard.php?
option=admin_profile">Profile</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</div>
</div>
</nav>
<div class="container-fluid">
<div class="row">
143
<li><a href="dashboard.php?option=update_password">Update
Password</a></li>
<li><a href="dashboard.php?
option=feedback">Feedback</a></li>
<li><a href="dashboard.php?option=rooms">Room</a></li>
<li><a href="dashboard.php?
option=booking_details">Booking Details</a></li>
<li><a href="dashboard.php?option=user_registration">User
Registration</a></li>
<li><a href="dashboard.php?
option=slider">Slider</a></li>
<li><a href="#">Payment</a></li>
<li class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
</ul>
</div>
<?php
@$opt=$_GET['option'];
if($opt=="")
144
{
include('reports.php');
else
if($opt=="feedback")
include('feedback.php');
else if($opt=="slider")
include('slider.php');
else if($opt=="update_slider")
include('update_slider.php');
else if($opt=="add_slider")
include('add_slider.php');
else if($opt=="update_password")
include('update_password.php');
145
}
else if($opt=="rooms")
include('rooms.php');
else if($opt=="add_rooms")
include('add_rooms.php');
else if($opt=="delete_room")
include('delete_room.php');
else if($opt=="update_room")
include('update_room.php');
else if($opt=="booking_details")
include('booking_details.php');
else if($opt=="user_registration")
146
{
include('user_registration.php');
else if($opt=="admin_profile")
include('admin_profile.php');
?>
</div>
</div>
</div>
===============================================
=== -->
<!-- Placed at the end of the document so the pages load faster -->
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></
script>
<script>window.jQuery || document.write('<script
src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
<script src="../../dist/js/bootstrap.min.js"></script>
147
<!-- Just to make our placeholder images work. Don't actually copy the
next line! -->
<script src="../../assets/js/vendor/holder.min.js"></script>
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
</body>
</html>
Dashboard.css
/*
* Base structure
*/
/* Move down content because we have a fixed navbar that is 50px tall */
body {
padding-top: 50px;
/*
* Global add-ons
*/
.sub-header {
padding-bottom: 10px;
148
border-bottom: 1px solid #eee;
/*
* Top navigation
*/
.navbar-fixed-top {
border: 0;
/*
* Sidebar
*/
.sidebar {
display: none;
@media (min-width:600px) {
.sidebar {
position: fixed;
top: 51px;
bottom: 0;
149
left: 0;
z-index: 1000;
display: block;
padding: 20px;
overflow-x: hidden;
background-color: #f5f5f5;
/* Sidebar navigation */
.nav-sidebar {
margin-bottom: 20px;
margin-left: -20px;
padding-right: 20px;
padding-left: 20px;
150
.nav-sidebar > .active > a:focus {
color: #fff;
background-color: #428bca;
/*
* Main content
*/
.main {
padding: 20px;
.main {
padding-right: 40px;
padding-left: 40px;
.main .page-header {
margin-top: 0;
151
/*
*/
.placeholders {
margin-bottom: 30px;
text-align: center;
.placeholders h4 {
margin-bottom: 0;
.placeholder {
margin-bottom: 20px;
.placeholder img {
display: inline-block;
border-radius: 50%;
.navbar {
margin-bottom: 0;
border-radius: 0;
152
Menu.php
<?php session_start();
error_reporting(1);
?>
<div class="container">
<div class="navbar-header">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
153
</button>
<img
src="../logo/logo2.png"/width="160px"height="40px"style="margin-
top:5px;">
</div>
<li><a href="../index.php"title="Home">Home</a></li>
</ul>
</li>
<?php
if($_SESSION['create_account_logged_in']!="")
?>
<ul class="dropdown-menu">
154
<li><a href="profile.php">Profile</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</li>
<?PHP } ?>
</ul>
</div>
</div>
</nav>
155
156
Updatepassword.php
<?php
if(isset($update))
if(mysqli_num_rows($sql))
if($np==$cp)
else
else
157
}
?>
<h1>Update Password</h1><hr>
<tr style="height:40">
</tr>
<tr>
</td>
</tr>
<tr>
</td>
</tr>
158
<tr>
</td>
</tr>
</table>
</form>
159
160
Feedback.php
<script>
function delFeedback(id)
window.location.href='delete_feedback.php?id='+id;
</script>
<h1>Feedback</h1><hr>
<tr>
<th>Sr No</th>
<th>Name</th>
<th>Email</th>
<th>Mobile</th>
<th>Message</th>
<th>Delete</th>
</tr>
<?php
$i=1;
while($res=mysqli_fetch_assoc($sql))
161
{
$id=$res['id'];
$name=$res['name'];
$email=$res['email'];
$mobile =$res['mobile'];
$message=$res['message'];
?>
<tr>
</tr>
<?php
?>
</table>
feedbackDelete.php
162
<?php
include('../connection.php');
$id=$_GET['id'];
$res=mysqli_fetch_assoc($sql);
header('location:dashboard.php?option=feedback');
?>
163
164
Rooms.php
<script>
function delRoom(id)
window.location.href='delete_room.php?id='+id;
</script>
<h1>Room Details</h1><hr>
<tr>
</tr>
<tr style="height:40">
<th>Sr No</th>
<th>Image</th>
<th>Room No</th>
<th>TYpe</th>
<th>Price</th>
<th>Details</th>
<th>Update</th>
165
<th>Delete</th>
</tr>
<?php
$i=1;
while($res=mysqli_fetch_assoc($sql))
$id=$res['room_id'];
$img=$res['image'];
$path="../image/rooms/$img";
?>
<tr>
<td><a href="dashboard.php?option=update_room&id=<?php
echo $id; ?>"><span class="glyphicon glyphicon-
pencil"></span></a></td>
166
<td><a href="#" onclick="delRoom('<?php echo $id; ?
>')"><span class="glyphicon glyphicon-remove"
style='color:red'></span></a></td>
</tr>
<?php
?>
</table>
167
168
updateRoom.php
<?php
$id=$_GET['id'];
$res=mysqli_fetch_assoc($sql);
extract($_REQUEST);
if(isset($update))
header('location:dashboard.php?option=rooms');
?>
<tr>
<th>Room No</th>
</td>
169
</tr>
<tr>
<th>Room Type</th>
</td>
</tr>
<tr>
<th>Price</th>
</td>
</tr>
<tr>
<th>Details</th>
</td>
</tr>
<tr>
170
<td colspan="2">
</td>
</tr>
</table>
</form>
171
deleteRooms.php
<?php
include('../connection.php');
$id=$_GET['id'];
$res=mysqli_fetch_assoc($sql);
$img=$res['image'];
unlink("../image/rooms/$img");
header('location:dashboard.php?option=rooms');
?>
172
173
bookingDetails.php
<title>Hotel Republic</title>
<tr>
<th>Sr No</th>
<th>Name</th>
<th>Email</th>
<th>Mobile Number</th>
<th>Address</th>
<th>Room Type</th>
<th>Check in Date</th>
<th>Occupancy</th>
<th>Cancel Order</th>
</tr>
<?php
$i=1;
while($res=mysqli_fetch_assoc($sql))
174
$oid=$res['id'];
?>
<tr>
</td>
</tr>
<?php
?>
</table>
orderCancle.php
175
<?php
include('../connection.php');
$oid=$_GET['booking_id'];
if($q)
header('location:dashboard.php?option=booking_details');
?>
176
177
userDetails.php
<h1>User Registration</h1><hr>
<tr>
<th>Sr No</th>
<th>Name</th>
<th>Email</th>
<th>Password</th>
<th>Mobile</th>
<th>Address</th>
<th>Gender</th>
<th>Country</th>
<th>Pictrure</th>
</tr>
<?php
$i=1;
while($res=mysqli_fetch_assoc($sql))
?>
<tr>
178
<td><?php echo $res['password']; ?></td>
</td>
</tr>
<?php
?>
179
180
addSlider.php
<script>
function delSlider(id)
window.location.href='delete_slider.php?id='+id;
</script>
<tr>
</tr>
<tr style="height:40">
<th>Sr No</th>
<th>Image</th>
<th>Caption</th>
<th>Update</th>
<th>Delete</th>
</tr>
<?php
$i=1;
181
$sql=mysqli_query($con,"select * from slider");
while($res=mysqli_fetch_assoc($sql))
$id=$res['id'];
$img=$res['image'];
$path="../image/Slider/$img";
?>
<tr>
<td><a href="dashboard.php?option=update_slider&id=<?php
echo $id; ?>"><span class="glyphicon glyphicon-
pencil"></span></a></td>
</tr>
<?php
?>
</table>
182
183
updateSlider.php
<?php
$id=$_GET['id'];
$res=mysqli_fetch_assoc($sql);
$img=$res['image'];
$path="../image/Slider/$img";
if(isset($update))
$imgNew=$_FILES['img']['name'];
if($imgNew=="")
else
unlink($path);
move_uploaded_file($_FILES['img']['tmp_name'],"../image/Slider/".
$_FILES['img']['name']);
}
184
if(mysqli_query($con,$sql))
header('location:dashboard.php?option=slider');
?>
<tr style="height:40">
<th>Caption</th>
</tr>
<tr>
<th>Image</th>
</td>
</tr>
<tr>
<td colspan="2">
</tr>
</table>
</form>
deleteSlider.php
<?php
186
include('../connection.php');
$id=$_GET['id'];
$res=mysqli_fetch_assoc($sql);
$img=$res['image'];
unlink("../image/Slider/$img");
header('location:dashboard.php?option=slider');
?>
Style.css
*{
187
margin:0px;
padding: 0px;
.navbar {
margin-bottom: 0;
border-radius: 0;
footer{
padding: 25px;
/* color fill*/
.f{
color:white;
h3{
color:white;
.carousel-inner img {
188
margin: auto;
min-height:50px;
/* Hide the carousel text when the screen is less than 600 pixels wide */
.carousel-caption {
display: none;
#red{
background-color:#337ab7;
/*color Fill*/
width:300px;
margin:auto;
margin-top:10px;
margin-bottom:10px;
height:5px;
background-color:#f0f0f0;
border-radius:20px;
189
/*color End Fill*/
.text-justify{
color:black;
h5{
color:white;
background-color:#6d6e6a;
height:100px;
width:100%;
#img1{
width:100%;
height:190px;
#img1:hover{
.hov a:hover{
color:#000408;
/*Login Start*/
190
#primary{
background-color:#1abc9c;
color:black;
.forget a{
text-decoration:none;
color:#000408;
.forget a:hover{
color:white;
.forget{
/*margin-top:5px;*/
padding-top:10px;
/*Login Close*/
h1{
color:#ffffff;
#top{
margin:0px;
191
.thumbnail a img:hover{
#font{
color:red;
margin-top:50px;
/*padding-top:50px;
height:auto;*/
.bg-1 {
color: #ffffff;
#bt{
float:right;
margin-left:15px;
border-radius:10px;
border:none;
.frame{
192
width:100%;
.amit{
text-align:center;
.Ac_Room_Text{
color:black;
text-align:center;
.Room_Text{
color:#ffbb31;
text-align:center;
size:15px;
193
Room.php
<!DOCTYPE html>
194
<html>
<head>
<title>Republic Hotel</title>
<meta charset="utf-8">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.
css">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></s
cript>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"
></script>
<link href="css/style.css"rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css?family=Abril+Fatface"
rel="stylesheet">
</head>
<body style="margin-top:50px;">
<?php
include('Menu Bar.php')
?><br><br><br>
<div class="container-fluid"style="margin-top:2%;">
<div class="continer">
195
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-7">
<ol class="carousel-indicators">
</ol>
<div class="carousel-inner">
</div>
<div class="item">
</div>
196
<div class="item">
</div>
<div class="item">
</div>
<div class="item">
</div>
</div>
<span class="sr-only">Previous</span>
</a>
<span class="sr-only">Next</span>
</a>
</div>
197
<p class="text-justify">Engulf yourself in the plush luxury of our
premier rooms. An upgraded version of the Suite room, these rooms offer an
elegant design with larger room space..</p>
<div class="row">
<h2>Amenities</h2>
<img src="image/icon/wifi.png">
</div>
</div>
<div class="col-sm-3">
<div class="panel-heading">
</div><br>
<a href="Luxurious
Suite.php">Luxurious Suite</a><hr>
</div>
</div>
</div>
198
</div>
</div>
</div>
<?php
include('footer.php')
?>
</body>
</html>
Testing is a dynamic method for verification and validation, where the system to
be tested is executed and the behaviour of the system is observed.
During testing, the program to be tested is executed with the set of test cases and
the output of the program for the test cases is evaluated to determine if the
performing as expected.
The following are the two fundamental goals of a practical testing activity:
Testing is the major quality control measure used during software development. It
is the basic function to detect errors in the software. The goal of testing is to
uncover requirement, design and coding error in the program.
Software Testing
Verification
Verification is the process to make sure the product satisfies the conditions
imposed at the start of the development phase. In other words, to make sure the
product behaves the way we want it to.
200
Validation
Validation is the process to make sure the product satisfies the specified
requirements at the end of the development phase. In other words, to make sure
the product is built as per customer requirements.
Testing methodologies:
201
System Testing: System testing is the testing to ensure that by putting the
software in different environments (e.g., Operating Systems) it still works.
System testing is done with full system implementation and environment. It
falls under the class of black box testing.
Stress Testing: Stress testing is the testing to evaluate how system behaves
under unfavorable conditions. Testing is conducted at beyond limits of the
specifications. It falls under the class of black box testing.
202
Regression Testing: Regression testing is the testing after modification of a
system, component or a group of related issues units to ensure the
modification is working correctly and is not damaging or imposing other
modules to produce unexpected results. It falls under the class of black box
testing.
Integrated Testing
Security Mechanism:
204
Security mechanisms are technical tools and techniques that are used to implement
security services. A mechanism might operate by itself, or with others, to
provide a particular service. Examples of common security mechanisms are as
follows:
Cryptography
Message digests and digital signatures
Digital certificates
Auditing
Auditing is the process of recording and checking events to detect whether
205
any unexpected or unauthorized activity has taken place, or whether any
attempt has been made to perform such activity.
Confidentiality
The confidentiality service protects sensitive information from unauthorized
disclosure.
Data integrity
The data integrity service detects whether there has been unauthorized
modification of data.
Cryptographic concepts
This collection of topics describes the concepts of cryptography applicable
to WebSphere MQ.
Future Scope
In future as per requirement, the system have to be developed for changing the
status of the Hotel. It will give various kind of reports.
206
any type of queries regarding Customer and the Management . All the queries will
be handling through proper validation.
Bibliography
Analysis & Design : MCS-013 [IGNOU Block]
207
208