Project
Project
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 …………………………...
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.
ADVANTAGES
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.
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
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
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
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.
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.
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:
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.
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.
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.
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.
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.
The system must basically support certain input and output devices. Their descriptions are as
follows
RAM : 1 GB
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.
Internet Connection is required for running this web application as it is operated through web
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.
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.
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..
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:
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.
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.
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.
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.
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.
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:
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
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).
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.
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:
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
CARD DETAILS
ADD FLIGHTS
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.
CLIENT ADMIN
MODULE MODULE
login
Home About us Service contact
s Add flight details
Log out
Notation Description
CLIENT
Invalid
Username/password
INVALID VALID
Input
Reservation
User Airline Ticket
booking
Cancellation
Output
Passenger User
database Print
Accept Cancel
User Passenger
the the seats
database
details
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:
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 :
Login
Website
Get
Book View Login
Get
Update
Bank Add Edit/
Form Delete
Delete
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-
2. Data Independence
6. Performance
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
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:
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.
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 :
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")?>
<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>
<style type="text/css">
body {
background-image: url();
background-color: #333;
body,td,th {
color: #FFF;
</style>
<body>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
<tr>
</tr>
</table>
</div>
<?php
$passenger=getpass_details($book_id)
?>
<div id="apDiv1">
<div style="position:absolute; left: 388px; top: -164px; width: 384px;
height: 371px;">
<tr>
</tr>
<tr align="justify">
</tr>
<?php
while($details=mysql_fetch_array($passenger)){
?>
<tr>
</tr>
<?php
?>
</table>
</div>
<div style="position:absolute; left: 6px; top: 188px; width: 805px;
height: 287px;">
<tr>
</tr>
</tr><?php
while($get_fltdetails=mysql_fetch_array($flt_res)){
?>
<tr align="center">
</tr>
<?php }?>
</table>
</div>
<form>
</form>
</div>
</div>
<tr>
</tr>
<tr>
</tr>
<?php
$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){
while($result=mysql_fetch_array($result_set)){
$result_set1=mysql_query($query1,$connection);
if(!$result_set1){
}
while($res2=mysql_fetch_array($result_set1))
{ ?>
<?php if(trim($class['p_seattype'])=="Economy"){?>
<tr>
</tr>
<?php } else{?>
<tr>
</tr>
<?php
}
?><tr> <td height="23" colspan="4" align="center"> Total : <?php echo
$class['cost'] ?></td></tr>
</table>
</div>
}else{
redirect_to("index.php");
}?>
Index.php :
<?php
session_start();
if($_SESSION['date_invalid']=='d'){
?>
<script>
</script>
<?php
session_destroy();
}else if($_SESSION['date_invalid']=='d1'){
?>
<script>
</script>
<?php
session_destroy();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Travel Terminal</title>
<meta charset="utf-8">
<script type="text/javascript"
src="js/jquery.nivo.slider.pack.js"></script>
<style type="text/css">
</style>
<![endif]-->
<!--[if lt IE 7]>
<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>
<!-- 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. -->
<!-- Next object tag is for non-IE browsers. So hide it from IE using
IECC. -->
<!--[if !IE]>-->
<!--<![endif]-->
<div>
<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">
<span id="slogan"></span>
<nav id="top_nav">
<ul>
<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>
<!--content -->
<section id="content">
<div class="for_banners">
<article class="col1">
<div class="tabs">
<ul class="nav">
</ul>
<div class="content">
<div class="tab-content"
id="Flight">
<script type="text/javascript" src="../js/calendarDateInput.js">
/***********************************************
***********************************************/
</script>
<script src="../SpryAssets/SpryTabbedPanels.js"
type="text/javascript"></script>
<ul class="TabbedPanelsTabGroup">
</ul>
<div class="TabbedPanelsContentGroup">
<div class="TabbedPanelsContent">
<font color="#FFFFFF">
<tr>
<?php
Bind_to_dropdown("tbl_flights","flt_dep","domestic");
?>
</select></td>
</tr>
<tr>
<?php
Bind_to_dropdown("tbl_flights","flt_desti","domestic");
?>
</select></td>
</tr>
<tr>
<td><label><font color="#FFFFFF">Departure
Date</font></label></td>
</tr>
<tr >
<td colspan="2">
<label><font
color="#FFFFFF">Adults</font></label> <select name="bkadults">
<script>
generatevalues(1,10);
</script>
</select>
<label><font
color="#FFFFFF">children</font></label> <select name="bkchildren">
<script>
generatevalues(0,10);
</script>
</select>
<label><font color="#FFFFFF">Infants</font></label><select
name="bkinfants">
<script>
generatevalues(0,10);
</script>
</select></td>
</tr>
<tr>
</td>
</tr></table>
</div>
<div class="TabbedPanelsContent">
<font color="#FFFFFF">
<tr>
<?php
Bind_to_dropdown("tbl_flights","flt_dep","international");
?>
</select></td>
</tr>
<tr>
<?php
Bind_to_dropdown("tbl_flights","flt_desti","international");
?>
</select></td>
</tr>
<tr>
<td><label><font color="#FFFFFF">Departure
Date</font></label></td>
</tr>
<tr >
<td colspan="2">
<label><font
color="#FFFFFF">Adults</font></label> <select name="bkadults">
<script>
generatevalues(1,10);
</script>
</select>
<label><font
color="#FFFFFF">children</font></label> <select name="bkchildren">
<script>
generatevalues(0,10);
</script>
</select>
<label><font color="#FFFFFF">Infants</font></label><select
name="bkinfants">
<script>
generatevalues(0,10);
</script>
</select></td>
</tr>
<tr>
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
<script type="text/javascript">
</script>
<script>
function s(){
var status=true;
var dep=(Departure.options[Departure.selectedIndex].value);
var desti=(Destination.options[Destination.selectedIndex].value);
if(dep==desti){
status= false;
return status;
function ints(){
var status=true;
var dep=(Departure.options[Departure.selectedIndex].value);
if(dep==desti){
status= false;
return status;
</script>
</div>
</div>
</div>
</article>
<div id="slider">
</div>
</div>
</section>
<!--content end-->
<!--footer -->
<footer>
<div class="wrapper">
</div>
</div>
<div align="RIGHT"></div>
</div>
</div>
</footer>
<!--footer end-->
</div>
<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({
slices:15,
animSpeed:500,
pauseTime:6000,
controlNav:false, //1,2,3...
afterChange: function(){},
});
});
</script>
</body>
</html>
<?php mysql_close($connection);?>