Project Report

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

D SAPPHIRE

1. Introduction and Objectives


1.1 Introduction
As per the convenience of the users, today every part of service is going online. Online
services provide an ease to their customers as they can easily access to everything by
sitting at home. Normally, if a person needs to book a hall for any event he has to go on
that place to do so.
D Sapphire provides his customers an option to book their hall by sitting at home. D
Sapphire is a banquet hall cum club. It also provides an option to become a member and
enjoy all the services. It also offers Tourism. One can go to various places and take a nap
by just one click.

D Sapphire is a web based system intended to be used by the customers as per their
convenience to book different facilities for themselves and others.

1.2 Objectives
Create a Banquet Hall Business Plan including:
income and expense projections,
budget,
a profile of potential customers,
an analysis of competition,
marketing, advertising and public relations strategies, and
doing business within the legal framework
For monitoring and updation of the business plan:
Monitor the income and expenses so that in case of decrementing revenues, one

will know if he/she needs to make expenditure cuts.


Keep track of the timing of the income and expenses, often referred to as cash flow.
Renegotiate payment times with creditors to make sure sales revenue arrives before

Page | 1

D SAPPHIRE

paying a large insurance premium, rent payment, loan repayment or pay ant staff or

taxes.
Target marketing rather than using a shotgun approach.
Put together a detailed demographic profile of the customers and purchase

advertising in appropriate media.


Create a consistent message so potential customers know exactly what is being sold

and why the product or service is unique.


Create a brand, by product placement through advertising. Use a consistent

message in advertisements, packages and the website.


Be aware of the relevant employee and labor laws.
Keep in mind- Customer satisfaction is the priority.

2. System Analysis

Page | 2

D SAPPHIRE

2.1 Identification of Need

As per the existing manual procedure of D Sapphire, it is very difficult to manage the
whole record in the registers. Registers could be destroyed or lost making record-keeping
difficult and inefficient.
Storing the records of members, registering the clients, keeping records of the chosen
facilities by a client for an event, keeping records for accommodation details,
transportation details, parking details, gym members etc. is a little tedious and it is very
difficult to search record books when required. Also, when at the end of year one wants to
review the profit/loss gained it becomes very difficult to calculate from the scattered
records (as the sales are not recorded at one place).
The problem with existing manual system is

Sometimes a data may be entered two or more times which will result into form
inconsistency.

Loss of data may cause problem and delay in service to customers

Often some documents get lost

Elaborate registers with redundant data have to be maintained at all levels

Compilation of balance sheet causes a big problem

Communication over Telephone/Fax and illegibility of transmitted reports pose


severe problems

Before D Sapphire went online a huge loss was configured due to an accident, in which all
the records were burnt. So then it was decided to move everything online so that there
could always be a backup.
Proposed system and Its Advantages:

Maintain the records of all the customers and long term clients.

Page | 3

D SAPPHIRE

Maintain the records of all the caterers, cleaning, decoration and maintenance staff.
Maintaining and printing bills, keeping record of advance and balance payments.
Maintaining the availability of dates of halls.
Easy addition (insertion), retrieval and updating of client details and requirements.
Client/Customer feedbacks and suggestions can be entered and taken in to
consideration for further development.
Manager and staff logins are different and have specific rights to access, retrieve or
update data.
Generate reports on progress of the banquet hall on monthly basis.
Data and Report can be generated as a when required by the user.

2.2 Preliminary Investigation


The preliminary investigation included the following steps:
a) Visit to different sites of banquet halls
Visited many websites of different banquet halls to know the proper functionings one can
include in the site to give proper customer satisfaction.
b) Posts to Social Media
Posted queries to social media to know the response and the expectation of a common man
while seeing a website like this.

c) Questionaire

Page | 4

D SAPPHIRE

A questionnaire was performed specifying the basic needs and the most choosed services
were included in the website
d) Visit Site
Went to a Banquet Hall here Raj Mahal to know what services they provide and how they
deal with their customers.
e) Visit Club and Tourism Providers
As D Sapphire also provides Tourism and Club Facilities so the Club was also visited to
check what services are provided to the members.
f) Interviews
Members and existing customers were interviewed to know what services are they getting
from the club and tourism .

2.3 Feasibility Study


An analysis has been done before D Sapphire was taken into consideration for
development. A detailed discussion on the process and uses was done with the owner and
thus we agreed on proceeding with this project.

Technical Feasibility: does the technology exist to implement the proposed system?

Is it a practical proposition?
Economic Feasibility: Is the system cost effective? Do benefits outweigh costs?
Legal Feasibility: is there any conflict between the proposed system and legal

requirements?
Operational Feasibility: are the current work practices and procedures adequate to

support the new system?


Schedule Feasibility: Can the system be developed on time?

Page | 5

D SAPPHIRE

Technical Feasibility
The primary technical challenge in implementing D Sapphire is that the locations where
the system is required to be used are located geographically far apart.

Figure 2.1 Geographical coverage of D Sapphire


D Sapphire situated in Mumbai, are on an average distance of 600 kms, aerially from
Mumbai. Thus D Sapphire can be implemented using Wide Area Network(WAN) or using
the internet.
To implement D Sapphire, commonly available technologies and platforms may be used
and no new technology or platform is required. The networking is likely to be fairly simple
and a single vendor may implement the whole system.
Hence, D Sapphire project is technically feasible.

Page | 6

D SAPPHIRE

Economic feasibility
This Software helps the user economically in the following way:
Cost-based study: The development cost is very less than all the other available softwares
in market; since it the first version of the software. It will also prove to be very profitable
keeping in mind the other high valued softwares. Operation of the software will be the
only cost of electricity used by the computer used and may rise in case if a person is hired
to operate the software.
Time-based study: The time required to achieve returns on investment on this software is
minimal as the software itself is of minimum cost with one years support and free upgradation of the software is included.

Operational feasibility
Total working capacity of the organization will be improved. Also the maintaining of
records without loss and detoriation will be taken care of which will also save space
occupied by registers and ease of searching and updating the details.

Schedule feasibility
The project is estimated to be completed within a year. The basic software is installed in to
the users system on testing basis. The dates of the deadlines are desirable and in case of
delay of more than three months, the entire amount will be paid back within next one
months time.

Page | 7

D SAPPHIRE

Table 2.1 : Feasibility Study


Nature of Feasibility
Technical Feasibility

Whether Feasible
Feasible

Reason
Although the users of the system
are spread over a wide area , due
to use of broad internet at the
locations,
available

Economical Feasibility

Feasible

and

commonly

technologies

the

project is technically feasible.


Use of the cheap broadband
internet , open source technology,
low cost server and existing pcs
as clients, the benefit derived
from the system far outweighs the
cost, making it economically

Operational Feasibility

Feasible

feasible.
Procedures are based on the
manual system described in the
protocol .Users are not required
to be trained on procedural
aspects making it operationally

Schedule Feasibility

Feasible

feasible.
The system is required to be
implemented in two months time
Hence this is feasible to complete
the project in the scheduled time.

Given the feasibility of all aspects of the model, D Sapphire is found to be a feasible
project.

2.4 Project Planning


Page | 8

D SAPPHIRE

Cost and Effort Estimations using function point analysis

The cost and effort estimation of D Sapphire has been made using the Function Point
Analysis method.Function Points have been calculated in D Sapphire as an indirect
quantitative measure of application software functionality and size that are based on
objective counts of external application interfaces factored together with subjective counts
of internal application complexity and overall performance characteristics.
The Process - Calculating the Cost

Labor

Schedule and Staff Profile Summarizes labor Types and How Much of Each (Total
Hours, Days Weeks etc.)

Labor Hour Costs Normally are Salary + Fringe Multiplier

Materials

Delivered or Consumed as Part of Project


o Computers, Software Licenses, Peripherals, etc. Delivered to Customer
o Usually a "Firm Number" Supported by Vendor Quotes
o Paper, Special Materials to be Used During Job for Books, Pictures, Etc.
o Typically a "Best Estimate" and Minor Relative to Materials and Labor

Consultants and Subcontractors Costs

Consultants Costs Predicted Based on Hourly Quote and Usage Estimate

Subcontractors Based on Firm Quote for Services

Other (Travel, Etc.)

Estimates Based on Job Requirements

Add it Up:

Cost =Labor (w/Fringe) + Materials +Consultants/Subs +Other + Indirect

Page | 9

D SAPPHIRE

Labor = 2000
Materials=3000
Consultants=500
Other=200
Indirect=100

Cost =Labor (w/Fringe) + Materials +Consultants/Subs +Other + Indirect


Cost= 2000+3000+500+200+100
Cost=5900

2.5 Project Scheduling


Project Scheduling in D Sapphire has been done in order to estimate the expected
time to complete the various phases of the project like Feasibility Analysis and
Requirements Gathering , System Analysis, System Design, Coding, Testing,
Implementation, Maintenance etc. Visualization Tools like PERT Chart and
GANTT Chart have been used to control and administer the various tasks required
to complete a project.
The phases and sub phases of the tasks those were carried out while implementing
the project is tabulated below:

Table 2.2 Phases and Sub-phases of D Sapphire

Identification of Need
PRELIMINARY
INVESTIGATION Preliminary Investigation
Feasibility Study
AND FEASIBILITY STUDY
Project Planning and Scheduling
SYSTEM ANALYSIS
Requirement Analysis
DFD/ERD and other Diagrams
Modularization Details
Page | 10

D SAPPHIRE

SYSTEM DESIGN
CODING
TESTING
IMPLEMENTATION

Data Integrity and Constraints


Database and Procedural Design
User Interface Design
Project Coding
Validation and Security Checks
Debugging
Unit Testing
Integrated Testing
System Testing
AND -

MAINTENANCE

2.5.1 GANTT Chart

A Gantt chart is a type of bar chart, developed by Henry Gantt in the 1910s, that illustrates
a project schedule. Gantt charts illustrate the start and finish dates of the terminal elements
and summary elements of a project. Terminal elements and summary elements comprise
the work breakdown structure of the project. Modern Gantt charts also show
the dependency (i.e. precedence network) relationships between activities. Gantt charts can
be used to show current schedule status using percent-complete shadings and a vertical
"TODAY" line

Page | 11

D SAPPHIRE
Tasks
Requirements gathering and feasibility
System Analysis
System Design
Coding
Testing
Implementation and Maintenance

Time Taken
1 month
1.5 month
1.5 month
2 months
1.5 month
1.5 Month

2.5.2 PERT Chart

The Program (or Project) Evaluation

and

Review

Technique,

commonly

abbreviated PERT, is a statistical tool, used in project management, that is designed to


analyze and represent the tasks involved in completing a given project.

Page | 12

D SAPPHIRE

OT: Optimistic Time


MT: Most Likely Time
PT: Pessimistic Time
Expected Time(ET)= (OT + 4 X MT + PT)/6

2.6 Software Requirement Specifications(SRS):

Software Requirement Specifications (SRS)

14
Page | 13

D SAPPHIRE

INTRODUCTION

16

Purpose

16

Scope

16

Definition, acronyms and abbreviations

17

Product and its function

18

Benefits and Goals

18

Overview

19

OVERALL DESCRIPTION

19

Product Description

19

Product Functioning

20

Users of the Product

21

Assumptions made and Dependencies

22

SPECIFIC REQUIREMENTS

22

External Interface Requirements

22

Interface Requirements and I/O Formats

23

Hardware Requirements

36

Software Requirements

37

Logical Database Requirements Data Dictionary

38

Functional Requirements

51

Non Functional Requirements

55

Performance Requirements

56

Design Constraints

56

User Interface Constraints

56

Operational Constraints

57

Hardware Constraints

57

Software Constraints

57

Software System Attributes

58

APPENDICES

61

Appendix-A : Data Model - E-R Diagram

61

Appendix-B : Functional Model DFD

63

Page | 14

D SAPPHIRE

Introduction
The following subsections of the Software Requirements Specifications (SRS) document
provide an overview of the entire SRS.

Page | 15

D SAPPHIRE

Purpose
The Software Requirements Specification (SRS) is designed to express the behavioural,
performance, and development requirements of D Sapphire and serves as the fundamental
requirements document for the development of the system.
This SRS will allow for a complete understanding of what is to be expected of D Sapphire
to be constructed. The clear understanding of D Sapphire and its functionality will allow
for the correct software to be developed for the end user and will be used for the
development of the future stages of the project. This SRS will provide the foundation for
the project.
This SRS will be used by the software engineers constructing D Sapphire and the end
users. The software engineers will use the SRS to fully understand the expectations of this
to construct the appropriate software. The end users will be able to use this SRS as a test
to see if the software engineers will be constructing the system to their expectations. If it is
not to their expectations the end users can specify how it is not to their liking and the
software engineers will change the SRS to fit the end users needs.

Scope
The scope of SRS identifies the magnitude of what D Sapphire will cover.
The Software Requirement Specification is intended for review by the client to ensure that
all desired functional, performance and development requirements have been stated in a
way such that they are:
Readable: minimizes misinterpretation by developers and testers using clear,
concise , unambiguous and complete language.
Testable: will be used for strategies in Master Test Plan, Functional Test Plan, and
other formal testing documents.
Modifiable: changes easily as requirements change, accommodates requirements,
and change management policy.

Page | 16

D SAPPHIRE

Useable for Operations : will be used as a

living document after project is

completed for operations and maintenance. Maintenance projects use the SRS to
obtain a greater understanding of the system when changes need to be made.
Traceable: works with the Requirements Traceability Matrix to ensure components,
responsibilities and test cases link to minimize impact for requirements change and
localize defects.
Buildable: will be used by developers to write code from specifications.
Documentable: will be used to write user manual and technical manual to help train
new staff.

Definition, Acronyms and Abbreviations


This section contains a list of definition for words,acronyms and abbreviations using SRS
IEEE

The Institute of Electronic and Electrical Engineers

IGNOU

Indira Gandhi National Open University

Apache

A popular Webserver used to host websites in the World WideWeb

PHP

PHP Hypertext Processor, an open source HTML embedded

scripting language
MySql

A free and Open source RDBMS

XAMPP

A package combining Apache, MySql and PHP, meant for installing

SRS

Software Requirement Specifications

DFD

Data Flow Diagram

PERT

Program Evaluation and Review Technique

URL

Uniform Resource Locator

Page | 17

D SAPPHIRE

Product and its function


D Sapphire is a web based system intended to be used by the users to book the banquet
online.
D Sapphire is intended to become a member of D Sapphire and enjoy its services(Games,
Gym). D Sapphire also provides an option for tourism. The members of D Sapphire can
book their rooms and can enjoy swimming, gym , games.
You can also play on state and national level which will enhance your future.
It generates report for clients of payment receipts, booking receipts. Administrator handles
functioning of D Sapphire and gets an option to check the profit/loss for selected year. One
can see the total sales report, restaurant sales report.

Benefits and Goals


The main goal is to provide customer satisfaction. The goal is to provide client an ease of
sitting at home and watching the full details of halls , rooms, cars , event planners , themes,
and choose according to your need.
The main benefit in this is one does not need to travel a long distance just for visiting the
halls and booking them later. He/She can sit at home and see it from their PCs and also
decide the venues and even catering menu by sitting at home. They can also pay it online.
Tourism facilities are available publically. It can also be booked online. The rooms facility
is also available but for the members and for those who are booking the halls. One can also
take advantage of gym and games if they are the member of D Sapphire.

Overview

Page | 18

D SAPPHIRE

This SRS document is intended for the developers of D Sapphire and includes an overall
description and specific requirements for

D Sapphire. This document elaborates the

product description, its functioning , intended users and assumptions made.


The requirement part includes both the functional and non functional requirements and also
specifies interface requirements, user requirements, hardware and software requirements
and logical database requirements.
The SRS document also specifies the Input/Output formats, security specifications, results
of fact finding , the data and functional models and process specifications. These include
Data Flow Diagrams , Entity Relationship Diagrams and Data Dictionary for D Sapphire.

Overall Description
Product Description
D Sapphire is a web based system intended to handle the functions of D Sapphire which
includes managing restaurant, gym, games, parlour, boutique, parkings, cars providing
tourism, booking of halls providing an ease to book by sitting at home.
The members of D Sapphire are also given discounts and special services. For booking
firstly, one has to select the event planner, theme , date of booking ,hall, rooms, party type,
car, have to tell if one will book parlour, boutique, dance events, host , cartoons for the
party and when the book button is clicked it is checked if the choosed options are available
or not. If they are not available then the booking form is exited but if they are available
then a payment slip containing the booking id for future reference and other details are
viewed which can be printed or saved and an option of doing payment online is also
shown. Also one can do the payments on desk.But atleast a minimum amount is to be paid
while booking.One can also book the catering menu online. For booking tourism which is
for all public one click on a button and you are leaded to the paypal online system.

Page | 19

D SAPPHIRE

In the same way parlour , boutique , rooms can be booked but only for the members and
the guests . After clicking on the book button first you are asked to enter your member id if
you are a valid user then you are leaded to the form of booking.

Product Functioning

The administrator of D Sapphire will be able to create users and assign the
username and password to the members.
The users can log in to the system and they will be taken to their designated home
page which displays those services which are only available for the
members.Those services are Gym and Games.
The shops which are tied up with D Sapphire can be visited through the webpage
of D Sapphire which helps them in increase of their business and ours business
too.
Once a person visits our event planner page he can view the available event
planners with their individual fees.
On visiting our Wedding page a person can see all the themes with their
screenshots.
On visiting our Accomodation page customer can see different rooms snapshots
and can also book the room but only if he is a member. It is checked if the number
of rooms are available or not.
On visiting our parlour page one can see all the services provided by the parlour
with their rates and then can book one for them only if they are member.
On visiting our boutique page one can take an appointment for visiting there.
Restaurant Page shows the menu of the restaurant with the option to book a table
in advance for a candle light dinner of two or for general purpose
Catering page views all the options available with specific boundations.
Tourism page shows the various tours available for going .It is allowed for all .A
person can book any tour by paying online.
Club page shows the various facilities given by D Sapphire.
Login gives two options one for members and other for administrator.One can also
change the password.
Page | 20

D SAPPHIRE

Administrator login views a special page for handling different functions of D


Sapphire which works from behind.
Contact page shows the full contact details with a map showing the way to reach
there
A page named specially for you views the different options like flowers,
decorations, wineries, etc. which views different shops links to help our customer
to make their day more beautiful

Users of the Product


The categories of the users of D Sapphire and their roles in the system are as
follows:
Administrator:
Administrator is the overall incharge of the system.His job is to maintain
the system , the databases , new user registration , assigning passwords ,
monitoring reports and taking backups .He is also required to manage the
data in some critical tables like bookbanquet.
Companies:
The companies that are tied up with the system to have a popularity through
D Sapphire.
PayPal:
The Paypal is tied up to get the payments online while booking D Sapphire
and while booking the tours.
General User
The users which comes and visits our website , though they get the
minimum advantage but they can atleast see all the facilities and functions
of D Sapphire.
Member:

Page | 21

D SAPPHIRE

The member of D Sapphire gets the maximum advantage by getting special


discounts on halls and by getting access to Gym and Games . They can also
book rooms , tables, parlour, boutique which are not available for general
users.
Assumptions Made and Dependencies
The assumptions made while designing D Sapphire are as follows:
When any car is booked automatically 5 cars are given to the user whether
its need is fulfilled or not.
To change the availability of halls and Event Planner, Administrator has to
change it through a form.
The profit/loss statement works on only on the current year entered.

Specific Requirements:
External Interface Requirements
Interface Requirements and Input/Output Formats

Table 2.3 Interface Requirements and I/O Formats


Name of item
Accesible to
Description of Purpose

:
:
:

Site Home/Index Page


All users
Home page of D Sapphire. Users of website
visits the page and get an option to book the

Source

of

input

or :

banquet.
Users arrive at the D Sapphire Home after

Destination of output

typing the URL in the browser. User moves

Valid Range , accuracy :

to appropriate page according to its need.


Member ID should be correct

and/or tolerance
Units of measure
Timing

Number of characters
User accesses the home page of D Sapphire

:
:

by specifying URL
Page | 22

D SAPPHIRE

Relationship

to

other :

On successful entry of all the fields of

Inputs/Outputs

booking form one can book the banquet hall

Screen

successfully
The page includes the introduction about the

formats/Organization

banquet plus, a short introduction about

Data Formats

different services.
Booking form accepts A-Z,a-z,0-9,special

End Messages

characters like @
On successful booking , the payment receipt
is shown which contains the booking id and
rest of the details which can be printed or
saved.

Name of item
Accesible to
Description of Purpose

:
:
:

Administrator Home Page


Administrator
This page handles all the backend work of D
Sapphire.It also generates reports of daily
sales, total sales. It also tells the profit/loss

or :

gained for year selected.


Accesed by admin after successful login with

Destination of output
Valid Range , accuracy :

a welcome message and different operations.


-

and/or tolerance
Units of measure
Timing
Relationship to

:
:
other :

Displayed after successful login


Links are available to perform various

Inputs/Outputs
Screen

administrative jobs.
Links are available which when get clicked

formats/Organization
Data Formats
End Messages

:
:

various operations are performed.


Various forms are displayed based on the

Source

of

input

selection of links.If logout is clicked , the


base login page is displayed.

Page | 23

D SAPPHIRE

Name of item
Accesible to
Description of Purpose

:
:
:

Wedding Page
All users
Users of website visits the page and can see
the different themes available with their
corresponding snapshots. Also the page
contains further links to Event Planner,
Parlour,

Source

of

input

or :

Destination of output

Boutique,

Catering,

Halls,

Accomodation, Transportation
Users arrive at the D Sapphire Home after
typing the URL in the browser. And then
navigates to this page through the menu link

Valid Range , accuracy :

available.
-

and/or tolerance
Units of measure
Timing

User accesses the wedding page of D

Relationship

to

:
:
other :

Inputs/Outputs
Screen

Sapphire by navigating through home page


The page includes the introduction about the

formats/Organization

weddings including different themes plus

Data Formats
End Messages

various links to other options specified.


A person can navigate through pages and

:
:

book various things like rooms , event


planner, parlour, boutique, etc. but with a
specification that only members can book it.

Name of item
Accesible to
Description of Purpose

:
:
:

Event Planner Page


All users
Users of website visits the page and can see
the snapshots of halls designed by the event
planners. User can see the available event
planners by just a click.
Page | 24

D SAPPHIRE

Source

of

input

or :

Destination of output

Users arrive at the D Sapphire Home after


typing the URL in the browser. And then
navigates to this page through the internal

Valid Range , accuracy :

link of wedding page.


-

and/or tolerance
Units of measure
Timing

User accesses this page of D Sapphire by

:
:

navigating through home page and then


Relationship

to

other :

going to wedding page.


-

Inputs/Outputs
Screen

The page includes the pictures of the halls

formats/Organization
Data Formats
End Messages

:
:

designed by the event planners.


A person can navigate through pages and see
which event planners are available.

Name of item
Accesible to
Description of Purpose

:
:
:

Accomodation Page
All users
Users of website visits the page and can see
the snapshots of rooms. User can also book
rooms for themselves but only if they are the

Source

of

input

or :

Destination of output

members of D Sapphire.
Users arrive at the D Sapphire Home after
typing the URL in the browser. And then
navigates to this page through the internal

Valid Range , accuracy :

link of wedding page.


Member ID of the person

and/or tolerance
Units of measure
Timing

Numbers
User accesses this page of D Sapphire by

:
:

navigating through home page and then


Relationship

to

other :

going to wedding page.


A form for booking the rooms gets open if
Page | 25

D SAPPHIRE

Inputs/Outputs

member id is verified and you can book

Screen

rooms for yourself.


The page includes the pictures of the rooms

formats/Organization
Data Formats
End Messages

:
:

and a button to book the rooms.


0-9,A-Z,a-z
A person can navigate through pages and
book the rooms if they are available.

Name of item
Accesible to
Description of Purpose

:
:
:

Halls Page
All users
Users of website visits the page and can see
the snapshots of halls. User can also check

Source

of

input

or :

Destination of output

the availability of the halls.


Users arrive at the D Sapphire Home after
typing the URL in the browser. And then
navigates to this page through the internal

Valid Range , accuracy :

link of wedding page.


-

and/or tolerance
Units of measure
Timing

User accesses this page of D Sapphire by

:
:

navigating through home page and then


Relationship

to

other :

going to wedding page.


-

Inputs/Outputs
Screen

The page includes the pictures of the halls

formats/Organization
Data Formats
End Messages

:
:

and a link to check availability of the halls.


A person can navigate through pages and
check availability of halls.

Name of item
Accesible to
Description of Purpose

:
:
:

Parlour Page
All users
Users of website visits the page and can see
the snapshots of parlour and also the services
Page | 26

D SAPPHIRE

given with their charges. User can also book


parlour for themselves but only if they are
Source

of

input

or :

Destination of output

the members of D Sapphire.


Users arrive at the D Sapphire Home after
typing the URL in the browser. And then
navigates to this page through the internal

Valid Range , accuracy :

link of wedding page.


Member ID of the person

and/or tolerance
Units of measure
Timing

Numbers
User accesses this page of D Sapphire by

:
:

navigating through home page and then


Relationship

to

other :

going to wedding page.


A form for booking the parlour gets open if

Inputs/Outputs

member id is verified and you can book

Screen

parlour for yourself.


The page includes the pictures of the parlour

formats/Organization

and the services details and a button to book

Data Formats
End Messages

the parlour.
0-9,A-Z,a-z
A person can navigate through pages and

:
:

book the parlour if they are a member.

Name of item
Accesible to
Description of Purpose

:
:
:

Boutique Page
All users
Users of website visits the page and can see
the snapshots of boutique. User can also
book an appointment with the designers of
the boutique for themselves but only if they

Source

of

input

Destination of output

or :

are the members of D Sapphire


Users arrive at the D Sapphire Home after
typing the URL in the browser. And then
navigates to this page through the internal
link of wedding page.
Page | 27

D SAPPHIRE

Valid Range , accuracy :

Member ID of the person

and/or tolerance
Units of measure
Timing

Numbers
User accesses this page of D Sapphire by

:
:

navigating through home page and then


Relationship

to

other :

going to wedding page.


A form for booking the appointment gets

Inputs/Outputs

open if member id is verified and you can

Screen

take an appointment for yourself.


The page includes the pictures of the

formats/Organization

boutique

Data Formats
End Messages

appointment.
0-9,A-Z,a-z
A person can navigate through pages and

:
:

and

button

to

book

the

book the boutique appointment.

Name of item
Accesible to
Description of Purpose

:
:
:

Transportation Page
All users
Users of website visits the page and can see
the snapshots of cars . User can also check

Source

of

input

or :

Destination of output

the availability of the cars.


Users arrive at the D Sapphire Home after
typing the URL in the browser. And then
navigates to this page through the internal

Valid Range , accuracy :

link of wedding page.


-

and/or tolerance
Units of measure
Timing

User accesses this page of D Sapphire by

:
:

navigating through home page and then


Relationship

to

other :

Inputs/Outputs
Screen
formats/Organization
Data Formats

going to wedding page.


-

The page includes the pictures of the cars

and a link to check availability of the same.


Page | 28

D SAPPHIRE

End Messages

A person can navigate through pages and


check availability of cars.

Name of item
Accesible to
Description of Purpose

:
:
:

Catering Page
All users
Users of website visits the page and can see
the full menu of the catering available with

Source

of

input

or :

Destination of output

some rules specified.


Users arrive at the D Sapphire Home after
typing the URL in the browser. And then
navigates to this page through the internal

Valid Range , accuracy :

link of wedding page.


-

and/or tolerance
Units of measure
Timing

User accesses this page of D Sapphire by

:
:

navigating through home page and then


Relationship

to

other :

Inputs/Outputs
Screen

formats/Organization
Data Formats
End Messages

going to wedding page.


The page includes the pictures of the
different dishes and the details for catering

:
:

menu.
A person can navigate through pages and see
the catering details.

Name of item
Accesible to
Description of Purpose

:
:
:

Restaurant Page
All users
Users of website visits the page and can see
the snapshots of restaurant with the menu
listed over there. User can also book a table
for themselves only if they are a part of D
Sapphire i.e. a member of D Sapphire
Page | 29

D SAPPHIRE

Source

of

input

or :

Destination of output

Users arrive at the D Sapphire Home after


typing the URL in the browser. And then
navigates to this page through thelink

Valid Range , accuracy :

available for restaurant.


Member ID of the person

and/or tolerance
Units of measure
Timing

Numbers
User accesses this page of D Sapphire by

:
:

navigating through home page and then


Relationship

to

other :

going to restaurant page.


A form for booking the table is viewed only

if the member id is verified


The page includes the pictures from the

Inputs/Outputs
Screen
formats/Organization

restaurant s, a menu , and a button to book

Data Formats
End Messages

the tables.
0-9,A-Z,a-z
A person can navigate through pages and

:
:

book the table for themselves.

Name of item
Accesible to
Description of Purpose

:
:
:

Club Page
All users
Users of website visits the page and can see
the various services offered by D Sapphire to
the members of them. There is a button
offering to get a membership

of D

Sapphire .If a person clicks on the button he


is taken to a sign up form from where he can
Source

of

input

or :

Destination of output

become a member.
Users arrive at the D Sapphire Home after
typing the URL in the browser. And then
navigates to this page through the link of

Valid Range , accuracy :

club page.
Transaction ID needed to sign up

and/or tolerance
Units of measure

Numbers,Characters

Page | 30

D SAPPHIRE

Timing

User accesses this page of D Sapphire by


navigating through home page and then

Relationship

to

other :

going to club page.


A form for registration is viewed taking all

the details .
The page includes the pictures of the club

:
:

and a button to register in D Sapphire.


0-9,A-Z,a-z
A person can navigate through pages and

Inputs/Outputs
Screen
formats/Organization
Data Formats
End Messages

register in D Sapphire.

Name of item
Accesible to
Description of Purpose
Source

of

input

:
:
:

Login Page
All users
Users of website visits the page and can see

or :

the option to login .


Users arrive at the D Sapphire Home after

Destination of output

typing the URL in the browser. And then


navigates to this page through the link of

Valid Range , accuracy :

login page.
Username and password

and/or tolerance
Units of measure
Timing

Numbers,Characters
User accesses this page of D Sapphire by

:
:

navigating through home page and then


Relationship

to

other :

going to login page.


A form for login asking for username and

password is viewed.
The page includes the link for login, for

Inputs/Outputs
Screen
formats/Organization

registration and an option to change the

Data Formats
End Messages

password
0-9,A-Z,a-z
If a person successfully logins then he is

:
:

leaded to the appropriate page for members


and here one can book gym and games
facilities for himself.
Page | 31

D SAPPHIRE

Name of item
Accesible to
Description of Purpose

:
:
:

Tourism Page
All users
Users of website visits the page and can see
the snapshots of tourists.User also sees a list
of tourism available with the corresponding

Source

of

input

or :

Destination of output

charges for them.


Users arrive at the D Sapphire Home after
typing the URL in the browser. And then
navigates to this page through the link of

Valid Range , accuracy :

tourism page.
Paypal acount

and/or tolerance
Units of measure
Timing

Characters
User accesses this page of D Sapphire by

:
:

navigating through home page and then


Relationship

to

other :

Inputs/Outputs

going to tourism page.


A button having option to pay online will
show all the available tourisms and then one

Screen
formats/Organization
Data Formats
End Messages

can book himself a tour.


The page includes the pictures of the tourists

:
:

and a button to book the tour.


0-9,A-Z,a-z
A person can navigate through pages and
successfully book the tour by paying online.

Name of item
Accesible to
Description of Purpose

:
:
:

Contact Page
All users
Users of website visits the page and can see
the various ways to contact D Sapphire . One

Source

of

input

or :

Destination of output

can also email them.


Users arrive at the D Sapphire Home after
typing the URL in the browser. And then
navigates to this page through the link of

Valid Range , accuracy :

contact page.
Valid Email ID
Page | 32

D SAPPHIRE

and/or tolerance
Units of measure
Timing

:
:

Characters
User accesses this page of D Sapphire by
navigating through home page and then

other :

going to contact page.


A form sending mail is open and sent to the

Inputs/Outputs
Screen

administrator
The page includes the contact details for D

formats/Organization
Data Formats
End Messages

:
:

Sapphire
0-9,A-Z,a-z
User is told that he/she will be reached soon

Relationship

to

after solving there problem.

Name of item
Accesible to
Description of Purpose

:
:
:

Specially for you! Page


All users
Users of website visits the page and can see
the different options as a addition for their
parties. Here are some links to shops are
present which are tied up with D Sapphire
and will provide them service for Flowers,

Source

of

input

or :

Destination of output

Decorations, Wineries, Cakes, etc.


Users arrive at the D Sapphire Home after
typing the URL in the browser. And then
navigates to this page through the link of

Valid Range , accuracy :

specially for you page.


-

and/or tolerance
Units of measure
Timing

User accesses this page of D Sapphire by

:
:

navigating through home page and then


Relationship

to

other :

Inputs/Outputs
Screen
formats/Organization

going to specially for you page.


The page includes the links to the shops on
left and right hand side of the page and the
Page | 33

D SAPPHIRE

links to shops gets open on the middle of the


Data Formats
End Messages

:
:

page.
A person can navigate through links and
book the additional options for their parties
and can go directly to the website of shops
from here.

Hardware Requirements:
D Sapphire is proposed to be installed on a Web Server having the
following minimum hardware requirements:
IntelR 5000 Series Dual Core Processor
2 GB DDR-2 RAM
At least 50 GB free space for the installation of APACHE, PHP and
MySQL
100 GB for system files and database
DVD Writer and tape drive for backup processes
Leased Line Internet Connection
Other peripherals as per requirement
On the client side, a Pentium IV personal computer, and an Internet
connection
Software Requirements:
On the server side, D Sapphire requires the following software platform:
MySQL 5.0 Relational Database Management System
PHP 5.2 Server Side scripting
Apache 2.0 web server
Windows 2000 server
On the client side the sole requirement is any HTML 4.0 compliant internet
browser which supports JavaScript.
The tools that were used by the developer while developing and deploying
the system are as follows
Notepad++ 5.3.1
Adobe Dreamweaver CS3
phpMyAdmin 3.1.1
Page | 34

D SAPPHIRE

Google Chrome Web Browser


Apache Web Server for Windows 2.2.11
PHP 5.2.8
MySQL 5.1.30
Windows 7
Inspite of its development in Windows environment, D Sapphire is platform
independent due to the wide availability of Apache, PHP and MySql for
various Operating Systems.

Page | 35

D SAPPHIRE

Page | 36

D SAPPHIRE

Page | 37

D SAPPHIRE

Page | 38

D SAPPHIRE

Page | 39

D SAPPHIRE

Page | 40

D SAPPHIRE

Page | 41

D SAPPHIRE

Page | 42

D SAPPHIRE

Page | 43

D SAPPHIRE

Functional Requirements
The system was studied thoroughly and the following functional
requirements could be identified:
Table 2.5 Functional Requirements

D Sapphire
Function
Description
Inputs
Source

:
:
:
:

SRS/1.1
Login
Users of D Sapphire log into the system
Username and Password
Users of the system, i.e. Administrator,

Members, General Users


Welcome Message or Error Message if

Destination

username or password is wrong


Member page for users and Administrator

Action

Panel page for administrator


If username and password set are existing in

Outputs

the database and correctly input then users


Requires
Pre Condition
Post Condition

D Sapphire
Function
Description
Inputs
Source
Outputs
Destination
Action
Requires
Pre Condition

:
:

are taken to their respective Home Page.


User is at the home page of D Sapphire and

not already logged in.


-

:
:
:
:
:

SRS/1.2
Create New User
Administrator creates new user
Username and Password
User Management Form
After data is submitted, new user is

:
:

displayed
User Management Form
Admin clicks the Add button and fill the

:
:

details
Transaction Number
Admin is logged in
Page | 44

D SAPPHIRE

Post Condition

D Sapphire
Function
Description
Inputs
Source
Outputs
Destination
Action

:
:
:
:
:
:
:

SRS/1.3
Delete User
Administrator deletes user
Username
User Management Form
After data is submitted, user is deleted
User Management Form
Admin clicks the Delete button and fill the

Requires
Pre Condition
Post Condition
D Sapphire
Function
Description
Inputs
Source
Outputs

:
:
:
:
:
:
:
:

username
Username
Admin is logged in
SRS/2.1
Registration of New User
New user is created
Personal details, username and password
User Registration Form
After data is submitted, new user is

Destination
Action
Requires
Pre Condition
Post Condition

:
:
:
:
:

registered
User Registration Form
User clicks the Register button
Transaction Number
Transaction Number should be correct

D Sapphire
Function
Description
Inputs
Source
Outputs
Destination
Action
Requires
Pre Condition
Post Condition

:
:
:
:
:
:
:
:
:
:

SRS/2.2
Booking Banquet
Banquet Hall is booked
All details for banquet is filled
Booking Form
After data is submitted, Banquet is booked
Booking Form
User clicks the Book Button
Hall and event planner should be available
on the choosed date

Page | 45

D SAPPHIRE

D Sapphire
Function
Description
Inputs
Source
Outputs
Destination
Action
Requires
Pre Condition
Post Condition

:
:
:
:
:
:
:
:
:
:

SRS/2.3
Book Catering Menu
Catering Menu is saved
Different data is checked
Catering Form
Menu is saved in a text file
Catering Form
User clicks the form and choose the options
Booking ID
Your banquet should be booked
-

