Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 180

PATNA WOMEN’SCOLLEGE

(AUTONOMOUS)
PATNA UNIVERSITY
NAAC Re-Accredited ‘A’ Grade with CGPA 3.58/4
“College with Potential for Excellence” (CGPA) status accorded by
UGC

Department: - Master of Computer Science


Course: - M.C.A, Sem - IV
Session: - 2019-2022

1
PROJECT on

“HOTEL MANAGEMENT SYSTEM”

SUBMITTEDBY:- SUBMITTED TO:-

AKANKSHA PRIYA Dr.Bhawana Sinha

19MCA01978(20)

2
DECLARATIONCERTIFICATE:-

This is to certify that the Mini Project entitled “Hotel Management


System” is an academic work submitted to the Department of Master
of Computer Application (MCA) of Patna Women’s College for the
completion of Mini Project is a record of original work done by
Akanksha Priya.

Date:- .....................................
(Guide name and signature)
MCA Department
PWC, Patna

...............................................
HEAD OF DEPARTMENT

3
CERTIFICATE OFAPPROVAL

The forgoing mini project entitled “HOTEL MANAGEMENT


SYSTEM” is hereby approved as a creditable study of our topic and
has been presented in satisfactory manner to warrant its acceptance.
It is understood that by this approval, the undersigned do not
necessarily endorse any conclusion drawn or opinion expressed
therein, but approve the thesis for the purpose for which it is
submitted.

.................................. …………………………
(InternalExaminer) (ExternalExaminer)

……………………………………...

Head of theDepartment

4
Team Structure:

DR.BHAWNA SINHA

(PROJECT GUIDE)

AKANSKHA PRIYA BHAVPRITA


(GROUP LEADER)

KAJALBHATNAGAR
NIDHIKUMARI

NISHA KUMARI

&

DEEPSHIKHA KUMARI
5
TO WHOM IT MAY CONCERN

This is to certify that “GROUP - 6” of MCA – 5th semester, from


PATNA WOMEN’S COLLEGE, PATNA (PATNA UNIVERSITY), has
completed this project report entitled “HOTEL
MANAGEMENT SYSTEM”.

.............................
Dr. Bhawna Sinha
(Project Guide)
Dept. Of MCA
(Patna Women’s College)
Assistant Professor

6
Acknowledgement

I would like to express my thanks of gratitude to our Principal “Dr.


Sister M.Rashmi A.C.” and our professors who gave us this golden
opportunity to do this wonderful project on the topic ”HOTEL
MANAGEMENT SYSTEM” which helps me in gaining lot of
knowledge and also I like to thanks all of them for their valuable
guidance, inspiration and constructive suggestions throughout the
period of project work.

Also we are grateful to our Guide Assistant Professor “Dr. Bhawna


Sinha Mam” for her support throughout our project.

I would like to thank our entire friends and staff members for their help
and constructive criticism during development of this work.

Thank you all for your support.

7
ABSTRACT

This project aims at creating on Hotel Management System which can be used by Admin
and Customers. The admin to advise/publish the availability of rooms in different hotels
and customers are checking the availability of room in required hotel. Customers should
be able to know the availability of the rooms on a particular date to reserve in hotel. They
should be able to reserve the available rooms according to their need in advance to make
their stay comfortable. The Admin hands the booking information of customers. The
users can register and log into the system. The administrator will know the details of
reservation and daily income. The hotel department maintain the seat availability and
booking details in certain database. This project provides high security to Admin and user
information.

8
SerialNo. Topic PageNo.

1. Introduction 11

2. Objectives 12

3. SystemAnalysis 13-14

4. Feasibilitystudy 15-16

5. Tools andenvironmentused 17

6. DATAFLOW DIAGRAM 18-23

7. E –RDIAGRAM 24-25

8. ModuleDescription 26-27

9. Coding 28-112

10. Systemdesign 113-118

11. Testing 122

12. Summary 123-124


 Scope of theproject
 Futurescope

13. Implementation 125

9
14. Evaluation 126
15. Conclusion 127
16. Bibliography 128

10
INTRODUCTION OF THE PROJECT

Hotel Management System is a software system where the management of entire hotel is computerized.
The hotel management system is designed using PHP.Net as the rich GUI for front end and XAMPP Server as the
secured backend database.

In this project the details are maintained like customer details, reservation details, Booking details and
billing details The reservation process of reserving rooms for the customers, cancelling the reserved rooms,
booking the rooms, vacating the rooms, the restaurant management, billing process, etc. all are computerized
and the management is done without any difficulty.

The reports can be viewed completely and the head of the management daily or weekly or monthly can
review it. For company auditing it will be more useful. This Proposed System will be interactive, faster and user-
friendly for the end users. Using the hotel management system, the following activities can be performed.

 Room Service

 Check In

 Check Out

 Staff Master

 Staff Attendance

 Login

Mission of the Project


The mission is to facilitate easy management and administration of a hotel with capabilities to do Booking or
reservations of the rooms, Cancellation of the rooms, Cash billing, Room service, Restaurant service, Restaurant
billing, Total billing, Travels arrangement etc. using the automated hotel management software. One can keep
detailed records or info on an unlimited amount of customers. The system lets the user know which all rooms
are available for occupancy at any point of time. This makes the booking considerably faster. And thus helps the
hotel in better management and reduce a lot of paper work as well as manpower.

11
Objectivesoftheproject
During the past several decades personnel function has been transformed from a relatively
obscure record keeping staff to central and top level management function. There are many
factors that have influenced this transformation like technological advances, professionalism,
and general recognition of human beings as most important resources

 A computer based management system is designed to handle all the primary


information required to calculate monthly statements. Separate database is maintained
to handle all the details required for the correct statement calculation and generation.

 This project intends to introduce more user friendliness in the various activities such as
record updation, maintenance, and searching.

 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.

 Similarly, record maintenance and updation can also be accomplished by using the
identification of the customer with all the details being automatically generated. These
details are also being promptly automatically updated in the master file thus keeping the
record absolutely up-to-date.

 The entire information has maintained in the database or Files and whoever wants to
retrieve can’t retrieve, only authorization user can retrieve the necessary information
which can be easily be accessible from the file.

12
SYSTEM ANALYSIS
SYSTEM ANALYSIS
The initial analysis is made by knowing the user requirements. In analysis phase, we have analyzed the user’s
requirement such as:-

Addition 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 analyzed that the product or software should not be very costly but its quality and
interface must be attractive. If any wrong operation is being performed then the software must invoke the
operator accordingly.

PRINCIPLES OF SYSTEM ANALYSIS

1. Understand the problem before you begin to create the analysis model.
2. Develop prototypes that enable a user to understand how human machine interaction will
occur.
3. Record the origin of and the reason for every requirement.
4. Use multiple views of requirements like building data, function and behavioral models.
5. Work to eliminate ambiguity.

13
FEASIBILITY STUDY

The feasibility study investigates the problem and the information needs of the stakeholders. It seeks
to determine the resources required to provide an information systems solution, the cost and benefits
of such a solution, and the feasibility of such a solution. The analyst conducting the study gathers
information using a variety of methods, the most popular of which are:

 Interviewing users, employees, managers, andcustomers.


 Developing and administering questionnaires to interested stakeholders, such as potentialusers
of the informationsystem.
 Observing or monitoring users of the current system to determine their needs as well astheir
satisfaction and dissatisfaction with the currentsystem.
 Collecting, examining, and analyzing documents, reports, layouts, procedures, manuals,and
any other documentation relating to the operations of the currentsystem.
 Modelling, observing, and simulating the work activities of the currentsystem.

The goal of the feasibility study is to consider alternative information systems solutions, evaluate their
feasibility, and propose the alternative most suitable to the organization. The feasibility of a proposed
solution is evaluated in terms of its components. These components are:

Economic feasibility :

The economic viability of the proposed system. The proposed project's cost and benefits are evaluated.
Tangible costs include fixed and variable costs, while tangible benefits include cost savings, increased
revenue, and increased profit. A project is approved only if it covers its cost in a given period of time.
However, a project may be approved only on its intangible benefits such as those relating to
government regulations, the image of the organization, or similar considerations.

Technical feasibility :
14
The possibility that the organization has or can procure the necessary resources. This is demonstrated
if the needed hardware and software are available in the marketplace or can be developed by the time
of implementation.

Operational feasibility:

The ability, desire, and willingness of the stakeholders to use, support, and operate the proposed
computer information system. The stakeholders include management, employees, customers, and
suppliers. The stakeholders are interested in systems that are easy to operate, make few, if any, errors,
produce the desired information, and fall within the objectives of the organization.

15
DESIGN STRATEGY

HARDWARE SOFTWAREREQUIREMENTS

Requirement analysis for web applications encompasses three major tasks: formulation,
requirements gathering and analysis modeling. During formulation, the basic motivation and
goals for the web application are identified, and the categories of users are defined. In the
requirements gathering phase, the content and functional requirements are listed and interaction
scenarios written from end-user’s point-of-view are developed. This intent is to establish a basic
understanding of why the web application is built, who will use it, and what problems it will
solve for its users.

2.1 Software requirement Specification


A set of programs associated with the operation of a computer is called software. Software is the
part of the computer system, which enables the user to interact with several physical hardware
devices.
The minimum software requirement specifications for developing this project are as follows:

Operating System : Windows XP/Vista/2000, Linux.


Presentation layer : PHP, CSS, HTML, JSP, FLASH
Database: My SQL
Presentation : Power Point 2003
Documentation Tool: Ms Office

Hardware Requirement Specification:


The collection of internal electronic circuits and external physical devices used in building a computer is
called the Hardware.
The minimum hardware requirement specifications for developing this project are as follows:
Processor : Standard processor with a speed of 1.6 GHz
RAM :256 MB RAM or more
Hard Disk :20 GB or more
Monitor :Standard color monitor
Keyboard :Standard keyboard

16
DATA FLOW DIAGRAM

A data flow diagram (DFD) is a graphical representation of the “flow” of the data through an
information system modelling its process aspects.

A Data Flow Diagram (DFD) is a graphical representation of the “flow” of data through an
information system. A data flow diagram can also be used for the visualization of the data processing
(structured design).

Elements of a DFD:
There are four key elements in a Data Flow Diagram; Processes, Data Flows, Data Stores &
External entities and each element is drawn differently.

Process entity:
The Process entity identifies a process taking place; it must have at least one input and output.
A process with no input is known as a “miracle process” and one with no output is a “blackhole
process”. Each process has thefollowing:

 ANumber
 AName
 ADescription
 At least oneinput
 At least oneoutput

Data flow entity:


 The Data Flow Entity identifies the flow of data between processes, data stores &
external entities. A data flow cannot connect an external entity to the data source; at
least one connection must be with a process. There are also physical flows, i.e., those
that use a physical medium. Each data flow has thefollowing:

 A Name(Noun)
 Adescription

17
 One or more connections to aprocess

Data Store entity:


The Data Store entity identifies store of data, both manual and electronic. Each data store has
the following:

 A Number
 AName
 ADescription
 One or more input dataflows
 One or more output dataflows.

External entity:
The External entity identifies external entities which interacts with the system, usually clients
but can be within the same organization. Each external entity has the following:

 A Name(Noun)
 ADescription

SYMBOLS USED IN DFD ARE:-

 SQUARE: It defines the destination of the system. It shows the input/output used inthe
system.

 CIRCLES or BUBBLES: It represents a process that transfers incoming data flow into
outgoing dataflow.

18
 ARROW: It indicates data flow-data in motion. It is a pipeline through which information
flows.

 OPEN RECTANGLES: It is used to representfile/Database.

There are three types of DFD’s they are


1. Context Level DFD
2. Top Level DFD and
3. Detailed Level DFD

Context Level DFD:

In the Context Level the whole system is shown as a single process.

• No data stores are shown.


• Inputs to the overall system are shown together with data sources (as External entities).
• Outputs from the overall system are shown together with their destinations (as External
entities).

19
Top Level DFD:

The Top Level DFD gives the overview of the whole system identifying the major system processes and
data flow. This level focuses on the single process that is drawn in the context diagram by ‘Zooming in’
on its contents and illustrates what it does in more detail.

20
Detailed Level DFD:
In Detailed DFDs the main process is divided into sub processes and we try to find out the flow from
one process to another process. We find the interaction among External entities, processes, sub
processes and database.

21
Usecase diagram

 Use Case Diagram


 A use case diagram is a diagram that shows a set of use cases and actors and
relationships.
 Contents

 Use case commonly contain

 Use cases

 ActorsDependency, generalization and association relationships


Over all use case.

22
E – R DIAGRAM

An Entity Relationship (ER) Diagram is a flowchart that illustrates how “entities” such as people,
objects or concepts relate to each other within a system.

ER Diagram are often used to design or debug Relational Database in the fields of Software
Engineering, Business Information System, Education and Research. Also known as ER Models, they
use a defined set of symbols such as rectangles, diamonds, oval, connecting lines to show the Entity,
Relationships , Attributes.

ENTITY: - these are real world object that participates in constitution of the system.

RELATIONSHIP: - An association of several entities is called relationship.

ATTRIBUTES: - The data items which describes the features of entity is known as attributes.

23
24
MODULE DESCRIPTION

The ‘Module Description’ of the Project is as follows:

Modularization is a very important part of the project development. Since, the software developmentis
a combination of several different types of tasks, which cannot be done at a time. So to do the workwe
have taken modules. The process of modularization has been followed in the preparation of this ‘Mini
Project’.

We know that it is quite difficult to work on the whole website at a time.

So, it is the task of the programmer to break/split the “development of website” into various small
modules so that one can handle them effectively and it is less time consuming if we develop different
modules in parallel.

We will try to split it in modules, so that there will be no inter-dependency among them.

This project developed for “Online Shopping Website” is broken into following modules.

 AdminModule
 User Module
 Customer ServiceModule
 PaymentModule
 PurchaseModule
 SearchingModule
 SecurityModule

 ADMIN MODULE: - Admin module is mainly for the owner of the system. This
module performs the work of regular checking process. Everyone needs current information
aboutanything.So,thismoduleisresponsibleforupdatingtheinformationcontinuouslyifany, in the
system so that one can find timelyinformation.
 But the main function of this module is to handle security of this system. Different types of
authenticationandauthorizationprocessisperformedforthispurpose.Thismoduleisalso

25
responsibleforadvertisementbid.Anyorganizationsthatareeagerforadvertisementcan
contact us for their add. This module handles the entire task related to advertisement like
specifying and allocating the space and relatedcost.

 USER PAGE MODULE: -User page module is for front page of this system. It is the
main page of the system in which all the links of this system are kept. Now the main thing is
how to make the home page interactive and user friendly so that there should not be any
problem for the user. This is the task of the system administrator to make the home page
Interactive.

 CUSTOMER SERVICE MODULE: - In the customer service module, the


customerwillusethiswebsiteforon-lineshoppingandthecustomercanalsosendrequestto the
shoppingwebsite.

 PAYMENT MODULE: -In this module, the customer can do the payment in
different mode like demand draft, or by credit card orCOD.

 PURCHASE MODULE: -In this module, all the selected item could be purchased
by the customer.

 SEARCH MODULE: - Search module provides search facilities to search different


product topurchase.

 SECURITY MODULE: - Security module is concerned with security of the system.


As this system is public website so,this module is essential and admin module can only make
the changes because this module can only update information in the website so as to makesure
that no any unauthorized user could change information. This module has various mechanisms
to check the validity of theuser.

26
CODING

Dashboard

index.php

