0% found this document useful (0 votes)
69 views87 pages

Project

Uploaded by

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

Project

Uploaded by

MANJUNATH S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 87

Index

1. Introduction …………………………..-->
1.1 Existing System ……………………………
1.2 Proposed System …………………………..
1.3 Software Using …………………………….
1.4 About PHP …………………………………
1.5 About MYSQL …………………………….

2.Synopsis ……………………………….-->
2.1 Title …………………………………………
2.2 Organization Consulted …………………….
2.3 Software Requirement ……………………...
2.4 Hardware Requirement ……………………..
2.5 Objectives …………………………………...
2.6 Problem Considered ………………………...
2.7 Scope of Analysis …………………………...
3.Software Requirement Specification ……
3.1 Introduction ………………………………….
3.1.1 Purpose ……………………………………...
3.1.2 Scope ………………………………………..
3.1.3 Definition, Acronyms & Abbreviation ……...
3.1.4 References …………………………………..
3.1.5 Overview ……………………………………
3.2 Overall Description ………………………….
3.2.1 Product Perspective …………………………
3.2.2 Product Function ……………………………
3.2.3 User Characteristics ………………………...
3.2.4 General Constraints …………………………
3.2.5 Assumption & Dependencies ……………….
3.3 Specific Requirement ………………………..
3.3.1 External Interface Requirement ……………..
3.3.1.1 User Interface …………………………………
3.3.1.2 Hardware Interface ……………………………
3.3.1.3 Software Interface …………………………….
3.3.1.4 Communicational Interface …………………...
3.4 Functional Requirement ………………………
3.4.1 Client Browser ………………………………..
3.4.1.1 Home Module ………………………………….
3.4.1.2 About Module ………………………………….
3.4.1.3 Service Module ………………………………...
3.4.1.4 Contact Module ………………………………..
3.4.1.5 Offers Module ………………………………….
3.4.1.6 Safety Module …………………………………
3.4.1.7 Cancellation …………………………………...
3.4.2 Admin ………………………………………..
3.4.2.1 Admin Login ………………………………….
3.4.2.2 Admin Panel …………………………………..
3.4.2.3 Add Domestic and International Flights ……...
3.4.2.4 Logout …………………………………………
3.5 Performance Requirement ……………………
3.6 Design Requirement ………………………….
3.7 Other Requirement …………………………...

4. System Design …………………………..-->


4.1 Introduction …………………………………..
4.2 Overview ……………………………………..
4.3 Logical Design ……………………………….
4.4 Physical Design ………………………………
4.5 Functional Decomposition ……………………
4.6 Functional Components ………………………
4.7 Description of programs ………………………
4.7.1 Context Flow Diagram ……………………….
4.7.2 Data Flow Diagram …………………………..
4.7.3 ER-Diagram ………………………………….
5. Detail Design ……………………………
5.1 Introduction …………………………………..
5.2 Application Document ……………………….
5.3 Structure of Software Package ……………….
5.4 Structure Chart ……………………………….
5.4.1 Structure of Admin Login Module …………..
5.4.2 Structure Chart of Showing Hierarchy ………
of Module ……………………………………

6. Database Design ………………………...-->


6.1 Introduction …………………………………..
6.2 Control Redundancy ………………………….
6.3 Creating Key Fields …………………………..
6.4 Tables …………………………………………
6.4.1 Flight Table …………………………………..
6.4.2 Flight Booking Table …………………………
6.4.3 Passenger Table ……………………………….
6.4.4 Admin Login Table ……………………………
6.4.5 Journey Detail Table ………………………….
6.4.6 Bill Details ……………………………………
7. Interface Snap Shot ……………………...-->
7.1 Admin Login ………………………………….
7.1.1 Login Empty Validation ……………………...
7.1.2 Login Successful ………………………………
7.2 Personal Information …………………………..
7.2.1 Personal Form Empty Message ……………….
7.3 Same Place Validation ………………………...
7.4 Bank Form …………………………………….
7.4.1 Bank Form Empty …………………………….
7.5 Add Flight ……………………………………..
7.5.1 Add Flight Empty Validation …………………
7.5.2 Add Flight Valid ………………………………
7.5.3 Flight has been Added …………………………
7.6 Edit/ Delete Flight ……………………………..
7.7 Date Error ……………………………………...
7.8 Cancel Booking ………………………………..
7.8.1 Cancel Booking Details ……………………….
7.8.2 Booking Removed …………………………….
7.9 No Flight ………………………………………
8. Coding …………………………………...-->
9. Testing …………………………………...-->
10. Conclusion …………………………..->
11. Bibliography ………………………...-->
INTRODUCTION
INTRODUCTION
1.1 Existing System:

The Airline Ticket Booking (ATB) is a software application to handle all the requests coming
from the customers (travelers) which are related to travelling by air.

As Internet and Web-based application are becoming more crucial and widely adapted in today’s
society, people have found that most of the business can be carried out online in a more flexible and
convenient way. Specifically counter or telephone based methods. Flights related information can be
displayed to the customer in a well-structured manner by simply clicking a button. Customers may also
expediently specify their demands through well-designed user interface provided by the website.

1.2 Proposed System:

ADVANTAGES

1. More flexible and user friendly.


2. It provides the user to achieve their satisfaction.
3. Easy updating is possible.
4. Quality assurance towards services.
5. Records can be maintained easily.

1.3 Software Using

Here PHP as front end and MYSQL as back end tool. The project is not a complete independent
one, that is to say this a partial set of a few modules.

1.4 About PHP :

PHP is an open source server side language designed for web development to produce dynamic web
pages.. It is one of the first developed server-side scripting languages to be embedded into an HTML source
document rather than calling an external file to process data. The code is interpreted by a Web server with a
PHP processor module which generates the resulting Web page. It has also evolved to include the capability
and can be used in standalone graphical application.. PHP can be deployed on most Web servers and also as
a standalone shell on almost every operating system and platform, free of charge. PHP was a competitor
to Microsoft’s Active Server Pages (ASP) server-side script engine and similar languages, but gradually
received better acceptance and is now installed on more than 20 million Web sites and 1 million Web Servers
PHP was originally created by Rasmus Lerdorf in 1995. The main implementation of PHP is now
produced by The PHP Group and serves as the formal reference to the PHP language. PHP is free
software released under the PHP License, which is incompatible with the GNU General public License
(GPL) due to restrictions on the usage of the term PHP

1.5 About MYSQL:


The SQL phrase stands for Structured Query Language.

The MySQL development project has made its source code available under the terms of the GNU
General Public License as well as under a variety of proprietary agreements. MySQL was owned and
sponsored by a single for-profit firm, the Swedish company MySQL AB, now owned by Oracle Corporation.

MySQL is a popular choice of database for use in web applications, and is a central component of the
widely used LAMP open source web application software stack (and other 'AMP' stacks). LAMP is an
acronym for "Linux, Apache, MySQL, Perl, PHP/Python." Free-software-open source projects that require a
full-featured database management system often use MySQL.

MySQL is a Relational Database Management System (RDBMS), and ships with no GUI tools to
administer MySQL databases or manage data contained within the databases. Users may use the
included command line tools, or use MySQL "front-ends", desktop software and web applications that create
and manage MySQL databases, build database structures, back up data, inspect status, and work with data
records
SYNOPSIS
SYNOPSIS
2.1 TITLE :

TRAVEL TERMINAL

2.3 SOFTWARE REQUIREMENT :

 SOFTWARE INTERFACE :
o Microsoft Windows 98 or above
o PHP
o HTML
o MY SQL
o Adobe Flash CS5
o Adobe Photoshop CS5
o Apachi2triad or Wampserver
o Dreamviewer CS5

2.4 HARDWARE REQUIREMENT :

 HARDWARE INTERFACE :
o Pentium 400MHz or Above
o 80GB HARD DISK Space
o 2GB RAM
o Color Monitor, Keyboard, Mouse
2.5 OBJECTIVES :

