0% found this document useful (0 votes)
435 views208 pages

Online Hotel Management System Project

The document describes an online hotel administration automation system project. The project aims to develop a software application called Hotel E-Booking to allow guests to make secure online reservations. It will allow hotel managers to post available rooms and for customers to view rooms and make bookings online. The system is intended to automate daily hotel activities like room bookings, check-ins, billing, and payments to make the process more user-friendly and efficient. It will provide functionality for both customers and managers to manage hotel operations digitally.

Uploaded by

Komal Shikha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
435 views208 pages

Online Hotel Management System Project

The document describes an online hotel administration automation system project. The project aims to develop a software application called Hotel E-Booking to allow guests to make secure online reservations. It will allow hotel managers to post available rooms and for customers to view rooms and make bookings online. The system is intended to automate daily hotel activities like room bookings, check-ins, billing, and payments to make the process more user-friendly and efficient. It will provide functionality for both customers and managers to manage hotel operations digitally.

Uploaded by

Komal Shikha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

1

2
3
4
5
6
7
8
Selection Reason of the Project
The biggest task when moving to any other city is to book a hotel for
yourself. Some hotels are either very expensive then some are below
standard. Finding a hotel by roaming around in this way is a very tuff task.
That's why we have selected hotel management. my project help to work
this problem

9
Title of the Project
10
Myself Komal Shikha enrolled for BCA 6th semester in "Indira Gandhi
National Open University". The theme of my project is Online Hotel
Administration automation system. I am going to develop a software
application Hotel E-Booking i.e., implemented by hotels to allow guests to
create secure online reservations. This project work bears the course code
BCSP-064.

Our guaranteed and stable streaming over any browsers helps


administrators to access or modify from anywhere at any time without
interruptions. Regardless of the shift among Chrome, Firefox or Explorer,
users can access software at the perfect quality.

The Hotel E-admin software has been provided many supports to hotel
manager to handle all hotel activities online. This project provides room
booking, staff management and other necessary hotel management
features.

This system allows the manager to post available rooms in the system.
Customers can view and book room online. Admin has the power of either
approving or disapproving the customer's booking request. Other hotel
services can also be viewed by the customers and can book them too. This
system is useful for both customers and managers to portable manage the
hotel activities.

11
Introduction

12
My project " Online Hotel Administration automation system " is a fine thought
to make complex work of the Hotel management system to an easy manner
which is systematic, modular design and constructed system is very much user
friendly in which user can understand the tools and can do edit of his own
choice.

This project can be easily managed by the less educated or simple computer
knowledge person without any fault.

Two types of users can manage this system-

1. Online Users,

2. Hotel management or Administrator.

The online users are the customers or the staff who can view the information and
updates of the Hotel and the admin are responsible for updating the Hotels
details on computer. The administrator has the power to operate the system and
can change or edit the updates of the hotels.

In this system all the daily activities will be involved like Room activities, Entering
details of the new customer check in, Also provide a room as per the customer
need or interest, Recording of the checkout time and details of the customer will
also be available and all other regular activities of the Hotel will be recorded too.

The application of the Hotel management system bears following functions to use
by the Administrator:

1. Room status

2. New Room initiation

3. Allocated room modification

4. Details for the customer check in or check out

5. Total customer present in the Hotel


13
6. Statement and transactions of the customer

Objective of The Project

14
The main objectives of this project is-

1. This project intends to introduce more user friendliness in the


various activities such as record updation, maintenance, and
searching.

2. The searching of record has been made quite simple as all the
details of the customer can be obtained by simply keying in the
identification of that customer.

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

4. To provide customers all the information about Hotel, its details,


and updates without requiring them to come to the Hotel
reception.

5. To provide guests with information regarding availaibity of rooms


, check in or check out time or other regular updates.

6. To provide Hotel a medium to publish its news or updates to all


the customer who will visit the site.

7. To provide Hotel a medium to address the query of the customer


without requiring them to come to the Hotel.

8. This software application will help admin to handle customers


information ,room allocation details ,payment details, billing
information,etc.

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

The project contains:

a. Keeping the record of all persons like customers, managers,


etc.
15
b. Maintains proper list of all persons.
c. Generating proper bill slip and calculate managers salary.

10. The main objective of the entire activity is to automate the process of
day to day activities of Hotel like

 Room activities,
 Admission of a New Customer,
 Assign a room according to customer’s demand,
 Checkout of a computer and releasing the room
 Finally compute the bill etc.
 Packages available. 7. Advance online bookings.
 Online Cancellation.
 List of Regular customers.
 Email facility

This project have some more features:


 System Connectivity
 No data duplication
 No Paper Work Required
 Time Efficient
 Cost Efficient
 Automatic data validation
 User friendly environment
 Data security and reliability
 Fast data insertion & retrieval
 Easy performance check

Project category

16
Relational database management system (RDBMS) is nothing
more than a computerized record keeping system. It is a collection of
computerized data files. It will be given to perform a variety of operation data
record such as:

 Inserting new data into existing files

 Retrieving data from existing files

 Updating data in the existing files

 Deleting data from the existing files

The primary goal of RDBMS is to provide an environment that is both convenient


and efficient to use in retrieving and storing database information. It also provides
safety of information stored, despite system crashes or attempt at unauthorized
access.

The advantage of computerized database are:

 Fast accessing of data

 Consistency of data is avoided

 It also avoids replication of the same data in many places

 Multiple users can access the data at the same time

 It provides security of data by giving benefit to access the database to the


user according to their records.

Normalization of Data
Normalization is the process of organizing data in the database. This includes
creating tables and establishing the relationships between those tables according to
the rules designed both to project the data and make the database more flexible by
eliminating two factors: redundancy and dependency.

There are some benefits of normalization.


17
 Faster sorting and index creation because tables are narrower
 More clustered indices are allowed because there are no tables.
 Narrower indices per table, helping INSERT , UPDATE , and DELETE
performance.
 Fewer rules and less redundant data , increasing database compactness.

TOOLS AND PLATFORMS USED


HARDWARE REQUIREMENTS:
 I-3 Processor or above
 RAM 8GB
 SSD 512 GB
18
 Solid State Drive
 X64 architecture processor
 Intel Chipset Motherboard
 Keyboard
 Mouse
 Pointer

SOFTWARE REQUIREMENTS:
 Windows 10
 Office 2019

TOOLS USED:
 XAMPP
 Dreamweaver CS-3

FRONT END LANGUAGE:


 HTML
 CSS
 JAVASCRIPT

SERVER Tools and Language:


 Compiler and Engine : Zend
 Server : Apache
 Language : PHP (Hypertext Preprocessor)

Backend Tools and Language


 Tools : PHPMyAdmin
 Language : MySQL

19
REQUIREMENT ANALYSIS
Functional Requirements
 The system supports customers booking and able to modify them.
 Customers can search based on hotels, availability of rooms and so on.
 When a customer search for hotels or rooms and the search result
must contain hotels or rooms information and also its availability
20
within choose in check in or check out date.
 Customer able to cancel their booking from their account.
 Admin or staffs able to edit customers booking information(updating
check in, check out ,room preferences, bed preferences and also
cancelling booking).
 Customer can book online and pay with credit or debit card.
 The system must send booking confirmation email after successful
payment.
 Customer can write reviews about hotels and rooms and also rate
them.
 Customer can send feedback or call the company for booking
purposes.
 Creating new Entity (Hotel, Room, Customers, Members etc.) This is
used to add a new employee details, delete entity details and view the
details. In that screen, the automatic item is created. In this function,
whenever a new entity is required to be added the corresponding
forms are opened and the database is manipulated to check whether
the data is already existing or not. If it already exists, then it prompts
that “Entry already existing” and if not than the data is entered with
the various validation checks.
 Password In this module, this website is for multiple users. If a User
enters a password and the software checks its validity. If the password
is valid then option is given to change the password, otherwise
“Invalid User/Password” message is displayed. There is an option for
password recovery, log out, login, new users sign in. The Administrator
can also update changes in the site after login.
 Function NEW_ROOM() This is the function used to open a new room
for a customer so that he/she can assign a separate room . In that
screen, the automatic room number is created. After opening a new
room for the customer, finally a room is assigned to a customer and
the room records are appended in the data file.
 Function GENERATE_BILL() When any customer check-out, his/her bill
is generated automatically by calculated check-out date minus check-
in date and getting multiplied it by daily room charge plus other
charges and the bill has to be saved in the table in the database.
 Function DISPLAY_RECORD() This function is used to display all the
transaction including the customer name, address, phone, bed
number, and doctor assigned to him/her in the screen. This is a global
21
repor to display all the transaction records in the screen.

Non-functional Requirements
 The system must ensure that all the transferable data as for examples
customers credit or debit card number ,CVV code, e-payment should
be done in secured connection.
 The system must be able to handle multiple transactions at a time.
 The system must provide customers 24*7 hours online booking
service.
 The system should support almost all the browsers (Internet Explorer,
Chrome, Mozilla Firefox).
 Customers need to cancel the booking before 24hrs. Otherwise their
credit card will be charged for one day.
 In promotion time the system will charge credit card promptly.

Data Flow Diagram

22
0-LEVEL

23
0-LEVEL

24
1-LEVEL

25
Data flow of employee service

2-LEVEL

26
ER-Diagram

Module
27
As all the programming is divided into different modules and they will interact with
each other to maintain the data and information. Modular structure is designed with
the consideration of the case to maintain the logic for modification and
maintenance. Since program has to interact with the database. Each module is
interacting with database and gives the desired output as follows-

 Existing Customer Record


 Leaving Customer Record
 Existing Employee Record
 Leaving Employee Record
 New General Customer Record
 Customer Bills with detail information
 Employee Bill Record
 Inventory Record
 Important contact numbers record

Database of The Project


28
Master Login

Field Name Type Size Constraint

Admin varchar 20 PK

Password Varchar 20

Customer Details

Field Name Type Size Constraint

C_id varchar 20 PK

Password Varchar 20

F_Name Varchar 30

L_Name Varchar 30

Address Varchar 250

City Varchar 50

State Varchar 30

Gender Varchar 6

Contact_no Int 10

e_mail Varchar 20

Employee

Field Name Type Size Constraint


id varchar 5 Primary Key
name varchar 30
age int
gender varchar 7
f_name varchar 15
address Varchar 100
tel int 12
pin int 8
city varchar 15
state varchar 15
date Date/ti 29
time varchar 10
status varchar 20
salary int
Customer Bill

Field Name Type Size Constraint

C_id varchar 20 PK

Room type Varchar 30

Arrival Dt. Date/time

Leaving Dt. Date/time

Amount int 5

Misc. Exp. int 5

Vat. float 5

Total Int 5

accommodation search

Field Name Type Size Constraint

Room Type varchar 20

Price Int 4

30
Arability varchar 5

registration

Field Name Type Size Constraint

F_name varchar 20

F_name varchar 20

address Varchar 450

Contact no. int 10

E_mail varchar 30

Room Prefer Varchar 30

Adv. Amt Int 4

Process Logic

As all programming is divided into different modules and they will interact with each
other to maintain the data and information. Modular structure is designed with the
consideration of ease to maintain the logic for modification and maintenance.
Science program has to interact with the database and give the desired output as
follows:
31
 Employee Login Module : This module will provides user interface to enter
existing employee to the Software and adding entry for new user with there
all concerning information and details like user id , password , the validity of
user in the database. It is totally under control of DBA.

 Admin Login Module : If the user is DBA, this module provides the facility
to enter important notice, view & edit customer Detail, view & edit customer
Bill Generate, Employee Attendance, etc.

Testing

Software testing is an empirical investigation conducted to provide stakeholders


with information about the quality of the product or service under test , with
respect to the context in which it is intended to operate. This includes, but is not
limited to, the process of executing a program or application with the intent of
finding software bugs. Testing can never completely establish the correctness of
computer software. Instead, it furnishes a criticism or comparison that compares
32
the state and behaviour of the product against oracles—principles or mechanisms
by which someone might recognize a problem. These oracles may include (but are
not limited to) specifications, comparable products, past versions of the same
product, inferences about intended or expected purpose, user or customer
expectations, relevant standards, applicable laws, or other criteria.

Testing
Testing is the activity where the errors remaining from all the previous phases
must be detected. Hence, testing performs a very critical role for ensuring quality.
The focus of this topic is primarily on system testing in which the entire software
is tested, though testing is also performed on individual programs written by
programmers and the concept discussed are also applicable for individual
program testing.

Testing is a dynamic method for verification and validation, where the system to
be tested is executed and the behaviour of the system is observed.

During testing, the program to be tested is executed with the set of test cases and
the output of the program for the test cases is evaluated to determine if the
performing as expected.

The following are the two fundamental goals of a practical testing activity:

Maximize the number of errors detected and

Minimize the number of test cases.

Testing is the major quality control measure used during software development. It
is the basic function to detect errors in the software. The goal of testing is to
uncover requirement, design and coding error in the program.

