0% found this document useful (0 votes)
213 views86 pages

Airline Documentation Final

This document describes the development of a new airline booking system to address issues with existing systems. The new system will allow passengers to cancel bookings and view pricing information online. It will be developed using the software development life cycle (SDLC) methodology with PHP, MySQL, and JavaScript. The system aims to provide an improved online experience for travelers to search, book, and manage flights.

Uploaded by

Suman Rijal
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)
213 views86 pages

Airline Documentation Final

This document describes the development of a new airline booking system to address issues with existing systems. The new system will allow passengers to cancel bookings and view pricing information online. It will be developed using the software development life cycle (SDLC) methodology with PHP, MySQL, and JavaScript. The system aims to provide an improved online experience for travelers to search, book, and manage flights.

Uploaded by

Suman Rijal
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/ 86

Abstract

This initiative aims to construct an airline booking system based on the web. There are
few technical problems with the existing system of airline reservations, from the fact that
passengers are not permitted to cancel their ticket, to the fact that passengers cannot view
the pricing charts. This requires that a new system be developed to rectify this issue. If
the problems occur and the pricing chat does not occur in the older system, the new
system will enable the passenger to cancel his booking. This system enables air travelers
to search for flights between the two cities of travel: the 'City of departure' and the 'City
of destination' for a given date of departure and destination. The aim is to establish a
web-based system to ensure that online flight reservations can be made, that passengers
have access to online proposals and complaints, and that online news publishing is
available to customers by flight providers. The methodology used for this project is the
life cycle of software development (SDLC). It is built with PHP, MYSQL, and
JavaScript. This current technology will enhance the flexibility and reliability of
passenger airline relations. This work has been effective in designing an airline booking
system on the Internet which solves the passengers' unavailability to cancel their ticket
options and offers easy flight information access.

INTRODUCTION

One of the earliest changes to improve efficiency was the airline reservation system. The

airline reservations system eventually became the CRS and then the global distribution

system (GDS). As a means of tracing flight schedule, availability and costs, the airline

industry established the first GDS in the 1960s. Although accused of "dinosaurs," GDSs

were among the first e-commerce firms in the world to facilitate B-2-B electronic trade in

the mid-1970s, due to its usage of the legacy system technology.

Over the previous four years, the World Wide Web has grown quite important, and most

airlines currently arrange to book their trips online. The Internet has become an important

resource for consumers who wish to make online reservations without having to meet

travel agents.

The SDLC is a process that delivers high-quality software with the lowest costs in the

quickest period possible. SDLC has a precise plan for how a software system is

developed, modified, maintained or replaced. The Life Cycle of Software Development


includes various phases, including planning, design, construction, testing and

deployment.

SDLC works by reducing software development costs while at the same time increasing

quality and reducing production time. By implementing a plan to remove the typical

problems for development projects, SDLC meets these apparently different goals This

plan begins with an assessment of existing deficiency systems. It then sets out the revised

system requirements. Then the software can be designed, designed, constructed, tested

and used. By predicting expensive errors, such as the absence of proposals from the end

user. Big Bang is an example of SDLC. This strategy provides greater development

resources and works best for small projects.


Fig1: System Development Life Cycle

Objective

Details on flight schedules and fares, passenger reservations, as well as ticket documents

are provided via the Airline Reservation System. An inventory of airlines includes all

flights with seats. The airline services' inventory is usually separated into three class

categories as well as pricing and booking restrictions for each category. Inventory data is

imported and kept across standardized interfaces via a schedule distribution system. One

of the key roles of airline reservation inventory management is inventory management.

Controls the inventory by opening and shutting various booking classes, how many seats

for the different booking classes are available. The prices for each seat sold shall be

established together with the prices and booking conditions specified.

• All functions are carried out using a mouse click to construct an airline management
system
• Develop a system with appropriate data management, integrity and redundancy
minimization.

• Develop a user-friendly system in all feasible ways.

• Providing travelers with greater customer support.

It aims to develop the new and better alternative system to assist the organization in
producing operational reports where necessary, that is to say reporting operational details
which reflect airline operations on a daily basis, safeguard the system database's data and
information, and record flights and transactions in an accurate manner.

Purpose and Scope

Details on flight schedules and fares, passenger reservations, as well as ticket documents

are provided via the Airline Reservation System. The airline service inventory is usually

separated into three classes, e.g. first class, business class or economical class, with

unlimited bookings in each category along with rates and reservation criteria. Controls

the inventory by opening and shutting various booking classes, how many seats for the

different booking classes are available. The prices for each seat sold shall be established

together with the prices and booking conditions specified in the Fare Quote System.

PROBLEM DEFINITION

The globe has become a global village in the 21st century, with everything available with

one mouse click. The aviation industry is one of the fastest available modes of transport,

both domestically and internationally. It's a difficult task to maintain a large system. The

system currently operates inefficiently and time consuming.


We have a manual system and a fully automated system to define the problem.

Manual system: the system is more susceptible to errors and has various unstructured

problems.

Technical system: If we do not upgrade our system, the latest technology will result in

huge financial losses for our companies. The technical system (we have designed)

includes the current trend equipment such as computer printers, faxes etc. The systems

utilizing this technology are incredibly fast, accurate, easy to use and trustworthy.
SYSTEM ARCHITECTURE

The application will follow the architecture of three levels. The typical client/server

model, but from the web server, is used in the three-tier architecture application. The

customer merely shows the GUI and data but does not contribute to the results of this

process.

The following levels of the three-tier architecture are

Customer/Tier presentation:
This level contains all the HTML contents or forms on the client's browser. It is the form
that gives the end-user interface. The programmer utilizes the tier to either retrieve or
retrieve data.
Layer of business logic
The real processing of the data and the logic underlying the application implementation
will be present in the business logic level. This level can include a class that can write the
features and can also act as a mediator between the display level and the data level.
Tier of Data:
Data Tier includes methods and classes for data transmission and storage on the storage
layer. Queries or saved procedures are used for accessing or operating the database data
from the database. The data passed by the presentation level are stored.

Unified Language Modeling: UML stands for Unified Language Modeling. It is a method
of third generation for the definition, visualization and documentation of the object-
oriented system objects being developed. Object model is the method through which the
actual items in the program represent the logical objects in the real world (Problem space)
(logical or a mini world). This graphic depiction is a simple way of understanding of
objects, their relations and their structures. After analysis, this is one step in developing
any product.
There are a variety of models in the Unified Modeling Language.
1. Use diagrams for cases
2. Diagrams of class
3. Diagrams of sequence

Theoretical Background
The Technologies used in this work are listed below

PHP: PHP is a language for creating webpages that are dynamic, interactive and user
friendly. It can be incorporated in the HTML (hypertext mark-up language).

JAVASCRIPT: JavaScript is a script on a client-side that is used when downloaded to


control a web page on the client's side. It is used for interactive web pages. The
programming style is based on events, functional and imperative.
Need of Airlines system

A few factors that direct us to develop a new system are given below -:

1. 1) Faster System

2) Accuracy

3) Reliability

4) Informative

5) Reservations.

Fig2: Airlines System


OBJECTIVES

TOOLS & PLATFORM USED

We have a variety of language options. From these alternatives we can select the right

project development platform/tools and languages. Some are the following:

Programming Languages/Database:- In programming language we have

HTML,CSS,JAVASCRIPT,SQL SERVER etc.


SOFTWARE REQUIREMENTS:

Operating system : Windows 2000 or later

Front End : Web Browser, Xampp

Back End : SQL Server/PHP MY admin

4. ANALYSIS

DFD for Airline Reservation System

Fig 3: Airline System


First Level of Data Flow Diagram for
System Login

Verification
SYSTEM Log In ENTER
User Name VERIFIY Success
ADMINSTRATOR USERNAM USERNAME Airline
E Password
PASSWORD Reservatio
PASSWOR Verification n
D System

Verification
Fail

EXIT
FROM
SYSTEM
Fig 4 : First level of DATA flow Diagram

Second Level of Data Flow Diagram for


General Inquiry System

Fig5 : second level of Data flow Diagram


Third Level DATA FLOW DIAGRAM
OF BOOKING SECTION

Fig 6: Third level of Data flow diagram


E-R Diagram

Fig 7 : E-R Diagram for Airline Reservation System


ER-DIAGRAM FOR PASSENGER

Fig 8: ER-Diagram for passenger


5. SOFTWARE APPROACH

Unlike simple programs which can be built isolated, and no systematic strategy may be

followed, software engineering is systematically tied to the development software.

Because programming and software engineering are very different. It provides models

that are predictable in the manufacture of well-documented software. For a mature

process, the time and effort required to generate the end result should be determined in

advance. I have to follow some models as guidelines for the development of successful

software.

Waterfall model or Classic Life Cycle is the model we have utilized. The existing system
is initially observed in this model. The clients' requirements are then taken into account,
then planned, modelled, built and finally deployed.
Fig 9 . Waterfall Model

Gantt chart
The Gantt chart is a time-based visual representation of the task. They contain vital
information like as who is in charge of what, as well as the project's duration and overlap.
The system's Gantt chart is depicted in the diagram below:

Fig 10: Gantt Chart


SYSTEM DESIGN

Analysis captures a lot of unstructured data by means of interviews, questions, on-site

observations and procedural handbooks and so on. The system flowcharts, data flow

diagrams, structured English, decision tables and the like are necessary for organizing

and converting data that assist future development.

The data flow diagrams and different processing logic techniques illustrate how, when

and where data is being utilized or altered in the information system, but the definition,

structure and relationships within data are not displayed by those techniques.

It's not a physical implementation but a manner of concentrating on functions. This is like

the blueprint of the architect for system design. This is the same. In contrast to analysis,

the design is a "what is" orientation, a "how-to" answer.

The design of the system is incredibly imaginative. Also known as data modelling this

system design process. The most popular formatted E-R notation illustrates the properties

and data structure, regardless of the way data can be stored in computer memory.

External Interfaces

The different interfaces we would come across while developing the Airline
Reservation System are:
 User Interface
 Hardware Interface
 Software Interface

User Interface
Fig 11: User Interface

Software Interface

Any operating system can execute this application. It is run under Windows 7 OS in beta
version. The program requires a database to record flight details, user details and
reservation details etc. All coding in PHP is performed through CSS and HTML. For web
hosting on local port, Xampp Control Panel is utilized.

Different Module ON System

Registration Module
First, we invite passengers to provide their details in the registration module. Upon
registration with us the passenger may sign up for his/her own account and can examine
the specifics of the flight including timings, prices, seat availability. Passers can reserve
any number of tickets once registered with us.

Administration module
For the sake of administrators, the administrative module is offered to maintain the site
and to update the contents on a regular basis.

 Set up and maintain flight timetables, flight dates and timetables.


 See the list of passengers.
 See the seats on the flights available.
 Cancel tickets. Cancel your tickets.
 Fly schedule update and times and fare updates.
Module for Passengers

This module is designed for passengers who view this panel when a user logs into his or
her account. This module included the most important operations
 See all airline schedules, timetables, pricing details and available seats.
 Book for tickets. Book for tickets.
 Ticket view and cancelation.
 Feedback sending

Implementation
Coding
Index.php

Fig 12: Code of Index page


In above code of PHP show main page of user interface it consist of all the requirements
of user interface.
Book.php

Fig 13: Booking page


In above figure it show the booking page of user interface where user booked as per their
requirements.
Loginact.php

Fig 14: Login page


In above figure, login page is shown,where user and admin can login through their own
credentials.
Confirm.php

Fig 15: Confirm page


In the above figure user confirm their booking reservation with their proper information.
Profile.php

Fig 16: Profile page


In this above figure admin profile shown, where all the details of user are being showing.

Logout.php
Fig 17: Logout Session
In above figure, it is for destroy the session of user and admin through logout option in
top of the web page.
Screenshots of user flight booking page

Fig 18: User flight booking page


In the above figure it showing the flight booking page for user where user have to search
the flight as per their requirements if flight found user have to login as a passenger to
confirm their flights

Fig 19 : Passenger login


In above figure showing login page for user where user have to login using their user
name and password, first user have to register their information through registation page.
Fig 20: Flight booking for user
In above figure user flight booking system is showing where user have to fill all
the details for booking the flights.

