Professional Documents
Culture Documents
Patna Women'Scollege: (Autonomous)
Patna Women'Scollege: (Autonomous)
(AUTONOMOUS)
PATNA UNIVERSITY
NAAC Re-Accredited ‘A’ Grade with CGPA 3.58/4
“College with Potential for Excellence” (CGPA) status accorded by
UGC
1
PROJECT on
19MCA01978(20)
2
DECLARATIONCERTIFICATE:-
Date:- .....................................
(Guide name and signature)
MCA Department
PWC, Patna
...............................................
HEAD OF DEPARTMENT
3
CERTIFICATE OFAPPROVAL
.................................. …………………………
(InternalExaminer) (ExternalExaminer)
……………………………………...
Head of theDepartment
4
Team Structure:
DR.BHAWNA SINHA
(PROJECT GUIDE)
KAJALBHATNAGAR
NIDHIKUMARI
NISHA KUMARI
&
DEEPSHIKHA KUMARI
5
TO WHOM IT MAY CONCERN
.............................
Dr. Bhawna Sinha
(Project Guide)
Dept. Of MCA
(Patna Women’s College)
Assistant Professor
6
Acknowledgement
I would like to thank our entire friends and staff members for their help
and constructive criticism during development of this work.
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
7. E –RDIAGRAM 24-25
8. ModuleDescription 26-27
9. Coding 28-112
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
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
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.
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:
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.
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
A Name(Noun)
Adescription
17
One or more connections to aprocess
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
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.
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 cases
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.
ATTRIBUTES: - The data items which describes the features of entity is known as attributes.
23
24
MODULE DESCRIPTION
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’.
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.
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.
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>
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">×</button>
<h4>REVOLVING<span>HOTEL</span></h4>
<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">
<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>
76
<li><i class="fa fa-star" 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">
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">
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">
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">
</div>
<div class="control-group form-group">
</div>
<div class="control-group form-group">
83
</div>
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>
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>
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>
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">
91
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">
</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>
93
</tr>";
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
<!-- End Basic Table -->
</div>
</div>
</div>
<?php
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>
</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'];
95
<div class='panel-body'>
<h3>".$mrow['FName']."</h3>
</div>
Show
</button></a>
".$mrow['TRoom']."
</div>
</div>
</div>";
}
?>
</div>
</div>
</div>
96
<?php
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>
</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'>×</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>
</div>
</div>
</div>
</div>
</div>
<!--DEMO END-->
</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>
</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">
</fieldset>
</form>
</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($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-->
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">×</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>
</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
?>
<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>
</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>
</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";
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-->
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');
while($row = mysqli_fetch_array($re))
{
$id = $row['id'];
if($id % 2 ==1 )
{
echo"<tr class='gradeC'>
<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['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>
</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 */
12
0
*[contenteditable] { cursor: pointer; }
/* heading */
/* table */
/* 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 */
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 */
/* table meta */
/* table items */
/* table balance */
12
2
/* aside */
/* 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);
}
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'];
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")
{
12
5
}
else
if($bed=="Double")
{
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" />
13
0
</head>
<body>
<div id="wrapper">
<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');
?>
<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
while($row = mysqli_fetch_array($re))
{
$id = $row['id'];
if($id % 2 ==1 )
{
echo"<tr class='gradeC'>
<td>".$row['id']." </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['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 class="row">
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>
</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>
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>
14
0
<option value="Superior Room">SUPERIOR ROOM</option>
<option value="Deluxe Room">DELUXE ROOM</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="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
14
1
</div>
<div class="form-group">
<label>Meal Plan</label>
<select name="meal" class="form-control"required>
</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>
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";
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))
{
}
else
{
}
}
</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>
<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>
<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 class="row">
14
7
<select name="troom" class="form-control" required>
<div class="form-group">
<label>Bedding Type</label>
<select name="bed" class="form-control" required>
<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) {
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 {
?>
</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)
{
<td>".$row['id']."</td>
<td>".$row['type']."</td>
<th>".$row['bedding']."</th>
15
0
</tr>";
}
else
{
<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'];
?>
<!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>
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="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">
<select name="conf"class="form-control">
<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
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))
{
$type_of_room = 0;
if($troom=="Superior Room")
$type_of_room = 320;
$type_of_room = 220;
16
5
else if($troom=="Guest House")
$type_of_room = 180;
$type_of_room = 150;
if($bed=="Single")
else if($bed=="Double")
else if($bed=="Triple")
16
6
{
else if($bed=="Quad")
else if($bed=="None")
if($meal=="Room only")
$type_of_meal=$type_of_bed * 0;
else if($meal=="Breakfast")
$type_of_meal=$type_of_bed * 2;
16
7
$type_of_meal=$type_of_bed * 3;
$type_of_meal=$type_of_bed * 4;
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'>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>
<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 class="row">
<?php
while($rrow=mysqli_fetch_array($rre))
$value = $rrow['id'];
17
2
}
?>
</select>
</div>
if(isset($_POST['del']))
{
$did = $_POST['id'];
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'];
<div class='panel-body'>
<h3>".$row['bedding']."</h3>
</div>
".$row['type']."
</div>
</div>
</div>";
}
17
4
else if ($id == "Deluxe Room")
{
<div class='panel-body'>
<h3>".$row['bedding']."</h3>
</div>
".$row['type']."
</div>
</div>
</div>";
<div class='panel-body'>
<h3>".$row['bedding']."</h3>
</div>
17
5
<div class='panel-footer back-footer-brown'>
".$row['type']."
</div>
</div>
</div>";
<div class='panel-body'>
<h3>".$row['bedding']."</h3>
</div>
".$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>
<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>
<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 -->
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'];
<div class='panel-body'>
<h3>".$row['bedding']."</h3>
</div>
".$row['type']."
</div>
</div>
</div>";
}
18
0
else if ($id == "Deluxe Room")
{
<div class='panel-body'>
<h3>".$row['bedding']."</h3>
</div>
".$row['type']."
</div>
</div>
</div>";
<div class='panel-body'>
<h3>".$row['bedding']."</h3>
</div>
18
1
<div class='panel-footer back-footer-brown'>
".$row['type']."
</div>
</div>
</div>";
<div class='panel-body'>
<h3>".$row['bedding']."</h3>
</div>
".$row['type']."
</div>
</div>
</div>";
}
}
?>
18
2
</div>
<!-- /. ROW -->
</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 */
/* heading */
/* table */
/* 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 */
/* article */
/* table meta */
18
5
table.meta td { width: 60%; }
/* table items */
/* table balance */
/* aside */
/* 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);
}
@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>
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>
<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>
<li>
<a class="active-menu" href="settings.php"><i class="fa fa-dashboard"></i>User
Dashboard</a>
</li>
</div>
19
2
</nav>
<!-- /. NAV SIDE -->
<?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>
Update
</button></td>
</tr>";
}
else
19
4
{
echo"<tr class='gradeU'>
<td>".$id."</td>
<td>".$us."</td>
<td>".$ps."</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">
</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">×</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>
</div>
</div>
</div>
</div>
</div>
<?php
if(isset($_POST['in']))
{
$newus = $_POST['newus'];
19
6
$newps = $_POST['newps'];
}
header("Location: usersetting.php");
}
?>
<div class="panel-body">
</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>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
header("Location: usersetting.php");
}
ob_end_flush();
19
8
?>
</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:
201
Our Gallery:
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.
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.
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.
For designing the system we have used simple data flow diagrams.
Using system analysis and design techniques like data flow diagram in
designing the system.
Understanding the database handling and query processing.
WEBSITE
www.google.com
www.javatpoint.com
www.tutorialspoint.com