Our Project intends to serve the following purposes. It intends to check all the available airline
databases and return a string of results, which can help them in their travel plans. The objective of this
project is to create an airline reservation system where a traveler can request all flight information as per their
journey dates. They can get information regarding time, cost, etc all at the same time and place. When the
customer calls the Counter Assistant for his/her travel needs, the counter assistant will enter the customer’s
details (flight requirements) in the system. The system displays all the available airlines, schedules and
prices. This system would help the airline to better serve its customers by catering to their needs. The site
would use a Database to hold this information as well as the latest pricing and availability information for the
airlines.

2.6 PROBLEM CONSIDERED :

Lack of First and Knowledge

Online booking rarely gives you the opportunity to speak with someone knowledgeable about the
service you are booking. In some cases, you may find testimonials on a website, but you can never be sure if
they are real testimonials or paid advertisements.

Limited Choice of Itinerary


Low cost booking sites offer deep discounts for booking travel blindly, but the discount you receive
comes with many conditions. For example, when booking a flight or a hotel, you will sometimes be able to
choose only your day of travel, class of service and class of hotel.

Security
Booking travel online frequently requires that you pay at least a deposit and many times requires that
you pay the whole cost of your service up front. You put yourself at risk to have your credit card number
stolen or even your whole identity by booking through an insecure website.

No Free Perks
Booking online does not allow you to build personal relationships with the operator or to take
advantage of personal relationships between a travel agent and the operator. These relationships may allow
you to get a booking when none are available online or to receive a free upgrade.
2.7 SCOPE OF ANALYSIS :

The aim of this project is to provide the users flexible leisure travelers an immediate and easy way to
get better deals on airline tickets. They can find attractive prices that can't be found anywhere else through
partnerships with leading travel companies. Its working is that partners allow to access their empty seats on
flights all at big savings. The site pass these savings on to those travelers who can be flexible about their
plans. User Login module helps the user to login to the site. For that he must type the username and
password correctly. The login provision in this page helps the already registered user to directly access the
site and there is a link for registration to a user who is new to this site. Member Registration module helps
the new user to register into the site. The information entered by the users is added into the table registration.
Air Ticket Request module helps the user to make a request for Air Ticket. In this page the user enters the
full details about his flight such as the start and destination place, number of tickets and convenient
SOFTWARE
requirement
SpecificATION
SOFTWARE REQUIREMENT SPECIFICATION(SRS)
3. WHAT IS MEANT BY SRS?

Software Requirement Specification (SRS) is a document that completely describes what the
proposed software should be without describing how the software will do it. The basic goal of the requirement
phase is to produce the SRS which describes the complete external properties of the proposed software.

3.1 Introduction:

THE AIRLINE TICKET BOOKING helps user to get the information about the flights, and also
check the availability of the flight and its details.

The Airline Ticket booking is designed to help the user to book flights easily through net. The
website consists of following features:

In the system interaction will be done through online to reduce the effort and save time. The output of
the Requirement specification is the “Software Requirement Specification “(SRS)

The basic purpose of the SRS is to bridge the communication gap. SRS is the medium through which
client and user needs are accurately specified. A good SRS should satisfy all the parties, something very hard
to achieve and involves trade-offs and persuasions.

3.1.1 Purpose:

The purpose of this document is to present a brief description of the airline ticket booking. It will
explain the purpose and features of the system, the interfaces of the system, what the system will do, the
constraints under which it must operate and how the system will react to external stimuli.

Airline ticket booking system contains the details about the flight schedule and its fair tariffs,
passenger reservation and ticket records. The inventory of an airline service is generally divided into three
categories of class (e.g. First, business or Economic class) and each category is having seats up to 26
bookings, along with prices and booking condition.

3.1.2 Scope:

Inventory control steers how many seats are available for the different booking classes, by opening
and closing individual booking classes for sale. In combination with fares and booking condition stored in
Fare Quote System the price for each sold seats is determined.
3.1.3 Definition, Acronyms, Abbreviation:

SRS Software Requirement Specification

DFD Data Flow Diagram

ATB Airline Ticket Booking

SQL Structured Query Language

PHP PHP

P: Hypertext Preprocessor

3.1.4 References:

This web application has been prepared on the basis of discussion with the Team member, Faculty member
and also taken information from the following books and website.

 Robert W Sebesta
 Stefan Mischook
 www.travelterminal.com
 www.killerphp.com
 www.W3schools.com

3.1.5 Overview:

The rest of the document deals about all the main features of this software each with its purpose and
its main function. It also gives details about the interface with other products and related functionality of each
product.
3.2 Overall description:

This section deals with general factors that affect products and its requirements. Requirements are not
mentioned but general overview is presented.

3.2.1 Product perspective:

The proposed system ensures the complete freedom for the users, where user at his own system can
log on to this website and can book his ticket. The system allows only registered user to book the tickets,
view timings and cancel their tickets. In this system the entire work is done on online and ticket with id is
also provided for passengers as a print document. Here passengers can send their queries and suggestions
through a feedback form.

3.2.2 Product Functions:

The major basic function of the proposed website include

 Providing flight details.


 Flight bookings for a particular destination, date and time.
 Allowing the customer to cancel his reservation.

3.2.3 User characteristics:

 Customer: A customer is any person who uses ATB to book air flight ticket(s). Customers should
have an internet connection to access the ATB application to book the flight tickets. They require an
easy-to-use and trustable online air flight reservation system. They need to be fully informed about all
available flights, their dates, flight class. They require an easy to use and trustable, secure flight ticket
booking system.
 Administrator: An administrator may be any people whose responsibilities are manage ATB’s
back-end databases. They may wish to update/add/delete any information in existing reservation
database or user registration database. They may need to keep all the customers data and record. They
should keep in touch with airline authorities so that any changes made by them can be updated. They
also need to take care that their operation will not affect the correctness of the user transaction.

3.2.4 General Constraints :

 Control Functions: The software must be very user- friendly and display appropriate error
messages.
 Reliability requirements: Data redundancy and use of special/blank characters must be avoided.
 Safety/security consideration: The application must be exited always normally.
3.2.5 Assumption and dependencies:

All the data entered will be correct and up-to-date. System date should be proper. The Browser and
operating system will support the system and the .NET Frame Work.

3.3 SPECIFIC REQUIREMENTS:

3.3.1 External Interface requirements:

3.3.1.1 User Interfaces:

The interface must be easy to understand. GUI should be interactive.

The user interface includes:

 Screen formats/ organization: The introductory screen will be displayed after successful
login which will allow the users to choose any of the three option, including viewing flight
details, booking a ticket or cancel a ticket, change password.
 Window formats/ organization: When the user choose s some other option, then the
information pertaining to that choice will be displayed in a new window which ensures
multiple windows to be visible on the screen and the users can switch between them.
 Data Format: The data entered by the users should be alpha numeric.

3.3.1.2 Hardware Interface:

The system must basically support certain input and output devices. Their descriptions are as
follows

Processor : Intel Pentium 3

RAM : 1 GB

Hard disk : 320 GB


3.3.1.3 Software Interfaces:

The front end application is PHP for the user for getting information about passengers and
flights. In the back end, for maintaining the data in database for having a formatted view and MySQL
Server 2005 as the back end.

3.3.1.4 Communication Interface:

Internet Connection is required for running this web application as it is operated through web
browser.

PHP and Mozilla Firefox.

3.4 Functional Requirement :

3.4.1 Client Browser :

 Checking Flight Information: ATB shall present the person checking the flight information
with a selection of flight schedule, check flight information based on the flight id.
 Client can check the flight details and also can book the tickets.
 if required he can also cancel the tickets which he booked.
 Cancel a Reservation: Only the customer who reserved the ticket may normally cancel the
reservation. To cancel a reservation, the customer just enters his “booking id”. The entire
Reservation will be cancelled. When the request is accepted, the ATB shall remove the
customer’s name from seat arrangement in that flight.

3.4.1.1 Home module:

The home page on the client browser gives the basic details of the website. It shows the detail
information. The home page is the index page and it displays the welcome message. It also
contains the booking form.

