Online Flight Booking System Project
Online Flight Booking System Project
Project Documentation On
“Online Flight Booking System”
Submitted By:
Guided By
1. Anirban Nandi Mr. Shibaprasad sen
2. Arjun Ghosh FIEM,kolkata
1
CERTIFICATE
This is to certify that this report embodies the original work
done by Arjun Ghosh and Anirban Nandi during this project
submission as a partial fulfillment of the requirement for the
System Design Project of Masters of Computer Application V
Semester, of the West Bengal University Of Technology
under Future Institute Of Engineering & Management
supervision.
Project Co-ordinator
FIEM,Kolkata-150
Signature of HOD :-
Signature of Examiner :-
2
ACKNOWLEDGEMENT
The satisfaction that accompanies that the successful
completion of any task would be incomplete without the
mention of people whose ceaseless cooperation made it
possible, whose constant guidance and encouragement
crown all efforts with success. We are grateful to our project
guide Mr. Shibaprasad Sen for the guidance, inspiration
and constructive suggestions that helpful us in the
preparation of this project.
Arjun Ghosh
Anirban Nandi
3
To Whom It May Concern:
Signature Of Examiner
--------------------------------
([Link] SEN)
Lecturer,CSE department,
Future Institute Of
Engineering & Management.
4
PREFACE
Thank you,
Arjun Ghosh
5
Table of Contents
1. Synopsis
2. Feasibility Study
5. Data Tables
9. Coding
[Link]
[Link]
6
ONLINE FLIGHT BOOKING SYSTEM
PURPOSE:
The purpose of Online Flight Booking System is to book flight tickets online
in an efficient way. The main objective of an Online Flight Booking System
is to make the ticket booking system more convenient for the public. People
no more have to go all the way to the Airport Ticket Counters to buy tickets.
No more waiting in queues. All a person needs is a computer with an
internet connection and that’s it. After booking the ticket online an e-ticket is
provided to the consumer by the website. The e-ticket is usually sent by e-
mail. The consumer only needs to take a printout of that e-ticket and present
that e-ticket while actually catching the respective flight.
FEATURES:
_ Secure
_ Simplistic
_ User-friendly
_ Reliable and accurate
7
OVERVIEW:
The purpose of Online Flight Booking System is to book flight tickets online
in an efficient way.
_ Login
_ Search Domestic Flights
_ Search International Flights
_ Get names of the Airports
_ Book Tickets Online
Login:-
There will be a standard login page for the registered users. Administrators
and Moderators can also login from there. The users will be required to enter
their login id and password to book tickets. Flight details will be visible to
unregistered users as well. However, to book tickets the users will be
required to be registered with the website.
_ Flight Id
_ Flight Name
_ Source
_ Destination
8
Search International Flights:-
_ Flight Id
_ Flight Name
_ Source
_ Destination
Users can book tickets online from the Ticket Booking Section. As
mentioned before the user will be required to be logged in with his/her
respective login id and password. The user can book tickets one-way
or round trip. Choosing the Source and Destination as well as the
Departure Date and Arrival Date(if it’s a round trip) will provide the
user with all the flights available which helps the user to choose the
flight that best fits his/her requirement.
9
TECHNOLOGIES USED
Database:
Sql server
Querying language:
Sql
Programming Language:
C#
10
TECHNICAL DISCUSSION
11
Advantage of [Link] over others:
12
Use of IIS (Internet Information Services):
For running this web application we need .net framework 3.5 in the
web server. Without this Framework this project won’t run. The
.net framework 3.5 can be downloaded from the Microsoft website
[Link] While installing visual
[Link] 2008 the .net framework 3.5 is installed automatically.
The CLR of .net framework provides the runtime environment of
the web application.
13
FEASIBILITY STUDY
14
effectiveness of the system. More commonly known as cost/benefit analysis
the procedure is to determine the benefit and saving that are expected from a
system and compare them with costs, decisions is made to design and
implement the system.
This part of feasibility study gives the top management the economic
justification for the new system. This is an important input to the
management the management, because very often the top management does
not like to get confounded by the various technicalities that bound to be
associated with a project of this kind. A simple economic analysis that gives
the actual comparison of costs and benefits is much more meaningful in such
cases.
The system offers greater levels of user friendliness combined with greater
processing speed. Therefore, the cost of maintenance can be reduced. Since,
processing speed is very high and the work is reduced in the maintenance
point of view management convince that the project is operationally feasible.
3) BEHAVIOURAL FEASIBILITY:-
15
People are inherently resistant to change and computer has been known to
facilitate changes. An estimate should be made of how strong the user is
likely to move towards the development of computerized system. These are
various levels of users in order to ensure proper authentication and
authorization and security of sensitive data of the organization.
16
4) OPERATIONAL FEASIBILITY:-
REQUIREMENT SPECIFICATION
1. Hardware environment :-
2. Software Environment :-
17
ADVANTAGES OF CURRENT
SYSTEM
_ In comparison to the present system the proposed system will be less time
consuming and is more efficient as less graphics has been used.
18
Indigo :-
Flight_ID Integer 2
Flight_Name Varchar 20
Flight_Number Varchar 50
Origin Varchar 50
Via Varchar 50
Destination Varchar 50
Departure_Time Varchar 50
Arrival_Time Varchar 50
Days Varchar 50
Fare Integer 5
JetAirways :-
19
Flight_ID Integer 2
Flight_Name Varchar 20
Flight_Number Varchar 50
Origin Varchar 50
Via Varchar 50
Destination Varchar 50
Departure_Time Varchar 50
Arrival_Time Varchar 50
Days Varchar 50
Fare Integer 5
JetAirways-International :-
Flight_ID Integer 2
Flight_Name Varchar 20
Flight_Number Varchar 50
Origin Varchar 50
Via Varchar 50
Destination Varchar 50
Departure_Time Varchar 50
Arrival_Time Varchar 50
Days Varchar 50
Fare Integer 5
Kingfisher :-
Flight_ID Integer 2
20
Flight_Name Varchar 20
Flight_Number Varchar 50
Origin Varchar 50
Via Varchar 50
Destination Varchar 50
Departure_Time Varchar 50
Arrival_Time Varchar 50
Days Varchar 50
Fare Integer 5
Kingfisher-International :-
Flight_ID Integer 2
Flight_Name Varchar 20
Flight_Number Varchar 50
Origin Varchar 50
Via Varchar 50
Destination Varchar 50
Departure_Time Varchar 50
Arrival_Time Varchar 50
Days Varchar 50
Fare Integer 5
Spicejet :-
Flight_ID Integer 2
21
Flight_Name Varchar 20
Flight_Number Varchar 50
Origin Varchar 50
Via Varchar 50
Destination Varchar 50
Departure_Time Varchar 50
Arrival_Time Varchar 50
Days Varchar 50
Fare Integer 5
Spicejet-International :-
Flight_ID Integer 2
Flight_Name Varchar 20
Flight_Number Varchar 50
Origin Varchar 50
Via Varchar 50
Destination Varchar 50
Departure_Time Varchar 50
Arrival_Time Varchar 50
Days Varchar 50
Fare Integer 5
22
Data Flow Diagram of Online Question Forum:-
23
24
25
Entity Relationship Diagram:-
26
Screenshots of the entire Project
Home page:
27
This is the first page or the default page of the entire web application.
In this page there are some hyperlinks to other respective web pages
eg. Login Page, International and Domestic Flight Details, Booking
Tickets etc.
28
This is add
vertise.
29
To see the details of any of the Brands we click on the brand
name. On this page users can also search specific flights by
providing the source and destination. For example to see the
details of flights under Kingfisher we click on the icon of
Kingfisher and the following screen is displayed:
30
On home page is a Domestic Flight section, clicking it will redirect on
the following page:
31
To see the details of any of the Brands we click on the brand
name. On this page users can also search specific flights by
providing the source and destination. For example to see the
details of flights under Kingfisher we click on the icon of
Kingfisher and the following screen is displayed:
32
On the homepage there is also a hyperlink for Ticket Booking clicking on
which users are taken to the following page:
On this page users may book one-way or round trip tickets. Users have to be
registered to the website in order to book tickets i.e. users must have a valid
username and password.
33
On the homepage there is also a hyperlink to view the list of the national and
international airports. Clicking on that link takes the user to the following
page:
34
CODING
Scripts
The project consists of various scripts, the details about the coding is
beyond the scope of this report. So, we like to mention only parts of
the scripts. In [Link] coding there can be two types, one is the Inline
coding and the other is code behind written in C#. We follow the code
behind technique. That is for generating output of one page we need
two pages one is the (* .aspx) page and the other is (* .[Link])
page.
[Link] :-
using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
35
[Link]("[Link]");
}
protected void lbtnNamesOfDifferentFlights_Click(object sender,
EventArgs e)
{
[Link]("[Link]");
}
[Link] :-
using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
36
{
[Link]("[Link]");
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
[Link]("[Link]");
}
protected void lbtnIndigo_Click(object sender, EventArgs e)
{
[Link]("[Link]");
}
protected void lbtnJetAirways_Click(object sender, EventArgs e)
{
[Link]("[Link]");
}
protected void lbtnKingfisher_Click(object sender, EventArgs e)
{
[Link]("[Link]");
}
protected void lbtnSpicejet_Click(object sender, EventArgs e)
{
[Link]("[Link]");
}
[Link] :-
using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
37
if (!IsPostBack)
loadDomesticIndigo();
}
protected void loadDomesticIndigo()
{
string query = "select
Flight_ID,Flight_Number,Origin,Via,Destination,Departure_Time,Arrival_Ti
me,Days,Fare from [Indigo] ";
// string constr = "Data Source=.\\SQLEXPRESS;AttachDbFilename=|
DataDirectory|\\[Link];Integrated Security=True;User
Instance=True";
SqlConnection conn = new SqlConnection(constr);
[Link]();
SqlCommand cmd = new SqlCommand(query, conn);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataTable dt = new DataTable();
[Link](dt);
[Link] = dt;
[Link]();
}
protected void dgrid_RowCommand(object sender,
GridViewCommandEventArgs e)
{
if ([Link]([Link]) == "viewfl")
{
[Link]("[Link]?
type=Domestic&name=Indigo&id=" + ([Link]).ToString());
}
38
SqlCommand cmd = new SqlCommand(query, conn);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataTable dt = new DataTable();
[Link](dt);
[Link]();
[Link] = dt;
[Link]();
}
protected void btnReset_Click(object sender, EventArgs e)
{
loadDomesticIndigo();
}
protected void btnBackHome_Click(object sender, EventArgs e)
{
[Link]("[Link]");
}
}
[Link] :-
using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
39
// string constr = "Data Source=.\\SQLEXPRESS;AttachDbFilename=|
DataDirectory|\\[Link];Integrated Security=True;User
Instance=True";
SqlConnection conn = new SqlConnection(constr);
[Link]();
SqlCommand cmd = new SqlCommand(query, conn);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataTable dt = new DataTable();
[Link](dt);
[Link] = dt;
[Link]();
}
protected void dgrid_RowCommand(object sender,
GridViewCommandEventArgs e)
{
if ([Link]([Link]) == "viewfl")
{
[Link]("[Link]?
type=Domestic&name=JetAirways&id=" + ([Link]).ToString());
}
40
protected void btnReset_Click(object sender, EventArgs e)
{
loadDomesticJetAirways();
}
protected void btnBackHome_Click(object sender, EventArgs e)
{
[Link]("[Link]");
}
}
[Link] :-
using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
41
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataTable dt = new DataTable();
[Link](dt);
[Link] = dt;
[Link]();
}
protected void dgrid_RowCommand(object sender,
GridViewCommandEventArgs e)
{
if ([Link]([Link]) == "viewfl")
{
[Link]("[Link]?
type=Domestic&name=Kingfisher&id=" + ([Link]).ToString());
}
42
[Link]("[Link]");
}
}
[Link] :-
using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
43
if ([Link]([Link]) == "viewfl")
{
[Link]("[Link]?
type=Domestic&name=Spicejet&id=" + ([Link]).ToString());
}
[Link] :-
44
using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
}
protected void imgbtnJetairways_Click(object sender,
ImageClickEventArgs e)
{
[Link]("[Link]");
}
protected void imgbtnKingfisher_Click(object sender,
ImageClickEventArgs e)
{
[Link]("[Link]");
}
45
[Link]("[Link]");
}
}
[Link] :-
using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
46
[Link]("[Link]?
type=International&name=JetAirways&id=" +
([Link]).ToString());
}
47
[Link] :-
using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
[Link]("[Link]?
type=International&name=Kingfisher&id=" +
([Link]).ToString());
}
48
}
49
[Link] :-
using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
}
protected void lbtnBackInernational_Click(object sender, EventArgs
e)
{
[Link]("[Link]");
}
protected void lbtnBackHome_Click(object sender, EventArgs e)
{
[Link]("[Link]");
}
}
[Link] :-
50
using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
[Link]("[Link]?
type=International&name=Spicejet&id=" + ([Link]).ToString());
}
51
protected void dgrid_PageIndexChanging(object sender,
GridViewPageEventArgs e)
{
[Link] = [Link];
loadInternationalSpicejet();
}
protected void dgrid_SelectedIndexChanged(object sender, EventArgs
e)
{
[Link] :-
using System;
52
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
}
}
[Link] :-
.style2
{
width: 110px;
}
.textalignmnetCenter
{
text-align: center;
}
.bodytext
{
color: #FFBBDD;
font-family: Verdana;
}
.tdstyle
53
{
background-color:Blue;
height: 500px;
width: 80px;
}
.style3
{
width: 838px;
}
</style>
</head>
<body style="margin: 5px auto; margin-left:auto; " class="bodytext" >
<form id="form1" runat="server">
<table cellpadding="0" cellspacing="0" width="100%" >
<tr>
<td bgcolor="#0D6B10" colspan="2" height="100px"
class="textalignmnetCenter">
<asp:Label ID="Label1" runat="server" Font-Bold="True"
Font-Size="X-Large"
Text="Online Flight Booking System"
ForeColor="White"></asp:Label>
</td>
</tr>
<tr>
<td class="tdstyle" bgcolor="Red">
</td>
<td valign="top" class="style3">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1"
runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
<tr>
<td class="style2">
</td>
<td class="style3">
</td>
</tr>
</table>
</form>
</body>
</html>
[Link] :-
54
using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
}
protected void lbtnBackHome_Click(object sender, EventArgs e)
{
[Link]("[Link]");
}
protected void btnSubmit_Click(object sender, EventArgs e)
{
[Link]("[Link]");
}
protected void btnCancel_Click(object sender, EventArgs e)
{
[Link]("[Link]");
}
}
55
[Link] :-
using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
}
else
{
[Link] = true;
[Link](fname).Selected=true;
[Link] = fid;
56
SqlConnection conn = new SqlConnection(constr);
[Link]();
SqlCommand cmd = new SqlCommand(query, conn);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataTable dt = new DataTable();
[Link](dt);
if ([Link] > 0)
{
[Link] = [Link]([Link][0]["Fare"]);
[Link] = [Link]([Link][0]
["Departure_Time"]);
[Link] = [Link]([Link][0]
["Arrival_Time"]);
[Link] = [Link]([Link][0]
["Flight_Number"]);
[Link]([Link]([Link][0]
["Origin"])).Selected = true;
[Link]([Link]([Link][0]
["Destination"])).Selected = true;
}
[Link](fname).Selected = true;
[Link] = fid;
}
[Link] :-
using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
57
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
58
[Link]([Link]([Link][0]
["Origin"])).Selected = true;
[Link]([Link]([Link][0]
["Destination"])).Selected = true;
}
[Link](fname).Selected = true;
[Link] = fid;
}
[Link] :-
using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
59
fid = [Link]([Link]["id"]);
fname = [Link]([Link]["name"]);
if (!IsPostBack)
{
filldata();
}
}
private void filldata()
{
if (ftype == "International")
{
[Link] = true;
}
else
{
[Link] = true;
}
[Link](fname).Selected = true;
[Link] = fid;
[Link](fname).Selected = true;
[Link] = fid;
}
60
protected void btnSubmit_Click(object sender, EventArgs e)
{
[Link]("[Link]");
}
protected void btnCancel_Click(object sender, EventArgs e)
{
[Link]("[Link]");
}
}
[Link] :-
using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
61
}
[Link](fname).Selected = true;
[Link] = fid;
[Link](fname).Selected = true;
[Link] = fid;
}
62
[Link] :-
using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
63
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataTable dt = new DataTable();
[Link](dt);
if ([Link] > 0)
{
[Link] = [Link]([Link][0]["Fare"]);
[Link] = [Link]([Link][0]
["Departure_Time"]);
[Link] = [Link]([Link][0]
["Arrival_Time"]);
[Link] = [Link]([Link][0]
["Flight_Number"]);
[Link]([Link]([Link][0]
["Origin"])).Selected = true;
[Link]([Link]([Link][0]
["Destination"])).Selected = true;
}
[Link](fname).Selected = true;
[Link] = fid;
}
[Link] :-
using System;
using [Link];
using [Link];
64
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
65
[Link] = [Link]([Link][0]
["Arrival_Time"]);
[Link] = [Link]([Link][0]
["Flight_Number"]);
[Link]([Link]([Link][0]
["Origin"])).Selected = true;
[Link]([Link]([Link][0]
["Destination"])).Selected = true;
}
[Link](fname).Selected = true;
[Link] = fid;
}
[Link] :-
using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
66
string fname = [Link];
[Link](fname).Selected = true;
[Link] = fid;
}
67
protected void lbtnBackHome_Click(object sender, EventArgs e)
{
[Link]("[Link]");
}
Conclusion
68
The Online Flight Booking System is developed using
[Link] with C# and SQL 2003 server fully meets the
objectives of the system for which it has been
developed. The system has reached a steady state
where all bugs have been eliminated. The system is
operated at a high level of efficiency and the users
associated with the system fully understand its
advantage. The system solves the problem of high
complexity. It was intended to solve as requirement
specification.
Bibliography
1. [Link] 3.5 in C# 2008
69
2. Black book of [Link] 3.5 framework
70