D Sapphire
Function
Description
Inputs
Source
Outputs
Destination
Action
Requires
Pre Condition
Post Condition

:
:
:
:
:
:
:
:
:
:

SRS/2.4
Rooms Booking
You should be a member
Member ID
Rooms Booking Form
After data is submitted, rooms are booked
Rooms Booking Form
Rooms are booked
Member ID
User should be a member
Rooms should be available for the choosed
date

D Sapphire
Function
Description
Inputs
Source
Outputs
Destination
Action
Requires
Pre Condition
Post Condition

D Sapphire
Function
Description
Inputs

:
:
:
:
:
:
:
:
:
:

SRS/2.5
Parlour Booking
You should be a member
Member ID
Parlour Booking Form
After data is submitted, parlour is booked
Parlour Booking Form
Parlour are booked
Member ID
User should be a member
-

:
:
:

SRS/2.6
Boutique Booking
You should be a member
Member ID
Page | 46

D SAPPHIRE

Source
Outputs
Destination
Action
Requires
Pre Condition
Post Condition

D Sapphire
Function
Description
Inputs
Source
Outputs
Destination
Action
Requires
Pre Condition
Post Condition

:
:
:
:
:
:
:

Boutique Booking Form


After data is submitted, boutique is booked
Boutique Booking Form
Boutique is booked
Member ID
User should be a member
-

:
:
:
:
:
:
:
:
:
:

SRS/2.7
Restaurant Booking
You should be a member
Member ID
Restaurant Booking Form
After data is submitted, restaurant is booked
Restaurant Booking Form
Restaurant is booked
Member ID
User should be a member
Table for the choosed date should be
available

Non Functional Requirements


The end users of D Sapphire may be provided with monitors having screen
resolution of 1024x768 minimum for the webpage to be viewed as intended
by the designers.A minimum of 256 Kbps broadband internet connectivity
is recommended in the client side for optimal performance.The disaster
recovery site for backup/mirroring should be located at a separate place far
apart from the data centre hosting the application. The server hosting the
application should be located in India and the average round-trip time Open
Source software should be used while developing the system User-wise
documentation may be prepared. The documentation for Administrator may
not be publicly circulated.The production environment should be distinct
from development environment.Testing on the production environment may
be done at off peak hours and after taking complete database backup
Administrator of D Sapphire will be responsible for taking backup All
Page | 47

D SAPPHIRE

planned downtimes may be scheduled after working hours on weekdays or


on holidays User training should be completed before the system is made by
Operational A new user should be incorporated only after the departmental
head certifies in writing that the mandatory training has been completed.
Performance Requirements
Performance requirements define acceptable response times for system
functionality.

The load time for user interface screens shall take no longer than two

seconds.
The log in information shall be verified within five seconds.
Queries shall return results within five seconds.

Design Constraints
User Interface Constraints
The systems Graphical User Interface(GUI) should adhere to
industry standards so that GUI will look the same on variety of web
browsers like Google Chrome , Internet Explorer, Mozilla Firefox
etc.
The system will have a free flowing interface to promote usability.
The system will utilize buttons to book the banquet and other
purpose.
The system will utilize the standard searching to implement the
advanced searching over interfaces
The system uses Cascading Style Sheet to maintain uniformity in
looks
It should take a new user approximately half an hour to become
familiar with the features of the system
Where absolute units are used in web development , care should be
taken to ensure that the width of the page does not exceed 1024
pixels.

Page | 48

D SAPPHIRE

Operational Constraints
The system must be available 24 hours a day, 7 days a week and 365
days a year.
The system should allow all users to login simultaneously
The system should accommodate 20 records daily

Hardware Constraints
Any hardware with specifications equal to or higher than that determined in
Hardware Specifications may be used. There might be problems in operating
the system with a lower specification
Software Constraints
A W3C compliant web browser must be installed on the system (Internet
Explorer, FireFox, Opera, Safari, etc.) JavaScript must be enabled on the users
web browser System must interface with MySQL Database

Software System Attributes


Security
Members and Administrator will be able to log in to D Sapphire.
Administrator will be able to handle all the backend services and will be
able to view the yearly balance sheets and profit/loss statement. Members
can book rooms, tables, parlour, boutique for them.
Reliability

Page | 49

D SAPPHIRE

The system must be highly reliable as it processes data. Specify the factors
required to establish the required reliability of the software system at time
of delivery.
Maintainability
Because D Sapphire has been designed to be flexible, maintenance of the
system should not require subsequent changes in the program code. It
should be enough to change control information in web page layout files.
Addition and updation of critical data like Booking the banquet and creation
of users should be assigned to the Administrator.
Portability
As D Sapphire will work via the Internet interface, it will work from
various operating systems. Furthermore, as the web page creation is
designed to be flexible, the system can be transferred to other environments.
The code should be platform independent and the database should be easily
portable to a different platform.

Extensibility
The system can be easily extended, because the design is based on software
components.
Reusability
The design based on software components this will increase also reusability,
because software components may be utilised also for other purposes.
Serviceability
Because D Sapphire should be always online , the system should be quickly
serviced when needed. Our recommendation is to implement a backup
system that can replace original system , if the original system becomes
unusable. Mirroring may be considered.
Page | 50

D SAPPHIRE

Overall Network Architecture

D Sapphire Network

Figure 2.4 D Sapphire Network

Page | 51

D SAPPHIRE

Page | 52

D SAPPHIRE

Page | 53

D SAPPHIRE

Page | 54

D SAPPHIRE

Page | 55

D SAPPHIRE

Page | 56

D SAPPHIRE

Page | 57

D SAPPHIRE

2.7 Software Engineering Paradigm Applied


Page | 58

D SAPPHIRE

The D Sapphire project has gone through the following stages of development in its
Software Development Life Cycle.

Figure 2.10: Software Engineering paradigm used in D Sapphire

The model followed in the development of D Sapphire is a modified version of Waterfall


Model with feedback loops from every stage to the preceding stages.
In the various stages of development as per the above model, the following operations
were carried out:
Preliminary Investigation and Feasibility Study:

During the preliminary investigation, visits were made to the locations like Raj Mahal
Moradabad, Pancham Bareilly , Hotel Sita Kiran , Moradabd Club to study the working of
the manual process.A study of the existing sites of banquet halls and clubs were also made.

Page | 59

D SAPPHIRE

Feasibility study of D Sapphire project was made using the COST Model and various
strategic plans to find out the Technical, Economic, Legal, Operational and Schedule
feasibility of D Sapphire

System Analysis:

At the System Analysis stage, first the detailed requirements of D Sapphire were worked
out. These included the external interface requirements, input and output formats, hardware
and software requirements, logical database requirements and data dictionary, various
constraints, functional and non-functional requirements. At the end of the requirement
gathering, a SoftwareRequirement Specification (SRS) document was created as per IEEE
830-1998 recommendations. Samples of various documents and registers were also taken
at this stage.

Next, with reference to the requirements gathered, the project planning including cost,
effort and budget estimates were made, the scheduling was done using PERT and Gantt
Charts, the software paradigm to be applied in development of D Sapphire was worked
out and detailed Data Flow Diagrams and Entity-Relationship Diagrams were created.

System Design:

At the System Design phase, the modules of D Sapphire were determined and their logical
relationships were worked out. Following this, the database design was undertaken and the
underlying tables, attributes, constraints,keys, attribute types etc. were also determined. At
the procedural design stage, the algorithm of D Sapphire within the modules and interPage | 60

D SAPPHIRE

module logical design was completed. The design of user interfaces was undertaken after
this. During this process, the design of input forms, menus, reports, outputs,error messages
and other visual elements were conceived.

Coding:

The actual coding of D Sapphire was undertaken in this stage. The coding was done
module-wise as the modules were more or less independent of each other except for some
feedbacks using dummy variables from other modules at the early stage. After the coding
for all modules were completed, the actual feedback variables were used to re-visit the
modules and complete the coding. After the preliminary coding was completed, efforts
were made to include extensive error checking and validation checks in critical places of
the code and comments and descriptions were added.

Testing:

D Sappphire was subjected to extensive testing using the Unit Testing, Integration Testing
and System Testing approach. Elaborate test cases were designed for each phase before the
testing. During the unit testing phase, the text boxes, combo/drop down menus, buttons
were tested. During the integration testing, the inter-operability of the modules were tested
and specifically it was tried to ascertain whether data generated in one phase/module were
available in the next module. In the system testing phase, the system was tested as a whole
to find out whether all the functional requirements of D Sapphire as envisaged in the SRS
were satisfied.

Page | 61

D SAPPHIRE

Implementation and Maintenance:

The

implementation

was

made

in

the

real-life

environment

in

the

URL

dsapphire.comule.com after uploading the PHP files from the production server to the
hosting server. An SQL dump file was generated from the MySQL database, tarred and
zipped in the production server and uploaded in the hosting server by FTP.It was then
integrated into the database in the server and deployed after re-testing the functionalities.
The maintenance phase is going on and certain changes might be possible to finetune the
application during this phase.

Page | 62

D SAPPHIRE

3. System Design

3.1 Modularisation Details

Process Logic of Modules:

(i)

Administrative Module:
The role of system administrator is very vital for D Sapphire. One of the facilities for D
Sapphire is to enable changes in the key tables. These tables are of halls, themes,
rooms,payments.
The administrative module also handles the updation of sales and the payments to be done.
The administrator can see the Profit/Loss Statement or Yearly sale and also print them as a
report.

(ii)

Registration Module
When the user clicks this option he will be presented with sign up form where he has to fill
his details with a choosed username and password. The only thing to keep in mind is the
transaction number given to the person.If the transaction number is not correct he/she will
not be allotted with the membership.

(iii)

Event Planning Module


When the user clicks this option he will be presented with the list of event planners
available with their corresponding fees.As soon as the person clicks on any name of the
planner , the person is shown the work experience of that planner with all its details and the
amount to be charged by the planner.

Page | 63

D SAPPHIRE

(iv)

Transportation Module
When the user clicks this option he will be shown the different cars available on the
present time.
The person will be given an option to choose from different cars. it will be checked if the
number of cars are available or not . If they are available they are allotted to the person ,
but if not then they are shown the available cars and a sorry message is shown.

(v)

Boutique Module
When the user clicks this option he will be shown the latest designs available in the
boutique for bride, groom and others too.The person can also see designer names , its work
and he can also book a designer to design a special dress and the bill will be added to the
report.A person can also come and visit the boutique himself.

(vi)

Parlour Module
When the user clicks this option he will be shown the different menu showing all the
facilities available in the parlour with their rates. Parlour will be both for men and women.
The person can choose the options and book the parlour for a specific time.A person can
also come and visit the parlour himself.

(vii)

Rooms Module
When the user clicks this option he will be shown the rooms The person can click to see
the rooms pictures The person should be a membr of D Sapphire in order to book rooms
and it will be first checked if the rooms are available for the following date.

Page | 64

D SAPPHIRE

(viii)

Catering Module:
When the user clicks firstly he is viewed with the menu available with some rules for
booking.A form is available which first asks to verify your booking id and then book the
menu where the selected options will be saved in a text file.

(ix)

Games Module
Right now there are two games available which can be joined by members only. Games
may also lead you to state or national level competitions

(x)

Restaurant Module
When the user clicks it different snapshots are shown to the user :He can also see the meals
available with their specific rates and can also book any and ask to deliver at home with
the option of cash at delivery or online payment.A person can also book a table or many
tables for any special event but with some extra charge to be paid in advance.Bookings can
only be done through the members.The different bills which will be paid will

be

maintained in a daily basis repot of restaurant and the final amount of each day at the
closing time will in turn be updated on the final report of the administrator business report.
(xi)

Tourism Module
When the user clicks it a menu pops up showing the different tours available for a person
to book from. Special discounts will be available for members.A person can click on
different tour programmes to see the amount charged. A person can book it and pay
Itonline It can be done for any general user.

(xii)

Contact Module

Page | 65

D SAPPHIRE

All the ways of contacting D Sapphire is shown with the option of asking us any query.A
map showing the directions is also viewed.
(xiii)

Specially for you Module


Here different shops links are shown which are already tied up with D Sapphire like

a. Photo Booth
b. Photo Shoot
c. Videographer
d. Disc Jockeys
e. Flowers
f. Honeymoon
g. Magazines
h. Gift Shop
One can easily book any needed servise from here. He do not have to roam here and there
to make arrangements. He will be fully satisfied.

(xiv) Booking Module:


This module can be used by any user who wants to book the banquet. One has to fil his
details and choose the hall, event planner, theme, rooms,cars and other optkions.It is then
checked if all the choosed services are available for the choosen date , if they are available
then the banquet hall is booked and a payment receipt is generated with the booking id
mentioned in it. One gets the option to do payment online also.But, if any option choosed
is not available then the booking is not done and an error message is displayed.

3.2 Data Integrity and Constraints


The overall relationship among the tables of D Sapphire is as follows:

Page | 66

D SAPPHIRE

Page | 67

D SAPPHIRE

3.3 Database Design

The D Sapphire

project database consists of following MySQL tables. Appropriate

Primary Keys, Foreign Keys and Referential Integrity constraints have been set up in the
database. The various tables in the database are described below:

Table 3.1 : Tables, attributes and constraints

Bookbanquet Stores the details of booking , whoever has booked the banquet

Field Name
fname

Field Type
Text

Constraints

Description
First Name of the

lname

Text

person
Last Name of the

saddr
City
State
Zip
Country
Phone
Email
Hall
Party

Text
text
Text
Int(6)
text
Int(15)
Text
Text
Text

person
Address
City
State
Zip Code
Country
Contact Number
Email ID
Hall Choosed
Which type of party
you want? May be
wedding,meeting

Rooms
Date
Eplan

Int(5)

etc.
How many rooms

Date
Text

needed
Date of Booking
Choosed
Event
Planner
Page | 68

D SAPPHIRE

Theme
Boutique

Varchar(50)
Text

Choosed Theme
You need boutique?

Text

Yes/No
You need parlour?

Devent

Text

Yes/No
You need dancing

Hsuite

Text

events? Yes/No
You need to book

Parlour

honeymoon
cartoons

Text

Boid

Int(11)

Yes/No
You need cartoons?
Yes/No
Primary Key, Auto Generated
Increment

Amount

suite?

ID

on

successful
submission
The charges to be

Int(11)

paid

Bookbo This table stores the details of the bookings of the boutique

Field Name
Mid

Bodate

Constraints
Foreign Key

Description
Member ID (allotted

Reference

individually to each

register1(Mid)

member)
Date of Booking

Date

Bookparl- This table stores the details of booking of the parlour

Field Name
Mid

Bodate

Field Type
Varchar(10)

Field Type
Varchar(10)

Date

Constraints
Foreign Key

Description
Member ID (allotted

Reference

individually to each

register1(Mid)

member)
Date of Booking
Page | 69

D SAPPHIRE

Type

Text

Type of service the

Ptime

time

client needs
Time allotted to visit
the parlour on the
booked date

Car : This table stores the details of cars available with us

Field Name
Cid

Field Type
Varchar(20)

Constraints
Primary Key

Description
Car ID (allotted
individually to each

Cname
Cnum

car)
Name of Car
Car Number

Varchar(50)
Int(11)

Cavailable: This table stores the availability of cars corresponding to its name and
its ID.

Field Name
Cid

Field Type
Varchar(20)

Constraints
Primary Key

Description
Car ID (allotted
individually to each

Cname
Cnum

Varchar(50)
Int(11)

car)
Name of Car
Number of

Cavailable

text

present right now


Availability of car

cars

Counter- this table stores the field which counts the visits on the website

Field Name
Counter

Field Type
int(20)

Constraints

Description
Counter to count the
number of visits

Page | 70

D SAPPHIRE

Debit_transactions-this table stores the details of all those payments which were
made by the banquet for their expenses.

Field Name
Reason
Amount
Date

Field Type
Varchar(100)

Constraints

Description
Reason
of

the

expense
Amount paid
Date of transaction

Int(11)
date

Deliver this table stores the details of choosed menu and its rate for home
delivery option

Field Name
PackageId

Field Type
Int(11)

Rate

Int(11)

Constraints

Description
Id of the

food

choosed
Amount to be paid

Designer this table stores the designer details which are hired
for the banquet

Field Name
Deid
Dename
Deaddr
Decont
Defee

Field Type
Varchar(12)

Constraints
Primary Key

Description
Unique
ID

of

designer
Name of Designer
Address
Contact Number
Fee paid to designer

Varchar(50)
Varchar(100)
Bigint(100)
Int(11)

Driver- this table stores the details for drivers which are hired for
banquet

Field Name
Did

Field Type
Varchar(12)

Constraints
Primary Key

Description
Unique ID of driver
Page | 71

D SAPPHIRE

Dname
Daddr
Dcont
Dsalary

Varchar(50)
Varchar(100)
Bigint(50)
Int(11)

Name of Driver
Address
Contact Number
Salary of Driver

Eavailable this table stores the availability of the event planners of


banquet hall

Field Name
Eid

Field Type
Varchar(11)

Constraints
Primary Key

Description
Unique ID of event

Varchar(40)

planner
Name
of

Efees

Int(11)

planner
Fee paid to event

Eavailable

text

planner
Availability of event

Ename

event

planner

Email- this table stores the queries asked by the users

Field Name
Name
Addr
message

Field Type
Varchar(50)
text
longtext

Constraints

Description
Name of Sender
Address
Message sent by the
user

Event- this table stores the details of the event planners

Field Name
Eid

Field Type
Varchar(12)

Constraints
Primary Key

Description
Unique ID of event

Ename

Varchar(50)

planner
Name
of

Eaddr

Varchar(100)

planner
Address

event

Page | 72

D SAPPHIRE

Econt
Eemail
Ework
Efee

Bigint(100)
Varchar(50)

Contact Number
Email of the event

Int(11)

planner
Work experience of

Int(11)

the event planner


Fees of the event
planner

Games

Field Name
Gid
Gname
Gfee

Field Type
Varchar(12)
Varchar(50)
Int(11)

Constraints
Primary Key

Description
Unique Id of Games
Name
Fees to be paid

Game_1 : This table stores the corresponding member id and game id


booked by them.

Field Name
Gid
Mid

Field Type
Varchar(12)
Varchar(12)

Constraints
Foreign
register1(Mid)

Mfee

Int(11)

Description
Id of Game choosed
key Member ID who
opted the games
Fees of the game to
be paid

Guide this table stores the details of the guide kept for the tourism
purpose

Field Name
Guideid
Guidename
Guideaddr
Guidecont
Guidesalary

Field Type
Varchar(12)
Varchar(50)
Varchar(100)
Bigint(50)
Int(11)

Constraints
Primary Key

Description
Unique ID of guide
Name of guide
Address
Contact Number
Salary paid to the
guide

Page | 73

D SAPPHIRE

Gym this table stores the details of the members joined the gym

Field Name
Mid

Field Type
Varchar(12)

Constraints
Foreign

Description
key Member ID

register1(Mid)
Jid
Jfee

Varchar(50)
Int(11)

Id for gym package


Fees of the gym
package

Gymid-this table stores the details of the packages available in the gym
with their corresponding charges

Field Name
id
fee

Field Type
Varchar(12)
Int(11)

name

Varchar(50)

Constraints
Primary Key

Description
ID for the gym
Fees of the gym
package
Name of

gym

package

Halls- this table stores the details of the halls available in the banquet

Field Name
Hid
Hname
Hsize
Hprice
Available

Field Type
Varchar(12)
Varchar(50)
text
Int(11)
text

Constraints
Primary Key

Description
Unique ID of hall
Name of hall
Size of hall
Price of booking
Hall is Available or
not

Homedeliver this table stores the details of the person who wants
home delivery

Field Name
Packageid

Field Type
Int(11)

Constraints
Foreign

Description
Key ID of package
Page | 74

D SAPPHIRE

deliver(packageid)
Name
Address
Contact
Amount

Varchar(50)
text
Bigint(50)
Int(11)

Name of person
Address
Contact Number
Amount to be paid

Parking- this table stores the details of cars came in the banquet

Field Name
Cid
Gname
Pdate
Ptimein
Ptimeout

Field Type
Varchar(20)
Varchar(50)
Date
Time

Constraints

Description
Car Number
Name of person
Date
Time when the car
checked in
Time when the car

time

checked out

Payments this table stores the details of the transactions held by and
held to the banquet

Field Name
Type
Charges
Date

Field Type
text
Int(11)

Constraints

Description
Type of transaction
Amount
paid/received
Date of transaction

Date

Rebook this table stores the details of those members who booked the
restaurant in advance

Field Name
Guname
BookDate
Tableno
RFid

Field Type
text
Date
Int(11)
Varchar(12)

Constraints

Foreign

Description
Name of person
Date of booking
Table
number
choosed
Key Reference

Restaurant(RFid)

ID

for

restaurant like table


for

candle

light

dinner , etc.
Page | 75

D SAPPHIRE

Register1 this table stores the details of members when signed up

Field Name
Mid

Field Type
Int(11)

Constraints
Description
Primary Key Auto Member ID alloted
Increment

Mname
Maddr
Mcont
Memail
username
password
Mdob
Mtype

Varchar(50)
Varchar(100)
Int(100)
Varchar(100)
Varchar(25)

Name of member
Address
Contact Number
Email ID
Username choosed

Varchar(25)
Date
Varchar(100)

by member
Password
Date of birth
Type of member
either permanent or
temporary
Occupation
A number provided

Moccu
Varchar(50)
Transaction_Number text

on

the

slip

of

members which is
needed in order to
sign up

Reroom this table stores the details of those members who booked the
rooms

Field Name
Guname
BookDate
Rooms

Field Type
text
Date
Int(11)

Constraints

Description
Name of guest
Date of booking
How many rooms
booked

Restaurant this table stores the facilities which are made available to
the members for booking

Page | 76

D SAPPHIRE

Field Name
RFid
RFname
RFfee

Constraints
Primary Key

Description
Unique Facilities ID
Name of facilities
Fees to be paid

Restaurant_sale this table stores the daily basis sales of the restaurant

Field Name
GuName
GuMenu
GuSale
date

Field Type
Varchar(12)
Varchar(50)
Int(11)

Field Type
Varchar(50)
Varchar(200)
Int(11)
date

Constraints

Description
Name of Guest
Menu choosed
Amount to be pay
Date of transaction

Products this table stores the details of the tourist places , the banquet
provides with the charges

Field Name
pid

Field Type
Int(11)

Constraints
Description
Primary Key,AUTO Product ID
InCREMENT

product
price
currency

Varchar(250)
Int(11)
Varchar(10)

Product name
Fees to be paid
Which
currency
payment

will

be

done

Page | 77

D SAPPHIRE

3.4 Procedural Design

Administrative Module:

Step 1: Start
Step 2: Administrator logs in using the common login form.
Step 3: Administrator is presented with the following options

Add the Restaurant Sale Entry


Check the Booking Details
Add the Parking Details
Add the Sales Entry
Add a user
Delete a user
Change the Hall availability
Change the Event Planner Availability
Add the Banquet Transactions
List of employees
Profile of Potential Customers
View the Restaurant Sale Report
View the Total Sale Report
Recent Marketing and Advertising
Check Profit/Loss
Check Members List
Logout

Step 4: Admin selects option from menu.


Step 5: If Option 1 is selected , admin is presented with a form to add the restaurant sale
entries on daily basis.

Page | 78

D SAPPHIRE

Step 6: If Option 2 is selected the details of booking is shown on the basis of choosed
booking id.
Step 7: If Option 3 is selected , Admin is presented with a form to add the parking details
on daily basis.
Step 8: If Option 4 is selected Admin is presented with a form to add a sale entry
Step 9: If Option 5 is selected , the administrator will be viewed Create User Form
Step 10: If Option 6 is selected , the administrator will be viewed Delete User Form
Step 11: If Option 7 is selected , the administrator will be presented with the option to
change the hall availability
Step 12: If Option 8 is selected , the administrator will be presented with the option to
change the event planner availability
Step 13: If Option 9 is selected Admin is presented with a form to add banquet transactions
Step 14: If Option 10 is selected Admin is presented with his employee details
Step 15: If Option 11 is selected Admin is presented with the profiles of the renowned
customers
Step 16: If Option 12 is selected Admin is presented with the restaurant sale report
Step 17: If Option 13 is selected Admin is presented with the total sale report
Step 18: If Option 14 is selected Admin is presented with the recent marketing and
advertising strategies
Step 19: If Option 15 is selected Admin is presented with a form to enter a year whose
profit/loss has to be checked
Step 20: If Option 16 is selected Admin is presented with the list of all the members
Step 21: If Option 17 is selected Admin is presented the administrator is logged out

Page | 79

D SAPPHIRE

Step 22:Stop

Home Module

Step 1: Start
Step 2: This is the page which opens as soon as the project is openedStep 3: Here the user
can see a basic introduction about the hall .
Step 3: The user also sees an option to book the banquet from here.(Details are provided
below in different module)
Step 4: Stop

Booking Module

Step 1: Start
Step 2 : A user can see this form link on the home page nad any general user can access it.
Step 3: A form of booking is seen where the user has to fill his personal details with the
name of hall choosed , event planner, themes, date,cars,number of rooms and will have to
tell if he wants to book boutique,parlour,host,catoons,honeymoon suite,dance events.
Step 4: If the hall and event planner are available for the following datethen the booking is
done and a booking id is generated which is shown in the payment receipt.
Step 5:Payment Receipt contains Booking ID and all the other details and gives an option
to print it and also to do the advance payment online.
Step 6: The Booking ID can then be used for booking catering menu.
Step 7: Stop

Wedding Module

Step 1: Start
Step 2:This page shows the pictures of weddings held here.
Page | 80

D SAPPHIRE

Step 3: An option is there to see the themes.A user can select a theme and see its
corresponding decoration below so it will be easy for him to choose from
Step 4: A further division of services is shown which contains the following

Event Planner
Halls
Accomodation
Boutique
Parlour
Transportation
Catering

All of the following are discussed below one by one.


Step 5:Stop

Registration Module

Step 1: Start
Step 2: When the user clicks this option he will be presented with a form to sign up
Step 3: While filling his details in registration form he will have to fill a transaction
number given to him by the Administrator. If transaction number is wrong he will not be
registered
Step 4: Administrator will provide a unique number known as member id to the payee and
he will be provided with the essence of membership of the D Sapphire.
Step 5: Thus , the person can take all the advantages provided to the member.
Step 6: Stop

Event Planning Module

Step 1: Start
Step 2: When the user clicks this option he will be presented with the list of event planners
and the work done by them.
Page | 81

D SAPPHIRE

Step 3: The user here can see two options : one to see the event planners details there
personal details and their work experience and the other option of seeing which of them are
available right now for booking.
Step 4: If the person is interested then he can choose the planner while booking the banquet
hall.
Step 5: Stop

Halls Module

Step 1: Start
Step 2: When the user clicks this option he will be presented with different halls pictures.
Step 3: The user here can see an option to see which of the halls are available right now
for booking.
Step 4: If the person is interested then he can choose the hall while booking the banquet
hall.
Step 5: Stop

Transportation Module

Step 1: Start
Step 2: When the user clicks this option he can see the cars present with D Sapphire .There
are four cars available
Step 3: The person will be given an option to see the available cars at present.
Step 4: If user wants to book a car he can do it while booking the banquet hall.
Step 5: Stop

Boutique Module

Step 1: Start
Step 2: When the user clicks this option he will be shown the latest designs available in the
boutique for bride, groom and others too.
Step 3: The person can click to see the collection.
Page | 82

D SAPPHIRE

Step 4: The person can also see designer names , its work and he can also book an
appointment with one and the charges to be paid will be stored and taken at the time of
visit.. The user should be a member in order to book it.
Step 5: A person can also come and visit the boutique himself.
Step 6: Stop

Parlour Module

Step 1: Start
Step 2: When the user clicks this option he will be shown the different menu showing all
the facilities available in the parlour with their rates.Parlour will be both for men and
women.
Step 3: The person can choose the options and book the parlour for a specific time. The
user should be a member in order to book it.
Step 4: It will be checked by the administrator if it is not booked from before and if its
available then its amount will be added to the bill.
Step 5: A person can also come and visit the parlour himself.
Step 6: Stop

Accomodation Module

Step 1: Start
Step 2: When the user clicks this option he will be shown the different rooms snapshot
Step 3: The person will then have to enter his information with number of rooms he
wants.The user should be a member in order to book it.
Step 5: It will be checked by the administrator if it is not booked from before and if its
available then its amount will be added to the bill.
Step 6: Stop

Catering Module:

Page | 83

D SAPPHIRE

Step 1: Start
Step 2: When the user clicks firstly he is asked to enter the id of the booked hall in order to
book the catering menu.
Step 3:After he successfully enters the id,a menu pops up showing all types of snacks and
meals available for party
Step 3: He can click and chose the meals he wants.
Step 4: It will all be saved in a text file on server side.
Step 5: Stop

Games Module

Step 1: Start
Step 2: When the user clicks it a form shows up to select type of game.
Step 3: He chooses game , and an entry happens with the amount charged in the database.
Step 4: Stop

Gym Module

Step 1: Start
Step 2: When the user clicks it a form shows up to select type of service for gym.
Step 3: He chooses service , and an entry happens with the amount charged in the database.
Step 4: Stop

Restaurant Module

Step 1: Start
Step 2: When the user clicks it different snapshots are shown to the user .
Step 3:He can also see the meals available with their specific rates and can also book any
and ask to deliver at home with the option of cash at delivery.

Page | 84

D SAPPHIRE

Step 4: A person can also book a table or many tables for any special event but with some
extra charge to be paid in advance.
Step 5: The different bills which will be paid will be maintained in a daily basis repot of
restaurant and the final amount of each day at the closing time will in turn be updated on
the final report of the administrator business report.
Step 6: Stop

Tourism Module

Step 1: Start
Step 2: When the user clicks it a page comes showing the different tours available for a
person to book from. Special discounts will be available for members.
Step 3: Any user can book it online and enjoy the tour.
Step 4: Stop

Login Module

Step 1: Start
Step 2: When the user clicks this an option to either login or sign up is shown .Also an
option to change the password is there.
Step 3: Only the members or the administrator can login with a verified username and
password
Step 4: Stop

Contact Module

Step 1: Start
Step 2: When the user clicks this a page showing all the ways to contact D Sapphire is
shown.
Page | 85

D SAPPHIRE

Step 3: Also an option to ask a query to the administrator is shown , by clicking on which
a user can ask about a problem and it will be rectified as soon as possible.
Step 4: Stop

Some Essentials Module

Step 1: Start
Step 2: When the user clicks it the left and right sidebar of the page shows the following
Photo Booth
Photo Shoot
Videographer
Disc Jockeys
Flowers
Wineries
Magazines
Gift Shop
Step 3:As soon as the user clicks any option the companies attached to them is shown and
are given an option to choose from.
Step 4: Stop

3.5 User Interface Design


D Sapphire will be web-based system and the user interface will be available through the
browser. It has to be ensured that the interface looks similar in all the major browsers. The
following common input designs and input elements have to be implemented in D
Sapphire

Site Home Page: The home page of D Sapphire is:

Page | 86

D SAPPHIRE

Figure 3.2 Home Page

Page | 87

D SAPPHIRE

Here in the home page of D Sapphire we can see sliding pictures of D Sapphire moments
and some introduction about it.Also a link to see all members name and also to book
banquet is available.

Booking Form Page


The form which appears while booking it

Figure 3.3 Booking Page

Wedding Page
This page shows a list of themes which user can see by selecting from the given
options . Also further links to Event Planner , Boutique, Parlour etc. is available on
the page

Page | 88

D SAPPHIRE

Figure 3.4 Wedding Page

Page | 89

D SAPPHIRE

Event Planner Page

Figure 3.5 Event Planner Page


There are two buttons present on to check availability and other to know the
personal details of them

Halls Page
Figure 3.6 Halls Page

Page | 90

D SAPPHIRE

Accomodation Page
The page views the room page which shows the rooms and also an option to book
rooms.
Figure 3.7 Accomodation Page

Page | 91

D SAPPHIRE

Page | 92

D SAPPHIRE

Boutique page
This page shows the boutique page and gives an option to book the apponintment.
Figure 3.8 Boutique Page

Page | 93

D SAPPHIRE

Page | 94

D SAPPHIRE

Parlour Page
This page shows the services offered by parlour and also gives an option to book
the parlour.

Page | 95

D SAPPHIRE

Figure 3.9 Parlour Page

Page | 96

D SAPPHIRE

Cars Page
This page views the cars and also an option to see the availability of cars.
Figure 3.10 Cars Page

Page | 97

D SAPPHIRE

Page | 98

D SAPPHIRE

Catering Page

Page | 99

D SAPPHIRE

Figure 3.11 Catering Page


Form for cateringThe choosed options will be saved in a text file which will be
saved as booking id (number of booking id) .

Page | 100

D SAPPHIRE

Figure 3.11 Form for Catering

Restaurant Page: This page views the menu for restaurant and the option to get
home delivery and also to book table

Page | 101

D SAPPHIRE

Page | 102

D SAPPHIRE

Form 3.12 Restaurant Page

Club Page : This page shows about club


Form 3.13 Club Page

Page | 103

D SAPPHIRE

Page | 104

D SAPPHIRE

Login Page :

Form 3.14 Login Page

Tourism Page
Figure 3.15 Tourism Page

Page | 105

D SAPPHIRE

Page | 106

D SAPPHIRE

Contact Page

Figure 3.17 Contact Page

Specially for you page :This page shows the links to the shops attached with D
Sapphire , user may click on the links to navigate.

Page | 107

D SAPPHIRE

Figure 3.18 Specially for you page

Members Login Page :The page viewed when the members login.

Page | 108

D SAPPHIRE

Figure 3.19 Members Login Page

Admin Page :The page views when the Administrator logins

Page | 109

D SAPPHIRE

Figure 3.20 Admin Login Page

Employees List
Figure 3.21 Employees List

Page | 110

D SAPPHIRE

Total Sale Report

Figure 3.22 Total Sale Report

Page | 111

D SAPPHIRE

4. Coding

4.1 Complete Project Coding

D Sapphire code has been organized in the form of PHP files and folders which are kept
under the folder named Obscura. There is an index.php file which is the homepage of the
project. Further, each of the user category have their separate homepage, which are in files
like wedding.html, planner.php,login.html etc. Further, each category has a separate folder
which contains the PHP files which incorporate the business logic for the respective
functions. These files connect to the underlying MySQL database of D Sapphire. The code
of the PHP files are given below. The pages are indicated relative to the D Sapphire home

Index.php
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>
<meta charset="UTF-8">
<meta name="viewport"

content="width=device-width,initial-scale=1,maximum-scale=1,user-

scalable=no">
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link
rel="stylesheet"
type='text/css'
href='http://fonts.googleapis.com/css?
family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>

Page | 112

D SAPPHIRE
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/bg/ba2.jpg");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>
<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:false,
duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,
numStatus:false,
banners:false,
waitBannerAnimation:false,
progressBar:false
})
});
</script>
</head>
<body>
<div class="header">
<div class="header">
<div class="logo"> <a href="index.html"> <img src="style/images/art/logon.jpg" alt=""> </a>
</div>
<div id="menu-wrapper">
<div id="menu" class="menu">
<ul id="tiny">
<li class="active"><a href="index.html">Home</a>
</li>
<li><a href="post.html">Wedding</a>
</li>
<li><a href="restaurant.html">Restaurant</a>
<li><a href="club.html">Club</a></li>
<li><a href="login.html">Login</a></li>
</li>
<li><a href="tourism.html">Tourism</a>
</li>
<li><a href="contact.html">Contact</a></li>
<li><a href="frameset/frameset.html">Specially For you!!!!</a></li>
</ul>
</div>
</div><br><br><br><br>

Page | 113

D SAPPHIRE
<div class="clear"></div>
</div>
</div>
<a href="#" class="prev">&nbsp;</a><a
class="scanlines"></div>
<img
class="left"

href="#"

class="next">&nbsp;</a>

</div><div

src="http://localhost/projects/obscura/counter.php"

style="width:50%;height:50%;"/>
<div id="slide">
<div class="slider" ">
<ul class="items">
<li><img src="style/images/art/bn2.jpg" alt=""></li>
<li><img src="style/images/art/b2.jpg" alt=""></li>
<li><img src="style/images/art/b3.jpg" alt=""></li>
<li><img src="style/images/art/b4.jpg" alt=""></li>
<li><img src="style/images/art/bn6.jpg" alt=""></li>
<li><img src="style/images/art/b7.jpg" alt=""></li>
<li><img src="style/images/art/b8.png" alt=""></li>
<li><img src="style/images/art/b9.jpg" alt=""></li>
<li><img src="style/images/art/b10.jpg" alt=""></li>
<li><img src="style/images/art/bn11.jpg" alt=""></li>
<li><img src="style/images/art/b15.jpg" alt=""></li>
<li><img src="style/images/art/b18.jpg" alt=""></li>
</ul>
</div>
<div class="intro" style='text-align:left'>D Sapphire has been one of the most highly recommended
special occasion facilities in the tri-state area for many years. Conveniently located , we are the
perfect venue to host events for those with guests coming from all directions of the greater
Pittsburgh area.At The Sapphire, our goal is to make each event a wonderful success. Our
experienced staff will ensure that your special occasion turns out exactly the way you have planned.
Our establishment has been voted the Number One facility to host your event in the northern
suburbs by the readers of the Tribune Review for the past 10 years. Whether you are celebrating a
wedding, anniversary, reunion or any other occasion, you should consider D Sapphire as the setting
for your everlasting memories. </div>
<div class="header-wrapper opacity">
<div class="wrapper" style='text-align:left'>
<ul class="social">
<li><a