Testing methodologies:

 White Box Testing: White Box Testing is software testing method in


which internal diagram , design, and coding of software are tested to
verify flow of input-output and to improve design, usability and
security. Developers test the application in this testing. In White Box
Testing an internal of the system, as well as programming skills are
33
used to design test cases. This testing usually done at the unit level.
 Black Box Testing: Black Box Testing is software testing method in
which testing method in which testers evaluate the functionality of the
software under test without looking at the internal code structure. This
can be applied to every level of software testing such as Unit,
Integration, System, and Acceptance Testing. It is also called as
Behavioral/Specification-Based/Input-Output Testing. Tester performs
testing only on the functional part of an application to make sure the
behavior of the software is as expected. So it is AKA Behavioral Based
Testing.
 Alpha Testing: Alpha testing is testing of an application when
development is about to complete. Minor changes can still be made as
a result of alpha testing. It is carried out in test environment at the
developers site. It is after the all other types of developer side testing
means unit testing and integration testing etc. It can be any black box
or white box depends on the requirements. Special lab environment
and simulation of actual environment is required for this testing.
 Beta Testing: Beta testing is performed by real users of the software
application in real environment. It allows the real customer an
opportunity to provide inputs into the design, funtionality, and
usability of product. These inputs are important for the success of the
product. Beta testing reduces product failures risks.

Integrated Testing

Integration testing (sometimes called Integration and Testing, abbreviated I&T)


is the phase of software testing in which individual software modules are combined
and tested as a group. It follows unit testing and precedes system testing.

Integration testing takes as its input modules that have been unit tested, groups
them in larger aggregates, applies tests defined in an integration test plan to those
aggregates, and delivers as its output the integrated system ready for system
testing.

The purpose of integration testing is to verify functional, performance and reliability


requirements placed on major design items. These "design items", i.e. assemblages
34
(or groups of units), are exercised through their interfaces using black box testing,
success and error cases being simulated via appropriate parameter and data inputs.
Simulated usage of shared data areas and inter-process communication is tested
and individual subsystems are exercised through their input interface. Test cases
are constructed to test that all components within assemblages interact correctly,
for example across procedure calls or process activations, and this is done after
testing individual modules, i.e. unit testing.

Some different types of integration testing are big bang, top-down, and bottom-up.

A type of “Big Bang” Integration testing is called Usage Model testing. Usage Model
testing can be used in both software and hardware integration testing. The basis
behind this type of integration testing is to run user-like workloads in integrated
user-like environments. In doing the testing in this manner, the environment is
proofed, while the individual components are proofed indirectly through their use.
Usage Model testing takes an optimistic approach to testing, because it expects to
have little problems with the individual components. The strategy relies heavily on
the component developers to do the isolated unit testing for their product. The goal
of the strategy is to avoid redoing the testing done by the developers, and instead
flesh out problems caused by the interaction of the components in the environment.
For integration testing, Usage Model testing can be more efficient and provides
better test coverage than traditional focused functional integration testing. To be
more efficient and accurate, care must be used in defining the user-like workloads
for creating realistic scenarios in exercising the environment. This gives added
comfort that the integrated environment will work as expected for the target
customers.

Another is the Bottom Up testing. All the bottom or low-level modules, procedures
or functions are integrated and then tested. After the integration testing of lower
level integrated modules, the next level of modules will be formed and can be used
for integration testing. This approach is helpful only when all or most of the
modules of the same development level are ready. This method also helps to
determine the levels of software developed and makes it easier to report testing
progress in the form of a percentage.

35
Report Generation

 In-customer Record
 Leaving customer Record
 In-Customer Bill Generatation
 Out-customer Record
 Query Record
 Important contact number
 Employee Detail Record
36
 Employee Attendance Report
 Inventory Detail Record

Future Scope
In future as per requirement, the system have to be developed for changing the
status of the Hotel. It will give various kind of reports.

This software is going to implement for the computerize handling of all


the information regarding Hotel and customers. The proposed system will facilitates
customer, by providing the quick service and eliminate customer to the phone also.
This system can be integrated in other Hotel. This software will be able to handle
any type of queries regarding Customer and the Management . All the queries will
be handling through proper validation.

37
HMS provides manifold benefits to Hotel whether large or medium
sized.

 Minimized documentation and no duplication of records.


 Reduced paper work.
Improved Customer care:

 Procedures for timely and effective customer care.


 Faster information flow between various departments.
 Easy access to reference records.
Better Administration Control:

 Availability of timely and accreted information.


 Access to updated management information.
Smart Revenue Management:

 Optimized bed occupancy checks.


 Effective billing of various services.

38
Introduction

My project " Online Hotel Administration automation system " is a fine thought
to make complex work of the Hotel management system to an easy manner
which is systematic, modular design and constructed system is very much user
friendly in w hich user can understand the tools and can do edit of his own
choice.

This project can be easily managed by the less educated or simple computer
knowledge person without any fault.

Two types of users can manage this system-


39
1. Online Users,

2. Hotel management or Administrator.

The online users are the customers or the staff who can view the information and
updates of the Hotel and the admin are responsible for updating the Hotels
details on computer. The administrator has the power to operate the system and
can change or edit the updates of the hotels.

In this system all the daily activities will be involved like Room activities, Entering
details of the new customer check in, Also provide a room as per the customer
need or interest, Recording of the checkout time and details of the customer will
also be available and all other regular activities of the Hotel will be recorded too.

The application of the Hotel management system bears following functions to use
by the Administrator:

1. Room status

2. New Room initiation

3. Allocated room modification

4. Details for the customer check in or check out

Mainly this system is developed for hotels those those are using a manual system
to handle hotel processes. This system will automate the major operations of the
hotel. The main aim of the entire activity is to automate the process of day to day
activities of Hotel.

The main objective of the entire activity is to automate the process of day to day
activities of Hotel. Using this system you can manage room activities and keep
track of admission of a New Customer. Using this system you can check rooms
according to customer’s need and can assign easily room to customer. Checkout
of a customer and updating the releasing room information in the system is very
easy. When user do checkout system will generate final bill after calculating all
the bills. User can also check online, all the packages available. He can also books

40
room online and he can cancel booked room online. Hotel management can also
check the list of Regular customers and feedback of the hotel’s customer.

Objective of the Project

The main objectives of this project is-


11.To provide customers all the information about Hotel, its details, and
updates without requiring them to come to the Hotel reception.

12.To provide guests with information regarding availaibity of rooms ,


check in or check out time or other regular updates.

13.To provide Hotel a medium to publish its news or updates to all the
customer who will visit the site.

14.To provide Hotel a medium to address the query of the customer


without requiring them to come to the Hotel.

41
15.This software application will help admin to handle customers
information ,room allocation details ,payment details, billing
information, etc.

The objective of the project is to computerize the system of the hotel, “Hotel
Management” is the project not only keeps the records of various people like
customers, manager etc. but as well as it reduce the extensive paper work in the
present system. It wills maker the system more versatile and user friendly. It also
calculates the proper billing slip of high level and middle level customers. This
project is based on description about the structure of HOTEL MANAGEMENT
SYSTEM.

The project contains:

 Keeping the record of all persons like customers, managers, etc.


 Maintains proper list of all persons.
 Generating proper bill slip and calculate managers salary.

16. The main objective of the entire activity is to automate the


process of day to day activities of Hotel like

 Room activities,
 Admission of a New Customer,
 Assign a room according to customer’s demand,
 Checkout of a computer and releasing the room
 Finally compute the bill etc.
 Packages available. 7. Advance online bookings.
 Online Cancellation.
 List of Regular customers.
 Email facility

This project have some more features:

 System Connectivity

 No data duplication

 No Paper Work Required


42
 Time Efficient

 Cost Efficient

 Automatic data validation

 User friendly environment

 Data security and reliability

 Fast data insertion & retrieval

 Easy performance check

Project category
Relational database management system (RDBMS) is nothing
more than a computerized record keeping system. It is a collection of
computerized data files. It will be given to perform a variety of operation data
record such as:

 Inserting new data into existing files

 Retrieving data from existing files

 Updating data in the existing files

 Deleting data from the existing files

The primary goal of RDBMS is to provide an environment that is both convenient


and efficient to use in retrieving and storing database information. It also provides
safety of information stored, despite system crashes or attempt at unauthorized
43
access.

The advantage of computerized database are:

 Fast accessing of data

 Consistency of data is avoided

 It also avoids replication of the same data in many places

 Multiple users can access the data at the same time

 It provides security of data by giving benefit to access the database to the


user according to their records.

Normalization of Data
Normalization is the process of organizing data in the database. This includes
creating tables and establishing the relationships between those tables according to
the rules designed both to project the data and make the database more flexible by
eliminating two factors: redundancy and dependency.

There are some benefits of normalization.

 Faster sorting and index creation because tables are narrower


 More clustered indices are allowed because there are no tables.
 Narrower indices per table, helping INSERT , UPDATE , and DELETE
performance.
 Fewer rules and less redundant data , increasing database compactness.

44
TOOLS AND PLATFORMS USED
HARDWARE REQUIREMENTS:

 I-3 Processor or above

 RAM 8GB

 SSD 512 GB

 Solid State Drive

 X64 architecture processor

 Intel Chipset Motherboard

 Keyboard

 Mouse

 Pointer

SOFTWARE REQUIREMENTS:

45
 Windows 10
 Office 2019

TOOLS USED:

 XAMPP
 Dreamweaver CS-3

FRONT END LANGUAGE:

 HTML

 CSS

 JAVASCRIPT

SERVER Tools and Language:

 Compiler and Engine : Zend

 Server : Apache

 Language : PHP (Hypertext Preprocessor)

Backend Tools and Language

 Tools : PHPMyAdmin
 Language : MySQL

46
TOOLS USED

XAMPP - XAMPP is an abbreviation where X stands for Cross-Platform, A


stands for Apache, M stands for MYSQL, and the Ps stand for PHP and Perl,
respectively. It is an open-source package of web solutions that includes
Apache distribution for many servers and command-line executables along
with modules such as Apache server, MariaDB, PHP, and Perl.

XAMPP helps a local host or server to test its website and clients via
computers and laptops before releasing it to the main server. It is a platform
that furnishes a suitable environment to test and verify the working of
projects based on Apache, Perl, MySQL database, and PHP through the
system of the host itself. Among these technologies, Perl is a programming
language used for web development, PHP is a backend scripting language,
and MariaDB is the most vividly used database developed by MySQL.

XAMPP is one of the widely used cross-platform web servers, which helps
developers to create and test their programs on a local webserver. It was
developed by the Apache Friends, and its native source code can be
revised or modified by the audience. It consists of Apache HTTP Server,
MariaDB, and interpreter for the different programming languages like
PHP and Perl. It is available in 11 languages and supported by different
platforms such as the IA-32 package of Windows & x64 package of macOS
and Linux.

47
Dreamweaver CS-3
Adobe Dreamweaver is a software program for designing web pages,
essentially a more fully featured HTML web and programming editor. The
program provides a WYSIWYG (what you see is what you get) interface to
create and edit web pages. Dreamweaver supports many markup languages,
including HTML, XML, CSS, and JavaScript. As for human languages, it
supports English, Spanish, French, German, Japanese, Chinese (both
simplified and traditional), Italian, Russian, and many more.

Dreamweaver was originally developed and published


by Macromedia in 1997. Adobe purchased Macromedia (which included the
rights to Dreamweaver) in 2005 and continued the development of the
program. The many features of Dreamweaver make it a versatile web editing
tool, where it be for creating complex or very simples sites.

Dreamweaver is part of the Adobe Creative Cloud suite of applications.


Licensed use of Dreamweaver requires a subscription from Adobe. Users can
get a Dreamweaver-only subscription for $20.99 per month, or a Creative
Cloud subscription for $52.99 per month, which includes all Adobe
applications in the Creative Cloud suite.

48
Backend Tools and Language:

 PhpMyAdmin : phpMyAdmin is a free software tool that allows you to


manage the MySQL database of your website. For WordPress websites
specifically, the MYSQL database stores all the data related to your
posts, pages, comments, users, links and more.

Features:

Some of the platform’s features include the following:

 MySQL database management

 Multiple-server administration

 Global or subset database searches

 Live charts to monitor MySQL server activity

 Web interface

Advantages of PhpMyAdmin:

 Graceful maintenance operations , with no additional cost other than


what will be spent for owning the database management system itself.

 Supports and acts flexible for majority of the commonly used file
formats, which comes in handy for documentation purposes while
working on the database management system.

 Separate Panels for database manipulation, SQL query editing, status


tracking, etc.

 Assists in displaying all the active plugins from the connected


databases.

Disadvantages of PhpMyAdmin:

49
 It cannot be used for any and all databases, as it supports only MySQL
and MariaDB.

 Though it supports the classic servers and systems, its growth is not
parallel to the technological growth of the current industry standards.

 Language MySQL : MySQL is a powerful open source database