3.4.1.2 About module:

The about module gives the detailed description of the website. It contains chairman message,
vision and values, achievements and guests testimonial
3.4.1.3 Service module:

The service modules provides us with the other services in the flights that are linked
with our website..

3.4.1.4 Contact module :

The contact module shows the address and the site map

3.4.1.5 Offers:

This module provides us with the offers that are available in our website. It also displays the
hot offers which are available in the present week.

3.4.1.6 Safety:

This module provides us with the all the safety and precaution measures of our website.

3.4.1.7 Cancellation:

Only the customer who reserved the ticket may normally cancel the reservation. To cancel a
reservation, the customer just enters his “booking id”. The entire Reservation will be cancelled. When
the request is accepted, the ATB shall remove the customer’s name from seat arrangement in that
flight.

3.4.2 Admin:

3.4.2.1 Admin login:

The admin needs to login into the admin login page to gain access to admin server. Only after
the server declares in authentic he will be allowed o manipulate the browser information and view the
information. therefore to avoid the unwanted access towards the company admin login is created. It
provides the more security to the system and information of the company.

3.4.2.2 Admin Panel:

After the admin logs through the admin login the admin will get the admin panel which
contains button that will enable him to manipulate the required pages of the website.

3.4.2.3 Add Domestic and International Flights:

In this module we can add the details of domestic and international flights.
3.4.2.4 Admin Logout:

The logout enables the user to logout from the login session. And once he logs out from
admin server he cannot access back into the admin server until he logs in again!!!  this provides full
security to admin server. Only the authentic admin can make use of facility provide by server.

3.5 Performance Requirement:

Since the program handles multiple users, if more than one person attempts to access the data in the
data base, it should prevent the simultaneous access.

3.6 Design requirement:

 Requires 1GB on-board memory


 The software should be portable and must be inaccessible to unauthorized users.

3.7 Other requirement:

 Usability: The product is developed keeping in mind the human aspect of system. Every
interface which requires user intervention is made very user friendly. Thus the effort required
to learn and operate the software properly is minimal.
 Portability: The application is portable which ensures its adaptability for use on different
computer terminals with different operating system and standards.
SYSTEM
DESIGN
SYSTEM DESIGN
4.1 INTRODUCTION:

System design is the process or art of defining the architecture, components, modules, interface, and
the data for a system to satisfy requirements. One could see it as the application of the system theory to
product development. There is some overlap with the disciplines of the system analysis, system architecture
and system engineering

4.2 OVERVIEW:

If the broader topic of product development” blends the perspective of marketing, design, and
manufacturing into a single approach to product development, then design is the act of taking the marketing
information and creating the design of the product to the manufactured. System design is therefore the
process of defining and developing a system to satisfy specified requirements of the user. Until the 1990s
system had a crucial and respected role in the data processing industry. In the 1990s standardization of
software results in the ability to built modular system. The increasing importance of software running on the
generic platforms has enhanced the discipline of software engineering.

Object –oriented Analysis and design method are becoming the most widely standard language used
in object oriented analysis and design. It is widely used for modeling software system and is increasingly
used for high designing non-software system and organizations.

4.3 LOGICAL DESIGN:

The logical design of the system pertains to an abstract representation of the data flow, inputs and
output of the system. This is often conducted via modeling, which involves a simplistic (and sometimes
graphical) representation of actual system. In the context of system design, modeling can undertake the
following forms, including:

1. Data flow diagrams


2. Entity life histories
3. Entity relationship diagrams
4.4 PHYSICAL DESIGN:

The physical design relates to actual input and output process of the system. This is laid down in
terms of how data is inputted into a system, how it is verified physical design, in this context, does not refer
to the tangible physical design of an information system. To use an analogy, a personal computer’s physical
design involves would not concern the actual layout of the tangible hardware, which for a PC would be a
monitor, CPU, motherboard, hard drives, modems, video/graphics cards, USB slots, etc

4.5 FUNCTIONAL DECOMPOSITION:

Functional decomposition refers broadly to the process of resolving a functional relationship into its
constituent. Parts in such a way that the original function can be reconstructed (i.e., recomposed) from those
parts by function composition. In general, this process of decomposition is undertaken either for the purpose
of gaining insight into the identity of the constituent components (which may reflect individual physical
processes of interest, for example)or for the purpose of obtaining possess a certain level of modularity(i.e.,
independence or non-interaction).

4.6 FUNCTIONAL COMPONENTS:

Home: This shows the home page of the website.

Admin : This features allows the admin to do the following.

1. Flight details: This allows to add the description and the other details of the flights.
2. View booking: This allows the admin to view the booking of the flight.
3. Edit/ delete Flights: This allows us to edit the flight information and also delete the flights if its not
available.

User : This module allows the user to perform following modules.

1. Flight booking: This allows the user to book the flight and select the type of seats.
2. Payment: This gives the payment details and allows the user to take copy of the bill.

About us module : The about us module gives the detailed description of the website. It provide detail the
producers.it contains chairman message, vision and values, achievements and guests testimonial

Service Module: The service modules provides us with the other services in the flights that are linked
with our website.

Contact Module: The contact module shows the address of our company.

Offers: This module provides us with the offers that are available in our website. It also displays the hot
offers which are available in the present week.
Safety: This module provides us with the all the safety and precaution measures of our website.

Cancellation: Only the customer who reserved the ticket may normally cancel the reservation. To cancel a
reservation, the customer just enters his “booking id”. The entire Reservation will be cancelled. When the
request is accepted, the ATB shall remove the customer’s name from seat arrangement in that flight.
4.7DESCRIPTION OF PROGRAMS:

4.7.1CONTEXT FLOW DIAGRAM (CFD):

A context flow diagram(CFD) is a graphical representation of the “flow” of context through an


information system.

CFD’s can be used for the visualization of data processing (structured design). On a CFD, data items
flow from an external data source or an internal data source to an external data sink, via an internal
process. A CFD provides no information about the timings or ordering of processes, or about whether
processes will operate in sequence or in parallel. It is therefore quite different from a flowchart, which
shows the control through an algorithm, allowing a reader to determine what operation will be performed,
in that order, and under what circumstances, but not what kinds of data will be input to and output from
the system, nor where the data will come from and go to, nor where the data will be stored.

CLIENT BROWSER

ADMIN DISPLAY S FLIGHTS


HOTELS

VIEW BOOKING DETAILS PERSONAL INFO

CARD DETAILS

ADD FLIGHT DETAILS


DATA BASE PRINT PREVIEW

ADD FLIGHTS

4.7.1 Context Flow Diagram


4.7.2 Data Flow Diagram (DFD):
The Data Flow Diagram describes the flow of data with the help of various levels in clear way. It is used to
represent a system at any level of abstraction. DFD serves the following purposes:

 DFD is the one of the most important modeling tools. It is used to model the system components that
interact with the system. it uses the data and information which flows in the system.
 DFD shows how the information moves through the system and how it is modified by the series of
transformation. It is a technique that depicts information which moves from input or output.
 DFD is also known as Bubble chart or Data Flow Graph. DFD may be used to represent the system at
any level of abstraction. DFD may be portioned into a level that represents increasing information
flow and function details.
 Context level DFD or fundamental system model represents the entire software as a single bubble
with input and output data indicated by incoming and outgoing arrows.
 DFD provides an indication of how data are transformed as they move through the system.

TRAVEL AND TERMINAL

CLIENT ADMIN
MODULE MODULE

login
Home About us Service contact
s Add flight details

Log out

4.7.2 Top Level Data Flow Diagram


Rules for constructing DFD
 Process should be named for easy understanding.
 The direction of flow is from top to bottom and left to right.
 The direction of flow should not allow any kind of loops.

Notation Description

An oval represents a process or transform that is applied


to data or control it in some way.

The open box/ cylinder represent data store-stored


information that is used by the software.

A rectangle is used to represent an external entity. These


are organization, peoples, other information system

An arrow represents one or more data flow or data item.


Zero level DFD

WEBSITE FOR TRAVEL