class="facebook"

href="https://facebook.com/pages/Dsapphire-

Banquets/863275620367060"></a></li>
<li><a class="twitter" href="https://twitter.com"></a></li>
<li><a class="dribbble" href="https://dribble.com"></a></li>
<li><a class="flickr" href="https://flickr.com"></a></li>
<li><a class="linkedin" href="https://linkedin.com"></a></li>

Page | 114

D SAPPHIRE
</ul>
<div class="wrapper">
<h3><strong>Enjoy Best Meal</strong> Ever</h3>
<div class="box-1"> <img src="style/images/art/r.jpg" alt="" class="img-border img-indent">
<br>
<br>
<br>
<br>
<br>
<div class="extra-wrap">
<p class="text-1"style="color: #FDFDFD; font-size: 30px">People come here once and
never go anywhere else</p>
<br>
<br>
<p class="text-2" style="color:blue;font-size:30px">We serve whatever u love<br>
</p><br><br>
</div>
</div>
<div class="container_24">
<div class="grid_7">
<div class="top-1 right-1">
<h2 class="title"><a href="post.html"><p class="text-2" style="color:blue;fontsize:30px">Tourism Packages</p></a></h2>
<p style='text-align:left'>A holiday in a foreign land is an everlasting memory. Who does not
harbour the wish to visit a foreign land, get a chance to acquaint with the people, learn about their
past, appreciate their culture and wonder at the natural and manmade creations? International
holidays are no longer things to be dreamt about but to be embarked upon. We, at Yatra.com, bring
you the best deals on standard as well as tailor-made tours, covering almost all parts of this planet,
permitting you to actualise your dream of visiting any destination around the globe. Check out this
city-wise organized directory to find the various associated international holiday packages and
realise your long held dream of an international vacation.</p></div
><div class="frame"> <a href="post.html"> <img src="style/images/art/singapore.jpg" alt="">
</a> </div>
</div></div> <div class="wrapper" >
<br>
<h3><strong>Be a part!!! and enjoy massive discounts</strong> </h3>
<p style="font:30 px; color:magenta"> Enjoy with other people GET SOCIAL!!!! Play different
games and be famous!!! </p>
<br>
<br>
<div class="box-1"> <img src="style/images/art/bi.jpg" alt="" class="img-border img-indent">
<br>
<br>
<br>

Page | 115

D SAPPHIRE
<br>
<br>
<div class="blog-wrap">
<div class="blog-grid">
</div></div>
<div class="post format-quote box">
<blockquote>D Sapphire is very palatial and extravagant, huge in size which can accommodate
more than 5000 guests in their banquet hall.The food is amazing and so is the service.
They have the best security in place at the entrance with numerous check points which makes for a
good safe 5 star hotel.
It is exactly 5 minutes from the International airport and is good for business and leisure tourists too.
Stayed July 2014, travelled with friends
<cite>Sheldon Cooper</cite></blockquote>
<p>
A wonderful serenity has taken possession ,like these amazing views which one will enjoy with their
whole heart.</p>
</div>
<br><br><br><br>
<center><br><br><p> Click on the button to book the banquet!!!</p><br><br><br>
<br><a href="form.html"><button>Book</button></a></center><br><br>
<center><br><br><p> Click on the button to see the members!!!</p><br><br><br>
<br><a href="membersee.php"><button>Members</button></a></center><br><br>
<div class="footer-wrapper">
<div id="footer">
<p Style="Color: #224E07; size: 5; font-size: large;"> Contact Us ::

[email protected]

...<br><br> Phone no :: 7507968233,9867176702 </p>


<p Style ="Color: Blue; Size: 5; font-size: large;">2012 Copyrighted Designzzz.com</p>
</div>
<div style="clear:both;"></div>
</div>
</body>
</html>
Form.html
<!DOCTYPE

html

PUBLIC

"-//W3C//DTD

XHTML

1.0

Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Booking Form</title>
<link rel="stylesheet" type="text/css" href="view.css" media="all">

Page | 116

D SAPPHIRE

<script type="text/javascript" src="view.js"></script>


<script type="text/javascript" src="calendar.js"></script>
</head>
<body id="main_body" >

<img id="top" src="top.png" alt="">


<div id="form_container">

<h1><a>Booking Form</a></h1>
<form id="form_899964" class="appnitro" method="post" action="formbook.php">
<div class="form_description">
<h2>Booking Form</h2>
<p>This is form for booking the banquet Please specify with all details.ThankYou!!</p>
</div>
<ul >

<li id="li_1" >


<label class="description" for="element_1">Your Name </label>
<span>
<input id="element_1_1" name= "element_1_1" class="element text" maxlength="255" size="8"
value=""/>
<label>First</label>
</span>
<span>
<input id="element_1_2" name= "element_1_2" class="element text" maxlength="255" size="14"
value=""/>
<label>Last</label>
</span>
<p class="guidelines" id="guide_1"><small>Both are necessary</small></p>
</li>
<li id="li_2" >
<label class="description" for="element_2">Address </label>

Page | 117

D SAPPHIRE

<div>
<input id="element_2_1" name="element_2_1" class="element text large" value="" type="text">
<label for="element_2_1">Street Address</label>
</div>

<div>
<input id="element_2_2" name="element_2_2" class="element text large" value="" type="text">
<label for="element_2_2">Address Line 2</label>
</div>

<div class="left">
<input

id="element_2_3"

name="element_2_3"

class="element

text

medium"

value=""

class="element

text

medium"

value=""

type="text">
<label for="element_2_3">City</label>
</div>

<div class="right">
<input

id="element_2_4"

name="element_2_4"

type="text">
<label for="element_2_4">State / Province / Region</label>
</div>
<div class="left">
<input id="element_2_5" name="element_2_5" class="element text
medium" maxlength="15" value="" type="text">
<label for="element_2_5">Postal / Zip Code</label>
</div>
<div class="right">
<select
class="element

select

medium"

id="element_2_6"

name="element_2_6">
<option value="" selected="selected"></option>
<option value="Afghanistan" >Afghanistan</option>
<option value="Albania" >Albania</option>
<option value="Algeria" >Algeria</option>
<option value="Andorra" >Andorra</option>
<option value="Antigua and Barbuda" >Antigua and Barbuda</option>
<option value="Argentina" >Argentina</option>
<option value="Armenia" >Armenia</option>

Page | 118

D SAPPHIRE
<option value="Australia" >Australia</option>
<option value="Austria" >Austria</option>
<option value="Azerbaijan" >Azerbaijan</option>
<option value="Bahamas" >Bahamas</option>
<option value="Bahrain" >Bahrain</option>
<option value="Bangladesh" >Bangladesh</option>
<option value="Barbados" >Barbados</option>
<option value="Belarus" >Belarus</option>
<option value="Belgium" >Belgium</option>
<option value="Belize" >Belize</option>
<option value="Benin" >Benin</option>
<option value="Bhutan" >Bhutan</option>
<option value="Bolivia" >Bolivia</option>
<option value="Bosnia and Herzegovina" >Bosnia and Herzegovina</option>
<option value="Botswana" >Botswana</option>
<option value="Brazil" >Brazil</option>
<option value="Brunei" >Brunei</option>
<option value="Bulgaria" >Bulgaria</option>
<option value="Burkina Faso" >Burkina Faso</option>
<option value="Burundi" >Burundi</option>
<option value="Cambodia" >Cambodia</option>
<option value="Cameroon" >Cameroon</option>
<option value="Canada" >Canada</option>
<option value="Cape Verde" >Cape Verde</option>
<option value="Central African Republic" >Central African Republic</option>
<option value="Chad" >Chad</option>
<option value="Chile" >Chile</option>
<option value="China" >China</option>
<option value="Colombia" >Colombia</option>
<option value="Comoros" >Comoros</option>
<option value="Congo" >Congo</option>
<option value="Costa Rica" >Costa Rica</option>
<option value="Cte d'Ivoire" >Cte d'Ivoire</option>
<option value="Croatia" >Croatia</option>
<option value="Cuba" >Cuba</option>
<option value="Cyprus" >Cyprus</option>
<option value="Czech Republic" >Czech Republic</option>
<option value="Denmark" >Denmark</option>
<option value="Djibouti" >Djibouti</option>
<option value="Dominica" >Dominica</option>
<option value="Dominican Republic" >Dominican Republic</option>
<option value="East Timor" >East Timor</option>
<option value="Ecuador" >Ecuador</option>
<option value="Egypt" >Egypt</option>
<option value="El Salvador" >El Salvador</option>
<option value="Equatorial Guinea" >Equatorial Guinea</option>
<option value="Eritrea" >Eritrea</option>
<option value="Estonia" >Estonia</option>
<option value="Ethiopia" >Ethiopia</option>
<option value="Fiji" >Fiji</option>
<option value="Finland" >Finland</option>
<option value="France" >France</option>
<option value="Gabon" >Gabon</option>
<option value="Gambia" >Gambia</option>
<option value="Georgia" >Georgia</option>
<option value="Germany" >Germany</option>

Page | 119

D SAPPHIRE
<option value="Ghana" >Ghana</option>
<option value="Greece" >Greece</option>
<option value="Grenada" >Grenada</option>
<option value="Guatemala" >Guatemala</option>
<option value="Guinea" >Guinea</option>
<option value="Guinea-Bissau" >Guinea-Bissau</option>
<option value="Guyana" >Guyana</option>
<option value="Haiti" >Haiti</option>
<option value="Honduras" >Honduras</option>
<option value="Hong Kong" >Hong Kong</option>
<option value="Hungary" >Hungary</option>
<option value="Iceland" >Iceland</option>
<option value="India" >India</option>
<option value="Indonesia" >Indonesia</option>
<option value="Iran" >Iran</option>
<option value="Iraq" >Iraq</option>
<option value="Ireland" >Ireland</option>
<option value="Israel" >Israel</option>
<option value="Italy" >Italy</option>
<option value="Jamaica" >Jamaica</option>
<option value="Japan" >Japan</option>
<option value="Jordan" >Jordan</option>
<option value="Kazakhstan" >Kazakhstan</option>
<option value="Kenya" >Kenya</option>
<option value="Kiribati" >Kiribati</option>
<option value="North Korea" >North Korea</option>
<option value="South Korea" >South Korea</option>
<option value="Kuwait" >Kuwait</option>
<option value="Kyrgyzstan" >Kyrgyzstan</option>
<option value="Laos" >Laos</option>
<option value="Latvia" >Latvia</option>
<option value="Lebanon" >Lebanon</option>
<option value="Lesotho" >Lesotho</option>
<option value="Liberia" >Liberia</option>
<option value="Libya" >Libya</option>
<option value="Liechtenstein" >Liechtenstein</option>
<option value="Lithuania" >Lithuania</option>
<option value="Luxembourg" >Luxembourg</option>
<option value="Macedonia" >Macedonia</option>
<option value="Madagascar" >Madagascar</option>
<option value="Malawi" >Malawi</option>
<option value="Malaysia" >Malaysia</option>
<option value="Maldives" >Maldives</option>
<option value="Mali" >Mali</option>
<option value="Malta" >Malta</option>
<option value="Marshall Islands" >Marshall Islands</option>
<option value="Mauritania" >Mauritania</option>
<option value="Mauritius" >Mauritius</option>
<option value="Mexico" >Mexico</option>
<option value="Micronesia" >Micronesia</option>
<option value="Moldova" >Moldova</option>
<option value="Monaco" >Monaco</option>
<option value="Mongolia" >Mongolia</option>
<option value="Montenegro" >Montenegro</option>
<option value="Morocco" >Morocco</option>
<option value="Mozambique" >Mozambique</option>

Page | 120

D SAPPHIRE
<option value="Myanmar" >Myanmar</option>
<option value="Namibia" >Namibia</option>
<option value="Nauru" >Nauru</option>
<option value="Nepal" >Nepal</option>
<option value="Netherlands" >Netherlands</option>
<option value="New Zealand" >New Zealand</option>
<option value="Nicaragua" >Nicaragua</option>
<option value="Niger" >Niger</option>
<option value="Nigeria" >Nigeria</option>
<option value="Norway" >Norway</option>
<option value="Oman" >Oman</option>
<option value="Pakistan" >Pakistan</option>
<option value="Palau" >Palau</option>
<option value="Panama" >Panama</option>
<option value="Papua New Guinea" >Papua New Guinea</option>
<option value="Paraguay" >Paraguay</option>
<option value="Peru" >Peru</option>
<option value="Philippines" >Philippines</option>
<option value="Poland" >Poland</option>
<option value="Portugal" >Portugal</option>
<option value="Puerto Rico" >Puerto Rico</option>
<option value="Qatar" >Qatar</option>
<option value="Romania" >Romania</option>
<option value="Russia" >Russia</option>
<option value="Rwanda" >Rwanda</option>
<option value="Saint Kitts and Nevis" >Saint Kitts and Nevis</option>
<option value="Saint Lucia" >Saint Lucia</option>
<option value="Saint Vincent and the Grenadines" >Saint Vincent and the Grenadines</option>
<option value="Samoa" >Samoa</option>
<option value="San Marino" >San Marino</option>
<option value="Sao Tome and Principe" >Sao Tome and Principe</option>
<option value="Saudi Arabia" >Saudi Arabia</option>
<option value="Senegal" >Senegal</option>
<option value="Serbia and Montenegro" >Serbia and Montenegro</option>
<option value="Seychelles" >Seychelles</option>
<option value="Sierra Leone" >Sierra Leone</option>
<option value="Singapore" >Singapore</option>
<option value="Slovakia" >Slovakia</option>
<option value="Slovenia" >Slovenia</option>
<option value="Solomon Islands" >Solomon Islands</option>
<option value="Somalia" >Somalia</option>
<option value="South Africa" >South Africa</option>
<option value="Spain" >Spain</option>
<option value="Sri Lanka" >Sri Lanka</option>
<option value="Sudan" >Sudan</option>
<option value="Suriname" >Suriname</option>
<option value="Swaziland" >Swaziland</option>
<option value="Sweden" >Sweden</option>
<option value="Switzerland" >Switzerland</option>
<option value="Syria" >Syria</option>
<option value="Taiwan" >Taiwan</option>
<option value="Tajikistan" >Tajikistan</option>
<option value="Tanzania" >Tanzania</option>
<option value="Thailand" >Thailand</option>
<option value="Togo" >Togo</option>
<option value="Tonga" >Tonga</option>

Page | 121

D SAPPHIRE
<option value="Trinidad and Tobago" >Trinidad and Tobago</option>
<option value="Tunisia" >Tunisia</option>
<option value="Turkey" >Turkey</option>
<option value="Turkmenistan" >Turkmenistan</option>
<option value="Tuvalu" >Tuvalu</option>
<option value="Uganda" >Uganda</option>
<option value="Ukraine" >Ukraine</option>
<option value="United Arab Emirates" >United Arab Emirates</option>
<option value="United Kingdom" >United Kingdom</option>
<option value="United States" >United States</option>
<option value="Uruguay" >Uruguay</option>
<option value="Uzbekistan" >Uzbekistan</option>
<option value="Vanuatu" >Vanuatu</option>
<option value="Vatican City" >Vatican City</option>
<option value="Venezuela" >Venezuela</option>
<option value="Vietnam" >Vietnam</option>
<option value="Yemen" >Yemen</option>
<option value="Zambia" >Zambia</option>
<option value="Zimbabwe" >Zimbabwe</option>
</select>
<label for="element_2_6">Country</label>
</div>
</li>

<li id="li_3" >

<label class="description" for="element_3">Phone </label>


<span>
<input id="element_3_1" name="element_3_1" class="element text" size="3" maxlength="3"
value="" type="text"> <label for="element_3_1">(###)</label>
</span>
<span>
<input id="element_3_2" name="element_3_2" class="element text"
size="3" maxlength="3" value="" type="text"> <label for="element_3_2">###</label>
</span>
<span>
<input id="element_3_3" name="element_3_3" class="element text"
size="4" maxlength="4" value="" type="text">
<label for="element_3_3">####</label>
</span>
</li>
<li id="li_4" >
<label class="description" for="element_4">Email </label>
<div>
<input id="element_4" name="element_4" class="element text medium"
type="text" maxlength="255" value=""/>
</div>
</li>
<li id="li_7" >
<label class="description" for="element_7">Choose Hall </label>
<div>
<select class="element select medium" id="element_7" name="element_7">

Page | 122

D SAPPHIRE
<option value="" selected="selected"></option>
<option value="Vatika" >Vatika</option>
<option value="Celebrations" >Celebrations</option>
<option value="Meeting Room" >Meeting Room</option>
<option value="Board Room" >Board Room</option>
<option value="Mapple" >Mapple</option>
<option value="Shagun" >Shagun</option>
</select>
<p><strong>What

type

of

party

need?:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

you

type="text"

name="party"

value=""><br>
</div>
</li>
<p><strong>How

many

rooms

you

book?:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

want
type="text"

to

name="hroom"

value=""><br>
<li id="li_6" >
<label class="description" for="element_6">Date </label>
<span>
<p><strong>Date

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="Date"

name="da" value=""><br>
</li>
<li id="li_8" >
<label class="description" for="element_8">Event Planner </label>
<p><strong>Enter
Event
Planner
:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="text"

Name
name="eplan"

value=""><br>
<p><strong>Enter Theme Name(Refer The Wedding page to know the list of the themes )
:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="text"

name="theme"

value=""><br>

<li id="li_9" >


<label class="description" for="element_9">Transportation </label>
<div>
<select class="element select medium" id="element_9" name="element_9">
<option value="" selected="selected"></option>
<option value="1" >None</option>
<option value="2" >Honda Accord</option>
<option value="3" >Swift Dezire</option>
<option value="4" >Indica</option>
<option value="5" >Toyota Etios</option>
</select>
</div>
</li>
<p class="guidelines" id="guide_1"><small>For each car 5 will be booked at a time</small></p>
<li id="li_10" >
<label class="description" for="element_10">Do you want to book the boutique? </label>

Page | 123

D SAPPHIRE
<div>
<select class="element select medium" id="element_10" name="element_10">
<option value="" selected="selected"></option>
<option value="Yes" >Yes</option>
<option value="No" >No</option>
</select>
</div>
</li>
<?php echo element_8;?>
<li id="li_11" >
</li>
<li id="li_15" >
<label class="description" for="element_15">Do you want to Book a Honeymoon
Suite
</label>
<div>
<select class="element select medium" id="element_15" name="element_15">
<option value="" selected="selected"></option>
<option value="Yes" >Yes</option>
<option value="No" >No</option>
</select>
</div>
</li>
<li id="li_14" >
<label class="description" for="element_14">Do you want cartoons for
entertainment? </label>
<div>
<select class="element select medium" id="element_14" name="element_14">
<option value="" selected="selected"></option>
<option value="Yes" >Yes</option>
<option value="No" >No</option>
</select>
</div>
</li>
<li id="li_13" >
<label class="description" for="element_13">Do you want to book the parlour?
</label>
<div>
<select class="element select medium" id="element_13" name="element_13">
<option value="" selected="selected"></option>
<option value="Yes" >Yes</option>
<option value="No" >No</option>
</select>
</div>
</li>
<li id="li_12" >
<label class="description" for="element_12">Do you want Dance Events in your
wedding? </label>
<div>
<select class="element select medium" id="element_12" name="element_12">
<option value="" selected="selected"></option>

Page | 124

D SAPPHIRE
<option value="Yes" >Yes</option>
<option value="No" >No</option>
</select>
</div>
</li>
<li class="buttons">
<input type="hidden" name="form_id" value="899964" />
<input

id="saveForm"

class="button_text"

type="submit"

name="submit" value="Submit" />


</li>
</ul>
</form>
<div id="footer">
Generated by <a href="index.php">D Sapphire</a>
</div>
</div>
<img id="bottom" src="bottom.png" alt="">
</body>
</html>
FormBook.php
<?php
$hostname="localhost"; //local server name default localhost
$username="root"; //mysql username default is root.
$password="";
//blank if no password is set for mysql.
$database="sapphire"; //database name which you created
$con=mysql_connect($hostname,$username,$password);
if(! $con)
{
die('Connection Failed'.mysql_error());
}
$x=0;
mysql_select_db($database,$con);
If(isset($_REQUEST['submit'])!='')
{
If($_REQUEST['element_1_1']==''||$_REQUEST['element_1_2']==''||
$_REQUEST['element_2_1']==''||$_REQUEST['element_2_2']==''||
$_REQUEST['element_2_3']==''||$_REQUEST['element_2_4']==''||
$_REQUEST['element_2_5']==''||$_REQUEST['element_2_6']==''||
$_REQUEST['element_3_1']==''||$_REQUEST['element_3_2']==''||
$_REQUEST['element_3_3']==''||$_REQUEST['element_4']==''||$_REQUEST['element_7']==''||
$_REQUEST['party']==''||$_REQUEST['hroom']==''||$_REQUEST['da']==''||
$_REQUEST['eplan']==''||$_REQUEST['theme']==''||$_REQUEST['element_10']==''||
$_REQUEST['element_15']==''||$_REQUEST['element_14']==''||$_REQUEST['element_13']==''||
$_REQUEST['element_12']=='')
{
Echo "please fill the empty field.";

Page | 125

D SAPPHIRE
}
Else
{
$e="select Eavailable,Efees from eavailable where Ename='".$_REQUEST['eplan']."'";
$r=mysql_query($e);
$row = mysql_fetch_row($r);
$num = mysql_num_rows($r);
if($row[0]=='no')
{
exit("The Event Planner is right now not available for booking");
}
else if($num==0)
{
echo"The event planner you want is not available in our database.Please visit our planner page to
check it.<br><br>";
}
else
{
$sql="insert
into

payments(Type,Charges,Date)

values('Event

Planner','".$row[1]."','".

$_REQUEST['da']."')";
$res=mysql_query($sql);
$x=$x+$row[1];
$sq="update eavailable set Eavailable='no'where Ename='".$_REQUEST['eplan']."'";
$result = mysql_query($sq);
}
$sql="insert into payments(Type,Charges,Date) values('Theme',2000,'".$_REQUEST['da']."')";
$res=mysql_query($sql);
$x=$x+2000;
$h="select Available,Hprice from halls where Hname='".$_REQUEST['element_7']."'";
$r=mysql_query($h);
$row = mysql_fetch_row($r);
if($row[0]=='no')
{
exit("The Hall is already booked.Please try another one.");
}
else
{
$sql="insert into payments(Type,Charges,Date) values('Hall','".$row[1]."','".$_REQUEST['da']."')";
$res=mysql_query($sql);
$x=$x+$row[1];
$sq="update halls set Available='no'where Hname='".$_REQUEST['element_7']."'";
$result = mysql_query($sq);
}
}
$sql="select count(Rooms) from reroom where BookDate='".$_REQUEST['da']."'";
$res=mysql_query($sql);
$row=mysql_fetch_array($res);
$a=$row[0];
if($row[0]+$_REQUEST['hroom']>9)

Page | 126

D SAPPHIRE
{
exit('The rooms are booked for this date');
}
else
{
$sql="insert into payments(Type,Charges,Date) values('Rooms',4000,'".$_REQUEST['da']."')";
$res=mysql_query($sql);
$x=$x+4000;
$sq="insert into reroom(Guname,BookDate,Rooms) values('".$_REQUEST['element_1_1']."','".
$_REQUEST['da']."',$a)";
$re=mysql_query($sq);
}
$sql="select Cnum from cavailable where Cname='".$_REQUEST['element_9']."'";
$res=mysql_query($sql);
$row = mysql_fetch_row($res);
if($row[0]>5)
{
exit('The car is already booked.Try choosing another car');
}
else
{
$sql="insert into payments(Type,Charges,Date) values('Transport',10000,'".$_REQUEST['da']."')";
$res=mysql_query($sql);
$x=$x+10000;
$sq="update cavailable set Cnum=Cnum-5 where Cname='".$_REQUEST['element_9']."'";
$result = mysql_query($sq);
}
if($_REQUEST['element_10']=='yes')
{
$sql="insert into payments(Type,Charges,Date) values('Boutique',5000,'".$_REQUEST['da']."')";
$res=mysql_query($sql);
$x=$x+5000;
}
if($_REQUEST['element_15']=='yes')
{
$sql="insert into payments(Type,Charges,Date) values('Hsuite',15000,'".$_REQUEST['da']."')";
$res=mysql_query($sql);
$x=$x+15000;
}
if($_REQUEST['element_12']=='yes')
{
$sql="insert into payments(Type,Charges,Date) values('Event',2000,'".$_REQUEST['da']."')";
$res=mysql_query($sql);
$x=$x+2000;
}
if($_REQUEST['element_13']=='yes')
{
$sql="insert into payments(Type,Charges,Date) values('Parlour',5000,'".$_REQUEST['da']."')";
$res=mysql_query($sql);
$x=$x+5000;

Page | 127

D SAPPHIRE
}
if($_REQUEST['element_14']=='yes')
{
$sql="insert into payments(Type,Charges,Date) values('Cartoons',1000,'".$_REQUEST['da']."')";
$res=mysql_query($sql);
$x=$x+1000;
}
$sql="insert

into

bookbanquet(fname,lname,saddr,city,state,zip,country,phone,email,hall,party,rooms,date,eplan,them
e,boutique,hsuite,cartoons,parlour,devent,amount)

values('".$_REQUEST['element_1_1']."','".

$_REQUEST['element_1_2']."',

concat('".$_REQUEST['element_2_1']."','".

$_REQUEST['element_2_2']."'),'".$_REQUEST['element_2_3']."',

'".

$_REQUEST['element_2_4']."','".$_REQUEST['element_2_5']."',

'".

$_REQUEST['element_2_6']."',concat('".$_REQUEST['element_3_1']."','".
$_REQUEST['element_3_2']."','".$_REQUEST['element_3_3']."'),'".$_REQUEST['element_4']."','".
$_REQUEST['element_7']."','".$_REQUEST['party']."','".$_REQUEST['hroom']."','".
$_REQUEST['da']."','".$_REQUEST['eplan']."','".$_REQUEST['theme']."','".
$_REQUEST['element_10']."','".$_REQUEST['element_15']."','".$_REQUEST['element_14']."','".
$_REQUEST['element_13']."','".$_REQUEST['element_12']."',$x)";
$res=mysql_query($sql);
$result = mysql_query("SELECT boid FROM bookbanquet

WHERE

fname

='".

$_REQUEST['element_1_1']."'");
$row = mysql_fetch_row($result);
$i=$row[0];
$_SESSION['ch'] = $i;
$q="insert into bookdetails(Mid,Amount) values(concat('booking Id',$i),$x)";
$e=mysql_query($q);
If($res)
{
Echo "Congrats!!! You are booked!!<BR><BR> Payment Receipt <br><br> Your Booking ID is:";
Echo $i;
Echo "<br><br>Please remember the id for future transactions";
Echo "The rest of the payments will be done on the desk<bR><br>";
Echo "The payments done till now :: ";
Echo $x;
Echo "RS.";
Echo "<br><br>The Booked Date is : ";
Echo $_REQUEST['da'];
Echo "<br><br>Choosed Event Planner is :";
echo $_REQUEST['eplan'];
Echo "<br><br>Choosed Theme is :";
echo $_REQUEST['theme'];
Echo "<br><br>Choosed Hall is :";
echo $_REQUEST['element_7'];

Page | 128

D SAPPHIRE

Echo "<br><br>Number of Rooms selected are :";


echo $_REQUEST['hroom'];
Echo "<br><br>Your payment until now is:";
echo $x;
?>
<br><br>
<input type=button onclick="window.print()" value='Print Payment Receipt'>
<br><br>
<a href="pay.html"target="_top"><button>Wanna pay it now??</button></a>
<?php
}Else
{
Echo "There is some problem in inserting record";
}
}
?>
Membersee.php
<html>
<img

src='style/images/bg/rep1.jpg'

style='position:fixed;top:0px;left:0px;width:100%;height:100%;z-index:-1;'>
<?php
echo "<br><br><center><strong>List of Members!!!! <br><br>";
$con=mysqli_connect("localhost","root","","sapphire");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$result = mysqli_query($con,"SELECT Mname FROM register1");
echo "<table border='1'>
<tr>
<th>Member Name</th>
</tr>";
while($row = mysqli_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['Mname'] . "</td>";
echo "</tr>";

Page | 129

D SAPPHIRE
}
echo "</table><br><br><br><Br>";
$res = mysqli_query($con,"SELECT count(Mid) FROM register1");
echo "<table border='1'>
<tr>
<th>Total Number of Members</th>
</tr>";
while($row = mysqli_fetch_array($res))
{
echo "<tr>";
echo "<td>" . $row['count(Mid)'] . "</td>";
echo "</tr>";
}
echo "</table>";
mysqli_close($con);
?>
<br><Br><br>
<input type=button onclick="window.print()" value='Print Report'>
<a href="index.php"><button>Go Back</button></a><br><br>
Counter.php
<?php
// Connects to your Database
$dbc = mysql_connect('localhost','root','') or die("Cant connect :" . mysql_error());
mysql_select_db("sapphire",$dbc)
or
die("Cant connect :" . mysql_error());
//Adds one to the counter
mysql_query("UPDATE counter SET counter = counter + 1");
//Retreives the current count
$count = mysql_fetch_row(mysql_query("SELECT counter FROM counter"));
header("Content-type: image/png");
$im = @imagecreate(250, 30)
or die("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate($im, 0, 0, 0);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 5, 10, 5, "You are visitor number $count[0]", $text_color);
imagepng($im);
imagedestroy($im);
//Displays the count on your site

Page | 130

D SAPPHIRE
print "$count[0]";
?>
Post.html
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>
<meta charset="UTF-8">
<meta name="viewport"

content="width=device-width,initial-scale=1,maximum-scale=1,user-

scalable=no">
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link
rel="stylesheet"
type='text/css'
href='http://fonts.googleapis.com/css?
family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/css/ie8.css" media="all">
<![endif]-->
<!--[if IE 9]>
<link rel="stylesheet" type="text/css" href="style/css/ie9.css" media="all">
<![endif]-->
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/bg/ba3.jpg");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>
<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:false,
duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,
numStatus:false,
banners:false,
waitBannerAnimation:false,

Page | 131

D SAPPHIRE
progressBar:false
})
});
</script>
<script type="text/javascript">
function getImage(v) {
var num = v.value;
if(num==1) {
document.getElementById("imgt").setAttribute("src","style/images/art/travel.jpg");
}
else if(num==2) {
document.getElementById("imgt").setAttribute("src","style/images/art/tb.jpg");
}
else if(num==3) {
document.getElementById("imgt").setAttribute("src","style/images/art/tbu.jpg");
}
else if(num==4) {
document.getElementById("imgt").setAttribute("src","style/images/art/trose.jpg");
}
else if(num==5) {
document.getElementById("imgt").setAttribute("src","style/images/art/tvi.jpg");
}
else if(num==6) {
document.getElementById("imgt").setAttribute("src","style/images/art/tgar.jpg");
}
else if(num==7) {
document.getElementById("imgt").setAttribute("src","style/images/art/tindia.jpg");
}
else if(num==8) {
document.getElementById("imgt").setAttribute("src","style/images/art/tcou.jpg");
}
else if(num==9) {
document.getElementById("imgt").setAttribute("src","style/images/art/tro.jpg");
}
else if(num==10) {
document.getElementById("imgt").setAttribute("src","style/images/art/tsumm.jpg");
}
else if(num==11) {
document.getElementById("imgt").setAttribute("src","style/images/art/tspring.jpg");
}
else if(num==12) {
document.getElementById("imgt").setAttribute("src","style/images/art/tvintage.jpg");
}
else if(num==13) {
document.getElementById("imgt").setAttribute("src","style/images/art/tstary.jpg");
}
else if(num==14) {
document.getElementById("imgt").setAttribute("src","style/images/art/tboly.png");
}

Page | 132

D SAPPHIRE

}
</script>
</head>
<body class="single">
<div class="scanlines"></div>
<div class="header-wrapper opacity">
<div class="header">
<div class="logo"> <a href="index.html"> <img src="style/images/art/logon.jpg" alt=""> </a>
</div>
<div id="menu-wrapper">
<div id="menu" class="menu">
<ul id="tiny">
<li><a href="index.php">Home</a>
</li>
<li class="active"><a href="post.html">Wedding</a>
</li>
<li><a href="restaurant.html">Restaurant</a>
<li><a href="club.html">Club</a></li>
<li><a href="login.html">Login</a></li>
</li>
<li><a href="tourism.html">Tourism</a>
</li>
<li><a href="contact.html">Contact</a></li>
<li><a href="frameset/frameset.html">Specially For you!!!!</a></li>
</ul>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<div class="wrapper">
<div class="intro" style='text-align:left'>D Sapphire has been one of the most highly recommended
special occasion facilities in the tri-state area for many years. Conveniently located 3rd Floor
Dattani Square,vasai Road,Thane - 401202, we are the perfect venue to host events for those with
guests coming from all directions of the Mumbai.
At The Sapphire, our goal is to make each event a wonderful success. Our experienced staff will
ensure that your special occasion turns out exactly the way you have planned. Our establishment has
been voted the Number One facility to host your event in the northern suburbs by the readers of the
Tribune Review for the past 10 years. Whether you are celebrating a wedding, anniversary, reunion
or any other occasion, you should consider D Sapphire as the setting for your everlasting memories.
</div>
<ul class="social">
<li><a

class="facebook"

href="https://facebook.com/pages/Dsapphire-

Banquets/863275620367060"></a></li>
<li><a class="twitter" href="https://twitter.com"></a></li>

Page | 133

D SAPPHIRE
<li><a class="dribbble" href="https://dribble.com"></a></li>
<li><a class="flickr" href="https://flickr.com"></a></li>
<li><a class="linkedin" href="https://linkedin.com"></a></li>
</ul>
<div class="main-image">
<h3><strong>Make your day the best </strong> </h3>
<div class="box-1"> <img src="style/images/art/t1.jpg" alt="" class="img-border img-indent">
<br>
<br>
<br>
<br>
<br>
<div class="extra-wrap">
<p class="text-1"style="color:red;font-size:30px">A marriage which everyone will
remember and wil want the same </p>
<br>
<br>
<select name="number" id="course" style="width:158px;" onchange="getImage(this)">
<option value="none">----Choose the Theme ----</option>
<option value="1">Travel Theme</option>
<option value="2">Beach Theme</option>
<option value="3">Butterfly Theme</option>
<option value="4">Rose Theme</option>
<option value="5">Village Theme</option>
<option value="6">Garden Theme</option>
<option value="7">Indian Theme</option>
<option value="8">Country Theme</option>
<option value="9">Romantic Theme</option>
<option value="10">Summer Theme</option>
<option value="11">Spring Theme</option>
<option value="12">Vintage Theme</option>
<option value="13">Starry Night Theme</option>
<option value="14">Bollywood Theme</option>
</select>
<br><br>
<img id="imgt" src="style/images/art/cover.jpg" width="300" height="300"/>
</div>
</div>
<br>
<br><br>
<div class="wrapper">

<p> Services </font> <br><br></p>


<p><strong>Doing the wedding here will provide you with everything one needs to have.<br>
Click below to see some of them</p>

Page | 134

D SAPPHIRE
<div class="post format-chat box">
<h2 class="title";><a href="planner.php">Event Planner</a></h2>
<h2 class="title";><a href="halls.html">Halls</a></h2>
<h2 class="title";><a href="rooms.html">Accomodation</a></h2>
<h2 class="title";><a href="boutique.html">Boutique</a></h2>
<h2 class="title";><a href="parlour.html">Parlour</a></h2>
<h2 class="title";><a href="transport.html">Transportation</a></h2>
<h2 class="title";><a href="catering.html">Catering</a></h2>
</div>
</div></div>
<div class="footer-wrapper">
<div id="footer">
<p Style="Color: #1A9E00; size: 5; font-size: large;"> Contact Us ::

[email protected]

...<br><br> Phone no ::7507968233,9867176702 </p>


<p Style ="Color: Blue; Size: 5; font-size: large; background-color: none;">2012 Copyrighted
Designzzz.com</p>
</div>
<div style="clear:both;"></div>
</div>
</body>
</html>

Planner.php
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>
<meta charset="UTF-8">
<meta name="viewport"

content="width=device-width,initial-scale=1,maximum-scale=1,user-

scalable=no">
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link
rel="stylesheet"
type='text/css'
href='http://fonts.googleapis.com/css?
family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<link
href="file:///I|/work/Compressed/kate-and-leo/css/grid_24.css"
rel="stylesheet"
type="text/css">
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/css/ie8.css" media="all">
<![endif]-->
<!--[if IE 9]>
<link rel="stylesheet" type="text/css" href="style/css/ie9.css" media="all">
<![endif]-->

Page | 135

D SAPPHIRE
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/bg/xx.jpg");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>
<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:false,
duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,
numStatus:false,
banners:false,
waitBannerAnimation:false,
progressBar:false
})
});
</script>
</head>
<body>
<div class="scanlines"></div>
<div class="header-wrapper opacity">
<div class="header">
<div class="logo"> <a href="index.html"> <img src="style/images/art/logon.jpg" alt=""> </a>
</div>
<div id="menu-wrapper">
<div id="menu" class="menu">
<ul id="tiny">
<li ><a href="index.php">Home</a>
</li>
<li class="active"><a href="post.html">Wedding</a>
</li>
<li><a href="restaurant.html">Restaurant</a>