<?php
include('db.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>REVOLVING HOTEL</title>
<!-- for-mobile-apps -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Resort Inn Responsive , Smartphone Compatible
web template , Samsung, LG, Sony Ericsson, Motorola web design" />
<script type="application/x-javascript">addEventListener("load", function()
{ setTimeout(hideURLbar, 0); }, false);
function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- //for-mobile-apps -->
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all" />
<link href="css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" href="css/chocolat.css" type="text/css" media="screen">
<link href="css/easy-responsive-tabs.css" rel='stylesheet' type='text/css'/>
<link rel="stylesheet" href="css/flexslider.css" type="text/css" media="screen"
property="" />
<link rel="stylesheet" href="css/jquery-ui.css" />
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="js/modernizr-2.6.2.min.js"></script>
<!--fonts-->
<link href="//fonts.googleapis.com/css?family=Oswald:300,400,700" rel="stylesheet">
<link href="//fonts.googleapis.com/css?family=Federo" rel="stylesheet">
<link href="//fonts.googleapis.com/css?family=Lato:300,400,700,900"

62
rel="stylesheet">
<!--//fonts-->
</head>
<body>
<!-- header -->
<div class="banner-top">
<div class="social-bnr-agileits">
<ul class="social-icons3">
<li><a
href="https://www.facebook.com/" class="fa fa-facebook icon-border
facebook"></a></li>
<li><a
href="https://twitter.com/" class="fa fa-twitter icon-border twitter"></a></li>
<li><a
href="https://plus.google.com/u/0/" class="fa fa-google-plus icon-border
googleplus"></a></li>
</ul>
</div>
<div class="contact-bnr-w3-agile">
<ul>
<li><i class="fa fa-envelope" aria-
hidden="true"></i><a
href="mailto:info@example.com">INFO@revolving.COM</a></li>
<li><i class="fa fa-phone"
aria-hidden="true"></i>+91 8434931131</li>
<li class="s-bar">
<div class="search">
<input class="search_box"
type="checkbox" id="search_box">
<label class="icon-search"
for="search_box"><span class="glyphiconglyphicon-search"
aria-hidden="true"></span></label>
<div class="search_form">
<form action="#"
method="post">
<input
type="search" name="Search" placeholder=" " required=" " />
<input
type="submit" value="Search">
</form>
</div>
</div>

63
</li>
</ul>
</div>
<div class="clearfix"></div>
</div>
<div class="w3_navigation">
<div class="container">
<nav class="navbar navbar-default">
<div class="navbar-header navbar-left">
<button type="button" class="navbar-toggle
collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle
navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<h1><a class="navbar-brand"
href="index.php">REVOLVING<span>HOTEL</span><p
class="logo_w3l_agile_caption">Your Dreamy Resort</p></a></h1>
</div>
<!-- Collect the nav links, forms, and other content for
toggling -->
<div class="collapse navbar-collapse navbar-right" id="bs-
example-navbar-collapse-1">
<nav class="menu menu--iris">
<ul class="nav navbar-nav menu__list">
<li
class="menu__itemmenu__item--current"><a href=""
class="menu__link">Home</a></li>
<li class="menu__item"><a
href="#about" class="menu__link scroll">About</a></li>
<li class="menu__item"><a
href="#team" class="menu__link scroll">Team</a></li>
<li class="menu__item"><a
href="#gallery" class="menu__link scroll">Gallery</a></li>
<li class="menu__item"><a
href="#rooms" class="menu__link scroll">Rooms</a></li>
<li class="menu__item"><a
href="#contact" class="menu__link scroll">Contact Us</a></li>
</ul>
</nav>

64
</div>
</nav>

</div>
</div>
<!-- //header -->
<!-- banner -->
<div id="home" class="w3ls-banner">
<!-- banner-text -->
<div class="slider">
<div class="callbacks_container">
<ul class="rslides callbacks callbacks1" id="slider4">
<li>
<div class="w3layouts-banner-top">

<div class="container">
<div class="agileits-
banner-info">
<h4>REVOLVING
HOTEL</h4>
<h3>We know
what you love</h3>

<p>Welcome to our hotels</p>


<div
class="agileits_w3layouts_more menu__item">
<a href="#" class="menu__link" data-toggle="modal" data-
target="#myModal">Learn More</a>
</div>
</div>
</div>
</div>
</li>
<li>
<div class="w3layouts-banner-top
w3layouts-banner-top1">
<div class="container">
<div class="agileits-
banner-info">
<h4>REVOLVING
HOTEL</h4>
<h3>Stay with

65
friends & families</h3>
<p>Come
& enjoy precious moment with us</p>
<div
class="agileits_w3layouts_more menu__item">
<a href="#" class="menu__link" data-toggle="modal" data-
target="#myModal">Learn More</a>
</div>
</div>
</div>
</div>
</li>
<li>
<div class="w3layouts-banner-top
w3layouts-banner-top2">
<div class="container">
<div class="agileits-
banner-info">
<h4>REVOLVING
HOTEL</h4>
<h3>want luxurious
vacation?</h3>
<p>Get
accommodation today</p>
<div
class="agileits_w3layouts_more menu__item">
<a
href="#" class="menu__link" data-toggle="modal" data-target="#myModal">Learn
More</a>
</div>
</div>
</div>
</div>
</li>
</ul>
</div>
<div class="clearfix"></div>
<!--banner Slider starts Here-->
</div>
<div class="thim-click-to-bottom">
<a href="#about" class="scroll">
<i class="fa fa-long-arrow-down" aria-

66
hidden="true"></i>
</a>
</div>
</div>
<!-- //banner -->
<!--//Header-->
<!-- //Modal1 -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog">
<!-- Modal1 -->
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-
content">
<div class="modal-
header">
<button
type="button" class="close" data-dismiss="modal">&times;</button>

<h4>REVOLVING<span>HOTEL</span></h4>

<imgsrc="images/1.jpg" alt=" " class="img-responsive">


<h5>We
know what you love</h5>

<p>Providing guests unique and enchanting views from their rooms with its
exceptional amenities, makes Star Hotel one of bests in its kind.Try our food menu,
awesome services and friendly staff while you are here.</p>
</div>
</div>
</div>
</div>
<!-- //Modal1 -->
<div id="availability-agileits">
<div class="col-md-12 book-form-left-w3layouts">
<a href="admin/reservation.php"><h2>ROOM RESERVATION</h2></a>
</div>

<div class="clearfix"></div>
</div>
<!-- banner-bottom -->
<div class="banner-bottom">
<div class="container">

67
<div class="agileits_banner_bottom">
<h3><span>Experience a good stay, enjoy fantastic
offers</span> Find our friendly welcoming reception</h3>
</div>
<div class="w3ls_banner_bottom_grids">
<ul class="cbp-ig-grid">
<li>
<div class="w3_grid_effect">
<span class="cbp-ig-icon
w3_road"></span>
<h4 class="cbp-ig-title">MASTER
BEDROOMS</h4>
<span class="cbp-ig-
category">REVOLVING HOTEL</span>
</div>
</li>
<li>
<div class="w3_grid_effect">
<span class="cbp-ig-icon
w3_cube"></span>
<h4 class="cbp-ig-title">SEA VIEW
BALCONY</h4>
<span class="cbp-ig-
category">REVOLVING HOTEL</span>
</div>
</li>
<li>
<div class="w3_grid_effect">
<span class="cbp-ig-icon
w3_users"></span>
<h4 class="cbp-ig-title">LARGE
CAFE</h4>
<span class="cbp-ig-
category">REVOLVING HOTEL</span>
</div>
</li>
<li>
<div class="w3_grid_effect">
<span class="cbp-ig-icon
w3_ticket"></span>
<h4 class="cbp-ig-title">WIFI
COVERAGE</h4>

68
<span class="cbp-ig-
category">REVOLVING HOTEL</span>
</div>
</li>
</ul>
</div>
</div>
</div>
<!-- //banner-bottom -->
<!-- /about -->
<div class="about-wthree" id="about">
<div class="container">
<div class="ab-w3l-spa">
<h3 class="title-w3-agileits title-black-wthree">About Our REVOLVING HOTEL</h3>
<p class="about-para-w3ls">Built in 2015 ,
The Revolving, Patna is one of the India's luxury hotel. Offering panoramic views of the
environment, the hotel is a city landmark. The hotel offers 100 rooms including 24
suites, each adorned with original paintings and period furniture that exude an aura of
old-world charm and elegance. The restaurants at The Revolving, Patna offer
distinctive dining experiences that cover the finest Indian and international cuisines -
from casual, all-day eateries to Oriental Indian and Mediterranean fine dining. The
hotel also houses the first licensed bar of Patna and also a beautiful sea-front
restaurant for high tea and live music. Palace Services in the Palace Wing of the hotel
add to the experience, where the butler plays the all important role of guide and
assistant.</p>
<imgsrc="images/about.jpg" class="img-
responsive" alt="Hair Salon">
<div
class="w3l-slider-img">

<imgsrc="images/a1.jpg" class="img-responsive" alt="Hair Salon">


</div>
<div class="w3ls-info-about">
<h4>You'll
love all the amenities we offer!</h4>

<p></p>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
<!-- //about -->

69
<!--sevices-->
<div class="advantages">
<div class="container">
<div class="advantages-main">
<h3 class="title-w3-agileits">Our Services</h3>
<div class="advantage-bottom">
<div class="col-md-6 advantage-grid left-w3ls wow bounceInLeft"
data-wow-delay="0.3s">
<div class="advantage-block ">
<i class="fa fa-credit-card" aria-hidden="true"></i>
<h4>Stay First, Pay After! </h4>
<p></p>
<p><i class="fa fa-check"
aria-hidden="true"></i>Decorated room, proper air conditioned</p>
<p><i class="fa fa-check"
aria-hidden="true"></i>Private balcony</p>

</div>
</div>
<div class="col-md-6 advantage-grid right-w3ls wow zoomIn" data-
wow-delay="0.3s">
<div class="advantage-block">
<i class="fa fa-clock-o" aria-hidden="true"></i>
<h4>24 Hour Restaurant</h4>
<p></p>
<p><i class="fa fa-check"
aria-hidden="true"></i>24 hours room service</p>
<p><i class="fa fa-check"
aria-hidden="true"></i>24-hour Concierge service</p>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>
<!--//sevices-->
<!-- team -->
<div class="team" id="team">
<div class="container">
<h3 class="title-w3-agileits title-black-wthree">Meet Our
Team</h3>

70
<div id="horizontalTab">
<ul class="resp-tabs-list">

</ul>
<div class="resp-tabs-container">
<div class="tab1">
<div class="col-md-6 team-img-w3-agile">
</div>
<div class="col-md-6 team-Info-agileits">
<h4>Miss Nidhi Prakash</h4>
<span>Manager</span>
<p></p>
<div class="social-bnr-agileits footer-icons-
agileinfo">
<ul class="social-icons3">
<li><a href="#" class="fa
fa-facebook icon-border facebook"></a></li>
<li><a href="#" class="fa
fa-twitter icon-border twitter"></a></li>
<li><a href="#" class="fa
fa-google-plus icon-border googleplus"></a></li>
<li><a href="#" class="fa
fa-rss icon-border rss"></a></li>
</ul>
</div>

</div>
<div class="clearfix"></div>
</div>
<div class="tab2">
<div class="col-md-6 team-img-w3-agile">
</div>
<div class="col-md-6 team-Info-agileits">
<h4>Deepsikha</h4>
<span>Receptionist</span>
<p></p>
<div class="social-bnr-agileits footer-icons-
agileinfo">
<ul class="social-icons3">
<li><a href="#" class="fa
fa-facebook icon-border facebook"></a></li>
<li><a href="#" class="fa

71
fa-twitter icon-border twitter"></a></li>
<li><a href="#" class="fa
fa-google-plus icon-border googleplus"></a></li>
<li><a href="#" class="fa
fa-rss icon-border rss"></a></li>
</ul>
</div>

</div>
<div class="clearfix"></div>
</div>
<div class="tab3">
<div class="col-md-6 team-img-w3-agile">
</div>
<div class="col-md-6 team-Info-agileits">
<h4>Nisha</h4>
<span>Manager</span>
<p></p>
<div class="social-bnr-agileits footer-icons-
agileinfo">
<ul class="social-icons3">
<li><a href="#" class="fa
fa-facebook icon-border facebook"></a></li>
<li><a href="#" class="fa
fa-twitter icon-border twitter"></a></li>
<li><a href="#" class="fa
fa-google-plus icon-border googleplus"></a></li>
<li><a href="#" class="fa
fa-rss icon-border rss"></a></li>
</ul>
</div>

</div>
<div class="clearfix"></div>
</div>
<div class="tab4">
<div class="col-md-6 team-img-w3-agile">
</div>
<div class="col-md-6 team-Info-agileits">
<h4>Kajal Bhatnagar</h4>
<span>Receptionist</span>
<p>Lorem ipsum dolor sit amet,

72
consecteturadipiscingelit, sed do eiusmodtemporincididuntutlabore et dolore magna
aliqua. Ut enim ad minim veniam, quis.Lorem ipsum dolor .</p>
<div class="social-bnr-agileits footer-icons-
agileinfo">
<ul class="social-icons3">
<li><a href="#" class="fa
fa-facebook icon-border facebook"></a></li>
<li><a href="#" class="fa
fa-twitter icon-border twitter"></a></li>
<li><a href="#" class="fa
fa-google-plus icon-border googleplus"></a></li>
<li><a href="#" class="fa
fa-rss icon-border rss"></a></li>
</ul>
</div>

</div>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>
</div>
<!-- //team -->
<!-- Gallery -->
<section class="portfolio-w3ls" id="gallery">
<h3 class="title-w3-agileits title-black-wthree">Our Gallery</h3>
<div class="col-md-3 gallery-grid gallery1">
<a href="images/g1.jpg"
class="swipebox"><imgsrc="images/g1.jpg" class="img-responsive" alt="/">
<div class="textbox">
<h4>REVOLVING HOTEL</h4>
<p><i class="fa fa-picture-o" aria-
hidden="true"></i></p>
</div>
</a>
</div>
<div class="col-md-3 gallery-grid gallery1">
<a href="images/g2.jpg"
class="swipebox"><imgsrc="images/g2.jpg" class="img-responsive" alt="/">
<div class="textbox">
<h4>REVOLVING HOTEL</h4>

73
<p><i class="fa fa-picture-o" aria-
hidden="true"></i></p>
</div>
</a>
</div>
<div class="col-md-3 gallery-grid gallery1">
<a href="images/g3.jpg"
class="swipebox"><imgsrc="images/g3.jpg" class="img-responsive" alt="/">
<div class="textbox">
<h4>REVOLVING HOTEL</h4>
<p><i class="fa fa-picture-o" aria-
hidden="true"></i></p>
</div>
</a>
</div>
<div class="col-md-3 gallery-grid gallery1">
<a href="images/g4.jpg"
class="swipebox"><imgsrc="images/g4.jpg" class="img-responsive" alt="/">
<div class="textbox">
<h4>REVOLVING HOTEL</h4>
<p><i class="fa fa-picture-o" aria-
hidden="true"></i></p>
</div>
</a>
</div>
<div class="col-md-3 gallery-grid gallery1">
<a href="images/g5.jpg"
class="swipebox"><imgsrc="images/g5.jpg" class="img-responsive" alt="/">
<div class="textbox">
<h4>REVOLVING HOTEL</h4>
<p><i class="fa fa-picture-o" aria-
hidden="true"></i></p>
</div>
</a>
</div>
<div class="col-md-3 gallery-grid gallery1">
<a href="images/g6.jpg"
class="swipebox"><imgsrc="images/g6.jpg" class="img-responsive" alt="/">
<div class="textbox">
<h4>REVOLVING HOTEL</h4>
<p><i class="fa fa-picture-o" aria-
hidden="true"></i></p>

74
</div>
</a>
</div>
<div class="col-md-3 gallery-grid gallery1">
<a href="images/g6.jpg"
class="swipebox"><imgsrc="images/g7.jpg" class="img-responsive" alt="/">
<div class="textbox">
<h4>REVOLVING HOTEL</h4>
<p><i class="fa fa-picture-o" aria-
hidden="true"></i></p>
</div>
</a>
</div>
<div class="col-md-3 gallery-grid gallery1">
<a href="images/g6.jpg"
class="swipebox"><imgsrc="images/g8.jpg" class="img-responsive" alt="/">
<div class="textbox">
<h4>REVOLVING HOTEL</h4>
<p><i class="fa fa-picture-o" aria-
hidden="true"></i></p>
</div>
</a>
</div>
<div class="col-md-3 gallery-grid gallery1">
<a href="images/g9.jpg"
class="swipebox"><imgsrc="images/g9.jpg" class="img-responsive" alt="/">
<div class="textbox">
<h4>REVOLVING HOTEL</h4>
<p><i class="fa fa-picture-o" aria-
hidden="true"></i></p>
</div>
</a>
</div>
<div class="col-md-3 gallery-grid gallery1">
<a href="images/g10.jpg"
class="swipebox"><imgsrc="images/g10.jpg" class="img-responsive" alt="/">
<div class="textbox">
<h4>REVOLVING HOTEL</h4>
<p><i class="fa fa-picture-o" aria-
hidden="true"></i></p>
</div>
</a>

75
</div>
<div class="col-md-3 gallery-grid gallery1">
<a href="images/g4.jpg"
class="swipebox"><imgsrc="images/g4.jpg" class="img-responsive" alt="/">
<div class="textbox">
<h4>REVOLVING HOTEL</h4>
<p><i class="fa fa-picture-o" aria-
hidden="true"></i></p>
</div>
</a>
</div>
<div class="col-md-3 gallery-grid gallery1">
<a href="images/g2.jpg"
class="swipebox"><imgsrc="images/g2.jpg" class="img-responsive" alt="/">
<div class="textbox">
<h4>REVOLVING HOTEL</h4>
<p><i class="fa fa-picture-o" aria-
hidden="true"></i></p>
</div>
</a>
</div>
<div class="clearfix"></div>
</section>
<!-- //gallery -->
<!-- rooms & rates -->
<div class="plans-section" id="rooms">
<div class="container">
<h3 class="title-w3-agileits title-black-wthree">Rooms And
Rates</h3>
<div class="priceing-table-main">
<div class="col-md-3 price-grid">
<div class="price-block agile">
<div class="price-gd-top">
<imgsrc="images/r1.jpg" alt=" "
class="img-responsive" />
<h4>Deluxe Room</h4>
</div>
<div class="price-gd-bottom">
<div class="price-list">
<ul>

<li><i class="fa fa-star" aria-hidden="true"></i></li>

76
<li><i class="fa fa-star" aria-hidden="true"></i></li>

<li><i class="fa fa-star" aria-hidden="true"></i></li>

<li><i class="fa fa-star" aria-hidden="true"></i></li>

<li><i class="fa fa-star-o" aria-hidden="true"></i></li>

</ul>
</div>
<div class="price-selet">

<h3><span>Rs.</span>3200</h3>
<a
href="admin/reservation.php" >Book Now</a>
</div>
</div>
</div>
</div>
<div class="col-md-3 price-grid ">
<div class="price-block agile">
<div class="price-gd-top">
<imgsrc="images/r2.jpg" alt=" "
class="img-responsive" />
<h4>Luxury Room</h4>
</div>
<div class="price-gd-bottom">
<div class="price-list">
<ul>
<li><i class="fa fa-
star" aria-hidden="true"></i></li>
<li><i class="fa fa-
star" aria-hidden="true"></i></li>
<li><i class="fa fa-
star" aria-hidden="true"></i></li>
<li><i class="fa fa-
star" aria-hidden="true"></i></li>
<li><i class="fa fa-
star-o" aria-hidden="true"></i></li>
</ul>
</div>

77
<div class="price-selet">

<h3><span>Rs.</span>2200</h3>
<a
href="admin/reservation.php" >Book Now</a>
</div>
</div>
</div>
</div>
<div class="col-md-3 price-grid lost">
<div class="price-block agile">
<div class="price-gd-top">
<imgsrc="images/r3.jpg" alt=" "
class="img-responsive" />
<h4>Guest House</h4>
</div>
<div class="price-gd-bottom">
<div class="price-list">
<ul>
<li><i class="fa fa-
star" aria-hidden="true"></i></li>
<li><i class="fa fa-
star" aria-hidden="true"></i></li>
<li><i class="fa fa-
star" aria-hidden="true"></i></li>
<li><i class="fa fa-
star-o" aria-hidden="true"></i></li>
<li><i class="fa fa-
star-o" aria-hidden="true"></i></li>
</ul>
</div>
<div class="price-selet">

<h3><span>Rs.</span>1800</h3>
<a
href="admin/reservation.php" >Book Now</a>
</div>
</div>
</div>
</div>
<div class="col-md-3 price-grid wthree lost">
<div class="price-block agile">

78
<div class="price-gd-top ">
<imgsrc="images/r4.jpg" alt=" "
class="img-responsive" />
<h4>Single Room</h4>
</div>
<div class="price-gd-bottom">
<div class="price-list">
<ul>
<li><i class="fa fa-
star" aria-hidden="true"></i></li>
<li><i class="fa fa-
star" aria-hidden="true"></i></li>
<li><i class="fa fa-
star-o" aria-hidden="true"></i></li>
<li><i class="fa fa-
star-o" aria-hidden="true"></i></li>
<li><i class="fa fa-
star-o" aria-hidden="true"></i></li>
</ul>
</div>
<div class="price-selet">
<h3><span>Rs.</span>
1500</h3>
<a
href="admin/reservation.php" >Book Now</a>
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
<!--// rooms & rates -->
<!-- visitors -->
<div class="w3l-visitors-agile" >
<div class="container">
<h3 class="title-w3-agileits title-black-wthree">What other visitors experienced</h3>
</div>
<div class="w3layouts_work_grids">
<section class="slider">
<div class="flexslider">

79
<ul class="slides">
<li>
<div
class="w3layouts_work_grid_left">
<imgsrc="images/5.jpg"
alt=" " class="img-responsive" />
<div
class="w3layouts_work_grid_left_pos">

<imgsrc="images/c1.jpg" alt=" " class="img-responsive" />


</div>
</div>
<div
class="w3layouts_work_grid_right">
<h4>
<i class="fa fa-star" aria-
hidden="true"></i>
<i class="fa fa-star" aria-
hidden="true"></i>
<i class="fa fa-star" aria-
hidden="true"></i>
<i class="fa fa-star" aria-
hidden="true"></i>
<i class="fa fa-star" aria-
hidden="true"></i>
Worth to come again
</h4>
<p>Have a great day!!!!
</p>
<h5>Sakshi Singh</h5>
<p>India</p>
</div>
<div class="clearfix"></div>
</li>
<li>
<div
class="w3layouts_work_grid_left">
<imgsrc="images/5.jpg"
alt=" " class="img-responsive" />
<div
class="w3layouts_work_grid_left_pos">

<imgsrc="images/c2.jpg" alt=" " class="img-responsive" />

80
</div>
</div>
<div
class="w3layouts_work_grid_right">
<h4>
<i class="fa fa-star" aria-
hidden="true"></i>
<i class="fa fa-star" aria-
hidden="true"></i>
<i class="fa fa-star" aria-
hidden="true"></i>
<i class="fa fa-star" aria-
hidden="true"></i>
<i class="fa fa-star-o" aria-
hidden="true"></i>
Worth to come again
</h4>
<p>Have a Great day!!!
</p>
<h5>Ishan Sinha</h5>
<p>Banglore</p>
</div>
<div class="clearfix"></div>
</li>
<li>
<div
class="w3layouts_work_grid_left">
<imgsrc="images/5.jpg"
alt=" " class="img-responsive" />
<div
class="w3layouts_work_grid_left_pos">

<imgsrc="images/c3.jpg" alt=" " class="img-responsive" />


</div>
</div>
<div
class="w3layouts_work_grid_right">
<h4>
<i class="fa fa-star" aria-
hidden="true"></i>
<i class="fa fa-star" aria-
hidden="true"></i>

81
<i class="fa fa-star" aria-
hidden="true"></i>
<i class="fa fa-star" aria-
hidden="true"></i>
<i class="fa fa-star-o" aria-
hidden="true"></i>
Worth to come again
</h4>
<p>It was a good
experience with the hospitality!!! </p>
<h5>Sanjana</h5>
<p>Patna</p>
</div>
<div class="clearfix"></div>
</li>
<li>
<div
class="w3layouts_work_grid_left">
<imgsrc="images/5.jpg"
alt=" " class="img-responsive" />
<div
class="w3layouts_work_grid_left_pos">

<imgsrc="images/c4.jpg" alt=" " class="img-responsive" />


</div>
</div>
<div
class="w3layouts_work_grid_right">
<h4>
<i class="fa fa-star" aria-
hidden="true"></i>
<i class="fa fa-star" aria-
hidden="true"></i>
<i class="fa fa-star" aria-
hidden="true"></i>
<i class="fa fa-star-o" aria-
hidden="true"></i>
<i class="fa fa-star-o" aria-
hidden="true"></i>
Worth to come again
</h4>
<p></p>

82
<h5>Rohan Jaiswal</h5>
<p>Nepal</p>
</div>
<div class="clearfix"></div>
</li>
</ul>
</div>
</section>
</div>
</div>
<!-- visitors -->
<!-- contact -->
<section class="contact-w3ls" id="contact">
<div class="container">
<div class="col-lg-6 col-md-6 col-sm-6 contact-w3-agile2" data-aos="flip-
left">
<div class="contact-agileits">
<h4>Contact Us</h4>
<p class="contact-agile2">Sign Up For Our News
Letters</p>
<form method="post" name="sentMessage"
id="contactForm" >
<div class="control-group form-group">

<label class="contact-p1">Full Name:</label>


<input type="text" class="form-control" name="name" id="name" required >
<p class="help-block"></p>

</div>
<div class="control-group form-group">

<label class="contact-p1">Phone Number:</label>


<input type="tel" class="form-control" name="phone" id="phone" required >
<p class="help-block"></p>

</div>
<div class="control-group form-group">

<label class="contact-p1">Email Address:</label>


<input type="email" class="form-control" name="email" id="email" required >
<p class="help-block"></p>

83
</div>

<input type="submit" name="sub" value="Send Now" class="btnbtn-primary">


</form>
<?php
if(isset($_POST['sub']))
{
$name =$_POST['name'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$approval = "Not Allowed";
$sql = "INSERT INTO `contact`(`fullname`,
`phoneno`, `email`,`cdate`,`approval`) VALUES
('$name','$phone','$email',now(),'$approval')" ;

if(mysqli_query($con,$sql))
echo"OK";

}
?>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 contact-w3-agile1" data-aos="flip-
right">
<h4>Connect With Us</h4>
<p class="contact-agile1"><strong>Phone
:</strong>8987262875</p>
<p class="contact-agile1"><strong>Email :</strong><a
href="mailto:name@example.com">INFO@REVOLVING.COM</a></p>
<p class="contact-agile1"><strong>Address :</strong> Boring
Road, Patna</p>

<div class="social-bnr-agileits footer-icons-agileinfo">


<ul class="social-icons3">
<li><a href="#" class="fa
fa-facebook icon-border facebook"></a></li>
<li><a href="#" class="fa
fa-twitter icon-border twitter"></a></li>

84
<li><a href="#" class="fa
fa-google-plus icon-border googleplus"></a></li>

</ul>
</div>
<iframe src="https://www.google.com/maps/embed?pb=!1m18!
1m12!1m3!1d3074.7905052320443!2d-77.84987248482734!3d39.586871613613056!
2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!
1s0x89c9f6a80ccf0661%3A0x7210426c67abc40!2sVirginia+Welcome+Center
%2FSafety+Rest+Area!5e0!3m2!1sen!2sin!4v1485760915662" ></iframe>
</div>
<div class="clearfix"></div>
</div>
</section>
<!-- /contact -->
<div class="copy">
<p>© 2021 REVOLVING HOTEL . All Rights Reserved | Design by Group-6
PATNA WOMEN'S COLLEGE<a href="index.php">REVOLVING HOTEL</a></p>
</div>
<!--/footer -->
<!--js -->
<script type="text/javascript" src="js/jquery-2.1.4.min.js"></script>
<!-- contact form -->
<script src="js/jqBootstrapValidation.js"></script>

<!-- /contact form -->


<!-- Calendar -->
<script src="js/jquery-ui.js"></script>
<script>
$(function() {
$
( "#datepicker,#datepicker1,#datepicker2,#datepicker3" ).datepicker();
});
</script>
<!-- //Calendar -->
<!-- gallery popup -->
<link rel="stylesheet" href="css/swipebox.css">
<script src="js/jquery.swipebox.min.js"></script>
<script type="text/javascript">
jQuery(function($) {
$(".swipebox").swipebox();
});

85
</script>
<!-- //gallery popup -->
<!-- start-smoth-scrolling -->
<script type="text/javascript" src="js/move-top.js"></script>
<script type="text/javascript" src="js/easing.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$(".scroll").click(function(event){
event.preventDefault();
$('html,body').animate({scrollTop:$(this.hash).offset().top},1000);
});
});
</script>
<!-- start-smoth-scrolling -->
<!--flexSlider -->
<script defer src="js/jquery.flexslider.js"></script>
<script type="text/javascript">
$(window).load(function(){
$('.flexslider').flexslider({
animation: "slide",
start: function(slider){
$('body').removeClass('loading');
}
});
});
</script>
<!-- //flexSlider -->
<script src="js/responsiveslides.min.js"></script>
<script>
// You can also use "$
(window).load(function() {"
$(function () {
// Slideshow 4
$("#slider4").responsiveSlides({
auto: true,
pager:true,
nav:false,
speed: 500,
namespace: "callbacks",
before: function () {
$('.events').append("<li>before

86
event fired.</li>");
},
after: function () {
$('.events').append("<li>after
event fired.</li>");
}
});

});
</script>
<!--search-bar-->
<script src="js/main.js"></script>
<!--//search-bar-->
<!--tabs-->
<script src="js/easy-responsive-tabs.js"></script>
<script>
$(document).ready(function () {
$('#horizontalTab').easyResponsiveTabs({
type: 'default', //Types: default, vertical, accordion
width: 'auto', //auto or any width like 600px
fit: true, // 100% fit in a container
closed: 'accordion', // Start closed if in accordion view
activate: function(event) { // Callback function if tab is switched
var $tab = $(this);
var $info = $('#tabInfo');
var $name = $('span', $info);
$name.text($tab.text());
$info.show();
}
});
$('#verticalTab').easyResponsiveTabs({
type: 'vertical',
width: 'auto',
fit: true
});
});
</script>
<!--//tabs-->
<!-- smooth scrolling -->
<script type="text/javascript">
$(document).ready(function() {

87
/*
var defaults = {
containerID: 'toTop', // fading element id
containerHoverID: 'toTopHover', // fading element hover id
scrollSpeed: 1200,
easingType: 'linear'
};
*/
$().UItoTop({ easingType: 'easeOutQuart' });
});
</script>

<div class="arr-w3ls">
<a href="#home" id="toTop" style="display: block;"><span id="toTopHover"
style="opacity: 1;"></span></a>
</div>
<!-- //smooth scrolling -->
<script type="text/javascript" src="js/bootstrap-3.1.1.min.js"></script>
</body>
</html>

home.php

<?php
session_start();
if(!isset($_SESSION["user"]))
{
header("location:index.php");
}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Administrator </title>
<!-- Bootstrap Styles-->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!--FontAwesome Styles-->

88
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<!-- Morris Chart Styles-->
<link href="assets/js/morris/morris-0.4.3.min.css" rel="stylesheet" />
<!-- Custom Styles-->
<link href="assets/css/custom-styles.css" rel="stylesheet" />
<!-- Google Fonts-->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'
type='text/css' />
</head>

<body>
<div id="wrapper">
<nav class="navbar navbar-default top-navbar" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-
target=".sidebar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="home.php"><?php echo $_SESSION["user"]; ?></a>
</div>

<ul class="nav navbar-top-links navbar-right">


<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
<i class="fa fa-user fa-fw"></i><i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="usersetting.php"><i class="fa fa-user fa-fw"></i> User Profile</a>
</li>
<li><a href="settings.php"><i class="fa fa-gear fa-fw"></i> Settings</a>
</li>
<li class="divider"></li>
<li><a href="logout.php"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
</li>
</ul>
<!-- /.dropdown-user -->
</li>
<!-- /.dropdown -->

89
</ul>
</nav>
<!--/. NAV TOP -->
<nav class="navbar-default navbar-side" role="navigation">
<div class="sidebar-collapse">
<ul class="nav" id="main-menu">

<li>
<a class="active-menu" href="home.php"><i class="fa fa-dashboard"></i> Status</a>
</li>
<li>
<a href="messages.php"><i class="fa fa-desktop"></i> News Letters</a>
</li>
<li>
<a href="roombook.php"><i class="fa fa-bar-chart-o"></i> Room Booking</a>
</li>
<li>
<a href="payment.php"><i class="fa fa-qrcode"></i> Payment</a>
</li>
<li>
<a href="profit.php"><i class="fa fa-qrcode"></i> Profit</a>
</li>
<li>
<a href="logout.php"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
</li>

</ul>

</div>

</nav>
<!-- /. NAV SIDE -->
<div id="page-wrapper">
<div id="page-inner">

<div class="row">
<div class="col-md-12">

90
<h1 class="page-header">
Status <small>Room Booking </small>
</h1>
</div>
</div>
<!-- /. ROW -->
<?php
include ('db.php');
$sql = "select * from roombook";
$re = mysqli_query($con,$sql);
$c =0;
while($row=mysqli_fetch_array($re) )
{
$new = $row['stat'];
$cin = $row['cin'];
$id = $row['id'];
if($new=="Not Conform")
{
$c = $c + 1;

?>

<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">

</div>
<div class="panel-body">
<div class="panel-group" id="accordion">

<div class="panel panel-primary">

91
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">

<button class="btnbtn-default" type="button">

New Room Bookings <span class="badge"><?php echo $c ; ?></span>

</button>

</a>
</h4>
</div>
<div id="collapseTwo" class="panel-collapse in" style="height: auto;">
<div class="panel-body">
<div class="panel panel-default">

<div class="panel-body">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>Email</th>
<th>Country</th>

<th>Room</th>

<th>Bedding</th>

<th>Meal</th>

<th>Check In</th>

<th>Check Out</th>

<th>Status</th>

<th>More</th>

</tr>

92
</thead>
<tbody>

<?php
$tsql = "select *
from roombook";
$tre =
mysqli_query($con,$tsql);

while($trow=mysqli_fetch_array($tre) )
{
$co
=$trow['stat'];

if($co=="Not Conform")
{

echo"<tr>

<th>".$trow['id']."</th>

<th>".$trow['FName']." ".$trow['LName']."</th>

<th>".$trow['Email']."</th>

<th>".$trow['Country']."</th>

<th>".$trow['TRoom']."</th>

<th>".$trow['Bed']."</th>

<th>".$trow['Meal']."</th>

<th>".$trow['cin']."</th>

<th>".$trow['cout']."</th>

<th>".$trow['stat']."</th>

<th><a href='roombook.php?rid=".$trow['id']." '


class='btnbtn-primary'>Action</a></th>

93
</tr>";
}

}
?>

</tbody>
</table>

</div>
</div>
</div>
<!-- End Basic Table -->
</div>
</div>
</div>
<?php

$rsql = "SELECT * FROM


`roombook`";
$rre = mysqli_query($con,
$rsql);
$r =0;

while($row=mysqli_fetch_array($rre) )
{
$br =
$row['stat'];

if($br=="Conform")
{
$r
= $r + 1;

94
?>
<div class="panel panel-info">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseOne"
class="collapsed">

<button class="btnbtn-primary" type="button">

Booked Rooms <span class="badge"><?php echo $r ; ?></span>

</button>

</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse" style="height: 0px;">
<div class="panel-body">
<?php
$msql =
"SELECT * FROM `roombook`";
$mre =
mysqli_query($con,$msql);

while($mrow=mysqli_fetch_array($mre) )
{

$br = $mrow['stat'];

if($br=="Conform")
{

$fid = $mrow['id'];

echo"<div class='col-md-3 col-sm-12 col-xs-12'>

<div class='panel panel-primary text-center no-boderbg-color-blue'>

95
<div class='panel-body'>

<i class='fa fa-users fa-5x'></i>

<h3>".$mrow['FName']."</h3>

</div>

<div class='panel-footer back-footer-blue'>

<a href=show.php?sid=".$fid ."><button class='btnbtn-primary


btn' data-toggle='modal' data-target='#myModal'>

Show

</button></a>

".$mrow['TRoom']."

</div>

</div>

</div>";

}
?>

</div>

</div>

</div>

96
<?php

$fsql = "SELECT * FROM


`contact`";
$fre = mysqli_query($con,
$fsql);
$f =0;

while($row=mysqli_fetch_array($fre) )
{
$f = $f + 1;

?>
<div class="panel panel-danger">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseThree"
class="collapsed">

<button class="btnbtn-primary" type="button">

Followers <span class="badge"><?php echo $f ; ?></span>

</button>

</a>
</h4>
</div>
<div id="collapseThree" class="panel-collapse collapse">
<div class="panel-body">
<div class="panel-body">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>Full Name</th>
<th>Email</th>

<th>Follow Start</th>

97
<th>Permission status</th>

</tr>
</thead>
<tbody>

<?php
$csql = "select *
from contact";
$cre =
mysqli_query($con,$csql);

while($crow=mysqli_fetch_array($cre) )
{

echo"<tr>

<th>".$crow['id']."</th>

<th>".$crow['fullname']."</th>

<th>".$crow['email']." </th>

<th>".$crow['cdate']." </th>

<th>".$crow['approval']."</th>

</tr>";

}
?>

</tbody>
</table>
<a href="messages.php"
class="btnbtn-primary">More Action</a>
</div>
</div>
</div>

98
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

<!-- DEOMO-->
<div class='panel-body'>
<button class='btnbtn-primary btn' data-toggle='modal' data-target='#myModal'>
Update
</button>
<div class='modal fade' id='myModal' tabindex='-1' role='dialog' aria-
labelledby='myModalLabel' aria-hidden='true'>
<div class='modal-dialog'>
<div class='modal-content'>
<div class='modal-header'>
<button type='button' class='close' data-dismiss='modal' aria-
hidden='true'>&times;</button>
<h4 class='modal-title' id='myModalLabel'>Change the User name and Password</h4>
</div>
<form
method='post>
<div class='modal-body'>
<div class='form-group'>
<label>Change User name</label>
<input name='usname' value='<?php echo $fname; ?>' class='form-control'
placeholder='Enter User name'>

</div>
</div>
<div
class='modal-body'>
<div class='form-group'>
<label>Change Password</label>
<input name='pasd' value='<?php echo $ps; ?>' class='form-control' placeholder='Enter
Password'>

</div>

99
</div>

<div class='modal-footer'>
<button type='button' class='btnbtn-default' data-dismiss='modal'>Close</button>

<input type='submit' name='up' value='Update' class='btnbtn-primary'>


</form>

</div>
</div>
</div>
</div>
</div>

<!--DEMO END-->

<!-- /. ROW -->

</div>
<!-- /. PAGE INNER -->
</div>
<!-- /. PAGE WRAPPER -->
</div>
<!-- /. WRAPPER -->
<!-- JS Scripts-->
<!-- jQuery Js -->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- Bootstrap Js -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- Metis Menu Js -->
<script src="assets/js/jquery.metisMenu.js"></script>
<!-- Morris Chart Js -->
<script src="assets/js/morris/raphael-2.1.0.min.js"></script>
<script src="assets/js/morris/morris.js"></script>
<!-- Custom Js -->
<script src="assets/js/custom-scripts.js"></script>

10
0
</body>

</html>

Index.php (admin)

<?php
session_start();
if(isset($_SESSION["user"]))
{
header("location:home.php");
}

?>
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<title>REVOLVING HOTEL ADMIN</title>

<link rel="stylesheet" href="css/style.css">

</head>

<body>
<div id="clouds">
<div class="cloud x1"></div>
<!-- Time for multiple clouds to dance around -->
<div class="cloud x2"></div>
<div class="cloud x3"></div>
<div class="cloud x4"></div>
<div class="cloud x5"></div>
</div>

<div class="container">

10
1
<div id="login">

<form method="post">

<fieldset class="clearfix">

<p><span class="fontawesome-user"></span><input type="text" name="user"


value="Username" onBlur="if(this.value == '') this.value = 'Username'"
onFocus="if(this.value == 'Username') this.value = ''" required></p><!-- JS because of
IE support; better: placeholder="Username" -->
<p><span class="fontawesome-lock"></span><input type="password" name="pass"
value="Password" onBlur="if(this.value == '') this.value = 'Password'"
onFocus="if(this.value == 'Password') this.value = ''" required></p><!-- JS because of IE
support; better: placeholder="Password" -->
<p><input type="submit" name="sub" value="Login"></p>

</fieldset>

</form>

</div><!-- end login -->

</div>
<div class="bottom"><h3><a href="../index.php">REVOLVING HOTEL
HOMEPAGE</a></h3></div>

</body>
</html>

<?php
include('db.php');

if($_SERVER["REQUEST_METHOD"] == "POST") {
// username and password sent from form

$myusername = mysqli_real_escape_string($con,$_POST['user']);
$mypassword = mysqli_real_escape_string($con,$_POST['pass']);

10
2
$sql = "SELECT id FROM login WHERE usname = '$myusername' and pass =
'$mypassword'";
$result = mysqli_query($con,$sql);
$row = mysqli_fetch_array($result,MYSQLI_ASSOC);
$active = $row['active'];

$count = mysqli_num_rows($result);

// If result matched $myusername and $mypassword, table row must be 1 row

if($count == 1) {

$_SESSION['user'] = $myusername;

header("location: home.php");
}else {
echo '<script>alert("Your Login Name or Password is invalid") </script>' ;
}
}
?>

logout.php

?php
session_start();
unset($_SESSION["user"]);
header("location:index.php");
?>

messages.php

<?php
session_start();
if(!isset($_SESSION["user"]))
{
header("location:index.php");
}
?>
<!DOCTYPE html>

10
3
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>REVOLVING HOTEL</title>
<!-- Bootstrap Styles-->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!--FontAwesome Styles-->
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<!-- Morris Chart Styles-->

<!-- Custom Styles-->


<link href="assets/css/custom-styles.css" rel="stylesheet" />
<!-- Google Fonts-->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'
type='text/css' />
<!-- TABLE STYLES-->
<link href="assets/js/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
</head>
<body>
<div id="wrapper">

<nav class="navbar navbar-default top-navbar" role="navigation">


<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-
target=".sidebar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="home.php"><?php echo $_SESSION["user"]; ?></a>
</div>

<ul class="nav navbar-top-links navbar-right">


<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
<i class="fa fa-user fa-fw"></i><i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="usersetting.php"><i class="fa fa-user fa-fw"></i> User Profile</a>

10
4
</li>
<li><a href="settings.php"><i class="fa fa-gear fa-fw"></i> Settings</a>
</li>
<li class="divider"></li>
<li><a href="logout.php"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
</li>
</ul>
<!-- /.dropdown-user -->
</li>
<!-- /.dropdown -->
</ul>
</nav>
<!--/. NAV TOP -->
<nav class="navbar-default navbar-side" role="navigation">
<div class="sidebar-collapse">
<ul class="nav" id="main-menu">

<li>
<a href="home.php"><i class="fa fa-dashboard"></i> Status</a>
</li>
<li>
<a class="active-menu" href="messages.php"><i class="fa fa-desktop"></i> News
Letters</a>
</li>
<li>
<a href="roombook.php"><i class="fa fa-bar-chart-o"></i>Room Booking</a>
</li>
<li>
<a href="Payment.php"><i class="fa fa-qrcode"></i> Payment</a>
</li>
<li>
<a href="profit.php"><i class="fa fa-qrcode"></i> Profit</a>
</li>
<li>
<a href="logout.php" ><i class="fa fa-sign-out fa-fw"></i> Logout</a>
</li>

</div>

10
5
</nav>
<!-- /. NAV SIDE -->
<div id="page-wrapper" >
<div id="page-inner">
<div class="row">
<div class="col-md-12">
<h1 class="page-header">
News letters<small> panel</small>
</h1>
</div>
</div>
<!-- /. ROW -->
<?php
include('db.php');
$mail = "SELECT * FROM `contact`";
$rew = mysqli_query($con,$mail);

?>
<div class="row">
<div class="col-md-12">
<div class="jumbotron">
<h3>Send The News Letters to Followers</h3>
<?php
while($rows = mysqli_fetch_array($rew))
{
$app=$rows['approval'];
if($app=="Allowed")
{

}
}
?>
<p></p>
<p>
<div class="panel-body">
<button class="btnbtn-primary btn" data-toggle="modal" data-target="#myModal">
Send New News Letters
</button>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-
labelledby="myModalLabel" aria-hidden="true">

10
6
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-
hidden="true">&times;</button>
<h4 class="modal-title" id="myModalLabel">Compose News Letter</h4>
</div>
<form
method="post">
<div class="modal-body">
<div class="form-group">
<label>Title</label>
<input name="title" class="form-control" placeholder="Enter Title">

</div>
</div>
<div
class="modal-body">
<div class="form-group">
<label>Subject</label>
<input name="subject" class="form-control" placeholder="Enter Subject">

</div>
</div>
<div
class="modal-body">
<div
class="form-group">
<label
for="comment">News</label>
<textarea
name="news" class="form-control" rows="5" id="comment"></textarea>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btnbtn-default" data-dismiss="modal">Close</button>

<input type="submit" name="log" value="Send" class="btnbtn-primary">


</form>

</div>
</div>

10
7
</div>
</div>
</div>
<?php
if(isset($_POST['log']))
{
$log ="INSERT INTO
`newsletterlog`(`title`, `subject`, `news`) VALUES
('$_POST[title]','$_POST[subject]','$_POST[news]')";
if(mysqli_query($con,
$log))
{
echo
'<script>alert("New Room Added") </script>' ;

?>

</p>

</div>
</div>
</div>
<?php

$sql = "SELECT * FROM `contact`";


$re = mysqli_query($con,$sql);

?>
<div class="row">
<div class="col-md-12">
<!-- Advanced Tables -->
<div class="panel panel-default">
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover" id="dataTables-
example">

10
8
<thead>
<tr>
<th>Name</th>

<th>Phone Number</th>
<th>Email</th>
<th>Date</th>

<th>Status</th>

<th>Approval</th>

<th>Remove</th>

</tr>
</thead>
<tbody>

<?php

while($row = mysqli_fetch_array($re))
{

$id = $row['id'];

if($id % 2 ==1 )
{

echo"<tr class='gradeC'>

<td>".$row['fullname']."</td>

<td>".$row['phoneno']."</td>

<td>".$row['email']."</td>

<td>".$row['cdate']."</td>

<td>".$row['approval']."</td>

10
9
<td><a href=newsletter.php?eid=".$id ." <button class='btnbtn-primary'><i
class='fa fa-edit' ></i> Permission</button></td>

<td><a href=newsletterdel.php?eid=".$id ." <button class='btnbtn-


danger'><i class='fa fa-edit' ></i> Delete</button></td>

</tr>";
}

else
{

echo"<tr class='gradeU'>

<td>".$row['fullname']."</td>

<td>".$row['phoneno']."</td>

<td>".$row['email']."</td>

<td>".$row['cdate']."</td>

<td>".$row['approval']."</td>

<td><a href=newsletter.php?eid=".$id." <button class='btnbtn-primary'><i


class='fa fa-edit' ></i> Permission</button></td>

<td><a href=newsletterdel.php?eid=".$id ." <button class='btnbtn-


danger'><i class='fa fa-edit' ></i> Delete </button></td>

</tr>";

?>

</tbody>
</table>
</div>

</div>

11
0
</div>
<!--End Advanced Tables -->
</div>
</div>
<!-- /. ROW -->

</div>

</div>

</div>
<!-- /. PAGE INNER -->
</div>
<!-- /. PAGE WRAPPER -->
<!-- /. WRAPPER -->
<!-- JS Scripts-->
<!-- jQuery Js -->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- Bootstrap Js -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- Metis Menu Js -->
<script src="assets/js/jquery.metisMenu.js"></script>
<!-- DATA TABLE SCRIPTS -->
<script src="assets/js/dataTables/jquery.dataTables.js"></script>
<script src="assets/js/dataTables/dataTables.bootstrap.js"></script>
<script>
$(document).ready(function () {
$('#dataTables-example').dataTable();
});
</script>
<!-- Custom Js -->
<script src="assets/js/custom-scripts.js"></script>

</body>
</html>

newsletter.php

<?php

11
1
include ('db.php');
$eid = $_GET['eid'];
$approval ="Allowed";
$napproval="Not Allowed";

$view="select * from contact where id = '$eid' ";


$re = mysqli_query($con,$view);
while ($row=mysqli_fetch_array($re))
{
$id =$row['approval'];

if($id=="Not Allowed")
{
$sql ="UPDATE `contact` SET `approval`= '$approval' WHERE id = '$eid' ";
if(mysqli_query($con,$sql))
{
echo '<script>alert("New Room Added") </script>' ;
header("Location: messages.php");
}
}
else {
$sql ="UPDATE `contact` SET `approval`= '$napproval' WHERE id = '$eid' ";
if(mysqli_query($con,$sql))
{
echo '<script>alert("New Room Added") </script>' ;
header("Location: messages.php");
}

}
?>

newsletterdel.php

<?php

include ('db.php');

11
2
$id=$_GET['eid'];
if($id=="")
{
echo '<script>alert("Sorry ! Wrong Entry") </script>' ;
header("Location: messages.php");

else{
$view="DELETE FROM `contact` WHERE id ='$id' ";

if($re = mysqli_query($con,$view))
{
echo '<script>alert("News Letter Subscriber Remove") </script>' ;
header("Location: messages.php");
}
}
?>

payment.php

<?php
session_start();
if(!isset($_SESSION["user"]))
{
header("location:index.php");
}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>REVOLVING HOTEL</title>
<!-- Bootstrap Styles-->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!--FontAwesome Styles-->
<link href="assets/css/font-awesome.css" rel="stylesheet" />

11
3
<!-- Morris Chart Styles-->

<!-- Custom Styles-->


<link href="assets/css/custom-styles.css" rel="stylesheet" />
<!-- Google Fonts-->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'
type='text/css' />
<!-- TABLE STYLES-->
<link href="assets/js/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
</head>
<body>
<div id="wrapper">

<nav class="navbar navbar-default top-navbar" role="navigation">


<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-
target=".sidebar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="home.php"><?php echo $_SESSION["user"]; ?></a>
</div>

<ul class="nav navbar-top-links navbar-right">


<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
<i class="fa fa-user fa-fw"></i><i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="usersetting.php"><i class="fa fa-user fa-fw"></i> User Profile</a>
</li>
<li><a href="settings.php"><i class="fa fa-gear fa-fw"></i> Settings</a>
</li>
<li class="divider"></li>
<li><a href="logout.php"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
</li>
</ul>
<!-- /.dropdown-user -->
</li>

11
4
<!-- /.dropdown -->
</ul>
</nav>
<!--/. NAV TOP -->
<nav class="navbar-default navbar-side" role="navigation">
<div class="sidebar-collapse">
<ul class="nav" id="main-menu">

<li>
<a href="home.php"><i class="fa fa-dashboard"></i> Status</a>
</li>
<li>
<a href="messages.php"><i class="fa fa-desktop"></i> News Letters</a>
</li>
<li>
<a href="roombook.php"><i class="fa fa-bar-chart-o"></i>Room Booking</a>
</li>
<li>
<a class="active-menu" href="payment.php"><i class="fa fa-qrcode"></i>
Payment</a>
</li>
<li>
<a href="profit.php"><i class="fa fa-qrcode"></i> Profit</a>
</li>
<li>
<a href="logout.php" ><i class="fa fa-sign-out fa-fw"></i> Logout</a>
</li>

</div>

</nav>
<!-- /. NAV SIDE -->
<div id="page-wrapper" >
<div id="page-inner">
<div class="row">
<div class="col-md-12">
<h1 class="page-header">
Payment Details<small></small>
</h1>

11
5
</div>
</div>
<!-- /. ROW -->

<div class="row">
<div class="col-md-12">
<!-- Advanced Tables -->
<div class="panel panel-default">
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover" id="dataTables-
example">
<thead>
<tr>
<th>Name</th>

<th>Room type</th>
<th>Bed Type</th>
<th>Check in</th>

<th>Check out</th>

<th>No of Room</th>

<th>Meal Type</th>

<th>Room Rent</th>

<th>Bed Rent</th>

<th>Meals </th>

<th>Gr.Total</th>

<th>Print</th>

</tr>
</thead>
<tbody>

<?php

11
6
include
('db.php');

$sql="select * from payment";


$re =
mysqli_query($con,$sql);

while($row = mysqli_fetch_array($re))
{

$id = $row['id'];

if($id % 2 ==1 )
{

echo"<tr class='gradeC'>

<td>".$row['title']." ".$row['fname']." ".$row['lname']."</td>

<td>".$row['troom']."</td>

<td>".$row['tbed']."</td>

<td>".$row['cin']."</td>

<td>".$row['cout']."</td>

<td>".$row['nroom']."</td>

<td>".$row['meal']."</td>

<td>".$row['ttot']."</td>

<td>".$row['mepr']."</td>

<td>".$row['btot']."</td>

<td>".$row['fintot']."</td>

11
7
<td><a href=print.php?pid=".$id ." <button class='btnbtn-primary'><i
class='fa fa-print' ></i> Print</button></td>

</tr>";
}

else
{

echo"<tr class='gradeU'>

<td>".$row['title']." ".$row['fname']." ".$row['lname']."</td>

<td>".$row['troom']."</td>

<td>".$row['tbed']."</td>

<td>".$row['cin']."</td>

<td>".$row['cout']."</td>

<td>".$row['nroom']."</td>

<td>".$row['meal']."</td>

<td>".$row['ttot']."</td>

<td>".$row['mepr']."</td>

<td>".$row['btot']."</td>

<td>".$row['fintot']."</td>

<td><a href=print.php?pid=".$id ." <button class='btnbtn-primary'><i


class='fa fa-print' ></i> Print</button></td>

</tr>";

11
8
?>

</tbody>
</table>
</div>

</div>
</div>
<!--End Advanced Tables -->
</div>
</div>
<!-- /. ROW -->

</div>

</div>

</div>
<!-- /. PAGE INNER -->
</div>
<!-- /. PAGE WRAPPER -->
<!-- /. WRAPPER -->
<!-- JS Scripts-->
<!-- jQuery Js -->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- Bootstrap Js -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- Metis Menu Js -->
<script src="assets/js/jquery.metisMenu.js"></script>
<!-- DATA TABLE SCRIPTS -->
<script src="assets/js/dataTables/jquery.dataTables.js"></script>
<script src="assets/js/dataTables/dataTables.bootstrap.js"></script>
<script>
$(document).ready(function () {
$('#dataTables-example').dataTable();
});
</script>
<!-- Custom Js -->
<script src="assets/js/custom-scripts.js"></script>

11
9
</body>
</html>

print.php

<html>
<head>
<meta charset="utf-8">
<title>Invoice</title>
<link rel="stylesheet" href="style.css">
<link rel="license" href="https://www.opensource.org/licenses/mit-
license/">
<script src="script.js"></script>
<style>
/* reset */

*
{
border: 0;
box-sizing: content-box;
color: inherit;
font-family: inherit;
font-size: inherit;
font-style: inherit;
font-weight: inherit;
line-height: inherit;
list-style: none;
margin: 0;
padding: 0;
text-decoration: none;
vertical-align: top;
}

/* content editable */

*[contenteditable] { border-radius: 0.25em; min-width: 1em; outline: 0; }

12
0
*[contenteditable] { cursor: pointer; }

*[contenteditable]:hover, *[contenteditable]:focus, td:hover *[contenteditable],


td:focus *[contenteditable], img.hover { background: #DEF; box-shadow: 0 0 1em
0.5em #DEF; }

span[contenteditable] { display: inline-block; }

/* heading */

h1 { font: bold 100% sans-serif; letter-spacing: 0.5em; text-align: center; text-


transform: uppercase; }

/* table */

table { font-size: 75%; table-layout: fixed; width: 100%; }


table { border-collapse: separate; border-spacing: 2px; }
th, td { border-width: 1px; padding: 0.5em; position: relative; text-align: left; }
th, td { border-radius: 0.25em; border-style: solid; }
th{ background: #EEE; border-color: #BBB; }
td { border-color: #DDD; }

/* page */

html { font: 16px/1 'Open Sans', sans-serif; overflow: auto; padding: 0.5in; }
html { background: #999; cursor: default; }

body { box-sizing: border-box; height: 11in; margin: 0 auto; overflow: hidden; padding:
0.5in; width: 8.5in; }
body { background: #FFF; border-radius: 1px; box-shadow: 0 0 1in -0.25in rgba(0, 0, 0,
0.5); }

/* header */

header { margin: 0 0 3em; }


header:after { clear: both; content: ""; display: table; }

header h1 { background: #000; border-radius: 0.25em; color: #FFF; margin: 0 0 1em;


padding: 0.5em 0; }
header address { float: left; font-size: 75%; font-style: normal; line-height: 1.25;
margin: 0 1em 1em 0; }
header address p { margin: 0 0 0.25em; }

12
1
header span, header img{ display: block; float: right; }
header span { margin: 0 0 1em 1em; max-height: 25%; max-width: 60%; position:
relative; }
header img{ max-height: 100%; max-width: 100%; }
header input { cursor: pointer; -ms-
filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; height: 100%; left: 0;
opacity: 0; position: absolute; top: 0; width: 100%; }

/* article */

article, article address, table.meta, table.inventory { margin: 0 0 3em; }


article:after { clear: both; content: ""; display: table; }
article h1 { clip: rect(0 0 0 0); position: absolute; }

article address { float: left; font-size: 125%; font-weight: bold; }

/* table meta & balance */

table.meta, table.balance { float: right; width: 36%; }


table.meta:after, table.balance:after { clear: both; content: ""; display: table; }

/* table meta */

table.metath { width: 40%; }


table.meta td { width: 60%; }

/* table items */

table.inventory { clear: both; width: 100%; }


table.inventoryth { font-weight: bold; text-align: center; }

table.inventorytd:nth-child(1) { width: 26%; }


table.inventorytd:nth-child(2) { width: 38%; }
table.inventorytd:nth-child(3) { text-align: right; width: 12%; }
table.inventorytd:nth-child(4) { text-align: right; width: 12%; }
table.inventorytd:nth-child(5) { text-align: right; width: 12%; }

/* table balance */

table.balanceth, table.balance td { width: 50%; }


table.balance td { text-align: right; }

12
2
/* aside */

aside h1 { border: none; border-width: 0 0 1px; margin: 0 0 1em; }


aside h1 { border-color: #999; border-bottom-style: solid; }

/* javascript */

.add, .cut
{
border-width: 1px;
display: block;
font-size: .8rem;
padding: 0.25em 0.5em;
float: left;
text-align: center;
width: 0.6em;
}

.add, .cut
{
background: #9AF;
box-shadow: 0 1px 2px rgba(0,0,0,0.2);
background-image: -moz-linear-gradient(#00ADEE 5%, #0078A5 100%);
background-image: -webkit-linear-gradient(#00ADEE 5%, #0078A5 100%);
border-radius: 0.5em;
border-color: #0076A3;
color: #FFF;
cursor: pointer;
font-weight: bold;
text-shadow: 0 -1px 2px rgba(0,0,0,0.333);
}

.add { margin: -2.5em 0 0; }

.add:hover { background: #00ADEE; }

.cut { opacity: 0; position: absolute; top: 0; left: -1.5em; }


.cut { -webkit-transition: opacity 100ms ease-in; }

tr:hover .cut { opacity: 1; }

12
3
@media print {
* { -webkit-print-color-adjust: exact; }
html { background: none; padding: 0; }
body { box-shadow: none; margin: 0; }
span:empty { display: none; }
.add, .cut { display: none; }
}

@page { margin: 0; }
</style>

</head>
<body>

<?php
ob_start();
include ('db.php');

$pid = $_GET['pid'];

$sql ="select * from payment where id = '$pid' ";


$re = mysqli_query($con,$sql);
while($row=mysqli_fetch_array($re))
{
$id = $row['id'];
$title = $row['title'];
$fname = $row['fname'];
$lname = $row['lname'];
$troom = $row['troom'];
$bed = $row['tbed'];
$nroom = $row['nroom'];
$cin = $row['cin'];
$cout = $row['cout'];
$meal = $row['meal'];
$ttot = $row['ttot'];

12
4
$mepr = $row['mepr'];
$btot = $row['btot'];
$fintot = $row['fintot'];
$days = $row['noofdays'];

$type_of_room =
0;

if($troom=="Superior Room")
{

$type_of_room = 320;

}
else
if($troom=="Deluxe Room")
{

$type_of_room = 220;
}
else
if($troom=="Guest House")
{

$type_of_room = 180;
}
else
if($troom=="Single Room")
{

$type_of_room = 150;
}

if($bed=="Single")
{

$type_of_bed = $type_of_room * 1/100;

12
5
}
else
if($bed=="Double")
{

$type_of_bed = $type_of_room * 2/100;


}
else
if($bed=="Triple")
{

$type_of_bed = $type_of_room * 3/100;


}
else
if($bed=="Quad")
{

$type_of_bed = $type_of_room * 4/100;


}
else
if($bed=="None")
{

$type_of_bed = $type_of_room * 0/100;


}

if($meal=="Room
only")
{

$type_of_meal=$type_of_bed * 0;
}
else
if($meal=="Breakfast")
{

$type_of_meal=$type_of_bed * 2;
}else
if($meal=="Half Board")
{

$type_of_meal=$type_of_bed * 3;

12
6
}else
if($meal=="Full Board")
{

$type_of_meal=$type_of_bed * 4;
}

?>
<header>
<h1>Invoice</h1>
<address >
<p>REVOLVING HOTEL,</p>
<p>BORING Road,<br>PATNA,<br>INDIA</p>
<p>8434931131</p>
</address>
<span><img alt="" src=""></span>
</header>
<article>
<h1>Recipient</h1>
<address >
<p><?php echo $title.$fname." ".$lname ?><br></p>
</address>
<table class="meta">
<tr>
<th><span >Invoice #</span></th>
<td><span ><?php echo $id; ?></span></td>
</tr>
<tr>
<th><span >Date</span></th>
<td><span ><?php echo $cout; ?></span></td>
</tr>

</table>
<table class="inventory">
<thead>
<tr>
<th><span >Item</span></th>
<th><span >No of Days</span></th>
<th><span >Rate</span></th>
<th><span >Quantity</span></th>

12
7
<th><span >Price</span></th>
</tr>
</thead>
<tbody>
<tr>
<td><span ><?php echo $troom;
?></span></td>
<td><span ><?php echo $days;
?></span></td>
<td><span data-prefix>Rs.</span><span
><?php echo $type_of_room;?></span></td>
<td><span ><?php echo
$nroom;?></span></td>
<td><span
data-prefix>Rs.</span><span><?php echo $ttot; ?></span></td>
</tr>
<tr>
<td><span ><?php echo $bed; ?> Bed
</span></td>
<td><span ><?php echo $days;
?></span></td>
<td><span data-prefix>Rs.</span><span
><?php echo $type_of_bed;?></span></td>
<td><span ><?php echo
$nroom;?></span></td>
<td><span
data-prefix>Rs.</span><span><?php echo $btot; ?></span></td>
</tr>
<tr>
<td><span ><?php echo $meal;
?></span></td>
<td><span ><?php echo $days;
?></span></td>
<td><span data-prefix>Rs.</span><span
><?php echo $type_of_meal?></span></td>
<td><span ><?php echo
$nroom;?></span></td>
<td><span
data-prefix>Rs.</span><span><?php echo $mepr; ?></span></td>
</tr>
</tbody>
</table>

12
8
<table class="balance">
<tr>
<th><span >Total</span></th>
<td><span data-prefix>Rs.</span><span><?php
echo $fintot; ?></span></td>
</tr>
<tr>
<th><span >Amount Paid</span></th>
<td><span data-prefix>Rs.</span><span
>0.00</span></td>
</tr>
<tr>
<th><span >Balance Due</span></th>
<td><span data-prefix>Rs.</span><span><?php
echo $fintot; ?></span></td>
</tr>
</table>
</article>
<aside>
<h1><span >Contact us</span></h1>
<div >
<p align="center">Email :- info@revolving.com || Web :-
www.revolving.com || Phone :- 8434931131 </p>
</div>
</aside>
</body>
</html>
<?php
$free="Free";
$nul = null;
$rpsql = "UPDATE `room` SET `place`='$free',`cusid`='$nul' where `cusid`='$id'";
if(mysqli_query($con,$rpsql))
{
$delsql= "DELETE FROM `roombook` WHERE id='$id' ";

if(mysqli_query($con,$delsql))
{

}
}
?>

12
9
<?php

ob_end_flush();

?>

profit.php

<?php
session_start();
if(!isset($_SESSION["user"]))
{
header("location:index.php");
}
?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>REVOLVING HOTEL</title>
<!-- Bootstrap Styles-->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!--FontAwesome Styles-->
<link href="assets/css/font-awesome.css" rel="stylesheet" />

<link rel="stylesheet" href="assets/css/morris.css">


<script src="assets/js/jquery.min.js"></script>
<script src="assets/js//raphael-min.js"></script>
<script src="assets/js/morris.min.js"></script>

<!-- Custom Styles-->


<link href="assets/css/custom-styles.css" rel="stylesheet" />
<!-- Google Fonts-->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'
type='text/css' />
<!-- TABLE STYLES-->
<link href="assets/js/dataTables/dataTables.bootstrap.css" rel="stylesheet" />

13
0
</head>
<body>
<div id="wrapper">

<nav class="navbar navbar-default top-navbar" role="navigation">


<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-
target=".sidebar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="home.php"><?php echo $_SESSION["user"]; ?></a>
</div>

<ul class="nav navbar-top-links navbar-right">


<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
<i class="fa fa-user fa-fw"></i><i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="usersetting.php"><i class="fa fa-user fa-fw"></i> User Profile</a>
</li>
<li><a href="settings.php"><i class="fa fa-gear fa-fw"></i> Settings</a>
</li>
<li class="divider"></li>
<li><a href="logout.php"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
</li>
</ul>
<!-- /.dropdown-user -->
</li>
<!-- /.dropdown -->
</ul>
</nav>
<!--/. NAV TOP -->
<nav class="navbar-default navbar-side" role="navigation">
<div class="sidebar-collapse">
<ul class="nav" id="main-menu">

<li>

13
1
<a href="home.php"><i class="fa fa-dashboard"></i> Status</a>
</li>
<li>
<a href="messages.php"><i class="fa fa-desktop"></i> News Letters</a>
</li>
<li>
<a href="roombook.php"><i class="fa fa-bar-chart-o"></i>Room Booking</a>
</li>
<li>
<a href="payment.php"><i class="fa fa-qrcode"></i> Payment</a>
</li>
<li>
<a class="active-menu" href="profit.php"><i class="fa fa-qrcode"></i> Profit</a>
</li>

<li>
<a href="logout.php" ><i class="fa fa-sign-out fa-fw"></i> Logout</a>
</li>

</div>

</nav>
<!-- /. NAV SIDE -->
<div id="page-wrapper" >
<div id="page-inner">
<div class="row">
<div class="col-md-12">
<h1 class="page-header">
Profit Details<small></small>
</h1>
</div>
</div>
<!-- /. ROW -->

<div class="row">

<?php
//index.php

13
2
//$connect = mysqli_connect("localhost", "root", "",
"hotel");
include('db.php');

$query = "SELECT * FROM payment";


$result = mysqli_query($con, $query);
$chart_data = '';
$tot = 0;
while($row = mysqli_fetch_array($result))
{
$chart_data .= "{ date:'".$row["cout"]."', profit:".
$row["fintot"] *10/100 ."}, ";
$tot = $tot + $row["fintot"] *10/100;
}
$chart_data = substr($chart_data, 0, -2);

?>

<br>
<br>
<br>
<br><div id="chart"></div>
<div class="col-md-12">
<!-- Advanced Tables -->
<div class="panel panel-default">
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover" id="dataTables-
example">
<thead>
<tr>

<th>ID</th>
<th>Name</th>
<th>Check in</th>

<th>Check out</th>
<th>Room Rent</th>

<th>Bed Rent</th>

13
3
<th>Meals </th>

<th>Gr.Total</th>

<th>Profit</th>

</tr>
</thead>
<tbody>

<?php

$sql="select * from payment";


$re =
mysqli_query($con,$sql);

while($row = mysqli_fetch_array($re))
{

$id = $row['id'];

if($id % 2 ==1 )
{

echo"<tr class='gradeC'>

<td>".$row['id']." </td>

<td>".$row['title']." ".$row['fname']." ".$row['lname']."</td>

<td>".$row['cin']."</td>

<td>".$row['cout']."</td>

<td>$".$row['ttot']."</td>

13
4
<td>$".$row['mepr']."</td>

<td>$".$row['btot']."</td>

<td>$".$row['fintot']."</td>

<td>$".$row['fintot']*10/100 ."</td>

</tr>";
}

else
{

echo"<tr class='gradeU'>

<td>".$row['id']." </td>

<td>".$row['title']." ".$row['fname']." ".$row['lname']."</td>

<td>".$row['cin']."</td>

<td>".$row['cout']."</td>

<td>$".$row['ttot']."</td>

<td>$".$row['mepr']."</td>

<td>$".$row['btot']."</td>

<td>$".$row['fintot']."</td>

<td>$".$row['fintot']*10/100 ."</td>

</tr>";

13
5
}

?>

</tbody>
</table>
</div>

</div>
</div>
<!--End Advanced Tables -->
</div>
</div>
<!-- /. ROW -->

</div>

</div>

</div>
<!-- /. PAGE INNER -->
</div>
<!-- /. PAGE WRAPPER -->
<!-- /. WRAPPER -->
<!-- JS Scripts-->
<!-- jQuery Js -->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- Bootstrap Js -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- Metis Menu Js -->
<script src="assets/js/jquery.metisMenu.js"></script>
<!-- DATA TABLE SCRIPTS -->
<script src="assets/js/dataTables/jquery.dataTables.js"></script>
<script src="assets/js/dataTables/dataTables.bootstrap.js"></script>
<script>
$(document).ready(function () {
$('#dataTables-example').dataTable();
});

13
6
</script>
<!-- Custom Js -->
<script src="assets/js/custom-scripts.js"></script>

</body>
</html>
<script>
Morris.Bar({
element : 'chart',
data:[<?php echo $chart_data; ?>],
xkey:'date',
ykeys:['profit'],
labels:['Profit'],
hideHover:'auto',
stacked:true
});
</script>

reservation.php

<?php
include('db.php')
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>RESERVATION REVOLVING HOTEL</title>
<!-- Bootstrap Styles-->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!--FontAwesome Styles-->
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<!-- Custom Styles-->
<link href="assets/css/custom-styles.css" rel="stylesheet" />
<!-- Google Fonts-->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'
type='text/css' />
</head>

13
7
<body>
<div id="wrapper">
<nav class="navbar-default navbar-side" role="navigation">
<div class="sidebar-collapse">
<ul class="nav" id="main-menu">

<li>
<a href="../index.php"><i class="fa fa-home"></i> Homepage</a>
</li>

</ul>

</div>

</nav>

<div id="page-wrapper" >


<div id="page-inner">
<div class="row">
<div class="col-md-12">
<h1 class="page-header">
RESERVATION <small></small>
</h1>
</div>
</div>

<div class="row">

<div class="col-md-5 col-sm-5">


<div class="panel panel-primary">
<div class="panel-heading">
PERSONAL INFORMATION
</div>
<div class="panel-body">
<form name="form" method="post">
<div class="form-group">
<label>Title*</label>
<select name="title" class="form-control" required >

<option value selected ></option>

13
8
<option value="Dr.">Dr.</option>
<option value="Miss.">Miss.</option>
<option value="Mr.">Mr.</option>
<option value="Mrs.">Mrs.</option>

<option value="Prof.">Prof.</option>

<option value="Rev .">Rev .</option>

<option value="Rev . Fr">Rev .Fr .</option>


</select>
</div>
<div class="form-group">
<label>First Name</label>
<input name="fname" class="form-control" required>

</div>
<div class="form-group">
<label>Last Name</label>
<input name="lname" class="form-control" required>

</div>
<div class="form-group">
<label>Email</label>
<input name="email" type="email" class="form-control" required>

</div>
<div class="form-group">
<label>Nationality*</label>
<label class="radio-inline">
<input type="radio" name="nation" value="INDIAN" checked="">INDIAN
</label>
<label class="radio-inline">
<input type="radio" name="nation" value="NON INDIAN ">NON INDIAN
</label>

</div>
<?php

$countries = array("ITALY",
"FRANCE","MALDIVES","OTHERS");

13
9
?>
<div class="form-group">
<label>Passport Country*</label>
<select name="country" class="form-control" required>

<option value selected ></option>


<?php

foreach($countries as $key => $value):

echo '<option value="'.$value.'">'.$value.'</option>'; //close your tags!!

endforeach;

?>
</select>
</div>
<div class="form-group">
<label>Phone Number</label>
<input name="phone" type ="text" class="form-control" required>

</div>

</div>

</div>
</div>

<div class="row">
<div class="col-md-6 col-sm-6">
<div class="panel panel-primary">
<div class="panel-heading">
RESERVATION INFORMATION
</div>
<div class="panel-body">
<div class="form-group">
<label>Type Of Room *</label>
<select name="troom" class="form-control" required>

<option value selected ></option>

14
0
<option value="Superior Room">SUPERIOR ROOM</option>
<option value="Deluxe Room">DELUXE ROOM</option>

<option value="Guest House">GUEST HOUSE</option>

<option value="Single Room">SINGLE ROOM</option>


</select>
</div>
<div class="form-group">
<label>Bedding Type</label>
<select name="bed" class="form-control" required>

<option value selected ></option>


<option value="Single">Single</option>
<option value="Double">Double</option>

<option value="Triple">Triple</option>
<option value="Quad">Quad</option>

<option value="None">None</option>

</select>
</div>
<div class="form-group">
<label>No.of Rooms *</label>
<select name="nroom" class="form-control" required>

<option value selected ></option>


<option value="1">1</option>
<!--<option value="2">2</option>

<option value="3">3</option>

<option value="4">4</option>

<option value="5">5</option>

<option value="6">6</option>

<option value="7">7</option> -->


</select>

14
1
</div>

<div class="form-group">
<label>Meal Plan</label>
<select name="meal" class="form-control"required>

<option value selected ></option>


<option value="Room only">Room only</option>
<option value="Breakfast">Breakfast</option>

<option value="Half Board">Half Board</option>

<option value="Full Board">Full Board</option>

</select>
</div>
<div class="form-group">
<label>Check-In</label>
<input name="cin" type ="date" class="form-control">

</div>
<div class="form-group">
<label>Check-Out</label>
<input name="cout" type ="date" class="form-control">

</div>
</div>

</div>
</div>

<div class="col-md-12 col-sm-12">


<div class="well">
<h4>HUMAN VERIFICATION</h4>
<p>Type Below this code <?php $Random_code=rand(); echo$Random_code;
?></p><br />

14
2
<p>Enter the random code<br /></p>
<input type="text" name="code1"
title="random code" />
<input type="hidden"
name="code" value="<?php echo $Random_code; ?>" />
<input type="submit" name="submit"
class="btnbtn-primary">
<?php
if(isset($_POST['submit']))
{
$code1=$_POST['code1'];
$code=$_POST['code'];
if($code1!="$code")
{
$msg="Invalide code";
}
else
{

//
$con=mysqli_connect("localhost","root","","hotel");
$check="SELECT *
FROM roombook WHERE email = '$_POST[email]'";
$rs =
mysqli_query($con,$check);
$data =
mysqli_fetch_array($rs, MYSQLI_NUM);
if($data[0] > 1) {
echo
"<script type='text/javascript'>alert('User Already in Exists')</script>";

else
{
$new
="Not Conform";

$newUser="INSERT INTO `roombook`(`Title`, `FName`, `LName`, `Email`, `National`,


`Country`, `Phone`, `TRoom`, `Bed`, `NRoom`, `Meal`, `cin`, `cout`,`stat`,`nodays`)
VALUES
('$_POST[title]','$_POST[fname]','$_POST[lname]','$_POST[email]','$_POST[nation]','$_

14
3
POST[country]','$_POST[phone]','$_POST[troom]','$_POST[bed]','$_POST[nroom]','$_P
OST[meal]','$_POST[cin]','$_POST[cout]','$new',datediff('$_POST[cout]','$_POST[cin]'))
";
if
(mysqli_query($con,$newUser))
{

echo "<script type='text/javascript'>alert('Your Booking application has been


sent')</script>";

}
else
{

echo "<script type='text/javascript'>alert('Error adding user in


database')</script>";

}
}

$msg="Your code is correct";


}
}
?>
</form>

</div>
</div>
</div>

</div>

</div>
<!-- /. PAGE INNER -->
</div>
<!-- /. PAGE WRAPPER -->
</div>
<!-- /. WRAPPER -->
<!-- JS Scripts-->

14
4
<!-- jQuery Js -->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- Bootstrap Js -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- Metis Menu Js -->
<script src="assets/js/jquery.metisMenu.js"></script>
<!-- Custom Js -->
<script src="assets/js/custom-scripts.js"></script>

</body>
</html>

room.php

<?php
session_start();
if(!isset($_SESSION["user"]))
{
header("location:index.php");
}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>REVOLVING HOTEL</title>
<!-- Bootstrap Styles-->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!--FontAwesome Styles-->
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<!-- Custom Styles-->
<link href="assets/css/custom-styles.css" rel="stylesheet" />
<!-- Google Fonts-->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'
type='text/css' />
</head>

14
5
<body>
<div id="wrapper">
<nav class="navbar navbar-default top-navbar" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-
target=".sidebar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="home.php">MAIN MENU </a>
</div>

<ul class="nav navbar-top-links navbar-right">

<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
<i class="fa fa-user fa-fw"></i><i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="usersetting.php"><i class="fa fa-user fa-fw"></i> User Profile</a>
</li>
<li><a href="settings.php"><i class="fa fa-gear fa-fw"></i> Settings</a>
</li>
<li class="divider"></li>
<li><a href="logout.php"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
</li>
</ul>

<!-- /.dropdown-user -->


</li>
<!-- /.dropdown -->
</ul>
</nav>
<!--/. NAV TOP -->
<nav class="navbar-default navbar-side" role="navigation">
<div class="sidebar-collapse">
<ul class="nav" id="main-menu">

<li>

14
6
<a href="settings.php"><i class="fa fa-dashboard"></i>Rooms Status</a>
</li>
<li>
<a class="active-menu" href="room.php"><i class="fa fa-plus-circle"></i>Add
Room</a>
</li>
<li>
<a href="roomdel.php"><i class="fa fa-desktop"></i> Delete Room</a>
</li>

</div>

</nav>
<!-- /. NAV SIDE -->

<div id="page-wrapper" >


<div id="page-inner">
<div class="row">
<div class="col-md-12">
<h1 class="page-header">
NEW ROOM <small></small>
</h1>
</div>
</div>

<div class="row">

<div class="col-md-5 col-sm-5">


<div class="panel panel-primary">
<div class="panel-heading">
ADD NEW ROOM
</div>
<div class="panel-body">
<form name="form" method="post">
<div class="form-group">
<label>Type Of Room *</label>

14
7
<select name="troom" class="form-control" required>

<option value selected ></option>


<option value="Superior Room">SUPERIOR ROOM</option>
<option value="Deluxe Room">DELUXE ROOM</option>

<option value="Guest House">GUEST HOUSE</option>

<option value="Single Room">SINGLE ROOM</option>


</select>
</div>

<div class="form-group">
<label>Bedding Type</label>
<select name="bed" class="form-control" required>

<option value selected ></option>


<option value="Single">Single</option>
<option value="Double">Double</option>

<option value="Triple">Triple</option>
<option value="Quad">Quad</option>

<option value="Triple">None</option>

</select>

</div>
<input type="submit" name="add"
value="Add New" class="btnbtn-primary">
</form>
<?php
include('db.php');
if(isset($_POST['add']))
{
$room =
$_POST['troom'];
$bed =
$_POST['bed'];
$place =
'Free';

14
8
$check="SELECT * FROM room WHERE type = '$room' AND bedding = '$bed'";
$rs =
mysqli_query($con,$check);
$data =
mysqli_fetch_array($rs, MYSQLI_NUM);
if($data[0]
> 1) {

echo "<script type='text/javascript'>alert('Room Already in Exists')</script>";

else
{

$sql
="INSERT INTO `room`( `type`, `bedding`,`place`) VALUES ('$room','$bed','$place')" ;

if(mysqli_query($con,$sql))
{
echo
'<script>alert("New Room Added") </script>' ;
}else {

echo '<script>alert("Sorry ! Check The System") </script>' ;


}
}
}

?>
</div>

</div>
</div>

<div class="row">
<div class="col-md-6 col-sm-6">
<div class="panel panel-primary">
<div class="panel-heading">

14
9
ROOMS INFORMATION
</div>
<div class="panel-body">
<!-- Advanced Tables -->
<div class="panel panel-default">
<?php
$sql = "select * from room limit 0,10";
$re = mysqli_query($con,$sql)
?>
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover" id="dataTables-
example">
<thead>
<tr>
<th>Room ID</th>
<th>Room Type</th>

<th>Bedding</th>

</tr>
</thead>
<tbody>

<?php

while($row= mysqli_fetch_array($re))
{

$id = $row['id'];

if($id % 2 == 0)
{

echo "<tr class=odd gradeX>

<td>".$row['id']."</td>

<td>".$row['type']."</td>

<th>".$row['bedding']."</th>

15
0
</tr>";
}

else
{

echo"<tr class=even gradeC>

<td>".$row['id']."</td>

<td>".$row['type']."</td>

<th>".$row['bedding']."</th>

</tr>";

}
}
?>
</tbody>
</table>
</div>

</div>
</div>
<!--End Advanced Tables -->

</div>

</div>
</div>

</div>

15
1
</div>
<!-- /. PAGE INNER -->
</div>
<!-- /. PAGE WRAPPER -->
</div>
<!-- /. WRAPPER -->
<!-- JS Scripts-->
<!-- jQuery Js -->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- Bootstrap Js -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- Metis Menu Js -->
<script src="assets/js/jquery.metisMenu.js"></script>
<!-- Custom Js -->
<script src="assets/js/custom-scripts.js"></script>

</body>
</html>

roombook.php

<?php
session_start();
if(!isset($_SESSION["user"]))
{
header("location:index.php");
}
?>

<?php
if(!isset($_GET["rid"]))
{

header("location:index.php");
}
else {
$curdate=date("Y/m/d");

15
2
include ('db.php');
$id = $_GET['rid'];

$sql ="Select * from roombook where id = '$id'";


$re = mysqli_query($con,$sql);
while($row=mysqli_fetch_array($re))
{
$title = $row['Title'];
$fname = $row['FName'];
$lname = $row['LName'];
$email = $row['Email'];
$nat = $row['National'];
$country = $row['Country'];
$Phone = $row['Phone'];
$troom = $row['TRoom'];
$nroom = $row['NRoom'];
$bed = $row['Bed'];
$non = $row['NRoom'];
$meal = $row['Meal'];
$cin = $row['cin'];
$cout = $row['cout'];
$sta = $row['stat'];
$days = $row['nodays'];

?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

15
3
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Administrator </title>
<!-- Bootstrap Styles-->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!--FontAwesome Styles-->
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<!-- Morris Chart Styles-->
<link href="assets/js/morris/morris-0.4.3.min.css" rel="stylesheet" />
<!-- Custom Styles-->
<link href="assets/css/custom-styles.css" rel="stylesheet" />
<!-- Google Fonts-->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'
type='text/css' />
</head>

<body>
<div id="wrapper">
<nav class="navbar navbar-default top-navbar" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-
target=".sidebar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="home.php"><?php echo $_SESSION["user"]; ?></a>
</div>

<ul class="nav navbar-top-links navbar-right">


<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
<i class="fa fa-user fa-fw"></i><i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="usersetting.php"><i class="fa fa-user fa-fw"></i> User Profile</a>
</li>
<li><a href="settings.php"><i class="fa fa-gear fa-fw"></i> Settings</a>
</li>

15
4
<li class="divider"></li>
<li><a href="logout.php"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
</li>
</ul>
<!-- /.dropdown-user -->
</li>
<!-- /.dropdown -->
</ul>
</nav>
<!--/. NAV TOP -->
<nav class="navbar-default navbar-side" role="navigation">
<div class="sidebar-collapse">
<ul class="nav" id="main-menu">

<li>
<a href="home.php"><i class="fa fa-dashboard"></i> Status</a>
</li>
<li>
<a href="messages.php"><i class="fa fa-desktop"></i> News Letters</a>
</li>
<li>
<a class="active-menu" href="roombook.php"><i class="fa fa-bar-chart-o"></i> Room
Booking</a>
</li>
<li>
<a href="payment.php"><i class="fa fa-qrcode"></i> Payment</a>
</li>
<li>
<a href="profit.php"><i class="fa fa-qrcode"></i> Profit</a>
</li>

<li>
<a href="logout.php"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
</li>

</ul>

</div>

15
5
</nav>
<!-- /. NAV SIDE -->

<div id="page-wrapper">
<div id="page-inner">

<div class="row">
<div class="col-md-12">
<h1 class="page-header">
Room Booking<small> <?php echo $curdate; ?></small>
</h1>
</div>

<div class="col-md-8 col-sm-8">


<div class="panel panel-info">
<div class="panel-heading">
Booking Conformation
</div>
<div class="panel-body">

<div class="table-responsive">
<table class="table">
<tr>
<th>DESCRIPTION</th>
<th>INFORMATION</th>

</tr>
<tr>
<th>Name</th>
<th><?php echo $title.$fname.$lname; ?></th>

</tr>
<tr>
<th>Email</th>
<th><?php echo $email; ?></th>

15
6
</tr>
<tr>
<th>Nationality </th>
<th><?php echo $nat; ?></th>

</tr>
<tr>
<th>Country </th>
<th><?php echo $country; ?></th>

</tr>
<tr>
<th>Phone No </th>
<th><?php echo $Phone; ?></th>

</tr>
<tr>
<th>Type Of the Room </th>
<th><?php echo $troom; ?></th>

</tr>
<tr>
<th>No Of the Room </th>
<th><?php echo $nroom; ?></th>

</tr>
<tr>
<th>Meal Plan </th>
<th><?php echo $meal; ?></th>

</tr>
<tr>
<th>Bedding </th>
<th><?php echo $bed; ?></th>

</tr>
<tr>
<th>Check-in Date </th>
<th><?php echo $cin; ?></th>

15
7
</tr>
<tr>
<th>Check-out Date</th>
<th><?php echo $cout; ?></th>

</tr>
<tr>
<th>No of days</th>
<th><?php echo $days; ?></th>

</tr>
<tr>
<th>Status Level</th>
<th><?php echo $sta; ?></th>

</tr>

</table>
</div>

</div>
<div class="panel-footer">
<form method="post">
<div
class="form-group">

<label>Select the Conformation</label>

<select name="conf"class="form-control">

<option value selected> </option>

<option value="Conform">Conform</option>

15
8
</select>
</div>
<input type="submit" name="co"
value="Conform" class="btnbtn-success">

</form>
</div>
</div>
</div>

<?php
$rsql ="select * from room";
$rre= mysqli_query($con,$rsql);
$r =0 ;
$sc =0;
$gh = 0;
$sr = 0;
$dr = 0;
while($rrow=mysqli_fetch_array($rre))
{
$r = $r + 1;
$s = $rrow['type'];
$p = $rrow['place'];
if($s=="Superior Room" )
{
$sc = $sc+ 1;
}

if($s=="Guest House")
{
$gh = $gh + 1;
}
if($s=="Single Room" )
{
$sr = $sr + 1;
}
if($s=="Deluxe Room" )
{
$dr = $dr + 1;

15
9
}

}
?>

<?php
$csql ="select * from payment";
$cre= mysqli_query($con,$csql);
$cr =0 ;
$csc =0;
$cgh = 0;
$csr = 0;
$cdr = 0;
while($crow=mysqli_fetch_array($cre))
{
$cr = $cr + 1;
$cs = $crow['troom'];

if($cs=="Superior Room" )
{
$csc = $csc + 1;
}

if($cs=="Guest House" )
{
$cgh = $cgh + 1;
}
if($cs=="Single Room" )
{
$csr = $csr + 1;
}
if($cs=="Deluxe Room" )
{
$cdr = $cdr + 1;
}

?>

16
0
<div class="col-md-4 col-sm-4">
<div class="panel panel-default">
<div class="panel-heading">
Available Room Details
</div>
<div class="panel-body">
<table width="200px">

<tr>
<td><b>Superior Room
</b></td>
<td><button
type="button" class="btnbtn-primary btn-circle"><?php
$f1 =$sc - $csc;
if($f1 <=0 )
{ $f1 =
"NO";
echo $f1;
}
else{

echo $f1;
}

?></button></td>
</tr>
<tr>
<td><b>Guest House</b>
</td>
<td><button
type="button" class="btnbtn-primary btn-circle"><?php
$f2 = $gh -$cgh;
if($f2 <=0 )
{ $f2 =
"NO";
echo $f2;
}
else{

echo $f2;
}

16
1
?></button></td>
</tr>
<tr>
<td><b>Single Room
</b></td>
<td><button
type="button" class="btnbtn-primary btn-circle"><?php
$f3 =$sr - $csr;
if($f3 <=0 )
{ $f3 =
"NO";
echo $f3;
}
else{

echo $f3;
}

?></button></td>
</tr>
<tr>
<td><b>Deluxe Room</b>
</td>
<td><button
type="button" class="btnbtn-primary btn-circle"><?php

$f4 =$dr - $cdr;


if($f4 <=0 )
{ $f4 =
"NO";
echo $f4;
}
else{

echo $f4;
}
?></button></td>
</tr>
<tr>
<td><b>Total Rooms
</b></td>

16
2
<td><button
type="button" class="btnbtn-danger btn-circle"><?php

$f5 =$r-$cr;
if($f5 <=0 )
{ $f5 =
"NO";
echo $f5;
}
else{

echo $f5;
}
?></button></td>
</tr>
</table>

</div>
<div class="panel-footer">

</div>
</div>
</div>
</div>
<!-- /. ROW -->

</div>
<!-- /. ROW -->

</div>
<!-- /. PAGE INNER -->
</div>
<!-- /. PAGE WRAPPER -->
</div>

16
3
<!-- /. WRAPPER -->
<!-- JS Scripts-->
<!-- jQuery Js -->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- Bootstrap Js -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- Metis Menu Js -->
<script src="assets/js/jquery.metisMenu.js"></script>
<!-- Morris Chart Js -->
<script src="assets/js/morris/raphael-2.1.0.min.js"></script>
<script src="assets/js/morris/morris.js"></script>
<!-- Custom Js -->
<script src="assets/js/custom-scripts.js"></script>

</body>

</html>

<?php
if(isset($_POST['co']))
{
$st = $_POST['conf'];

if($st=="Conform")
{
$urb = "UPDATE
`roombook` SET `stat`='$st' WHERE id = '$id'";

if($f1=="NO" )
{
echo "<script
type='text/javascript'>alert('Sorry! Not Available Superior Room ')</script>";
}
else if($f2 =="NO")
{
echo
"<script type='text/javascript'>alert('Sorry! Not Available Guest House')</script>";

16
4
}
else if ($f3 ==
"NO")
{
echo
"<script type='text/javascript'>alert('Sorry! Not Available Single Room')</script>";
}
else
if($f4=="NO")
{
echo
"<script type='text/javascript'>alert('Sorry! Not Available Deluxe Room')</script>";
}

else
if( mysqli_query($con,$urb))
{

//echo "<script type='text/javascript'>alert('Guest Room booking is


conform')</script>";

//echo "<script type='text/javascript'>window.location='home.php'</script>";

$type_of_room = 0;

if($troom=="Superior Room")

$type_of_room = 320;

else if($troom=="Deluxe Room")

$type_of_room = 220;

16
5
else if($troom=="Guest House")

$type_of_room = 180;

else if($troom=="Single Room")

$type_of_room = 150;

if($bed=="Single")

$type_of_bed = $type_of_room * 1/100;

else if($bed=="Double")

$type_of_bed = $type_of_room * 2/100;

else if($bed=="Triple")

16
6
{

$type_of_bed = $type_of_room * 3/100;

else if($bed=="Quad")

$type_of_bed = $type_of_room * 4/100;

else if($bed=="None")

$type_of_bed = $type_of_room * 0/100;

if($meal=="Room only")

$type_of_meal=$type_of_bed * 0;

else if($meal=="Breakfast")

$type_of_meal=$type_of_bed * 2;

}else if($meal=="Half Board")

16
7
$type_of_meal=$type_of_bed * 3;

}else if($meal=="Full Board")

$type_of_meal=$type_of_bed * 4;

$ttot = $type_of_room * $days * $nroom;

$mepr = $type_of_meal * $days;

$btot = $type_of_bed *$days;

$fintot = $ttot + $mepr + $btot ;

//echo "<script type='text/javascript'>


alert('$count_date')</script>";

$psql = "INSERT INTO `payment`(`id`, `title`, `fname`, `lname`,


`troom`, `tbed`, `nroom`, `cin`, `cout`, `ttot`,`meal`, `mepr`, `btot`,`fintot`,`noofdays`)
VALUES
('$id','$title','$fname','$lname','$troom','$bed','$nroom','$cin','$cout','$ttot','$meal','$
mepr','$btot','$fintot','$days')";

if(mysqli_query($con,$psql))

{ $notfree="NotFree";

16
8
$rpsql = "UPDATE `room` SET
`place`='$notfree',`cusid`='$id' where bedding ='$bed' and type='$troom' ";

if(mysqli_query($con,$rpsql))

echo "<script type='text/javascript'>alert('Booking


Conform')</script>";

echo "<script
type='text/javascript'>window.location='roombook.php'</script>";

?>

roomdel.php

<?php
session_start();
if(!isset($_SESSION["user"]))
{
header("location:index.php");

16
9
}
ob_start();
?>

<?php
include('db.php');
$rsql ="select id from room";
$rre=mysqli_query($con,$rsql);

?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>REVOLVING HOTEL</title>
<!-- Bootstrap Styles-->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!--FontAwesome Styles-->
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<!-- Custom Styles-->
<link href="assets/css/custom-styles.css" rel="stylesheet" />
<!-- Google Fonts-->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'
type='text/css' />
</head>
<body>
<div id="wrapper">
<nav class="navbar navbar-default top-navbar" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-
target=".sidebar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="home.php">MAIN MENU </a>
</div>

17
0
<ul class="nav navbar-top-links navbar-right">

<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
<i class="fa fa-user fa-fw"></i><i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="#"><i class="fa fa-user fa-fw"></i> User Profile</a>
</li>
<li><a href="settings.php"><i class="fa fa-gear fa-fw"></i> Settings</a>
</li>
<li class="divider"></li>
<li><a href="logout.php"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
</li>
</ul>

<!-- /.dropdown-user -->


</li>
<!-- /.dropdown -->
</ul>
</nav>
<!--/. NAV TOP -->
<nav class="navbar-default navbar-side" role="navigation">
<div class="sidebar-collapse">
<ul class="nav" id="main-menu">

<li>
<a href="settings.php"><i class="fa fa-dashboard"></i>Room Status</a>
</li>
<li>
<a href="room.php"><i class="fa fa-plus-circle"></i>Add Room</a>
</li>
<li>
<a class="active-menu" href="roomdel.php"><i class="fa fa-pencil-square-o"></i>
Delete Room</a>
</li>

</div>

17
1
</nav>
<!-- /. NAV SIDE -->

<div id="page-wrapper" >


<div id="page-inner">
<div class="row">
<div class="col-md-12">
<h1 class="page-header">
DELETE ROOM <small></small>
</h1>
</div>
</div>

<div class="row">

<div class="col-md-12 col-sm-12">


<div class="panel panel-primary">
<div class="panel-heading">
Delete room
</div>
<div class="panel-body">
<form name="form" method="post">
<div class="form-group">
<label>Select the Room ID *</label>
<select name="id" class="form-control" required>

<option value selected ></option>

<?php

while($rrow=mysqli_fetch_array($rre))

$value = $rrow['id'];

echo '<option value="'.$value.'">'.$value.'</option>';

17
2
}

?>

</select>
</div>

<input type="submit" name="del"


value="Delete Room" class="btnbtn-primary">
</form>
<?php
include('db.php');

if(isset($_POST['del']))
{
$did = $_POST['id'];

$sql ="DELETE FROM


`room` WHERE id = '$did'" ;
if(mysqli_query($con,
$sql))
{
echo '<script
type="text/javascript">alert("Delete the Room") </script>' ;

header("Location: roomdel.php");
}else {
echo
'<script>alert("Sorry ! Check The System") </script>' ;
}
}

?>
</div>

</div>
</div>

17
3
<?php
include ('db.php');
$sql = "select * from room";
$re = mysqli_query($con,$sql)
?>
<div class="row">

<?php

while($row= mysqli_fetch_array($re))
{

$id = $row['type'];

if($id == "Superior Room")


{

echo"<div class='col-md-3 col-sm-12 col-xs-12'>

<div class='panel panel-primary text-center no-boderbg-color-blue'>

<div class='panel-body'>

<i class='fa fa-users fa-5x'></i>

<h3>".$row['bedding']."</h3>

</div>

<div class='panel-footer back-footer-blue'>

".$row['type']."

</div>

</div>

</div>";
}

17
4
else if ($id == "Deluxe Room")
{

echo"<div class='col-md-3 col-sm-12 col-xs-12'>

<div class='panel panel-primary text-center no-boderbg-color-green'>

<div class='panel-body'>

<i class='fa fa-users fa-5x'></i>

<h3>".$row['bedding']."</h3>

</div>

<div class='panel-footer back-footer-green'>

".$row['type']."

</div>

</div>

</div>";

else if($id =="Guest House")


{

echo"<div class='col-md-3 col-sm-12 col-xs-12'>

<div class='panel panel-primary text-center no-boderbg-color-brown'>

<div class='panel-body'>

<i class='fa fa-users fa-5x'></i>

<h3>".$row['bedding']."</h3>

</div>

17
5
<div class='panel-footer back-footer-brown'>

".$row['type']."

</div>

</div>

</div>";

else if($id =="Single Room")


{

echo"<div class='col-md-3 col-sm-12 col-xs-12'>

<div class='panel panel-primary text-center no-boderbg-color-red'>

<div class='panel-body'>

<i class='fa fa-users fa-5x'></i>

<h3>".$row['bedding']."</h3>

</div>

<div class='panel-footer back-footer-red'>

".$row['type']."

</div>

</div>

</div>";

}
}
?>

17
6
</div>
<?php

ob_end_flush();
?>

</div>
<!-- /. PAGE INNER -->
</div>
<!-- /. PAGE WRAPPER -->
</div>
<!-- /. WRAPPER -->
<!-- JS Scripts-->
<!-- jQuery Js -->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- Bootstrap Js -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- Metis Menu Js -->
<script src="assets/js/jquery.metisMenu.js"></script>
<!-- Custom Js -->
<script src="assets/js/custom-scripts.js"></script>

</body>
</html>

settings.php

<?php
session_start();
if(!isset($_SESSION["user"]))
{
header("location:index.php");
}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

17
7
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>REVOLVING HOTEL</title>
<!-- Bootstrap Styles-->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!--FontAwesome Styles-->
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<!-- Custom Styles-->
<link href="assets/css/custom-styles.css" rel="stylesheet" />
<!-- Google Fonts-->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'
type='text/css' />
</head>
<body>
<div id="wrapper">
<nav class="navbar navbar-default top-navbar" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-
target=".sidebar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="home.php">MAIN MENU </a>
</div>

<ul class="nav navbar-top-links navbar-right">

<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
<i class="fa fa-user fa-fw"></i><i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="#"><i class="fa fa-user fa-fw"></i> User Profile</a>
</li>
<li><a href="settings.php"><i class="fa fa-gear fa-fw"></i> Settings</a>
</li>
<li class="divider"></li>
<li><a href="logout.php"><i class="fa fa-sign-out fa-fw"></i> Logout</a>

17
8
</li>
</ul>

<!-- /.dropdown-user -->


</li>
<!-- /.dropdown -->
</ul>
</nav>
<!--/. NAV TOP -->
<nav class="navbar-default navbar-side" role="navigation">
<div class="sidebar-collapse">
<ul class="nav" id="main-menu">

<li>
<a class="active-menu" href="settings.php"><i class="fa fa-dashboard"></i>Room
Status</a>
</li>
<li>
<a href="room.php"><i class="fa fa-plus-circle"></i>Add Room</a>
</li>
<li>
<a href="roomdel.php"><i class="fa fa-pencil-square-o"></i> Delete Room</a>
</li>

</div>

</nav>
<!-- /. NAV SIDE -->

<div id="page-wrapper" >


<div id="page-inner">
<div class="row">
<div class="col-md-12">
<h1 class="page-header">
Available <small> Rooms</small>
</h1>
</div>
</div>

17
9
<?php
include ('db.php');
$sql = "select * from room";
$re = mysqli_query($con,$sql)
?>
<div class="row">

<?php

while($row= mysqli_fetch_array($re))
{

$id = $row['type'];

if($id == "Superior Room")


{

echo"<div class='col-md-3 col-sm-12 col-xs-12'>

<div class='panel panel-primary text-center no-boderbg-color-blue'>

<div class='panel-body'>

<i class='fa fa-users fa-5x'></i>

<h3>".$row['bedding']."</h3>

</div>

<div class='panel-footer back-footer-blue'>

".$row['type']."

</div>

</div>

</div>";
}

18
0
else if ($id == "Deluxe Room")
{

echo"<div class='col-md-3 col-sm-12 col-xs-12'>

<div class='panel panel-primary text-center no-boderbg-color-green'>

<div class='panel-body'>

<i class='fa fa-users fa-5x'></i>

<h3>".$row['bedding']."</h3>

</div>

<div class='panel-footer back-footer-green'>

".$row['type']."

</div>

</div>

</div>";

else if($id =="Guest House")


{

echo"<div class='col-md-3 col-sm-12 col-xs-12'>

<div class='panel panel-primary text-center no-boderbg-color-brown'>

<div class='panel-body'>

<i class='fa fa-users fa-5x'></i>

<h3>".$row['bedding']."</h3>

</div>

18
1
<div class='panel-footer back-footer-brown'>

".$row['type']."

</div>

</div>

</div>";

else if($id =="Single Room")


{

echo"<div class='col-md-3 col-sm-12 col-xs-12'>

<div class='panel panel-primary text-center no-boderbg-color-red'>

<div class='panel-body'>

<i class='fa fa-users fa-5x'></i>

<h3>".$row['bedding']."</h3>

</div>

<div class='panel-footer back-footer-red'>

".$row['type']."

</div>

</div>

</div>";

}
}
?>

18
2
</div>
<!-- /. ROW -->

<!-- /. PAGE INNER -->


</div>
<!-- /. PAGE WRAPPER -->
</div>
<!-- /. WRAPPER -->
<!-- JS Scripts-->
<!-- jQuery Js -->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- Bootstrap Js -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- Metis Menu Js -->
<script src="assets/js/jquery.metisMenu.js"></script>
<!-- Custom Js -->
<script src="assets/js/custom-scripts.js"></script>

</body>
</html>

show.php

<html>
<head>
<meta charset="utf-8">
<title>Details of Book key</title>

<style>
/* reset */

*
{
border: 0;
box-sizing: content-box;

18
3
color: inherit;
font-family: inherit;
font-size: inherit;
font-style: inherit;
font-weight: inherit;
line-height: inherit;
list-style: none;
margin: 0;
padding: 0;
text-decoration: none;
vertical-align: top;
}

/* content editable */

*[contenteditable] { border-radius: 0.25em; min-width: 1em; outline: 0; }

*[contenteditable] { cursor: pointer; }

*[contenteditable]:hover, *[contenteditable]:focus, td:hover *[contenteditable],


td:focus *[contenteditable], img.hover { background: #DEF; box-shadow: 0 0 1em
0.5em #DEF; }

span[contenteditable] { display: inline-block; }

/* heading */

h1 { font: bold 100% sans-serif; letter-spacing: 0.5em; text-align: center; text-


transform: uppercase; }

/* table */

table { font-size: 75%; table-layout: fixed; width: 100%; }


table { border-collapse: separate; border-spacing: 2px; }
th, td { border-width: 1px; padding: 0.5em; position: relative; text-align: left; }
th, td { border-radius: 0.25em; border-style: solid; }
th{ background: #EEE; border-color: #BBB; }
td { border-color: #DDD; }

/* page */

18
4
html { font: 16px/1 'Open Sans', sans-serif; overflow: auto; padding: 0.5in; }
html { background: #999; cursor: default; }

body { box-sizing: border-box; height: 11in; margin: 0 auto; overflow: hidden; padding:
0.5in; width: 8.5in; }
body { background: #FFF; border-radius: 1px; box-shadow: 0 0 1in -0.25in rgba(0, 0, 0,
0.5); }

/* header */

header { margin: 0 0 3em; }


header:after { clear: both; content: ""; display: table; }

header h1 { background: #000; border-radius: 0.25em; color: #FFF; margin: 0 0 1em;


padding: 0.5em 0; }
header address { float: left; font-size: 75%; font-style: normal; line-height: 1.25;
margin: 0 1em 1em 0; }
header address p { margin: 0 0 0.25em; }
header span, header img{ display: block; float: right; }
header span { margin: 0 0 1em 1em; max-height: 25%; max-width: 60%; position:
relative; }
header img{ max-height: 100%; max-width: 100%; }
header input { cursor: pointer; -ms-
filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; height: 100%; left: 0;
opacity: 0; position: absolute; top: 0; width: 100%; }

/* article */

article, article address, table.meta, table.inventory { margin: 0 0 3em; }


article:after { clear: both; content: ""; display: table; }
article h1 { clip: rect(0 0 0 0); position: absolute; }

article address { float: left; font-size: 125%; font-weight: bold; }

/* table meta & balance */

table.meta, table.balance { float: right; width: 36%; }


table.meta:after, table.balance:after { clear: both; content: ""; display: table; }

/* table meta */

table.metath { width: 40%; }

18
5
table.meta td { width: 60%; }

/* table items */

table.inventory { clear: both; width: 100%; }


table.inventoryth { font-weight: bold; text-align: center; }

table.inventorytd:nth-child(1) { width: 26%; }


table.inventorytd:nth-child(2) { width: 38%; }
table.inventorytd:nth-child(3) { text-align: right; width: 12%; }
table.inventorytd:nth-child(4) { text-align: right; width: 12%; }
table.inventorytd:nth-child(5) { text-align: right; width: 12%; }

/* table balance */

table.balanceth, table.balance td { width: 50%; }


table.balance td { text-align: right; }

/* aside */

aside h1 { border: none; border-width: 0 0 1px; margin: 0 0 1em; }


aside h1 { border-color: #999; border-bottom-style: solid; }

/* javascript */

.add, .cut
{
border-width: 1px;
display: block;
font-size: .8rem;
padding: 0.25em 0.5em;
float: left;
text-align: center;
width: 0.6em;
}

.add, .cut
{
background: #9AF;
box-shadow: 0 1px 2px rgba(0,0,0,0.2);
background-image: -moz-linear-gradient(#00ADEE 5%, #0078A5 100%);

18
6
background-image: -webkit-linear-gradient(#00ADEE 5%, #0078A5 100%);
border-radius: 0.5em;
border-color: #0076A3;
color: #FFF;
cursor: pointer;
font-weight: bold;
text-shadow: 0 -1px 2px rgba(0,0,0,0.333);
}

.add { margin: -2.5em 0 0; }

.add:hover { background: #00ADEE; }

.cut { opacity: 0; position: absolute; top: 0; left: -1.5em; }


.cut { -webkit-transition: opacity 100ms ease-in; }

tr:hover .cut { opacity: 1; }

@media print {
* { -webkit-print-color-adjust: exact; }
html { background: none; padding: 0; }
body { box-shadow: none; margin: 0; }
span:empty { display: none; }
.add, .cut { display: none; }
}

@page { margin: 0; }
</style>

</head>
<body>

<?php
ob_start();
include ('db.php');

$pid = $_GET['sid'];

18
7
$sql ="select * from roombook where id = '$pid' ";
$re = mysqli_query($con,$sql);
while($row=mysqli_fetch_array($re))
{
$id = $row['id'];
$title = $row['Title'];
$Fname = $row['FName'];
$lname = $row['LName'];
$email = $row['Email'];
$National = $row['National'];
$country = $row['Country'];
$phone = $row['Phone'];
$room_type = $row['TRoom'];
$Bed_type = $row['Bed'];
//$Noof_room = $row['Nroom'];
$meal_type = $row['Meal'];
$cin_date = $row['cin'];
$cout_date = $row['cout'];
$nodays = $row['nodays'];

?>
<header>
<h1>Information of Guest</h1>
<address >
<p>REVOLVING HOTEL,</p>
<p>BoaringRoad,<br>Patna,<br>INDIA.</p>
<p>8434931131</p>
</address>
<span><img alt="" src="assets/img/sun.png"></span>
</header>
<article>
<h1></h1>
<address >

<p><br></p>
<p>CoustomerName : - <?php echo $title.$Fname." ".

18
8
$lname;?><br></p>
</address>
<table class="meta">
<tr>
<th><span >Customer ID</span></th>
<td><span ><?php echo $id; ?></span></td>
</tr>
<tr>
<th><span >Check in Date</span></th>
<td><span ><?php echo $cin_date;
?></span></td>
</tr>
<tr>
<th><span >Check out Date</span></th>
<td><span ><?php echo $cout_date;
?></span></td>
</tr>

</table>
<table >
<tr>
<td>Customer phone : - <?php echo
$phone; ?></td>

<td>Customer email : - <?php echo


$email; ?></td>
</tr>
<tr>
<td>Customer Country : - <?php echo
$country; ?></td>
<td>Customer National : - <?php echo
$National; ?></td>
</tr>
</table>
<br>
<br>
<table class="inventory">
<thead>
<tr>
<th><span >Item</span></th>
<th><span >No of Days</span></th>

18
9
</tr>
</thead>
<tbody>

<tr>
<td><span ><?php echo $room_type; ?
></span></td>
<td><span ><?php echo $nodays;
?></span></td>

</tr>
<tr>
<td><span ><?php echo $Bed_type; ?>
Bed </span></td>
<td><span ><?php echo $nodays;
?></span></td>

</tr>
<tr>
<td><span ><?php echo $meal_type; ?
></span></td>
<td><span ><?php echo $nodays;
?></span></td>

</tr>
</tbody>
</table>

</article>
<aside>
<h1><span >Contact us</span></h1>
<div >
<p align="center">Email :- info@revolving.com || Web :-
www.revolving.com || Phone :- 8434931131</p>
</div>
</aside>
</body>
</html>

<?php

19
0
ob_end_flush();

?>

usersetting.php

<?php
session_start();
if(!isset($_SESSION["user"]))
{
header("location:index.php");
}

ob_start();
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>REVOLVING HOTEL</title>
<!-- Bootstrap Styles-->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!--FontAwesome Styles-->
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<!-- Custom Styles-->
<link href="assets/css/custom-styles.css" rel="stylesheet" />
<!-- Google Fonts-->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'
type='text/css' />
<link href="assets/js/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
</head>
<body>
<div id="wrapper">
<nav class="navbar navbar-default top-navbar" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-
target=".sidebar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>

19
1
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="home.php">MAIN MENU </a>
</div>

<ul class="nav navbar-top-links navbar-right">

<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
<i class="fa fa-user fa-fw"></i><i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="usersetting.php"><i class="fa fa-user fa-fw"></i> User Profile</a>
</li>
<li><a href="settings.php"><i class="fa fa-gear fa-fw"></i> Settings</a>
</li>
<li class="divider"></li>
<li><a href="logout.php"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
</li>
</ul>

<!-- /.dropdown-user -->


</li>
<!-- /.dropdown -->
</ul>
</nav>
<!--/. NAV TOP -->
<nav class="navbar-default navbar-side" role="navigation">
<div class="sidebar-collapse">
<ul class="nav" id="main-menu">

<li>
<a class="active-menu" href="settings.php"><i class="fa fa-dashboard"></i>User
Dashboard</a>
</li>

</div>

19
2
</nav>
<!-- /. NAV SIDE -->

<div id="page-wrapper" >


<div id="page-inner">
<div class="row">
<div class="col-md-12">
<h1 class="page-header">
ADMINISTRATOR<small> accounts </small>
</h1>
</div>
</div>

<?php
include ('db.php');
$sql = "SELECT * FROM `login`";
$re = mysqli_query($con,$sql)
?>

<div class="row">
<div class="col-md-12">
<!-- Advanced Tables -->
<div class="panel panel-default">
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover" id="dataTables-
example">
<thead>
<tr>
<th>User ID</th>

<th>User name</th>
<th>Password</th>

<th>Update</th>

<th>Remove</th>

19
3
</tr>
</thead>
<tbody>

<?php

while($row = mysqli_fetch_array($re))
{

$id = $row['id'];

$us = $row['usname'];

$ps = $row['pass'];

if($id % 2 ==0 )
{

echo"<tr class='gradeC'>

<td>".$id."</td>

<td>".$us."</td>

<td>".$ps."</td>

<td><button class='btnbtn-primary btn' data-toggle='modal' data-


target='#myModal'>

Update

</button></td>

<td><a href=usersettingdel.php?eid=".$id ." <button class='btnbtn-


danger'><i class='fa fa-edit' ></i> Delete</button></td>

</tr>";
}

else

19
4
{

echo"<tr class='gradeU'>

<td>".$id."</td>

<td>".$us."</td>

<td>".$ps."</td>

<td><button class='btnbtn-primary btn' data-toggle='modal' data-


target='#myModal'>
Update
</button></td>

<td><a href=usersettingdel.php?eid=".$id ." <button class='btnbtn-


danger'><i class='fa fa-edit' ></i> Delete</button></td>

</tr>";

?>

</tbody>
</table>
</div>

</div>
</div>
<!--End Advanced Tables -->
<div class="panel-body">
<button class="btnbtn-primary btn" data-toggle="modal" data-target="#myModal1">

Add New Admin

</button>
<div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-

19
5
labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-
hidden="true">&times;</button>
<h4 class="modal-title" id="myModalLabel">Add the User name and Password</h4>
</div>
<form
method="post">
<div class="modal-body">
<div class="form-group">
<label>Add new User name</label>
<input name="newus" class="form-control" placeholder="Enter User name">

</div>
</div>
<div
class="modal-body">
<div class="form-group">
<label>New Password</label>
<input name="newps" class="form-control" placeholder="Enter Password">

</div>
</div>

<div class="modal-footer">
<button type="button" class="btnbtn-default" data-dismiss="modal">Close</button>

<input type="submit" name="in" value="Add" class="btnbtn-primary">


</form>

</div>
</div>
</div>
</div>
</div>
<?php
if(isset($_POST['in']))
{
$newus = $_POST['newus'];

19
6
$newps = $_POST['newps'];

$newsql ="Insert into login


(usname,pass) values ('$newus','$newps')";
if(mysqli_query($con,$newsql))
{
echo' <script
language="javascript" type="text/javascript">alert("User name and password Added")
</script>';

}
header("Location: usersetting.php");
}
?>

<div class="panel-body">

<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-


labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-
hidden="true">&times;</button>
<h4 class="modal-title" id="myModalLabel">Change the User name and
Password</h4>
</div>
<form
method="post">
<div class="modal-body">
<div class="form-group">
<label>Change User name</label>
<input name="usname" value="<?php echo $us; ?>" class="form-control"
placeholder="Enter User name">

</div>
</div>
<div
class="modal-body">
<div class="form-group">
<label>Change Password</label>

19
7
<input name="pasd" value="<?php echo $ps; ?>" class="form-control"
placeholder="Enter Password">

</div>
</div>

<div class="modal-footer">
<button type="button" class="btnbtn-default" data-dismiss="modal">Close</button>

<input type="submit" name="up" value="Update" class="btnbtn-primary">


</form>

</div>
</div>
</div>
</div>
</div>
</div>
</div>

<!-- /. ROW -->


<?php
if(isset($_POST['up']))
{
$usname = $_POST['usname'];
$passwr = $_POST['pasd'];

$upsql = "UPDATE `login` SET


`usname`='$usname',`pass`='$passwr' WHERE id = '$id'";
if(mysqli_query($con,$upsql))
{
echo' <script language="javascript"
type="text/javascript">alert("User name and password update") </script>';

header("Location: usersetting.php");

}
ob_end_flush();

19
8
?>

<!-- /. PAGE INNER -->


</div>
<!-- /. PAGE WRAPPER -->
</div>
<!-- /. WRAPPER -->
<!-- JS Scripts-->
<!-- jQuery Js -->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- Bootstrap Js -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- Metis Menu Js -->
<script src="assets/js/jquery.metisMenu.js"></script>
<!-- Custom Js -->
<script src="assets/js/custom-scripts.js"></script>

</body>
</html>

usersettingdel.php

<?php

include ('db.php');

$id =$_GET['eid'];
$newsql ="DELETE FROM `login` WHERE id ='$id' ";
if(mysqli_query($con,$newsql))
{

19
9
echo' <script language="javascript"
type="text/javascript">alert("User name and password Added") </script>';

}
header("Location: usersetting.php");

?>

20
0
Welcome Page:

About Our REVOLVING HOTEL:

201
Our Gallery:

Rooms And Rates:

202
Contact Us:

RESERVATION:

203
204
Status Room Booking:

Payment Details:

205
Profit Details:

206
TESTING
Software testing is the process of executing a program or system with the intent of finding errors.
Or, it involves any activity aimed at evaluating an attribute or capability of a program or system and
determining that it meet its required results. Software is not unlike other physical processes where
inputs are received and output are produced. Where software differs is in the manner in which it is
fails. Most physical systems fails in a fixed (and reasonable small) set of ways. By contrast, software
can fail in many bizarre ways. Detecting all of the different failure modes for software is generally
infeasible.

Module testing:
Here testing is done at each module level. Each case has been thoroughly tested to discover pitfalls.

System testing:

Here testing is done after all the modules have been integrated .

Testing:
• The process of executing a system with the intent of finding an error.
• Testing is defined as the process in which defects are identified, isolated, subjected for
rectification and ensured that product is defect free in order to produce the quality product and
hence customer satisfaction.
• Quality is defined as justification of the requirements
• Defect is nothing but deviation from the requirements
• Defect is nothing but bug.
• Testing --- The presence of bugs
• Testing can demonstrate the presence of bugs, but not their absence
• Debugging and Testing are not the same thing!

207
• Testing is a systematic attempt to break a program or the AUT
• Debugging is the art or method of uncovering why the script /program did not execute properly.

Testing Methodologies:

• Black box Testing: is the testing process in which tester can perform testing on an application
without having any internal structural knowledge of application.
Usually Test Engineers are involved in the black box testing.

• White box Testing: is the testing process in which tester can perform testing on an
application with having internal structural knowledge.
Usually The Developers are involved in white box testing.

• Gray Box Testing: is the process in which the combination of black box and white box
techniques are used.

208
Future Work

The following section discusses the work that will be implemented with future
releases of the software.

1. Detailed facilities: Future work could involve adding more facilities which are
more detailed and have additionalitems.

2. Suggestion List: Work can add a watch list or suggestion list so that users can add
an item to a suggestion list.

Enhanced User Interface: Work on enhancing the user interface by adding more user-
interactive features.

1. Recommended Rooms: Add a bar that would display the most-recommended


rooms which would depend on the number of times an room booked by
anyusers.

2. Payment Options: Add different payment options, such as Visa, MasterCard,


PayPal, etc., where a user can also save the card information for latercheckouts.

3. Shipping Options of Hotel Product: Add different types of shipping options:


regular shipping, expedited shipping, international shipping,etc.

209
Scope of futureapplication

The future of this project depend on whether the author has enough spare time
over the next 2 month to continue with the developing.
The author feels that last few remaining features would round off the system.
If the author was to try to sell this system then more system testing would
have to be done, in a particular a more comprehensive real – world. Testing
environment would have to be adopted along with some real words usage.
Multiple concurrent users would be command in real world usage but have
been difficult to test for considering there was only tester involved in this
project. This type of system would benefit for the hardware in case of a
system failure for the software in case of newly found bugs, inreturn of a
subscriptionfree.

Patna Women’s College Page 124


Implementation:

The implementation phase is less creative than system design. It is primarily


concerned with user training, site preparation and file conversion. During file
testing, user acceptance is, tested followed by user training. Depending on the
nature of system, extensive user training may be required. Conversion usually
takes place at about the same time the user is being trained. Programming is
thought to be modified as a result of programming effort. Programming
provides a “reality test” for the assumption made by analyst.

System testing checks the deadlines and accuracy of the system. To


access, update and retrieve data from new files. Once the programs become
available, test data are read into the computer and processed against the file
provided. For testing, it successful program is then run with “live” data.
Otherwise, a diagnostic test to locate and correct errors. In most conversion,
parallel run is conducted where the new system simultaneous run both old
system. This method, through costly, provided added assurance against errors
in the candidate system. This method through costly, provided added
assurance against errors in the candidate system and also the user staff an
opportunity to gain experience through operation.

Patna Women’s College Page 125


Evaluation:

Project Evaluation is a step-by-step process of collecting, recording and


organizing information about project results, including short-term outputs
(immediate results of activities, or project deliverables), and immediate and
longer-term project outcomes.

The project planning stage is the best time to identify desired outcomes and
how they will be measured. This will guide future planning, as well as ensure
that the data required to measure success is available when the time comes to
evaluate the project.

Why is Project Evaluation important?

Evaluating project results is helpful in providing answer to key question like:


What progress has been made?

Patna Women’s College Page 126


Conclusion

This project is designed to meet the requirements of Online Hotel Management.


It has been developed in VB & Mas-Access keeping in mind the specifications of
the system.

For designing the system we have used simple data flow diagrams.

Overall the project teaches us the essential skills like:

 Using system analysis and design techniques like data flow diagram in
designing the system.
 Understanding the database handling and query processing.

Patna Women’s College Page 127


BIBLIOGRAPHY
 System Analysis And Design :- Kenneth E. Kendall, Julie E. Kendall

 An Analysis and Design of Information Systems :- Grayce M. Booth

 Software Engineering :- Roger S. Pressman

 PHP: A Beginner’s Guide :- RiwantoMegosinarso

 WEBSITE

 www.google.com

 www.javatpoint.com

 www.tutorialspoint.com

Patna Women’s College Page 128


THANK YOU

Patna Women’s College Page 129

You might also like