ADMIN TERMINAL

CLIENT

Zero level Data flow diagram

First level DFD

Login Details CHECK VALIDATION


ADMIN

Invalid
Username/password

INVALID VALID

ERROR PAGE ADMIN PAGE

First Level Data flow Diagram


Second Level DFD

Input

Reservation
User Airline Ticket
booking

Cancellation
Output

Second level data flow diagram

Third level DFD

Input data Processing Storing


Accept Reserve
User Passenger
the the seat
database
details

Third level Data flow Diagram


Fourth level DFD

Passenger User
database Print

Fourth level Data flow Diagram

Fifth level DFD

Input data Processing Updating

Accept Cancel
User Passenger
the the seats
database
details

Fifth level Data flow Diagram


4.7.3 ER-DIAGRAM:
An Entity Relationship Model (ERM) is a relational schema database modeling method, used
to produce a type of conceptual schema or semantic data model of system, often a relational database,
and its requirements in a top down fashion.

Notations :

Process:

Process shows what systems do. Process is represented by circles in DFD. DE Macro
sometimes uses the alternate term bubble to refer to a process in DFD. People, procedure all devices
that produce data were the physical components are not identified.

External Entity:

External entities are outside the system, but they either supply input data into the system or
use the system output. External sources are or destinations of the data which may be people of
organization or other entities.

Diamond:

This symbol represents the relation between the entities.


ER DIAGRAM

Username Password

ADMIN

maintan
s

1 flt_type
j_distanc master_i
Master_i e d
flt_name
d flt_n echild_fa
flt_no
flt_dep o re
binfant_fa
re
flt_desttim flt_desti
e
Flight contai
Journey Details
flag
ns

flt_deptim
e tot_bsea tot_eseat eadult_fa
badult_fa
t re
dep_day re
has bchild_far
bookin e einfant_fa
flt_desti re
book_i g
d master_i flt_dat p_nam
p_de master_i
flag d e e
p d
b_ststus b_statu book_id p_age
seat_n s
o
Bookings
p_nam contai Passenger flag
e ns Details
p_lname
p_sex
flt_desttim
p_lname
p_seatyp e p_pn
p_fltn
o p_add
o e p_pasn
flt_deptim
p_fltnam
e o
e
Detail
design
Detail Design
5.1 Introduction:

Design is a creative process, a good is the key to effective system. The term” design” is defined as
“The process of applying various techniques and principles for purpose of defining a process or a system
in sufficient detail to permit its physical realization”. Design is defining a model of the new system and
continuous by converting this model to a new system. The method is used to convert the model of
proposed system into computer specification.

In system design high-end decisions are taken regarding the basic system architecture, platforms and
tools to be used. The system design transforms a logical representation of what a given system is required
to be in to the physical specification. Design starts with a given system’s requirement specification and
converts it into a physical reality during the development. Important design factors such as reliability,
response time, throughput of the system, maintainability, expandability, etc. should be taken into account.

Detailed design, which is also known as logical design, involves the internal design of the module
and how the specification of the module can be satisfied. Detail design is extension of system design.

The basic goal in the detail design is to specify the logic for different modules that has been specified
during system design. Specifying the logic will require developing an algorithm that will implement the
given specification.

5.2Application Document:

The detailed design refers the system document hence the first applicable document here is system
design. Also we are referring the data structure. Hence second applicable document here is database
design.
5.3 Structure of Software Package :

The software package consists of following functional component

Functional components 1: Home

Functional components 2: Admin

Functional components 3: Flight Details

Functional components 4: Personal info

Functional components 5: Bank Form

Functional components 6: Booking

Functional components 7: Print

5.4 Structure Chart:

It is graphically represented of the control logic of processing function or modules module


representing the system. It is one of the most common methods used for design. In a structure chart each
program module is represented by a rectangular box. Modules at the top level of the structure chart call
the modules at the lower levels. The connection between are represented by lines between the rectangular
boxes. The connection describes the data flow between the called and calling module

5.4.1 Structure of Admin Login Module :

Login

Add Flights Logout


View Booking Edit/Delete
flights
5.4.2 Structure chart showing hierarchy of module :

Website

Client Browser Admin Server

Get
Book View Login
Get

Flight View Add Add


Details Flight

Persona Add View View


l info Booking

Update
Bank Add Edit/
Form Delete
Delete

Summar View Exit Logout


y

Print View

Exit
Database
design
Database design
6.1 Introduction:
Data design is used to manage large bodies of information. The management of data involves both the
definition of structure for storage and provision for manipulation of information. Database design is the
process of producing a detailed data module of a database. In addition, the data base system must provide the
safety of the information solved despite system crashes or due to the attempts at unauthorized access. The
term database design can be used to describe many different parts of the design of an overall database
system. We have to fulfill certain condition such as-

6.2 Control Redundancy:


1. Easy to use

2. Data Independence

3 .Accuracy and Integrity

4. Recovery from failure

5. Privacy and security

6. Performance

6.3 Creating Key Fields:


Along with documenting your database design, the most important design goal you should have is to
create your table structure so that each table has a primary key and a foreign key. The primary key should
meet the following goals:

1. Each record is unique within a table (no other record within the table has all of its columns equal to
any other).
2. For a record to be unique, all the columns are necessary; that is, data in one column should not be
repeated anywhere else in the table.
3. Regarding the second goal, the column that has completely unique data throughout the data is known
as the primary key field. A foreign key field is that links one table to another table’s primary or
foreign key. The following example clarify this situation.
6.4 Tables:

Database db_airticketbooking

6.4.1 Flight Table:


Table structure for table tbl_flights

Field name Data Type Variable Constraints Description


Master_id Int 9 Primary key Master id
flt_no Varchar 9 Not Null Flight number
flt_type Varchar 25 Not Null Flight type
flt_name Varchar 25 Not Null Flight name
flt_dep Varchar 25 Not Null Flight departure
flt_desti Varchar 25 Not Null Flight destination
Not Null Total Economic
tot_eseat Int 3 Seat
Not Null Total Business
tot_bseat Int 3
Seat
dep_day Date Not Null Departure day
Not Null Flight departure
flt_deptime Time time

Not Null Flight destination


flt_desttime Time time

Flag Tinyint 1 Not Null Flag


6.4.2 Flightbooking table:

Table structure for table tbl_bookings

Field name data Type Variable Constraints description

master_id Int 3 Primary key Master id


book_id Varchar 5 Not Null Book id
book_date Date Not Null Booking Date
seat_no Int 3 Not Null Seat no
p_name Varchar 25 Not Null Passenger name
International
p_lname Varchar 35 Not Null
Passenger name
Not Null PassengerFlight
p_fltno Varchar 10
no
Not Null Passenger Flight
p_fltname Varchar 25
name
Not Null Passenger Seat
p_seattype Varchar 25
Type
Not Null Passenger
p_dep Varchar 25 departure
Not Null Passenger
p_desti Varchar 25 destination
flt_date Date Not Null Flight date
Not Null Flight departure
flt_deptime Time time
Not Null Flight destination
flt_desttime Time time
b_status Char 3 Not Null Status
Not Null
Cost Float
Not Null Flag
Flag Int 1
6.4.3 Passenger Table:

Table structure for table tbl_passdetails

Field name Data type Variable Constraints Description


master_id Int 4 Primary key Master id
book_id Int 4 Not Null Booking id
booking_date Date Not null
p_name Varchar 25 Not Null Passenger name
p_lname Varchar 25 Not Null Passenger last name
p_age Int 3 Not Null Passenger age
p_sex Varchar 6 Not Null Passenger sex
p_add Varchar 100 Not Null Passenger address
p_pasno Varchar 11 Not Null Passenger passport

p_pno Varchar 11 Not Null Passenger phone number


b_status Char 3 Not Null Status
flt_type Varchar 15 Not Null International/Domestic
flag Int 11 Not Null Flag

6.4.4 Admin Login Table:

Table structure for table tbl_login

Field name Data type Variable Constraints Description