Page | 136

D SAPPHIRE
<li><a href="club.html">Club</a></li>
<li><a href="login.html">Login</a></li>
</li>
<li><a href="tourism.html">Tourism</a>
</li>
<li><a href="contact.html">Contact</a></li>
<li><a href="frameset/frameset.html">Specially For you!!!!</a></li>
</ul>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<div class="wrapper">
<div class="intro" style='text-align:left'>You can have the beautiful, memorable wedding you have
always dreamed of without the stressful, time-consuming tasks that go along with the planning
process. Our coordinators will oversee everything on your special day so you can enjoy the special
moments that will be treasured for a lifetime.<br><br>
Price Range: $$$<br><br>
Services: Available for Consultation Only, Available for Wedding Day Coordination, Full
Coordination Services </div>
<section id="content">
<h2 class="h2-border">Event <span>Planner:</span></h2>
<p>A Perfect Event Productions and Party Rental
&amp; WE BRING A LOT TO THE TABLE
We do more than just providing tents, tables, chairs, chair covers, fresh floral, affordable
centerpieces and total table design. At A Perfect Event, our party professionals provide event
consultation and location recommendations, detailed diagrams of the event layout, on-time delivery
and pick-up, on-site staff and more. In other words, we sweat the small stuff, so you can be a guest
at your own event.
&amp; <br>
Other Services offered
We rent anything you need..........
</p>
<p>Quality Products
Within our vast inventory is everything you need to host a beautiful event. We have china, flatware,
table linens, chair covers and sashes. You can also rent tents or canopies, tables and chairs, dance
floors, bars, cake table, audio visual equiptment and we can even help you decorate with
centerpieces, lighting and more.
</p>
<p >The instructor, Misty, has over 23 years of experience in both managing floral shops,
wedding work and in teaching floral design. Your lessons will be in both the timeless art of classic
floral design and in trendy up to the minute designs, using fresh and silks flowers.
Below is a detailed course curriculum. As you can see, the lessons are incredibly comprehensive and
immediately after graduating you will be entirely ready go to work as a designer.

Page | 137

D SAPPHIRE

All classes are taught with a hands on, step-by-step style, in a stress-free environment that allows
each student to feel comfortable with what they learn before moving on. Since the classes are
limited to 6 students the instructor can offer more personal attention. Upon completion of the 80
hour course, students receive a certificate and individual assistance in deciding which area of floral
design is a best fit for them.
. </p>
<div class="grid_1">
<h3><strong>About</strong> company</h3>
<div class="extra-wrap">
<p class="text-1">A Perfect Event Productions and Party Rental
</p>
<p class="text-2">2924 E. Broadway Blvd.
Inside Somethings Old Somethings new
Tucson, AZ 85716 |<br>
Visit for more : http://www.aperfecteventproductions.com/</p>
<div class="box-1"> <img src="style\images\bg\plan1.jpeg" alt="" class="img-border imgindent">
</div>
<div class="grid_12">
<div class="top-1 alignright">
<br>
<br><br>
<br>
<h3><strong>Map of A Perfect Event Productions and Party Rental</strong></h3>
<div class="extra-wrap">
<p class="text-1">We now offer fresh flowers, exquisitely designed by one of Tucson's
leading floral designers. She offers 24 years of experience in making all your wedding dreams come
true!!
Let us handle your entire event!
Within our vast inventory is every little or big thing you can foresee needing to host a beautiful
event. We have china, flatware, table linens, chair covers and sashes. You can also rent tents or
canopies, tables and chairs, dance floors, bars, audio and visual equipment and we have more then
our share of design elements to help you decorate from centerpieces, lighting, furniture for lounge
areas, trees, screens, lamps, crystals and all things that add bling and more. Our designers are
experts at putting together a perfect table-scape and setting a mood for your event that is uniquely
you. Come in and check out our new candelabra's (pictured above) and hundreds of vases in
numerous shapes and sizes and let's get started on your Perfect Event. </p>
<div class="box-1"> <img src="style/images/bg/map.png" alt="" class="img-border imgindent">
</div>
</div>

Page | 138

D SAPPHIRE
<br><br>
Click below to know the available event planners
<a href="available.php" target="_"><input
type="button" value="Click Me"/></a>
<br><br><br>
Click below to know the event planners detail
<a href="eve.php" target="_"><input
type="button" value="Click Me"/></a>
<br><br><br>
<div class="footer-wrapper">
<div id="footer">
<p Style="Color: #224E07; size: 5; font-size: large;"> Contact Us ::

[email protected]

...<br><br> Phone no ::7507968233,9867176702 </p>


<p Style ="Color: Blue; Size: 5; font-size: large;">2012 Copyrighted Designzzz.com</p>
</div>
<div style="clear:both;"></div>
</div>
</section>
</body>
</html>
Halls.html
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>
<meta charset="UTF-8">
<meta name="viewport"

content="width=device-width,initial-scale=1,maximum-scale=1,user-

scalable=no">
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link
rel="stylesheet"
type='text/css'
href='http://fonts.googleapis.com/css?
family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/art/bad1.png");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>
<script>

Page | 139

D SAPPHIRE
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:false,
duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,
numStatus:false,
banners:false,
waitBannerAnimation:false,
progressBar:false
})
});
</script>
</head>
<body>
<div class="header">
<div class="header">
<div class="logo"> <a href="index.html"> <img src="style/images/art/logon.jpg" alt=""> </a>
</div>
<div id="menu-wrapper">
<div id="menu" class="menu">
<ul id="tiny">
<li><a href="index.php">Home</a>
</li>
<li class="active"><a href="post.html">Wedding</a>
</li>
<li><a href="restaurant.html">Restaurant</a>
<li><a href="club.html">Club</a></li>
<li><a href="login.html">Login</a></li>
</li>
<li><a href="tourism.html">Tourism</a>
</li>
<li><a href="contact.html">Contact</a></li>
<li><a href="frameset/frameset.html">Specially For you!!!!</a></li>
</ul>
</div>
</div>
<div class="clear"></div>
</div>
<div class="header-wrapper opacity">
<div class="wrapper">

Page | 140

D SAPPHIRE
<br><br><br>
<div class="intro"style='text-align:left'><br>We have 6 halls available for different purposes.
Shagun Hall is main hall for wedding purposes. The others are used for various parties.</div>
<div class="box-1"> <img src="style/images/art/hal1.jpg" alt="" class="img-border imgindent">
<br>
<br>
<br>
<br>
<br>
<p>
<div class="box-1"> <img src="style/images/art/hal2.jpg" alt="" class="img-border imgindent">
<br>
<br>
<br>
<br>
<br>
<div class="box-1"> <img src="style/images/art/hal3.jpg" alt="" class="img-border imgindent">
<br>
<br>

<div class="box-1"> <img src="style/images/art/hal4.jpg" alt="" class="img-border

img-indent">
<br>
<br><br>
<br><br>
<br><br><div class="box-1"> <img src="style/images/art/hal5.jpg" alt="" class="img-border
img-indent">
<br>
<div class="box-1"> <img src="style/images/art/hal6.jpg" alt="" class="img-border imgindent">
<br>
<br>
<br>
<br>
<br><div class="box-1"> <img src="style/images/art/hal7.jpg" alt="" class="img-border imgindent">
<br>
<center><br><br><p> Click on the button to check the availability of halls!!!</p><br><br><br>
<br><a href="hall.php"><button>Check Availability</button></a></center><br><br>
<br><br><br>

<div class="footer-wrapper">
<div id="footer">
<p Style="Color: #224E07; size: 5; font-size: large; "> Contact Us :: [email protected]
...<br><br> Phone no ::7507968233,9867176702 </p>
<p Style ="Color: Blue; Size: 5; font-size: large;">2012 Copyrighted Designzzz.com</p>
</div>

Page | 141

D SAPPHIRE
<div style="clear:both;"></div>
</div>
</body>
</html>
Available.php
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>
<meta charset="UTF-8">
<meta name="viewport"

content="width=device-width,initial-scale=1,maximum-scale=1,user-

scalable=no">
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link
rel="stylesheet"
type='text/css'
href='http://fonts.googleapis.com/css?
family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<link
href="file:///I|/work/Compressed/kate-and-leo/css/grid_24.css"
rel="stylesheet"
type="text/css">
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/css/ie8.css" media="all">
<![endif]-->
<!--[if IE 9]>
<link rel="stylesheet" type="text/css" href="style/css/ie9.css" media="all">
<![endif]-->
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/bg/fi.jpg");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>
<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:false,
duration:800,

Page | 142

D SAPPHIRE
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,
numStatus:false,
banners:false,
waitBannerAnimation:false,
progressBar:false
})
});
</script>
</head>
<?php
$con=mysqli_connect("localhost","root","","sapphire");
// Check connection
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
echo"<br><br> Available event planners right now are<br><br><br>";
echo"Name of the Planner&nbsp;&nbsp;&nbsp;&nbsp;Fees of the planner <br><br>";
$result = mysqli_query($con,"SELECT * FROM eavailable where Eavailable='yes'");
while($row = mysqli_fetch_array($result)) {
echo

$row['Ename']

"

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

"

$row['Efees'];
echo "<br>";
}
mysqli_close($con);
?>
<body>
<br><br><br>
<form><input

type="button"

value="Go

Back"

style="background-color:blue"

onClick="window.location.href='planner.php'"></form>
</body>
</html>
Eve.php
<html>
<img

src='style/images/bg/rep1.jpg'

style='position:fixed;top:0px;left:0px;width:100%;height:100%;z-index:-1;'>
<?php
echo "<center><strong><br><br><br>Event Planner Details<br><br>";
$con=mysqli_connect("localhost","root","","sapphire");
// Check connection
if (mysqli_connect_errno())

Page | 143

D SAPPHIRE
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
echo "<br><br>Event Planners<br>";
$result = mysqli_query($con,"SELECT Eid,Ename,Eaddr,Econt,Eemail,Ework,Efee FROM event");
echo "<table border='1'>
<tr>
<th>ID</th>
<th>Name</th>
<th>Address</th>
<th>Contact Number</th>
<th>Email</th>
<th>Work Experience(in years)</th>
<th>Fees</th>
</tr>";
while($row = mysqli_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['Eid'] . "</td>";
echo "<td>" . $row['Ename'] . "</td>";
echo "<td>" . $row['Eaddr'] . "</td>";
echo "<td>" . $row['Econt'] . "</td>";
echo "<td>" . $row['Eemail'] . "</td>";
echo "<td>" . $row['Ework'] . "</td>";
echo "<td>" . $row['Efee'] . "</td>";
echo "</tr>";
}
echo "</table>";
?>
<input type=button onclick="window.print()" value='Print Report'>
Hall.php
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>
<meta charset="UTF-8">
<meta name="viewport"

content="width=device-width,initial-scale=1,maximum-scale=1,user-

scalable=no">
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link
rel="stylesheet"
type='text/css'
href='http://fonts.googleapis.com/css?
family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>

Page | 144

D SAPPHIRE
<link

href="file:///I|/work/Compressed/kate-and-leo/css/grid_24.css"

rel="stylesheet"

type="text/css">
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/css/ie8.css" media="all">
<![endif]-->
<!--[if IE 9]>
<link rel="stylesheet" type="text/css" href="style/css/ie9.css" media="all">
<![endif]-->
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/bg/red.jpg");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>
<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:false,
duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,
numStatus:false,
banners:false,
waitBannerAnimation:false,
progressBar:false
})
});
</script>
</head>
<?php
$con=mysqli_connect("localhost","root","","sapphire");
// Check connection
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}

Page | 145

D SAPPHIRE
echo"<br><br> Available Halls right now are<br><br><br>";
echo"Name of the Hall :: &nbsp;Availability <br><br>";
$result = mysqli_query($con,"SELECT * FROM halls");
while($row = mysqli_fetch_array($result)) {
echo $row['Hname'] . ":: &nbsp; " . $row['Available'];
echo "<br>";
}
mysqli_close($con);
?>
<body>
<br><br><br>
<font color="red"><input type=button onclick="window.print()" value='Print Report'></font>
<form><input
type="button"
value="Go
Back"
style="background-color:blue"
onClick="window.location.href='post.html'"></form>
</body>
</html>
Rooms.html
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>
<meta charset="UTF-8">
<meta name="viewport"

content="width=device-width,initial-scale=1,maximum-scale=1,user-

scalable=no">
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link
rel="stylesheet"
type='text/css'
href='http://fonts.googleapis.com/css?
family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/bg/hh.jpg");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>
<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,

Page | 146

D SAPPHIRE
prevBu:'.prev',
nextBu:'.next',
playBu:false,
duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,
numStatus:false,
banners:false,
waitBannerAnimation:false,
progressBar:false
})
});
</script>
</head>
<body>
<div class="header">
<div class="header">
<div class="logo"> <a href="index.html"> <img src="style/images/art/logon.jpg" alt=""> </a>
</div>
<div id="menu-wrapper">
<div id="menu" class="menu">
<ul id="tiny">
<li><a href="index.php">Home</a>
</li>
<li class="active"><a href="post.html">Wedding</a>
</li>
<li><a href="restaurant.html">Restaurant</a>
<li><a href="club.html">Club</a></li>
<li><a href="login.html">Login</a></li>
</li>
<li><a href="tourism.html">Tourism</a>
</li>
<li><a href="contact.html">Contact</a></li>
<li><a href="frameset/frameset.html">Specially For you!!!!</a></li>
</ul>
</div>
</div>
<div class="clear"></div>
</div>
</div><br><br><br>
<div class="header-wrapper opacity">
<br><br><br>
<div class="wrapper">
<div class="intro"style='text-align:left'> The rooms are available only for the guests in any party
going on the "D Sapphire" which are standard, single, twin,junior suite and deluxe suite.All rooms
are delightfully decorated and offer an array of comforts and amenities.Each room has individually
controlled air conditioning, internet access,a satellite/cable television,IDD/DDD telephone,mini bar.
The hotel offers a business floor,and a non-smoking floor for our guests' convenience.The hotel will

Page | 147

D SAPPHIRE
offer the best service and make the hotel your home away from home.Room Service also available.
<br><br><p style="color:black;font size:xx-large"> Best Deal : Honeymoon Suite Available with
all arrangements... and most importantly in your budget!!!!</div>
<br><br>
<div id="slide">
<div class="slider" ">
<ul class="items">
<li><img src="style/images/art/room1.jpg" alt=""></li>
<li><img src="style/images/art/room2.jpg" alt=""></li>
<li><img src="style/images/art/room3.jpg" alt=""></li>
<li><img src="style/images/art/room4.jpg" alt=""></li>
<li><img src="style/images/art/room5.jpg" alt=""></li>
<li><img src="style/images/art/room6.jpg" alt=""></li>
<li><img src="style/images/art/room7.jpg" alt=""></li>
<li><img src="style/images/art/room8.jpg" alt=""></li>
<li><img src="style/images/art/room9.jpg" alt=""></li>
</ul>
</div>
<div class="wrapper">
<h3><strong>Present at your service all the time!!!</strong></h3><br><br>
<div class="box-1"> <img src="style/images/art/ser.jpg" alt="" class="img-border imgindent">
<br><br><br>
<div class="extra-wrap">
<p class="text-1"style="color: black; font-size: 30px; font-style: normal;">We are here
24X7 available for our guests. This is the menu of the service available for room ... Enjoy the day!!
</p>
<br>
<br>
<br><br>
<div class="box-1"> <img src="style/images/art/ser2.jpg" alt="" class="img-border imgindent">
<br><br>
<p class="text-2" style="color:blue;font-size:30px">We serve whatever u love<br>
</p><br><br>
</div>
</div><br>
<center><br><br><p> Do the Bookings!!!</p><br><br><br>
<br><a href="ch.html"><button>Book a Room</button></a></center><br><br>
<br><br>
<br><br><br>
<br><br><br><br>
</center>
<div class="footer-wrapper">
<div id="footer">

Page | 148

D SAPPHIRE
<p Style="Color: #1A9E00; size: 5; font-size: large;"> Contact Us ::

[email protected]

...<br><br> Phone no ::7507968233,9867176702 </p>


<p Style ="Color: Blue; Size: 5; font-size: large; background-color: none;">2012 Copyrighted
Designzzz.com</p>
</div>
<div style="clear:both;"></div>
</div>
</body>
</html>
Ch.html
<div align="center">
<p>Firstly, We have to verify that you are a member or not</p><br><br>
<form method="POST" action="cc.php">
Enter your Member ID first : <input type="text" name="mid">
<input type="submit" value="Log in">
</form>
</div>
cc.php
<?php
$dbc = mysql_connect('localhost','root','') or die("Cant connect :" . mysql_error());
mysql_select_db("sapphire",$dbc)
or
die("Cant connect :" . mysql_error());
$sql = mysql_query("SELECT Mname FROM register1 WHERE Mid='".$_REQUEST['mid']."'" );
session_start();
$a=$_REQUEST['mid'];
$_session['var']=$a;
if (mysql_num_rows($sql) >0) {
echo" Thank you for verifying";
header('Location: books2.html');
}
else
{
echo"Sorry! you are not registered !! Click on the link below to go to login page";?>
<form><input type="button" value="Go To Login Page" style="background-color:red"
onClick="window.location.href='login.html'"></form>
<?php
}
?>

Page | 149

D SAPPHIRE

Books2.html
<html>
<head>
<title>BOOKING FORM</title><link rel="stylesheet" type="text/css" href="style.css"></head>
<body>
<form name="booking" method="post" action="b.php">
<fieldset>
<legend>Booking Form </legend>
<p>YOUR
NAME:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="text"

name="mname" value=""><br>
<p>BOOKING DATE:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="date"

name="bdate" value=""><br>
<p>ROOM NUMBER:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br>
<select name="number" id="rno" style="width:158px;">
<option value="none">----Choose the Room Number ----</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option><option value="5">5</option>
<option value="6">6</option><option value="7">7</option>
<option value="8">8</option><option value="9">9</option>
<option value="10">10</option></select>
<br>
<p><input type="submit" name="submit" value="submit">
</fieldset>
</form>
</body>
</head>
</html>
b.php
<?php
$hostname="localhost"; //local server name default localhost
$username="root"; //mysql username default is root.
$password="";
//blank if no password is set for mysql.
$database="sapphire"; //database name which you created
$con=mysql_connect($hostname,$username,$password);
if(! $con)
{
die('Connection Failed'.mysql_error());
}
mysql_select_db($database,$con);
$originalDate = $_REQUEST['bdate'];
$newDate = date("Y-m-d", strtotime($originalDate));
$sql = mysql_query("SELECT BookDate,Rooms FROM reroom WHERE BookDate='".
$newDate."' && Rooms='".$_REQUEST['number']."'" );

Page | 150

D SAPPHIRE
if (mysql_num_rows($sql) >0) {
echo "This rooms are already booked for the following date plz try another date or room!!";
}
else
{
$sql="insert

into

reroom(Guname,BookDate,Rooms)

values('".$_REQUEST['mname']."','".

$newDate."','".$_REQUEST['number']."')";
$res=mysql_query($sql);
If($res)
{
Echo "Congrats!!! Your rooms are booked!!";
}
$s="insert into payments(Type,Charges,Date) values('Credit',2000,'".date('d'.'m'.'y')."')";
$re=mysql_query($s);
}
?>

Boutique.html

<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link

rel="stylesheet"

type='text/css'

href='http://fonts.googleapis.com/css?

family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>

Page | 151

D SAPPHIRE
<script src="style/js/selectnav.js"></script>
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/art/bad1.png");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>

<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:false,

duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,

Page | 152

D SAPPHIRE
slideshow:7000,
numStatus:false,
banners:false,
waitBannerAnimation:false,
progressBar:false
})
});
</script>

</head>
<body>
<div class="header">
<div class="header">
<div class="logo"> <a href="index.html"> <img src="style/images/art/logon.jpg" alt=""> </a> </div>
<div id="menu-wrapper">
<div id="menu" class="menu">
<ul id="tiny">
<li><a href="index.php">Home</a>
</li>
<li class="active"><a href="post.html">Wedding</a>

</li>
<li><a href="restaurant.html">Restaurant</a>
<li><a href="club.html">Club</a></li>

Page | 153

D SAPPHIRE
<li><a href="login.html">Login</a></li>
</li>
<li><a href="tourism.html">Tourism</a>
</li>
<li><a href="contact.html">Contact</a></li>
<li><a href="frameset/frameset.html">Specially For you!!!!</a></li>
</ul>

</div>
</div>
<div class="clear"></div>
</div>

<div class="header-wrapper opacity">

<div class="wrapper">
<br><br><br>
<div class="intro"style='text-align:left'>Now open for over 4 years, Ladies Boutiques have provided a very
personal service to many women over the years.
Our Boutiques offer great value for money and a very personal service to all of our Customers. Our fashions
offer a wide variety of the very best of Irish and European Designs from sizes 8 to 22. Whether you want a
Classic outfit or something funky and new, you'll find it here.

Page | 154

D SAPPHIRE
We also stock a wide range of accessories to complement the various labels available in-store. For example,
Jewellery, Shoes, Hats & Facinators, Tights and Wraps, to name but a few.

Deposits are also accepted on items for purchase for periods of up to 4 weeks. Gift vouchers are available in
store also. Check out our collections page for details and images of our latest collections, or alternatively
drop in to any of our stores to have a look in person.
</div>
<div class="box-1"> <img src="style/images/art/bout.jpg" alt="" class="img-border img-indent">
<br>
<br>
<br>
<br>
<br>
<p> We provide a lot in fashion Here are some stills from our designers. </p><br><br><br>
<div class="box-1"> <img src="style/images/art/bo1.jpg" alt="" class="img-border img-indent">
<br>
<br>
<br>
<br>
<br>
<div class="box-1"> <img src="style/images/art/bo4.jpg" alt="" class="img-border img-indent">
<br>
<br>

<div class="box-1"> <img src="style/images/art/bo5.jpg" alt="" class="img-border img-

indent">
<br>

Page | 155

D SAPPHIRE
<br><br>
<p> Classical and easy to wear. Get the best lehenga out from here!!!!</p>
<br><br>
<br><br><div class="box-1"> <img src="style/images/art/de1.jpg" alt="" class="img-border imgindent">
<br>
<div class="box-1"> <img src="style/images/art/de2.jpg" alt="" class="img-border img-indent">
<br>
<br>
<br>
<br>
<br>
<center><br><br><p> Click on the button to book the boutique!!!</p><br><br><br>
<br><a href="cbou.html"><button>Book it</button></a></center><br><br>

<br><br><br>

<div class="footer-wrapper">
<div id="footer">
<p Style="Color: #224E07; size: 5; font-size: large; "> Contact Us :: [email protected] ...<br><br>
Phone no ::7507968233,9867176702 </p>
<p Style ="Color: Blue; Size: 5; font-size: large;">2012 Copyrighted Designzzz.com</p>
</div>

Page | 156

D SAPPHIRE
<div style="clear:both;"></div>

</div>
</body>
</html>

Bou.html

<div align="center">
<form method="POST" action="bou.php">
Member ID: <input type="text" name="mid"> Booking Date: <input type="date" name="bod" value="">
<input type="submit" value="Book">
</form>

</div>

Bou.php

<?php

$dbc = mysql_connect('localhost','root','') or die("Cant connect :" . mysql_error());

mysql_select_db("sapphire",$dbc)

Page | 157

D SAPPHIRE
or
die("Cant connect :" . mysql_error());

If(isset($_REQUEST['submit'])!='')
{

If($_REQUEST['mid']=='' || $_REQUEST['bod']=='')
Echo "please fill the empty field.";
}
Else
{
$sql = mysql_query("SELECT Mname FROM register1 WHERE Mid='".$_REQUEST['mid']."'" );

if (mysql_num_rows($sql) >0) {

$sql="insert into bookbo(Mid,Bodate) values('".$_REQUEST['mid']."','".$_REQUEST['bod']."')";


$res=mysql_query($sql);
if($res)
{
echo"<br><br><br> You have Booked it Please visit on the date";
include 'boutique.html';

Page | 158

D SAPPHIRE
}
$s="insert into payments(Type,Charges,Date) values('Credit',500,'".date('d'.'m'.'y')."')";

$re=mysql_query($s);

}
else
{
echo"Member ID do not exist!! Please Register Yourself!!!<br> Please go back!!!";

}
?>

Parlour.html
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>
<meta charset="UTF-8">
<meta name="viewport"

content="width=device-width,initial-scale=1,maximum-scale=1,user-

scalable=no">

Page | 159

D SAPPHIRE
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link
rel="stylesheet"
type='text/css'
href='http://fonts.googleapis.com/css?
family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/bg/add.jpg");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>
<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:false,
duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,
numStatus:false,
banners:false,
waitBannerAnimation:false,
progressBar:false
})
});
</script>
</head>
<body>
<div class="header">
<div class="header">
<div class="logo"> <a href="index.html"> <img src="style/images/art/logon.jpg" alt=""> </a>
</div>
<div id="menu-wrapper">
<div id="menu" class="menu">
<ul id="tiny">
<li><a href="index.php">Home</a>
</li>
<li class="active"><a href="post.html">Wedding</a>

Page | 160

D SAPPHIRE
</li>
<li><a href="restaurant.html">Restaurant</a>
<li><a href="club.html">Club</a></li>
<li><a href="login.html">Login</a></li>
</li>
<li><a href="tourism.html">Tourism</a>
</li>
<li><a href="contact.html">Contact</a></li>
<li><a href="frameset/frameset.html">Specially For you!!!!</a></li>
</ul>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<div class="header-wrapper opacity">
<div class="wrapper">
<br><br><br>
<div class="intro"style="color:black">We bring to you a bouquet of services to remain worry free
about your looks. We have made effortless beauty care and the equipment and products we use are
of premium. We offer fashionable hair-dos for all seasons.
<br>
<br>
<br>
<br>
<br>
<div class="box-1"> <img src="style/images/art/parl7.jpg" alt="" class="img-border imgindent">
<br>
<br>
<br>
<br>
<br>
</div>
<div class="container_24">
<div class="grid_7">
<div class="top-1 right-1">
<p style="color:black">Services Offered: <br><br>
Hair <br> <ul>
<li>Change of Style
<li>Hair Spa
<li>Trimming
<li>Head Massage
</ul></p>
<br><br><p font size: "bold" style="color:black"> Hair Care:<br><br>
<ul>
<li>Hair Coloring

Page | 161

D SAPPHIRE
<li>Full Streaking
<li>Re Bonding
<li>Crimping/Ironing
<li>Strait Therapy
</ul></p>
<br><p font size: "bold" style="color:black"> Specials:<br><br>
<ul>
<li>Threading
<li>Facial Treatment
<li>Bridal Makeup
<li>Party Makeup
<li>Bridal Saree
<li>Mehendi
<li>Pedicure and Manicure
<li>Spa
<li>Waxing
</ul></p>
</div>
<div class="box-1"> <img src="style/images/art/parl4.jpg" alt="" class="img-border img-indent">
<br>
<br>
</div> <div class="box-1"> <img src="style/images/art/parl1.jpg" alt="" class="img-border
img-indent">
<br>
<br>
</div>
<center><br><br><p> Click on the button to book the parlour!!!</p><br><br><br>
<br><a href="cparl.html"><button>Book</button></a></center><br><br>
<br><br><br>

<div class="footer-wrapper">
<div id="footer">
<p Style="Color: #224E07; size: 5; font-size: large; "> Contact Us :: [email protected]
...<br><br> Phone no ::7507968233,9867176702 </p>
<p Style ="Color: Blue; Size: 5; font-size: large;">2012 Copyrighted Designzzz.com</p>
</div>
<div style="clear:both;"></div>
</div>
</body>
</html>

Parl.html
<div align="center">
Welcome<br><br>
<form method="POST" action="parl.php">
Member ID: <input type="text" name="mid"> Booking Date: <input type="date" name="bod"
value=""> <br> What Service you want from us? <input type="text" name="ser">

Page | 162

D SAPPHIRE
<input type="submit" value="Book">
</form>
</div>
Parl.php
<?php
$dbc = mysql_connect('localhost','root','') or die("Cant connect :" . mysql_error());
mysql_select_db("sapphire",$dbc)
or
die("Cant connect :" . mysql_error());
$time_offset ="525"; // Change this to your time zone
$time_a = ($time_offset * 120);
$time = date("h:i:s",time() + $time_a);
If(isset($_REQUEST['submit'])!='')
{
If($_REQUEST['mid']=='' || $_REQUEST['bod']==''|| $_REQUEST['ser']=='')
Echo "please fill the empty field.";
}
Else
{
$sql="insert

into

bookparl(Mid,Bodate,type,ptime)

values('".$_REQUEST['mid']."','".

$_REQUEST['bod']."','".$_REQUEST['ser']."','".$time."')";
$res=mysql_query($sql);
$s="insert into payments(Type,Charges,Date) values('Credit',1000,'".date('d'.'m'.'y')."')";
$re=mysql_query($s);
$q="insert into bookdetails(Mid,Amount) values('".$_REQUEST['mid']."',2000)";
$e=mysql_query($q);
if($res)
{
echo"<br><br><br> You are Booked Please visit on the following time : $time";
include 'parlour.html';
}
}
?>

Transport.html
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>

Page | 163

D SAPPHIRE
<meta charset="UTF-8">
<meta name="viewport"

content="width=device-width,initial-scale=1,maximum-scale=1,user-

scalable=no">
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link
rel="stylesheet"
type='text/css'
href='http://fonts.googleapis.com/css?
family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/css/ie8.css" media="all">
<![endif]-->
<!--[if IE 9]>
<link rel="stylesheet" type="text/css" href="style/css/ie9.css" media="all">
<![endif]-->
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/bg/fi1.jpg");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>
<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:false,
duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,
numStatus:false,
banners:false,
waitBannerAnimation:false,
progressBar:false
})
});
</script>
</head>
<body class="single">
<div class="scanlines"></div>
<div class="header-wrapper opacity">
<div class="header">

Page | 164

D SAPPHIRE
<div class="logo"> <a href="index.html"> <img src="style/images/art/logon.jpg" alt=""> </a>
</div>
<div id="menu-wrapper">
<div id="menu" class="menu">
<ul id="tiny">
<li><a href="index.php">Home</a>
</li>
<li class="active"><a href="post.html">Wedding</a>
</li>
<li><a href="restaurant.html">Restaurant</a>
<li><a href="club.html">Club</a></li>
<li><a href="login.html">Login</a></li>
</li>
<li><a href="tourism.html">Tourism</a>
</li>
<li><a href="contact.html">Contact</a></li>
<li><a href="frameset/frameset.html">Specially For you!!!!</a></li>
</ul>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<div class="wrapper">
<div class="intro">We provide transportation facility to our guests. One can book cars and vans
for their guests to pick and drop them to various stations. Booking to be done in advance . We have
many of them .
<ul><br><br><br>
<li><span class=red> Indica <br><br><br> </span>
<div class="box-1"> <img src="style/images/art/ind.gif" alt="" class="img-border img-indent">
<br><br><br><br>
</div>
<li><span class=red> Swift Dezire
<br><br><br></span>
<div class="box-1"> <img src="style/images/art/swi.jpg" alt="" class="img-border img-indent">
<br> <br><br><br>
</div>
<li> <span class=red> Toyota Etios
<br><br><br> </span>
<div class="box-1"> <img src="style/images/art/eti.jpg" alt="" class="img-border img-indent">
<br> <br><br><br>
</div>
<li><span class=red> Honda Accord
<br><br><br> </span>
<div class="box-1"> <img src="style/images/art/acc.jpg" alt="" class="img-border img-indent">
<br>
</div>
</ul>
</div>
</div>
<br><br>

Page | 165

D SAPPHIRE

<center><br><br><p> Click below to know the car is available or not</p><br><br><br>


<br><a href="availt.php"><button>Cars Available</button></a></center><br><br>
<br><br><br>
<div class="footer-wrapper">
<div id="footer">
<p Style="Color: #1A9E00; size: 5; font-size: large;"> Contact Us ::

[email protected]

...<br><br> Phone no ::7507968233,9867176702 </p>


<p Style ="Color: Blue; Size: 5; font-size: large; background-color: none;">2012 Copyrighted
Designzzz.com</p>
</div>
<div style="clear:both;"></div>
</div>
</body>
</html>

Availt.php
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>
<meta charset="UTF-8">
<meta name="viewport"

content="width=device-width,initial-scale=1,maximum-scale=1,user-

scalable=no">
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link
rel="stylesheet"
type='text/css'
href='http://fonts.googleapis.com/css?
family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<link
href="file:///I|/work/Compressed/kate-and-leo/css/grid_24.css"
rel="stylesheet"
type="text/css">
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/css/ie8.css" media="all">
<![endif]-->
<!--[if IE 9]>
<link rel="stylesheet" type="text/css" href="style/css/ie9.css" media="all">
<![endif]-->
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>

Page | 166

D SAPPHIRE
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/bg/fi.jpg");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>
<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:false,
duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,
numStatus:false,
banners:false,
waitBannerAnimation:false,
progressBar:false
})
});
</script>
</head>
<?php
$con=mysqli_connect("localhost","root","","sapphire");
// Check connection
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
echo"<br><br>The available cars right now are <br><br><br>";
$result = mysqli_query($con,"SELECT * FROM cavailable where Cavailable='yes'");
echo "Car ID &nbsp;&nbsp; Car Name &nbsp;&nbsp; Number of cars available<br><br> ";
while($row = mysqli_fetch_array($result)) {
echo $row['Cid'] ." &nbsp;&nbsp;&nbsp;&nbsp;

"

$row['Cname'].

"

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " . $row['Cnum'];


echo "<br>";
}
mysqli_close($con);
?>
<body>
<br><br><br>

Page | 167

D SAPPHIRE
<form><input

type="button"

value="Go

Back"

style="background-color:red"

onClick="window.location.href='transport.html'"></form>
</body>
</html>
Catering.html
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>
<meta charset="UTF-8">
<meta name="viewport"

content="width=device-width,initial-scale=1,maximum-scale=1,user-

scalable=no">
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link
rel="stylesheet"
type='text/css'
href='http://fonts.googleapis.com/css?
family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/bg/fi1.jpg");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>
<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:false,
duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,
numStatus:false,
banners:false,
waitBannerAnimation:false,
progressBar:false
})
});
</script>

Page | 168

D SAPPHIRE

</head>
<body>
<div class="header">
<div class="header">
<div class="logo"> <a href="index.html"> <img src="style/images/art/logon.jpg" alt=""> </a>
</div>
<div id="menu-wrapper">
<div id="menu" class="menu">
<ul id="tiny">
<li ><a href="index.php">Home</a>
</li>
<li class="active"><a href="post.html">Wedding</a>
</li>
<li><a href="restaurant.html">Restaurant</a>
<li><a href="club.html">Club</a></li>
<li><a href="login.html">Login</a></li>
</li>
<li><a href="tourism.html">Tourism</a>
</li>
<li><a href="contact.html">Contact</a></li>
<li><a href="frameset/frameset.html">Specially For you!!!!</a></li>
</ul>
</div>
</div>
<div class="clear"></div>
</div>
</div><br><br><br><br><br>
<div class="wrapper"> A simple and delicious cuisine
<bR><BR><br><br><br>
<div class="box-1"> <img src="style/images/art/cat.jpg" alt="" class="img-border img-indent">
<br>
<br>
<br>
<br>
<br>
</div></div>
<div class="header-wrapper opacity">
<div class="wrapper">
<div class="intro"style='text-align:left;color:black'>You have found your catering team for all
occasions! Our website is designed to assist those who are planning Corporate Events, Weddings,
Private Parties and Barbecues. Within, there is a wealth of information to help you plan your festive
affair. As you prepare for your celebration, do not forget this Catering - the leader here for
exceptional cuisine, capitol style and competitve pricing.
</div>
</div>
<br><br>

Page | 169

D SAPPHIRE
<div id="slide">
<div class="slider" ">
<ul class="items">
<li><img src="style/images/art/ca1.jpg" alt=""></li>
<li><img src="style/images/art/ca2.jpg" alt=""></li>
<li><img src="style/images/art/ca3.jpg" alt=""></li>
<li><img src="style/images/art/ca4.jpg" alt=""></li>
<li><img src="style/images/art/ca5.jpg" alt=""></li>
<li><img src="style/images/art/ca6.jpg" alt=""></li>
<li><img src="style/images/art/ca7.png" alt=""></li>
<li><img src="style/images/art/ca9.jpg" alt=""></li>
<li><img src="style/images/art/ca10.jpg" alt=""></li>
<li><img src="style/images/art/ca11.jpg" alt=""></li>
<li><img src="style/images/art/ca8.jpg" alt=""></li>
<li><img src="style/images/art/ca12.jpg" alt=""></li>
<li><img src="style/images/art/ca13.jpg" alt=""></li>
<li><img src="style/images/art/ca15.jpg" alt=""></li>
</ul>
</div>
</div>
<div class="container_24">
<p> Menu for Catering : <br><br>
<Strong> Appetizers </strong> <br> <br><ul>
<li>Five hours of open bar featuring premium brands <br>
<li>Designer Cake
<li>Teas and Coffees
<li> Lemonade<br><br>
<Strong> Non-Veg Appetizers (Can select any two)<br> </strong>
<li>Chicken Tikkas
<li>Chicken Pakora
<li>keema samosa
<li>Shamim kabab <br><br>
<Strong> Veg Appetizers (Can select any three)<br> </strong>
<li>Paneer Tikkas
<li>Pakora
<li>veg samosa
<li>veg cutlet
<li> potato fingers<br><br>
<Strong> Vegetable Entrees<br></strong>
<li>Saag Alu
<li>Alu gobi mughlai
<li>Alu Matter
<li>Chole
<li>Malai Kofta
<li>Mix Veg
<li>Palak Paneer
<li>Paneer Makhani
<li>Jalfrezi
<li>Tawa Bhaji
<li>Corn Veg
<li>Mutter Mushroom
<li>Baigan Hyderabadi
<br><br>
<Strong> Non-Vegetable Entrees<br></strong>