server built based on a relational database management system
(RDBMS) and is capable of handling a large concurrent database
connection. It is a fully managed database service to deploy cloud-
native applications.

 Features of MySQL :

 MySQL is simple and easy to use we can build and interact with
MySQL with only the basic knowledge of MySQL and a few
simple SQL statements.

 MySQL is very flexible as it supports a large number of


embedded applications.

 It provides high security, improved connectivity, and speed


thereby making it suitable to work with databases over internet.

 MySQL server is quick, and reliable. It stores data efficiently in


the memory ensuring that data is consistent, and not
redundant.

50
 Disadvantages of MySQL:

 MySQL does not support a very large database size as efficiently.

 The development is not community driven so it has lagged


behind.

 Developers may find some of its limitations very frustrating.

 Transactions are not handled very efficiently.

 There are a few stability issues.

51
Frontend Tools Used
HTML (Hypertext Markup Language):

 HTML stands for Hyper Text Markup Language

 HTML is the standard markup language for creating Web pages

 HTML describes the structure of a Web page

 HTML consists of a series of elements

 HTML elements tell the browser how to display the content

 HTML elements label pieces of content such as "this is a heading", "this


is a paragraph", "this is a link", etc.

A Simple HTML Document

Example

</html><!DOCTYPE html>

<html>

<head>

<title>Page Title</title>

</head>

<body>

<h1>My First Heading</h1>

<p>My first paragraph.</p>

</body>

52
CSS(Cascading Style Sheets)
 CSS stands for Cascading Style Sheets.
 CSS describes how HTML elements are to be displayed on
screen, paper, or in other media.
 CSS saves a lot of work. It can control the layout of
multiple web pages all at once.
o External stylesheets are stored in CSS files.

CSS Example

body {

background-color: lightblue;

h1 {

color: white;

text-align: center;

p{

font-family: verdana;

font-size: 20px;

CSS Solved a Big Problem

53
HTML was NEVER intended to contain tags for formatting a web
page!

HTML was created to describe the content of a web page, like:

<h1>This is a heading</h1>

<p>This is a paragraph.</p>

When tags like <font>, and color attributes were added to the
HTML 3.2 specification, it started a nightmare for web
developers. Development of large websites, where fonts and
color information were added to every single page, became a
long and expensive process.

To solve this problem, the World Wide Web Consortium (W3C)


created CSS.

CSS removed the style formatting from the HTML page!

CSS Saves a Lot of Work!

The style definitions are normally saved in external .css files.

With an external stylesheet file, you can change the look of an


entire website by changing just one file!

54
Java script
JavaScript (js) is a light-weight object-oriented programming language
which is used by several websites for scripting the webpages. It is an
interpreted, full-fledged programming language that enables dynamic
interactivity on websites when applied to an HTML document. It was
introduced in the year 1995 for adding programs to the webpages in the
Netscape Navigator browser. Since then, it has been adopted by all other
graphical web browsers. With JavaScript, users can build modern web
applications to interact directly without reloading the page every time. The
traditional website uses js to provide several forms of interactivity and
simplicity.

Although , JavaScript has no connectivity with Java programming


language. The name was suggested and provided in the times when Java
was gaining popularity in the market. In addition to web browsers ,
databases such as CouchDB and MongoDB uses JavaScript as their scripting
and query language.

55
There are following features of JavaScript:

1. All popular web browsers support JavaScript as they provide built-in


execution environments.

2. JavaScript follows the syntax and structure of the C programming


language. Thus, it is a structured programming language.

3. JavaScript is a weakly typed language, where certain types are


implicitly cast (depending on the operation).

4. JavaScript is an object-oriented programming language that uses


prototypes rather than using classes for inheritance.

5. It is a light-weighted and interpreted language.

6. It is a case-sensitive language.

7. JavaScript is supportable in several operating systems including,


Windows, macOS, etc.

8. It provides good control to the users over the web browsers.

56
SERVER Tools and Language
 Compiler and Engine : Zend

 The Zend Engine PHP compiler is a special kind of compiler that provides
a platform to compile the PHP program and also offers the runtime
engine. It can also be considered as a special kind of program that is
written in order to provide a complete solution to compile and render the
code written in PHP programming language. It works the same way as
that of the compiler by offering something much more this. This program
can be deployed in the server side to serve the execution of the PHP
script which has to be sent to the client from here the script run request
was originated.

 The working of the Zend engine is very simple and has been defined
below using the diagram. In normal terms, the PHP code is turned into
the machine level language which is then processed by the processor. But
when working with the Zend compiler, the PHP script is turned into the
Zend Opcodes. The opcodes are then leveraged while the generation of
the HTML page that is served to the client eventually. It works in a simple
manner and provides additional features as compared to the normal
compiler. The Zend Engine also offers the runtime engine that lets the
user work with the program. Though the Zend engine provides the
platform to compile, it has to load the PHP script into the memory before
it could initiate the entire compiling process.

 The reason for preferring the Zend engine over the other PHP compiler
program is the additional functionalities that it offers. No compiler assists
in the actual running of the program but the runtime engine provided by
Zend engine helps us in running the application as well. In addition to
that, it also provides assistance which is offered by Zend technologies. As

57
shown in the above diagram, the HTML is generated using the Zend
Opcodes, where the output generated using PHP is combined with HTML
in order to serve the output to the user in a simple and understandable
form. Eventually, the client or a web browser that has initiated the
request to run the script is served with the output and it all happens
using the Zend engine.

58
Server : Apache
An Apache Server is a web server application that delivers content such as
HTML pages, multimedia and CSS Style sheets over the internet. Apache is
a community-developed web application published by the Apache Software
Foundation. It is arguably the most popular web server software available
on the World Wide Web and is most commonly found on Unix based
operating systems such as Linux, OSX, Solaris and FreeBSD.

Apache is a modular application, meaning that its structure allows extra


functionality to be added to the core application. Apache is commonly
combined with a SQL Database (such as MYSQL or MariaDB) and a server-
side programming language (such as PHP). Installing PHP on top of the
base Operating System gives a range of additional features and tools,
empowering developers to create fluid and dynamic websites. Native
support for SSL certificates and the ability to load balance across multiple
servers are other key modular features. Apache Tomcat is another popular
module for an Apache Server, which offers web browser clients java servlet
support.

Apache is open source, and as such, it is developed and maintained by a


large group of global volunteers. One of the key reasons Apache is so
popular is that the software is free for anyone to download and use. There
is no direct support or maintenance provided by the Apache foundation;
however, there are vast amounts of documentation and online forums to
gain help from the community. Commercial support for Apache is available
from web hosting companies, such as Atlantic.Net. An Apache Server is

59
implemented by service providers to offer clients web hosting solutions,
like Atlantic.Net's HIPAA compliant website hosting, and content delivery.

60
Language : PHP (Hypertext Preprocessor)
The PHP Hypertext Preprocessor (PHP) is a programming language that
allows web developers to create dynamic content that interacts with
databases. PHP is basically used for developing web based software
applications. 

PHP started out as a small open source project that evolved as more and
more people found out how useful it was. Rasmus Lerdorf unleashed the
first version of PHP way back in 1994.

PHP is a MUST for students and working professionals to become a great


Software Engineer specially when they are working in Web Development
Domain. I will list down some of the key advantages of learning PHP:

 PHP is a recursive acronym for "PHP: Hypertext Preprocessor".

 PHP is a server side scripting language that is embedded in HTML. It is


used to manage dynamic content, databases, session tracking, even
build entire e-commerce sites.

 It is integrated with a number of popular databases, including MySQL,


PostgreSQL, Oracle, Sybase, Informix, and Microsoft SQL Server.

 PHP is pleasingly zippy in its execution, especially when compiled as


an Apache module on the Unix side. The MySQL server, once started,
executes even very complex queries with huge result sets in record-
setting time.

 PHP supports a large number of major protocols such as POP3, IMAP,


and LDAP. PHP4 added support for Java and distributed object
architectures (COM and CORBA), making n-tier development a
possibility for the first time.

 PHP is forgiving: PHP language tries to be as forgiving as possible.

61
 PHP Syntax is C-Like.

Characteristics of PHP

Five important characteristics make PHP's practical nature possible −

 Simplicity

 Efficiency

 Security

 Flexibility

62
Project analysis
This software is mainly made for management of a Hotel. The software has
been designed with front-end as Dreamweaver and backend as PHP.

The initial analysis is made by knowing the user requirements. In analysis


phase, we have analysed the

user’s requirement such as:-

Additon of the record of the customer who comes into the hotel, deletion of
the record when customer leaves the hotel, printing and calculation of the
bill , record of facilities available in the hotel, allotment of the rooms etc. In
this project we have also analysed that the project or software should npt be
very costly but its quality and interface must be attractive. If any wrong
operation is being performed then the software must invoke the operation
accordingly.

FEASIBILITY STUDY

A feasibility study is carried out to select the best system thet must
performance requirement and its working ability in an organization.

The feasibility of the system has been done in three types:-

-Technical Feasibility Study

-Economical Feasibility Study

-Behavioral Feasibility Study

Functional Requirements
63
 The system supports customers booking and able to modify them.
 Customers can search based on hotels, availability of rooms and so on.
 When a customer search for hotels or rooms and the search result
must contain hotels or rooms information and also its availability
within choose in check in or check out date.
 Customer able to cancel their booking from their account.
 Admin or staffs able to edit customers booking information(updating
check in, check out ,room preferences, bed preferences and also
cancelling booking).
 Customer can book online and pay with credit or debit card.
 The system must send booking confirmation email after successful
payment.
 Customer can write reviews about hotels and rooms and also rate
them.
 Customer can send feedback or call the company for booking
purposes.
 Creating new Entity (Hotel, Room, Customers, Members etc.) This is
used to add a new employee details, delete entity details and view the
details. In that screen, the automatic item is created. In this function,
whenever a new entity is required to be added the corresponding
forms are opened and the database is manipulated to check whether
the data is already existing or not. If it already exists, then it prompts
that “Entry already existing” and if not than the data is entered with
the various validation checks.
 Password In this module, this website is for multiple users. If a User
enters a password and the software checks its validity. If the password
is valid then option is given to change the password, otherwise
“Invalid User/Password” message is displayed. There is an option for
password recovery, log out, login, new users sign in. The Administrator
can also update changes in the site after login.
 Function NEW_ROOM() This is the function used to open a new room
for a customer so that he/she can assign a separate room . In that
screen, the automatic room number is created. After opening a new
room for the customer, finally a room is assigned to a customer and
the room records are appended in the data file.
 Function GENERATE_BILL() When any customer check-out, his/her bill
is generated automatically by calculated check-out date minus check-
in date and getting multiplied it by daily room charge plus other
64
charges and the bill has to be saved in the table in the database.
 Function DISPLAY_RECORD() This function is used to display all the
transaction including the customer name, address, phone, bed
number, and doctor assigned to him/her in the screen. This is a global
repor to display all the transaction records in the screen.

Non-functional Requirements
 The system must ensure that all the transferable data as for examples
customers credit or debit card number ,CVV code, e-payment should
be done in secured connection.
 The system must be able to handle multiple transactions at a time.
 The system must provide customers 24*7 hours online booking
service.
 The system should support almost all the browsers (Internet Explorer,
Chrome, Mozilla Firefox).
 Customers need to cancel the booking before 24hrs. Otherwise their
credit card will be charged for one day.
 In promotion time the system will charge credit card promptly.

Data Flow Diagram

65
0-LEVEL

66
0-LEVEL

67
1-LEVEL

68
Data flow of employee service

2-LEVEL

69
ER-Diagram

70
A Complete Structure
No. of Module and their description

As all the programming is divided into different modules and they will interact with
each other to maintain the data and information. Modular structure is designed with
the consideration of the case to maintain the logic for modification and
maintenance. Since program has to interact with the database. Each module is
interacting with database and gives the desired output as follows-

 Existing Customer Record


 Leaving Customer Record
 Existing Employee Record
 Leaving Employee Record
 New General Customer Record
 Customer Bills with detail information
 Employee Bill Record
 Inventory Record
 Important contact numbers record

71
Database of The Project
Master Login

Field Name Type Size Constraint

Admin varchar 20 PK

Password Varchar 20

Customer Details

Field Name Type Size Constraint

C_id varchar 20 PK

Password Varchar 20

F_Name Varchar 30

L_Name Varchar 30

Address Varchar 250

City Varchar 50

State Varchar 30

Gender Varchar 6

Contact_no Int 10

e_mail Varchar 20
Employee

Field Name Type Size Constraint


id varchar 5 Primary Key
name varchar 30
age int
gender varchar 7
f_name varchar 15
address Varchar 100
tel int 12
pin int 8
city varchar 15
state varchar 15
date Date/ti 72
time varchar 10
status varchar 20
salary int
Customer Bill

Field Name Type Size Constraint

C_id varchar 20 PK

Room type Varchar 30

Arrival Dt. Date/time

Leaving Dt. Date/time

Amount int 5

Misc. Exp. int 5

Vat. float 5

Total Int 5

accommodation search

Field Name Type Size Constraint

Room Type varchar 20

73
Price Int 4

Arability varchar 5

registration

Field Name Type Size Constraint

F_name varchar 20

F_name varchar 20

address Varchar 450

Contact no. int 10

E_mail varchar 30

Room Prefer Varchar 30

Adv. Amt Int 4

Reports Generations
In this project reports are generated for the following entities:
a) Customer Details
74
b) Requirements of the Customer
c) Rooms Details
d) Bill Details
e) Checkin Reports
f) Booking Details
g) Online Bookings
h) Checkout Details
i) Membership Details
j) Packages Available.