master_id Int 3 Primary Key Master id
username Varchar 25 Not Null Username
passwd Varchar 25 Not Null Password
6.4.5 Journey_Details Table:
Table structure for table tbl_journey_details

Field name data Type variable Constraints Description


master_id Int 10 Not Null Master id
flt_no varchar(25) 25 Not Null Flight no
Not Null Economic Adult
eadult_fare decimal(10,0) 10,0
Fare
Not Null Economic Child
echild_fare decimal(10,0) 10,0
Fare
Not Null Economic Infant
einfant_fare decimal(10,0) 10,0
Fare
Not Null Business Adult
badult_fare decimal(10,0) 10,0
Fare
Not Null Business Child
bchild_fare decimal(10,0) 10,0
Fare
Not Null Business Infant
binfant_fare decimal(10,0) 10,0
Fare
j_distance bigint(10) 10 Not Null Journey Distance

6.4.6 Bill Details :


Table structure for table tbl_bill

Field name data Type variable Constraints Description


master_id Int 10 Primary Key Master id
book_id Int 3 Not Null Book id
flt_no Varchar 3 Not Null Flight Number
adult_no Int 3 Not Null Adult Number
child_no Int 3 Not Null Child Number
infant_no Int 3 Not Null Infant Number
Total_price Bigint 10 Not Null Total Amount
INTERFACE
SNAP SHORT
7.1 Admin Login :

7.1.1 Login Empty Validation :

7.1.2 Login Successful :


7.2 Personal Information :

7.2.1 Personal Form Empty Message :

7.3 Same place (Departure & Destination) Validation :


7.4 Bank Form :
7.4.1 Bank Form Empty :

7.5 Add Flight :


7.5.1 Add Flight Empty Validation :
7.5.2 Add Flight Valid :

7.5.3 Flight Has been Added :


7.6 Edit/Delete Flight :

7.7 Date Error :


7.8 Cancel Booking :
7.8.1 Cancel Booking Details :

7.8.2 Booking Removed :


7.9 No Flight :
TESTING
Testing and Implementation
Introduction:

Software testing is the process of executing a program or system with the intent of finding
errors. Software testing is any activity aimed at evaluating an attribute or capability of the program or
system and determining that it meets its required results. Although crucial to software quality and
widely deployed by programmers and testers, software testing still remains an art, due to limited
understanding of the principles of software. The difficulty in software testing stems from complexity
of software: we cannot completely test a program with moderate complexity. Testing is more than
just debugging. The purpose of testing can be quality assurance, verification and validation, or
reliability estimation. Testing can be used as a generic metric as well. Correctness testing and
reliability testing are two major areas of testing. Software testing is a trade off between budget, time
and quality.

Types of testing:

“Program testing can be used to show the presence of bugs, but never to show their absence!”
Clearly, the success of testing is revealing errors in the programs depend critically on the test cases.
The two basic approaches are:

1.Black box or functional testing

2.White box or structural testing

1.Black box or functional Testing :

Black box Testing is also known as functional testing. A software testing technique whereby
the internal workings of the item being tested are not known by the tester. For example, in a black
box on software design the tester only knows the inputs and what the expected outcomes should be
and not how the program arrives at those outputs. The tester does not ever examine the programming
code and does not need any further knowledge of the program other than its specification.

2.White Box or Functional Testing :


White box testing includes analyzing data flow, control flow, information flow coding
practices, and exception and error handling within the system, to test the intended and unintended
software behavior. White box testing can be performed to validate whether code implementation
follows intended design to validate implemented security functionality, and to uncover exploitable
vulnerabilities. White box testing requires access to the source code. Though white box testing can be
performed any time in the life cycle after the code is developed, it is good practice to perform white
box testing during the unit testing phase.
The basic levels of testing are given below,

1. Unit testing
2. Integration testing
3. System testing
4. Acceptance testing

Unit Testing :

Unit testing can be defined as testing classes through their public API. Some testing tools
make it possible to test private content of the class, but this should be avoided as it makes the test
more verbose and much harder to maintain .If there is private content that seems to need explicit
testing, consider refactoring it into public methods in utility classes instead. But do this to improve
the general design, not to aid testing.

Integration Testing :

A stage in testing a computer system in which a collection of modules in the system is tested
as a group. Testing in which software components, hardware components or both together are
combined and tested to evaluate interactions between them. Integration testing, also known as
integration and testing (I&T), is a software development process which program units are combined
and tested as groups in multiple ways.

System Testing :

System testing is the running of the whole system against test data, a complete simulation of
the actual running system for purpose of testing out the adequacy of the system. A test of an entire
interconnected set of components for the purpose of determining proper functions and
interconnections.

Acceptance Testing :

In software development, user acceptance testing (UAT) also called beta testing application
testing, and end user testing- is a phase of software development in which the software is tested in the
“real world” by the intended audience.
Admin Login Form :

Test cases Expected Result Observed Result


When user name & password It display the message” User Success
is not entered name should be entered and
password must be entered”
When User name & It redirects to the Main page Success
password is entered
When User name & It display the message ”user Success
password is entered name and password
incorrectly combination is wrong”
When password is entered It display the message “user Success
correctly & user name name and password
entered incorrectly combination is wrong”
Personal details :
Test Cases Expected Result Observed Result
when user First Name is not It display the message Success
entered “Please fill out this field”
When user last Name is not It display the message Success
entered “Please fill out this field”
When user Age is not entered It display the message Success
“Please fill out this field”
When user address is not It display the message Success
entered “Please fill out this field”
When user passport number It display the message Success
is not entered “Please fill out this field”
When user phone number is It display the message Success
not entered “Please fill out this field”
when user first name is It display the message Success
incorrectly entered ”Invalid characters First
name”
When user last Name is It display the message Success
incorrectly entered ”Invalid characters Last
name”
When user Age is incorrectly It display the message Success
entered ”Invalid characters Age”
When user passport number It display the message Success
is incorrectly entered ”Invalid characters Passport
number”
When user phone number is It display the message Success
incorrectly entered ”Invalid characters Phone
number”
When all the properties are It redirects to the Bank form Success
entered
Bank form
Test Cases Expected Result Observed Result
when user First Name is not It display the message Success
entered “Please fill out this field”
When user last Name is not It display the message Success
entered “Please fill out this field”
When user Card number is It display the message Success
not entered “Please fill out this field”
When user CVV number not It display the message Success
entered “Please fill out this field”
when user First Name is It display the message Success
entered incorrectly “Please match the requested
format only characters
allowed ”
When user last Name is It display the message Success
incorrectly entered “Please match the requested
format only characters
allowed”
When user Card number is It display the message Success
incorrectly entered “Invalid, Please enter number
only”
When user CVV number is It display the message” Success
incorrectly entered Invalid, Please enter number
only ”
All the properties entered It display the message” Success
correctly Redirect to summary page ”
Add Flights
Test Cases Expected Result Observed Result
When Flight number is not It display the message” Success
entered Please fill out this
field,eg:AA12 or AA123 or
AAA123”
When Flight name is not It display the message” Success
entered Please fill out this field, only
characters allowed ”
When Departure days cant be It displays the message Success
previous days “Flight departure date cant be
lesser then today”
When departure place is not It display the message” Success
entered Please fill out this field, only
characters allowed ”
When destination place not It display the message” Success
entered Please fill out this field, only
characters allowed ”
Test Cases Expected Result Observed Result
When distance not entered It display the message” Success
Please fill out this field,
Distance”
When economy seat not It display the message” Success
entered Please fill out this field,
Invalid”
When business seat not It display the message” Success
entered Please fill out this field,
Invalid”
When adult fair is not entered It display the message” Success
Please fill out this field,
Invalid”
When child fair is not entered It display the message” Success
Please fill out this field,
Invalid”
When infant fair is not It display the message” Success
entered Please fill out this field,
Invalid”
When Flight number is It display the message” Success
incorrectly entered Please match the Requested
format, eg:AA12 or AA123
or AAA123”
When Flight name is It display the message” Success
incorrectly entered Please match the Requested
format, only character
allowed”
When Departure days is It displays the message Success
incorrectly selected “Flight departure date cant be
lesser then today”
When departure place is It display the message” Success
incorrectly entered Please match the Requested
format, only character
allowed”
When destination place It display the message” Success
incorrectly entered Please match the Requested
format, only character
allowed”
When distance incorrectly It display the message” Success
entered Please fill out this field,
Distance”
When economy seat It display the message” Success
incorrectly entered Please fill out this field,
Invalid”
When business seat It display the message” Success
incorrectly entered Please fill out this field,
Invalid”
Test Cases Expected Result Observed Result
When child fair is incorrectly It display the message” Success
entered Please fill out this field,
Invalid”
When infant fair is It display the message” Success
incorrectly entered Please fill out this field,
Invalid”