Page | 170

D SAPPHIRE
<li>Chicken Tikka Masala
<li>Kadai Chicken
<li>Chicken Malaiwala
<li>Chicken Korma
<li>Murgh Saagwala
<li>Lamb Rogan Josh
<li>Lamb Da Piyaza<br><br>
<Strong> Daal and Chawal<br></strong>
<li>Daal Makhani
<li>Yellow Daal
<li>Daal Tarka
<li>Sucha Daal
<li>Steamed Basmati
<li>Matar Pulao
<li>Non veg Biryani<br><br>
<Strong> Roti<br></strong>
<li>Tandoori Naan
<li>Plain Roti
<li>Kulcha
<li>Puri
<li>Lacha Paratha<br><br>
<Strong> Dessert <br></strong>
<li>Ras Malai
<li>Gajar ka halwa(seasonal)
<li>Dal ka halwa
<li>Gulab Jamun
<li>Kheer
<li>Kulfi
<li>Fried Ice Cream<br><br>
<Strong>Enhancements
(To add to the experience of your special day our enhancements can be added to any
package)<br><br><br></strong>
<li>Chat Station
<li>South Indian Station
<li>Punjab Station
<li>Chinese Station
<li>Chocolate fountain with accompaniments for dipping<br>
<li>Variety of fruits and small desserts such as brownies and rice crispy treats for dipping
<li>Bride and groom specialty signature drink
<li>Welcome gift delivery
<li>Custom (GOBO) lighting to welcome your guests and
the new couple
</ul></p>
<br><br>
<center><p> Packages <br><br>
<Strong> We Have different packages for you you can select any one according to your need
</strong> <br> <br><ul></center>
<li>Package 1 : contains every 2 or 3 meals from each part <br>
<li>Package 2 : contains every 5 or 6 meals from each part<br>
<li>Package 3 : contains all meals from each part<br><br><br>
<div class="box-1"> <img src="style/images/art/dish.jpg" alt="" class="img-border imgindent">
<br><br>

Page | 171

D SAPPHIRE
<center><br><br><p><font color=black> Click on the button to book the catering menu!!!
</font></p><br><br><br>
<br><a href="formcheck.html"><button>Book</button></a></center><br><br>
<div class="footer-wrapper">
<div id="footer">
<p Style="Color: #224E07; size: 5; font-size: large;"> Contact Us ::

[email protected]

...<br><br> Phone no ::7507968233,9867176702 </p>


<p Style ="Color: Blue; Size: 5; font-size: large;">2012 Copyrighted Designzzz.com</p>
</div>
<div style="clear:both;"></div>
</div>
</body>
</html>

Formcheck.html
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>
<meta charset="UTF-8">
<meta name="viewport"

content="width=device-width,initial-scale=1,maximum-scale=1,user-

scalable=no">
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link
rel="stylesheet"
type='text/css'
href='http://fonts.googleapis.com/css?
family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/bg/fi1.jpg");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>
<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:false,

Page | 172

D SAPPHIRE
duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,
numStatus:false,
banners:false,
waitBannerAnimation:false,
progressBar:false
})
});
</script>
</head>
<body>
<div class="header">
<div class="header">
<div class="logo"> <a href="index.html"> <img src="style/images/art/logon.jpg" alt=""> </a>
</div>
<div id="menu-wrapper">
<div id="menu" class="menu">
<ul id="tiny">
<li ><a href="index.php">Home</a>
</li>
<li class="active"><a href="post.html">Wedding</a>
</li>
<li><a href="restaurant.html">Restaurant</a>
<li><a href="club.html">Club</a></li>
<li><a href="login.html">Login</a></li>
</li>
<li><a href="tourism.html">Tourism</a>
</li>
<li><a href="contact.html">Contact</a></li>
<li><a href="frameset/frameset.html">Specially For you!!!!</a></li>
</ul>
</div>
</div>
<div class="clear"></div>
</div>
</div><br><br><br><br><br>
<div class="wrapper"> A simple and delicious cuisine
<bR><BR><br><br><br>
<div class="box-1"> <img src="style/images/art/cat.jpg" alt="" class="img-border img-indent">
<br>
<br>
<br>
<br>
<br>
</div></div>
<div class="header-wrapper opacity">

Page | 173

D SAPPHIRE
<div class="wrapper">
<div class="intro"style='text-align:left;color:black'>You have found your catering team for all
occasions! Our website is designed to assist those who are planning Corporate Events, Weddings,
Private Parties and Barbecues. Within, there is a wealth of information to help you plan your festive
affair. As you prepare for your celebration, do not forget this Catering - the leader here for
exceptional cuisine, capitol style and competitve pricing.
</div>
</div>
<br><br>
<div id="slide">
<div class="slider" ">
<ul class="items">
<li><img src="style/images/art/ca1.jpg" alt=""></li>
<li><img src="style/images/art/ca2.jpg" alt=""></li>
<li><img src="style/images/art/ca3.jpg" alt=""></li>
<li><img src="style/images/art/ca4.jpg" alt=""></li>
<li><img src="style/images/art/ca5.jpg" alt=""></li>
<li><img src="style/images/art/ca6.jpg" alt=""></li>
<li><img src="style/images/art/ca7.png" alt=""></li>
<li><img src="style/images/art/ca9.jpg" alt=""></li>
<li><img src="style/images/art/ca10.jpg" alt=""></li>
<li><img src="style/images/art/ca11.jpg" alt=""></li>
<li><img src="style/images/art/ca8.jpg" alt=""></li>
<li><img src="style/images/art/ca12.jpg" alt=""></li>
<li><img src="style/images/art/ca13.jpg" alt=""></li>
<li><img src="style/images/art/ca15.jpg" alt=""></li>
</ul>
</div>
</div>
<div class="container_24">
<p> Menu for Catering : <br><br>
<Strong> Appetizers </strong> <br> <br><ul>
<li>Five hours of open bar featuring premium brands <br>
<li>Designer Cake
<li>Teas and Coffees
<li> Lemonade<br><br>
<Strong> Non-Veg Appetizers (Can select any two)<br> </strong>
<li>Chicken Tikkas
<li>Chicken Pakora
<li>keema samosa
<li>Shamim kabab <br><br>
<Strong> Veg Appetizers (Can select any three)<br> </strong>
<li>Paneer Tikkas
<li>Pakora
<li>veg samosa
<li>veg cutlet
<li> potato fingers<br><br>
<Strong> Vegetable Entrees<br></strong>
<li>Saag Alu
<li>Alu gobi mughlai
<li>Alu Matter

Page | 174

D SAPPHIRE
<li>Chole
<li>Malai Kofta
<li>Mix Veg
<li>Palak Paneer
<li>Paneer Makhani
<li>Jalfrezi
<li>Tawa Bhaji
<li>Corn Veg
<li>Mutter Mushroom
<li>Baigan Hyderabadi
<br><br>
<Strong> Non-Vegetable Entrees<br></strong>
<li>Chicken Tikka Masala
<li>Kadai Chicken
<li>Chicken Malaiwala
<li>Chicken Korma
<li>Murgh Saagwala
<li>Lamb Rogan Josh
<li>Lamb Da Piyaza<br><br>
<Strong> Daal and Chawal<br></strong>
<li>Daal Makhani
<li>Yellow Daal
<li>Daal Tarka
<li>Sucha Daal
<li>Steamed Basmati
<li>Matar Pulao
<li>Non veg Biryani<br><br>
<Strong> Roti<br></strong>
<li>Tandoori Naan
<li>Plain Roti
<li>Kulcha
<li>Puri
<li>Lacha Paratha<br><br>
<Strong> Dessert <br></strong>
<li>Ras Malai
<li>Gajar ka halwa(seasonal)
<li>Dal ka halwa
<li>Gulab Jamun
<li>Kheer
<li>Kulfi
<li>Fried Ice Cream<br><br>
<Strong>Enhancements
(To add to the experience of your special day our enhancements can be added to any
package)<br><br><br></strong>
<li>Chat Station
<li>South Indian Station
<li>Punjab Station
<li>Chinese Station
<li>Chocolate fountain with accompaniments for dipping<br>
<li>Variety of fruits and small desserts such as brownies and rice crispy treats for dipping
<li>Bride and groom specialty signature drink
<li>Welcome gift delivery
<li>Custom (GOBO) lighting to welcome your guests and
the new couple
</ul></p>

Page | 175

D SAPPHIRE

<br><br>
<center><p> Packages <br><br>
<Strong> We Have different packages for you you can select any one according to your need
</strong> <br> <br><ul></center>
<li>Package 1 : contains every 2 or 3 meals from each part <br>
<li>Package 2 : contains every 5 or 6 meals from each part<br>
<li>Package 3 : contains all meals from each part<br><br><br>
<div class="box-1"> <img src="style/images/art/dish.jpg" alt="" class="img-border imgindent">
<br><br>
<center><br><br><p><font color=black> Click on the button to book the catering menu!!!
</font></p><br><br><br>
<br><a href="formcheck.html"><button>Book</button></a></center><br><br>
<div class="footer-wrapper">
<div id="footer">
<p Style="Color: #224E07; size: 5; font-size: large;"> Contact Us ::

[email protected]

...<br><br> Phone no ::7507968233,9867176702 </p>


<p Style ="Color: Blue; Size: 5; font-size: large;">2012 Copyrighted Designzzz.com</p>
</div>
<div style="clear:both;"></div>
</div>
</body>
</html>

Formre.php
<?php
$hostname="localhost"; //local server name default localhost
$username="root"; //mysql username default is root.
$password="";
//blank if no password is set for mysql.
$database="sapphire"; //database name which you created
$con=mysql_connect($hostname,$username,$password);
if(! $con)
{
die('Connection Failed'.mysql_error());
}
mysql_select_db($database,$con);
$sql
=
mysql_query("SELECT
fname
FROM
bookbanquet

WHERE

Boid='".

$_REQUEST['bid']."'" );
if (mysql_num_rows($sql) >0) {
echo" Thank you for verifying";
if(isset($_POST['submit'])){//to run PHP script on submit
if(!empty($_POST['catering'])){
$savedata = $_REQUEST['savedata'];
$data="Catering Menu,";
if ($savedata == 1){
// Loop to store and display values of individual checked checkbox.

Page | 176

D SAPPHIRE
foreach($_POST['catering'] as $selected){
$data .= $selected." , ";}
}
$file = "Booking id".$_REQUEST['bid'].".txt";
$fp = fopen($file, "a") or die("Couldn't open $file for writing!");
fwrite($fp, $data) or die("Couldn't write values to file!");
fclose($fp);
echo "Your Form has been Submitted!";
}
}
$sql="insert into payments(Type,Charges,Date) values('Catering',7500,'".date('d'.'m'.'y')."')";
$res=mysql_query($sql);
}
else
{
echo"Sorry! your hall is not booked or you entered wrong id !! Click on the link below to go to
booking page";?>
<form><input type="button" value="Go To Booking Page" style="background-color:red"
onClick="window.location.href='form.html'"></form>
<?php
}
?>

Restaurant.html
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>
<meta charset="UTF-8">
<meta name="viewport"

content="width=device-width,initial-scale=1,maximum-scale=1,user-

scalable=no">
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link
rel="stylesheet"
type='text/css'
href='http://fonts.googleapis.com/css?
family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>

Page | 177

D SAPPHIRE
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/bg/red.jpg");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>
<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:false,
duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,
numStatus:false,
banners:false,
waitBannerAnimation:false,
progressBar:false
})
});
</script>
</head>
<body>
<div class="header">
<div class="header">
<div class="logo"> <a href="index.html"> <img src="style/images/art/logon.jpg" alt=""> </a>
</div>
<div id="menu-wrapper">
<div id="menu" class="menu">
<ul id="tiny">
<li><a href="index.php">Home</a>
</li>
<li><a href="post.html">Wedding</a>
</li>
<li ><a href="restaurant.html">Restaurant</a>
<li><a href="club.html">Club</a></li>
<li><a href="login.html">Login</a></li>
</li>
<li><a href="tourism.html">Tourism</a>
</li>
<li><a href="contact.html">Contact</a></li>
<li><a href="frameset/frameset.html">Specially For you!!!!</a></li>
</ul>
</div>
</div>
<div class="clear"></div>

Page | 178

D SAPPHIRE
</div>
</div><br><br><br><br><br>
<div class="wrapper"> Air Condtioned and fully Licensed Restaurant
<bR><BR><br><br><br>
<div class="box-1"> <img src="style/images/art/res1.jpg" alt="" class="img-border imgindent">
<br>
<br>
<br>
<br>
<br>
</div></div>
<div class="header-wrapper opacity">
<div class="wrapper">
<div class="intro" style="text-align:left;color:black">With years of experience in food and
catering service, our restaurant is commited to provide the best in every type of recipies in a modern
style. It specialises in South Indian dishes chinese and meals in particular. Chefs with years of
experience in both vegetarian and non-vegetarian cuisine are our hallmarks.
Apart from food, a variety of hot beverages are also available for you to choose from. As a customer
focused entity, we would always be listening to what out customers say. We understand that
feedbacks from our customers are the best way to improve.
The distinguishing and enriching cuisine has been recognized by all around the world , with
intoxicating fusion of flavors may not be found anywhere else. The uniqueness and diversity of our
recipes with their distinctive flavors and aroma enthrall the hearts of worlds epicures. We aim to
present a minute sample of this extensive compilation of recipes for your gourmet appraisal. The
eclectic menu has been appreciated by everyone from connoisseurs cuisine to someone trying the
flavors for the first time. The service, value and taste have been praised very highly by critics. The
growing community of loyal patrons has helped Shilpa to win the Archant Food and Drinks Award
for two consecutive years.
</div>
</div>
<br><br>
<div class="container_24" align="center">
<p style="color:black"> Menu : <br><br>
<Strong> Appetizers </strong> <br> <ul><pre>
<li>Lemonade
<li>Cold Coffee
<li>Teas and Hot Coffees
Rs.15
<li>Sandwich
<li>Cutlets
<li>Veg Kathi Rolls
<li>Non veg Kathi Rolls
Rs.60
<br><br>
<Strong> Snacks </strong><br>

Rs.15
Rs.50
Rs.25
Rs.40
Rs.35

Page | 179

D SAPPHIRE
<li>Chicken Pakora
<li>keema samosa
<li>Shamim kabab
<li>Paneer Tikkas
<li>Chowmein
<li>Pizza
<li>Fried Rice
<li>Chilly Paneer
<Li>Manchurian
<li>Pav Bhaji
<li>Bhature Chole
<li>Potato chatpate
<li>Momos
<Strong>Meals</strong><br>
<li>Saag Alu
<li>Alu gobi mughlai
<li>Alu Matter
<li>Chole
<li>Malai Kofta
<li>Mix Veg
<li>Palak Paneer
<li>Paneer Makhani
<li>Jalfrezi
<li>Corn Veg
<li>Mutter Mushroom
<li>Baigan Hyderabadi
<li>Chicken Tikka Masala
<li>Kadai Chicken
<li>Chicken Malaiwala
<li>Chicken Korma
<li>Murgh Saagwala
<li>Lamb Rogan Josh
<li>Tandoori Chicken
<li>Daal Makhani
<li>Yellow Daal
<li>Daal Tarka
<li>Sucha Daal
<li>Steamed Basmati
<li>Matar Pulao
<li>Non veg Biryani
<li>Tandoori Naan
<li>Plain Roti
<li>Kulcha
<li>Puri(4)
<li>Lacha Paratha
<li>Stuffed Paratha with dahi
<li>Stuffed Paratha
<Strong> Dessert </strong><br>
<li>Ras Malai(per piece)
<li>Gajar ka halwa(seasonal)
<li>Dal ka halwa
<li>Gulab Jamun(2 piece)
<li>Kheer
<li>Kulfi
<li>Fried Ice Cream
<strong>Drinks</strong><br>

Rs.100
Rs.100
Rs.100
Rs.100
Rs.50
Rs.120
Rs.80
Rs.100
Rs.100
Rs.50
Rs.50
Rs.70
Rs.70<br><br><br>
Rs.50
Rs.60
Rs.60
Rs.60
Rs.70
Rs.50
Rs.100
Rs.100
Rs.100
Rs.100
Rs.100
Rs.100
Rs.200
Rs.200
Rs.200
Rs.200
Rs.200
Rs.200
Rs.150
Rs.100
Rs.60
Rs.70
Rs.80
Rs.50
Rs.70
Rs.120
Rs.20
Rs.10
Rs.20
Rs.10
Rs.50
Rs.100
Rs.60<br><br><br>
Rs.20
Rs.80
Rs.100
Rs.30
Rs.50
Rs.40
Rs.100<br><br><br>

Page | 180

D SAPPHIRE
<li>Fruit Beer
<li>Coldrink
<li>Hard Drinks (per peg)
<li>Cocktails
<li>Mocktails
<li>Jaljeera
<Strong>Special Packs</Strong>
<li>Fried Rice +Chilly Panner
<li>Pav Bhaji + Coldrink
<li>Pizza+MOmo
<li>Dosa Sambhar+ 2 idlis
</pre></ul></p>
</div>

Rs.150
Rs.80
Rs.100
Rs.300
Rs.150
Rs.40<br><br><br>
Rs.280
Rs.100
Rs.230
Rs.150<br><br><br>

<div class="box-1"> <img src="style/images/art/res2.jpg" alt="" class="img-border imgindent"><br><br><br><br><br><br>


<p style="color:black">

Viewing

the

stills

from

our

restaurant

...

</p><br><br><br><br><br><br>
<div class="box-1"> <img src="style/images/art/res3.jpg" alt="" class="img-border imgindent"><br><br><br><br><br><br>
<center><br><br><p> Do the Bookings!!!</p><br><br><br>
<br><a href="check.html"><button>Book a table for yourself!!</button></a></center><br><br>
<br><br>
<br><br><br>
<center><br><br><p> Get a home delivery!!</p><br><br><br>
<br><a href="deliver.html"><button>Home Delivery!!</button></a></center><br><br>
<br><br>
<br><br><br><br>
</center>
<div class="footer-wrapper">
<div id="footer">
<p Style="Color: #224E07; size: 5; font-size: large;"> Contact Us :: [email protected]
...<br><br> Phone no ::7507968233,9867176702 </p>
<p Style ="Color: Blue; Size: 5; font-size: large;">2012 Copyrighted Designzzz.com</p>
</div>
<div style="clear:both;"></div>
</div>
</body>
</html>

Books1.html
<html>
<head>
<title>BOOKING FORM</title><link rel="stylesheet" type="text/css" href="style.css"></head>
<body>
<form name="booking" method="post" action="book.php">
<fieldset>
<legend>Booking Form </legend>

Page | 181

D SAPPHIRE
<p>YOUR

NAME:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="text"

name="mname" value=""><br>
<p>BOOKING DATE:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="date"

name="bdate" value=""><br>
<p>TABLE NUMBER:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br>
<select name="number" id="rno" style="width:158px;">
<option value="none">----Choose the Room Number ----</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option><option value="5">5</option>
<option value="6">6</option></select>
<br>
<p>Facility ID:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br>
<select name="num" id="rno" style="width:158px;">
<option value="none">----Choose the Facility ----</option>
<option value="1">Candle Light Dinner</option>
<option value="2">Advance Booking</option>
<p><input type="submit" name="submit" value="submit">
</fieldset>
</form>
</body>
</head>
</html>

Book.php
<?php
$hostname="localhost"; //local server name default localhost
$username="root"; //mysql username default is root.
$password="";
//blank if no password is set for mysql.
$database="sapphire"; //database name which you created
$con=mysql_connect($hostname,$username,$password);
if(! $con)
{
die('Connection Failed'.mysql_error());
}
mysql_select_db($database,$con);
$originalDate = $_REQUEST['bdate'];
$newDate = date("Y-m-d", strtotime($originalDate));
$sql = mysql_query("SELECT BookDate,Tableno FROM rebook WHERE BookDate='".
$newDate."' && Tableno='".$_REQUEST['number']."'" );
if (mysql_num_rows($sql) >0) {
echo "This table is already booked for the following date plz try another date or room!!";
}
else
{
$sql="insert into rebook(Guname,BookDate,Tableno,RFid) values('".$_REQUEST['mname']."','".
$newDate."','".$_REQUEST['number']."', '".$_REQUEST['num']."')";
if($_REQUEST['num']==1)

Page | 182

D SAPPHIRE
$c=500;
else
$c=800;
$res=mysql_query($sql);
If($res)
{
Echo "Congrats!!! Your table is booked!!";
}
$s="insert into payments(Type,Charges,Date) values('Credit',$c,'".date('d'.'m'.'y')."')";
$re=mysql_query($s);
}
?>

Deliver.html
<html>
<head>
<title>DELIVER FORM</title><link rel="stylesheet" type="text/css" href="style.css"></head>
<body>
<form name="booking" method="post" action="deliver.php">
<fieldset>
<legend>Delivering Form </legend>
<p>YOUR
NAME:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="text"

name="mname" value=""><br>
<p>ADDRESS:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="text"

name="adr" value=""><br>
<p>Contact
Number:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="text"

name="con" value=""><br>
<p>CHOOS YOUR PACKAGE:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br>
<select name="number" id="rno" style="width:158px;">
<option value="none">----Choose the Package ----</option>
<option value="1">Package 1</option>
<option value="2">Package 2</option>
<option value="3">Package 3</option>
<option value="4">Package 4</option>
<br>
<input type="submit" name="submit" value="submit">
</fieldset>
</form>
</body>
</head>
</html>

Deliver.php
<?php
$hostname="localhost"; //local server name default localhost
$username="root"; //mysql username default is root.
$password="";
//blank if no password is set for mysql.
$database="sapphire"; //database name which you created

Page | 183

D SAPPHIRE
$con=mysql_connect($hostname,$username,$password);
if(! $con)
{
die('Connection Failed'.mysql_error());
}mysql_select_db($database,$con);
If(isset($_REQUEST['submit'])!='')
{
$result = mysql_query("SELECT

Rate

FROM

deliver

WHERE

PackageId

='".

$_REQUEST['number']."'");
$row = mysql_fetch_row($result);
$i=$row[0];
$sql="insert

into

homedeliver(PackageId,Name,Address,Contact,Amount)

$_REQUEST['number']."','".$_REQUEST['mname']."',

values('".

'".$_REQUEST['adr']."',

'".

$_REQUEST['con']."',$i)";
$res=mysql_query($sql);
$s="insert into payments(Type,Charges,Date) values('Home delivery',$i,'".date('d'.'m'.'y')."')";
$re=mysql_query($s);
If($res)
{
Echo "Your delivery will be done in one hour.You have to pay Rs. ";
echo $i;
}
}
?>

Club.html
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>
<meta charset="UTF-8">
<meta name="viewport"

content="width=device-width,initial-scale=1,maximum-scale=1,user-

scalable=no">
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link
rel="stylesheet"
type='text/css'
href='http://fonts.googleapis.com/css?
family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/css/ie8.css" media="all">
<![endif]-->
<!--[if IE 9]>
<link rel="stylesheet" type="text/css" href="style/css/ie9.css" media="all">
<![endif]-->
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>

Page | 184

D SAPPHIRE
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/bg/ba5.jpg");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>
<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:false,
duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,
numStatus:false,
banners:false,
waitBannerAnimation:false,
progressBar:false
})
});
</script>
</head>
<body class="single">
<div class="scanlines"></div>
<div class="header-wrapper opacity">
<div class="header">
<div class="logo"> <a href="index.html"> <img src="style/images/art/logon.jpg" alt=""> </a>
</div>
<div id="menu-wrapper">
<div id="menu" class="menu">
<ul id="tiny">
<li><a href="index.php">Home</a>
</li>
<li><a href="post.html">Wedding</a>
</li>
<li><a href="restaurant.html">Restaurant</a>
<li class="active"><a href="club.html">Club</a></li>
<li><a href="login.html">Login</a></li>
</li>
<li><a href="tourism.html">Tourism</a>
</li>
<li><a href="contact.html">Contact</a></li>

Page | 185

D SAPPHIRE
<li><a href="frameset/frameset.html">Specially For you!!!!</a></li>
</ul>
</div>
</div>
<div class="clear"></div>
</div>
</div><br><br>
<p>Experience the passion & privilege of membership. Membership in the Club allows you access
to a host of exclusive benefits and facilities</p>
<br><br>

<div class="box-1"> <img src="style/images/art/cl1.jpg" alt="" class="img-border

img-indent"><br><br><br><br><br><br>
<p>Enjoy your life with your friends and family. Get whatever you like. Chit Chat with friends ....
Play games..... Enjoy Parties</p>
<br><br>
<div class="box-1"> <img src="style/images/art/res3.jpg" alt="" class="img-border imgindent"><br><br><br><br><br><br>
<p> Get maximum discounts after you get a membership... <br>Every time you want a party in an
occasion you have to go no where. <br>You will be our first priority with the maximum of discounts
we can provide with special gifts and arrangements!!! <br> <br> Membership is free for trial basis
then you can be our premium member with a very les amount and a very high priviliged life!!!</p>
<center><br><br><p> Click on the button to become a member!!!</p><br><br><br>
<br><a href="details.html"><button>Get the Membership</button></a></center><br><br>

<div class="footer-wrapper">
<div id="footer">
<p Style="Color: #224E07; size: 5; font-size: large;"> Contact Us ::

[email protected]

...<br><br> Phone no ::7507968233,9867176702 </p>


<p Style ="Color: Blue; Size: 5; font-size: large;">2012 Copyrighted Designzzz.com</p>
</div>
<div style="clear:both;"></div>
</div>
</body>
</html>

Details.html
<html>
<head>
<title>REGISTRATION FORM</title><link rel="stylesheet" type="text/css" href="style.css">
<script>
function validate() {
document.write("good");
submitFlag = true;
if(document.registration.trans.value.length!=6){
submitFlag=false;
alert("invalid transaction id!! Try Again!!");

Page | 186

D SAPPHIRE
}
return submitFlag;
}
</script>
</head>
<body>
<form name="registration" method="post" onsubmit="return validate()" action="reg.php">
<!-- we will create registration.php after registration.html -->
<fieldset>
<legend>Sign Up Form </legend>
<p>NAME:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="text"

name="mname" value=""><br>
<p>ADDRESS:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="text"

name="addr" value=""><br>
<p>CONTACT NUMBER:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input type="text"
name="cont" value=""><br>
<p>EMAIL
ID:&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="text"

name="mail"

value=""><br>
<p>DATE OF BIRTH:&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input type="date" name="dob"
value=""><br>
<p>TYPE:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br>
id="course" style="width:158px;">
<option value="none">----Choose the Type ----</option>
<option value="Temporary">Temporary</option>
<option value="Premium">Premium</option></select>
<br>
<p>OCCUPATION:&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

<select name="number"

type="text"

name="occu"

value=""><br>
<p>ENTER THE TRANSACTION NUMBER ON THE MEMBER SLIP OF YOUR PAYMENT
CARD:&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input type="text" name="trans" value=""><br>
<p>USERNAME:&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="text"

name="name"

value=""><br>
<p>PASSWORD:&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input type="password" name="password"
value=""><br>
<p>RE-PASSWORD:<br><br><input type="password" name="repassword" value=""><br>
<p><input type="submit" name="submit" value="submit">
</fieldset>
</form>
</body>
</head>
</html>

Reg.php
<?php
$hostname="localhost"; //local server name default localhost

Page | 187

D SAPPHIRE
$username="root"; //mysql username default is root.
$password="";
//blank if no password is set for mysql.
$database="sapphire"; //database name which you created
$con=mysql_connect($hostname,$username,$password);
if(! $con)
{
die('Connection Failed'.mysql_error());
}session_start();

$v=$_REQUEST['mname'];
$_SESSION['var'] = $v;
echo $v;
mysql_select_db($database,$con);
If(isset($_REQUEST['submit'])!='')
{
If($_REQUEST['mname']==''

||

$_REQUEST['name']==''

$_REQUEST['password']==''||

$_REQUEST['repassword']==''||

$_REQUEST['dob']==''||

$_REQUEST['number']==''||

$_REQUEST['mail']==''

||
||

$_REQUEST['addr']==''||

$_REQUEST['cont']==''

$_REQUEST['occu']==''|| $_REQUEST['trans']=='')
{
Echo "please fill the empty field.";
}
Else
{
$sql="insert

||

into

register1(Mname,Maddr,Mcont,Memail,username,password,MDob,Mtype,Moccu,Transaction_Num
ber)

values('".$_REQUEST['mname']."','".$_REQUEST['addr']."',

$_REQUEST['mail']."','".$_REQUEST['name']."',
$_REQUEST['dob']."',
$_REQUEST['trans']."')";
$res=mysql_query($sql);
$result = mysql_query("SELECT

'".$_REQUEST['cont']."','".

md5('".$_REQUEST['password']."'),'".

'".$_REQUEST['number']."','".$_REQUEST['occu']."','".

Mid

FROM

register1

WHERE

username

='".

$_REQUEST['name']."'");
$row = mysql_fetch_row($result);
$x=$_REQUEST['number'];
if($x=='Temporary')
{
$l=1;
}
if($x=='Premium')
{$l=2;
}
else
{$l=3;
}$i=$row[0];
$_SESSION['ch'] = $i;

Page | 188

D SAPPHIRE
$s="insert into level(mid,level) values($i,$l)";
$r=mysql_query($sql);
If($res)
{
Echo "Congrats!!! U R a member NOW U can login now with ur member id and password";
Echo "<br><br>Ur member id is ";
Echo $i;
include 'login.html';
}Else
{
Echo "Not a valid Transaction ID";
}
}
}
?>

Index1.php
<?php
require 'core.inc.php';
require 'connection.inc.php';
if(loggedin())
{
$rightvar=$_SESSION['user_id'];
$result = mysql_query("SELECT * FROM users WHERE id = $rightvar") or die(mysql_error());
$data = mysql_fetch_array($result);
$firstname=$data['firstname'];
$surname=$data['surname'];
$userid=$data['id'];
echo 'Welcome! ' . $firstname . ' ' . $surname .'<a href="logout.php"><input type="button"
value="Logout"/></a>';
}
else
{?>
<div align="center">
<form method="POST" action="login.inc.php">
Username: <input type="text" name="username">

Password:

<input

type="password"

name="password">
<input type="submit" value="Log in">
</form>
</div>
<?php
}
?>

Members.php
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>

Page | 189

D SAPPHIRE
<meta charset="UTF-8">
<meta name="viewport"

content="width=device-width,initial-scale=1,maximum-scale=1,user-

scalable=no">
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link
rel="stylesheet"
type='text/css'
href='http://fonts.googleapis.com/css?
family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/bg/club.jpg");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>
<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:false,
duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,
numStatus:false,
banners:false,
waitBannerAnimation:false,
progressBar:false
})
});
</script>
<p align=right><br><a href="login.html"><button>Logout</button></a></p><br><br>
</head>
<body>
<div class="header">
<div class="header">
<div class="logo"> <a href="index.html"> <img src="style/images/art/logon.jpg" alt=""> </a>
</div>
<div id="menu-wrapper">
<div id="menu" class="menu">
<ul id="tiny">

Page | 190

D SAPPHIRE
<li class="active"><a href="index.html">Home</a>
</li>
<li><a href="post.html">Wedding</a>
</li>
<li><a href="restaurant.html">Restaurant</a>
<li><a href="club.html">Club</a></li>
<li><a href="login.html">Login</a></li>
</li>
<li><a href="tourism.html">Tourism</a>
</li>
<li><a href="contact.html">Contact</a></li>
<li><a href="frameset/frameset.html">Specially For you!!!!</a></li>
</ul>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<br><br><br><br><br>
<div class="wrapper">
<div class="intro"><Strong> Welcome member, </strong></div>
<center><?php
$v=$_SESSION['var'] ;
echo "<p> <font color=blue size='100pt'> $v </font> </p>";
$hostname="localhost"; //local server name default localhost
$username="root"; //mysql username default is root.
$password="";
//blank if no password is set for mysql.
$database="sapphire"; //database name which you created
$con=mysql_connect($hostname,$username,$password);
if(! $con)
{
die('Connection Failed'.mysql_error());
}
$result = mysql_query("SELECT Mid FROM register1 WHERE Mname ='".$v."'");
$row = mysql_fetch_row($result);
$i=$row[0];
$_SESSION['ch'] = $i;
?>
<center><br><a href="games.html"><button>Join Games</button></a></center><br><br>
<br><a href="gym.html"><button>Join Gym</button></a></center><br><br>
</center>
<div><Strong>&nbsp;&nbsp; We are happy to serve you with the benefits of our place!!!
</Strong></div>
<br><br><br><br><br></center>
<div id="slide">
<div class="slider" ">

Page | 191

D SAPPHIRE
<ul class="items">
<li><img src="style/images/club/c1.gif" alt=""></li>
<li><img src="style/images/club/c2.jpg" alt=""></li>
<li><img src="style/images/club/c3.jpg" alt=""></li>
<li><img src="style/images/club/c4.jpg" alt=""></li>
<li><img src="style/images/club/c6.jpg" alt=""></li>
<li><img src="style/images/club/c7.jpg" alt=""></li>
<li><img src="style/images/club/c5.jpg" alt=""></li>
</ul>
</div>
</div>
<br><br><br><br>
<div class="post format-chat box">
<h2 class="title";><a href="pics.html">Photo Gallery</a></h2>
<h2 class="title";><a href="news.html">News and Events</a></h2>
<h2 class="title";><a href="disc.html">Discount</a></h2>
</div>
<div class="footer-wrapper">
<div id="footer">
<p Style="Color: #224E07; size: 5; font-size: large;"> Contact Us ::

[email protected]

...<br><br> Phone no ::7507968233,9867176702 </p>


<p Style ="Color: Blue; Size: 5; font-size: large;">2012 Copyrighted Designzzz.com</p>
</div>
<div style="clear:both;"></div>
</div>
</body>
</html>

Pics.html
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>
<meta charset="UTF-8">
<meta name="viewport"

content="width=device-width,initial-scale=1,maximum-scale=1,user-

scalable=no">
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link
rel="stylesheet"
type='text/css'
href='http://fonts.googleapis.com/css?
family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>

Page | 192

D SAPPHIRE
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/bg/pp.jpg");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>
<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:false,
duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,
numStatus:false,
banners:false,
waitBannerAnimation:false,
progressBar:false
})
});
</script>
</head>
<body>
<div class="header">
<div class="header">
<div class="logo"> <a href="index.html"> <img src="style/images/art/logon.jpg" alt=""> </a>
</div>
<div id="menu-wrapper">
<div id="menu" class="menu">
<ul id="tiny">
<li class="active"><a href="index.php">Home</a>
</li>
<li><a href="post.html">Wedding</a>
</li>
<li><a href="restaurant.html">Restaurant</a>
<li><a href="club.html">Club</a></li>
<li><a href="login.html">Login</a></li>
</li>
<li><a href="tourism.html">Tourism</a>
</li>
<li><a href="contact.html">Contact</a></li>
<li><a href="frameset/frameset.html">Specially For you!!!!</a></li>
</ul>

Page | 193

D SAPPHIRE

</div>
</div>
<div class="clear"></div>
</div>
</div>
<br><br><br><br><br>
<img class="left" src="style/images/club/1.jpg" style="width:20%;height:20%;"/>
<img class="left" src="style/images/club/2.jpg"style="width:20%;height:20%;"/>
<img class="left" src="style/images/club/3.jpg"style="width:20%;height:20%;" />
<img class="left" src="style/images/club/4.jpg"style="width:20%;height:20%;"/>
<img class="left" src="style/images/club/5.jpg"style="width:20%;height:20%;"/>
<img class="left" src="style/images/club/6.jpg"style="width:20%;height:20%;"/>
<img class="left" src="style/images/club/7.jpg"style="width:20%;height:20%;" />
<img class="left" src="style/images/club/8.jpg"style="width:20%;height:20%;"/>
<img class="left" src="style/images/club/9.jpg"style="width:20%;height:20%;" />
<img class="left" src="style/images/club/10.jpg"style="width:20%;height:20%;"/>
<img class="left" src="style/images/club/11.jpg"style="width:20%;height:20%;" />
<img class="left" src="style/images/club/12.jpg"style="width:20%;height:20%;"/>
<img class="left" src="style/images/club/13.jpg"style="width:20%;height:20%;"/>
<img class="left" src="style/images/club/14.jpg"style="width:20%;height:20%;"/>
<br><br><br><br>
<p> Enjoy to the fullest and live ur life as u never did !!!!!<br><br><br><br>
<div class="footer-wrapper">
<div id="footer">
<p Style="Color: #224E07; size: 5; font-size: large;"> Contact Us :: [email protected]
...<br><br> Phone no ::7507968233,9867176702 </p>
<p Style ="Color: Blue; Size: 5; font-size: large;">2012 Copyrighted Designzzz.com</p>
</div>
<div style="clear:both;"></div>
</div>
</body>
</html>

