Final Documentation of 4th Year Project
Final Documentation of 4th Year Project
Final Documentation of 4th Year Project
Debajyoti Pal
University Roll No.: 10900111033
Registration No.: 111090110033
Deepanjan Mandal
University Roll No.: 10900111038
Registration No.: 111090110038
Ritendu Sen
University Roll No.: 10900111074
Registration No.: 111090110074
Project Group:
Name Signature
1. ____________________ _____________________
2. ____________________ _____________________
3. ____________________ _____________________
4. ____________________ _____________________
Project Overview :
The Online Airline Reservation System project is an
implementation of a general Airline Ticketing application which helps
the customers to search the availability and prices of various airline
tickets, along with the different packages available with the
reservations. This project also covers various features like online
registration of the users, modifying the details of the website by the
management staff or administrator of the website, by adding, deleting
or modifying the customer details, flights or packages information.
Existing System :
The major limitations in the existing system are-
Modifications are complicated
Much time consuming
Error prone
Unauthorized access of data
Proposed System :
The main objectives of proposed system are-
Complex functions are done automatically
Processing time can be minimized
Simple and easy to manage
Chances of errors are removed
Faster and more accurate than the existing
system
Easy for handling reports
Goal of Implementation :
There are some goals of this project, mentioned below:
To make a new conceptual web based process on
online airline reservation system only for avoiding
the process complexity and other problems of the
manual reservation system.
By making it online process, a whole airline
booking process can reach at everyone’s own
place through internet to fulfil his requirements.
It makes everyone’s life style easy in short time
with new technology through the internet.
Entity Relationship Diagram(ERD) :
Data Flow Diagram(DFD) :
0 Level DFD :
1 Level DFD :
2 Level DFD :
Software Requirements :
Operating System: Windows 7 or better.
Language: Html
Front End: Html Pad 2014, Netbeans 7.3.1 (Choice
of the developer.)
Back End: Sql Server 2010 (Choice of the
developer.)
To be developed…
Hardware Requirements :
External Interfaces :
The different types of interfaces that we would come
across while developing the Airline Reservation System application
are as follows:
User Interface
Hardware Interface
Software Interface
User Interfaces :
There are two types of users for the Airline
Reservation System project. One is the customer and the other is the
administrator. Both the customer and administrator user interface
would be a graphical user interface.
The Graphical User Interface would mainly consist
of Hyperlinks, Data entry fields like the E-mail Id field,
push down buttons like the Login button etc.
Hardware Interfaces :
The system must basically support certain input and
output devices. Their descriptions are as follows-
Software Interfaces :
The application should run on a Windows 7
Operating System. Since the application needs a database to
store all the customer details, airline, source and destination
information, SQL server would be used.
HTML would be used for creating the application.
All the coding will be done in HTML.
Functional Requirements :
The functional requirements of the Airline
Reservation System are divided among the customer and the
administrator of the application.
These functional requirements can be explained in
detail as follows :
ADMIN :
HOME.html:
<!DOCTYPE html>
<html>
<title>HOME</title>
<!--<body style="background-color:#00FFFF">-->
<head>
</head>
<p></p><!--<H1 style="color:navy">-->
<!--</p>-->
<!--</H1>-->
<style>
th{
text-align: center;
background-color: #000000;
</style>
</tr>
</table>
<br><fieldset style="background-color:white;border:groove">
<marquee direction="up">
<marquee direction="right">
</marquee>
</marquee><p>
</span><BR>
</a></p></fieldset><BR>
<style type="text/css">
#tfheader{
background-color:#c3dfef;
#tfnewsearch{
float:right;
padding:20px;
.tftextinput{
margin: 0;
font-size:14px;
.tfbutton {
margin: 0;
font-size:14px;
outline: none;
cursor: pointer;
text-align: center;
text-decoration: none;
color: #ffffff;
.tfbutton:hover {
text-decoration: none;
background: #007ead;
.tfbutton::-moz-focus-inner {
border: 0;
.tfclear{
clear:both;
</style>
<div id="tfheader">
</form>
<div class="tfclear"></div>
</div>
<!--</body> -->
<br>
<tr>
<th>
</th>
<th>
</th>
</tr>
<tr>
<th>
</th>
<th>
</th>
</tr>
</table>
<br>
<marquee direction="right">
<h4 style="color:NAVY">
<b>
</b>
</P>
</h4>
</marquee>
<hr>
</BODY></html>
LOGIN.html :
<!DOCTYPE html>
<html>
<title>LOGIN</title>
</P>
<!--</marquee>-->
</h1>
<style>
th{
text-align: center;
background-color: #00A7D1;
</style>
<tr>
</tr>
</table>
<br>
<fieldset style="background-color:white;border:groove">
<marquee direction="up">
<marquee direction="right">
</marquee>
</marquee>
<p>
</p>
</fieldset>
<BR>
<head>
<style type="text/css">
#tfheader{
background-color:#c3dfef;
#tfnewsearch{
float:right;
padding:20px;
.tftextinput{
margin: 0;
.tfbutton {
margin: 0;
font-size:14px;
outline: none;
cursor: pointer;
text-align: center;
text-decoration: none;
color: #ffffff;
background: #0095cd;
.tfbutton:hover {
text-decoration: none;
background: #007ead;
.tfbutton::-moz-focus-inner {
border: 0;
.tfclear {
clear:both;
</style>
</head>
</td>
<div id="tfheader">
</form>
<div class="tfclear"></div>
</div>
</body>
<p> </p>
<style>
th{
text-align: center;
background-color: #000000;
</style>
<tr>
</tr>
</table>
<tr>
</tr>
</table>
<table style="width:1335px">
<tr>
<td>
<div style="text-align: left">
td {
input {
border: 1px solid #CCCCCC; border-radius: 5px; color: #666666; display: inline-
block; font-size: 1.00em; padding: 5px; width: 100%;
height: auto; width: auto; cursor: pointer; box-shadow: 0px 0px 5px #0361A8; float:
right; margin-top: 10px;
table.center {
margin-left:auto; margin-right:auto;
.error {
</style>
<table class='center'>
<tr><td colspan=2> </td></tr>
</table>
</form>
</div></div></div>
</td>
</td>
<td>
td {
input {
border: 1px solid #CCCCCC; border-radius: 5px; color: #666666; display: inline-
block; font-size: 1.00em; padding: 5px; width: 100%;
height: auto; width: auto; cursor: pointer; box-shadow: 0px 0px 5px #0361A8; float:
right; margin-top: 10px;
table.center {
margin-left:auto; margin-right:auto;
.error {
</style>
<table class='center'>
</table>
</form>
</div></div></div>
</td>
</tr>
</table>
<br>
<style>
fieldset{
border-color: #00FF00;
</style>
<center>
<FIELDSET style="background-color:#000033;WIDTH:1000px">
</TABLE>
</fieldset>
</center>
<marquee direction="right">
<h4 style="color:NAVY">
<b>
</b>
</P>
</h4>
</marquee>
<hr>
</html>
REGISTRATION.html
<!DOCTYPE html>
<html>
<title>REGISTRATION</title>
<H1 style="color:navy">
</p>
</H1>
<style>
th{
text-align: center;
background-color: #FF0000;
</style>
<tr>
</tr>
</table>
<br>
<fieldset style="background-color:white;border:groove">
<marquee direction="up">
<marquee direction="right">
</marquee>
</marquee>
<p>
</p>
</fieldset>
<head>
<style type="text/css">
#tfheader{
background-color:<!--#c3dfef-->transparent;
#tfnewsearch{
float:right;
padding:0px;
.tftextinput{
margin: 0;
font-size:14px;
.tfbutton {
margin: 0;
font-size:14px;
outline: none;
cursor: pointer;
text-align: center;
text-decoration: none;
color: #ffffff;
background: #0095cd;
.tfbutton:hover {
text-decoration: none;
background: #007ead;
border: 0;
.tfclear{
clear:both;
</style>
</head>
<div id="tfheader">
</form>
<div class="tfclear"></div>
</div>
</body>
<h2 style="color:LIME">
</p>
</h2>
<fieldset>
<legend>
<b>
<p style="background-color:#33FF66">
Personal information:
</p>
</b>
</legend>
<table>
</table>
<br>
</fieldset>
<p></p>
<fieldset>
<legend>
<b>
<p style="background-color:#33FF66">
Password Fields:
</p>
</b>
</legend>
<table>
</table>
<br>
</fieldset>
<p></p>
<!--<fieldset>
<legend>
<b>
<p style="background-color:#33FF66">
Qualificational details:
</p>
</b>
</legend>
<table>
</table>
<br>
</fieldset>
-->
<p></p>
<fieldset>
<legend>
<b>
<p style="background-color:#33FF66">
Interested fields:
</p>
</b>
</legend>
<table>
<tr><td>Flight Name:</TD><TD> <input type="text" name="MovieName" value=""
size="30" required></TD></TR>
</table>
<p>
</p>
</fieldset>
</form>
<br>
<p>
<p style="color:red">
<strong>N.B:</strong> <i>If you once click the "Submit" button, all the inserted data will
become not changable!!!".</i>
</p>
<p style="color:red">
</p>
</p>
</HTML>
GALLERY.html
<!DOCTYPE HTML>
<html>
<title>GALLERY</title>
</p>
</h1>
<style>
th{
text-align: center;
background-color: #000000;
</style>
<tr>
</tr>
</table>
<br>
<fieldset style="background-color:white;border:groove">
<marquee direction="up">
<marquee direction="right">
</marquee>
</marquee>
<p>
</p>
</fieldset>
<BR>
<body background=p.jpg>
<div id="tfheader">
</form>
<div class="tfclear"></div>
</div>
</body>
<style type="text/css">
#tfheader{
background-color:TRANSPARENT;
#tfnewsearch{
float:right;
padding:0px;
.tftextinput{
margin: 0;
font-size:14px;
.tfbutton {
margin: 0;
font-size:14px;
outline: none;
cursor: pointer;
text-align: center;
text-decoration: none;
color: #ffffff;
background: #0095cd;
.tfbutton:hover {
text-decoration: none;
background: #007ead;
background: -webkit-gradient(linear, left top, left bottom, from(#0095cc),
to(#00678e));
.tfbutton::-moz-focus-inner {
border: 0;
.tfclear{
clear:both;
</style>
</p>
</h2>
<tr>
</tr>
<tr>
<th><img src="Singapore-Airlines-Customer-Experience-Management.jpg" width="325"
height="325" alt="SA"></th>
</tr>
</table>
</p>
</h2>
<style>
th{
text-align: center;
color: #FF579A;
</style>
<body>
<center>
<tr>
<option>1. 0 STOP</option>
<option>2. 1 STOP</option>
<option>3. 1+ STOPS</option>
</select></th>
<option>6. 4 P.M-6P.M</option>
</select></th></TR>
<TR>
<option>6. 4 P.M-6P.M</option>
</select></th>
<option>3. THAI</option>
<option>4. EMIRATES</option>
<option>5. FEDEX EXPRESS</option>
<option>7. MALAYSIA</option>
<option>8. KINGFISHER</option>
<option>9. EGYPTIAR</option>
</select></th>
</tr>
</table>
</center>
</p>
</h2>
<!--<style>
tD{
text-align: center;
color: BLACK;
</style>-->
<style>
fieldset{
border-color: lime;
}
</style>
<CENTER>
<FIELDSET style="background-color:black;WIDTH:780px">
<TR>
</tr>
</table>
<tr>
type="radio" name="way_fields"
value="one_way"/><b>ONE WAY</b></span>
</a></td>
</a></td>
type="radio" name="way_fields"
value="multi_city"/><b>MULTI CITY / STOP OVER</b></span>
</a></td>
</TR>
</TABLE>
<tr>
</TR>
</TABLE>-->
<tr>
<td></td>
<td></td>
<tr>
<td></td>
</tr>
</table>
<br>
<tr>
<td>|| </td>
</tr>
</table>
<tr>
<td>
<!--adult-->
<field style="background-color:white">
</field>
<p></p>
</td>
<td> </td>
<td>
<field style="background-color:white">
<span class="form-control
childCount"> 0 </span>
</field>
<p></p>
</td>
<td> </td>
<td>
<!-- infant -->
<field style="background-color:white">
</field>
<p></p>
</td>
<td> </td>
<td>
<p class="modify_captions">Class:</p>
<option value="E"
class="economy_class">Economy</option>
<option value="PE"
class="premium_class">Premium Economy</option>
<option value="B"
class="business_class">Business</option>
</select>
<p></p>
<!-- /economy [ Visible till Tablets ] -->
</td>
</tr>
</table>
<TR>
</tr>
</table>
</FIELDSET>
</CENTER>
<BR>
<marquee direction="right">
<h4 style="color:NAVY">
<b>
</b>
</P>
</h4>
</marquee>
<hr>
<div id="footer" style="background-color:#FFA500; clear: both; text-
align:center;"><b>Copyright © DEB CORPORATION.</b></div>
</html>
JOINUS .html
<!DOCTYPE html>
<html>
<title>JOIN US</title>
<!--<body style="background-color:#00FFFF">-->
<H1 style="color:navy">
</p>
</H1>
<style>
th{
text-align: center;
background-color: #000000;
</style>
<tr>
<th width="100" height="50"><a href="HOME.html"><img src="home.jpg" width="100"
height="50" alt="HOME" align="middle"></a></th>
</tr>
</table>
<br>
<fieldset style="background-color:white;border:groove">
<marquee direction="up">
<marquee direction="right">
</marquee>
</marquee>
<p>
</p>
</fieldset>
<BR>
<head>
<style type="text/css">
#tfheader{
background-color:#c3dfef;
#tfnewsearch{
float:right;
padding:20px;
.tftextinput{
margin: 0;
font-size:14px;
.tfbutton {
margin: 0;
font-size:14px;
outline: none;
cursor: pointer;
text-align: center;
text-decoration: none;
color: #ffffff;
background: #0095cd;
.tfbutton:hover {
text-decoration: none;
background: #007ead;
.tfbutton::-moz-focus-inner {
border: 0;
.tfclear{
clear:both;
</style>
</head>
<body background=w.jpg style="background-color:#DA70D6" >
<div id="tfheader">
</form>
<div class="tfclear"></div>
</div>
<!--</body>-->
<br>
<br>
<style>
fieldset{
border-color: lime;
</style>
<center>
<FIELDSET style="background-color:black;WIDTH:1000px">
</TABLE>
<H2><span style="color: LIME"><B>Other Opportunities to Join FLIGHT
GALAXY</B></span></H2>
<tr>
</tr>
<tr>
</tr>
</table>
<br>
</fieldset>
</center>
<br>
<marquee direction="right">
<h4 style="color:NAVY">
<b>
</b>
</P>
</h4>
</marquee>
<br>
<marquee direction="left">
<h4 style="color:NAVY">
<b>
</b>
</P>
</h4>
</marquee>
<br>
<marquee direction="right">
<h4 style="color:NAVY">
<b>
</b>
</P>
</h4>
</marquee>
<hr>
<!--</BODY>-->
</html>
CONTACTUS.html
<!DOCTYPE html>
<html>
<title>CONTACT US</title>
<H1 style="color:blue">
</p>
</H1>
<style>
th{
text-align: center;
background-color: #000000;
</style>
<tr>
</tr>
</table>
<fieldset style="background-color:white;border:groove">
<marquee direction="up">
<marquee direction="right">
</marquee>
</marquee>
<p>
</p>
</fieldset>
<BR>
<div id="tfheader">
</form>
<div class="tfclear"></div>
</div>
</body>
<!--<a
href="file:///C:/Users/Debajyoti%20Pal/Downloads/MY_WEBPAGE/HOME.html"><b><p
style="text-align:left">HOME</b></p></a>
<style type="text/css">
#tfheader{
background-color:transparent;
#tfnewsearch{
float:right;
padding:0px;
.tftextinput{
margin: 0;
font-size:14px;
.tfbutton {
margin: 0;
font-size:14px;
outline: none;
cursor: pointer;
text-align: center;
text-decoration: none;
color: #ffffff;
background: #0095cd;
background: -webkit-gradient(linear, left top, left bottom, from(#00adee),
to(#0078a5));
.tfbutton:hover {
text-decoration: none;
background: #007ead;
.tfbutton::-moz-focus-inner {
border: 0;
.tfclear{
clear:both;
</style>
</head>
</P>
</h2></span></center></b>
<TR>
</TABLE>
<marquee direction="right">
<h4 style="color:NAVY">
<b>
</b>
</P>
</h4>
</marquee>
<hr>
</html>
DOWNLOADUS.html
<!DOCTYPE html>
<html>
<title>DOWNLOAD</title>
<H1 style="color:blue">
</p>
</H1>
<style>
th{
text-align: center;
background-color: #000000;
</style>
<tr>
</tr>
</table>
<BR>
<fieldset style="background-color:white;border:groove">
<marquee direction="up">
<marquee direction="right">
</marquee>
</marquee>
</fieldset>
<br>
<style type="text/css">
#tfheader{
background-color:transparent;
#tfnewsearch{
float:right;
padding:0px;
.tftextinput{
margin: 0;
font-size:14px;
.tfbutton {
margin: 0;
font-size:14px;
outline: none;
cursor: pointer;
text-align: center;
text-decoration: none;
color: #ffffff;
background: #0095cd;
.tfbutton:hover {
text-decoration: none;
background: #007ead;
.tfbutton::-moz-focus-inner {
border: 0;
.tfclear{
clear:both;
</style>
</head>
<body background=wp.jpg>
<div id="tfheader">
</form>
<div class="tfclear"></div>
</div>
</body>
<BR>
<CENTER>
<H2 style="background-color:lime">
</H2>
<br>
<table>
<tr>
<td><a
href="https://play.google.com/store/apps/details?id=net.aviascanner.aviascanner"><img
src="ph5.jpg" width="180" height="300" style="float: left" alt="ANDROID
PHONES"></td></a>
<td></td>
<td></td>
<td></td>
<td><a href="http://www.windowsphone.com/en-in/store/app/fastticket/cc9d7bb4-370a-
47f2-ab28-5b883036e2a4"><img src="ph3.jpg" width="200" height="300" style="float: left"
alt="WINDOWS PHONE"></td></a>
<td></td>
</tr>
<tr></tr>
<tr>
<td><a
href="https://play.google.com/store/apps/details?id=net.aviascanner.aviascanner"><img
src="i4.jpg" width="180" height="50" style="float: left" alt="PRINCE OF
PPERSIA"></td></a>
<td></td>
<td></td>
<td></td>
<td><a href="http://www.windowsphone.com/en-in/store/app/fastticket/cc9d7bb4-370a-
47f2-ab28-5b883036e2a4"><img src="i2.jpg" width="200" height="50" style="float: left"
alt="PRINCE OF PPERSIA"></td></a>
<td></td>
<td><a href="http://www.windowsphone.com/en-in/store/app/fastticket/cc9d7bb4-370a-
47f2-ab28-5b883036e2a4"><img src="i5.jpg" width="400" height="50" style="float:LEFT"
alt="PRINCE OF PPERSIA"></td></a>
</tr>
</table>
</CENTER>
<marquee direction="right">
<h4 style="color:NAVY">
<b>
</b>
</P>
</h4>
</marquee>
<hr>
<div id="footer" style="background-color:#FFA500; clear: both; text-
align:center;"><b>Copyright © DEB CORPORATION.</b></div>
</html>
PAYMENT.html
<!DOCTYPE html>
<html>
<title>PAYMENT</title>
<H1 style="color:blue">
</p>
</H1>
<style>
th{
text-align: center;
background-color: #000000;
</style>
<tr>
</tr>
</table>
<BR>
<fieldset style="background-color:white;border:groove">
<marquee direction="up">
<marquee direction="right">
</marquee>
</marquee>
</fieldset>
<br>
<style type="text/css">
#tfheader{
background-color:transparent;
#tfnewsearch{
float:right;
padding:0px;
.tftextinput{
margin: 0;
font-size:14px;
.tfbutton {
margin: 0;
font-size:14px;
outline: none;
cursor: pointer;
text-align: center;
text-decoration: none;
color: #ffffff;
background: #0095cd;
.tfbutton:hover {
text-decoration: none;
background: #007ead;
.tfbutton::-moz-focus-inner {
border: 0;
.tfclear{
clear:both;
</style>
</head>
<body background=py.jpg>
<div id="tfheader">
</form>
<div class="tfclear"></div>
</div>
</body>
<BR>
<CENTER>
<H2 style="background-color:lime">
</H2>
<br>
<tr bgcolor="#E5E5E5">
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
<td height="22" align="right" valign="middle">State/Province:</td>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr bgcolor="#E5E5E5">
</tr>
<tr>
<tr>
</SELECT> /
<SELECT NAME="CCExpiresYear">
<OPTION VALUE="04">2004
<OPTION VALUE="05">2005
<OPTION VALUE="06">2006
<OPTION VALUE="07">2007
<OPTION VALUE="08">2008
<OPTION VALUE="09">2009
<OPTION VALUE="10">2010
<OPTION VALUE="11">2011
<OPTION VALUE="12">2012
<OPTION VALUE="13">2013
<OPTION VALUE="14">2014
<OPTION VALUE="15">2015
</SELECT>
</td>
</tr>
<tr>
</tr>
<tr bgcolor="#E5E5E5">
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</table>
<BR>
</form>
</table>
</CENTER>
<marquee direction="right">
<h4 style="color:NAVY">
<b>
</b>
</P>
</h4>
</marquee>
<hr>
</html>
TICKET.html :
<!DOCTYPE html>
<html>
<title>TICKET</title>
<H1 style="color:blue">
</p>
</H1>
<!--<style>
th{
text-align: center;
background-color: #000000;
</style>-->
<body background=tk.jpg>
<center>
</center>
</body>
<h2 style="color:black">
</p>
</h2>
<center>
</center>
<hr>
</html>
ADMIN.java:
package OnlineAirReservationSystem;
import java.io.Serializable;
return aid;
return fname;
}
public String getLName() {
return lname;
return paddress;
return dist;
return state;
return phone;
return email;
return dob;
this.aid = aid;
}
public void setFName(String fname) {
this.fname = fname;
this.lname = lname;
this.paddress = paddress;
this.dist = dist;
this.state = state;
this.phone = phone;
this.email = email;
this.dob = dob;
}
public Admin(String aid, String fname, String lname, String paddress, String dist,
String state, String phone,
super();
this.aid = aid;
this.fname = fname;
this.lname = lname;
this.paddress = paddress;
this.dist = dist;
this.state = state;
this.phone = phone;
this.email = email;
this.dob = dob;
DATABASE.java:
package OnlineAirReservationSystem;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
}
public static void writingToPassengerDB(ArrayList<Passenger> list)
throws Exception
{
ObjectOutputStream write;
FileOutputStream file=new FileOutputStream("PassengerDB");
write=new ObjectOutputStream(file);
write.writeObject(list);
write.close();
}
public static ArrayList<Passenger> readingFromPassengerDB() throws
Exception
{
ObjectInputStream read;
FileInputStream file=new FileInputStream("PassengerDB");
read=new ObjectInputStream(file);
ArrayList<Passenger>
list=(ArrayList<Passenger>)read.readObject();
read.close();
return list;
}
public static void writingToFlightDB(ArrayList<Flight> list) throws
Exception
{
ObjectOutputStream write;
FileOutputStream file=new FileOutputStream("FlightDB");
write=new ObjectOutputStream(file);
write.writeObject(list);
write.close();
}
public static ArrayList<Flight> readingFromFlightDB() throws
Exception
{
ObjectInputStream read;
FileInputStream file=new FileInputStream("FlightDB");
read=new ObjectInputStream(file);
ArrayList<Flight> list=(ArrayList<Flight>)read.readObject();
read.close();
return list;
}
}
FLIGHT.java:
package OnlineAirReservationSystem;
import java.io.Serializable;
LOGIN.java:
package OnlineAirReservationSystem;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPasswordField;
import javax.swing.JTextField;
SUBMIT=new JButton("SUBMIT");
label3.setBounds(550,50,300,10);
label1.setBounds(520,100,100,20);
text1.setBounds(620,100,200,20);
label2.setBounds(520,130,100,20);
text2.setBounds(620,130,200,20);
SUBMIT.setBounds(620,180,100,25);
add(label3);
add(label1);
add(text1);
add(label2);
add(text2);
add(SUBMIT);
SUBMIT.addActionListener(this);
setVisible(true);
setSize(1365,765);
}
public void actionPerformed(ActionEvent ev)
{
String str1="FG";
String str2="123";
if((str1.equals(text1.getText())) &&
(str2.equals(text2.getText())))
{
new MenuDesign();
}
else
{
setVisible(true);
JOptionPane.showMessageDialog(this,
"Your username or password is incorrect.","This
is the dialog message" , JOptionPane.PLAIN_MESSAGE);
}
}
public static void main(String arg[])
{
new Login();
}
}
MENUDESIGN.java:
package OnlineAirReservationSystem;
import java.awt.FlowLayout;
import java.awt.MenuBar;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
public MenuDesign()
{
setLayout(new FlowLayout());
menubar=new JMenuBar();
////admin///
newadmin=new JMenuItem("New Admin Entry ");
viewalladmin=new JMenuItem("View All Admins
Entry ");
menuadmin.add(newadmin);
menuadmin.add(viewalladmin);
menubar.add(menuadmin);
menubar.add(menupassenger);
menubar.add(menuflights);
add(menubar);
setTitle("Menu Form");
setSize(500,200);
setResizable(false);
setVisible(true);
newadmin.addActionListener(this);
viewalladmin.addActionListener(this);
//////////////////////passenger////////////
menupassenger.add(newpassenger);
menupassenger.add(viewallpassenger);
newpassenger.addActionListener(this);
viewallpassenger.addActionListener(this);
menuflights.add(newflights);
menuflights.add(viewallflights);
///register flights ///
newflights.addActionListener(this);
viewallflights.addActionListener(this);
}
if(event.getSource()==newadmin)
new UIAdminEntry();
if(event.getSource()==viewalladmin)
new ViewAllAdmin();
if(event.getSource()==newpassenger)
new UIPassengerEntry();
if(event.getSource()==viewallpassenger)
new ViewAllPassenger();
if(event.getSource()==newflights)
new UIFlightsEntry();
if(event.getSource()==viewallflights)
new ViewAllFlights();
}
PASSENGER.java :
package OnlineAirReservationSystem;
import java.io.Serializable;
private String
pid,fname,lname,paddress,dist,state,phone,email,dob,flname,depct,
desct,setpswrd,retyppswrd,intdt,inttm;
private int rst,tktpr;
UIADMINENTRY.java:
package OnlineAirReservationSystem;
import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import javax.swing.Box;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
private JLabel
lblaid,lblfname,lbllname,lblpaddress,lbldist,lblstate,lblphone,lblem
ail,lbldob;
private JTextField
txtaid,txtfname,txtlname,txtpaddress,txtdist,txtstate,txtphone,txtem
ail,txtdob;
private JButton btnadd,btnrefresh,btnsave;
private Box
boxbutton,boxaid,boxfname,boxlname,boxpaddress,boxdist,boxstat
e,boxphone,boxemail,boxdob,boxinput;
public UIAdminEntry() {
list=new ArrayList<Admin>();
try{
list=DataBase.readingFromAdminDB();
}
catch(Exception e)
{
System.out.println("File not found");
}
if(list.size()==0)
aid=1;
else
aid=Integer.parseInt(list.get(list.size()-
1).getAid())+1;
txtaid=new JTextField(10);
txtaid.setText(""+aid);
txtaid.setEditable(false);
txtfname=new JTextField(10);
txtlname=new JTextField(10);
txtpaddress=new JTextField(10);
txtdist=new JTextField(10);
txtstate=new JTextField(10);
txtphone=new JTextField(10);
txtemail=new JTextField(10);
txtdob=new JTextField(10);
btnadd=new JButton("Add");
btnrefresh=new JButton("Refresh");
btnsave=new JButton("Save");
boxbutton=Box.createHorizontalBox();
boxbutton=Box.createHorizontalBox();
boxaid=Box.createHorizontalBox();
boxfname=Box.createHorizontalBox();
boxlname=Box.createHorizontalBox();
boxpaddress=Box.createHorizontalBox();
boxdist=Box.createHorizontalBox();
boxstate=Box.createHorizontalBox();
boxphone=Box.createHorizontalBox();
boxemail=Box.createHorizontalBox();
boxdob=Box.createHorizontalBox();
boxinput=Box.createVerticalBox();
boxaid.add(lblaid);
boxaid.add(txtaid);
boxfname.add(lblfname);
boxfname.add(txtfname);
boxlname.add(lbllname);
boxlname.add(txtlname);
boxpaddress.add(lblpaddress);
boxpaddress.add(txtpaddress);
boxdist.add(lbldist);
boxdist.add(txtdist);
boxstate.add(lblstate);
boxstate.add(txtstate);
boxphone.add(lblphone);
boxphone.add(txtphone);
boxemail.add(lblemail);
boxemail.add(txtemail);
boxdob.add(lbldob);
boxdob.add(txtdob);
boxbutton.add(btnadd);
boxbutton.add(btnrefresh);
boxbutton.add(btnsave);
boxinput.add(boxaid);
boxinput.add(boxfname);
boxinput.add(boxlname);
boxinput.add(boxpaddress);
boxinput.add(boxdist);
boxinput.add(boxstate);
boxinput.add(boxphone);
boxinput.add(boxemail);
boxinput.add(boxdob);
add(boxbutton,BorderLayout.SOUTH);
add(boxinput,BorderLayout.CENTER);
setSize(450,290);
setVisible(true);
setTitle("Admin Entry Form");
btnsave.setEnabled(false);
btnadd.addActionListener(this);
btnrefresh.addActionListener(this);
btnsave.addActionListener(this);
if(event.getSource()==btnrefresh)
{
refreshAll();
}
if(event.getSource()==btnsave)
{
btnadd.setEnabled(true);
btnsave.setEnabled(false);
try
{
DataBase.writingToAdminDB(list);
}
catch (Exception exp)
{
System.out.println("Cannot write to
Database");
}
}
}
public void addAdmin()
{
btnadd.setEnabled(false);
btnsave.setEnabled(true);
list.add(getAdmin());
aid=Integer.parseInt(txtaid.getText())+1;
txtaid.setText(""+aid);
refreshAll();
}
public Admin getAdmin()
{
String aid=txtaid.getText();
String fname=txtfname.getText();
String lname=txtlname.getText();
String paddress=txtpaddress.getText();
String dist=txtdist.getText();
String state=txtstate.getText();
String phone=txtphone.getText();
String email=txtemail.getText();
String dob=txtdob.getText();
Admin admin=new
Admin(aid,fname,lname,paddress,dist,state,phone,email,dob);
return admin;
}
public void refreshAll()
{
//txtaid.setText("");
txtfname.setText("");
txtlname.setText("");
txtpaddress.setText("");
txtdist.setText("");
txtstate.setText("");
txtphone.setText("");
txtemail.setText("");
txtdob.setText("");
}
}
UIFLIGHTENTRY.java:
package OnlineAirReservationSystem;
import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import javax.swing.Box;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
private JLabel
lblflname,lbldepct,lbldesct,lblflid,lbldeptm,lblarvtm,lblflfr,lbltotals
eat;
private JTextField
txtflname,txtdepct,txtdesct,txtflid,txtdeptm,txtarvtm,txtflfr,txttotals
eat;
private JButton btnadd,btnrefresh,btnsave;
private Box
boxbutton,boxflname,boxdepct,boxdesct,boxflid,boxdeptm,boxarvt
m,boxflfr,boxtotalseat,boxinput;
public UIFlightsEntry() {
list=new ArrayList<Flight>();
try{
list=DataBase.readingFromFlightDB();
}
catch(Exception e)
{
System.out.println("File not found");
}
if(list.size()==0)
flid=1;
else
flid=Integer.parseInt(list.get(list.size()-
1).getFlid())+1;
txtflid=new JTextField(10);
txtflid.setText(""+flid);
txtflid.setEditable(false);
txtflname=new JTextField(10);
txtdepct=new JTextField(10);
txtdesct=new JTextField(10);
txtdeptm=new JTextField(10);
txtarvtm=new JTextField(10);
txttotalseat=new JTextField(10);
txtflfr=new JTextField(10);
btnadd=new JButton("Add");
btnrefresh=new JButton("Refresh");
btnsave=new JButton("Save");
boxbutton=Box.createHorizontalBox();
boxbutton=Box.createHorizontalBox();
boxflid=Box.createHorizontalBox();
boxflname=Box.createHorizontalBox();
boxdepct=Box.createHorizontalBox();
boxdesct=Box.createHorizontalBox();
boxdeptm=Box.createHorizontalBox();
boxarvtm=Box.createHorizontalBox();
boxtotalseat=Box.createHorizontalBox();
boxflfr=Box.createHorizontalBox();
boxinput=Box.createVerticalBox();
boxflid.add(lblflid);
boxflid.add(txtflid);
boxflname.add(lblflname);
boxflname.add(txtflname);
boxdepct.add(lbldepct);
boxdepct.add(txtdepct);
boxdesct.add(lbldesct);
boxdesct.add(txtdesct);
boxdeptm.add(lbldeptm);
boxdeptm.add(txtdeptm);
boxarvtm.add(lblarvtm);
boxarvtm.add(txtarvtm);
boxtotalseat.add(lbltotalseat);
boxtotalseat.add(txttotalseat);
boxflfr.add(lblflfr);
boxflfr.add(txtflfr);
boxbutton.add(btnadd);
boxbutton.add(btnrefresh);
boxbutton.add(btnsave);
boxinput.add(boxflid);
boxinput.add(boxflname);
boxinput.add(boxdepct);
boxinput.add(boxdesct);
boxinput.add(boxdeptm);
boxinput.add(boxarvtm);
boxinput.add(boxtotalseat);
boxinput.add(boxflfr);
add(boxbutton,BorderLayout.SOUTH);
add(boxinput,BorderLayout.CENTER);
setSize(450,290);
setVisible(true);
setTitle("Course Entry Form");
btnsave.setEnabled(false);
btnadd.addActionListener(this);
btnrefresh.addActionListener(this);
btnsave.addActionListener(this);
if(event.getSource()==btnrefresh)
{
refreshAll();
}
if(event.getSource()==btnsave)
{
btnadd.setEnabled(true);
btnsave.setEnabled(false);
try
{
DataBase.writingToFlightDB(list);
}
catch (Exception exp)
{
System.out.println("Cannot write to
Database");
}
}
}
public void addFlight()
{
btnadd.setEnabled(false);
btnsave.setEnabled(true);
list.add(getFlight());
flid=Integer.parseInt(txtflid.getText())+1;
txtflid.setText(""+flid);
refreshAll();
}
public Flight getFlight()
{
String flid=txtflid.getText().trim();
String flname=txtflname.getText();
String depct=txtdepct.getText();
String desct=txtdesct.getText();
String deptm=txtdeptm.getText().trim();
String arvtm=txtarvtm.getText().trim();
int
totalseat=Integer.parseInt(txttotalseat.getText().trim());
int flfr=Integer.parseInt(txtflfr.getText().trim());
Flight flight=new
Flight(flid,flname,depct,desct,deptm,arvtm,flfr,totalseat);
return flight;
}
public void refreshAll()
{
//txtflid.setText("");
txtflname.setText("");
txtdepct.setText("");
txtdesct.setText("");
txtdeptm.setText("");
txtarvtm.setText("");
txttotalseat.setText("");
txtflfr.setText(""); }}
UIPASSENGER.java
package OnlineAirReservationSystem;
import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import javax.swing.Box;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.JPasswordField;
private JLabel
lblpid,lblfname,lbllname,lblpaddress,lbldist,lblstate,lblphone,lblemail,lbldob,lblflname,lbldep
ct,lbldesct,lblsetpswrd,lblretyppswrd,lblintdt,lblinttm,lblrst,lbltktpr;
private JTextField
txtpid,txtfname,txtlname,txtpaddress,txtdist,txtstate,txtphone,txtemail,txtdob,txtflname,txtdep
ct,txtdesct,txtsetpswrd,txtretyppswrd,txtintdt,txtinttm,txtrst,txttktpr;
private JButton btnadd,btnrefresh,btnsave;
private Box
boxbutton,boxpid,boxfname,boxlname,boxpaddress,boxdist,boxstate,boxphone,boxemail,box
dob,boxflname,boxdepct,boxdesct,boxsetpswrd,boxretyppswrd,boxintdt,boxinttm,boxrst,boxt
ktpr,boxinput;
public UIPassengerEntry() {
list=new ArrayList<Passenger>();
try{
list=DataBase.readingFromPassengerDB();
catch(Exception e)
if(list.size()==0)
pid=1;
else
pid=Integer.parseInt(list.get(list.size()-1).getPid())+1;
txtpid=new JTextField(10);
txtpid.setText(""+pid);
txtpid.setEditable(false);
txtfname=new JTextField(10);
txtlname=new JTextField(10);
txtpaddress=new JTextField(10);
txtdist=new JTextField(10);
txtstate=new JTextField(10);
txtphone=new JTextField(10);
txtemail=new JTextField(10);
txtdob=new JTextField(10);
txtflname=new JTextField(10);
txtdepct=new JTextField(10);
txtdesct=new JTextField(10);
txtintdt=new JTextField(10);
txtinttm=new JTextField(10);
txtrst=new JTextField(10);
txttktpr=new JTextField(10);
txtsetpswrd=new JPasswordField(15);
txtretyppswrd=new JPasswordField(15);
btnadd=new JButton("Add");
btnrefresh=new JButton("Refresh");
btnsave=new JButton("Save");
boxbutton=Box.createHorizontalBox();
boxbutton=Box.createHorizontalBox();
boxpid=Box.createHorizontalBox();
boxfname=Box.createHorizontalBox();
boxlname=Box.createHorizontalBox();
boxpaddress=Box.createHorizontalBox();
boxdist=Box.createHorizontalBox();
boxstate=Box.createHorizontalBox();
boxphone=Box.createHorizontalBox();
boxemail=Box.createHorizontalBox();
boxdob=Box.createHorizontalBox();
boxflname=Box.createHorizontalBox();
boxdepct=Box.createHorizontalBox();
boxdesct=Box.createHorizontalBox();
boxsetpswrd=Box.createHorizontalBox();
boxretyppswrd=Box.createHorizontalBox();
boxintdt=Box.createHorizontalBox();
boxinttm=Box.createHorizontalBox();
boxrst=Box.createHorizontalBox();
boxtktpr=Box.createHorizontalBox();
boxinput=Box.createVerticalBox();
boxpid.add(lblpid);
boxpid.add(txtpid);
boxfname.add(lblfname);
boxfname.add(txtfname);
boxlname.add(lbllname);
boxlname.add(txtlname);
boxpaddress.add(lblpaddress);
boxpaddress.add(txtpaddress);
boxdist.add(lbldist);
boxdist.add(txtdist);
boxstate.add(lblstate);
boxstate.add(txtstate);
boxphone.add(lblphone);
boxphone.add(txtphone);
boxemail.add(lblemail);
boxemail.add(txtemail);
boxdob.add(lbldob);
boxdob.add(txtdob);
boxflname.add(lblflname);
boxflname.add(txtflname);
boxdepct.add(lbldepct);
boxdepct.add(txtdepct);
boxdesct.add(lbldesct);
boxdesct.add(txtdesct);
boxintdt.add(lblintdt);
boxintdt.add(txtintdt);
boxinttm.add(lblinttm);
boxinttm.add(txtinttm);
boxrst.add(lblrst);
boxrst.add(txtrst);
boxtktpr.add(lbltktpr);
boxtktpr.add(txttktpr);
boxsetpswrd.add(lblsetpswrd);
boxsetpswrd.add(txtsetpswrd);
boxretyppswrd.add(lblretyppswrd);
boxretyppswrd.add(txtretyppswrd);
boxbutton.add(btnadd);
boxbutton.add(btnrefresh);
boxbutton.add(btnsave);
boxinput.add(boxpid);
boxinput.add(boxfname);
boxinput.add(boxlname);
boxinput.add(boxpaddress);
boxinput.add(boxdist);
boxinput.add(boxstate);
boxinput.add(boxphone);
boxinput.add(boxemail);
boxinput.add(boxdob);
boxinput.add(boxflname);
boxinput.add(boxdepct);
boxinput.add(boxdesct);
boxinput.add(boxintdt);
boxinput.add(boxinttm);
boxinput.add(boxrst);
boxinput.add(boxtktpr);
boxinput.add(boxsetpswrd);
boxinput.add(boxretyppswrd);
add(boxbutton,BorderLayout.SOUTH);
add(boxinput,BorderLayout.CENTER);
setSize(450,500);
setVisible(true);
btnsave.setEnabled(false);
btnadd.addActionListener(this);
btnrefresh.addActionListener(this);
btnsave.addActionListener(this);
}
if(event.getSource()==btnadd)
addPassenger();
if(event.getSource()==btnrefresh)
refreshAll();
if(event.getSource()==btnsave)
btnadd.setEnabled(true);
btnsave.setEnabled(false);
try
DataBase.writingToPassengerDB(list);
btnadd.setEnabled(false);
btnsave.setEnabled(true);
list.add(getPassenger());
pid=Integer.parseInt(txtpid.getText())+1;
txtpid.setText(""+pid);
refreshAll();
String pid=txtpid.getText();
String fname=txtfname.getText();
String lname=txtlname.getText();
String paddress=txtpaddress.getText();
String dist=txtdist.getText();
String state=txtstate.getText();
String phone=txtphone.getText();
String email=txtemail.getText();
String dob=txtdob.getText();
String flname=txtflname.getText();
String depct=txtdepct.getText();
String desct=txtdesct.getText();
String setpswrd=txtsetpswrd.getText().trim();
String retyppswrd=txtretyppswrd.getText().trim();
String intdt=txtintdt.getText().trim();
String inttm=txtinttm.getText().trim();
int rst=Integer.parseInt(txtrst.getText().trim());
int tktpr=Integer.parseInt(txttktpr.getText().trim());
Passenger passenger=new
Passenger(pid,fname,lname,paddress,dist,state,phone,email,dob,flname,depct,desct,setpswrd,
retyppswrd,intdt,inttm,rst,tktpr);
return passenger;
//txtpid.setText("");
txtfname.setText("");
txtlname.setText("");
txtpaddress.setText("");
txtdist.setText("");
txtstate.setText("");
txtphone.setText("");
txtemail.setText("");
txtdob.setText("");
txtflname.setText("");
txtdepct.setText("");
txtdesct.setText("");
txtsetpswrd.setText("");
txtretyppswrd.setText("");
txtintdt.setText("");
txtinttm.setText("");
txtrst.setText("");
txttktpr.setText("");
VIEWADMIN.java
package OnlineAirReservationSystem;
import java.util.ArrayList;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTable;
list=new ArrayList<Admin>();
try
list=DataBase.readingFromAdminDB();
catch(Exception exp)
System.out.println("No Records");
data=new String[list.size()][9];
int index,row=0,col=0;
for(index=0;index<list.size();index++)
Admin admin=list.get(index);
data[row][col]=admin.getAid();
data[row][++col]=admin.getFName();
data[row][++col]=admin.getLName();
data[row][++col]=admin.getPAddress();
data[row][++col]=admin.getDist();
data[row][++col]=admin.getState();
data[row][++col]=admin.getPhone();
data[row][++col]=admin.getEmail();
data[row][++col]=admin.getDob();
col=0;
++row;
table=new JTable(data,heading);
pane=new JScrollPane(table);
add(pane);
setSize(1365,500);
setVisible(true);
VIEWALLFLIGHTS.java
package OnlineAirReservationSystem;
import java.util.ArrayList;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTable;
public ViewAllFlights()
list=new ArrayList<Flight>();
try
list=DataBase.readingFromFlightDB();
catch(Exception exp)
System.out.println("No Records");
data=new String[list.size()][8];
int index,row=0,col=0;
for(index=0;index<list.size();index++)
Flight flight=list.get(index);
data[row][col]=""+flight.getFlid();
data[row][++col]=flight.getFlname();
data[row][++col]=flight.getDepct();
data[row][++col]=flight.getDesct();
data[row][++col]=""+flight.getDeptm();
data[row][++col]=""+flight.getArvtm();
data[row][++col]=""+flight.getFlfr();
data[row][++col]=""+flight.getTotalseat();
col=0;
++row;
table=new JTable(data,heading);
pane=new JScrollPane(table);
add(pane);
setSize(1365,765);
setVisible(true);
VIEWALLPASSENGER.java
package OnlineAirReservationSystem;
import java.util.ArrayList;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTable;
public class ViewAllPassenger extends JFrame
public ViewAllPassenger()
list=new ArrayList<Passenger>();
try
list=DataBase.readingFromPassengerDB();
catch(Exception exp)
System.out.println("No Records");
data=new String[list.size()][18];
int index,row=0,col=0;
for(index=0;index<list.size();index++)
Passenger passenger=list.get(index);
data[row][col]=passenger.getPid();
data[row][++col]=passenger.getFName();
data[row][++col]=passenger.getLName();
data[row][++col]=passenger.getPAddress();
data[row][++col]=passenger.getDist();
data[row][++col]=passenger.getState();
data[row][++col]=passenger.getPhone();
data[row][++col]=passenger.getEmail();
data[row][++col]=passenger.getDob();
data[row][++col]=passenger.getFlname();
data[row][++col]=passenger.getDepct();
data[row][++col]=passenger.getDesct();
data[row][++col]=""+passenger.getSetpswrd();
data[row][++col]=""+passenger.getRetyppswrd();
data[row][++col]=""+passenger.getIntdt();
data[row][++col]=""+passenger.getInttm();
data[row][++col]=""+passenger.getRst();
data[row][++col]=""+passenger.getTktpr();
col=0;
++row;
table=new JTable(data,heading);
pane=new JScrollPane(table);
add(pane);
setSize(1365,765);
setVisible(true);
1. Home Pages :
2. Login Pages :
3. Registration Pages :
4. Gallery Pages :
5. Join Us Pages :
6. Contact Us Pages :
7. Download Pages :
8. Payment Pages :
9. Ticket Pages :
3. Menudesign2 Page:
4. Menudesign3 Page:
5. AdminEntry Page :
6. PassengerEntry Page :
7. FlightEntry Page :
8. FlightDB Page :
Limitations :