Edit Flight
Test Cases Expected Result Observed Result
When Flight number is not It display the message” Success
entered Please fill out this
field,eg:AA12 or AA123 or
AAA123”
When Flight name is not It display the message” Success
entered Please fill out this field, only
characters allowed ”
When Departure days cant be It displays the message Success
previous days “Flight departure date cant be
lesser then today”
When departure place is not It display the message” Success
entered Please fill out this field, only
characters allowed ”
When destination place not It display the message” Success
entered Please fill out this field, only
characters allowed ”
When distance not entered It display the message” Success
Please fill out this field,
Distance”
When economy seat not It display the message” Success
entered Please fill out this field,
Invalid”
When business seat not It display the message” Success
entered Please fill out this field,
Invalid”
When adult fair is not entered It display the message” Success
Please fill out this field,
Invalid”
When child fair is not entered It display the message” Success
Please fill out this field,
Invalid”
Test Cases Expected Result Observed Result
When infant fair is not It display the message” Success
entered Please fill out this field,
Invalid”
When Flight number is It display the message” Success
incorrectly entered Please match the Requested
format, eg:AA12 or AA123
or AAA123”
When Flight name is It display the message” Success
incorrectly entered Please match the Requested
format, only character
allowed”
When Departure days is It displays the message Success
incorrectly selected “Flight departure date cant be
lesser then today”
When departure place is It display the message” Success
incorrectly entered Please match the Requested
format, only character
allowed”
When destination place It display the message” Success
incorrectly entered Please match the Requested
format, only character
allowed”
When distance incorrectly It display the message” Success
entered Please fill out this field,
Distance”
When economy seat It display the message” Success
incorrectly entered Please fill out this field,
Invalid”
When business seat It display the message” Success
incorrectly entered Please fill out this field,
Invalid”
When adult fair is incorrectly It display the message” Success
entered Please fill out this field,
Invalid”
When child fair is incorrectly It display the message” Success
entered Please fill out this field,
Invalid”
When infant fair is It display the message” Success
incorrectly entered Please fill out this field,
Invalid”
bibliography

Books :
1. An integrated approach to Software Engineering
Author: Pankaj Jalote

2. An introduction to PHP
 Author : Stefan Mischook
 Author : Robert.W.Sebesta
Website:

 W3Schools/php.com
 KillerPhp.com
 Lynda/php.com
CODING
Summary.php
<?php require_once("../includes/functions.php") ?>

<?php if(isset($_POST['txt_bid']))

require_once("../includes/connection.php")?>

<!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>

<?php

updatetbl($_POST['txt_bid']);

$book_id=$_POST['txt_bid'];

$res=getdata($book_id);

$flt_res=getflt_details($book_id);