News.html
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>
<meta charset="UTF-8">
<meta name="viewport"

content="width=device-width,initial-scale=1,maximum-scale=1,user-

scalable=no">
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">

Page | 194

D SAPPHIRE
<link

rel="stylesheet"

type='text/css'

href='http://fonts.googleapis.com/css?

family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/bg/eve.jpg");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>
<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:false,
duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,
numStatus:false,
banners:false,
waitBannerAnimation:false,
progressBar:false
})
});
</script>
</head>
<body>
<div class="header">
<div class="header">
<div class="logo"> <a href="index.html"> <img src="style/images/art/logon.jpg" alt=""> </a>
</div>
<div id="menu-wrapper">
<div id="menu" class="menu">
<ul id="tiny">
<li class="active"><a href="index.php">Home</a>
</li>
<li><a href="post.html">Wedding</a>
</li>
<li><a href="restaurant.html">Restaurant</a>
<li><a href="club.html">Club</a></li>

Page | 195

D SAPPHIRE
<li><a href="login.html">Login</a></li>
</li>
<li><a href="tourism.html">Tourism</a>
</li>
<li><a href="contact.html">Contact</a></li>
<li><a href="frameset/frameset.html">Specially For you!!!!</a></li>
</ul>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<br><br><br><br><br>
<div class="wrapper">
<div class="intro"><Strong> Welcome member, Main events happened recently!!!!
</Strong></div>
<br><br><br><br><br> <center>
<p style="color:black">Valentine's Celebrations
<br><p style="color:black">Diwali Celebration
<br><p style="color:black">Holi Celebration
<br><p style="color:black">New Years Celebration
<br><p style="color:black">Other Festive Celebrations
<br><p style="color:black">Inter State Competiton (This can take u much higher from here!!!)
<br><p style="color:black">Dance and Singing Competitions
<br><p style="color:black">Fun Competitions for childrens
<br><p style="color:black">Events organised on request also
<br><p style="color:black"><strong> You will get a lot of things with just one membership!!
</strong> </center>
</div>
</div>
<br><br><br><br>
<div class="footer-wrapper">
<div id="footer">
<p Style="Color: #224E07; size: 5; font-size: large;"> Contact Us ::

[email protected]

...<br><br> Phone no ::7507968233,9867176702 </p>


<p Style ="Color: Blue; Size: 5; font-size: large;">2012 Copyrighted Designzzz.com</p>
</div>
<div style="clear:both;"></div>
</div>
</body>
</html>

Disc.html
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>
<meta charset="UTF-8">

Page | 196

D SAPPHIRE
<meta

name="viewport"

content="width=device-width,initial-scale=1,maximum-scale=1,user-

scalable=no">
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link
rel="stylesheet"
type='text/css'
href='http://fonts.googleapis.com/css?
family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/bg/bgg.jpg");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>
<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:false,
duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,
numStatus:false,
banners:false,
waitBannerAnimation:false,
progressBar:false
})
});
</script>
</head>
<body>
<div class="header">
<div class="header">
<div class="logo"> <a href="index.php"> <img src="style/images/art/logon.jpg" alt=""> </a>
</div>
<div id="menu-wrapper">
<div id="menu" class="menu">
<ul id="tiny">
<li class="active"><a href="index.html">Home</a>
</li>

Page | 197

D SAPPHIRE
<li><a href="post.html">Wedding</a>
</li>
<li><a href="restaurant.html">Restaurant</a>
<li><a href="club.html">Club</a></li>
<li><a href="login.html">Login</a></li>
</li>
<li><a href="tourism.html">Tourism</a>
</li>
<li><a href="contact.html">Contact</a></li>
<li><a href="special.html">Specially For you!!!!</a></li>
</ul>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<br><br><br><br><br>
<div class="header-wrapper opacity">
<div class="wrapper">
<p><strong> Valid Discounts for our Premium Members Available :- </strong>
<br><p> Members get a 30% huge discount on any party they want + one room free
<br><p> Members get a 20% discount on any tourism pack they pick
<br><p> Members get a 10% discount on rooms booking
<br><p> Members get a one time free offer for the restaurant (limited Period Offer)
<br><p> <strong> Stay tuned for more updates </strong>
</div>
</div>
<br><br><br><br>
<div class="footer-wrapper">
<div id="footer">
<p Style="Color: #224E07; size: 5; font-size: large;"> Contact Us ::

[email protected]

...<br><br> Phone no ::7507968233,9867176702 </p>


<p Style ="Color: Blue; Size: 5; font-size: large;">2012 Copyrighted Designzzz.com</p>
</div>
<div style="clear:both;"></div>
</div>
</body>
</html>

Change.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Password Change</title>
</head>
<body>

Page | 198

D SAPPHIRE
<h1>Change Password</h1>
<form method="POST" action="change.php">
<table>
<tr>
<td>Enter your UserName</td>
<td><input type="username" size="10" name="username"></td>
</tr>
<tr>
<td>Enter your existing password:</td>
<td><input type="password" size="10" name="password"></td>
</tr>
<tr>
<td>Enter your new password:</td>
<td><input type="password" size="10" name="newpassword"></td>
</tr>
<tr>
<td>Re-enter your new password:</td>
<td><input type="password" size="10" name="confirmnewpassword"></td>
</tr>
</table>
<p><input type="submit" value="Update Password">
</form>
</body>
</html>

Change.php
<?php
$hostname="localhost"; //local server name default localhost
$username="root"; //mysql username default is root.
$password="";
//blank if no password is set for mysql.
$database="sapphire"; //database name which you created
$con=mysql_connect($hostname,$username,$password);
if(! $con)
{
die('Connection Failed'.mysql_error());
}session_start();

mysql_select_db($database,$con);
$username = $_POST['username'];
$password = $_POST['password'];
$newpassword = $_POST['newpassword'];
$confirmnewpassword = $_POST['confirmnewpassword'];
$password1=md5($password);
$password2=md5($newpassword);
$result = mysql_query("SELECT password FROM register1 WHERE
username='$username'");
if(mysql_num_rows($result)==0)
{
echo "The username you entered does not exist";
}

Page | 199

D SAPPHIRE
else if($password1!= mysql_result($result,0))
{
echo "You entered an incorrect password";
}
else if($newpassword==$confirmnewpassword)
{
$sql=mysql_query("UPDATE

register1

SET

password='$password2'

where

username='$username'");
if($sql)
{
echo "Congratulations You have successfully changed your password";
}
}
else
{
echo "Passwords do not match";
}
?>
<p><a href="index.php">Home</a>

Tourism.html
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>
<meta charset="UTF-8">
<meta name="viewport"

content="width=device-width,initial-scale=1,maximum-scale=1,user-

scalable=no">
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link
rel="stylesheet"
type='text/css'
href='http://fonts.googleapis.com/css?
family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/bg/ba2.jpg");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>
<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,

Page | 200

D SAPPHIRE
prevBu:'.prev',
nextBu:'.next',
playBu:false,
duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,
numStatus:false,
banners:false,
waitBannerAnimation:false,
progressBar:false
})
});
</script>
</head>
<body>
<div class="header">
<div class="header">
<div class="logo"> <a href="index.html"> <img src="style/images/art/logon.jpg" alt=""> </a>
</div>
<div id="menu-wrapper">
<div id="menu" class="menu">
<ul id="tiny">
<li><a href="index.php">Home</a>
</li>
<li><a href="post.html">Wedding</a>
</li>
<li><a href="restaurant.html">Restaurant</a>
<li><a href="club.html">Club</a></li>
<li><a href="login.html">Login</a></li>
</li>
<li class="active"><a href="tourism.html">Tourism</a>
</li>
<li><a href="contact.html">Contact</a></li>
<li><a href="frameset/frameset.html">Specially For you!!!!</a></li>
</ul>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<div id="slide">
<div class="slider" ">
<ul class="items">
<li><img src="style/images/art/tour1.jpg" alt=""></li>
<li><img src="style/images/art/tour2.jpg" alt=""></li>
<li><img src="style/images/art/tour3.png" alt=""></li>
<li><img src="style/images/art/tour4.jpg" alt=""></li>

Page | 201

D SAPPHIRE
<li><img src="style/images/art/tour6.jpg" alt=""></li>
<li><img src="style/images/art/tour7.jpg" alt=""></li>
<li><img src="style/images/art/tour8.png" alt=""></li>
<li><img src="style/images/art/tour9.jpg" alt=""></li>
<li><img src="style/images/art/tour10.jpg" alt=""></li>
<li><img src="style/images/art/tour11.jpg" alt=""></li>
<li><img src="style/images/art/tour5.jpg" alt=""></li>
</ul>
</div>
<a href="#" class="prev">&nbsp;</a><a href="#" class="next">&nbsp;</a> </div><div
class="scanlines"></div>
<div class="header-wrapper opacity">
<p><br><Br><br><br><br>Need a break from your daily routine and the boring life. Come visit us
and we will give you the best touring plans for you. You can go around with your friends and family
and have a memorable time over there.. We are always here for you!!!!</p>
</div>
<center>
<br>You can directly book your holiday from here!!
<br><br>
<a

href="paypal/products.php"target="_top"><button>Book

your

Tour!!

</button></a></body></html>
<br><br>
Your designer will be Mr. Harsh Singhal. If you want another designer talk there personally!!!Thank
You!!!<br><br><center>
<p> Here are some of the stills from our customers...... </p><bR><Br><br><br>
<div class="box-1"> <img src="style/images/art/ho1.jpg" alt="" class="img-border imgindent">
<br><br><br><br>
<div class="box-1"> <img src="style/images/art/ho2.jpg" alt="" class="img-border imgindent">
<br><br><br><br>
<div class="box-1"> <img src="style/images/art/ho3.jpg" alt="" class="img-border imgindent">
<br><br><br><br>
<div class="box-1"> <img src="style/images/art/ho4.jpg" alt="" class="img-border imgindent">
<br><br><br><br>
<div class="footer-wrapper">
<div id="footer">
<p Style="Color: #224E07; size: 5; font-size: large;"> Contact Us ::

[email protected]

...&nbsp;&nbsp;&nbsp; Phone no ::7507968233,9867176702 </p>


<p Style ="Color: Blue; Size: 5; font-size: large;">2012 Copyrighted Designzzz.com</p>
</div>
<div style="clear:both;"></div>
</div>
</body>
</html>

Page | 202

D SAPPHIRE

Products.php
<?php
session_start();
$_SESSION['uid'] = '1';
$_SESSION['username'] = 'Fellow Traveller';
$paypal_url='https://www.sandbox.paypal.com/cgi-bin/webscr';
$paypal_id='[email protected]'; // [email protected]
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Products | Store</title>
<style type="text/css">
body{
width: 900px;
margin: 0 auto;
margin-top: 50px;
font:bold 14px arial;
}
.product{
float: left;
margin-right: 10px;
border: 1px solid #cecece;
padding: 10px;
margin-right: 20px;
}
.price{
text-align: right;
}
.btn{
text-align: center;
}
</style>
</head>
<body>
<h2>Welcome, <?php echo $_SESSION['username'];?></h2>
<?php
require 'db_config.php';
$result = mysql_query("SELECT * from products");
while($row = mysql_fetch_array($result)) {
?>
<div class="product">
<div class="name">
<?php echo $row['product'];?>
</div>
<div class="price">
Price: <?php echo $row['price'];?>$
</div>
<div class="btn">
<form action='<?php echo $paypal_url; ?>' method='post' name='frmPayPal1'>
<input type='hidden' name='business' value='<?php echo $paypal_id;?>'>
<input type='hidden' name='cmd' value='_xclick'>

Page | 203

D SAPPHIRE
<input type='hidden' name='item_name' value='<?php echo $row['product'];?>'>
<input type='hidden' name='item_number' value='<?php echo $row['pid'];?>'>
<input type='hidden' name='amount' value='<?php echo $row['price'];?>'>
<input type='hidden' name='no_shipping' value='1'>
<input type='hidden' name='currency_code' value='USD'>
<input type='hidden' name='handling' value='0'>
<input type='hidden' name='cancel_return' value='http://localhost/paypal/cancel.php'>
<input type='hidden' name='return' value='http://localhost/paypal/success.php'>
<input
src="https://www.sandbox.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif"

type="image"
border="0"

name="submit" alt="PayPal - The safer, easier way to pay online!">


<img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif"
width="1" height="1">
</form>
</div>
</div>
<?php
}
?>
</body>
</html>

Contact.php
<?php
/* Set e-mail recipient */
$myemail = "[email protected]";
/* Check all form inputs using check_input function */
$yourname = check_input($_POST['yourname'], "Enter your name");
$subject = check_input($_POST['subject'], "Write a subject");
$email = check_input($_POST['email']);
$website = check_input($_POST['website']);
$likeit = check_input($_POST['likeit']);
$how_find = check_input($_POST['how']);
$comments = check_input($_POST['comments'], "Write your comments");
/* If e-mail is not valid show error message */
if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $email))
{
show_error("E-mail address not valid");
}
/* If URL is not valid set $website to empty */
if (!preg_match("/^(https?:\/\/+[\w\-]+\.[\w\-]+)/i", $website))
{
$website = '';
}
/* Let's prepare the message for the e-mail */
$message = "Hello!

Page | 204

D SAPPHIRE

Your contact form has been submitted by:


Name: $yourname
E-mail: $email
URL: $website
Like the website? $likeit
How did he/she find it? $how_find
Comments:
$comments
End of message
";
/* Send the message using mail() function */
mail($myemail, $subject, $message);
/* Redirect visitor to the thank you page */
header('Location: thanks.htm');
exit();
/* Functions we used */
function check_input($data, $problem='')
{
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
if ($problem && strlen($data) == 0)
{
show_error($problem);
}
return $data;
}
function show_error($myError)
{
?>
<html>
<body>
<b>Please correct the following error:</b><br />
<?php echo $myError; ?>
</body>
</html>
<?php
exit();
}
?>

Email.php
<form method= "post" action= "em.php" />

Page | 205

D SAPPHIRE
<table>
<tr>
<td>Your Name: </td>
<td><input name= "name" type= "text"/></td>
</tr>
<tr>
<td>Your e-mail address: </td>
<td><input name= "email" type= "text"/></td>
</tr>
<tr>
<td>Your message: </td>
<td><textarea name= "question" cols= "20" rows= "6"></textarea></td>
</tr>
<tr>
<td></td>
<td><input name= "buttonPressed" type= "submit" value= "Send E-mail!" /></td>
</tr>
</table>
</form>
<?php ?>

Em.php
<?php
$hostname="localhost"; //local server name default localhost
$username="root"; //mysql username default is root.
$password="";
//blank if no password is set for mysql.
$database="sapphire"; //database name which you created
$con=mysql_connect($hostname,$username,$password);
if(! $con)
{
die('Connection Failed'.mysql_error());
}
mysql_select_db($database,$con);
$sql="insert
into
email(name,eaddr,message)

values('".$_REQUEST['name']."','".

$_REQUEST['email']."', '".$_REQUEST['question']."')";
$res=mysql_query($sql);
If($res)
{
echo "Your message has been sent!! We will soon get back to you . Thank You for contacting us!!";
Echo $_REQUEST['name'];
?>
<br><a href="contact.html"><button>Go Back</button></a></center><br><br>
<br><br>
<?php
}
Else
{
Echo "There is some problem in sending mail!!!Try Again Later!";
}
?>

Frameset.html

Page | 206

D SAPPHIRE

<html>
<head>
<title> Welcome to our special tag.. You can view a list of extra services provided to you from here.
</title>
</head>
<frameset rows="100%" cols="20%,60%,*">
<frame src="slidebar1.html">
<frame src="home.html" name="abhi">
<frame src="slidebar2.html">
</frameset>
</html>

Disc.html
<html>
<head>
<title>
</title>
</head>
<body style="background-color:yellow"> <div class="intro"style='text-align:left'>

<img src="di1.png" border="2" style="border:2px solid black;"/><br><br>


<br>
<br>SUPREME
ENTERTAINER<br><br><a
href=http://www.supremeentertainer.com>http://www.supremeentertainer.com</a>
<br>Welcome to SUPREME ENTERTAINER Your Entertainment Superstore We are Manitobas
Premiere DJ and Entertainment Company! I have one goal in mind: to consistently provide the
highest quality of musical entertainment to its premium clients by always exceeding customer
expectation with regards to professionalism, integrity and communication. SUPREME
ENTERTAINER is proud to offer ! A variety of services ranging from (but not limited to): Wedding
Receptions, Wedding Socials, School Dances, Birthdays, Private/Corporate Events, Reunions and
much more. Our size and diversity allows us to perform at any venue imaginable with the most
qualified and experienced DJs at your side. Below is a synopsis pertaining to our credentials and
special services we provide for all of our clientele: I Provide Written Contracts I Use Only
Professional Grade Equipment I Set-up early prior to your event I Take Request and Accept Music
List I Use Radio Edited Music and Provide Club Style Mixing I have Suitably Dressed DJs for the
Occasion I have the Largest Selection of Music Around I Include DJ lights and Microphones to all
my packages I Include Social Tickets with my services I Love to Get the Party Started. Log on to
www.supremeentertainer.com for more info and packages available or email me/call . We have
Karaoke and Magic/Hypnotist acts to amaze your crowd<br><br>

Page | 207

D SAPPHIRE
<hr><hr>
<img src="di2.jpg" border="2" style="border:2px solid black;"/><br><br>
<br>
<br>
NEW

AGE

SOUND

&

LIGHTING<br><br><br><a

href=http://www.newasal.com>http://www.newasal.com</a>
<br><br>At New Age Sound & Lighting we will work with you every step of the way when
planning the entertainment for your wedding. We come equipped with a full array of lighting to
compliment your wedding theme and colors. Our staff is
accessible prior, during, and post your event to ensure that we have satisfied all of your
entertainment needs<hr><hr>
<img src="di3.jpg" border="2" style="border:2px solid black;"/><br><br>
<br>
<br>
<br>
CHRIS

HOLLYWOOD

PRODUCTIONS<br><a

href=http://www.chrishollywoodproductions.com>http://www.chrishollywoodproductions.com</a>
<br><br>
Chris Hollywood Productions specializes in: AV & Event Production, DJ, MC, Live &
Extraordinary Entertainment, On-SIte Photo Printing, Helix Candle Luminaries + Dcor Solutions
& Spiral Melt Candles as Gifts.
On Your Special Day You Deserve Nothing but the Best!
We are committed to assisting our clients in designing & creating truly memorable events. Our
experienced team will transform your creative vision into a reality & will bring your event to life!
We proudly provide supreme product & service solutions to enhance and transform your event into
an unforgettable experience!
Chris Hollywood Productions Primary Goal is Customer Service Excellence!
Our clients visions & wishes are the foundation of the work that we do. We work with our clients,
their chosen venues & often even their event and dcor planners too to create a custom game plan
that ensures that all-important details are never overlooked. Most importantly, we make sure that all
your unique needs are consistently handled and met with the utmost professionalism which rivals all
competition!
Trust us to Create & Deliver the Event Experience of your Dreams!
It is our companys mission to consistently craft event experiences that are stylishly stunning,
unique, memorable and most importantly successful, fun & exciting to be a part of!
<hr></body></html>

Page | 208

D SAPPHIRE

Flowers.html
<html>
<head>
<title>
</title>
</head>
<body style="background-color:yellow"> <div class="intro"style='text-align:left'>

<img src="f1.png" border="2" style="border:2px solid black;"/><br><br>


<br>
<br>GATTO
FLOWERS

<br><br><a

href=http://www.gattoflowers.ca>http://www.gattoflowers.ca</a>
<br>Gatto Flowers has been a family business for over 30 years. Our original and creative work has
made visions become a reality. As a leading florist, we take pride in everything we do and will work
hard to make sure you are 100% satisfied with
our creations. Our breadth and depth of offering is extensive and will work with any budget to
ensure your day is as you imagine it to be. Let us make the difference. For a free consultation at no
obligation, please call us at 905-670-0636.<br><br>
<br><br>
<hr><hr>
<img src="f2.jpg" border="2" style="border:2px solid black;"/><br><br>
<br>
<br>
ACADEMY

FLORIST

WEDDINGS<br><br><br><a

href=http://www.weddingflowerswinnipeg.com/>http://www.weddingflowerswinnipeg.com/</a>
<br><br>Academy Florist has been a top Winnipeg wedding florist for over thirty years, bringing
plenty of experience, dedication, and style to each wedding we work on. From wedding bouquets,
bridesmaid bouquets, boutonnieres, ceremony flowers and centrepieces, we will design the perfect
wedding flowers for you.<br>
<hr><hr>
<img src="f3.jpg" border="2" style="border:2px solid black;"/><br><br>
<br>
<br>
<br>
BELEZA

FLORAL

AND

DECOR<br><a

href=http://www.belezafloralanddecor.com/>http://www.belezafloralanddecor.com/</a>
<br><br>

Page | 209

D SAPPHIRE
We are an up and coming wedding and event florist serving the greater Toronto area. Weddings are
our passion! We love taking a bride and grooms vision for their special day and designing unique
and beautiful bouquets, boutonnieres, centerpieces and any other special arrangements needed.
Beleza Floral and Dcor will go through every detail with the lucky couple and ensure that every
floral
aspect of their wedding represents them to the fullest and will have their guests talking about their
wedding for years to come! If you would like to discuss your wedding give us a call or drop us an
email to book your free consultation today!
<hr></body></html>

Footwear.html
<html>
<head>
<title>
</title>
</head>
<body style="background-color:red"> <div class="intro"style='text-align:left'>

<img src="fo1.jpg" border="2" style="border:2px solid black;"/><br><br>


<br>
<br>
PETES SHOES ONLINE <br><br><a href=http://www.petesshoesonline.com/KSwiss-WomensShoes-Categories/b/8311552011>http://www.petesshoesonline.com/KSwiss-Womens-ShoesCategories/b/8311552011</a>
<br>Pete shoes online is the Shoes Store ,which is provide a best collection of shoes online at
petesshoesonline.com , Browse the top brand selection of shoes, sandal and much more. Enjoy your
entire day. Petes shoes online offer a shoes services globally with totally free shipping and also
returns your own house and household places.<br><br>
<hr><hr>
<br>
<br>
GROOMSOCKS.COM<br><br><br><a
href=http://www.groomsocks.etsy.com>http://www.groomsocks.etsy.com</a>
<br><br>We offer Groom Socks with our most popular phrase IN CASE YOU GET COLD FEET
wedding socks, father of the bride, father-in-law wedding and grooms men socks all for walking
down the aisle. Also couples tees for anniversary gifts and bachelor tees. Quality products
customized especially for you!<br>

Page | 210

D SAPPHIRE
<hr><hr>
</body></html>

Gift.html
<html>
<head>
<title>
</title>
</head>
<body style="background-color:yellow"> <div class="intro"style='text-align:left'>

<img src="g1.jpg" border="2" style="border:2px solid black;"/><br><br>


<br>
<br>GIFTS
FOR
EVERY
REASON

<br><br><a

href=http://www.giftsforeveryreason.com/>http://www.giftsforeveryreason.com/</a>
<br>In business for over 9 years, nominated BEST Gift Shop in Whitby/Oshawa, winner of
numerous awards, and highlighted in Whitbys Snap Newspaper. ALL Designing, Photography and
Basket Assembly are done ON SITE by OUR STAFF to ensure the best price, quality and freshness
to you. FREE Delivery anywhere in ONTARIO and QUEBEC shipping across Canada at
discounted rates. <br> Savoury, Vegan, Gluten/Nut Free, Sugar Free, Spa and more.
15 Lismer Dr<br>
Whitby, ON
<br>
L1n9A3<br><br>
<hr><hr>
</body></html>

h.html
<html>
<head>
</head>
<body style="background-color:red"> <div class="intro"style='text-align:left'>
<br>
<br>
<div class="intro"style='text-align:left'>
Want to return to your Home page.Click below:<br><br>
<a href="../index.php"target="_top"><button>Go To Home Page</button></a>
</body></html>

Page | 211

D SAPPHIRE

Ho.html
<html>
<head>
<title>
</title>
</head>
<body style="background-color:yellow"> <div class="intro"style='text-align:left'>
<img src="h1.jpg" border="2" style="border:2px solid black;"/><br><br>
<br>
<br>
DETAIL DESIGN GALLERY <br><br>
<br>Detail Design Gallery has a reputation for fine art hosting and original, creative framing. If you
are looking for the perfect gift or framing the wedding pictures, this is a place to see.
Located in a historic house in the heart of Old Maple (Vaughan) The Gallery takes pride in
unparalleled service, attention to detail, knowledgeable advice. We carry fine art pieces (painting,
glass, sculpture) as well as a refined selection of giclee prints. Our extensive choice of framing
mouldings makes Detail design Gallery suitable for big or small budgets without compromising the
perfect solution for any framing needs.
<br><br>
See
you

in

the

Gallery!<br><a

[email protected]>[email protected]</a><br>
<hr><hr>
<img src="h2.jpg" border="2" style="border:2px solid black;"/><br><br>
<br>
<br>

PALITURE

CUSTOM

FURNITURE<br><br><br><a

href=http://www.paliture.com>http://www.paliture.com</a>
<br><br>Rustic and stylish furniture to suit your everyday needs.
All solid wood design, hand crafted from new and reclaimed Canadian white pine.
Hand finished layering technique for exceptional depth of color and durability.
Specializing in Dining & Breakfast Tables, Bars, Consoles & Buffet, Wine Racks, Wall &
Bookshelves, Storage Benches, Coffee & Accent Tables, Beds & Headboards, Bedside Tables and
Dressers
<br>Custom size any piece to fit your home. Its not just furniture, its a work art.
<br>57 Ferris Lane

Page | 212

D SAPPHIRE
<br>Alliston, ON
<br>
L9R0J3<br>
<hr><hr>
<br>
<br>
<br>
POTTERY BARN<br><a href=http://www.potterybarn.ca/>http://www.potterybarn.ca/</a>
<br><br>
Pottery Barn home furnishings are exceptional in comfort, style, quality and value. Our inhouse
designers draw inspiration from around the world to create an exclusive collection of furniture,
bedding, decorative accessories, dinnerware and more for every room in the home. Through our
partnership with global provider FiftyOne, most items are now available with international shipping
to over 75 countries;
<hr></body></html>

Home.html

<html>
<head> <strong> Home
</head>

<body style="background-color:red"> <div class="intro"style='text-align:left'>

<br>
<br>

<div class="intro"style='text-align:left'>

This page let you view the special and different facilities our place provides to you.<br><br>

Page | 213

D SAPPHIRE
Welcome to our special tag.. You can view a list of extra services provided to you from here.</body></html>

Jewel.html

<html>
<head>
<title>
</title>
</head>

<body style="background-color:red"> <div class="intro"style='text-align:left'>

<img src="j1.png" border="2" style="border:2px solid black;"/><br><br>


<br>
<br>FIFTH

AVENUE

COLLECTION<br><br><a

[email protected]>[email protected]</a>

<hr><hr>
<img src="j2.jpg" border="2" style="border:2px solid black;"/><br><br>
<br>
<br>

Page | 214

D SAPPHIRE

FERI

FASHION

HOUSE

GLOBAL

WEALTH

TRADE<br><br><a

href=http://www.globalwealthtrade.com/marissarimbao>http://www.globalwealthtrade.com/marissarimbao</
a>

<br><br>Feri Fashion House is the fastest growing luxury designer in the world since 2007. It is the designer
most often seen on the Red Carpet and on Hollywood stars. The Feri line contains exquisitely crafted pieces
of designer jewelry, timepieces, sunglasses called shields, designer hand bags and wallets. Constructed with
the best raw materials available which includes 925-940 silver, premium high tech ceramic, premium grade
tungsten carbide and the GWT exclusive plangsten blend. The 19k line offers bridal engagement rings as well
as especially designed product pieces like rings, earrings and pendants. Our Feri Mosh 21k custom made line,
combined with the worlds purest jewelry and Feri Mosh cutting edge design makes the 21k prestige designer
line the worlds most precious and collectible jewelry.<hr><hr>
<img src="j3.jpg" border="2" style="border:2px solid black;"/><br><br>
<br>
<br>
<br>
RANDOR JEWELLERY INC

<br><a href=http://www.randor.com>http://www.randor.com</a>
For 25 years, Randor Jewellery has specialized in providing custom diamond engagement rings & wedding
bands & wedding rings to brides & grooms in the Toronto area. We have a large selection of ready-made
jewellery, but if you dont find something that you like, we can absolutely create something made custom,
just for you, at a great price!

Randor Jewellery is a member of the Canadian Jewellers Association (CJA) & the Jewellers Vigilance
Committee, both of which hold high standards of professional conduct, ethics & integrity. Were also
graduated of the prestigious Gemological Institute of America.

Page | 215

D SAPPHIRE
Let us help you choose the perfect piece for your special occasion.
<br><br>
<hr></body></html>

Pic.html

<html>
<head>
<title>
</title>
</head>

<body style="background-color:yellow"> <div class="intro"style='text-align:left'>

<img src="ph1.png" border="2" style="border:2px solid black;"/><br><br>


<br>
<br>
MDRN

PHOTOBOOTH

COMPANY

<br><br><a

href=http://www.mdrnphotoboothcompany.com>http://www.mdrnphotoboothcompany.com</a>

<br>WERE UNLIKE ANY OTHER PHOTOBOOTH EXPERIENCE.

Page | 216

D SAPPHIRE

We pride ourselves on giving our customers fun, high-quality photo experiences that make for long-lasting,
unique memories, like when Anne Hathaway and James Franco hosted the Oscars only this time people
will like it!

ITS MORE THAN JUST A POINT, DUCK LIPS, AND CLICK EXPERIENCE WHEN WERE AT YOUR
PARTY.

Our photobooths are equipped with high quality professional cameras that are capable of taking videos and
pictures. Get your photos printed instantly in 26 strips or on a 46 sheet.

WELL MAKE YOUR TIME IN FRONT OF THE CAMERA THAT MUCH MORE SPECIAL.

If youre looking for something extra specific, we also offer custom props and backdrops to suit the specifics
of your event so that your guests can do more than duck lips and peace signs! You can make your event as
wacky as a Lady Gaga concert or as pristine as a Real Housewifes living room. All of the props for your
event will be beautifully displayed on a decorated prop table because you deserve more than a folding table
(splinters optional).

SNAP AND SHARE.<br><br>


<hr><hr>
<img src="ph2.jpg" border="2" style="border:2px solid black;"/><br><br>
<br>
<br>

Page | 217

D SAPPHIRE
TAKE

MY

PHOTO

PHOTO

BOOTH

RENTALS<br><br><br><a

href=http://www.weddingflowerswinnipeg.com/>http://www.weddingflowerswinnipeg.com/</a>

<br><br>Instant Photos. Instant Memories. Instant Fun.

Our Photo Booth rental is a great addition to your wedding, birthday party, corporate event, or any special
event. Our ultra-compact and versatile photo booth is built with the latest camera and printer technology.

Professional Photos + Quality Prints + Award Winning Customer Service = 5 Star Rating

Make your next event one to remember with Take My Photo. We are 100% Certified Fun!<hr><hr>
<img src="ph3.jpg" border="2" style="border:2px solid black;"/><br><br>
<br>
<br>
<br>

LOL

PHOTO

BOOTH<br><a

href=http://www.lolphotoboothgta.com>http://www.lolphotoboothgta.com</a>

<br><br>
We are a fully enclosed or open-air photo booth that can be setup at any venue. Our mission is to make your
event fun, exciting and memorable. Call us today for further details.<hr></body></html>

Rin.html

Page | 218

D SAPPHIRE
<html>
<head>
<strong>RINGS
</head>

<body style="background-color:red"> <div class="intro"style='text-align:left'>

<img src="r1.jpg" border="2" style="border:2px solid black;"/><br><br>


<br>
<br>
THE DEN <br><br><a href=http://www.thedentoronto.com>http://www.thedentoronto.com</a>

<br>At The Den we believe that the jewellery you wear on your wedding day should be crafted with love,
attention and above all be as unique and special as you and your partner are. Our Wedding Packages are
tailored to allow you to be integral
in the design process and most importantly in the creation of your jewellery.

In this private workshop, you and your partner will share the romance of making your own wedding rings
with the help of an experienced goldsmith. You can choose from a variety of metals and widths and can
infuse your own style and flare into your rings.

The memories you create during this unique and remarkable experience will be as beautiful as the rings
themselves, and both will last a lifetime.

Page | 219

D SAPPHIRE
<hr><hr>
</body></html>

Ring.html

<html>
<head>
<title> RINGS </title>
</head>

<body style="background-color:red"> <div class="intro"style='text-align:left'>

<img src="r1.jpg" border="2" style="border:2px solid black;"/><br><br>


<br>
<br>
THE DEN <br><br><a href=http://www.thedentoronto.com>http://www.thedentoronto.com</a>

<br>At The Den we believe that the jewellery you wear on your wedding day should be crafted with love,
attention and above all be as unique and special as you and your partner are. Our Wedding Packages are
tailored to allow you to be integral
in the design process and most importantly in the creation of your jewellery.

Page | 220

D SAPPHIRE
In this private workshop, you and your partner will share the romance of making your own wedding rings
with the help of an experienced goldsmith. You can choose from a variety of metals and widths and can
infuse your own style and flare into your rings.

The memories you create during this unique and remarkable experience will be as beautiful as the rings
themselves, and both will last a lifetime.

<hr><hr>
</body></html>

Slidebar1.html

<html>
<head>
<title>
</title>
</head>

<body style="background-color:orange">

<a href="home.html" target="abhi">Home</a><br>


<a href="Cakes.html" target="abhi">Cakes</a><br>
<a href="Disc.html" target="abhi">Disc Jockeys</a><br>
<a href="jewel.html" target="abhi">Jewelery</a><br>

Page | 221

D SAPPHIRE
<a href="pic.html" target="abhi"> Photo Booths </a><br>
<a href="rin.html" target="abhi">Rings </a><br>
<a href="h.html" target="abhi">Go Back </a><br>

</body>
</html>

Slidebar2.html

<html>
<head>
<title>
</title>
</head>

<body style="background-color:green">

<a href="Flowers.html" target="abhi"> Flowers </a><br>


<a href="Footwear.html" target="abhi">Footwear </a><br>
<a href="Gift.html" target="abhi"> Gift Shop </a><br>
<a href="Ho.html" target="abhi"> Home Furnishings </a><br>
<a href="wine.html" target="abhi"> Wineries </a><br>

</body>

Page | 222

D SAPPHIRE
</html>

Welcome.html

<html>
<head>
<title>
</title>
</head>

<body style="background-color:grey;">
<h1 style="text-align:center">Welcome to the Future World</h1>
</body>
</html>

Welcomeframe.html

<html>
<head>
<title>
</title>
</head>

<frameset rows="25%,*" cols="100%">


<frame src="welcome.html">

Page | 223

D SAPPHIRE
<frame src="frameset.html">
</frameset>

</html>

Wine.html

<html>
<head>
</head>

<body style="background-color:yellow"> <div class="intro"style='text-align:left'>

<br>
<br>
ANDREW PELLER LIMITED <br><br><a href=www.andrewpeller.com>www.andrewpeller.com</a>

<br>With a focus on serving the needs of all wine consumers, the Company produces and markets personal
winemaking products through Global Vintners Inc., the world leader in the consumer-made wine industry.
Global Vintners manufacturers and distributes products worldwide under the main brands of Winexpert,
Vineco, Wine Kitz and Artful Winemaker. In addition, the Company owns and operates Vineyards Estate
Wines, Aisle 43 and WineCountry Vintners, independent wine retailers in Ontario with more than 100 wellpositioned retail locations. The Companys products are sold predominantly in Canada. The company also
represents a broad range of international brands through its two import divisions, Grady Wine Marketing in
British Columbia, Alberta, Saskatchewan and Manitoba, and The Small Winemakers Collection in Ontario.

Page | 224

D SAPPHIRE

<hr><hr>
</body></html>

Admin.html

<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link

rel="stylesheet"

type='text/css'

href='http://fonts.googleapis.com/css?

family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>

Page | 225

D SAPPHIRE
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/bg/red.jpg");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>

<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:false,

duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,
numStatus:false,
banners:false,

Page | 226

D SAPPHIRE
waitBannerAnimation:false,
progressBar:false
})
});
</script>

</head>
<body>
<div class="header">
<div class="header">
<div class="logo"> <a href="index.html"> <img src="style/images/bg/logo.png" alt=""> </a> </div>
<img src="style/images/bg/ad.jpg" alt="" class="img-border img-indent">
<br>

</div>
<center>
<div class="intro" style='text-align:left'>Admin can see the reports and control the functioning
</div>

<br><br><br>
<a href="rsale.html"><button>Add the Restaurant Sale Entry</button></a><br><br>
<a href="bid.html"><button>Check the Booking Details</button></a><br><br>
<a href="park.html"><button>Add the Parking Details</button></a><br><br>

Page | 227