Fig 21: Payment Method


In above figure it shown the payment method for user where user have to
fill their credit/debit card number and pay option for user.
Fig 22: Cancel option for user
In above figure user booked the ticket for particular flights, user can cancel the booking
ticket.

Database Screenshots

Fig 23: Table view of database


In above figure it show the table view of booking details of user, card details of user,
search flights, passenger details.
Fig 24: Database of Booking details
In above figure it show the database of booking details which is made by a
users/passengers.

Fig 25 : payment details


In above figure it show the payment details that made by user after booking the flights.
Fig 26: Search flights
In the above figure user search the flight details and confirm their reservation with all
details provided by users.

Fig 27: User details


In above figure user details is shown where user name, sex, password with md5
encryption, phone number, and address are showing.
Fig: Passengers details
In above figure it show the passenger details, which is provided by user.

Table Structure of booking details


Attribut Nul Defaul Commen
# Name Type Collation Extra
es l t ts
AUTO_INCREME
1 b_id int(11) No None
NT
b_nam varchar(50 latin1_swedish
2 No None
e ) _ci
latin1_swedish
3 b_fid varchar(5) No None
_ci
varchar(15 latin1_swedish
4 b_phno No None
) _ci
varchar(50 latin1_swedish
5 b_mail No None
) _ci
varchar(10 latin1_swedish
6 b_add No None
0) _ci
varchar(10 latin1_swedish
7 b_price No None
) _ci
latin1_swedish
8 b_child varchar(3) No None
_ci
b_adult latin1_swedish
9 varchar(3) No None
s _ci
latin1_swedish
10 b_total varchar(3) No None
_ci
b_statu varchar(10 latin1_swedish
11 No None
s ) _ci
varchar(20 latin1_swedish
12 b_pnr No None
) _ci
13 b_card varchar(16 latin1_swedish No None
Attribut Nul Defaul Commen
# Name Type Collation Extra
es l t ts
) _ci

Table Structure of cart details


Attribut Nul Defaul Commen
# Name Type Collation Extra
es l t ts
AUTO_INCREME
1 c_id int(11) No None
NT
varchar(5 latin1_swedish
2 c_name No None
0) _ci
3 c_cvv int(3) No None
varchar(1 latin1_swedish
4 c_cnum No None
6) _ci
c_balanc
5 int(8) No None
e
 Table structure of Flight Search

Attribut Nul Defau Comme


# Name Type Collation Extra
es l lt nts
AUTO_INCREM
1 id int(11) No None
ENT
varchar(1 latin1_swedis
2 fno No None
0) h_ci
varchar(2 latin1_swedis
3 from_city No None
0) h_ci
varchar(2 latin1_swedis
4 to_city No None
0) h_ci
departure_d varchar(2 latin1_swedis
5 No None
ate 0) h_ci
varchar(2 latin1_swedis
6 arrival_date No None
0) h_ci
departure_ti varchar(2 latin1_swedis
7 No None
me 0) h_ci
varchar(2 latin1_swedis
8 arrival_time No None
0) h_ci
9 e_seats_left int(3) No 20
10 b_seats_left int(3) No 10
11 e_price int(5) No None
12 b_price int(5) No None

 Table Structure of flights user

Attribut Nul Defau Commen


# Name Type Collation Extra
es l lt ts
AUTO_INCREM
1 f_id int(11) No None
ENT
varchar(20 latin1_swedish
2 f_fname No None
) _ci
varchar(20 latin1_swedish
3 f_lname No None
) _ci
varchar(10 latin1_swedish
4 f_sex No None
) _ci
varchar(32 latin1_swedish
5 f_uname No None
) _ci
f_passwo varchar(32 latin1_swedish
6 No None
rd ) _ci
7 f_mailid varchar(10 latin1_swedish No None
Attribut Nul Defau Commen
# Name Type Collation Extra
es l lt ts
0) _ci
f_mailco varchar(10 latin1_swedish
8 No None
de 0) _ci
9 f_active int(11) No None
10 f_regdate datetime No None
11 f_passrec int(11) No None
varchar(50 latin1_swedish
12 f_address No None
0) _ci
varchar(10 latin1_swedish
13 f_phone No None
) _ci

Table Structure of Passenger details


Attribut Nul Defaul Commen
# Name Type Collation Extra
es l t ts
AUTO_INCREME
1 p_id int(11) No None
NT
varchar(2 latin1_swedish
2 p_pnr No None
5) _ci
varchar(5 latin1_swedish
3 p_name No None
0) _ci
varchar(3 latin1_swedish
4 p_age No None
) _ci
varchar(1 latin1_swedish
5 p_sex No None
0) _ci
varchar(1 latin1_swedish
6 p_fno No None
0) _ci
varchar(1 latin1_swedish
7 p_from No None
0) _ci
varchar(1 latin1_swedish
8 p_to No None
0) _ci
p_dedat varchar(2 latin1_swedish
9 No None
e 0) _ci
p_ardat varchar(2 latin1_swedish
10 No None
e 0) _ci
p_detim varchar(2 latin1_swedish
11 No None
e 0) _ci
p_artim varchar(2 latin1_swedish
12 No None
e 0) _ci
Conclusion and Future Enhancements
The Airline Reservation System (ARS) has made it easier for customers to access tickets
and schedule flights from their home. It also speed up the collection and handling of
information about the consumers and the schedule of flights. The system should be
encouraged to reimburse local flights that are not on the system because of the
convenience and the advances in the mobile technology of the Airline Booking system.
Second, to encourage consumers and travel agencies to sponsor the system. The system
should be made available.

Preparation for travel or stay outside is an important component of getting accurate


information about what visa or licenses you need. We have given you with information
and consular offices abroad, as well as with firms offering visa and passport services to
aid you with this work. For people interested in visa applications, we offer documents
processing, application and filing services. A competent research team assures the
evaluation and processing of cases in accordance with the most recent updated
requirements.

All the fundamental features needed for airline bookings to be booked/canceled are
provided for the proposed system. The system will also be improved in the future. Some
of the factors envisioned in a future version 2.0 are as follows:
• Reservation and cancelation SMS confirmations
• The new class known as Standees is available, which enables short distance customers
to cover the entirety of the flight.
• Multi-stop flight reservation introduction
This system can be changed as an online system.
• The multi-user interface is added to this system.
The Aviaries will replace the airline booking system of open skies while planning for
further growth.

Recommendation
We advocate a parallel change for this piece of research, a parallel change in a
circumstance in which the old systems and new systems work simultaneously for a
specific time period. This tends to be the most common techniques since it poses the
lowest risk because the whole system can be returned to its previous position if
something goes wrong at any time.

Appendix 1
1. Index page

<?php
include $_SERVER["DOCUMENT_ROOT"].'/swift/core/init.php';
include $_SERVER["DOCUMENT_ROOT"].'/swift/includes/overall/header.php';
?>
<div class="row">
<div class="col-lg-4">
<div class="well bs-component">
<form class="form-horizontal" action="" method="GET">
<legend>Search Flights</legend>
<div class="form-group">
<div class="col-lg-10">
<div class="radio">
<label>
<input type="radio" name="path" value="oneway"
onclick="setReadOnly(this)">
One Way
</label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<label>
<input type="radio" name="path" value="return" checked
onclick="setReadOnly(this)">
Return
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-lg-12">
<label class="control-label" for="focusedInput">From</label>
<input class="form-control" name="from_city" id="from_city" value="<?php
if(isset($_GET['from_city'])) { echo htmlentities ($_GET['from_city']); } else echo '';?>"
required type="text">
</div>
</div>
<div class="form-group">
<div class="col-lg-12">
<label class="control-label" for="focusedInput">To</label>
<input class="form-control" name="to_city" id="to_city" value="<?php
if(isset($_GET['to_city'])) { echo htmlentities ($_GET['to_city']); } else echo '';?>"
required type="text">
</div>
</div>
<div class="form-group">
<div class="col-lg-12">
<label class="control-label" for="focusedInput">Departure Date</label>
<input class="form-control" name="departure_date" id="departure_date"
value="<?php if(isset($_GET['departure_date'])) { echo htmlentities
($_GET['departure_date']); } else echo '';?>" required type="text">
</div>
</div>
<div class="form-group">
<div class="col-lg-12">
<label class="control-label" for="focusedInput">Arrival Date</label>
<input class="form-control" name="return_date" id="return_date" value="<?
php if(isset($_GET['return_date'])) { echo htmlentities ($_GET['return_date']); } else
echo '';?>" required type="text">
</div>
</div>
<div class="form-group">
<div class="col-lg-12">
<label for="select" class="control-label">Number of Adults</label>
<select class="form-control" name="count_a" id="select">
<option value="1">1</option>
</select>
</div>
</div>
<div class="form-group">
<div class="col-lg-12">
<label for="select" class="control-label">Number of Children</label>
<select class="form-control" name="count_c" id="select">
<option value="0">0</option>
<option value="1">1</option>
</select>
</div>
</div>
<div class="form-group">
<div class="col-lg-12">
<label for="select" class="control-label">Class</label>
<select class="form-control" name="class" id="select">
<option name="economy" value="Economy">Economy</option>
<option name="business" value="Business">Business</option>
</select>
<br>
</div>
</div>
<div class="form-group">
<center><button type="submit" id="submit" value="submit" name="submit"
class="btn btn-primary">Submit</button></center>
</div>
</form>
</div>
</div>

<div class="col-lg-8">
<div class="well bs-component">
<form class="form-horizontal" action="book.php" method="GET">
<?php