while($get_data=mysql_fetch_array($res)){

?>

<style type="text/css">

#apDiv1 {

position:absolute;

left:284px;

top:242px;

width:387px;

height:154px;

z-index:1;

</style>
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon"
/>

<title>Summery</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<style type="text/css">

body {

background-image: url();

background-color: #333;

body,td,th {

color: #FFF;

</style>

<body>

<div style="position:absolute; left: 290px; top: 77px; height: 161px;


width: 375px;">

<table align="center" width="375" border="2">

<th colspan="2" bgcolor="#666666" align="center"><font


color="#FFFFFF">BOOKING NUMBER</font></th>

<tr>

<th bgcolor="#666666" align="center"><font style="size:36px"


bgcolor="#666666">Booking ID:</font></th>

<th><?php echo htmlentities($get_data['book_id'])?></th>

</tr>

<tr>

<td width="145" bgcolor="#666666" align="center"><label>Booking


Date</label></td>

<td width="212" align="center">&nbsp;


<?php getbookdate($get_data['book_id']); ?></td>

</tr>

<tr>

<td align="center" bgcolor="#666666">Name</td>

<td align="center"><?php echo


htmlentities($get_data['p_name'])?>&nbsp;<?php echo
htmlentities($get_data['p_lname'])?></td>

</tr>

<tr>

<td align="center" bgcolor="#666666">Address</td>

<td align="center"><?php echo htmlentities($get_data['p_add'])?></td>


</tr>

<tr>

<td align="center" bgcolor="#666666">Mobile no :</td>

<td align="center"><?php echo htmlentities($get_data['p_pno'])?></td>

</tr>

</table>

</div>

<?php

$passenger=getpass_details($book_id)

?>

<div id="apDiv1">
<div style="position:absolute; left: 388px; top: -164px; width: 384px;
height: 371px;">

<table width="383" border="2">

<tr>

<td colspan="5" align="center" bgcolor="#666666"><strong>PASSENGER


DETAILS</strong></td>

</tr>

<tr align="justify">

<th width="175"bgcolor="#666666" align="center"><font


color="#FFFFFF">Name of Passenger(s)</font></td>

<th width="190"bgcolor="#666666" align="center"><font


color="#FFFFFF">Seat No</font></td>

</tr>

<?php

while($details=mysql_fetch_array($passenger)){

?>

<tr>

<td align="center"><?php echo


htmlentities($details['p_name'])?>&nbsp;<?php echo
htmlentities($details['p_lname'])?></td>

<td align="center"><?php echo


htmlentities($details['seat_no'])?></td>

</tr>

<?php

?>

</table>

</div>
<div style="position:absolute; left: 6px; top: 188px; width: 805px;
height: 287px;">

<table width="811" height="97" border="2">

<tr>

<td colspan="5" align="center" bgcolor="#666666"><strong>FLIGHT


DETAILS</strong></td>

</tr>

<tr> <th width="225" bgcolor="#666666" bordercolor="#000000"


align="center"><font color="#FFFFFF">Flight Date</font></th>

<th width="209" align="center" bgcolor="#666666"><font


color="#FFFFFF">Flight Number</font></th>

<th width="129" align="center" bgcolor="#666666"><font


color="#FFFFFF">Departure</font></th>

<th width="141" align="center" bgcolor="#666666"><font


color="#FFFFFF">Arrival</font></th>

</tr><?php

while($get_fltdetails=mysql_fetch_array($flt_res)){

?>

<tr align="center">

<td height="38" align="center"><?php echo


htmlentities($get_fltdetails['flt_date'])?><br/><?php echo
htmlentities($get_fltdetails['flt_deptime'])?></td>

<td align="center"><?php echo


htmlentities($get_fltdetails['p_fltno'])?></td>

<td align="center"><?php echo


htmlentities($get_fltdetails['p_dep'])?></td>

<td align="center"><?php echo


htmlentities($get_fltdetails['p_desti'])?></td>

</tr>
<?php }?>

</table>

</div>

<div style="height:20 px">

<div style="position:absolute; left: 686px; top: -228px; width: 156px;


height: 35px; background-image: url(images/opacity_50_black.png); layer-
background-image: url(images/opacity_50_black.png); border: 1px none
#000000;">

<form>

&nbsp;&nbsp; <input type="button" value=" OK "


onClick="parent.location='../users/index.php'"/>&nbsp;&nbsp;&nbsp;&nbsp;

<input type="button" value="Print"


onClick="window.open('print.php?book=<?php echo
$book_id?>','print','height=100,width=100,left=50,top=50,resizable=yes,sc
rollbars=no,toolbar=no,status=yes,raw');"/>

</form>

</div>

</div>

<table width="378" border="2" align="center">

<tr>

<td height="23" bgcolor="#666666" colspan="5"


align="center"><strong>FARE DETAILS</strong></td>

</tr>

<tr>

<th width="86"bgcolor="#666666" align="center"><font


color="#FFFFFF">Flightno</font></th>

<th width="80"bgcolor="#666666" align="center"><font


color="#FFFFFF">Adult Fare</font></th>

<th width="80"bgcolor="#666666" align="center"><font


color="#FFFFFF">Child Fare</font></th>
<th width="87"bgcolor="#666666" align="center"><font
color="#FFFFFF">Infant Fare</font></th>

</tr>

<?php

$sql="SELECT p_seattype,cost from tbl_bookings WHERE


book_id='{$_POST['txt_bid']}'";

$class;

$r1=mysql_query($sql,$connection);

if($cla=mysql_fetch_array($r1))

$class=$cla;

$query="SELECT DISTINCT
flt_no,adult_no,child_no,infant_no,total_price from tbl_bill where
book_id='{$_POST['txt_bid']}'";

$result_set=mysql_query($query,$connection);

if(!$result_set){

die("could not execute query".mysql_error());

while($result=mysql_fetch_array($result_set)){

$query1="SELECT * FROM tbl_journey_details WHERE


flt_no='{$result['flt_no']}'";

$result_set1=mysql_query($query1,$connection);

if(!$result_set1){

die("could not execute 2 query in summery"


.mysql_error());

}
while($res2=mysql_fetch_array($result_set1))

{ ?>

<?php if(trim($class['p_seattype'])=="Economy"){?>

<tr>

<td align="center"><?php echo htmlentities($result['flt_no'])?></td>

<td align="center"><?php echo htmlentities($res2['eadult_fare'])." *


".htmlentities($result['adult_no'])?></td>

<td align="center"><?php echo htmlentities($res2['echild_fare'])." *


".htmlentities($result['child_no'])?></td>

<td align="center"><?php echo htmlentities($res2['einfant_fare'])." *


".htmlentities($result['infant_no'])?></td>

</tr>

<?php } else{?>

<tr>

<td height="25" align="center"><?php echo


htmlentities($result['flt_no'])?></td>

<td align="center"><?php echo htmlentities($res2['badult_fare'])." *


".htmlentities($result['adult_no'])?></td>

<td align="center"><?php echo htmlentities($res2['bchild_fare'])." *


".htmlentities($result['child_no'])?></td>

<td align="center"><?php echo htmlentities($res2['binfant_fare'])." *


".htmlentities($result['infant_no'])?></td>

</tr>

<?php

}
?><tr> <td height="23" colspan="4" align="center"> Total : <?php echo
$class['cost'] ?></td></tr>

</table>

</div>

<!-- script function call --><?php

}else{

redirect_to("index.php");

}?>

Index.php :
<?php

session_start();

if(isset($_SESSION['date_invalid']) && isset($_SESSION['redirect'])){

if($_SESSION['date_invalid']=='d'){

?>

<script>

alert("date cannot befor/equal to today")

</script>

<?php

session_destroy();

}else if($_SESSION['date_invalid']=='d1'){

?>

<script>

alert("date cannot exceed three months")

</script>

<?php
session_destroy();

?>

<?php require_once("../includes/connection.php") ?>

<?php require_once("../includes/functions.php") ?>

<!DOCTYPE html>

<html lang="en">

<head>

<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon"


/>

<title>Travel Terminal</title>

<meta charset="utf-8">

<link rel="stylesheet" href="css/reset.css" type="text/css" media="all">

<link rel="stylesheet" href="css/layout.css" type="text/css" media="all">

<link rel="stylesheet" href="css/style.css" type="text/css" media="all">

<script type="text/javascript" src="js/jquery-1.5.2.js" ></script>

<script type="text/javascript" src="js/cufon-yui.js"></script>

<script type="text/javascript" src="js/cufon-replace.js"></script>

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

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

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

<script type="text/javascript"
src="js/jquery.nivo.slider.pack.js"></script>

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

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


<!--[if lt IE 9]>

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

<style type="text/css">

.main, .tabs ul.nav a, .content, .button1, .box1, .top {


behavior:url(js/PIE.htc)}

</style>

<![endif]-->

<!--[if lt IE 7]>

<div style=' clear: both; text-align:center; position: relative;'>

<a href="http://www.microsoft.com/windows/internet-
explorer/default.aspx?ocid=ie6_countdown_bannercode"><img
src="http://www.theie6countdown.com/images/upgrade.jpg" border="0"
alt="" /></a>

</div>

<![endif]-->

<style type="text/css">

#apDiv1 {

position:absolute;

left:332px;

top:11px;

width:548px;

height:169px;

z-index:1;

</style>

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

<div id="apDiv1" align="center">


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
width="603" height="167" align="middle" id="FlashID">

<param name="movie" value="../users/images/index.swf">

<param name="quality" value="high">

<param name="wmode" value="transparent">

<param name="swfversion" value="6.0.65.0">

<!-- This param tag prompts users with Flash Player 6.0 r65 and
higher to download the latest version of Flash Player. Delete it if you
don’t want users to see the prompt. -->

<param name="expressinstall" value="../Scripts/expressInstall.swf">

<!-- Next object tag is for non-IE browsers. So hide it from IE using
IECC. -->

<!--[if !IE]>-->

<object data="../users/images/index.swf" type="application/x-


shockwave-flash" width="603" height="167" align="middle">

<!--<![endif]-->

<param name="quality" value="high">

<param name="wmode" value="transparent">

<param name="swfversion" value="6.0.65.0">

<param name="expressinstall" value="../Scripts/expressInstall.swf">

<!-- The browser displays the following alternative content for


users with Flash Player 6.0 and older. -->

<div>

<h4>Content on this page requires a newer version of Adobe Flash


Player.</h4>

<p><a href="http://www.adobe.com/go/getflashplayer"><img
src="http://www.adobe.com/images/shared/download_buttons/get_flash_player
.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>

</div>
<!--[if !IE]>-->

</object>

<!--<![endif]-->

</object>

</div>

</body>

<div class="main">

<!--header -->

<header>

<div class="wrapper">

<h1><a href="index.php" id="logo">Travel Terminal</a></h1>

<span id="slogan"></span>

<nav id="top_nav">

<ul>

<li id="menu_active"><a href="index.php"


class="nav1">Home</a></li>

<li><a href="sitemap.php"
class="nav2">Sitemap</a></li>

<li><a href="Contacts.php"
class="nav3">Contact</a></li>

</ul>

</nav>

</div>

<nav>

<ul id="menu">

<li><a
href="index.php"><span><span>About</span></span></a></li>
<li><a
href="Offers.php"><span><span>Offers</span></span></a></li>

<li><a
href="cancel.php"><span><span>Cancelation</span></span></a></li>

<li><a
href="Services.php"><span><span>Services</span></span></a></li>

<li><a
href="Safety.php"><span><span>Safety</span></span></a></li>

<li class="end"><a
href="Contacts.php"><span><span>Contacts</span></span></a></li>

</ul>

</nav>

</header>

<div class="ic"></div>

<!-- / header -->

<!--content -->

<section id="content">

<div class="for_banners">

<article class="col1">

<div class="tabs">

<ul class="nav">

<li class="end"><a href="#Flight">BOOK FLIGHT</a></li>

</ul>

<div class="content">

<div class="tab-content"
id="Flight">
<script type="text/javascript" src="../js/calendarDateInput.js">

/***********************************************

* Jason's Date Input Calendar- By Jason Moon


http://calendar.moonscript.com/dateinput.cfm

* Script featured on and available at http://www.dynamicdrive.com

* Keep this notice intact for use.

***********************************************/

</script>

<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />

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

<link href="../SpryAssets/SpryTabbedPanels.css" rel="stylesheet"


type="text/css" />

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

<div id="TabbedPanels1" class="TabbedPanels">

<ul class="TabbedPanelsTabGroup">

<li class="TabbedPanelsTab" tabindex="0"><font


color="#FFFFFF">Domestic Flights</font></li>

<li class="TabbedPanelsTab" tabindex="0"><font


color="#FFFFFF">International Flights</font></li>

</ul>

<div class="TabbedPanelsContentGroup">

<div class="TabbedPanelsContent">

<!------ contents of the first pannel(domestic flights)---->


<form action="dombook.php" method="post" name="frm_domestic"
onsubmit="javascript:return s()" >

<input type="hidden" name="flight_type" value="<?php echo


htmlentities("domestic")?>"/>

<font color="#FFFFFF">

<table width="338" height="179">

<tr>

<td width="95"> <label><font color="#FFFFFF">Leaving


From</font></label></td>

<td width="126"><select name="domdep" id="dom_dep" >

<?php

Bind_to_dropdown("tbl_flights","flt_dep","domestic");

?>

</select></td>

</tr>

<tr>

<td height="27"> <label><font color="#FFFFFF">Going to</font>


</label></td>

<td><select name="domdesti" id="dom_desti">

<?php

Bind_to_dropdown("tbl_flights","flt_desti","domestic");

?>

</select></td>
</tr>

<tr>

<td><label><font color="#FFFFFF">Departure
Date</font></label></td>

<td ><script>DateInput('Depdate', true, 'YYYY-MM-


DD')</script></td>

</tr>

<tr >

<td colspan="2">

<label><font
color="#FFFFFF">Adults</font></label>&nbsp;<select name="bkadults">

<script>

generatevalues(1,10);

</script>

</select>&nbsp;&nbsp;

<label><font
color="#FFFFFF">children</font></label>&nbsp;<select name="bkchildren">

<script>

generatevalues(0,10);

</script>

</select>&nbsp;&nbsp;

<label><font color="#FFFFFF">Infants</font></label><select
name="bkinfants">

<script>

generatevalues(0,10);

</script>

</select></td>
</tr>

<tr>

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

<input name="btn_DomesticSub" type="submit" value="Submit"


onClick="javascript:return s()"/>&nbsp;&nbsp;&nbsp;

<input type="reset" value="Reset" />

</td>

</tr></table>

</form> <li class="end">Advertisement <a


href="hotel.php">Hotel</a></li>

</div>

<!----End of domestic flights------------------------------>

<div class="TabbedPanelsContent">

<font color="#FFFFFF">

<form action="dombook.php" method="post"


name="frm_international" onsubmit="javascript:return ints()" >

<input type="hidden" name="flight_type" value="<?php echo


htmlentities("international")?>"/>

<table width="338" height="167">

<tr>

<td width="95"> <label><font color="#FFFFFF">Leaving


From</font></label></td>

<td width="126"><select name="domdep" id="int_dep" >

<?php

Bind_to_dropdown("tbl_flights","flt_dep","international");

?>
</select></td>

</tr>

<tr>

<td height="27"> <label><font color="#FFFFFF">Going to</font>


</label></td>

<td><select name="domdesti" id="int_desti">

<?php

Bind_to_dropdown("tbl_flights","flt_desti","international");

?>

</select></td>

</tr>

<tr>

<td><label><font color="#FFFFFF">Departure
Date</font></label></td>

<td ><script>DateInput('intDepdate', true, 'YYYY-MM-


DD')</script></td>

</tr>

<tr >

<td colspan="2">

<label><font
color="#FFFFFF">Adults</font></label>&nbsp;<select name="bkadults">

<script>

generatevalues(1,10);

</script>
</select>&nbsp;&nbsp;

<label><font
color="#FFFFFF">children</font></label>&nbsp;<select name="bkchildren">

<script>

generatevalues(0,10);

</script>

</select>&nbsp;&nbsp;

<label><font color="#FFFFFF">Infants</font></label><select
name="bkinfants">

<script>

generatevalues(0,10);

</script>

</select></td>

</tr>

<tr>

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

<input name="btn_DomesticSub" type="submit"


value="Submit"/>&nbsp;&nbsp;&nbsp;

<input type="reset" value="Reset" />

</td>

</tr>

</table>

</form>

</div>

</div>
</div>

<script type="text/javascript">

var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");

</script>

<!-- script function call -->

<script>

function s(){

var status=true;

var Departure = document.getElementById('dom_dep');

var dep=(Departure.options[Departure.selectedIndex].value);

var Destination = document.getElementById('dom_desti');

var desti=(Destination.options[Destination.selectedIndex].value);

if(dep==desti){

alert("Departure and destination cannot be the same");

status= false;

return status;

function ints(){

var status=true;

var Departure = document.getElementById('int_dep');

var dep=(Departure.options[Departure.selectedIndex].value);

var Destination = document.getElementById('int_desti');


var desti=(Destination.options[Destination.selectedIndex].value);

if(dep==desti){

alert("Departure and destination cannot be the same");

status= false;

return status;

</script>

</div>

</div>

</div>

</article>

<div id="slider">

<img src="images/banner1.jpg" alt="">

<img src="images/banner2.jpg" alt="">

<img src="images/banner3.jpg" alt="">

</div>

</div>

</section>

<!--content end-->

<!--footer -->

<footer>

<div class="wrapper">

<div class="section_w280" align="center">


<div class="sub_content" align="center">

<a href="http://redit.com" class="normaltip" title="Reddit"></a><img


src="images/Banner02.jpg" width="410" height="243" align="left"/> <h3
align="center">Office Address</h3><p align="center">

Country: INDIA<br />City: MANGALORE<br />

Tel : 030-300-3030<br />

Fax : 040-400-4040<br />

Email : <a href="mailto:">[email protected]</a><br/>

<p align="center"><a href="#"normaltip" title="Facebook"><img


src="images/icon1.jpg" alt="" width="40" height="45"
align="absmiddle"></a><a href="#" class="normaltip" title="Stumble
Upon"><img src="images/icon3.jpg" alt="" width="40" height="45"
align="absmiddle"></a><a href="#" class="normaltip" title="Twitter"><img
src="images/icon4.jpg" alt="" width="40" height="45"
align="absmiddle"></a><a href="#" class="normaltip" title="Reddit"><img
src="images/icon6.jpg" alt="" width="40" height="45"
align="absmiddle"></a><a href="#" class="normaltip" title="Linkedin"><img
src="images/icon5.jpg" alt="" width="40" height="45"
align="absmiddle"></a></p>

</div>

<div align="center"> <p>Copyright © 2048 <a href="#">Travel


Terminal</a> | </p>

</div>

<div align="RIGHT"></div>

</div>

</div>

</footer>

<!--footer end-->

</div>

<script type="text/javascript"> Cufon.now(); </script>

<script>
$(document).ready(function() {

tabs.init();

});

jQuery(document).ready(function($) {

$('#form_1, #form_2,
#form_3').jqTransform({imgPath:'jqtransformplugin/img/'});

});

$(window).load(function() {

$('#slider').nivoSlider({

effect:'fade', //Specify sets like: 'fold,fade,sliceDown,


sliceDownLeft, sliceUp, sliceUpLeft, sliceUpDown, sliceUpDownLeft'

slices:15,

animSpeed:500,

pauseTime:6000,

startSlide:0, //Set starting Slide (0 index)

directionNav:false, //Next & Prev

directionNavHide:false, //Only show on hover

controlNav:false, //1,2,3...

controlNavThumbs:false, //Use thumbnails for Control Nav

controlNavThumbsFromRel:false, //Use image rel for thumbs

controlNavThumbsSearch: '.jpg', //Replace this with...

controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image


src

keyboardNav:true, //Use left & right arrows

pauseOnHover:true, //Stop animation while hovering

manualAdvance:false, //Force manual transitions

captionOpacity:1, //Universal caption opacity


beforeChange: function(){},

afterChange: function(){},

slideshowEnd: function(){} //Triggers after all slides have


been shown

});

});

</script>

</body>

</html>

<?php mysql_close($connection);?>

You might also like