D SAPPHIRE
<a href="add.html"><button>Add the Sales Entry</button></a><br><br>
<a href="adetails.html"><button>Add a user</button></a><br><br>

<a href="del.html"><button>Delete a user</button></a><br><br>


<a href="select.html"><button>Change the Hall Availability</button></a><br><br>
<a href="select1.html"><button>Change the Event Planner Availability</button></a><br><br>
<a href="ban.html"><button>Add the Banquet transactions</button></a><br><br>
<a href="empl.php"><button>List of employees</button></a><br><br>

<a href="special.html"><button>Profile of Potential Customers</button></a><br><br>

<a href="table.php"><button>View the Restaurant Sale Report</button></a><br><br>

<a href="tot.php"><button>View the Total Sale Report</button></a><br><br>

<a href="market.php"><button>Recent Marketing and Advertising</button></a><br><br>

<a href="tc.html"><button>Check Profit/Loss</button></a><br><br>

<a href="chmem.php"><button>Check Members List</button></a><br><br>

<a href="index.php"><button>Logout</button></a><br><br>

Rsale.html

Page | 228

D SAPPHIRE
<html>
<head>
<title>RESTAURANT

DAILY

SALES

FORM</title><link

rel="stylesheet"

type="text/css"

href="style.css"></head>
<body>

<form name="registration" method="post" action="rsale.php">


<!-- we will create registration.php after registration.html -->
<fieldset>
<legend>Daily Sales Form </legend>
<p>GUEST NAME:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input type="text" name="gname"
value=""><br>
<p>FOOD

ORDERED:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="text"

name="food" value=""><br>
<p>BILL:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="text"

name="bill"

value=""><br>

<p><input type="submit" name="submit" value="submit">


</fieldset>
</form>

</body>
</head>
</html>
</center>

Page | 229

D SAPPHIRE

Rsale.php

<?php
$hostname="localhost"; //local server name default localhost
$username="root"; //mysql username default is root.
$password="";

//blank if no password is set for mysql.

$database="sapphire"; //database name which you created


$con=mysql_connect($hostname,$username,$password);
if(! $con)
{
die('Connection Failed'.mysql_error());
}session_start();

mysql_select_db($database,$con);

If(isset($_REQUEST['submit'])!='')
{

If($_REQUEST['gname']=='' || $_REQUEST['food']==''|| $_REQUEST['bill']=='')


{
Echo "please fill the empty field.";
}
Else

Page | 230

D SAPPHIRE
{
$sql="insert

into

restaurant_sale(GuName,GuMenu,GuSale,Date)

values('".$_REQUEST['gname']."','".

$_REQUEST['food']."', '".$_REQUEST['bill']."','".date('d'.'m'.'y')."')";
$res=mysql_query($sql);
$s="insert into payments(Type,Charges,Date) values('Credit','".$_REQUEST['bill']."','".date('d'.'m'.'y')."')";

$re=mysql_query($s);

If($res)
{
Echo "Sale is updated";

include 'admin.html';

}Else
{
Echo "There is some problem in inserting record";
}
}
}

?>

Page | 231

D SAPPHIRE

Bid.html

<html>
<head>
<title>DETAILSFORM</title><link rel="stylesheet" type="text/css" href="style.css"></head>
<body>

<form name="registration" method="post" action="chbid.php">


<!-- we will create registration.php after registration.html -->
<fieldset>
<legend>Details Form </legend>
<p>Enter the Booking ID:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input type="number"
name="bi" value=""><br>
<p><input type="submit" name="submit" value="submit">
</fieldset>
</form>

</body>
</head>
</html>

Chbid.php

<html>

Page | 232

D SAPPHIRE
<img src='style/images/bg/rep1.jpg' style='position:fixed;top:0px;left:0px;width:100%;height:100%;z-index:1;'>

<?php
echo "<br><br><center><strong>Booking Details!!!! <br><br>";
$con=mysqli_connect("localhost","root","","sapphire");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}

$result

mysqli_query($con,"SELECT

fname,lname,saddr,city,state,zip,country,phone,email,hall,party,rooms,date,eplan,theme,boutique,parlour,dev
ent,hsuite,cartoons,boid,amount FROM bookbanquet where boid='".$_REQUEST['bi']."'");

echo "<table border='1'>


<tr>
<th>First Name</th>

<th>Last Name</th>
<th>Address</th>
<th>City</th>

<th>State</th>

Page | 233

D SAPPHIRE
<th>Zip Code</th>

<th>Country</th>
<th>Phone</th>

<th>Email</th>
<th>Hall</th>

<th>Party</th>
<th>No.of Rooms</th>
<th>Date</th>

<th>Event Planner</th>
<th>Theme</th>

<th>Boutique</th>
<th>Parlour</th>

<th>Dance Events</th>
<th>Honeymoon Suite</th>
<th>Cartoons</th>
<th>Booking ID</th>

<th>Amount</th></tr>";

Page | 234

D SAPPHIRE

while($row = mysqli_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['fname'] . "</td>";
echo "<td>" . $row['lname'] . "</td>";
echo "<td>" . $row['saddr'] . "</td>";
echo "<td>" . $row['city'] . "</td>";
echo "<td>" . $row['state'] . "</td>";
echo "<td>" . $row['zip'] . "</td>";
echo "<td>" . $row['country'] . "</td>";
echo "<td>" . $row['phone'] . "</td>";
echo "<td>" . $row['email'] . "</td>";
echo "<td>" . $row['hall'] . "</td>";
echo "<td>" . $row['party'] . "</td>";
echo "<td>" . $row['rooms'] . "</td>";
echo "<td>" . $row['date'] . "</td>";
echo "<td>" . $row['eplan'] . "</td>";
echo "<td>" . $row['theme'] . "</td>";
echo "<td>" . $row['boutique'] . "</td>";
echo "<td>" . $row['parlour'] . "</td>";
echo "<td>" . $row['devent'] . "</td>";
echo "<td>" . $row['hsuite'] . "</td>";
echo "<td>" . $row['cartoons'] . "</td>";

Page | 235

D SAPPHIRE
echo "<td>" . $row['boid'] . "</td>";
echo "<td>" . $row['amount'] . "</td>";
echo "</tr>";
}
echo "</table><br><br><br><Br>";

mysqli_close($con);
?>
<br><Br><br>
<input type=button onclick="window.print()" value='Print Report'>
<a href="admin.html"><button>Go Back</button></a><br><br>

Park.html

<html>
<head>
<title>PARKING FORM</title><link rel="stylesheet" type="text/css" href="style.css"></head>
<body>

<form name="registration" method="post" action="park.php">


<!-- we will create registration.php after registration.html -->
<fieldset>
<legend>Parking Form </legend>

Page | 236

D SAPPHIRE
<p>Car

Number:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="text"

name="c1"

type="text"

name="c2"

value=""><br>
<p>Guest

Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

value=""><br>

<p>Time

In:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="text"

name="t1"

type="text"

name="t2"

value=""><br>
<p>Time

Out:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

value=""><br>

<p><input type="submit" name="submit" value="submit">


</fieldset>
</form>

</body>
</head>
</html>

Add.html

<html>
<head>
<title>RESTAURANT

DAILY

SALES

FORM</title><link

rel="stylesheet"

type="text/css"

href="style.css"></head>
<body>

<form name="registration" method="post" action="add.php">

Page | 237

D SAPPHIRE
<!-- we will create registration.php after registration.html -->
<fieldset>
<legend>Daily Sales Form </legend>
<p>Type Of Transaction:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input type="text" name="ty"
value=""><br>
<p>Charges:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="text"

name="cha"

value=""><br>

<p><input type="submit" name="submit" value="submit">


</fieldset>
</form>

</body>
</head>
</html>

Add.php

<?php
$hostname="localhost"; //local server name default localhost
$username="root"; //mysql username default is root.
$password="";

//blank if no password is set for mysql.

$database="sapphire"; //database name which you created


$con=mysql_connect($hostname,$username,$password);
if(! $con)

Page | 238

D SAPPHIRE
{
die('Connection Failed'.mysql_error());
}session_start();

mysql_select_db($database,$con);

If(isset($_REQUEST['submit'])!='')
{

If($_REQUEST['ty']=='' || $_REQUEST['cha']=='')
{
Echo "please fill the empty field.";
}
Else
{
$s="insert

into

payments(Type,Charges,Date)

values('".$_REQUEST['ty']."','".

$_REQUEST['cha']."','".date('d'.'m'.'y')."')";

$re=mysql_query($s);

If($re)
{

Page | 239

D SAPPHIRE
Echo '<font color="white">'."Sale is updated".'</font><br>';

include 'admin.html';

}Else
{
Echo "There is some problem in inserting record";
}
}
}

?>

Adetails.html

<html>
<head>
<title>REGISTRATION FORM</title><link rel="stylesheet" type="text/css" href="style.css"></head>
<body>

<form name="registration" method="post" action="areg.php">


<!-- we will create registration.php after registration.html -->
<fieldset>
<legend>Sign Up Form </legend>

Page | 240

D SAPPHIRE
<p>NAME:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="text"

name="mname"

value=""><br>
<p>ADDRESS:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="text"

name="addr"

NUMBER:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="text"

value=""><br>
<p>CONTACT

name="cont" value=""><br>
<p>EMAIL ID:&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input type="text" name="mail" value=""><br>

<p>DATE

OF

BIRTH:&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="text"

name="dob"

value=""><br>
<p>TYPE:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br>

<select name="number" id="course"

style="width:158px;">
<option value="none">----Choose the Type ----</option>
<option value="Temporary">Temporary</option>
<option value="Premium">Premium</option></select>
<br>
<p>OCCUPATION:&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input type="text" name="occu" value=""><br>
<p>ENTER THE TRANSACTION NUMBER ON THE MEMBER SLIP OF YOUR PAYMENT
CARD:&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input type="text" name="trans" value=""><br>

<p>USERNAME:&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input type="text" name="name" value=""><br>


<p>PASSWORD:&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="password"

name="password"

value=""><br>
<p>RE-PASSWORD:<br><br><input type="password" name="repassword" value=""><br>
<p><input type="submit" name="submit" value="submit">
</fieldset>

Page | 241

D SAPPHIRE
</form>

</body>
</head>
</html>

Areg.php

<?php
$hostname="localhost"; //local server name default localhost
$username="root"; //mysql username default is root.
$password="";

//blank if no password is set for mysql.

$database="sapphire"; //database name which you created


$con=mysql_connect($hostname,$username,$password);
if(! $con)
{
die('Connection Failed'.mysql_error());
}session_start();

$v=$_REQUEST['mname'];
$_SESSION['var'] = $v;
echo $v;

Page | 242

D SAPPHIRE
mysql_select_db($database,$con);

If(isset($_REQUEST['submit'])!='')
{

If($_REQUEST['mname']=='' || $_REQUEST['addr']==''|| $_REQUEST['cont']=='' ||$_REQUEST['name']==''


||

$_REQUEST['password']==''||

$_REQUEST['repassword']==''||$_REQUEST['mail']==''

||

$_REQUEST['dob']==''|| $_REQUEST['number']==''|| $_REQUEST['occu']==''|| $_REQUEST['trans']=='')


{
Echo "please fill the empty field.";
}
Else
{
$sql="insert

into

register1(Mname,Maddr,Mcont,Memail,username,password,MDob,Mtype,Moccu,Transaction_Number)
values('".$_REQUEST['mname']."','".$_REQUEST['addr']."',
$_REQUEST['mail']."','".$_REQUEST['name']."',

'".$_REQUEST['cont']."','".
md5('".$_REQUEST['password']."'),'".

$_REQUEST['dob']."', '".$_REQUEST['number']."','".$_REQUEST['occu']."','".$_REQUEST['trans']."')";
$res=mysql_query($sql);
If($res)
{
Echo "The user is succesfully added";
include 'admin.html';
}Else
{
Echo "There is some problem in inserting record";

Page | 243

D SAPPHIRE
}

}
}

?>

Del.html

<html>
<head>
<title>REGISTRATION FORM</title><link rel="stylesheet" type="text/css" href="style.css"></head>
<body>

<form name="registration" method="post" action="del.php">


<!-- we will create registration.php after registration.html -->
<fieldset>
<legend>Delete Form </legend>
<p>ENTER

USER-NAME:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="text"

name="Uname" value=""><br>
<p><input type="submit" name="submit" value="submit">
</fieldset>
</form>

Page | 244

D SAPPHIRE
</body>
</head>
</html>

Del.php

<?php
$hostname="localhost"; //local server name default localhost
$username="root"; //mysql username default is root.
$password="";

//blank if no password is set for mysql.

$database="sapphire"; //database name which you created


$con=mysql_connect($hostname,$username,$password);
if(! $con)
{
die('Connection Failed'.mysql_error());
}session_start();

mysql_select_db($database,$con);

If(isset($_REQUEST['submit'])!='')
{

If($_REQUEST['Uname']=='')

Page | 245

D SAPPHIRE
{
Echo "please fill the empty field.";
}
Else
{
$sql="delete from register1 where username='".$_REQUEST['Uname']."'";
$res=mysql_query($sql);
If($res)
{
Echo "User is deleted!!";

include 'admin.html';

}
Else
{
Echo "There is some problem in deleting record";
}
}
}
?>

Select.html

<!DOCTYPE HTML>

Page | 246

D SAPPHIRE
<html lang="en">
<head>
<title>D Sapphire</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link

rel="stylesheet"

type='text/css'

href='http://fonts.googleapis.com/css?

family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/bg/bgg.jpg");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>

Page | 247

D SAPPHIRE
<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:false,

duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,
numStatus:false,
banners:false,
waitBannerAnimation:false,
progressBar:false
})
});
</script>

</head>
<script>

Page | 248

D SAPPHIRE
function showUser(str) {
if (str=="") {
document.getElementById("txtHint").innerHTML="";
return;
}
if (window.XMLHttpRequest) {
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
} else { // code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4 && xmlhttp.status==200) {
document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","getuser.php?q="+str,true);
xmlhttp.send();
}
</script>
</head>
<body>

<br><br><br><br><br>

Page | 249

D SAPPHIRE
Choose a hall:
<form>
<select name="users" onchange="showUser(this.value)">
<option value="">Select:</option>
<option value="1">Vatika</option>
<option value="2">Celebration</option>
<option value="3">Meeting Room</option>
<option value="4">Board Room</option>
<option value="5">Mapple</option>
<option value="6">Shagun</option>
</select>
</form>
<br>
<div id="txtHint"><b></b></div>
<br><br><br>
</body>
</html>

Getuser.php

<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">

Page | 250

D SAPPHIRE
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link

rel="stylesheet"

type='text/css'

href='http://fonts.googleapis.com/css?

family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/bg/bgg.jpg");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>

<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,

Page | 251

D SAPPHIRE
prevBu:'.prev',
nextBu:'.next',
playBu:false,

duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,
numStatus:false,
banners:false,
waitBannerAnimation:false,
progressBar:false
})
});
</script>

</head>
<?php
$q = intval($_GET['q']);

$con = mysqli_connect('localhost','root','','sapphire');
if (!$con) {
die('Could not connect: ' . mysqli_error($con));

Page | 252

D SAPPHIRE
}

mysqli_select_db($con,"sapphire");
$res = mysqli_query($con,"SELECT Available FROM halls where Hid=$q");

while($row = mysqli_fetch_array($res))
{
$s=$row['Available'];
}

if($s=='yes')
{
$sql="update halls set Available='no'where Hid=$q";
$result = mysqli_query($con,$sql);
}

if($s=='no')
{
$sql="update halls set Available='yes'where Hid=$q";
$result = mysqli_query($con,$sql);
}
if($result)
echo"Your availability has been changed<br><br><br><br><br>";

Page | 253

D SAPPHIRE

mysqli_close($con);
?>
<br><br><br>
<a href="admin.html"><button>Go Back</button></a><br><br>

Select1.html

<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link

rel="stylesheet"

type='text/css'

href='http://fonts.googleapis.com/css?

family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>

Page | 254

D SAPPHIRE
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/bg/bgg.jpg");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>

<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:false,

duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,
numStatus:false,
banners:false,
waitBannerAnimation:false,

Page | 255

D SAPPHIRE
progressBar:false
})
});
</script>

</head>
<script>
function showUser(str) {
if (str=="") {
document.getElementById("txtHint").innerHTML="";
return;
}
if (window.XMLHttpRequest) {
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
} else { // code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4 && xmlhttp.status==200) {
document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","getuser1.php?q="+str,true);

Page | 256

D SAPPHIRE
xmlhttp.send();
}
</script>
</head>
<body>

<br><br><br><br><br>
Choose an event planner:
<form>
<select name="users" onchange="showUser(this.value)">
<option value="">Select:</option>
<option value="E1">Manish Mehrotra</option>
<option value="E2">Raj Arora</option>
<option value="3">Ayushman Khurana</option>
<option value="E4">Kanika Rawat</option>
<option value="E5">Abhinav</option>
</select>
</form>
<br>
<div id="txtHint"><b></b></div>
<br><br><br>
</body>
</html>

Getuser1.php

Page | 257

D SAPPHIRE
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link

rel="stylesheet"

type='text/css'

href='http://fonts.googleapis.com/css?

family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/bg/bgg.jpg");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>

Page | 258

D SAPPHIRE

<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:false,

duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,
numStatus:false,
banners:false,
waitBannerAnimation:false,
progressBar:false
})
});
</script>

</head>

Page | 259

D SAPPHIRE
<?php
$q = intval($_GET['q']);

$con = mysqli_connect('localhost','root','','sapphire');
if (!$con) {
die('Could not connect: ' . mysqli_error($con));
}

mysqli_select_db($con,"sapphire");
$res = mysqli_query($con,"SELECT Available FROM halls where Hid=$q");

$sql="update eavailable set Eavailable='yes'where Eid=$q";


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

if($result)
echo"Your availability has been changed<br><br><br><br><br>";

mysqli_close($con);
?>
<br><br><br>
<a href="admin.html"><button>Go Back</button></a><br><br>

Page | 260

D SAPPHIRE

Ban.html

<html>
<head>
<title>BANQUET

TRANSACTIONNS

FORM</title><link

rel="stylesheet"

type="text/css"

href="style.css"></head>
<body>

<form name="registration" method="post" action="ban.php">


<!-- we will create registration.php after registration.html -->
<fieldset>
<legend>Transaction Form </legend>
<p>Reason

of

Transaction:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="text"

name="gname" value=""><br>
<p>Amount:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input

type="text"

name="amt"

type="date"

name="dt"

value=""><br>
<p>Date:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input
value=""><br>

<p><input type="submit" name="submit" value="submit">


</fieldset>
</form>

</body>
</head>
</html>

Page | 261

D SAPPHIRE

Ban.php

<?php
$hostname="localhost"; //local server name default localhost
$username="root"; //mysql username default is root.
$password="";

//blank if no password is set for mysql.

$database="sapphire"; //database name which you created


$con=mysql_connect($hostname,$username,$password);
if(! $con)
{
die('Connection Failed'.mysql_error());
}session_start();

mysql_select_db($database,$con);

If(isset($_REQUEST['submit'])!='')
{

$sql="insert

into

debit_transactions(reason,amount,date)

values('".$_REQUEST['gname']."','".

$_REQUEST['amt']."', '".$_REQUEST['dt']."')";
$res=mysql_query($sql);
$s="insert

into

payments(Type,Charges,Date)

values('Debit','".$_REQUEST['amt']."','".

$_REQUEST['dt']."')";

Page | 262

D SAPPHIRE

$re=mysql_query($s);

If($res)
{
Echo "Sale is updated";

include 'admin.html';

}Else
{
Echo "There is some problem in inserting record";
}
}
?>

Empl.php

<html>
<img src='style/images/bg/rep1.jpg' style='position:fixed;top:0px;left:0px;width:100%;height:100%;z-index:1;'>
<?php
echo "<center><strong><br><br><br>Employees<br><br>";
$con=mysqli_connect("localhost","root","","sapphire");

Page | 263

D SAPPHIRE
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
echo "Designers<br>";
$result = mysqli_query($con,"SELECT Deid,Dename,Deaddr,Decont,Defee FROM designer");

echo "<table border='1'>


<tr>
<th>ID</th>
<th>Name</th>

<th>Address</th>

<th>Contact Number</th>
<th>Fees</th>
</tr>";
while($row = mysqli_fetch_array($result))
{
echo "<tr>";

echo "<td>" . $row['Deid'] . "</td>";

Page | 264

D SAPPHIRE
echo "<td>" . $row['Dename'] . "</td>";

echo "<td>" . $row['Deaddr'] . "</td>";


echo "<td>" . $row['Decont'] . "</td>";

echo "<td>" . $row['Defee'] . "</td>";


echo "</tr>";
}
echo "</table>";
echo "<br><br>Driver<br>";
$result = mysqli_query($con,"SELECT Did,Dname,Daddr,Dcont,Dsalary FROM driver");

echo "<table border='1'>


<tr>
<th>ID</th>
<th>Name</th>

<th>Address</th>

<th>Contact Number</th>
<th>Fees</th>
</tr>";
while($row = mysqli_fetch_array($result))
{

Page | 265

D SAPPHIRE
echo "<tr>";

echo "<td>" . $row['Did'] . "</td>";

echo "<td>" . $row['Dname'] . "</td>";

echo "<td>" . $row['Daddr'] . "</td>";


echo "<td>" . $row['Dcont'] . "</td>";

echo "<td>" . $row['Dsalary'] . "</td>";


echo "</tr>";
}
echo "</table>";
echo "<br><br>Event Planners<br>";
$result = mysqli_query($con,"SELECT Eid,Ename,Eaddr,Econt,Eemail,Ework,Efee FROM event");

echo "<table border='1'>


<tr>
<th>ID</th>
<th>Name</th>

<th>Address</th>

<th>Contact Number</th>

Page | 266

D SAPPHIRE
<th>Email</th>
<th>Work Experience(in years)</th>
<th>Fees</th>
</tr>";
while($row = mysqli_fetch_array($result))
{
echo "<tr>";

echo "<td>" . $row['Eid'] . "</td>";

echo "<td>" . $row['Ename'] . "</td>";

echo "<td>" . $row['Eaddr'] . "</td>";


echo "<td>" . $row['Econt'] . "</td>";
echo "<td>" . $row['Eemail'] . "</td>";
echo "<td>" . $row['Ework'] . "</td>";

echo "<td>" . $row['Efee'] . "</td>";


echo "</tr>";
}
echo "</table>";
echo "<br><br>Guide<br>";
$result = mysqli_query($con,"SELECT Guideid,Guidename,Guideaddr,Guidecont,Guidesalary FROM
guide");

Page | 267

D SAPPHIRE

echo "<table border='1'>


<tr>
<th>ID</th>
<th>Name</th>

<th>Address</th>

<th>Contact Number</th>
<th>Fees</th>
</tr>";
while($row = mysqli_fetch_array($result))
{
echo "<tr>";

echo "<td>" . $row['Guideid'] . "</td>";

echo "<td>" . $row['Guidename'] . "</td>";

echo "<td>" . $row['Guideaddr'] . "</td>";


echo "<td>" . $row['Guidecont'] . "</td>";
echo "<td>" . $row['Guidesalary'] . "</td>";
echo "</tr>";
}

Page | 268

D SAPPHIRE
echo "</table>";

?>
<br><Br><br>

<input type=button onclick="window.print()" value='Print Report'>


<a href="admin.html"><button>Go Back</button></a><br><br>

Special.html

<!DOCTYPE HTML>
<html lang="en">
<head>
<title>D Sapphire</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<link rel="stylesheet" type="text/css" href="style/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="style/css/media-queries.css">
<link rel="stylesheet" type="text/css" href="style/js/player/mediaelementplayer.css">
<link

rel="stylesheet"

type='text/css'

href='http://fonts.googleapis.com/css?

family=Open+Sans:400,400italic,300italic,300,700,700italic|Open+Sans+Condensed:300,700'>
<script src="style/js/jquery-1.7.2.min.js"></script>
<script src="style/js/ddsmoothmenu.js"></script>
<script src="style/js/retina.js"></script>
<script src="style/js/selectnav.js"></script>

Page | 269

D SAPPHIRE
<script src="style/js/jquery.masonry.min.js"></script>
<script src="style/js/jquery.fitvids.js"></script>
<script src="style/js/jquery.backstretch.min.js"></script>
<script src="style/js/mediaelement.min.js"></script>
<script src="style/js/mediaelementplayer.min.js"></script>
<script src="style/js/jquery.dcflickr.1.0.js"></script>
<script src="style/js/twitter.min.js"></script>
<script>$.backstretch("style/images/bg/red.jpg");</script>
<script type="text/javascript" src="style/js/tms-0.4.1.js"></script>

<script>
$(document).ready(function(){
$('.slider')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:false,

duration:800,
preset:'fade',
pagination:'.pags',
pagNums:false,
slideshow:7000,

Page | 270

D SAPPHIRE
numStatus:false,
banners:false,
waitBannerAnimation:false,
progressBar:false
})
});
</script>

</head>
<body>
<div class="header-wrapper opacity">
<center><p><strong> VIP Zone </strong>
<br><br><br>
<p><br><Br><br><br><br>
We have done mass caterings for many renowned companies. Following is a list of few of such renowned
companies,D Sapphire has been serving for:</p>
</div>
<center><p><strong> Our Clients </strong>
<br><br><br><br><br>
<img class="left" src="style/images/club/x1.jpg" style="width:20%;height:20%;"/>
<img class="left" src="style/images/club/x2.jpg"style="width:20%;height:20%;"/>

<img class="left" src="style/images/club/x3.jpg"style="width:20%;height:20%;" />


<img class="left" src="style/images/club/x4.jpg"style="width:20%;height:20%;"/>

Page | 271

D SAPPHIRE

<img class="left" src="style/images/club/x5.jpg"style="width:20%;height:20%;"/>


<img class="left" src="style/images/club/x6.jpeg"style="width:20%;height:20%;"/>

<img class="left" src="style/images/club/x7.jpg"style="width:20%;height:20%;" />


<img class="left" src="style/images/club/x8.jpg"style="width:20%;height:20%;"/>

<img class="left" src="style/images/club/x9.png"style="width:20%;height:20%;" />


<img class="left" src="style/images/club/x10.jpg"style="width:20%;height:20%;"/>

<img class="left" src="style/images/club/x11.png"style="width:20%;height:20%;" />


<br><br><br><br>

<br><br><br><br>
<a href="admin.html"><button>Go Back</button></a><br><br>

</body>
</html>

Table.php

<html>
<img src='style/images/bg/rep1.jpg' style='position:fixed;top:0px;left:0px;width:100%;height:100%;z-index:1;'>
<?php
echo "<center><strong><br><br><br>Viewing the sales details of restaurant <br><br>";

Page | 272

D SAPPHIRE
$con=mysqli_connect("localhost","root","","sapphire");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}

$result = mysqli_query($con,"SELECT GuName,GuMenu,GuSale,Date FROM restaurant_sale");

echo "<table border='1'>


<tr>
<th>Guest Name</th>

<th>Guest Menu</th>
<th>Bill</th>

<th>Date</th></tr>";

while($row = mysqli_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['GuName'] . "</td>";

echo "<td>" . $row['GuMenu'] . "</td>";

Page | 273

D SAPPHIRE
echo "<td>" . $row['GuSale'] . "</td>";

echo "<td>" . $row['Date'] . "</td>";


echo "</tr>";
}
echo "</table>";
include'table1.php';
?>
<br><Br><br>

<input type=button onclick="window.print()" value='Print Report'>


<a href="admin.html"><button>Go Back</button></a><br><br>

Tot.php

<html>
<img src='style/images/bg/rep1.jpg' style='position:fixed;top:0px;left:0px;width:100%;height:100%;z-index:1;'>

<?php
echo "<br><br><center><strong>Total Sales till now!!!! <br><br>";
$con=mysqli_connect("localhost","root","","sapphire");
// Check connection
if (mysqli_connect_errno())
{

Page | 274

D SAPPHIRE
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}

$result = mysqli_query($con,"SELECT sum(Charges),Year(Date) FROM payments Group By Year(Date)");

echo "<table border='1'>


<tr>
<th>Total Sale</th>
<th>Year</th>

</tr>";

while($row = mysqli_fetch_array($result))
{
$y=$row['1'];
if($y<=2014)
{
echo "<tr>";
echo "<td>" . $row['sum(Charges)'] . "</td>";
echo "<td>" . $row['1'] . "</td>";

echo "</tr>";

Page | 275

D SAPPHIRE
}}
echo "</table>";

mysqli_close($con);
?>
<br><Br><br>

<input type=button onclick="window.print()" value='Print Report'>


<a href="admin.html"><button>Go Back</button></a><br><br>

Market.php

<html>
<head> <title>Marketing and Advertising </title>
</head>
<body>
<br>
Online Presence<br>
Nothing takes the place of a face-to-face, in-person, visit when choosing a banquet hall. Make it easier for
potential customers to select your site as one of the finalists by providing photos of the banquet hall on your
website. Include photographs of the rooms with descriptions of the size and how many people it holds under
different arrangements. If you specialize in weddings, then photographs of the room set up for wedding
receptions are ideal. Include parking facilities and any special amenities you offer.
<br><br>
Brochure<br>

Page | 276

D SAPPHIRE
It might seem old-fashioned, but a four-color brochure helps you show off your banquet hall. It's something
to leave behind on a sales call or to send out to prospective clients. Choose photographs that showcase
different types of events. Prospective corporate clients, for example, might conclude that because there isn't a
photo of a business event, the hall isn't appropriate for a business function.
<br><br>
Corporations and Businesses<br>
Businesses are the perfect clients for weekday and weeknight events, when your banquet hall probably has
space available. Send out invitations to visit your facility along with your brochure to the owners or CEOs of
local businesses. Sales meetings, corporate luncheons to thank customers, new product introductions or
retirement parties for key employees are all reasons to hire your banquet hall. Describe your ability to host
those types of business-related events in a cover letter.
<br><br>
Publicity<br>
Hosting a charity or fundraiser at a minimal fee, or perhaps just for the cost and preparation of the food, gives
back to the community. It's also an opportunity for your business to get favorable publicity. Ask the event
planner to include your banquet hall in any news releases, invitations and programs at the event. Maintain
your own publicity campaign throughout the year. Distribute news releases that include tips on what to look
for in a banquet hall, how to choose a banquet hall or how to know what size banquet hall the client needs.
Providing valuable information helps you build credibility for your business that will lead to future event
bookings.
<br><Br>
Promote Days Other than Saturdays for Weddings<br>
Wedding receptions are the backbone of banquet hall business. The wedding reception venue is often booked
12 months in advance or more. The downside is that weddings mostly take place on Saturdays. Offer
discounts for weddings held other days of the week, and let brides-to-be and your referral network know that
booking the event on other days and times means less expense.
<br><br><strong>Advertising<br>
It is being done in facebook and through brochures ....
<bR><br>Send sms time to time to your customers

Page | 277

D SAPPHIRE
All the Best!!
<a href="admin.html"><button>Go Back</button></a><br><br>

Tc.html

<html>
<head>
<title>REGISTRATION FORM</title><link rel="stylesheet" type="text/css" href="style.css"></head>
<body>

<form name="registration" method="post" action="tc.php">


<!-- we will create registration.php after registration.html -->
<fieldset>
<legend>Year Form </legend>
<p>Enter the year for finding profit/loss:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input
type="text" name="pl" value=""><br>
<p><input type="submit" name="submit" value="submit">
</fieldset>
</form>

</body>
</head>
</html>

Tc.php

Page | 278

D SAPPHIRE

<html>
<img src='style/images/bg/rep1.jpg' style='position:fixed;top:0px;left:0px;width:100%;height:100%;z-index:1;'>

<?php
echo "<br><br><center><strong>Profit/Loss Statement<br><br>";
$con=mysqli_connect("localhost","root","","sapphire");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$date = date_parse($_REQUEST['pl']);
$result = mysqli_query($con,"SELECT sum(Charges) FROM payments where Type!='Debit' and
year(Date)='".$_REQUEST['pl']."'");

while($row = mysqli_fetch_array($result))

$x= $row['sum(Charges)'];

Page | 279

D SAPPHIRE
$res = mysqli_query($con,"SELECT sum(Charges) FROM payments where Type='Debit'and year(Date)='".
$_REQUEST['pl']."'");

while($row = mysqli_fetch_array($res))

$y= $row['sum(Charges)'];

echo "<br> The payments received are : ";


echo $x;
echo "<br> The payments given are :";
echo $y;
$pl=$x-$y;
if($pl==0)
{
echo"<br><br> The chosen year does not contain any statements!!!";
include 'admin.html';
}
elseif($pl>0)
{
echo "<br><br>Congrats ! You were in profit This year Your Profit was Rs.";
echo $pl;
}
else
{

Page | 280

D SAPPHIRE
echo "<br><br>You were in loss This year. Your loss was Rs.";
echo $pl;
}

mysqli_close($con);

?>
<br><Br><br>

<input type=button onclick="window.print()" value='Print Report'>

<a href="admin.html"><button>Go Back</button></a><br><br>

Chmem.php

<html>
<img src='style/images/bg/rep1.jpg' style='position:fixed;top:0px;left:0px;width:100%;height:100%;z-index:1;'>

<?php
echo "<br><br><center><strong>List of Members!!!! <br><br>";
$con=mysqli_connect("localhost","root","","sapphire");
// Check connection
if (mysqli_connect_errno())
{

Page | 281

D SAPPHIRE
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}

$result

mysqli_query($con,"SELECT

Mid,Mname,Maddr,Mcont,Memail,username,password,MDob,Mtype,Moccu FROM register1");

echo "<table border='1'>


<tr>
<th>Member ID</th>

<th>Member Name</th>
<th>Member Address</th>

<th>Member Contact Number</th>


<th>Member Emal-ID</th>

<th>UserName</th>
<th>Password</th>

<th>Member Date Of Birth</th>


<th>Member Type</th>

<th>Member Occupation</th>

Page | 282

D SAPPHIRE

</tr>";

while($row = mysqli_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['Mid'] . "</td>";
echo "<td>" . $row['Mname'] . "</td>";
echo "<td>" . $row['Maddr'] . "</td>";
echo "<td>" . $row['Mcont'] . "</td>";
echo "<td>" . $row['Memail'] . "</td>";

echo "<td>" . $row['username'] . "</td>";


echo "<td>" . $row['password'] . "</td>";
echo "<td>" . $row['MDob'] . "</td>";
echo "<td>" . $row['Mtype'] . "</td>";
echo "<td>" . $row['Moccu'] . "</td>";

echo "</tr>";
}
echo "</table><br><br><br><Br>";

$res = mysqli_query($con,"SELECT count(Mid) FROM register1");

Page | 283

D SAPPHIRE
echo "<table border='1'>
<tr>
<th>Total Number of Members</th>

</tr>";

while($row = mysqli_fetch_array($res))
{
echo "<tr>";
echo "<td>" . $row['count(Mid)'] . "</td>";

echo "</tr>";
}
echo "</table>";

mysqli_close($con);
?>
<br><Br><br>

<input type=button onclick="window.print()" value='Print Report'>


<a href="admin.html"><button>Go Back</button></a><br><br>

4.2 Standarisation of the coding and coding efficiency


Page | 284

D SAPPHIRE

a) In a large project like D Sapphire, standardization of coding, code re-use and


maintaining code efficiency is of prime importance. To enable re-use of code and minimize
repetition, the project interface and elements have been given a common look and feel.
Due to the presence of common elements in the D Sapphire interface, re-use of codes and
functions could be made in respect of these elements, which contributes to code efficiency.
b) Uniform naming conventions of variables and functions have been followed in D
Sapphire In the security implementation of D Sapphire, various configuration variables
have been used
c) The use of Hungarian naming convention has been used in naming the variables as
much as possible. Self describing variable names have been used in the following manner:
d) Nesting of conditional statements, table rows and other elements to various depths in a
page has been done to various depths in order to make the code readable and easy to
debug.
e) Constants have been used in D Sapphire in some cases to define or set a fixed value of
an environment parameter e.g. the maximum time which the user may remain idle before
he/she is logged out of the session.
f) In order to populate the drop down combo boxes, the SQL code is assigned to a variable.
The name of the variable has been determined based on the number of such combo boxes
in a PHP page.
g) Cascading Style Sheet (CSS) has been used to provide a uniform look to the D Sapphire
interface throughout. There is only one .css file named style.css whose code has been
included in the previous section.

Page | 285

D SAPPHIRE

4.3 Error Handling and Validation Checks


a) The chance of exceptions and runtime errors in D Sapphire is minimized by forcing the
user to use the logically allowed options only. For example, in the following combo, the to
port which meet a certain condition

b) Errors may, however, take place if the environment where D Sapphire is installed is
not proper. Necessary checks have been incorporated where such error checking is
necessary.
c) Error might happen if a record which has been deleted is again sought to be deleted.
This might happen if user clicks the back button to load a page from the cache. To
handle such errors, the delete option also has error handling ability
d) Conditional checking is also implemented when the user logs in. There is a common
login form for all users. Based on the users username, the user is taken to the appropriate
homepage belonging to his/her category.
e) Validation has also been used in many places to detect whether primary key fields or
mandatory fields were left empty anywhere.

4.4 Parameters calling / passing

Page | 286

D SAPPHIRE