if(isset($_GET['path'])===true
&& isset($_GET['from_city'])===true && isset($_GET['to_city'])===true
&& isset($_GET['departure_date'])===true
&& isset($_GET['count_a'])===true && isset($_GET['count_c'])===true &&
isset($_GET['class'])===true) {

$from = $_GET['from_city'];
$to = $_GET['to_city'];
$departdate = $_GET['departure_date'];
$class = $_GET['class'];
$path = $_GET['path'];
$counta = $_GET['count_a'];
$countc = $_GET['count_c'];

if($path==='oneway') {
echo '<legend>Flights from '.$from.' to '.$to.'</legend>';
$query = "SELECT * FROM `flight_search` WHERE `from_city`= '$from'
AND `to_city` = '$to' AND `departure_date` = '$departdate'";
$result = mysql_query($query);
if($result) {
if(mysql_num_rows($result) > 0) {
while($row = mysql_fetch_assoc($result)) {
?>
<table class="table">
<thead>
<tr>
<th>Flight No</th>
<th>Departure Time</th>
<th>Arrival Time</th>
<th>Seats Left</th>
<th>Price</th>
</tr>
</thead>
<tbody>
<tr>
<?php if($class==='Economy') { ?>
<td><input type="radio" name="chose_to" value="<?php echo $row['fno']; ?
>"/><?php echo $row['fno']; ?></td>
<td><?php echo $row['departure_time']; ?></td>
<td><?php echo $row['arrival_time']; ?></td>
<td><?php echo $row['e_seats_left']; ?></td>
<td><?php echo $row['e_price']; ?></td>
<?php } else if($class==='Business') { ?>
<td><input type="radio" name="chose_to" value="<?php echo $row['fno']; ?
>"/><?php echo $row['fno']; ?></td>
<td><?php echo $row['departure_time']; ?></td>
<td><?php echo $row['arrival_time']; ?></td>
<td><?php echo $row['b_seats_left']; ?></td>
<td><?php echo $row['b_price']; ?></td>
<?php } else { 'Not enough seats left, please search again!'; }
}?>
</tr>
</tbody>
</table>
<input type="hidden" name="count_a" value="<?php echo $counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo $countc; ?>"/>
<center><button type="submit" id="class" name="class" value="<?php echo
$class; ?>" class="btn btn-primary">Choose Flights</button></center>
<?php
} else { echo 'No flights found';}
}
else { die(mysql_error()); }
}
else if($path==='return') {
echo '<legend>Flights from '.$from.' to '.$to.'</legend>';
$query1 = "SELECT * FROM `flight_search` WHERE `from_city`= '$from'
AND `to_city` = '$to' AND `departure_date` = '$departdate'";
$result1 = mysql_query($query1);
if($result1) {
if(mysql_num_rows($result1) > 0) {
while($row1 = mysql_fetch_assoc($result1)) {
?>
<table class="table">
<thead>
<tr>
<th>Flight No</th>
<th>Departure Time</th>
<th>Arrival Time</th>
<th>Seats Left</th>
<th>Price</th>
</tr>
</thead>
<tbody>
<tr>
<?php if($class==='Economy') { ?>

<td><input type="radio" required name="chose_to" value="<?php echo


$row1['fno']; ?>"/><?php echo $row1['fno']; ?></td>
<td><?php echo $row1['departure_time']; ?></td>
<td><?php echo $row1['arrival_time']; ?></td>
<td><?php echo $row1['e_seats_left']; ?></td>
<td><?php echo $row1['e_price']; ?></td>
</tr>
</tbody>
</table> <?php } else { ?>
<td><input type="radio" required name="chose_fro" value="<?php echo
$row2['fno']; ?>"/><?php echo $row2['fno']; ?></td>
<td><?php echo $row2['departure_time']; ?></td>
<td><?php echo $row2['arrival_time']; ?></td>
<td><?php echo $row2['b_seats_left']; ?></td>
<td><?php echo $row2['b_price']; ?></td>
<?php }
}
} else { echo 'No flights found';}
}
else { die(mysql_error()); }
echo '<legend>Flights from '.$to.' to '.$from.'</legend>';
if(isset($_GET['return_date'])===true) {
$returndate = $_GET['return_date'];
$query2 = "SELECT * FROM `flight_search` WHERE `from_city`= '$to' AND
`to_city` = '$from' AND `departure_date` = '$returndate'";
$result2 = mysql_query($query2);
if($result2) {
if(mysql_num_rows($result2) > 0) {
while($row2 = mysql_fetch_assoc($result2)) {
?>
<table class="table">
<thead>
<tr>
<th>Flight No</th>
<th>Departure Time</th>
<th>Arrival Time</th>
<th>Seats Left</th>
<th>Price</th>
</tr>
</thead>
<tbody>
<tr>
<?php if($class==='Economy') { ?>
<td><input type="radio" required name="chose_fro" value="<?php echo
$row2['fno']; ?>"/><?php echo $row2['fno']; ?></td>
<td><?php echo $row2['departure_time']; ?></td>
<td><?php echo $row2['arrival_time']; ?></td>
<td><?php echo $row2['e_seats_left']; ?></td>
<td><?php echo $row2['e_price']; ?></td>
</tr>
</tbody>
</table> <?php } else { ?>
<td><input type="radio" required name="chose_fro" value="<?php echo
$row2['fno']; ?>"/><?php echo $row2['fno']; ?></td>
<td><?php echo $row2['departure_time']; ?></td>
<td><?php echo $row2['arrival_time']; ?></td>
<td><?php echo $row2['b_seats_left']; ?></td>
<td><?php echo $row2['b_price']; ?></td>
<?php }
}?>
<input type="hidden" name="count_a" value="<?php echo $counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo $countc; ?>"/>
<center><button type="submit" id="class" value="<?php echo $class; ?>"
name="class" class="btn btn-primary">Choose Flights</button></center>
<?php
} else { echo 'No flights found';}
}
else { die(mysql_error()); }
}
}
}
else { ?>
<img src="vendor/img/airhostess.jpg" width="100%">
<h3>Services offered by Online Ticket Booking System</h3>
<h5>Free 3 course meals for every passenger</h5>
<h5>Free Wi-Fi services offered during your flight</h5>
<h5>Upto 25 Kg Baggage limit for every passenger</h5>
<h5>Unlimited Food and Alcohol in Business Class</h5>

<h5>Discounted travel coupons for every city</h5>

<h5>Avail wheelchairs and emergency services for disabled at free of cost</h5>


</form>
</div>
</div>
</div>
<?php } ?>

<?php include
$_SERVER["DOCUMENT_ROOT"].'/swift/includes/overall/footer.php'; ?>

2. Login Page

<?php
$title = 'Swift Airlines | Login';
include $_SERVER["DOCUMENT_ROOT"].'/swift/core/init.php';
f_logged_in_redirect();
include $_SERVER["DOCUMENT_ROOT"].'/swift/includes/overall/header.php';
?>

<form class="form-horizontal" action="loginact.php" method="POST">


<div class="row">
<div class="col-lg-4">
<div class="well bs-component">
<legend>Passenger Log In</legend>
<div class="form-group">
<label for="inputEmail" class="col-lg-2 control-label">Username</label>
<div class="col-lg-12">
<input type="text" name="f_uname" class="form-control" required
placeholder="Username">
</div>
</div>
<div class="form-group">
<label for="inputPassword" class="col-lg-2
control-label">Password</label>
<div class="col-lg-12">
<input type="password" name="f_password" class="form-control" required
placeholder="Password">
</div>
</div>
<div class="form-group">
<center><button type="submit" id="submit" value="submit" name="submit"
class="btn btn-success">Login</button></center>
</div>
</form>
<strong><a href="http://localhost/swift/fregister.php"
style="color:white">Register Here</a></strong><br/><br/>
<strong><a href="http://localhost/swift/recover.php?mode=f_uname"
style="color:white">Forgot Username?</a></strong><br/>
<strong><a href="http://localhost/swift/recover.php?mode=f_password"
style="color:white">Forgot Password?</a></strong><br/>
</form>
</div>
</div></div>

<?php include
$_SERVER["DOCUMENT_ROOT"].'/swift/includes/overall/footer.php'; ?>

3. Booking page

<?php
include $_SERVER["DOCUMENT_ROOT"].'/swift/core/init.php';
include $_SERVER["DOCUMENT_ROOT"].'/swift/includes/overall/header.php';
?>

<legend>My Bookings</legend>

<?php
$uid=$f_data['f_id']; //Assigns logged in id to a variable
$query="SELECT * FROM `passenger_details` WHERE `p_fid` = '$uid'"; //Sorts
by date time
$result=mysql_query($query);
if($result) {
while($row=mysql_fetch_assoc($result))
{
if($uid===$row['p_fid']) //Checks if the logged in id matches with id in DB
{
$pnr = $row['p_pnr'];
$fno = $row['p_fno'];
echo '<form action="cancel.php" method="POST">';
echo 'Flight No: '.
$row['p_fno'].'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
echo 'From: '.$row['p_from'].'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
echo 'To: '.$row['p_to'].'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
echo 'Class: '.$row['p_class'].'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
echo 'PNR Number: '.
$row['p_pnr'].'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.'<br/>';
echo 'Departure Date: '.
$row['p_dedate'].'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
echo 'Departure Time: '.
$row['p_detime'].'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
echo 'Arrival Date: '.
$row['p_ardate'].'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
echo 'Arrival Time: '.
$row['p_artime'].'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.'<br/>';
echo 'Passenger Name: '.
$row['p_name'].'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.'<br>';
echo 'Passenger Age: '.
$row['p_age'].'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.'<br>';
echo 'Passenger Sex: '.
$row['p_sex'].'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.'<br>';
echo 'Passenger Type: '.
$row['p_passtype'].'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.'<br><br>';
echo "<input type='hidden' value='$pnr' id='p_pnr' name='p_pnr' />";
echo "<input type='hidden' value='$fno' id='p_fno' name='p_fno' />";
if($row['p_status']==='Booked') {
echo '<button type="submit" value="cancel" name="cancel" class="btn btn-
primary">Cancel Bookings</button>';
echo '<br/><hr>';
echo '</form>';
} else {
echo '<br/><hr>';
echo '</form>';
}
}
}
}
?>

<?php include
$_SERVER["DOCUMENT_ROOT"].'/swift/includes/overall/footer.php'; ?>

4. Cart Page

<?php
include $_SERVER["DOCUMENT_ROOT"].'/swift/core/init.php';
include $_SERVER["DOCUMENT_ROOT"].'/swift/includes/overall/header.php';
?>

<div class="row">
<div class="col-lg-4">