Process Logic
As all programming is divided into different modules and they will interact with
each other to maintain the data and information. Modular structure is designed
with the consideration of ease to maintain the logic for modification and

75
maintenance. Science program has to interact with the database and give the
desired output as follows:

 Client Login Module : This module will provides user interface to client
registration, room booking, cancel booking,etc.
 Employee Login Module : This module will provides user interface to enter
existing employee to the Software and adding entry for new user with
there all concerning information and details like user id , password , the
validity of user in the database. It is totally under control of DBA.

 Admin Login Module : If the user is DBA, this module provides the facility
to enter important notice, view & edit customer Detail, view & edit
customer Bill Generate, Employee Attendance, etc.

76
77
index.php

78
<?php

session_start();

error_reporting(1);

include('connection.php');

?>

<!DOCTYPE html>

<html lang="en">

<head><!--Head Open Here-->

<title>hotelrepublic.co.in</title>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.
css">

<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></s
cript>

<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"
></script>

<link href="https://fonts.googleapis.com/css?family=Abril+Fatface"
rel="stylesheet">

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

</head> <!--Head Open Here-->

<body style="margin-top:50px;">

<?php

include('Menu Bar.php')
79
?>

<div id="myCarousel" class="carousel slide" data-ride="carousel"> <!--


Slider Image Start Here-->

<!-- Indicators -->

<ol class="carousel-indicators">

<li data-target="#myCarousel" data-slide-to="0" class="active"></li>

<li data-target="#myCarousel" data-slide-to="1"></li>

<li data-target="#myCarousel" data-slide-to="2"></li>

</ol>

<!--Indicators Close Here-->

<!-- Wrapper for slides -->

<div class="carousel-inner" role="listbox">

<?php

$i=1;

$sql=mysqli_query($con,"select * from slider");

while($slider=mysqli_fetch_assoc($sql))

$slider_img=$slider['image'];

$slider_cap=$slider['caption'];

$path="image/Slider/$slider_img";

if($i==1)

80
?>

<div class="item active">

<img src="<?php echo $path; ?>" alt="Image">

<div class="carousel-caption">

<h2><?php echo $slider_cap; ?></h2>

</div>

</div>

<?php

else

?>

<div class="item">

<img src="<?php echo $path; ?>" alt="Image">

<div class="carousel-caption">

<h2><?php echo $slider_cap; ?></h2>

</div>

</div>

<?php } ?>

<?php $i++; } ?>

81
</div>

<a class="left carousel-control" href="#myCarousel" role="button" data-


slide="prev">

<span class="glyphicon glyphicon-chevron-left" aria-


hidden="true"></span>

<span class="sr-only">Previous</span>

</a>

<a class="right carousel-control" href="#myCarousel" role="button"


data-slide="next">

<span class="glyphicon glyphicon-chevron-right" aria-


hidden="true"></span>

<span class="sr-only">Next</span>

</a>

<!-- Left and right controls Close Here -->

</div> <!--Room Info Start Here-->

<div class="container-fluid"id="red"><!--Id Is Red-->

<div class="container text-center">

<h1>Welcome To <font color="#a6e22b;"><b>Hotel


Republic</b></font></h1><hr><br>

<div class="row">

<div class="hov"><!--Hov is Class-->

82
<?php

$sql=mysqli_query($con,"select * from rooms");

while($r_res=mysqli_fetch_assoc($sql))

?>

<div class="col-sm-4">

<img src="image/rooms/<?php echo $r_res['image']; ?>"class="img-


responsive thumbnail"alt="Image"id="img1"> <!--Id Is Img-->

<h4 class="Room_Text">[ <?php echo $r_res['type']; ?>]</h4>

<p class="text-justify"><?php echo substr($r_res['details'],0,100); ?


></p><br>

<a href="room_details.php?room_id=<?php echo


$r_res['room_id']; ?>" class="btn btn-danger text-center">Read
more</a><br><br>

</div>

<?php } ?>

</div>

</div>

</div>

</div>

<?php

include('Footer.php')

?>
83
</body>

</html>

Menu.php

<?php

session_start();

$eid=$_SESSION['create_account_logged_in'];

error_reporting(1);

?>

84
<!--Menu Bar Close Here-->

<nav class="navbar navbar-inverse navbar-fixed-top">

<div class="container">

<div class="navbar-header">

<button type="button" class="navbar-toggle" data-toggle="collapse"


data-target="#myNavbar">

<span class="icon-bar"></span>

<span class="icon-bar"></span>

<span class="icon-bar"></span>

</button>

<img src="logo/logo2.png"/width="160px"height="40px"style="margin-
top:5px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

</div>

<div class="collapse navbar-collapse" id="myNavbar">

<ul class="nav navbar-nav">

<li><a href="index.php"title="Home">Home</a></li>

<li><a href="about.php"title="About">About </a></li>

<li><a href="image gallery.php"title="Gallery">Gallery


</a></li>

</ul>

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

<li><a href="admin/index.php"title="Admin Login"><span


class="glyphicon glyphicon-user"></span>&nbsp;&nbsp;Admin
Login</a></li>

85
<?php

if($_SESSION['create_account_logged_in']!="")

?>

<li class="dropdown"><a class="dropdown-toggle" data-


toggle="dropdown" href="#">View Status <span
class="caret"></span></a>

<ul class="dropdown-menu">

<li><a href="profile.php">Profile</a></li>

<li><a href="order.php">Booking Status</a></li>

<li><a href="logout.php">Logout</a></li>

</ul>

</li>

<?PHP } else

?>

<li><a href="Login.php"title="login"><span class="glyphicon


glyphicon-log-in"></span>&nbsp;&nbsp;User Login</a>

</li>

<?php

} ?>

</ul>

</div>

</div>

</nav>

86
<!--Menu Bar Close Here-->

footer.php

<?php

include('connection.php');

extract($_REQUEST);

if(isset($send))

mysqli_query($con,"insert into feedback values('','$n','$e','$mob','$msg')");

$msg= "<h4 style='color:green;'>feedback sent successfully</h4>";

87
?>

<!-- Footer1 Start Here-->

<footer style="background-color: #393939;">

<div class="container-fluid">

<div class="col-sm-4 hov">

<img
src="logo/logo2.png"width="200px"height="50px"/><br><br>

<p class="text-justify">hotel Hotel Republic is an establishment that


provides paid lodging on a short-term basis. Facilities provided may range
from a modest-quality mattress in a small room to large suites with bigger,
higher-quality beds, a dresser, a refrigerator and other kitchen facilities,
upholstered chairs, a flat screen television, and en-suite bathrooms. Small,
lower-priced hotels may offer only the most basic guest services and
facilities. Larger, higher-priced hotels may provide additional guest facilities
such as a swimming pool, business center</p><br>

<center><a href="about.php" class="btn btn-danger"><b>Read


More..</b></a></center><br><br><br>

<?php

include('Social ican.php')

?>

</div>&nbsp;&nbsp;

<div class="col-sm-4 text-justify">

<h3 style="color:#cdd51f;">Contact Us</h3>

<p style="color:white;"><strong>Address:&nbsp;</strong>Sector,59
Main Road, Purnia</p>

<p style="color:white;"><strong>Email-
Id:hotelrepublic</strong>@gmail.com</p>

88
<p style="color:white;"><strong>Contact Us:&nbsp;</strong>(+91)
98355112200</p><br><br><br>

<center><img src="image/devlop/img2.png"class="img-
responsive"style="width:200px;height:150px;border-
radius:100%;"></center>

</div>&nbsp;

<!--Feedback Start Here-->

<div class="col-sm-4 text-center">

<div class="panel panel-primary">

<div class="panel-heading">Feedback</div>

<div class="panel-body">

<?php echo @$msg; ?>

<div class="feedback">

<form method="post" action="process.php"><br>

<div class="form-group">

<input type="text" name="nane" class="form-control"


id="#"placeholder="Enter Your Name"required>

</div>

<div class="form-group">

<input type="Email" name="email" class="form-control"


id="#"placeholder="Email"required>

</div>

<div class="form-group">

<input type="Number" name="mob" class="form-control"


id="#"placeholder="Mobile Number"required>

89
</div>

<div class="form-group">

<textarea type="Text" name="msg" class="form-control"


id="#"placeholder="Type Your Massage"required></textarea>

</div>

<input type="submit" value="send" name="send" class="btn btn-


primary btn-group-justified"required>

</form>

</div>

</div>

</div>

</div>

<!--Feedback Panel Close here-->

</div>

</footer>

<!--Footer1 Close Here-->

<!--Footer2 start Here-->

<footer class="container-fluid text-center"style="background-


color:#000408;height:40px;padding-top:10px;color:#f0f0f0;">

<p>Develope By Komal@ | All Rights Reserved 2021</p>

</footer>

90
<!--Footer2 start Here-->

Socialmedia.php

<!DOCTYPE html>

<html>

<head>

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-


awesome/4.7.0/css/font-awesome.min.css">

<style>