a) Since D Sapphire is a web based project, use of functions have been used to pass
values from one page to another. The PHP functions like $_POST and $_GET have been
used to pass such values as parameters.
b) Date validation has been performed in D Sapphire using the date_val() function
c) Apart
from the above important functions,
there are certain
other functions which are
Function
Parameter
Use
session_logged_in()
described
in a tabular manner:

Figure 4.1 Functions used in D Sapphire


session_return_var($variable)

session_begin_session()
session_gencode()

session_login($userID)
session_start_php3()
session_loadvars($php3SessionID)
session_killold()
Checkdata()
random($max)

None

checks to find out if a


user is already logged
in and in case he is
and its functions logged in, it returns the
userID
A variable
Query a session ID
from the table and
returns the same
None
Begins a session and
sets a cookie
None
Generates a session ID
of 13 digits from
randon number
UserID
Handles the session
after a use logs in
None
Handles a session if
PHP v.3 is used
Session ID
Handles persistent data
in PHP 3
None
Kills old and idle
sessions
None
A javascript function to
verify the login data
Maximum
Given a maximum
value
value, generates a
randon number within
that value. Used in
session ID

4.5 Security Mechanisms

Page | 287

D SAPPHIRE

Security implementations of D Sapphire have beed discussed at Section 6: System


Security Measures

5. Testing
5.1 Testing techniques and Testing strategies
The following Validation and Testing Strategies would be implemented for the
testing of D Sapphire.
1. Unit Testing
The purpose of unit testing in D Sapphire is to uncover defects using formal techniques.
Defects and deviations in Date formats, Special requirements in input conditions (for
example Text box where only numeric or alphabets should be entered), selection based on
Combo Boxs, List Boxs, Option buttons, Check Boxs would be identified during the
Unit Testing phase. Test Cases would be written based on the requirements mentioned in
the test conditions.
2. Integration Testing
During Integration Testing of D Sapphire, behaviour of the system on the whole is
observed. Individual modules are integrated and tested for the whole functionality. Test
Cases would be written for all the requirements mentioned in the test conditions.
3. System Testing
The goal of system testing in D Sapphire is to uncover defects while integrating hardware
and software system to verify that the system meets its specified requirements.
The following table describes the effort and the schedules for the testing activities.

Table 5.1 Test Plan


Page | 288

D SAPPHIRE

Activity
Unit Testing
Integration Testing
System Testing

Start Date
15.08.2014
22.08.2014
01.09.2014

End Date
21.08.2014
31 .08.2014
06.09.2014

Duration
6 days
9 days
5 days

5.2 Test Case Design


5.2.1 Unit Test Case Design

Table 5.2 Test Case Design

Test Case No.

UTC-001

Test Phase

Unit Test

Functionality

Security test of the login facility of D Sapphire by attempting


SQL
injection attack

Environment

: D Sapphire Loh\gin page displaying the common Login form for

Procedure

users of

1. Enter the username of a registered user e.g. garima


2. In the password text box, enter-> OR 1=1;
3. Click the following button

Expected Outcome

1. Invalid Username/Password Combination message should


be displayed

Page | 289

D SAPPHIRE

Test Case No.

UTC-002

Test Phase

Unit Test

Functionality

Testing whether the actual password of user is not displayed

Environment

D Sapphire Home page for Administrator -> Create User option

Procedure

1. Go to Admin Home Page ->Create User


2. In the form, click the Add button
3. In the blank form for user creation, enter username as
manoj, and password as azby
4. Click on the Submit button

Expected Outcome

1. A new user with username manoj,will be created


2. Actual Password should not be displayed

Test Case No.

UTC-003

Test Phase

Unit Test

Functionality

Testing whether a user with the same username of an existing

Environment

user
D Sapphire Home page for Administrator -> Create User option

Procedure

1. Login as administrator using username admin and


password admin
2. Go to Admin Home Page -> Create User
3. In the form, click the Add button
4. In the blank form for user creation, enter username as ksri,

Expected Outcome

1. Duplicate entry 'ksri' for key 'username' message should be


displayed

Test Case No.

UTC-004

Test Phase

Unit Test

Functionality

Testing whether the website text box in Login -> Not a member
yet takes a value more than 6

Environment

D Sapphire Kogin page for all users

Procedure

1. Go to Home Page -> Login


2. In the form, enter 38739738973
3. Click on the Submit button

Expected Outcome

1. An error message should be displayed

Page | 290

D SAPPHIRE

Test Case No.

UTC-005

Test Phase

Unit Test

Functionality

Testing whether the website text box in Administrator->Check


profit/loss takes only year

Environment

D Sapphire administrator page for administrator

Procedure

1. Login as administrator using username admin and


password admin
2. Go to Admin Home Page -> Check Profit/Loss
3. In the form, put the date 02.03.2014

Expected Outcome

Test Case No.

1. An error message should be displayed

UTC-006

Test Phase

Unit Test

Functionality

Testing whether the website text box in Administrator->Check


booking transactions takes only number

Environment

D Sapphire administrator page for administrator

Procedure

1. Login as administrator using username admin and


password admin
2. Go to Admin Home Page -> Check Booking Transactions
3. In the form, put AB1

Expected Outcome

Test Case No.

1. An error message should be displayed

UTC-007

Test Phase

Unit Test

Functionality

Testing whether the website text box in Home-> Book Form takes
only number less than 10

Environment
Test
Case No.

D Sapphire home page for all users


:UTC-008

Test
Phase
Procedure

Unit
Test
1Go to
home page and click the Book Button

Functionality

2. In the form, put the number 15 in how many rooms


Testing whether the website text box in Home->Wedding>Catering takes only registered ID

Environment
Expected Outcome

:
:

D Sapphire catering page for members


1. An error message should be displayed

Procedure

1Go to home page and click Wedding link and go to Catering


2. Here comes a button to book the catering
3. In the form, put the value A1 in booking id
4.It is not registered

Expected Outcome

1. Your hall is not booked message will be displayed

Page | 291

D SAPPHIRE

Test Case No.

ITC-001

Test Phase

Integration Test

Functionality

To test whether the payment slip generated is received by the


user or not

Test Case No.


Environment

UTC-009
: D Sapphire Home page -> Booking Form

Test Phase

Functionality
Procedure

whether
the page
website
in Home->Tourism
takes
: : Testing1.Go
to home
and text
click box
on booking
form

Environment

Unit Test

2. when email
the form
only registered
ID is successfully submitted then a payment
slip is generated
D Sapphire
pagesure
for members
3. onecatering
has to make
if it is received by the user

Procedure
: 1Go to home page and click Tourism link
receiving
the
one
to bring it with him for
Expected Outcome
: 2. HereAfter
comes
a button
toslip
book
thehas
tour

further transactions which makes a confirmation of receiving


3.When you click it a list of tours show up
it
4. In the form, put the email id as [email protected]

Expected Outcome

An error message will be displayed

5.2.2 Integration Test Case Design

Page | 292

D SAPPHIRE

Test Case No.

Requirement Ref. SRS/1.1 and 1.2

STC-002

Test Phase

System Test

Functionality

Logging in to D Sapphire and Logging out of D Sapphire

Environment

D Sapphire Home page displaying the common Login form for


users of

5.2.3 System Test Case Design


Procedure

1. Enter the username of a registered user


2. Enter the password of the user
3. Click the following button
The following data are to be used during testing:

Test Case No.

Username

Password

Gg
Harendra
xx
farha
admin

ayu
hla
xx
farha20
admin

STC-001

Requirement Ref. SRS/2.1

Test Phase

System Test

Functionality

Testing whether a new user can be created

Environment

D Sapphire Home page for Administrator -> Create User option

Procedure

1. Go to Admin Home Page -> Create User


2. In the form, click the Add button
3. In the blank form for user creation, enter username as
manoj and password as azby
4. Click on the Submit button
5. Click the view members link

Expected Outcome

1. A new user with username manoj will be created

Page | 293

D SAPPHIRE

Test Case No.


Test Phase
Functionality
Environment
Procedure

Requirement Ref. SRS/2.3


STC-004
: System Test
: Testing whether a user can be successfully deleted
: D Sapphire Home page for Administrator -> Delete User option
: 1. Go to Admin Home Page -> Delete User

Expected Outcome

Expected Outcome

Test Case No.

2. In the form, write the username as aa


3. Click on the Delete button
4. Click the view members link

1. For the username xx, no data will be seen

1. The Administrator should be taken to administrators homepage


after successful login
2. The users should be taken to their respective homepage after
successful login
3. If properly logged in, the name of the user will be displayed
along with the logout link
4. If wrong username/password is provided, Access Denied
message should be displayed
5. Clicking on the logout link for a logged in user will take him to
the logout page

STC-003

Requirement Ref. SRS/2.2

Test Phase

System Test

Functionality

Testing whether the password of an existing user can


be changed successfully

Environment

D Sapphire Home page for users -> login page

Procedure

1. Go to Home Page -> Login page


2. On the page click on change password button
3. Enter username as xx for the user password needs to be
changed with the new password as sai
4. Click on the Submit button
5. Click the view members link from admin home page

Expected Outcome

1. For the username xx,password md5 hash will change from


the previous state

Page | 294

D SAPPHIRE
Test Case No.
Test Phase
Functionality
Environment

Requirement Ref. SRS/2.3


STC-007
: System Test
: Testing whether availability of event planner can be changed
: D Sapphire Home page for Administrator ->Change Event

Procedure

Expected Outcome

Planner availability
option
1.
Go to Admin Home Page -> Change event planner availability
2. In the form, select the event planner whose availability you
want to change
3. Click on the Submit button
4. Click the Event Planner page and availability link
1. For the selected event planner availability will be changed

Test Case No.


Test Phase
Functionality
Environment
Procedure

Requirement Ref. SRS/3.1


STC-005
: System Test
: Testing whether a booking form has been submitted succesfully
: D Sapphire Home page -> Boking form
: 1Fill the form with all the specified details

Expected Outcome

Test Case No.


Test Phase
Functionality
Environment

Requirement Ref. SRS/2.3


STC-006
: System Test
: Testing whether availability of hall can be changed
: D Sapphire Home page for Administrator ->Change Hall

Procedure

Expected Outcome

2. Click on the Submit button


3.Go to Administrator Home Page
4. Click the view Booking Transaction link

1The provided Booking ID should be accepted

availability
option
1.
Go to Admin Home Page -> Change hall availability
2. In the form, select the hall whose availability you want to
change
3. Click on the Submit button
4. Click the Hall page and availability link
1. Availability for the choosen hall will be changed

Page | 295

D SAPPHIRE

Test Case Ref. No.

UTC-001

Security test of the login facility of D Sapphire by attempting


SQL
Requirement Ref. SRS/3.1
Test Case No.
STC-008
Invalid
Username/Password Combination message should be
Test
Expected
Test
Phase Outcome : :System
displayed
whether an entry to restaurant is successfully added
Functionality
: Testing
Step No. Data Used
Actual
->Outcome
Add a restaurant sale
Environment
: D Sapphire Administrator Home page
1.
Username:
Invalid Username/Password
entry as administrator
1Login
Procedure
: garima
Password: OR
Combination
2. 1=1;
Click the Add restaurant sale entry
3.Fill the form with all the specified details
4. Click on the Submit button
5.Go to Administrator Home Page-> View Restaurant Sale entry
Expected Outcome
: 1The recently added entry will be displayed

Functionality

Test Case No.


Test Phase
Functionality
Environment
Procedure

Requirement Ref. SRS/3.1


STC-009
System
Test
:
: Testing whether an entry to parking is successfully added
: D Sapphire Administrator Home page -> Add parking details
: 1Login as administrator

Expected Outcome

Test Case No.


Functionality
Environment
Procedure

Requirement Ref. SRS/3.1


STC-010
: System Test
: Testing whether an entry to banquet transaction is successfully
added
Sapphire Administrator Home page -> Add a banquet
: D
transactions
as administrator
: 1Login

Expected Outcome

5.3 Test
Testing
Phase

2. Click the Add parking details


3.Fill the form with all the specified details
4. Click on the Submit button
5.Go to Administrator Home Page-> View Parking details
1The recently added entry will be displayed

2. Click the Add banquet transaction


3.Fill the form with all the specified details
4. Click on the Submit button
5.Go to Administrator Home Page-> View Total Sale Report
1The recently added entry will be displayed

Page | 296

D SAPPHIRE

Test Case Ref. No.

UTC-002

Functionality

Whether the actual password of user is not displayed

Expected Outcome

Password should be shown in hashing form

Step No.
1.

Data Used
Click on the check members list

Actual Outcome
Password will be shown in hashing
form

Figure 5.1 Login Testing

Page | 297

D SAPPHIRE

Figure 5.2 Password Testing

Test Case Ref. No.

UTC-003

Functionality

Whether the duplicate entry for a user is accepted

Expected Outcome

Duplicate entry for username

Step No.
1.

Data Used
Fill in the form with username as garima

Figure 5.3 Duplicate User Entry

Actual Outcome
Garima Chadha Duplicate user
entry

Page | 298

D SAPPHIRE

Test Case Ref. No.

UTC-004

Functionality

Whether the transaction number take a value more than 6 digits

Expected Outcome

Not a valid Transaction ID

Step No.
1.

Data Used
Actual Outcome
Fill in the form with transaction ID as Not a valid Transaction ID
123456789

Figure 5.4 Not valid Transaction ID

Test Case Ref. No.

UTC-005

Functionality

Whether the entered date is valid or not

Expected Outcome

Invalid date

Step No.
1.

Data Used
Fill in the form with date as 02.14.20000

Actual Outcome
Invalid Date

Page | 299

D SAPPHIRE

Figure 5.5 Invalid Date

Test Case Ref. No.

UTC-006

Functionality

Expected Outcome

: Enter a number

Step No.
1.

Whether the entered value is number or not

Data Used
Fill in the form with AB

Actual Outcome
Enter a number

Page | 300

D SAPPHIRE

Figure 5.6 Number Validation

Test Case Ref. No.

UTC-008

Functionality

Expected Outcome

Step No.
1.

Whether the entered booking id is registered or not

Sorry! your hall is not booked or you

Data Used
Fill in the form with 90

Actual Outcome

Sorry! your hall is


not booked or you

Page | 301

D SAPPHIRE

Figure 5.8 Valid Booking ID

Test Case Ref. No.

UTC-009

Functionality

Expected Outcome

: Please make sure you have entered correct email id

Step No.
1.

Whether the email id is valid or not

Data Used
Fill in the form with [email protected]

Actual Outcome
Please make sure

you

have

entered correct email id

Figure 5.9 Valid Email ID


Test Case Ref. No.

ITC-001

Functionality

Expected Outcome

: A user will visit manually and show his receipt

Step No.
1.

Whether the payment receipt is received or not

Data Used
Actual Outcome
Fill in the form and take payment receipt User will have
print out

manually

the

Page | 302

receipt

D SAPPHIRE

Figure 5.10 Payment Receipt

Test Case Ref. No.

STC-001

Functionality

Expected Outcome

: A new user named harsh will be created

Step No.
1.

Testing whether a new user can be created

Data Used
Username harsh password sai

Actual Outcome
New User named harsh will be
created

Page | 303

D SAPPHIRE

Figure 5.11 Registration Form

Figure 5.12 Create New User

Page | 304

D SAPPHIRE

Test Case Ref. No.

STC-002

Functionality

Expected Outcome

: Users will be logged in

Step No.
1.

Logging in and logging out of the system

Data Used
Username jatin password javi

Actual Outcome
In 1st option user as a member wll

Admin and admin

login and the page will be viewed


In 2nd option Administrator page
will be shown

Page | 305

D SAPPHIRE

Figure 5.13 Logging in and out

Test Case Ref. No.

STC-003

Functionality

Expected Outcome

: Your password is changed

Step No.
1.

Password Change

Data Used
Username jatin old password javi

Actual Outcome
Password is changed

New password gary

Page | 306

D SAPPHIRE

Figure 5.14 Password Change

Test Case Ref. No.

STC-004

Functionality

Expected Outcome

: User is successfully deleted

Step No.
1.

Data Used
Username jatin

Delete user

Actual Outcome
User is deleted

Page | 307

D SAPPHIRE

Figure 5.15 Delete User

Test Case Ref. No.

STC-004

Functionality

Expected Outcome

: Booking ID is given

Step No.
1.

Succesful Submision of Booking Form

Data Used
Fill Booking Form

Actual Outcome
BookingIiD is given

Page | 308

D SAPPHIRE

Figure 5.16 Booking Form Submission

Test Case Ref. No.

STC-006

Functionality

Expected Outcome

: Choosed Hall availability is changed

Change Hall Availability

Step No. Data Used


1.
Choosed Hall Shagun

Actual Outcome
Hall availability is changed

Figure 5.17 Change Hall Availability


Page | 309

D SAPPHIRE

Test Case Ref. No.

STC-007

Functionality

Expected Outcome

: Choosed Event Plannerl availability is changed

Change Event Planner Availability

Step No. Data Used


1.
Choosed Event Planner Abhinav

Actual Outcome
Event
Planner
availability

is

changed

Figure 5.18 Change Event Planner Availability

Page | 310

D SAPPHIRE

Test Case Ref. No.

STC-009

Functionality

Expected Outcome

: Restaurant details will be added

Add restaurant details

Step No. Data Used


1.
Guest name ayush

Actual Outcome
Restaurant details will be added

Page | 311

D SAPPHIRE

Figure 5.19 Restaurant Sale Report

Test Case Ref. No.

STC-010

Functionality

Expected Outcome

: Added value will be seen in report

Step No. Data Used


1.
Add Credit 5000

Add banquet transaction

Actual Outcome
Value will be added

Page | 312

D SAPPHIRE

Figure

Test Case
No.
UTC-001
UTC-002
UTC-003
UTC-004

Date
15/01/2014
15/01/2014
16/01/2014
16/01/2014

Pass /
Fail
Pass
Pass
Pass
Pass

UTC-005
UTC-006
UTC-007

17/01/2014
17/01/2014
19/01/2014

Pass
Pass
Pass

UTC-008

20/01/2014

Pass

UTC-009

21/01/2014

Pass

ITC-001
STC-001

22/01/2014
02/02/2014

Pass
Pass

STC-002
STC-003
STC-004
STC-005
5.20
Total
STC-006
STC-007
STC-008
STC-009
STC-010

03/02/2014
04/02/2014
05/02/2014
06/02/2014
Sale
Report
07/02/2014
09/02/2014
10/02/2014
11/02/2014
12/02/2014

Pass
Pass
Pass
Pass
Pass
Pass
Pass
Pass
Pass

5.4 Test Report

Comments
Tested with 4 different data sets
3 attempts made with different data
-st
Failed in 1 attempt. Code was rectified and 2
more attempts made
3 attempts made
Tested with 3 kinds of malformed email addresses
Tested with 3 kinds of malformed website
addresses. Also tried with and without http://
Failed in first two attempts. Code rectified and two
more tests were made
In the first attempt, the printout was going out of
the page. Rectified after changing page setup in
several attempts. Not a coding error.
-Tested using username belonging to all the
userlevels
-st
Failed in 1 attempt. Code rectified and re-tested
-4 attempts made with different data
------

Page | 313

D SAPPHIRE

Figure 5.3 Test Report

5.5 Debugging and Code Improvement

Ref. Test Case No. UTC-002

Problem: The initial test attempt failed. The password was not getting stored in Hash form
Investigation: In coding when the password was getting inserted it was not converted in
hash form.
$sql="insert into register1(Mname,Maddr,Mcont,Memail,username,password,MDob,Mtype,Moccu,Transaction_Number) values('".$_REQUEST['mname']."','".
$_REQUEST['addr']."', '".$_REQUEST['cont']."','".$_REQUEST['mail']."','".$_REQUEST['name']."', '".$_REQUEST['password'].",'".$_REQUEST['dob']."', '".
$_REQUEST['number']."','".$_REQUEST['occu']."','".$_REQUEST['trans']."')";
$res=mysql_query($sql);

Page | 314

D SAPPHIRE

Findings and Rectification: The password should be converted to hash form.

$sql="insert into register1(Mname,Maddr,Mcont,Memail,username,password,MDob,Mtype,Moccu,Transaction_Number) values('".$_REQUEST['mname']."','".


$_REQUEST['addr']."', '".$_REQUEST['cont']."','".$_REQUEST['mail']."','".$_REQUEST['name']."', '"md5(.$_REQUEST['password')].",'".
$_REQUEST['dob']."', '".$_REQUEST['number']."','".$_REQUEST['occu']."','".$_REQUEST['trans']."')";
$res=mysql_query($sql);

Ref. Test Case No. UTC-005

Problem: The initial test attempt failed. The date was not being tested.
Investigation: In coding the date was not being tested

$res = mysqli_query($con,"SELECT sum(Charges) FROM payments where Type='Debit'and year(Date)='".$_REQUEST['pl']."'");

Findings and Rectification: To check the date validity following code was added

$date = date_parse($_REQUEST['pl']);
if ($date["error_count"] == 0 && checkdate($date["month"], $date["day"], $date["year"]))

Page | 315

D SAPPHIRE

Ref. Test Case No. UTC-006

Problem: The initial test attempt failed. The userlevel textbox should take only numerical
values but it was taking alphabetical value and converting it to numerical values. However,
the underlying attribute in the table was numerical

Investigation: The textbox was designed to take any text value without any checks. The
underlying code in the textbox was like this: (Error is underlined)
<p>Enter the Booking ID:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input type="text" name="bi" value=""><br>

Findings and Rectification: The value to be taken should be a number . Thus it was made
as a number.

<p>Enter the Booking ID:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><input type="number" name="bi" value=""><br>

Ref. Test Case No. STC-002

Page | 316

D SAPPHIRE

Problem: The initial test attempt failed. There was no option of logout.

Investigation: The page did not contain any option to log out.

Findings and Rectification: The logout option was added.


<p align=right><br><a href="login.html"><button>Logout</button></a></p><br><br>

6. System Security Measures

D Sapphire has a multi-tier security implementation. Database-based (back end) and


Application-based (front end). The database backend has been protected by using the
internal security features of MySQL while the frontend is coded using various features of
PHP to secure the connections and access rights to the backend. The security features have
been described below:

6.1 Database / Data Security


In order to administer the D Sapphire database directly, there is a root user, a superuser /
owner which has been granted all the privileges in MySQL.

Page | 317

D SAPPHIRE

However, applications should never connect to the database as for user , because these
users can execute any query at will, for example, modifying the schema (e.g. dropping
tables) or deleting its entire content.

Figure 6.1 phpmyadmin priviliges page

6.2 Creation of User Profiles and access rights


Security is of prime importance in an online system like D Sapphire, as the end users of
the system , since the homepage is accessible to anyone through internet. To prevent any
compromise with the security of the system and integrity of data, the following measures
have been implemented in respect of creation of user profile and granting of access rights

All user creation, initial allocation of passwords and modification of user data are
done by the D Sapphire administrator after the users approach for registration
through official channel in an offline procedure. There can be automatic creation of

Page | 318

D SAPPHIRE

account only if one enters a transaction number which is valid and given while

offline work to the user


The administrator user will be in-built into D Sapphire during the development of
the system. Thus, there will only be one user, i.e. the administrator, during the

initial state of D Sapphire.


The system login form is in the homepage of the system website.This login screen

is common to all the users of the system, including the D Sapphire administrator.
The users are granted with user levels which decides their handling in the system.

Figure 6.2 Granting levels

In the front end, the PHP code enforces the access rights to each page of the D
Sapphire website with the help of the user data contained in the backend database
Everytime the user tries to book or access something it is asked to verify his
member id.If the member id is correct he is permitted otherwise he is asked to
register himself first.
For example the following code Here it is asked to first verify your member id
which is allotted by the administrator
Page | 319

D SAPPHIRE
<div align="center">
<p>Firstly, We have to verify that you are a member or not</p><br><br>
<form method="POST" action="cc.php">
Enter your Member ID first : <input type="text" name="mid">
<input type="submit" value="Log in">
</form>
</div>
<?php
$dbc = mysql_connect('localhost','root','') or die("Cant connect :" . mysql_error());
mysql_select_db("sapphire",$dbc)
or
die("Cant connect :" . mysql_error());
$sql = mysql_query("SELECT Mname FROM register1 WHERE Mid='".$_REQUEST['mid']."'" );
if (mysql_num_rows($sql) >0) {
echo" Thank you for verifying";
header('Location: b1.html');
}
else
{
echo"Sorry! you are not registered !! Click on the link below to go to login page";?>
<form><input type="button" value="Go To Login Page" style="background-color:red"
onClick="window.location.href='login.html'"></form>
<?php
}
?>

Since D Sapphire is an online system, its website is accessible to all internet users.So it is
essential that proper security measures be implemented to prevent hackers and
unauthorized users from accessing the system. Keeping this in view,the following
measures have been taken to secure D Sapphire from unauthorized users:

User Registration All user creation, initial allocation of passwords and


modification of user data are done by the administrator under the supervision and
approval of the appropriate authority only. A similar process will be put in place for

modifying or deleting an existing user.


User Authentication User Authentication into the system is controlled by the
username/password pair that are allocated to the user during user registration. The
Page | 320

D SAPPHIRE

username is same as the user-id of various users while the password may be
changed by the user subsequently. All users log in using a common login screen at
the D Sapphire login page. However, the user will be taken to his/her respective

homepage upon login.


MD5 hashing of password The password is stored in the database after converting
it into a 32 bit MD5 hash. There is no practical way to generate the original
password back from the MD5 hash. During user authentication, the password
entered by the user is converted to MD5 hash and compared with the previously
stored hash. The advantage of hashing is that unlike a password stored in plain text
within the database, even the Admin is not able to know the original password (but
can only reset the password, if required), as it is not possible to convert the MD5
hash back to original password.

Figure 6.3 Password Hashing

Session Expiry Since HTTP is a stateless protocol, sessions are used to share data
which propagates from page to page in respect of a particular user. However, in a
system like D Sapphire where security is very important,care has to be taken to
expire the session if there is no user activity for a certain time.

Page | 321

D SAPPHIRE

Preventing SQL injection attack A SQL injection vulnerability can occur when a
poorly-written program uses user-provided data in a database query without first
validating the input. To prevent this kind of SQL injection attack the D Sapphire
user's input are checked for dangerous characters like single-quotes etc., which tells
the database exactly what to expect before any user-provided data is passed to it.
For example, if a user is asked for a user ID and password, and then checked by
passing the database a query and checking the result -

SELECT * FROM register1 WHERE name='$username' AND pass='$password';

However, if a hacker is trying to attack the system, he may enter the following as his
password:
' OR '1'='1

This results in the query being sent to the database as:

SELECT * FROM users WHERE name='known_user' AND pass='' OR '1'='1';

This will return the username without validating the password and the malicious user can
gain entry in the application as a user of his choice. To prevent SQL injection attack
escaping dangerous characters from the user- submitted values, most particularly the single
quotes ('), semi-colon (;) etc. is required. In D Sapphire, the for_sql() function has been
used to escape dangerous characters from user submitted values, particularly single quotes.

$username = for_sql($_POST["username"]);
$password = for_sql($_POST["password"]);

<?php function for_sql($value) {


return str_replace("'", "\'", str_replace("\\", "\\\\", $value));

Page | 322

D SAPPHIRE
} ?>

Firewall Though not a part of the software, the networks from where clients
access the system needs to be firewalled to prevent any intrusion

Preventing unvalidated input errors: Unvalidated input can help a hacker to gain
access to the system by adding codes with user inputs which may reveal the
internals of the server. In D Sapphire regular expressions have been used by proper
function to validate whether the user input conforms to the proper type.

7. Cost Estimation of the Project

Page | 323

D SAPPHIRE

From the formula:

Function Points (FP) =


Unadjusted Function Points X [ 0.65 + (Value Adjustment Factor X 0.01)]

= 2670 x [0.65 + (54 x 0.01)


= 3177 (approx.)

Thus, Adjusted Function Points for D Sapphire is 3177.

This is also an indicator of the efforts required for implementing D Sapphire

Determination of cost and time

It has been measured that the developer of D Sapphire can average 650 function points per
month when developing in PHP environment.

From the formula:

Adjusted Function Point Count Productivity for that language = Development Time

Page | 324

D SAPPHIRE

We get Development Time = 3177 650 = 5 months (approx)

Assuming that the CTC for the developer is Rs. 1000/- per month,
we get

Development Cost of D Sapphire= 5 x 1000 = Rs.5,000/-

Apart from the software development cost, there are other costs incurred for implementing
the project, which are calculated under:

Software and OS cost

Since Free and Open Source Software (FOSS) are being used for the development and
deployment of the system, no additional costs are envisaged. However, for media, mailing
and other incidental charges, we may assume a cost of Rs.5000/- at the most for procuring /
downloading the software. Since we are opting for third party hosting, no additional
charges for server-side software are required

Bandwidth Charges

At least a 256 Mbps broadband internet connectivity will be required at the respective
sites. For this purpose, the unlimited business access plan of DOCOMO costing Rs.3300/per month can be availed at each of the 4 sites

Page | 325

D SAPPHIRE

8. Reports

Page | 326

D SAPPHIRE

8.1 Administrative Reports

Viewing the reports generated for the administrator.The reports can be seen below:

Report showing members list to the administrator.

Figure 8.1 Members Report

Report showing employees list

Page | 327

D SAPPHIRE

Figure 8.2 Employees Report

Report for Profile of Potential Customers

Page | 328

D SAPPHIRE

Figure 8.3 Customers Report

Report of Restaurant Sales

Page | 329

D SAPPHIRE

Fgure 8.4 Restaurant Sale Report

Report for Total Sale

Figure 8.5 Total Sale Report


Page | 330

D SAPPHIRE

Report of Profit/Loss Statement

Figure 8.6 Profit/Loss Report

Page | 331

D SAPPHIRE

8.2 Users Report

Payment Receipt on Booking

Figure 8.7 Receipt Report

Event Planners Detail Report

Page | 332

D SAPPHIRE

Figure 8.8 Event Planner Report


Hall Availability Report

Figure 8.9 Hall Report

Page | 333

D SAPPHIRE

Catering Report (It will be saved as a text file with the choosed options with the
name of the booking id as this one is of booking id 14.txt)

Figure 8.10 Catering Report

Home Delivery Report

Page | 334

D SAPPHIRE

Figure 8.11 Home Delivery Report

Query Report

Figure 8.14 Query Report

Page | 335

D SAPPHIRE

9. Future Scope and Further Enhancement of the project

9.1 Future Scope

There is a scope for D Sapphire to be integrated with the existing system. Making this
system online provides an option to increase its business In this way it will be accessed by
the whole world. One can book it from anywhere and just come on the date of booking. D
Sapphire may become the worlds best in providing its services.

9.2 Further Enhancements

D Sapphire can be further enhanced in several areas to increase the security of the
system, communicability among the field formations, monitoring of the movement of
cargo in real-time by customs and intelligence agencies etc. A few suggested enhancements
in these areas include:

(i) Virtual Private Networking (VPN) A secured VPN connection over internet will
further enhance the security of the system, keeping the system isolated while, at the same
time, using the cheap internet infrastructure

(ii) Digital Signature Digital Signatures have been legalized in India video Section 5 of
the IT Act, 2000. The iCERT CA (http://www.icert.gov.in) is a Class III Digital Signature ,
so D Sapphire can use it in the check in check out system and also other needed places.

Page | 336

D SAPPHIRE

(iii) Instant Messaging / Video Conferencing One can also do video conferencing fr any
queries and also to confirm his/her identity.

(iv) Short Messaging Service (SMS) The SMS technology may be used to remind the
users their dates for any bookings and wish them on occasions and also to tell them various
services time to time

(v) Global Positioning System (GPS) One of the prime objectives of D Sapphire is to
prevent diversion of people to go on a wrong way. Use of GPS in the transport and its
integration with the D Sapphire will help both the tourists and the workers to know the
position/location of the D Sapphire.

Page | 337

D SAPPHIRE

10. Bibliography

Achour, Mehdi, Friedhelm Betz, and Antony Dovgal. "PHP: PHP Manual - Manual."
PHP: Hypertext
Preprocessor.

The

PHP

Group,

2014.

Web.

18

Sept.

2014.

<http://www.php.net/manual/en/>.
Bawane nee' Singhal, Neelam, and C.V. Srikrishna. "A Case Study to Assess the Validity of
Function
Points." World Academy of Science, Engineering and Technology 42 (2008): 224-27. Print.
Converse, Tim. PHP5 and MySQL Bible. Indianapolis, IN: Wiley, 2004. Print.
Function Point Counting Practices Manual. 4.1th ed. International Function Point User?s
Group
(IFPUG), 1999. Print.
Goel, Prof. M.P., Ms. Huma Anwar, Ms. Tamanna Siddiqui, and P. Venkata Suresh. MCS014:
Systems Analysis and Design. New Delhi: Indira Gandhi National Open University, 2004.
Print.
IEEE-SA Standards Board. IEEE 1016-1998: Recommended Practice for Software Design
Descriptions. New York: IEEE Computer Society, 1998. Print.
IEEE-SA Standards Board. IEEE 1063-2001: IEEE Standard for Software User
Documentation. New
York: IEEE Computer Society, 2001. Print.

Page | 338

D SAPPHIRE

IEEE-SA Standards Board. IEEE 829-1998: Standard for Software Test Documentation.
New York:
IEEE Computer Society, 1998. Print.
Kruthiventy, AJitha, Amrish Shah, Ashna Datye, and Bharathy Jayaraman. Software
Testing Guide
Book. Vol. I. The SoftREL Team, 2006. Print.
Kumar, Akshay, Divya Sharma, and RanJana Sharma. MCS-043: Database Design and
Implementation. Ed. Prof. N. Nirmala. New Delhi: Indira Gandhi National Open
University,
2006. Print.
Kumar, Akshay, RanJana Sharma, V.V. Subrahmanyam, and Archana Singhal. MCS-023:
Introduction to Database Management Systems. Ed. Milind MahaJani. New Delhi: Indira
Gandhi National Open University, 2005. Print.
Nepal. Ministry of Commerce. Customs. Treaty of Transit between the Government of
India and His
Majesty's Government of Nepal. Kathmandu: Ministry of Commerce, Nepal, 1999. Print.
Siddiqui, Tamanna, Dr. Ela Kumar, P. Venkata Suresh, and Akshay Kumar Purohit. MCS034:
Software Engineering. Ed. Prof. A.K. Tripathi. New Delhi: Indira Gandhi National Open
University, 2005. Print.
Tripp, Leonard L., ed. IEEE Std 830-1998: IEEE Recommended Practice for Software
Requirements
Specifications. New York: IEEE Computer Society, 1998. Print.
Page | 339

D SAPPHIRE

Wandschneider, Marc. Core Web Application Development with PHP and MySQL (Core
Series).
Upper Saddle River: Prentice Hall PTR, 2005. Print.

Page | 340

D SAPPHIRE

11. Glossary

DFD

Data Flow Diagram


A graphical representation of the "flow" of
data through an information system. DFDs
can also be used for the visualization of data
processing (structured design).

ERD

Entity-Relationship Diagram
Entity-relationship

diagram

based

on

database modeling method,used to produce


a type of conceptual schema or semantic
data model of a system, often a relational
database, and its requirements in a topdown fashion
FPA

Function Point Analysis


The method of measuring the size of an
information system and expressing it in a
number of function points

Gantt Chart

a type of bar chart that illustrates a project


schedule. Gantt charts illustrate the

start and
finish dates of the terminal elements and
summary elements of a project.
MD5

Message-Digest algorithm 5
A widely used cryptographic hash function
with a 128-bit hash value. As an Internet
standard

(RFC

1321),

MD5

has

been

employed in a wide variety of security


applications, and is also commonly used to
check the integrity of files.

Page | 341

D SAPPHIRE

MySQL

A relational database management system


(RDBMS) which has more than
6 million installations. MySQL stands
for "My Structured Query Language". The
program runs as a server providing multiuser access to a number of databases

PERT

Program (or Project) Evaluation and Review


Technique A method to analyze the involved
tasks

in

completing

given

project,

especially the time needed to complete


each task, and identifying the minimum
time needed to complete the total project.
PHP

PHP Hypertext Processor


An open source HTML-embedded scripting
language

PHPMyAdmin

An open source tool written in PHP intended

to
handle the administration of MySQL over the
World Wide Web. It can perform various
tasks such as creating, modifying or deleting
databases,
tables,

fields

statements;

or
or

rows;

executing

managing

users

SQL
and

permissions.
SRS

Software Requirement Specifications


A complete description of the behavior of
the system to be developed. It includes a
set of use cases that describe all the
interactions the users will have with the
software. Use cases are also known as
functional requirements. In addition to use
cases, the SRS also contains nonfunctional

Page | 342

D SAPPHIRE
(or supplementary) requirements.
XAMPP

XAMPP

is

free

and

open source cross-

latform web
server solution stack package, consisting
mainly of
the Apache HTTP Server, MySQL database,
and interpreters for scripts written in
the PHP and Perl programming languages.
XAMPP's name is an acronym for:
X (to be read as "cross", meaning cross-platform),
Apache HTTP Server , MySQL
PHP , Perl
WAN

Wide Area Network


a computer network that covers a broad
area

(i.e.,

any

network

whose

communications links cross metropolitan,


regional, or national boundaries). This is in
contrast
(PANs),

with
local

personal
area

area

networks

networks
(LANs),

or

metropolitan area networks (MANs) which


are usually limited to a room, building,
campus or specific metropolitan area (e.g., a
city) respectively.

Page | 343

You might also like