</div>
<div class="col-lg-4">
<div class="well bs-component">
<?php
if(f_logged_in()===true) {
$puname = $_GET['puname'];
$puadd = $_GET['puadd'];
$puphno = $_GET['puphno'];
$pumail = $_GET['pumail'];
if(isset($_GET['chose_to'])===true) {
$to = $_GET['chose_to'];
$class = $_GET['class'];
$counta = $_GET['count_a'];
$countc = $_GET['count_c'];
if(isset($_GET['chose_fro'])===true)
{
$fro = $_GET['chose_fro'];
if($class==='Economy') {
$eat1 =
$_GET['eat1'];
$eat2 =
$_GET['eat2'];
$ect1 =
$_GET['ect1'];
$ect2 =
$_GET['ect2'];
$etax1 = $etax2 =
500;
$etot1 = $eat1 + $ect1
+ $etax1;
$etot2 = $eat2 + $ect2
+ $etax2;
$etotr = $etot1 +
$etot2;
if($countc==='0') {

if($counta==='1') {

$aname1 = $_GET['aname1'];
$aage1
= $_GET['aage1'];
$asex1
= $_GET['asex1'];
}
else
if($counta==='2') {

$aname1 = $_GET['aname1'];
$aage1
= $_GET['aage1'];
$asex1
= $_GET['asex1'];

$aname2 = $_GET['aname2'];
$aage2
= $_GET['aage2'];
$asex2
= $_GET['asex2'];
}
}
else if($countc==='1')
{
$cname1 =
$_GET['cname1'];
$csex1 =
$_GET['csex1'];
$cage1 =
$_GET['cage1'];

if($counta==='1') {

$aname1 = $_GET['aname1'];
$aage1
= $_GET['aage1'];
$asex1
= $_GET['asex1'];
}
else
if($counta==='2') {

$aname1 = $_GET['aname1'];
$aage1
= $_GET['aage1'];
$asex1
= $_GET['asex1'];

$aname2 = $_GET['aname2'];
$aage2
= $_GET['aage2'];
$asex2
= $_GET['asex2'];
}
}
else if($countc==='2')
{
$cname1 =
$_GET['cname1'];
$csex1 =
$_GET['csex1'];
$cage1 =
$_GET['cage1'];
$cname2 =
$_GET['cname2'];
$csex2 =
$_GET['csex2'];
$cage2 =
$_GET['cage2'];

if($counta==='1') {

$aname1 = $_GET['aname1'];
$aage1
= $_GET['aage1'];
$asex1
= $_GET['asex1'];
}
else
if($counta==='2') {

$aname1 = $_GET['aname1'];
$aage1
= $_GET['aage1'];
$asex1
= $_GET['asex1'];

$aname2 = $_GET['aname2'];
$aage2
= $_GET['aage2'];
$asex2
= $_GET['asex2'];
}
}
}
else if($class==='Business') {
$bat1 =
$_GET['bat1'];
$bat2 =
$_GET['bat2'];
$bct1 =
$_GET['bct1'];
$bct2 =
$_GET['bct2'];
$btax1 = $btax2 =
1500;
$btot1 = $bat1 +
$bct1 + $btax1;
$btot2 = $bat2 +
$bct2 + $btax2;
$btotr = $btot1 +
$btot2;
if($countc==='0') {

if($counta==='1') {

$aname1 = $_GET['aname1'];
$aage1
= $_GET['aage1'];
$asex1
= $_GET['asex1'];
}
else
if($counta==='2') {

$aname1 = $_GET['aname1'];
$aage1
= $_GET['aage1'];
$asex1
= $_GET['asex1'];

$aname2 = $_GET['aname2'];
$aage2
= $_GET['aage2'];
$asex2
= $_GET['asex2'];
}
}
else if($countc==='1')
{
$cname1 =
$_GET['cname1'];
$csex1 =
$_GET['csex1'];
$cage1 =
$_GET['cage1'];

if($counta==='1') {

$aname1 = $_GET['aname1'];
$aage1
= $_GET['aage1'];
$asex1
= $_GET['asex1'];
}
else
if($counta==='2') {

$aname1 = $_GET['aname1'];
$aage1
= $_GET['aage1'];
$asex1
= $_GET['asex1'];

$aname2 = $_GET['aname2'];
$aage2
= $_GET['aage2'];
$asex2
= $_GET['asex2'];
}
}
else if($countc==='2')
{
$cname1 =
$_GET['cname1'];
$csex1 =
$_GET['csex1'];
$cage1 =
$_GET['cage1'];
$cname2 =
$_GET['cname2'];
$csex2 =
$_GET['csex2'];
$cage2 =
$_GET['cage2'];

if($counta==='1') {

$aname1 = $_GET['aname1'];
$aage1
= $_GET['aage1'];
$asex1
= $_GET['asex1'];
}
else
if($counta==='2') {

$aname1 = $_GET['aname1'];
$aage1
= $_GET['aage1'];
$asex1
= $_GET['asex1'];

$aname2 = $_GET['aname2'];
$aage2
= $_GET['aage2'];
$asex2
= $_GET['asex2'];
}
}
}
}
else {
if($class==='Economy') {
$eat1 =
$_GET['eat1'];
$ect1 =
$_GET['ect1'];
$etax1 = 500;
$etot1 = $eat1 + $ect1
+ $etax1;
if($countc==='0') {

if($counta==='1') {

$aname1 = $_GET['aname1'];
$aage1
= $_GET['aage1'];
$asex1
= $_GET['asex1'];
}
else
if($counta==='2') {

$aname1 = $_GET['aname1'];
$aage1
= $_GET['aage1'];
$asex1
= $_GET['asex1'];

$aname2 = $_GET['aname2'];
$aage2
= $_GET['aage2'];
$asex2
= $_GET['asex2'];
}
}
else if($countc==='1')
{
$cname1 =
$_GET['cname1'];
$csex1 =
$_GET['csex1'];
$cage1 =
$_GET['cage1'];

if($counta==='1') {
$aname1 = $_GET['aname1'];
$aage1
= $_GET['aage1'];
$asex1
= $_GET['asex1'];
}
else
if($counta==='2') {

$aname1 = $_GET['aname1'];
$aage1
= $_GET['aage1'];
$asex1
= $_GET['asex1'];

$aname2 = $_GET['aname2'];
$aage2
= $_GET['aage2'];
$asex2
= $_GET['asex2'];
}
}
else if($countc==='2')
{
$cname1 =
$_GET['cname1'];
$csex1 =
$_GET['csex1'];
$cage1 =
$_GET['cage1'];
$cname2 =
$_GET['cname2'];
$csex2 =
$_GET['csex2'];
$cage2 =
$_GET['cage2'];

if($counta==='1') {

$aname1 = $_GET['aname1'];
$aage1
= $_GET['aage1'];
$asex1
= $_GET['asex1'];
}
else
if($counta==='2') {

$aname1 = $_GET['aname1'];
$aage1
= $_GET['aage1'];
$asex1
= $_GET['asex1'];

$aname2 = $_GET['aname2'];
$aage2
= $_GET['aage2'];
$asex2
= $_GET['asex2'];
}
}
}
else if($class==='Business') {
$bat1 =
$_GET['bat1'];
$bct1 =
$_GET['bct1'];
$btax1 = 1500;
$btot1 = $bat1 +
$bct1 + $btax1;
if($countc==='0') {

if($counta==='1') {

$aname1 = $_GET['aname1'];
$aage1
= $_GET['aage1'];
$asex1
= $_GET['asex1'];
}
else
if($counta==='2') {

$aname1 = $_GET['aname1'];
$aage1
= $_GET['aage1'];
$asex1
= $_GET['asex1'];

$aname2 = $_GET['aname2'];
$aage2
= $_GET['aage2'];
$asex2
= $_GET['asex2'];
}
}
else if($countc==='1')
{
$cname1 =
$_GET['cname1'];
$csex1 =
$_GET['csex1'];
$cage1 =
$_GET['cage1'];

if($counta==='1') {

$aname1 = $_GET['aname1'];
$aage1
= $_GET['aage1'];
$asex1
= $_GET['asex1'];
}
else
if($counta==='2') {

$aname1 = $_GET['aname1'];
$aage1
= $_GET['aage1'];
$asex1
= $_GET['asex1'];

$aname2 = $_GET['aname2'];
$aage2
= $_GET['aage2'];
$asex2
= $_GET['asex2'];
}
}
else if($countc==='2')
{
$cname1 =
$_GET['cname1'];
$csex1 =
$_GET['csex1'];
$cage1 =
$_GET['cage1'];
$cname2 =
$_GET['cname2'];
$csex2 =
$_GET['csex2'];
$cage2 =
$_GET['cage2'];

if($counta==='1') {

$aname1 = $_GET['aname1'];
$aage1
= $_GET['aage1'];
$asex1
= $_GET['asex1'];
}
else
if($counta==='2') {

$aname1 = $_GET['aname1'];
$aage1
= $_GET['aage1'];
$asex1
= $_GET['asex1'];

$aname2 = $_GET['aname2'];
$aage2
= $_GET['aage2'];
$asex2
= $_GET['asex2'];
}
}
}
}
}
}
?>
<legend>Credit/Debit Card Details</legend>
<form class="form-horizontal" action="confirm.php"
method="POST">
<div class="form-group">
<div class="col-lg-12">
<input type="text" required class="form-control" maxlength="32"
name="carduser" id="carduser" placeholder="Card Holder Name">
</div>
</div>
<div class="form-group">
<div class="col-lg-8">
<input type="text" required maxlength="16" class="form-control"
name="cardnum" id="cardnum" placeholder="Card Number">
</div>
<div class="col-lg-4">
<input type="password" required maxlength="3" class="form-
control" name="cvvnum" id="cvvnum" placeholder="CVV">
</div>
</div>
<center>
<?php
if(isset($_GET['chose_to'])===true) {
if(isset($_GET['chose_fro'])===true) {
if($class==='Economy' && $counta==='1'
&& $countc==='0') {
?>
<input type="hidden" name="count_a" value="<?php echo
$counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo
$countc; ?>"/>
<input type="hidden" name="chose_to" value="<?php
echo $to; ?>"/>
<input type="hidden" name="chose_fro" value="<?php
echo $fro; ?>"/>
<input type="hidden" name="class" value="<?php echo
$class; ?>"/>
<input type="hidden" name="ect1" value="<?php echo
$ect1; ?>"/>
<input type="hidden" name="ect2" value="<?php echo
$ect2; ?>"/>
<input type="hidden" name="eat1" value="<?php echo
$eat1; ?>"/>
<input type="hidden" name="eat2" value="<?php echo
$eat2; ?>"/>
<input type="hidden" name="etotr" value="<?php echo
$etotr; ?>"/>
<input type="hidden" name="aname1" value="<?php echo
$aname1; ?>"/>
<input type="hidden" name="aage1" value="<?php echo
$aage1; ?>"/>
<input type="hidden" name="asex1" value="<?php echo
$asex1; ?>"/>
<?php }
else if($class==='Business' && $counta==='1' && $countc==='0')
{ ?>
<input type="hidden" name="count_a" value="<?php echo
$counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo
$countc; ?>"/>
<input type="hidden" name="chose_to" value="<?php
echo $to; ?>"/>
<input type="hidden" name="chose_fro" value="<?php
echo $fro; ?>"/>
<input type="hidden" name="class" value="<?php echo
$class; ?>"/>
<input type="hidden" name="bct1" value="<?php echo
$bct1; ?>"/>
<input type="hidden" name="bct2" value="<?php echo
$bct2; ?>"/>
<input type="hidden" name="bat1" value="<?php echo
$bat1; ?>"/>
<input type="hidden" name="bat2" value="<?php echo
$bat2; ?>"/>
<input type="hidden" name="btotr" value="<?php echo
$btotr; ?>"/>
<input type="hidden" name="aname1" value="<?php echo
$aname1; ?>"/>
<input type="hidden" name="aage1" value="<?php echo
$aage1; ?>"/>
<input type="hidden" name="asex1" value="<?php echo
$asex1; ?>"/>
<?php }
else if($class==='Economy' && $counta==='2' && $countc==='0')
{ ?>
<input type="hidden" name="count_a" value="<?php echo
$counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo
$countc; ?>"/>
<input type="hidden" name="chose_to" value="<?php
echo $to; ?>"/>
<input type="hidden" name="chose_fro" value="<?php
echo $fro; ?>"/>
<input type="hidden" name="class" value="<?php echo
$class; ?>"/>
<input type="hidden" name="ect1" value="<?php echo
$ect1; ?>"/>
<input type="hidden" name="ect2" value="<?php echo
$ect2; ?>"/>
<input type="hidden" name="eat1" value="<?php echo
$eat1; ?>"/>
<input type="hidden" name="eat2" value="<?php echo
$eat2; ?>"/>
<input type="hidden" name="etotr" value="<?php echo
$etotr; ?>"/>
<input type="hidden" name="aname1" value="<?php echo
$aname1; ?>"/>
<input type="hidden" name="aage1"
value="<?php echo $aage1; ?>"/>
<input type="hidden" name="asex1"
value="<?php echo $asex1; ?>"/>
<input type="hidden" name="aname2"
value="<?php echo $aname2; ?>"/>
<input type="hidden" name="aage2"
value="<?php echo $aage2; ?>"/>
<input type="hidden" name="asex2"
value="<?php echo $asex2; ?>"/>
<?php }
else if($class==='Business' && $counta==='2' && $countc==='0')
{ ?>
<input type="hidden" name="count_a" value="<?php echo
$counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo
$countc; ?>"/>
<input type="hidden" name="chose_to" value="<?php
echo $to; ?>"/>
<input type="hidden" name="chose_fro" value="<?php
echo $fro; ?>"/>
<input type="hidden" name="class" value="<?php echo
$class; ?>"/>
<input type="hidden" name="bct1" value="<?php echo
$bct1; ?>"/>
<input type="hidden" name="bct2" value="<?php echo
$bct2; ?>"/>
<input type="hidden" name="bat1" value="<?php echo
$bat1; ?>"/>
<input type="hidden" name="bat2" value="<?php echo
$bat2; ?>"/>
<input type="hidden" name="btotr" value="<?php echo
$btotr; ?>"/>
<input type="hidden" name="aname1" value="<?php echo
$aname1; ?>"/>
<input type="hidden" name="aage1"
value="<?php echo $aage1; ?>"/>
<input type="hidden" name="asex1"
value="<?php echo $asex1; ?>"/>
<input type="hidden" name="aname2"
value="<?php echo $aname2; ?>"/>
<input type="hidden" name="aage2"
value="<?php echo $aage2; ?>"/>
<input type="hidden" name="asex2"
value="<?php echo $asex2; ?>"/>
<?php }
else if($class==='Economy' && $counta==='1' &&
$countc==='1') { ?>
<input type="hidden" name="count_a" value="<?php echo
$counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo
$countc; ?>"/>
<input type="hidden" name="chose_to" value="<?php
echo $to; ?>"/>
<input type="hidden" name="chose_fro" value="<?php
echo $fro; ?>"/>
<input type="hidden" name="class" value="<?php echo
$class; ?>"/>
<input type="hidden" name="ect1" value="<?php echo
$ect1; ?>"/>
<input type="hidden" name="ect2" value="<?php echo
$ect2; ?>"/>
<input type="hidden" name="eat1" value="<?php echo
$eat1; ?>"/>
<input type="hidden" name="eat2" value="<?php echo
$eat2; ?>"/>
<input type="hidden" name="etotr" value="<?php echo
$etotr; ?>"/>
<input type="hidden" name="aname1" value="<?php echo
$aname1; ?>"/>
<input type="hidden" name="aage1" value="<?php echo
$aage1; ?>"/>
<input type="hidden" name="asex1" value="<?php echo
$asex1; ?>"/>
<input type="hidden" name="cname1" value="<?php echo
$cname1; ?>"/>
<input type="hidden" name="cage1" value="<?php echo
$cage1; ?>"/>
<input type="hidden" name="csex1" value="<?php echo
$csex1; ?>"/>
<?php }
else if($class==='Business' && $counta==='1' &&
$countc==='1') { ?>
<input type="hidden" name="count_a" value="<?php echo
$counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo
$countc; ?>"/>
<input type="hidden" name="chose_to" value="<?php
echo $to; ?>"/>
<input type="hidden" name="chose_fro" value="<?php
echo $fro; ?>"/>
<input type="hidden" name="class" value="<?php echo
$class; ?>"/>
<input type="hidden" name="bct1" value="<?php echo
$bct1; ?>"/>
<input type="hidden" name="bct2" value="<?php echo
$bct2; ?>"/>
<input type="hidden" name="bat1" value="<?php echo
$bat1; ?>"/>
<input type="hidden" name="bat2" value="<?php echo
$bat2; ?>"/>
<input type="hidden" name="btotr" value="<?php echo
$btotr; ?>"/>
<input type="hidden" name="aname1" value="<?php echo
$aname1; ?>"/>
<input type="hidden" name="aage1" value="<?php echo
$aage1; ?>"/>
<input type="hidden" name="asex1" value="<?php echo
$asex1; ?>"/>
<input type="hidden" name="cname1" value="<?php echo
$cname1; ?>"/>
<input type="hidden" name="cage1" value="<?php echo
$cage1; ?>"/>
<input type="hidden" name="csex1" value="<?php echo
$csex1; ?>"/>
<?php }
else if($class==='Economy' && $counta==='1' &&
$countc==='2') { ?>
<input type="hidden" name="count_a" value="<?php echo
$counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo
$countc; ?>"/>
<input type="hidden" name="chose_to" value="<?php
echo $to; ?>"/>
<input type="hidden" name="chose_fro" value="<?php
echo $fro; ?>"/>
<input type="hidden" name="class" value="<?php echo
$class; ?>"/>
<input type="hidden" name="ect1" value="<?php echo
$ect1; ?>"/>
<input type="hidden" name="ect2" value="<?php echo
$ect2; ?>"/>
<input type="hidden" name="eat1" value="<?php echo
$eat1; ?>"/>
<input type="hidden" name="eat2" value="<?php echo
$eat2; ?>"/>
<input type="hidden" name="etotr" value="<?php echo
$etotr; ?>"/>
<input type="hidden" name="aname1" value="<?php echo
$aname1; ?>"/>
<input type="hidden" name="aage1" value="<?php echo
$aage1; ?>"/>
<input type="hidden" name="asex1" value="<?php echo
$asex1; ?>"/>
<input type="hidden" name="cname1" value="<?php echo
$cname1; ?>"/>
<input type="hidden" name="cage1" value="<?php echo
$cage1; ?>"/>
<input type="hidden" name="csex1" value="<?php echo
$csex1; ?>"/>
<input type="hidden" name="cname2" value="<?php echo
$cname2; ?>"/>
<input type="hidden" name="cage2" value="<?php echo
$cage2; ?>"/>
<input type="hidden" name="csex2" value="<?php echo
$csex2; ?>"/>
<?php }
else if($class==='Business' && $counta==='1' &&
$countc==='2') { ?>
<input type="hidden" name="count_a" value="<?php echo
$counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo
$countc; ?>"/>
<input type="hidden" name="chose_to" value="<?php
echo $to; ?>"/>
<input type="hidden" name="chose_fro" value="<?php
echo $fro; ?>"/>
<input type="hidden" name="class" value="<?php echo
$class; ?>"/>
<input type="hidden" name="bct1" value="<?php echo
$bct1; ?>"/>
<input type="hidden" name="bct2" value="<?php echo
$bct2; ?>"/>
<input type="hidden" name="bat1" value="<?php echo
$bat1; ?>"/>
<input type="hidden" name="bat2" value="<?php echo
$bat2; ?>"/>
<input type="hidden" name="btotr" value="<?php echo
$btotr; ?>"/>
<input type="hidden" name="aname1" value="<?php echo
$aname1; ?>"/>
<input type="hidden" name="aage1" value="<?php echo
$aage1; ?>"/>
<input type="hidden" name="asex1" value="<?php echo
$asex1; ?>"/>
<input type="hidden" name="cname1" value="<?php echo
$cname1; ?>"/>
<input type="hidden" name="cage1" value="<?php echo
$cage1; ?>"/>
<input type="hidden" name="csex1" value="<?php echo
$csex1; ?>"/>
<input type="hidden" name="cname2" value="<?php echo
$cname2; ?>"/>
<input type="hidden" name="cage2" value="<?php echo
$cage2; ?>"/>
<input type="hidden" name="csex2" value="<?php echo
$csex2; ?>"/>
<?php }
else if($class==='Economy' && $counta==='2' &&
$countc==='1') { ?>
<input type="hidden" name="count_a" value="<?php echo
$counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo
$countc; ?>"/>
<input type="hidden" name="chose_to" value="<?php
echo $to; ?>"/>
<input type="hidden" name="chose_fro" value="<?php
echo $fro; ?>"/>
<input type="hidden" name="class" value="<?php echo
$class; ?>"/>
<input type="hidden" name="ect1" value="<?php echo
$ect1; ?>"/>
<input type="hidden" name="ect2" value="<?php echo
$ect2; ?>"/>
<input type="hidden" name="eat1" value="<?php echo
$eat1; ?>"/>
<input type="hidden" name="eat2" value="<?php echo
$eat2; ?>"/>
<input type="hidden" name="etotr" value="<?php echo
$etotr; ?>"/>
<input type="hidden" name="aname1" value="<?php echo
$aname1; ?>"/>
<input type="hidden" name="aage1" value="<?php echo
$aage1; ?>"/>
<input type="hidden" name="asex1" value="<?php echo
$asex1; ?>"/>
<input type="hidden" name="aname2" value="<?php echo
$aname2; ?>"/>
<input type="hidden" name="aage2"
value="<?php echo $aage2; ?>"/>
<input type="hidden" name="asex2"
value="<?php echo $asex2; ?>"/>
<input type="hidden" name="cname1" value="<?php echo
$cname1; ?>"/>
<input type="hidden" name="cage1" value="<?php echo
$cage1; ?>"/>
<input type="hidden" name="csex1" value="<?php echo
$csex1; ?>"/>
<?php }
else if($class==='Business' && $counta==='2' &&
$countc==='1') { ?>
<input type="hidden" name="count_a" value="<?php echo
$counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo
$countc; ?>"/>
<input type="hidden" name="chose_to" value="<?php
echo $to; ?>"/>
<input type="hidden" name="chose_fro" value="<?php
echo $fro; ?>"/>
<input type="hidden" name="class" value="<?php echo
$class; ?>"/>
<input type="hidden" name="bct1" value="<?php echo
$bct1; ?>"/>
<input type="hidden" name="bct2" value="<?php echo
$bct2; ?>"/>
<input type="hidden" name="bat1" value="<?php echo
$bat1; ?>"/>
<input type="hidden" name="bat2" value="<?php echo
$bat2; ?>"/>
<input type="hidden" name="btotr" value="<?php echo
$btotr; ?>"/>
<input type="hidden" name="aname1" value="<?php echo
$aname1; ?>"/>
<input type="hidden" name="aage1" value="<?php echo
$aage1; ?>"/>
<input type="hidden" name="asex1" value="<?php echo
$asex1; ?>"/>
<input type="hidden" name="aname2" value="<?php echo
$aname2; ?>"/>
<input type="hidden" name="aage2"
value="<?php echo $aage2; ?>"/>
<input type="hidden" name="asex2"
value="<?php echo $asex2; ?>"/>
<input type="hidden" name="cname1" value="<?php echo
$cname1; ?>"/>
<input type="hidden" name="cage1" value="<?php echo
$cage1; ?>"/>
<input type="hidden" name="csex1" value="<?php echo
$csex1; ?>"/>
<?php }
else if($class==='Economy' && $counta==='2' &&
$countc==='2') { ?>
<input type="hidden" name="count_a" value="<?php echo
$counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo
$countc; ?>"/>
<input type="hidden" name="chose_to" value="<?php
echo $to; ?>"/>
<input type="hidden" name="chose_fro" value="<?php
echo $fro; ?>"/>
<input type="hidden" name="class" value="<?php echo
$class; ?>"/>
<input type="hidden" name="ect1" value="<?php echo
$ect1; ?>"/>
<input type="hidden" name="ect2" value="<?php echo
$ect2; ?>"/>
<input type="hidden" name="eat1" value="<?php echo
$eat1; ?>"/>
<input type="hidden" name="eat2" value="<?php echo
$eat2; ?>"/>
<input type="hidden" name="etotr" value="<?php echo
$etotr; ?>"/>
<input type="hidden" name="aname1" value="<?php echo
$aname1; ?>"/>
<input type="hidden" name="aage1" value="<?php echo
$aage1; ?>"/>
<input type="hidden" name="asex1" value="<?php echo
$asex1; ?>"/>
<input type="hidden" name="aname2" value="<?php echo
$aname2; ?>"/>
<input type="hidden" name="aage2"
value="<?php echo $aage2; ?>"/>
<input type="hidden" name="asex2"
value="<?php echo $asex2; ?>"/>
<input type="hidden" name="cname1" value="<?php echo
$cname1; ?>"/>
<input type="hidden" name="cage1" value="<?php echo
$cage1; ?>"/>
<input type="hidden" name="csex1" value="<?php echo
$csex1; ?>"/>
<input type="hidden" name="cname2" value="<?php echo
$cname2; ?>"/>
<input type="hidden" name="cage2" value="<?php echo
$cage2; ?>"/>
<input type="hidden" name="csex2" value="<?php echo
$csex2; ?>"/>
<?php }
else if($class==='Business' && $counta==='2' &&
$countc==='2') { ?>
<input type="hidden" name="count_a" value="<?php echo
$counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo
$countc; ?>"/>
<input type="hidden" name="chose_to" value="<?php
echo $to; ?>"/>
<input type="hidden" name="chose_fro" value="<?php
echo $fro; ?>"/>
<input type="hidden" name="class" value="<?php echo
$class; ?>"/>
<input type="hidden" name="bct1" value="<?php echo
$bct1; ?>"/>
<input type="hidden" name="bct2" value="<?php echo
$bct2; ?>"/>
<input type="hidden" name="bat1" value="<?php echo
$bat1; ?>"/>
<input type="hidden" name="bat2" value="<?php echo
$bat2; ?>"/>
<input type="hidden" name="btotr" value="<?php echo
$btotr; ?>"/>
<input type="hidden" name="aname1" value="<?php echo
$aname1; ?>"/>
<input type="hidden" name="aage1" value="<?php echo
$aage1; ?>"/>
<input type="hidden" name="asex1" value="<?php echo
$asex1; ?>"/>
<input type="hidden" name="aname2" value="<?php echo
$aname2; ?>"/>
<input type="hidden" name="aage2"
value="<?php echo $aage2; ?>"/>
<input type="hidden" name="asex2"
value="<?php echo $asex2; ?>"/>
<input type="hidden" name="cname1" value="<?php echo
$cname1; ?>"/>
<input type="hidden" name="cage1" value="<?php echo
$cage1; ?>"/>
<input type="hidden" name="csex1" value="<?php echo
$csex1; ?>"/>
<input type="hidden" name="cname2" value="<?php echo
$cname2; ?>"/>
<input type="hidden" name="cage2" value="<?php echo
$cage2; ?>"/>
<input type="hidden" name="csex2" value="<?php echo
$csex2; ?>"/>
<?php }
}
else {
if($class==='Economy' && $counta==='1' &&
$countc==='0') { ?>
<input type="hidden" name="count_a" value="<?php echo
$counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo
$countc; ?>"/>
<input type="hidden" name="chose_to" value="<?php
echo $to; ?>"/>
<input type="hidden" name="class" value="<?php echo
$class; ?>"/>
<input type="hidden" name="ect1" value="<?php echo
$ect1; ?>"/>
<input type="hidden" name="eat1" value="<?php echo
$eat1; ?>"/>
<input type="hidden" name="etot1" value="<?php echo
$etot1; ?>"/>
<input type="hidden" name="aname1" value="<?php echo
$aname1; ?>"/>
<input type="hidden" name="aage1" value="<?php echo
$aage1; ?>"/>
<input type="hidden" name="asex1" value="<?php echo
$asex1; ?>"/>
<?php }
else if($class==='Business' && $counta==='1' &&
$countc==='0') { ?>
<input type="hidden" name="count_a" value="<?php echo
$counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo
$countc; ?>"/>
<input type="hidden" name="chose_to" value="<?php
echo $to; ?>"/>
<input type="hidden" name="class" value="<?php echo
$class; ?>"/>
<input type="hidden" name="bct1" value="<?php echo
$bct1; ?>"/>
<input type="hidden" name="bat1" value="<?php echo
$bat1; ?>"/>
<input type="hidden" name="btot1" value="<?php echo
$btot1; ?>"/>
<input type="hidden" name="aname1" value="<?php echo
$aname1; ?>"/>
<input type="hidden" name="aage1" value="<?php echo
$aage1; ?>"/>
<input type="hidden" name="asex1" value="<?php echo
$asex1; ?>"/>
<?php }
else if($class==='Economy' && $counta==='1' &&
$countc==='1') { ?>
<input type="hidden" name="count_a" value="<?php echo
$counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo
$countc; ?>"/>
<input type="hidden" name="chose_to" value="<?php
echo $to; ?>"/>
<input type="hidden" name="class" value="<?php echo
$class; ?>"/>
<input type="hidden" name="ect1" value="<?php echo
$ect1; ?>"/>
<input type="hidden" name="eat1" value="<?php echo
$eat1; ?>"/>
<input type="hidden" name="etot1" value="<?php echo
$etot1; ?>"/>
<input type="hidden" name="aname1" value="<?php echo
$aname1; ?>"/>
<input type="hidden" name="aage1" value="<?php echo
$aage1; ?>"/>
<input type="hidden" name="asex1" value="<?php echo
$asex1; ?>"/>
<input type="hidden" name="cname1" value="<?php echo
$cname1; ?>"/>
<input type="hidden" name="cage1" value="<?php echo
$cage1; ?>"/>
<input type="hidden" name="csex1" value="<?php echo
$csex1; ?>"/>
<?php }
else if($class==='Business' && $counta==='1' &&
$countc==='1') { ?>
<input type="hidden" name="count_a" value="<?php echo
$counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo
$countc; ?>"/>
<input type="hidden" name="chose_to" value="<?php
echo $to; ?>"/>
<input type="hidden" name="class" value="<?php echo
$class; ?>"/>
<input type="hidden" name="bct1" value="<?php echo
$bct1; ?>"/>
<input type="hidden" name="bat1" value="<?php echo
$bat1; ?>"/>
<input type="hidden" name="btot1" value="<?php echo
$btot1; ?>"/>
<input type="hidden" name="aname1" value="<?php echo
$aname1; ?>"/>
<input type="hidden" name="aage1" value="<?php echo
$aage1; ?>"/>
<input type="hidden" name="asex1" value="<?php echo
$asex1; ?>"/>
<input type="hidden" name="cname1" value="<?php echo
$cname1; ?>"/>
<input type="hidden" name="cage1" value="<?php echo
$cage1; ?>"/>
<input type="hidden" name="csex1" value="<?php echo
$csex1; ?>"/>
<?php }
else if($class==='Economy' && $counta==='1' &&
$countc==='2') { ?>
<input type="hidden" name="count_a" value="<?php echo
$counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo
$countc; ?>"/>
<input type="hidden" name="chose_to" value="<?php
echo $to; ?>"/>
<input type="hidden" name="class" value="<?php echo
$class; ?>"/>
<input type="hidden" name="ect1" value="<?php echo
$ect1; ?>"/>
<input type="hidden" name="eat1" value="<?php echo
$eat1; ?>"/>
<input type="hidden" name="etot1" value="<?php echo
$etot1; ?>"/>
<input type="hidden" name="aname1" value="<?php echo
$aname1; ?>"/>
<input type="hidden" name="aage1" value="<?php echo
$aage1; ?>"/>
<input type="hidden" name="asex1" value="<?php echo
$asex1; ?>"/>
<input type="hidden" name="cname1" value="<?php echo
$cname1; ?>"/>
<input type="hidden" name="cage1" value="<?php echo
$cage1; ?>"/>
<input type="hidden" name="csex1" value="<?php echo
$csex1; ?>"/>
<input type="hidden" name="cname2" value="<?php echo
$cname2; ?>"/>
<input type="hidden" name="cage2" value="<?php echo
$cage2; ?>"/>
<input type="hidden" name="csex2" value="<?php echo
$csex2; ?>"/>
<?php }
else if($class==='Business' && $counta==='1' &&
$countc==='2') { ?>
<input type="hidden" name="count_a" value="<?php echo
$counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo
$countc; ?>"/>
<input type="hidden" name="chose_to" value="<?php
echo $to; ?>"/>
<input type="hidden" name="class" value="<?php echo
$class; ?>"/>
<input type="hidden" name="bct1" value="<?php echo
$bct1; ?>"/>
<input type="hidden" name="bat1" value="<?php echo
$bat1; ?>"/>
<input type="hidden" name="btot1" value="<?php echo
$btot1; ?>"/>
<input type="hidden" name="aname1" value="<?php echo
$aname1; ?>"/>
<input type="hidden" name="aage1" value="<?php echo
$aage1; ?>"/>
<input type="hidden" name="asex1" value="<?php echo
$asex1; ?>"/>
<input type="hidden" name="cname1" value="<?php echo
$cname1; ?>"/>
<input type="hidden" name="cage1" value="<?php echo
$cage1; ?>"/>
<input type="hidden" name="csex1" value="<?php echo
$csex1; ?>"/>
<input type="hidden" name="cname2" value="<?php echo
$cname2; ?>"/>
<input type="hidden" name="cage2" value="<?php echo
$cage2; ?>"/>
<input type="hidden" name="csex2" value="<?php echo
$csex2; ?>"/>
<?php }
else if($class==='Economy' && $counta==='2' &&
$countc==='0') { ?>
<input type="hidden" name="count_a" value="<?php echo
$counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo
$countc; ?>"/>
<input type="hidden" name="chose_to" value="<?php
echo $to; ?>"/>
<input type="hidden" name="class" value="<?php echo
$class; ?>"/>
<input type="hidden" name="ect1" value="<?php echo
$ect1; ?>"/>
<input type="hidden" name="eat1" value="<?php echo
$eat1; ?>"/>
<input type="hidden" name="etot1" value="<?php echo
$etot1; ?>"/>
<input type="hidden" name="aname1" value="<?php echo
$aname1; ?>"/>
<input type="hidden" name="aage1" value="<?php echo
$aage1; ?>"/>
<input type="hidden" name="asex1" value="<?php echo
$asex1; ?>"/>
<input type="hidden" name="aname2" value="<?php echo
$aname2; ?>"/>
<input type="hidden" name="aage2" value="<?php echo
$aage2; ?>"/>
<input type="hidden" name="asex2" value="<?php echo
$asex2; ?>"/>
<?php }
else if($class==='Business' && $counta==='2' &&
$countc==='0') { ?>
<input type="hidden" name="count_a" value="<?php echo
$counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo
$countc; ?>"/>
<input type="hidden" name="chose_to" value="<?php
echo $to; ?>"/>
<input type="hidden" name="class" value="<?php echo
$class; ?>"/>
<input type="hidden" name="bct1" value="<?php echo
$bct1; ?>"/>
<input type="hidden" name="bat1" value="<?php echo
$bat1; ?>"/>
<input type="hidden" name="btot1" value="<?php echo
$btot1; ?>"/>
<input type="hidden" name="aname1" value="<?php echo
$aname1; ?>"/>
<input type="hidden" name="aage1" value="<?php echo
$aage1; ?>"/>
<input type="hidden" name="asex1" value="<?php echo
$asex1; ?>"/>
<input type="hidden" name="aname2" value="<?php echo
$aname2; ?>"/>
<input type="hidden" name="aage2" value="<?php echo
$aage2; ?>"/>
<input type="hidden" name="asex2" value="<?php echo
$asex2; ?>"/>
<?php }
else if($class==='Economy' && $counta==='2' &&
$countc==='1') { ?>
<input type="hidden" name="count_a" value="<?php echo
$counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo
$countc; ?>"/>
<input type="hidden" name="chose_to" value="<?php
echo $to; ?>"/>
<input type="hidden" name="class" value="<?php echo
$class; ?>"/>
<input type="hidden" name="ect1" value="<?php echo
$ect1; ?>"/>
<input type="hidden" name="eat1" value="<?php echo
$eat1; ?>"/>
<input type="hidden" name="etot1" value="<?php echo
$etot1; ?>"/>
<input type="hidden" name="aname1" value="<?php echo
$aname1; ?>"/>
<input type="hidden" name="aage1" value="<?php echo
$aage1; ?>"/>
<input type="hidden" name="asex1" value="<?php echo
$asex1; ?>"/>
<input type="hidden" name="aname2" value="<?php echo
$aname2; ?>"/>
<input type="hidden" name="aage2" value="<?php echo
$aage2; ?>"/>
<input type="hidden" name="asex2" value="<?php echo
$asex2; ?>"/>
<input type="hidden" name="cname1" value="<?php echo
$cname1; ?>"/>
<input type="hidden" name="cage1" value="<?php echo
$cage1; ?>"/>
<input type="hidden" name="csex1" value="<?php echo
$csex1; ?>"/>
<?php }
else if($class==='Business' && $counta==='2' &&
$countc==='1') { ?>
<input type="hidden" name="count_a" value="<?php echo
$counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo
$countc; ?>"/>
<input type="hidden" name="chose_to" value="<?php
echo $to; ?>"/>
<input type="hidden" name="class" value="<?php echo
$class; ?>"/>
<input type="hidden" name="bct1" value="<?php echo
$bct1; ?>"/>
<input type="hidden" name="bat1" value="<?php echo
$bat1; ?>"/>
<input type="hidden" name="btot1" value="<?php echo
$btot1; ?>"/>
<input type="hidden" name="aname1" value="<?php echo
$aname1; ?>"/>
<input type="hidden" name="aage1" value="<?php echo
$aage1; ?>"/>
<input type="hidden" name="asex1" value="<?php echo
$asex1; ?>"/>
<input type="hidden" name="aname2" value="<?php echo
$aname2; ?>"/>
<input type="hidden" name="aage2" value="<?php echo
$aage2; ?>"/>
<input type="hidden" name="asex2" value="<?php echo
$asex2; ?>"/>
<input type="hidden" name="cname1" value="<?php echo
$cname1; ?>"/>
<input type="hidden" name="cage1" value="<?php echo
$cage1; ?>"/>
<input type="hidden" name="csex1" value="<?php echo
$csex1; ?>"/>
<?php }
else if($class==='Economy' && $counta==='2' &&
$countc==='2') { ?>
<input type="hidden" name="count_a" value="<?php echo
$counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo
$countc; ?>"/>
<input type="hidden" name="chose_to" value="<?php
echo $to; ?>"/>
<input type="hidden" name="class" value="<?php echo
$class; ?>"/>
<input type="hidden" name="ect1" value="<?php echo
$ect1; ?>"/>
<input type="hidden" name="eat1" value="<?php echo
$eat1; ?>"/>
<input type="hidden" name="etot1" value="<?php echo
$etot1; ?>"/>
<input type="hidden" name="aname1" value="<?php echo
$aname1; ?>"/>
<input type="hidden" name="aage1" value="<?php echo
$aage1; ?>"/>
<input type="hidden" name="asex1" value="<?php echo
$asex1; ?>"/>
<input type="hidden" name="aname2" value="<?php echo
$aname2; ?>"/>
<input type="hidden" name="aage2" value="<?php echo
$aage2; ?>"/>
<input type="hidden" name="asex2" value="<?php echo
$asex2; ?>"/>
<input type="hidden" name="cname1" value="<?php echo
$cname1; ?>"/>
<input type="hidden" name="cage1" value="<?php echo
$cage1; ?>"/>
<input type="hidden" name="csex1" value="<?php echo
$csex1; ?>"/>
<input type="hidden" name="cname2" value="<?php echo
$cname2; ?>"/>
<input type="hidden" name="cage2" value="<?php echo
$cage2; ?>"/>
<input type="hidden" name="csex2" value="<?php echo
$csex2; ?>"/>
<?php }
else if($class==='Business' && $counta==='2' &&
$countc==='2') { ?>
<input type="hidden" name="count_a" value="<?php echo
$counta; ?>"/>
<input type="hidden" name="count_c" value="<?php echo
$countc; ?>"/>
<input type="hidden" name="chose_to" value="<?php
echo $to; ?>"/>
<input type="hidden" name="class" value="<?php echo
$class; ?>"/>
<input type="hidden" name="bct1" value="<?php echo
$bct1; ?>"/>
<input type="hidden" name="bat1" value="<?php echo
$bat1; ?>"/>
<input type="hidden" name="btot1" value="<?php echo
$btot1; ?>"/>
<input type="hidden" name="aname1" value="<?php echo
$aname1; ?>"/>
<input type="hidden" name="aage1" value="<?php echo
$aage1; ?>"/>
<input type="hidden" name="asex1" value="<?php echo
$asex1; ?>"/>
<input type="hidden" name="aname2" value="<?php echo
$aname2; ?>"/>
<input type="hidden" name="aage2" value="<?php echo
$aage2; ?>"/>
<input type="hidden" name="asex2" value="<?php echo
$asex2; ?>"/>
<input type="hidden" name="cname1" value="<?php echo
$cname1; ?>"/>
<input type="hidden" name="cage1" value="<?php echo
$cage1; ?>"/>
<input type="hidden" name="csex1" value="<?php echo
$csex1; ?>"/>
<input type="hidden" name="cname2" value="<?php echo
$cname2; ?>"/>
<input type="hidden" name="cage2" value="<?php echo
$cage2; ?>"/>
<input type="hidden" name="csex2" value="<?php echo
$csex2; ?>"/>
<?php }
}
}
?>
<input type="hidden" name="puname" value="<?php echo $puname; ?
>"/>
<input type="hidden" name="puadd" value="<?php echo $puadd; ?>"/>
<input type="hidden" name="puphno" value="<?php echo $puphno; ?
>"/>
<input type="hidden" name="pumail" value="<?php echo $pumail; ?
>"/>
<button type="submit" id="book_f" name="book_f" class="btn btn-
primary">Pay</button></center>
</form>
</div>
</div>
<div class="col-lg-4">