.fa {

padding:20px;

font-size:20px;

91
text-align:center;

margin: 5px 2px;

border-radius:50%;

text-decoration:none;

.fa:hover {

opacity: 0.7;

.fa-facebook {

background: #3B5998;

color: white;

.fa-twitter {

background: #55ACEE;

color: white;

.fa-google-plus{

background: #dd4b39;

color: white;

92
.fa-linkedin {

background: #007bb5;

color: white;

.fa-youtube {

background: #bb0000;

color: white;

.fa-instagram {

background: #125688;

color: white;

</style>

</head>

<body>

<!-- Add font awesome icons -->

<a href="https://www.facebook.com/" class="fa fa-


facebook"target="blank"title="facebook"></a>

<a href="https://twitter.com/"class="fa fa-


twitter"target="blank"title="twitter"></a>

<a href="https://google-plus.com/" class="fa fa-google-


plus"target="blank"title="google-plus"></a>

93
<a href="https://linkedin.com/" class="fa fa-
linkedin"target="blank"title="linkedin"></a>

<a href="https://youtube.com/" class="fa fa-


youtube"target="blank"title="youtube"></a>

<a href="https://instagram.com/" class="fa fa-


instagram"target="blank"title="instagram"></a>

</body>

</html>

Mail.php

<?php

$name = $_REQUEST['name'];

$email = $_REQUEST['email'];

$mob = $_REQUEST['mob'];

$name = $_REQUEST['name'];

$mail_subject = "$name want to make Loan.";

94
$mail_body = "Name : ".$name;

$mail_body = $mail_body . "<br>";

$mail_body = $mail_body ."email : ". $_REQUEST['email'];

$mail_body = $mail_body . "<br>";

$mail_body = $mail_body ."Mobile : ". $_REQUEST['mob'];

$mail_body = $mail_body . "<br>";

$to = "[email protected]";

//$to = "[email protected]";

$subject = "Loan Query From " . $name;

$headers = "MIME-Version: 1.0" . "\r\n";

$headers .= "Content-type:text/html;charset=iso-8859-1"
. "\r\n";

$headers .= "From: mail.ubsss.com" ;

if(mail($to, $subject, $mail_body, $headers))

95
echo "<script>alert('Thank You For Contact
Me.')</script>";

echo "<script>window.location='index'</script>";

else

echo "<script>alert('Failed to mail me, Try Again')</script>";

?>

96
image gallery.php

<!DOCTYPE html>

<html lang="en">

<head><!--Head Open Here-->

<title>Republic Hotel</title>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.
css">

<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></s
cript>
97
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"
></script>

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

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-


awesome/4.7.0/css/font-awesome.min.css">

</head> <!--Head Open Here-->

<body style="margin-top:50px;">

<?php

include('Menu Bar.php')

?>

<div class="container">

<h2>Image Gallery</h2>

<div class="row">

<div class="col-md-4">

<div class="thumbnail">

<a href="image/image gallery/1.jpg" target="_blank">

<img src="image/image gallery/1.jpg" alt="img1 Not Show"


style="width:100%;height:160px;">

</a>

</div>

</div>

<div class="col-md-4">

<div class="thumbnail">

<a href="image/image gallery/2.jpg" target="_blank">

98
<img src="image/image gallery/2.jpg" alt="img2 Not Show"
style="width:100%;height:160px;">

</a>

</div>

</div>

<div class="col-md-4">

<div class="thumbnail">

<a href="image/image gallery/3.jpg" target="_blank">

<img src="image/image gallery/3.jpg" alt="img3 Not Show"


style="width:100%;height:160px;">

</a>

</div>

</div>

<div class="col-md-4">

<div class="thumbnail">

<a href="image/Delux Room Single Bed Ac Room/img1.jpg"


target="_blank">

<img src="image/Luxury Room/Luxury_img8.jpg" alt="img3 Not


Show" style="width:100%;height:160px;">

</a>

</div>

</div>

<div class="col-md-4">

<div class="thumbnail">

<a href="image/Delux Room Single Bed Ac Room/img3.jpg"


target="_blank">

99
<img src="image/Luxury Room/Luxury_img9.jpg" alt="img3 Not
Show" style="width:100%;height:160px;">

</a>

</div>

</div>

<div class="col-md-4">

<div class="thumbnail">

<a href="image/Delux Room Single Bed Ac Room/img4.jpg"


target="_blank">

<img src="image/Luxury Room/Luxury_img10.jpg" alt="img3 Not


Show" style="width:100%;height:160px;">

</a>

</div>

</div>

<div class="col-md-4">

<div class="thumbnail">

<a href="image/image gallery/4.jpg" target="_blank">

<img src="image/image gallery/4.jpg" alt="img4 Not Show"


style="width:100%;height:160px;">

</a>

</div>

</div>

<div class="col-md-4">

<div class="thumbnail">

<a href="image/image gallery/5.jpg" target="_blank">

100
<img src="image/image gallery/5.jpg" alt="img5 Not Show"
style="width:100%;height:160px;">

</a> </div>

</div>

<div class="col-md-4">

<div class="thumbnail">

<a href="image/image gallery/6.jpg" target="_blank">

<img src="image/image gallery/6.jpg" alt="img6 Not Show"


style="width:100%;height:160px;">

</a>

</div>

</div>

<div class="col-md-4">

<div class="thumbnail">

<a href="image/image gallery/7.jpg" target="_blank">

<img src="image/image gallery/7.jpg" alt="img7 Not Show"


style="width:100%;height:160px;">

</a>

</div>

</div>

</div>

</div>

<?php

include('Footer.php')

?>

101
</body>

</html>

102
Login.php

<?php

session_start();

error_reporting(1);

if($_SESSION['create_account_logged_in']!="")

header('location:Booking Form.php');

error_reporting(1);

require('connection.php');

extract($_REQUEST);

if(isset($login))

if($eid=="" || $pass=="")

$error= "<h4 style='color:red'>fill all details</h4>";

else

103
$sql=mysqli_query($con,"select * from create_account where email='$eid'
&& password='$pass' ");

if(mysqli_num_rows($sql))

$_SESSION['create_account_logged_in']=$eid;

header('location:Booking Form.php');

else

$error= "<h4 style='color:red'>Invalid login details</h4>";

?>

<!DOCTYPE html>

<html lang="en">

<head>

<title>Repblic Hotel</title>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.
css">

<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></s
cript>

104
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"
></script>

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

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-


awesome/4.7.0/css/font-awesome.min.css">

<link href="https://fonts.googleapis.com/css?family=Akronim|
Libre+Baskerville" rel="stylesheet">

</head>

<body style="margin-top:50px;">

<?php

include('Menu Bar.php')

?>

<div class="container-fluid"><!-- Primary Id-->

<div class="container">

<div class="row"><br>

<div class="col-sm-4"></div>

<div class="col-sm-4 text-center"style="box-shadow:2px 2px


2px;background-color:#f4ac41;"><br>

<h1 align="center"><b><font style="font-family: 'Libre Baskerville',


serif;text-shadow:3px 3px #000;">User Login ?</font></b></h1>

<img src="image/clipart/login-user-icon.png" class="img-circle"


alt="Bird" width="130" height="120">

<?php echo @$error; ?>

<form method="post"><br>

<div class="form-group">
105
<input type="Email" class="form-
control"name="eid"placeholder="Email Id" autocomplete="off"required >

</div>

<div class="form-group">

<input type="Password" class="form-


control"name="pass"placeholder="Password" autocomplete="off"required>

</div>

<input type="submit" value="Login" name="login" class="btn btn-


primary btn-group btn-group-justified"required>

<div class="form-group forget">

<a href="Forgot account.php">Forget Account</a>&nbsp; <b>|


</b>&nbsp;

<a href="Registation form.php">Create an Account</a>

</div>

</form><br>

</div>

</div><br>

</div>

</div>

<?php

include('Footer.php')

?>

</body>

</html>

106
107
Registation form.php

<?php

include('connection.php');

extract($_REQUEST);

if(isset($save))

$sql= mysqli_query($con,"select * from create_account where


email='$email' ");

if(mysqli_num_rows($sql))

$msg= "<h1 style='color:red'> account already exists</h1>";

else

$sql="insert into
create_account(name,email,password,mobile,address,gender,country,pictrur
e)
values('$fname','$email','$Passw','$mobi','$addr','$gend','$countr','$pict')";

if(mysqli_query($con,$sql))

$msg= "<h1 style='color:green'>Data Saved Successfully</h1>";

header('location:Login.php');

}
108
}

?>

<!DOCTYPE html>

<html lang="en">

<head>

<title>Hotel Republic</title>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.
css">

<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></s
cript>

<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"
></script>

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

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-


awesome/4.7.0/css/font-awesome.min.css">

<link href="https://fonts.googleapis.com/css?family=Baloo+Bhai"
rel="stylesheet">

</head>

<body style="margin-top:50px;">

<?php

include('Menu Bar.php');

?>

109
<div class="container-fluid"style="background-
color:#4286f4;color:#000;"> <!-- Primary Id-->

<div class="container">

<div class="row">

<center><h1 style="background-color:#ed2553; border-


radius:50px;display:inline-block;"><b><font color="#080808">Create New
Account?</font></b></h1></center>

<center><?php echo @$msg;?></center><br>

<div class="col-sm-2"></div>

<div class="col-sm-6 ">

<form class="form-horizontal"method="post">

<div class="form-group">

<div class="control-label col-sm-5"><h4>Name :</h4></div>

<div class="col-sm-7">

<input type="text" name="fname" class="form-


control"placeholder="Enter Your Name"required>

</div>

</div>

<div class="form-group">

<div class="control-label col-sm-5"><h4>Email-Id:</h4></div>

<div class="col-sm-7">

<input type="text" name="email" class="form-


control"placeholder="Enter Your Email-id" autocomplete="off"required>

</div>

110
</div>

<div class="form-group">

<div class="control-label col-sm-5"><h4>Password :</h4></div>

<div class="col-sm-7">

<input type="password" name="Passw" class="form-


control"placeholder="Enter Your Password"autocomplete="off"required>

</div>

</div>

<div class="form-group">

<div class="control-label col-sm-5"><h4>Mobile No:</h4></div>

<div class="col-sm-7">

<input type="text" name="mobi" class="form-


control"placeholder="Enter Your Mobile Number"required>

</div>

</div>

<div class="form-group">

<div class="control-label col-sm-5"><h4>Address :</h4></div>

<div class="col-sm-7">

<textarea name="addr" class="form-


control"required></textarea>

</div>

</div>

111
<div class="form-group">

<div class="control-label col-sm-5"><h4 id="top">Gender


:</h4></div>

<div class="col-sm-7">

<input type="radio"
name="gend"value="male"required><b>Male</b>&emsp;

<input type="radio"
name="gend"value="male"required><b>Female</b>&emsp;

<input type="radio"
name="gend"value="male"required><b>Other</b>

</div>

</div>

<div class="form-group">

<div class="control-label col-sm-5"><h4>Country :</h4></div>

<div class="col-sm-7">

<select name="countr" class="form-control"required>

<option>India</option>

<option>Pakistan</option>

<option>China</option>

</select>

</div>

</div>

<div class="form-group">
112
<div class="control-label col-sm-5"><h4 id="top">profile pic
:</h4></div>

<div class="col-sm-7">

<input type="file" name="pict"accept="image/*"required>

</div>

<div class="row">

<div class="col-sm-6"style="text-align:right;"><br>

<input type="submit" value="Submit" name="save"class="btn btn-


success btn-group-justified"required style="color:#000;font-family: 'Baloo
Bhai', cursive;height:40px;"/>

</div>

</div>

</div>

</form>

</div>

</div>

<div class="col-sm-4">

</div>

</div>

</div>

</div>

<?php

include('Footer.php')

?>

</body>

113
</html>

114
115
116
forgetPassword.php

<?php

include('connection.php');

error_reporting(1);

extract($_REQUEST);

if(isset($submit))

$sql=mysqli_query($con,"select * from create_account where


email='$email' ");

if(mysqli_num_rows($sql))

$res=mysqli_fetch_assoc($sql);

$error= "<h3 style='color:blue'>Your Passwrod is :".


$res['password']."</h3>";

else

$error= "<h3 style='color:red'>Invalid details</h3>";

?>

<!DOCTYPE html>

<html lang="en">
117
<head>

<title>Hotel Republic</title>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.
css">

<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></s
cript>

<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"
></script>

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

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-


awesome/4.7.0/css/font-awesome.min.css">

</head>

<body style="margin-top:50px;">

<?php

include('Menu Bar.php')

?>

<div class="container-fluid"id="primary"> <!-- Primary Id-->

<div class="container">

<div class="row">

<div class="col-sm-3"></div>

<div class="col-sm-6">

118
<h1 style="margin-top:50px;padding-top:50px;">Forgot Account?
</h1><hr>

<?php echo @$error; ?>

<p class="text-center">Please Enter your Email-id or Phone Number


to Find Your Account.</p><br><br>

<form method="post">

<div class="form-group">

<input type="Email" name="email" class="form-control"


id="#"placeholder="Email Id or Phone Number"required>

</div><hr>

<input type="submit" value="submit" name="submit" class="btn


btn-primary btn-group-justified"required>

</form><br><br><br><br>

</div>

</div>

</div>

</div>

<?php

include('Footer.php')

?>

</body>

</html>

119
120
Booking Form.php

<?php

include('Menu Bar.php');

include('connection.php');

if($eid=="")

header('location:Login.php');

$sql= mysqli_query($con,"select * from room_booking_details where


email='$eid' ");

$result=mysqli_fetch_assoc($sql);

//print_r($result);

extract($_REQUEST);

error_reporting(1);

if(isset($savedata))

$sql= mysqli_query($con,"select * from room_booking_details where


email='$email' and room_type='$room_type' ");

if(mysqli_num_rows($sql))

$msg= "<h1 style='color:red'>You have already booked this room</h1>";

else

121
$sql="insert into
room_booking_details(name,email,phone,address,city,state,zip,contry,room
_type,Occupancy,check_in_date,check_in_time,check_out_date)

values('$name','$email','$phone','$address','$city','$state','$zip','$country',

'$room_type','$Occupancy','$cdate','$ctime','$codate')";

if(mysqli_query($con,$sql))

$msg= "<h1 style='color:blue'>You have Successfully booked this


room</h1><h2><a href='order.php'>View </a></h2>";

?>

<!DOCTYPE html>

<html lang="en">

<head>

<title>Online Hotel.com</title>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.
css">

<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></s
cript>

122
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"
></script>

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

<link href="https://fonts.googleapis.com/css?family=Lobster"
rel="stylesheet">

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-


awesome/4.7.0/css/font-awesome.min.css">

</head>

<body style="margin-top:50px;">

<?php

include('Menu Bar.php');

?>

<div class="container-fluid text-center"id="primary"><!--Primary Id-->

<h1>[ BOOKING Form ]</h1><br>

<div class="container">

<div class="row">

<?php echo @$msg; ?>

<!--Form Containe Start Here-->

<form class="form-horizontal" method="post">

<div class="col-sm-6">

<div class="form-group">

<div class="row">

<div class="control-label col-sm-4"><h4> Name :</h4></div>

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

123
<input type="text" value="<?php echo $result['name']; ?>"
readonly="readonly" class="form-control" name="name"
placeholder="Enter Your Frist Name"required>

</div>

</div>

</div>

<div class="form-group">

<div class="row">

<div class="control-label col-sm-4"><h4>Email :</h4></div>

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

<input type="email" value="<?php echo $result['email']; ?>"


readonly="readonly" class="form-control" name="email"
placeholder="Enter Your Email-Id"required/>

</div>

</div>

</div>

<div class="form-group">

<div class="row">

<div class="control-label col-sm-4"><h4>Mobile :</h4></div>

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

<input type="number" value="<?php echo $result['mobile']; ?>"


readonly="readonly" class="form-control" name="phone"
placeholder="Type Your Phone Number"required>

</div>

124
</div>

</div>

<div class="form-group">

<div class="row">

<div class="control-label col-sm-4"><h4>Address :</h4></div>

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

<textarea name="address" class="form-control"


readonly="readonly" placeholder="Enter Your Address"><?php echo
$result['address']; ?></textarea>

</div>

</div>

</div>

<div class="form-group">

<div class="row">

<div class="control-label col-sm-4"><h4>Country</h4></div>

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

<input type="text" class="form-control" readonly="readonly"


value="<?php echo $result['country']; ?>" name="city" placeholder="Enter
Your City Name"required>

</div>

</div>

</div>

<div class="form-group">
125
<div class="row">

<div class="control-label col-sm-4"><h4></h4></div>

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

<input type="hidden" name="state" class="form-


control"placeholder="Enter Your State Name"required>

</div>

</div>

</div>

<div class="form-group">

<div class="row">

<div class="control-label col-sm-4"><h4></h4></div>

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

<input type="hidden" name="zip" class="form-control"


placeholder="Enter Your Zip Code"required>

</div>

</div>

</div>

</div>

<div class="col-sm-6">

<div class="form-group">

<div class="row">

<div class="control-label col-sm-5"><h4>Room


Type:</h4></div>

<div class="col-sm-7">

126
<select class="form-control" name="room_type"required>

<option>Deluxe Room</option>

<option>Luxurious Suite</option>

<option>Standard Room</option>

<option>Suite Room</option>

<option>Twin Deluxe Room</option>

</select>

</div>

</div>

</div>

</div>

<div class="col-sm-6">

<div class="form-group">

<div class="row">

<div class="control-label col-sm-5"><h4>check In Date


:</h4></div>

<div class="col-sm-7">

<input type="date" name="cdate" class="form-


control"required>

</div>

</div>

</div>

</div>

127
<div class="col-sm-6">

<div class="form-group">

<div class="row">

<div class="control-label col-sm-5"><h4>Check In


Time:</h4></div>

<div class="col-sm-7">

<input type="time" name="ctime" class="form-


control"required>

</div>

</div>

</div>

</div>

<div class="col-sm-6">

<div class="form-group">

<div class="row">

<div class="control-label col-sm-5"><h4>Check Out Date


:</h4></div>

<div class="col-sm-7">

<input type="date" name="codate" class="form-


control"required>

</div>

</div>

</div>

</div>

<div class="col-sm-6">

<div class="form-group">
128
<div class="row">

<label class="control-label col-sm-5"><h4


id="top">Occupancy :</h4></label>

<div class="col-sm-7">

<div class="radio-inline"><input type="radio" value="single"


name="Occupancy"required >Single</div>

<div class="radio-inline"><input type="radio" value="twin"


name="Occupancy" required>Twin</div>

<div class="radio-inline"><input type="radio" value="dubble"


name="Occupancy" required>Dubble</div>

</div>

</div>

</div>

<input type="submit"value="submit" name="savedata" class="btn


btn-danger"required/>

</div>

</form><br>

</div>

</div>

</div>

</div>

<?php

include('Footer.php')

?>

</body>

</html>

129
130
Order.php

<?php

session_start();

error_reporting(1);

include('connection.php');

echo $eid=$_SESSION['create_account_logged_in'];

?>

<!DOCTYPE html>

<html lang="en">

<head>

<title>Online Hotel.com</title>

<meta charset="utf-8">

131
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.
css">

<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></s
cript>

<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"
></script>

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

<link href="https://fonts.googleapis.com/css?family=Lobster"
rel="stylesheet">

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-


awesome/4.7.0/css/font-awesome.min.css">

</head>

<body style="margin-top:50px;">

<?php

include('Menu Bar.php');

?>

<div class="container-fluid"><!--Primary Id-->

<h1 class="text-center text-primary">[ Booking Details ]</h1><br>

<div class="container">

<div class="row">

<table class="table table-striped table-bordered table-hover table-


responsive"style="height:150px;">

<tr>

132
<th>Name</th>

<th>Email</th>

<th>Mobile Number</th>

<th>Address</th>

<th>Contury</th>

<th>Room Type</th>

<th>Check In Date</th>

<th>Check In Time</th>

<th>Check Out Date</th>

<th>Occupancy</th>

<th>Cancel</th>

</tr>

<?php

$sql= mysqli_query($con,"select * from room_booking_details where


email='$eid'");

while($result=mysqli_fetch_assoc($sql))

$oid=$result['id'];

echo "<tr>";

echo "<td>".$result['name']."</td>";

echo "<td>".$result['email']."</td>";

echo "<td>".$result['phone']."</td>";

echo "<td>".$result['address']."</td>";

133
echo "<td>".$result['contry']."</td>";

echo "<td>".$result['room_type']."</td>";

echo "<td>".$result['check_in_date']."</td>";

echo "<td>".$result['check_in_time']."</td>";

echo "<td>".$result['check_out_date']."</td>";

echo "<td>".$result['Occupancy']."</td>";

echo "<td><a href='cancel_order.php?order_id=$oid'


style='color:Red'>Cancel</a></td>";

echo "</tr>";

?>

</table>

</div>

</div>

</div>

<?php

include('Footer.php')

?>

</body>

</html>

cancilOrder.php

134
<?php

include('../connection.php');

$oid=$_GET['booking_id'];

$q=mysqli_query($con,"delete from room_booking_details where id='$oid'


");

if($q)

header('location:dashboard.php?option=booking_details');

?>

135
Admin/index.php

<?php

session_start();

error_reporting(1);

require('../connection.php');

extract($_REQUEST);

if(isset($login))

if($eid=="" || $pass=="")

$error= "<h3 style='color:red'>fill all details</h3>";

136
else

$sql=mysqli_query($con,"select * from admin where username='$eid'


&& password='$pass' ");

if(mysqli_num_rows($sql))

$_SESSION['admin_logged_in']=$eid;

header('location:dashboard.php');

else

$error= "<h3 style='color:red'>Invalid login details</h3>";

?>

<!DOCTYPE html>

<html lang="en">

<head>

<title>Online Hotel.Com</title>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.
css">

137
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></s
cript>

<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"
></script>

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

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-


awesome/4.7.0/css/font-awesome.min.css">

<link href="https://fonts.googleapis.com/css?family=Akronim|
Libre+Baskerville" rel="stylesheet">

</head>

<body id="primary"style="margin-top:50px;">

<?php

include('Menu Bar.php');

?>

<div class="container-fluid"> <!-- Primary Id-->

<div class="container">

<div class="row"><br>

<div class="col-sm-4"></div>

<div class="col-sm-4 text-center"style="box-shadow:2px 2px


2px;background-color:#990707;">

<h1 align="center"><b><font style="font-family: 'Libre


Baskerville', serif;text-shadow:5px 5px #000;">Admin Login ?
</font></b></h1>

138
<img src="../image/clipart/user.png"alt="Bird" width="200"
height="170"style="padding-top:30px;">

<?php echo @$error;?>

<form action="#" method="post"><br>

<div class="form-group">

<input type="Email" class="form-control"name="eid"


placeholder="Email Id"required>

</div>

<div class="form-group">

<input type="Password" class="form-control"name="pass"


placeholder="Password"required>

</div>

<input type="submit" value="Login" name="login" class="btn btn-


primary btn-group btn-group-justified"required>

</form><br>

</div>

</div><br>

</div>

</div>

<?php

include('Footer.php');

?>

</body>

</html>

139
140
Dashboard.php

<?php

session_start();

extract($_REQUEST);

include('../connection.php');

$admin=$_SESSION['admin_logged_in'];

if($admin=="")

header('location:index.php');

?>

<!DOCTYPE html>

<html lang="en">

<head>

141
<title>Hotel Republic</title>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.
css">

<link href="dashboard.css" rel="stylesheet">

<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></s
cript>

<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"
></script>

<style>

/* Remove the navbar's default margin-bottom and rounded borders */

.navbar {

margin-bottom: 0;

border-radius: 0;

</style>

</head>

<body>

<nav class="navbar navbar-inverse navbar-fixed-top">

<div class="container-fluid">

<div class="navbar-header">

142
<button type="button" class="navbar-toggle collapsed" data-
toggle="collapse" data-target="#navbar" aria-expanded="false" aria-
controls="navbar">

<span class="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="#">Welcome <?php echo $admin; ?


></a>

</div>

<div id="navbar" class="navbar-collapse collapse">

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

<li><a href="dashboard.php?
option=admin_profile">Profile</a></li>

<li><a href="logout.php">Logout</a></li>

</ul>

</div>

</div>

</nav>

<div class="container-fluid">

<div class="row">

<div class="col-sm-3 col-md-2 sidebar">

<ul class="nav nav-sidebar">

143
<li><a href="dashboard.php?option=update_password">Update
Password</a></li>

<li><a href="dashboard.php?
option=feedback">Feedback</a></li>

<li><a href="dashboard.php?option=rooms">Room</a></li>

<li><a href="dashboard.php?
option=booking_details">Booking Details</a></li>

<li><a href="dashboard.php?option=user_registration">User
Registration</a></li>

<li><a href="dashboard.php?
option=slider">Slider</a></li>

<li><a href="#">Payment</a></li>

<li class="dropdown">

<a class="dropdown-toggle" data-toggle="dropdown"


href="#">Setting <span class="caret"></span></a>

<ul class="dropdown-menu">

<li><a href="#">Logo Update</a></li>

<li><a href="#">Address Update</a></li>

</ul>

</li>

</ul>

</div>

<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2


main">

<?php

@$opt=$_GET['option'];

if($opt=="")
144
{

include('reports.php');

else

if($opt=="feedback")

include('feedback.php');

else if($opt=="slider")

include('slider.php');

else if($opt=="update_slider")

include('update_slider.php');

else if($opt=="add_slider")

include('add_slider.php');

else if($opt=="update_password")

include('update_password.php');

145
}

else if($opt=="rooms")

include('rooms.php');

else if($opt=="add_rooms")

include('add_rooms.php');

else if($opt=="delete_room")

include('delete_room.php');

else if($opt=="update_room")

include('update_room.php');

else if($opt=="booking_details")

include('booking_details.php');

else if($opt=="user_registration")

146
{

include('user_registration.php');

else if($opt=="admin_profile")

include('admin_profile.php');

?>

</div>

</div>

</div>

<!-- Bootstrap core JavaScript

===============================================
=== -->

<!-- Placed at the end of the document so the pages load faster -->

<script
src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></
script>

<script>window.jQuery || document.write('<script
src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>

<script src="../../dist/js/bootstrap.min.js"></script>

147
<!-- Just to make our placeholder images work. Don't actually copy the
next line! -->

<script src="../../assets/js/vendor/holder.min.js"></script>

<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->

<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>

</body>

</html>

Dashboard.css

/*

* Base structure

*/

/* Move down content because we have a fixed navbar that is 50px tall */

body {

padding-top: 50px;

/*

* Global add-ons

*/

.sub-header {

padding-bottom: 10px;

148
border-bottom: 1px solid #eee;

/*

* Top navigation

* Hide default border to remove 1px line.

*/

.navbar-fixed-top {

border: 0;

/*

* Sidebar

*/

/* Hide for mobile, show later */

.sidebar {

display: none;

@media (min-width:600px) {

.sidebar {

position: fixed;

top: 51px;

bottom: 0;

149
left: 0;

z-index: 1000;

display: block;

padding: 20px;

overflow-x: hidden;

overflow-y: auto; /* Scrollable contents if viewport is shorter than


content. */

background-color: #f5f5f5;

border-right: 1px solid #eee;

/* Sidebar navigation */

.nav-sidebar {

margin-right: -21px; /* 20px padding + 1px border */

margin-bottom: 20px;

margin-left: -20px;

.nav-sidebar > li > a {

padding-right: 20px;

padding-left: 20px;

.nav-sidebar > .active > a,

.nav-sidebar > .active > a:hover,

150
.nav-sidebar > .active > a:focus {

color: #fff;

background-color: #428bca;

/*

* Main content

*/

.main {

padding: 20px;

@media (min-width: 768px) {

.main {

padding-right: 40px;

padding-left: 40px;

.main .page-header {

margin-top: 0;

151
/*

* Placeholder dashboard ideas

*/

.placeholders {

margin-bottom: 30px;

text-align: center;

.placeholders h4 {

margin-bottom: 0;

.placeholder {

margin-bottom: 20px;

.placeholder img {

display: inline-block;

border-radius: 50%;

/* Remove the navbar's default margin-bottom and rounded borders */

.navbar {

margin-bottom: 0;

border-radius: 0;

152
Menu.php

<?php session_start();

error_reporting(1);

?>

<!--Menu Bar Close Here-->

<nav class="navbar navbar-inverse navbar-fixed-top">

<div class="container">

<div class="navbar-header">

<button type="button" class="navbar-toggle" data-toggle="collapse"


data-target="#myNavbar">

<span class="icon-bar"></span>

<span class="icon-bar"></span>

<span class="icon-bar"></span>

153
</button>

<img
src="../logo/logo2.png"/width="160px"height="40px"style="margin-
top:5px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

</div>

<div class="collapse navbar-collapse" id="myNavbar">

<ul class="nav navbar-nav">

<li><a href="../index.php"title="Home">Home</a></li>

<li><a href="../about.php"title="About">About </a></li>

<li><a href="../image gallery.php"title="Gallery">Gallery


</a></li>

</ul>

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

<li><a href="../Login.php"title="login"><span class="glyphicon


glyphicon-log-in"></span>&nbsp;&nbsp;User Login</a>

</li>

<li><a href="index.php"title="Admin Login"><span class="glyphicon


glyphicon-user"></span>&nbsp;&nbsp;Admin Login</a></li>

<?php

if($_SESSION['create_account_logged_in']!="")

?>

<li class="dropdown"><a class="dropdown-toggle" data-


toggle="dropdown" href="#">View Status <span
class="caret"></span></a>

<ul class="dropdown-menu">
154
<li><a href="profile.php">Profile</a></li>

<li><a href="order.php">Booking Status</a></li>

<li><a href="logout.php">Logout</a></li>

</ul>

</li>

<?PHP } ?>

</ul>

</div>

</div>

</nav>

<!--Menu Bar Close Here-->

155
156
Updatepassword.php

<?php

if(isset($update))

$sql=mysqli_query($con,"select * from admin where username='$admin'


and password='$op' ");

if(mysqli_num_rows($sql))

if($np==$cp)

mysqli_query($con,"update admin set password='$np' where


username='$admin' ");

echo "<h3 style='color:blue'>Password updated


successfully</h3>";

else

echo "<h3 style='color:red'>New and confirm doesn't


match</h3>";

else

echo "<h3 style='color:red'>Old Password doesn't match</h3>";

157
}

?>

<form method="post" enctype="multipart/form-data">

<table class="table table-bordered table-striped table-hover">

<h1>Update Password</h1><hr>

<tr style="height:40">

<th>Enter Your old Password</th>

<td><input type="password" name="op" class="form-


control"required/></td>

</tr>

<tr>

<th>Enter Your New Password</th>

<td><input type="password" name="np" class="form-


control"required/>

</td>

</tr>

<tr>

<th>Enter Your Confirm Password</th>

<td><input type="password" name="cp" class="form-


control"required/>

</td>

</tr>

158
<tr>

<td colspan="2" align="center">

<input type="submit" class="btn btn-primary"


value="Update Password" name="update"required/>

</td>

</tr>

</table>

</form>

159
160
Feedback.php

<script>

function delFeedback(id)

if(confirm("You want to delete this Feedback ?"))

window.location.href='delete_feedback.php?id='+id;

</script>

<table class="table table-striped table-hover">

<h1>Feedback</h1><hr>

<tr>

<th>Sr No</th>

<th>Name</th>

<th>Email</th>

<th>Mobile</th>

<th>Message</th>

<th>Delete</th>

</tr>

<?php

$i=1;

$sql=mysqli_query($con,"select * from feedback");

while($res=mysqli_fetch_assoc($sql))

161
{

$id=$res['id'];

$name=$res['name'];

$email=$res['email'];

$mobile =$res['mobile'];

$message=$res['message'];

?>

<tr>

<td><?php echo $i;$i++; ?></td>

<td><?php echo $res['name']; ?></td>

<td><?php echo $res['email']; ?></td>

<td><?php echo $res['mobile']; ?></td>

<td><?php echo $res['message']; ?></td>

<td><a href="#"onclick="delFeedback('<?php echo $id; ?


>')"><span class="glyphicon glyphicon-
remove"style='color:red'></span></a></td>

</tr>

<?php

?>

</table>

feedbackDelete.php
162
<?php

include('../connection.php');

$id=$_GET['id'];

$sql=mysqli_query($con,"select * from feedback where id='$id'");

$res=mysqli_fetch_assoc($sql);

if(mysqli_query($con,"delete from feedback where id='$id'"))

header('location:dashboard.php?option=feedback');

?>

163
164
Rooms.php

<script>

function delRoom(id)

if(confirm("You want to delete this Room ?"))

window.location.href='delete_room.php?id='+id;

</script>

<table class="table table-bordered table-striped table-hover">

<h1>Room Details</h1><hr>

<tr>

<td colspan="8"><a href="dashboard.php?option=add_rooms"


class="btn btn-primary">Add New Rooms</a></td>

</tr>

<tr style="height:40">

<th>Sr No</th>

<th>Image</th>

<th>Room No</th>

<th>TYpe</th>

<th>Price</th>

<th>Details</th>

<th>Update</th>

165
<th>Delete</th>

</tr>

<?php

$i=1;

$sql=mysqli_query($con,"select * from rooms");

while($res=mysqli_fetch_assoc($sql))

$id=$res['room_id'];

$img=$res['image'];

$path="../image/rooms/$img";

?>

<tr>

<td><?php echo $i;$i++; ?></td>

<td><img src="<?php echo $path;?>" width="50"


height="50"/></td>

<td><?php echo $res['room_no']; ?></td>

<td><?php echo $res['type']; ?></td>

<td><?php echo $res['price']; ?></td>

<td><?php echo $res['details']; ?></td>

<td><a href="dashboard.php?option=update_room&id=<?php
echo $id; ?>"><span class="glyphicon glyphicon-
pencil"></span></a></td>

166
<td><a href="#" onclick="delRoom('<?php echo $id; ?
>')"><span class="glyphicon glyphicon-remove"
style='color:red'></span></a></td>

</tr>

<?php

?>

</table>

167
168
updateRoom.php

<?php

$id=$_GET['id'];

$sql=mysqli_query($con,"select * from rooms where room_id='$id'");

$res=mysqli_fetch_assoc($sql);

extract($_REQUEST);

if(isset($update))

mysqli_query($con,"update rooms set


room_no='$rno',type='$type',price='$price',details='$details' where
room_id='$id' ");

header('location:dashboard.php?option=rooms');

?>

<form method="post" enctype="multipart/form-data">

<table class="table table-bordered">

<tr>

<th>Room No</th>

<td><input type="text" name="rno" value="<?php echo


$res['room_no']; ?>" class="form-control"/>

</td>

169
</tr>

<tr>

<th>Room Type</th>

<td><input type="text" name="type" value="<?php echo


$res['type']; ?>" class="form-control"/>

</td>

</tr>

<tr>

<th>Price</th>

<td><input type="text" name="price" value="<?php echo


$res['price']; ?>" class="form-control"/>

</td>

</tr>

<tr>

<th>Details</th>

<td><textarea name="details" class="form-control"><?php


echo $res['details']; ?></textarea>

</td>

</tr>

<tr>

170
<td colspan="2">

<input type="submit" class="btn btn-primary"


value="Update Room Details" name="update"/>

</td>

</tr>

</table>

</form>

171
deleteRooms.php

<?php

include('../connection.php');

$id=$_GET['id'];

$sql=mysqli_query($con,"select * from rooms where room_id='$id' ");

$res=mysqli_fetch_assoc($sql);

$img=$res['image'];

unlink("../image/rooms/$img");

if(mysqli_query($con,"delete from rooms where room_id='$id' "))

header('location:dashboard.php?option=rooms');

?>

172
173
bookingDetails.php

<title>Hotel Republic</title>

<table class="table table-bordered table-striped table-hover">

<h1>Room Booking Details</h1><hr>

<tr>

<th>Sr No</th>

<th>Name</th>

<th>Email</th>

<th>Mobile Number</th>

<th>Address</th>

<th>Room Type</th>

<th>Check in Date</th>

<th>Check Out Time</th>

<th>Check Out Date</th>

<th>Occupancy</th>

<th>Cancel Order</th>

</tr>

<?php

$i=1;

$sql=mysqli_query($con,"select * from room_booking_details");

while($res=mysqli_fetch_assoc($sql))

174
$oid=$res['id'];

?>

<tr>

<td><?php echo $i;$i++; ?></td>

<td><?php echo $res['name']; ?></td>

<td><?php echo $res['email']; ?></td>

<td><?php echo $res['phone']; ?></td>

<td><?php echo $res['address']; ?></td>

<td><?php echo $res['room_type']; ?></td>

<td><?php echo $res['check_in_date']; ?></td>

<td><?php echo $res['check_in_time']; ?></td>

<td><?php echo $res['check_out_date']; ?></td>

<td><?php echo $res['Occupancy']; ?></td>

<td><a style="color:red" href="cancel_order.php?


booking_id=<?php echo $oid; ?>">Cancel</a></td>

</td>

</tr>

<?php

?>

</table>

orderCancle.php

175
<?php

include('../connection.php');

$oid=$_GET['booking_id'];

$q=mysqli_query($con,"delete from room_booking_details where id='$oid'


");

if($q)

header('location:dashboard.php?option=booking_details');

?>

176
177
userDetails.php

<table class="table table-bordered table-striped table-hover">

<h1>User Registration</h1><hr>

<tr>

<th>Sr No</th>

<th>Name</th>

<th>Email</th>

<th>Password</th>

<th>Mobile</th>

<th>Address</th>

<th>Gender</th>

<th>Country</th>

<th>Pictrure</th>

</tr>

<?php

$i=1;

$sql=mysqli_query($con,"select * from create_account");

while($res=mysqli_fetch_assoc($sql))

?>

<tr>

<td><?php echo $i;$i++; ?></td>

<td><?php echo $res['name']; ?></td>

<td><?php echo $res['email']; ?></td>

178
<td><?php echo $res['password']; ?></td>

<td><?php echo $res['mobile']; ?></td>

<td><?php echo $res['address']; ?></td>

<td><?php echo $res['gender']; ?></td>

<td><?php echo $res['country']; ?></td>

<td><?php echo $res['pictrure']; ?></td>

</td>

</tr>

<?php

?>

179
180
addSlider.php

<script>

function delSlider(id)

if(confirm("You want to delete this Slider ?"))

window.location.href='delete_slider.php?id='+id;

</script>

<table class="table table-bordered table-striped table-hover">

<tr>

<td colspan="5"><a href="dashboard.php?option=add_slider"


class="btn btn-primary">Add New</a></td>

</tr>

<tr style="height:40">

<th>Sr No</th>

<th>Image</th>

<th>Caption</th>

<th>Update</th>

<th>Delete</th>

</tr>

<?php

$i=1;

181
$sql=mysqli_query($con,"select * from slider");

while($res=mysqli_fetch_assoc($sql))

$id=$res['id'];

$img=$res['image'];

$path="../image/Slider/$img";

?>

<tr>

<td><?php echo $i;$i++; ?></td>

<td><img src="<?php echo $path;?>" width="50"


height="50"/></td>

<td><?php echo $res['caption']; ?></td>

<td><a href="dashboard.php?option=update_slider&id=<?php
echo $id; ?>"><span class="glyphicon glyphicon-
pencil"></span></a></td>

<td><a href="#" onclick="delSlider('<?php echo $id; ?


>')"><span class="glyphicon glyphicon-remove"
style='color:red'></span></a></td>

</tr>

<?php

?>

</table>

182
183
updateSlider.php

<?php

$id=$_GET['id'];

$sql=mysqli_query($con,"select * from slider where id='$id' ");

$res=mysqli_fetch_assoc($sql);

$img=$res['image'];

$path="../image/Slider/$img";

if(isset($update))

$imgNew=$_FILES['img']['name'];

if($imgNew=="")

$sql="update slider set caption='$cap' where id='$id' ";

else

$sql="update slider set caption='$cap',image='$imgNew' where


id='$id' ";

//delete old image

unlink($path);

move_uploaded_file($_FILES['img']['tmp_name'],"../image/Slider/".
$_FILES['img']['name']);

}
184
if(mysqli_query($con,$sql))

header('location:dashboard.php?option=slider');

?>

<form method="post" enctype="multipart/form-data">

<table class="table table-bordered">

<tr style="height:40">

<th>Caption</th>

<td><input type="text" name="cap" value="<?php echo


$res['caption']; ?>" class="form-control"/></td>

</tr>

<tr>

<th>Image</th>

<td><input type="file" name="img" accept="image/*"


class="form-control"/>

<img src="<?php echo $path; ?>" height="100px"


width="100px"/>

</td>

</tr>

<tr>

<td colspan="2">

<input type="submit" class="btn btn-primary"


value="Update" name="update"/>
185
</td>

</tr>

</table>

</form>

deleteSlider.php

<?php

186
include('../connection.php');

$id=$_GET['id'];

$sql=mysqli_query($con,"select * from slider where id='$id' ");

$res=mysqli_fetch_assoc($sql);

$img=$res['image'];

unlink("../image/Slider/$img");

if(mysqli_query($con,"delete from slider where id='$id' "))

header('location:dashboard.php?option=slider');

?>

Style.css

*{

187
margin:0px;

padding: 0px;

/* Remove the navbar's default margin-bottom and rounded borders */

.navbar {

margin-bottom: 0;

border-radius: 0;

/* Add a gray background color and some padding to the footer */

footer{

padding: 25px;

/* color fill*/

.f{

color:white;

h3{

color:white;

/* color fill end*/

.carousel-inner img {

width: 100%; /* Set width to 100% */

188
margin: auto;

min-height:50px;

/* Hide the carousel text when the screen is less than 600 pixels wide */

@media (max-width: 600px) {

.carousel-caption {

display: none;

/* Add a Room Info and Color Fill*/

#red{

background-color:#337ab7;

/*color Fill*/

#red hr{/* Add a Room Info and Color Fill*/

width:300px;

margin:auto;

margin-top:10px;

margin-bottom:10px;

height:5px;

background-color:#f0f0f0;

border-radius:20px;

189
/*color End Fill*/

.text-justify{

color:black;

h5{

color:white;

background-color:#6d6e6a;

height:100px;

width:100%;

/* Room Info Add a Image and Hover Fill*/

#img1{

width:100%;

height:190px;

#img1:hover{

box-shadow:7px 7px 5px #ffffff;

.hov a:hover{

color:#000408;

/* Room Info Add a Image and Hover End Fill*/

/*Login Start*/

190
#primary{

background-color:#1abc9c;

color:black;

.forget a{

text-decoration:none;

color:#000408;

.forget a:hover{

color:white;

.forget{

/*margin-top:5px;*/

padding-top:10px;

/*Login Close*/

h1{

font-family:font-family: 'Lobster', cursive;

color:#ffffff;

#top{

margin:0px;

191
.thumbnail a img:hover{

box-shadow:5px 5px 5px #000408;

/* Set height of the grid so .sidenav can be 100% (adjust as needed) */

#font{

font-family: 'Abril Fatface', cursive;

color:red;

margin-top:50px;

/*padding-top:50px;

height:auto;*/

.bg-1 {

background-color: #1abc9c; /* Green */

color: #ffffff;

#bt{

float:right;

margin-left:15px;

border-radius:10px;

border:none;

@media screen and (max-width:600px)

.frame{

192
width:100%;

@media screen and (max-width:600px)

.amit{

text-align:center;

.Ac_Room_Text{

font-family: 'Abril Fatface', cursive;

color:black;

text-shadow:3px 3px 3px blue;

text-align:center;

.Room_Text{

font-family: 'Abril Fatface', cursive;

color:#ffbb31;

text-shadow:3px 3px 3px #000000;

text-align:center;

size:15px;

193
Room.php

<!DOCTYPE html>

194
<html>

<head>

<title>Republic Hotel</title>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.
css">

<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></s
cript>

<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"
></script>

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

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-


awesome/4.7.0/css/font-awesome.min.css">

<link href="https://fonts.googleapis.com/css?family=Abril+Fatface"
rel="stylesheet">

</head>

<body style="margin-top:50px;">

<?php

include('Menu Bar.php')

?><br><br><br>

<div class="container-fluid"style="margin-top:2%;">

<div class="continer">

195
<div class="row">

<div class="col-sm-2"></div>

<div class="col-sm-7">

<div id="myCarousel" class="carousel slide"


data-ride="carousel">

<!-- Indicators -->

<ol class="carousel-indicators">

<li data-target="#myCarousel" data-slide-to="0" class="active"></li>

<li data-target="#myCarousel" data-slide-to="1"></li>

<li data-target="#myCarousel" data-slide-to="2"></li>

<li data-target="#myCarousel" data-slide-to="3"></li>

<li data-target="#myCarousel" data-slide-to="4"></li>

</ol>

<!-- Wrapper for slides -->

<div class="carousel-inner">

<div class="item active">

<img src="image/Luxury Room/1.jpg"class="thumbnail" alt="img1">

</div>

<div class="item">

<img src="image/Luxury Room/2.jpg"class="thumbnail" alt="im2">

</div>

196
<div class="item">

<img src="image/Luxury Room/3.jpg"class="thumbnail" alt="im3">

</div>

<div class="item">

<img src="image/Luxury Room/4.jpg"class="thumbnail" alt="img4">

</div>

<div class="item">

<img src="image/Luxury Room/4.jpg"class="thumbnail" alt="img5">

</div>

</div>

<!-- Left and right controls -->

<a class="left carousel-control" href="#myCarousel" data-slide="prev">

<span class="glyphicon glyphicon-chevron-left"></span>

<span class="sr-only">Previous</span>

</a>

<a class="right carousel-control" href="#myCarousel" data-slide="next">

<span class="glyphicon glyphicon-chevron-right"></span>

<span class="sr-only">Next</span>

</a>

</div>

<h2 class="Ac_Room_Text">Luxurious Room</h2>

197
<p class="text-justify">Engulf yourself in the plush luxury of our
premier rooms. An upgraded version of the Suite room, these rooms offer an
elegant design with larger room space..</p>

<div class="row">

<h2>Amenities</h2>

<img src="image/icon/wifi.png">

</div>

</div>

<div class="col-sm-3">

<div class="panel panel-primary">

<div class="panel-heading">

<h4 align="center">Room Type</h4>

</div><br>

<div class="panel-body-right text-center">

<a href="Delux Room.php">Delux


Room</a><hr>

<a href="Standard Room.php">Standard


Room</a><hr>

<a href="Luxurious
Suite.php">Luxurious Suite</a><hr>

<a href="Twin Delux Room.php">Twin Delux Room</a><hr>

<a href="Suit Room.php">Suit Room</a><hr>

</div>

</div>

</div>

198
</div>

</div>

</div>

<?php

include('footer.php')

?>

</body>

</html>

Testing and Security Mechanisms


Testing: Testing is the activity where the errors remaining from all the
previous phases must be detected. Hence, testing performs a very critical role for
199
ensuring quality. The focus of this topic is primarily on system testing in which the
entire software is tested, though testing is also performed on individual programs
written by programmers and the concept discussed are also applicable for
individual program testing.

Testing is a dynamic method for verification and validation, where the system to
be tested is executed and the behaviour of the system is observed.

During testing, the program to be tested is executed with the set of test cases and
the output of the program for the test cases is evaluated to determine if the
performing as expected.

The following are the two fundamental goals of a practical testing activity:

Maximize the number of errors detected and

Minimize the number of test cases.

Testing is the major quality control measure used during software development. It
is the basic function to detect errors in the software. The goal of testing is to
uncover requirement, design and coding error in the program.

Software Testing

Software testing is the process of evaluation a software item to detect differences


between given input and expected output. Also to assess the feature of A
software item. Testing assesses the quality of the product. Software testing is a
process that should be done during the development process. In other words
software testing is a verification and validation process.

Verification

Verification is the process to make sure the product satisfies the conditions
imposed at the start of the development phase. In other words, to make sure the
product behaves the way we want it to.

200
Validation

Validation is the process to make sure the product satisfies the specified
requirements at the end of the development phase. In other words, to make sure
the product is built as per customer requirements.

Testing methodologies:

 White Box Testing: White Box Testing is software testing method in


which internal diagram , design, and coding of software are tested to
verify flow of input-output and to improve design, usability and
security. Developers test the application in this testing. In White Box
Testing an internal of the system, as well as programming skills are
used to design test cases. This testing usually done at the unit level.

 Black Box Testing: Black Box Testing is software testing method in


which testing method in which testers evaluate the functionality of the
software under test without looking at the internal code structure. This
can be applied to every level of software testing such as Unit,
Integration, System, and Acceptance Testing. It is also called as
Behavioral/Specification-Based/Input-Output Testing. Tester performs
testing only on the functional part of an application to make sure the
behavior of the software is as expected. So it is AKA Behavioral Based
Testing.

 Unit Testing: Unit Testing is the testing of an individual unit or group of


related units. It falls under the class of white box testing. It is often done by
the programmer to test that the unit he/she has implemented is producing
expected output against given input.

201
 System Testing: System testing is the testing to ensure that by putting the
software in different environments (e.g., Operating Systems) it still works.
System testing is done with full system implementation and environment. It
falls under the class of black box testing. 

 Stress Testing: Stress testing is the testing to evaluate how system behaves
under unfavorable conditions. Testing is conducted at beyond limits of the
specifications. It falls under the class of black box testing. 

 Performance Testing: Performance testing is the testing to assess the speed


and effectiveness of the system and to make sure it is generating results
within a specified time as in performance requirements. It falls under the
class of black box testing. 

 Usability Testing: Usability testing is performed to the perspective of the


client, to evaluate how the GUI is user-friendly? How easily can the client
learn? After learning how to use, how proficiently can the client perform?
How pleasing is it to use its design? This falls under the class of black box
testing.

202
 Regression Testing: Regression testing is the testing after modification of a
system, component or a group of related issues units to ensure the
modification is working correctly and is not damaging or imposing other
modules to produce unexpected results. It falls under the class of black box
testing.

 Alpha Testing: Alpha testing is testing of an application when


development is about to complete. Minor changes can still be made as
a result of alpha testing. It is carried out in test environment at the
developers site. It is after the all other types of developer side testing
means unit testing and integration testing etc. It can be any black box
or white box depends on the requirements. Special lab environment
and simulation of actual environment is required for this testing.

 Beta Testing: Beta testing is performed by real users of the software


application in real environment. It allows the real customer an
opportunity to provide inputs into the design, funtionality, and
usability of product. These inputs are important for the success of the
product. Beta testing reduces product failures risks.

Integrated Testing

Integration testing (sometimes called Integration and Testing, abbreviated I&T) is


the phase of software testing in which individual software modules are combined
and tested as a group. It follows unit testing and precedes system testing.
203
Integration testing takes as its input modules that have been unit tested, groups
them in larger aggregates, applies tests defined in an integration test plan to
those aggregates, and delivers as its output the integrated system ready for
system testing.

The purpose of integration testing is to verify functional, performance and


reliability requirements placed on major design items. These "design items", i.e.
assemblages (or groups of units), are exercised through their interfaces using
black box testing, success and error cases being simulated via appropriate
parameter and data inputs. Simulated usage of shared data areas and inter-
process communication is tested and individual subsystems are exercised through
their input interface. Test cases are constructed to test that all components
within assemblages interact correctly, for example across procedure calls or
process activations, and this is done after testing individual modules, i.e. unit
testing.

Acceptance testing: Acceptance Testing is a method of software testing where a


system is tested for acceptability. The major aim of this test is to evaluate the
compliance of the system with the business requirements and assess whether it is
acceptable for delivery or not. It is a formal testing according to user needs,
requirements and business processes conducted to determine whether a system
satisfies the acceptance criteria or not and to enable the users, customers or
other authorized entities to determine whether to accept the system or not.
Acceptance Testing is the last phase of software testing performed after System
Testing and before making the system available for actual use.

Security Mechanism:
204
Security mechanisms  are technical tools and techniques that are used to implement
security services. A mechanism might operate by itself, or with others, to
provide a particular service. Examples of common security mechanisms are as
follows:

 Cryptography
 Message digests and digital signatures

 Digital certificates

 Public Key Infrastructure (PKI)

When you are planning a IBM WebSphere MQ implementation, consider which


security mechanisms you require to implement those aspects of security that are
important to you. For information about what to consider after you have read
these topics, see Planning for your security requirements.
 Identification and authentication
Identification is the ability to identify uniquely a user of a system or an
application that is running in the system. Authentication is the ability to prove
that a user or application is genuinely who that person or what that
application claims to be.
 Authorization
Authorization protects critical resources in a system by limiting access only
to authorized users and their applications. It prevents the unauthorized use
of a resource or the use of a resource in an unauthorized manner.

 Auditing
Auditing is the process of recording and checking events to detect whether
205
any unexpected or unauthorized activity has taken place, or whether any
attempt has been made to perform such activity.

 Confidentiality
The confidentiality service protects sensitive information from unauthorized
disclosure.

 Data integrity
The data integrity service detects whether there has been unauthorized
modification of data.

 Cryptographic concepts
This collection of topics describes the concepts of cryptography applicable
to WebSphere MQ.

 Cryptographic security protocols: SSL and TLS


Cryptographic protocols provide secure connections, enabling two parties
to communicate with privacy and data integrity. The Transport Layer
Security (TLS) protocol evolved from that of the Secure Sockets Layer
(SSL). IBM WebSphere MQ supports both SSL and TLS.

Future Scope
In future as per requirement, the system have to be developed for changing the
status of the Hotel. It will give various kind of reports.

This software is going to implement for the computerize handling of all


the information regarding Hotel and customers. The proposed system will facilitates
customer, by providing the quick service and eliminate customer to the phone also.
This system can be integrated in other Hotel. This software will be able to handle

206
any type of queries regarding Customer and the Management . All the queries will
be handling through proper validation.

HMS provides manifold benefits to Hotel whether large or medium


sized.

 Minimized documentation and no duplication of records.


 Reduced paper work.
Improved Customer care:

 Procedures for timely and effective customer care.


 Faster information flow between various departments.
 Easy access to reference records.
Better Administration Control:

 Availability of timely and accreted information.


 Access to updated management information.
Smart Revenue Management:

 Optimized bed occupancy checks.


 Effective billing of various services.

Bibliography
Analysis & Design : MCS-013 [IGNOU Block]

Front End Design : MCSL-016 [IGNOU Block]

Programming Coding : Stack Over Flow

Google

Database : George Koch

207
208

You might also like