</div>
</div>

<?php include
$_SERVER["DOCUMENT_ROOT"].'/swift/includes/overall/footer.php'; ?>

5. Confirm Page

<?php
include $_SERVER["DOCUMENT_ROOT"].'/swift/core/init.php';
include $_SERVER["DOCUMENT_ROOT"].'/swift/includes/overall/header.php';

if(f_logged_in()===true) {
$uid = $f_data['f_id'];
if(isset($_POST['cardnum'])===true &&
isset($_POST['cvvnum'])===true) {
$cardnum = $_POST['cardnum'];
$cvvnum = $_POST['cvvnum'];
$puname = $_POST['puname'];
$puphno = $_POST['puphno'];
$puadd = $_POST['puadd'];
$pumail = $_POST['pumail'];
if(isset($_POST['chose_to'])===true) {
if(isset($_POST['chose_fro'])===true) {
$to = $_POST['chose_to'];
$fro = $_POST['chose_fro'];
$counta = $_POST['count_a'];
$countc = $_POST['count_c'];
$class = $_POST['class'];
if($class==='Economy' && $counta==='1' &&
$countc==='0') {
$aname1 = $_POST['aname1'];
$asex1 = $_POST['asex1'];
$aage1 = $_POST['aage1'];
$ect1 = $_POST['ect1'];
$ect2 = $_POST['ect2'];
$eat1 = $_POST['eat1'];
$eat2 = $_POST['eat2'];
$etotr = $_POST['etotr'];
$totc = $counta + $countc;
$status = 'Booked';
$q1 = "SELECT * FROM `flight_search`
WHERE `fno`='$to'";
$r1 = mysql_query($q1);
while($row1 = mysql_fetch_assoc($r1)) {
$from_city = $row1['from_city'];
$to_city = $row1['to_city'];
$depart_date =
$row1['departure_date'];
$arr_date = $row1['arrival_date'];
$depart_time =
$row1['departure_time'];
$arr_time = $row1['arrival_time'];
}
$q10 = "SELECT `c_balance` FROM
`card_details` WHERE `c_cvv`='$cvvnum' AND `c_cnum`='$cardnum'";
$r10 = mysql_query($q10);
if($r10) {
if(mysql_num_rows($r10)>0) {
while($row10 =
mysql_fetch_assoc($r10)) {
$balance =
$row10['c_balance'];
if($balance>=$etotr)
{
$deduct =
$balance - $etotr;

mysql_query("UPDATE `card_details` SET `c_balance`='$deduct' WHERE


`c_cvv`='$cvvnum' AND `c_cnum`='$cardnum'");
$q11 =
"SELECT `e_seats_left` FROM `flight_search` WHERE `fno`='$to'";
$r11 =
mysql_query($q11);
if($r11) {

if(mysql_num_rows($r11)>0) {
while($row11 = mysql_fetch_assoc($r11)) {

$e_seats_left = $row11['e_seats_left'];

$dec_seats11 = $e_seats_left - $totc;

mysql_query("UPDATE `flight_search` SET `e_seats_left`='$dec_seats11'


WHERE `fno`='$to'");

}
}

date_default_timezone_set('Asia/Kolkata');
$a1 =
date('H:i:s');
$e1 =
str_replace(':', '', $a1);
$a2 =
date('d-m-Y');
$e2 =
str_replace('-', '', $a2);
$pnr1
= $e1.$e2;

mysql_query("INSERT INTO `passenger_details` (`p_name`, `p_age`, `p_sex`,


`p_pnr`, `p_fno`, `p_from`, `p_to`, `p_dedate`, `p_ardate`, `p_detime`, `p_artime`,
`p_class`, `p_status`, `p_passtype`, `p_fid`) VALUES ('$aname1', '$asex1', '$aage1',
'$pnr1', '$to', '$from_city', '$to_city', '$depart_date', '$arr_date', '$depart_time',
'$arr_time', '$class', '$status', 'A', '$uid')");

mysql_query("INSERT INTO `booking_details` (`b_name`, `b_phno`, `b_mail`,


`b_add`, `b_price`, `b_child`, `b_adults`, `b_total`, `b_status`, `b_pnr`, `b_card`, `b_fid`)
VALUES ('$puname', '$puphno', '$pumail', '$puadd', '$etotr', '$countc', '$counta', '$totc',
'$status', '$pnr1', '$cardnum', '$uid')");
}
$q12 =
"SELECT `e_seats_left` FROM `flight_search` WHERE `fno`='$fro'";
$r12 =
mysql_query($q12);
if($r12) {

if(mysql_num_rows($r12)>0) {

while($row12 = mysql_fetch_assoc($r12)) {
$e_seats_left = $row12['e_seats_left'];

$dec_seats12 = $e_seats_left - $totc;

mysql_query("UPDATE `flight_search` SET `e_seats_left`='$dec_seats12'


WHERE `fno`='$fro'");

}
}

date_default_timezone_set('Asia/Kolkata');
$a5 =
date('H:i:s');
$e5 =
str_replace(':', '', $a5);
$a6 =
date('d-m-Y');
$e6 =
str_replace('-', '', $a6);
$pnr6
= $e5.$e6+100;

mysql_query("INSERT INTO `passenger_details` (`p_name`, `p_age`, `p_sex`,


`p_pnr`, `p_fno`, `p_from`, `p_to`, `p_dedate`, `p_ardate`, `p_detime`, `p_artime`,
`p_class`, `p_status`, `p_passtype`, `p_fid`) VALUES ('$aname1', '$asex1', '$aage1',
'$pnr6', '$fro', '$to_city', '$from_city', '$depart_date', '$arr_date', '$depart_time',
'$arr_time', '$class', '$status', 'A', '$uid')");

mysql_query("INSERT INTO `booking_details` (`b_name`, `b_phno`, `b_mail`,


`b_add`, `b_price`, `b_child`, `b_adults`, `b_total`, `b_status`, `b_pnr`, `b_card`, `b_fid`)
VALUES ('$puname', '$puphno', '$pumail', '$puadd', '$etotr', '$countc', '$counta', '$totc',
'$status', '$pnr6', '$cardnum', '$uid')");
}
echo 'Tickets
Successfully Booked! Please check your bookings page for details!';

header('refresh: 10, url=index.php');

}
else {
echo
'Insufficient balance, tickets not booked';

header('refresh: 10, url=index.php');


}
}
}
else {
echo 'Invalid details
provided, tickets not booked';
header('refresh: 10,
url=index.php');
}
}
}
}
else {
echo 'ONE WAY';
}
}
}
}

?>

<?php include
$_SERVER["DOCUMENT_ROOT"].'/swift/includes/overall/footer.php'; ?>

6. Register Page

<?php
$title = 'Swift Airlines | User Registration';
include $_SERVER["DOCUMENT_ROOT"].'/swift/core/init.php';
f_logged_in_redirect();
include $_SERVER["DOCUMENT_ROOT"].'/swift/includes/overall/header.php';

if(empty($_POST)===false) {
$required_fields =
array('f_uname','f_password','f_password_again','f_fname','f_lname','f_mailid','f_sex','f_a
ddress','f_phone');
foreach($_POST as $key=>$value) {
if(empty($value) && in_array($key, $required_fields) === true ) {
$errors[] = 'All the fields are required!';
break 1;
}
}

if(empty($errors) === true ){


if(f_exists($_POST['f_uname']) === true) {
$errors[] = 'Sorry, such a username has already been taken
by another user!';
}
if(preg_match("/\\s/", $_POST['f_uname']) == true) {
$errors[] = 'Your username cannot contain any spaces!';
}
if(!preg_match('/^[a-z][0-9a-z]{1,31}$/i', $_POST['f_uname'])) {
$errors[] = 'Your username can contain only alphabets and
numbers!';
}
if(!preg_match('/^[a-z]{2,30}$/i', $_POST['f_fname'])) {
$errors[] = 'Your first name can contain only alphabets';
}
if(!preg_match('/^[a-z]{2,30}$/i', $_POST['f_lname'])) {
$errors[] = 'Your last name can contain only alphabets';
}
if(strlen($_POST['f_password']) < 6) {
$errors[] = 'Your password must be atleast 6 characters!';
}
if(strlen($_POST['f_uname']) < 6) {
$errors[] = 'Your username must be atleast 6 characters!';
}
if($_POST['f_password'] !== $_POST['f_password_again']) {
$errors[] = 'Your passwords do no match!';
}
/* if(!preg_match('/@gmail\.com$/i', $_POST['faculty_mailid'])) {
$errors[] = 'You can sign up only with a gmail id';
} */
if(filter_var($_POST['f_mailid'], FILTER_VALIDATE_EMAIL)
=== false ) {
$errors[] = 'Not a valid email address!';
}
if(f_email_exists($_POST['f_mailid']) === true) {
$errors[] = 'Sorry, such an email id has already been taken
by another user!';
}

}
}

?>

<div class="row">
<div class="col-lg-4">
<div class="well bs-component">
<?php
if(isset($_GET['success']) && empty($_GET['success'])) {
echo 'You have been registered to Swift Airlines
successfully! Please check your Email ID for activation link!';
}
else {

if(empty($_POST)=== false && empty($errors)===true) {


$register_data = array(
'f_fname' => $_POST['f_fname'],
'f_lname' => $_POST['f_lname'],
'f_sex' => $_POST['f_sex'],
'f_uname' => $_POST['f_uname'],
'f_password' => $_POST['f_password'],
'f_mailid' => $_POST['f_mailid'],
'f_address' => $_POST['f_address'],
'f_phone' => $_POST['f_phone'],
'f_mailcode' => md5($_POST['f_uname']
+ microtime())
);
register_f($register_data);
header('Location: fregister.php?success');
exit();
}
else if(empty($errors)===false) {
echo output_errors($errors);
}
?>

<form class="form-horizontal" action="" method="POST">


<legend>User Registration</legend>

<div class="form-group">
<div class="col-lg-12">
<label class="control-label" for="focusedInput">First Name</label>
<input class="form-control" name="f_fname" id="f_fname" required
type="text">
</div>
</div>

<div class="form-group">
<div class="col-lg-12">
<label class="control-label" for="focusedInput">Last Name</label>
<input class="form-control" name="f_lname" id="f_lname" required
type="text">
</div>
</div>
<div class="form-group">
<div class="col-lg-10">
<div class="radio">
<label>
<input type="radio" name="f_sex" value="male" required />
Male
</label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<label>
<input type="radio" name="f_sex" value="female" required />
Female
</label>
</div>
</div>
</div>

<div class="form-group">
<div class="col-lg-12">
<label class="control-label" for="focusedInput">Username</label>
<input class="form-control" name="f_uname" id="f_uname" required
type="text">
</div>
</div>

<div class="form-group">
<div class="col-lg-12">
<label class="control-label" for="focusedInput">Password</label>
<input class="form-control" name="f_password" id="f_password" required
type="password">
</div>
</div>

<div class="form-group">
<div class="col-lg-12">
<label class="control-label" for="focusedInput">Confirm Password</label>
<input class="form-control" name="f_password_again"
id="f_password_again" required type="password">
</div>
</div>

<div class="form-group">
<div class="col-lg-12">
<label class="control-label" for="focusedInput">Email ID</label>
<input class="form-control" name="f_mailid" id="f_mailid" required
type="text">
</div>
</div>

<div class="form-group">
<div class="col-lg-12">
<label class="control-label" for="focusedInput">Address</label>
<input class="form-control" name="f_address" id="f_address" required
type="text">
</div>
</div>

<div class="form-group">
<div class="col-lg-12">
<label class="control-label" for="focusedInput">Phone Number</label>
<input class="form-control" name="f_phone" id="f_phone" required
type="text">
</div>
</div>

<div class="form-group">
<center><button type="submit" id="submit" value="submit" name="submit"
class="btn btn-primary">Register</button></center>
</div>

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

<?php
}
include $_SERVER["DOCUMENT_ROOT"].'/swift/includes/overall/footer.php'; ?>

7. Profile Page

<?php
$title = 'Swift Airlines | Profile';
include $_SERVER["DOCUMENT_ROOT"].'/swift/core/init.php';
user_protect_page();
include $_SERVER["DOCUMENT_ROOT"].'/swift/includes/overall/header.php';
if(isset($_GET['f_uname']) === true && empty($_GET['f_uname']) === false) {
$f_uname = $_GET['f_uname'];
if(f_exists($f_uname) === true ) {
$f_id = f_id_from_username($f_uname);
$profile_data = f_data($f_id,
'f_fname','f_lname','f_mailid','f_sex','f_regdate');
?>

<h4><?php echo $profile_data['f_fname']; ?>&#39;s Profile</h4>

<br/>
<div class="container">
<img src="http://localhost/<?php echo $profile_data['f_dp'] ?>" height="150"
width="150" />
</div>
<hr>

<strong>Name:</strong> <?php echo $profile_data['f_fname'].' '.


$profile_data['f_lname']; ?><br/><br/>
<strong>Sex:</strong> <?php echo $profile_data['f_sex']; ?><br/><br/>
<strong>Campus:</strong> <?php echo $profile_data['f_campus']; ?><br/><br/>
<strong>Department:</strong> <?php echo $profile_data['f_dept']; ?><br/><br/>
<strong>Email ID:</strong> <?php echo $profile_data['f_mailid']; ?><br/><br/>
<strong>Member Since:</strong> <?php echo $profile_data['f_regdate'];
?><br/><br/>

<?php
}
else {
echo 'Sorry, that user doesn\'t exists!';
}
}
else {
header('Location: http://localhost/swift/index.php');
exit();
}

include $_SERVER["DOCUMENT_ROOT"].'/swift/includes/overall/footer.php';
?>
Appendix 2
Datebase (SQL)

-- phpMyAdmin SQL Dump


-- version 3.5.2.2
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Sep 21, 2014 at 06:59 PM
-- Server version: 5.5.27
-- PHP Version: 5.4.7

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";

/*!40101 SET
@OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET
@OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET
@OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Database: `swift`
--

-- --------------------------------------------------------

--
-- Table structure for table `booking_details`
--

CREATE TABLE IF NOT EXISTS `booking_details` (


`b_id` int(11) NOT NULL AUTO_INCREMENT,
`b_name` varchar(50) NOT NULL,
`b_fid` varchar(5) NOT NULL,
`b_phno` varchar(15) NOT NULL,
`b_mail` varchar(50) NOT NULL,
`b_add` varchar(100) NOT NULL,
`b_price` varchar(10) NOT NULL,
`b_child` varchar(3) NOT NULL,
`b_adults` varchar(3) NOT NULL,
`b_total` varchar(3) NOT NULL,
`b_status` varchar(10) NOT NULL,
`b_pnr` varchar(20) NOT NULL,
`b_card` varchar(16) NOT NULL,
PRIMARY KEY (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;

--
-- Dumping data for table `booking_details`
--

INSERT INTO `booking_details` (`b_id`, `b_name`, `b_fid`, `b_phno`, `b_mail`,


`b_add`, `b_price`, `b_child`, `b_adults`, `b_total`, `b_status`, `b_pnr`, `b_card`)
VALUES
(8, 'Ankur Sinha', '100', '9988877768', '[email protected]', '45 XYZ Street ABC
Nagar Chennai 80', '6000', '0', '1', '1', 'CANCELLED', '11181508092014',
'1234567891234567'),
(9, 'Ankur Sinha', '100', '9988877768', '[email protected]', '45 XYZ Street ABC
Nagar Chennai 80', '6000', '0', '1', '1', 'Booked', '11181508092114', '1234567891234567'),
(10, 'Ankur Sinha', '100', '9988877768', '[email protected]', '45 XYZ Street ABC
Nagar Chennai 80', '6000', '0', '1', '1', 'Booked', '12350308092014', '1234567891234567'),
(11, 'Ankur Sinha', '100', '9988877768', '[email protected]', '45 XYZ Street ABC
Nagar Chennai 80', '6000', '0', '1', '1', 'Booked', '12350308092114', '1234567891234567'),
(12, 'Ankur Sinha', '100', '9988877768', '[email protected]', '45 XYZ Street ABC
Nagar Chennai 80', '6000', '0', '1', '1', 'Booked', '14203508092014', '1234567891234567'),
(13, 'Ankur Sinha', '100', '9988877768', '[email protected]', '45 XYZ Street ABC
Nagar Chennai 80', '6000', '0', '1', '1', 'Booked', '14203508092114', '1234567891234567');

-- --------------------------------------------------------

--
-- Table structure for table `card_details`
--

CREATE TABLE IF NOT EXISTS `card_details` (


`c_id` int(11) NOT NULL AUTO_INCREMENT,
`c_name` varchar(50) NOT NULL,
`c_cvv` int(3) NOT NULL,
`c_cnum` varchar(16) NOT NULL,
`c_balance` int(8) NOT NULL,
PRIMARY KEY (`c_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=87880 ;

--
-- Dumping data for table `card_details`
--

INSERT INTO `card_details` (`c_id`, `c_name`, `c_cvv`, `c_cnum`, `c_balance`)


VALUES
(87878, 'Ankur Sinha', 232, '1234567891234567', 48989),
(87879, 'Sukanya Sunder', 899, '9876543212345678', 89898);

-- --------------------------------------------------------

--
-- Table structure for table `flight_search`
--

CREATE TABLE IF NOT EXISTS `flight_search` (


`id` int(11) NOT NULL AUTO_INCREMENT,
`fno` varchar(10) NOT NULL,
`from_city` varchar(20) NOT NULL,
`to_city` varchar(20) NOT NULL,
`departure_date` varchar(20) NOT NULL,
`arrival_date` varchar(20) NOT NULL,
`departure_time` varchar(20) NOT NULL,
`arrival_time` varchar(20) NOT NULL,
`e_seats_left` int(3) NOT NULL DEFAULT '20',
`b_seats_left` int(3) NOT NULL DEFAULT '10',
`e_price` int(5) NOT NULL,
`b_price` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

--
-- Dumping data for table `flight_search`
--

INSERT INTO `flight_search` (`id`, `fno`, `from_city`, `to_city`, `departure_date`,


`arrival_date`, `departure_time`, `arrival_time`, `e_seats_left`, `b_seats_left`, `e_price`,
`b_price`) VALUES
(1, 'SA218', 'Chennai', 'Delhi', '30-09-2014', '30-09-2014', '09:00', '12:00 ', 17, 10, 2500,
5000),
(2, 'SA2112', 'Delhi', 'Chennai', '30-09-2014', '30-09-2014', '13:00', '16:00', 15, 10, 2500,
5000),
(3, 'SA219', 'Chennai', 'Delhi', '30-09-2014', '30-09-2014', '18:00 ', '21:00 ', 18, 10, 2500,
5000);

-- --------------------------------------------------------

--
-- Table structure for table `flight_users`
--

CREATE TABLE IF NOT EXISTS `flight_users` (


`f_id` int(11) NOT NULL AUTO_INCREMENT,
`f_fname` varchar(20) NOT NULL,
`f_lname` varchar(20) NOT NULL,
`f_sex` varchar(10) NOT NULL,
`f_uname` varchar(32) NOT NULL,
`f_password` varchar(32) NOT NULL,
`f_mailid` varchar(100) NOT NULL,
`f_mailcode` varchar(100) NOT NULL,
`f_active` int(11) NOT NULL,
`f_regdate` datetime NOT NULL,
`f_passrec` int(11) NOT NULL,
`f_address` varchar(500) NOT NULL,
`f_phone` varchar(10) NOT NULL,
PRIMARY KEY (`f_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=102 ;

--
-- Dumping data for table `flight_users`
--

INSERT INTO `flight_users` (`f_id`, `f_fname`, `f_lname`, `f_sex`, `f_uname`,


`f_password`, `f_mailid`, `f_mailcode`, `f_active`, `f_regdate`, `f_passrec`, `f_address`,
`f_phone`) VALUES
(100, 'Ankur', 'Sinha', 'Male', 'ankur', '5f4dcc3b5aa765d61d8327deb882cf99',
'[email protected]', '', 1, '2014-07-20 12:55:28', 0, '45 XYZ Street ABC Nagar
Chennai 80', '9988877768'),
(101, 'Sukanya', 'Sunder', 'Female', 'sukanya', '5f4dcc3b5aa765d61d8327deb882cf99',
'[email protected]', '', 1, '2014-07-20 12:55:28', 0, 'No. 54, ABC Street, XYZ
Nagar, Delhi - 6', '7827318927');

-- --------------------------------------------------------

--
-- Table structure for table `passenger_details`
--

CREATE TABLE IF NOT EXISTS `passenger_details` (


`p_id` int(11) NOT NULL AUTO_INCREMENT,
`p_pnr` varchar(25) NOT NULL,
`p_name` varchar(50) NOT NULL,
`p_age` varchar(3) NOT NULL,
`p_sex` varchar(10) NOT NULL,
`p_fno` varchar(10) NOT NULL,
`p_from` varchar(10) NOT NULL,
`p_to` varchar(10) NOT NULL,
`p_dedate` varchar(20) NOT NULL,
`p_ardate` varchar(20) NOT NULL,
`p_detime` varchar(20) NOT NULL,
`p_artime` varchar(20) NOT NULL,
`p_status` varchar(20) NOT NULL,
`p_class` varchar(10) NOT NULL,
`p_passtype` varchar(1) NOT NULL,
`p_fid` varchar(5) NOT NULL,
PRIMARY KEY (`p_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=20 ;

--
-- Dumping data for table `passenger_details`
--

INSERT INTO `passenger_details` (`p_id`, `p_pnr`, `p_name`, `p_age`, `p_sex`, `p_fno`,


`p_from`, `p_to`, `p_dedate`, `p_ardate`, `p_detime`, `p_artime`, `p_status`, `p_class`,
`p_passtype`, `p_fid`) VALUES
(18, '14203508092014', 'Sukanya Sunder', 'F', '20', 'SA2112', 'Delhi', 'Chennai', '30-09-
2014', '30-09-2014', '13:00', '16:00', 'Booked', 'Economy', 'A', '100'),
(19, '14203508092114', 'Sukanya Sunder', 'F', '20', 'SA219', 'Chennai', 'Delhi', '30-09-
2014', '30-09-2014', '13:00', '16:00', 'Booked', 'Economy', 'A', '100');

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT


*/;
/*!40101 SET
CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION
*/;

You might also like