0% found this document useful (0 votes)
337 views63 pages

AirLines Reservation System in WEB DEVELOPMENT PROJECT

This document is a mini project report submitted by Kiran B S for their course on Mini Project in Web Frameworks or Operating System. It details the development of an Airline Reservation System. The objectives are to develop a system that can be used by both administrators to manage flight schedules and bookings, and users to book and view flights. The report includes an introduction, requirements specification, and initial chapters on HTML, CSS, and JavaScript fundamentals as the technologies used.

Uploaded by

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

AirLines Reservation System in WEB DEVELOPMENT PROJECT

This document is a mini project report submitted by Kiran B S for their course on Mini Project in Web Frameworks or Operating System. It details the development of an Airline Reservation System. The objectives are to develop a system that can be used by both administrators to manage flight schedules and bookings, and users to book and view flights. The report includes an introduction, requirements specification, and initial chapters on HTML, CSS, and JavaScript fundamentals as the technologies used.

Uploaded by

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

A MINI PROJECT REPORT

for
Mini Project in Web Frameworks or Operating System (20CSE68)
on
<AIRLINE RESERVATION SYSTEM>

Submitted by

KIRAN B S
USN: 1NH20CS406, Sem-Sec: 6-C

In partial fulfilment for the award of the degree of

BACHELOR OF ENGINEERING
in

COMPUTER SCIENCE AND


ENGINEERING
Academic Year: 2021-22(EVEN SEM)

Page | 1
CERTIFICATE
This is to certify that the mini project work titled

AIRLINE RESERVATION SYSTEM


submitted in partial fulfillment of the degree of Bachelor of Engineering in
Computer Science and Engineering by

KIRAN B S
USN:1NH20CS406

DURING
EVEN SEMESTER 2021-2022
for
Course: Mini Project in Web Frameworks or Operating
System-20CSE68

Signature of Reviewer Signature of


HOD
SEMESTER END EXAMINATION

Name of the Examiner Signature with date

1.

2.

Page | 2
ACKNOWLEDGEMENT

The satisfaction and euphoria that accompany the successful completion of any task would be
impossible without the mention of the people who made it possible, whose constant guidance and
encouragement crowned our efforts with success.

I have great pleasure in expressing gratitude to Dr. Mohan Manghnani, Chairman, New Horizon
Educational Institutions, for providing necessary infrastructure and creating good environment.

I take this opportunity to express my profound gratitude to Dr. Manjunatha, Principal, New
Horizon College of Engineering, for his constant support and encouragement.

I would like to thank Dr. Anandhi R J, Professor and Dean-Academics, NHCE, for her valuable
guidance.

I would also like to thank Dr. B. Rajalakshmi, Professor and HOD, Department of Computer
Science and Engineering, for her constant support.

I also express my gratitude to Mr. Manjunatha Swamy C, Senior Assistant Professor,


Department of Computer Science and Engineering, my mini project reviewer, for constantly
monitoring the development of the project and setting up precise deadlines.

Her / His valuable suggestions were the motivating factors in completing the work.

Kiran B S
USN: 1NH20CS406

Page | 3
ABSTARCT

Objective:

The main aim of this project is develop an Airlines Reservation System this system
can used to the 2 types 1.Econamic 2.Bussiness.

1.Problem Definition:

Here details about Now airline tickets booking for traveling in user use to
booking this portal and travelling in one state to another state and one country
to another country.

1. Existing System:

Present System developed in web development there are some


limitations.

 It is scripting language
 It is very code complexity
 There is server controls in asp
 It Doesn’t Support language inter-operability
 Airlines Booking tickets: In this details about booked tickets and tick-
ets booking in airline
 Admin can update and delete purchase, sales and other details.
2. Users:
In this users can see the next upcoming flight different places go to the
dates , time and price ,cancel the tickets, finally print the tickets

Page | 4
CHAPTER 1
INTRODUCTION
1.1 PROBLEM DEFINITION

So, I am creating a web application which is an interactive and


responsive web application which portrays/showcases all the projects I
have done, interests of mine and a brief description of me. This web
applications uses mainly 4 languages i.e., HTML, CSS and PHP With
MYSQL.

Here details about Now airline tickets booking for traveling in user
use to booking this portal and travelling in one state to another state
and one country to another country.

1.1.1 OBJECTIVES

The main aim of this project is develop an Airlines Reservation


System this system can used to 2 sides administrator and user. the
admin is manage the flight system
ADMIN SIDE USER SIDE
 view booked the flight

 Add flight schedule details *. Book flight tickets


 Delete flight schedule details *.View booked flight tickets
 Add aircraft details *. Print booked tickets
 Activate aircraft details *.Cancel booked flight tickets
 Deactivate aircraft details

Page | 5
1.2 REQUIREMENT SPECIFICATION

1.2.1 HARDWARE REQUIREMENTS:

Processor : Any Processor above 500 MHz

RAM : 512MB (Not a disk intensive program)

Hard Disk : User Choice (as long as dynamic memory allocation works)

Input device : Standard Keyboard and Mouse

Output device : VGA and High-Resolution Monitor

Operating system : Windows 3.2 SOFTWARE REQUIREMENTS: IDE:

1.2.2 HARDWARE REQUIREMENTS:

This is a web-based application and does not require anything special in terms software
requirements we need a browser and vs-code IDE.

Page | 6
CHAPTER 2

FUNDAMENTALS OF HTML

2.1 INTRODUCTION TO HTML


HTML stands for Hyper Text Markup Language. It is used to design web pages
using a markup language. HTML is the combination of Hypertext and Markup
language. Hypertext defines the link between the web pages. A markup language
is used to define the text document within tag which defines the structure of web
pages. This language is used to annotate (make notes for the computer) text so that
a machine can understand it and manipulate text accordingly. Most markup
languages (e.g. HTML) are human-readable.

The language uses tags to define what manipulation has to be done on the text.

HTML is a markup language used by the browser to manipulate text, images,


and other content, in order to display it in the required format. HTML was created
by Tim Berners- Lee in 1991. The first-ever version of HTML was HTML 1.0, but
the first standard version was HTML 2.0, published in 1995.

Figure 2.1 UNDERSTANDING HTML

Page | 7
2.1.1 FEATURES OF HTML

 It is easy to learn and easy to use.


 It is platform-independent.
 Images, videos, and audio can be added to a web page.
 Hypertext can be added to the text.
 It is a markup language.
 HTML is the foundation of web pages, is used for webpage development
by structuring websites and web apps.

2.1.1.1 ELEMENTS AND TAGS:

HTML uses predefined tags and elements which tell the browser how to properly
display the content. Remember to include closing tags. If omitted, the browser
applies the effect of the opening tag until the end of the page.

Figure 2.2 Tags

Page | 8
2.1.1.2 WHY LEARN HTML

The basic structure of an HTML page is laid out below. It contains the essential
building- block elements (i.e., doctype declaration, HTML, head, title, and body
elements) upon which all web pages are created.

Figure 2.3 Structure

2.1.1.3 WHY LEARN HTML

 It is a simple markup language. Its implementation is easy.


 It is used to create a website.
 Helps in developing fundamentals about web programming.
 Boost professional career.

Page | 9
CHAPTER 3

FUNDAMENTALS OF CSS AND JAVASCRIPT

3.1 WHAT IS CSS?


CSS (Cascading Style Sheets) is the code that styles web content. CSS basics walks
through what you need to get started. We'll answer questions like: How do I make text
red? How do I make content display at a certain location in the (webpage) layout? How do
I decorate my webpage with background images and colors?

Like HTML, CSS is not a programming language. It's not a markup language either. CSS
is a style sheet language. CSS is what you use to selectively style HTML elements.

For example, this CSS selects paragraph text, setting the color to red:

Figure 3.1 CSS Editing

3.1.1 ANATOMY OF CSS RULESET:

Figure 3.2 Ruleset

Page | 10
The whole structure is called a ruleset. (The term ruleset is often referred to as just
rule.) Note the names of the individual parts:

• Selector: This is the HTML element name at the start of the ruleset. It defines
the element(s) to be styled (in this example, <p> elements). To style a different
element, change the selector.

• Declaration: This is a single rule like color: red;. It specifies which of the ele-
ment's properties you want to style.

• Properties: These are ways in which you can style an HTML element. (In this
example, color is a property of the <p> elements.) In CSS, you choose which
properties you want to affect in the rule.

• Property value: To the right of the property—after the colon—there is the


property value. This chooses one out of many possible appearances for a given
property. (For example, there are many color values in addition to red.)
3.1.2 TYPES OF SELECTORS:

Figure 3.3 Selectors

Page | 11
3.2 WHAT IS JAVASCRIPT?

JavaScript was initially created to “make web pages alive”. The programs in this language
are called scripts. They can be written right in a web page’s HTML and run automatically
as the page loads. Scripts are provided and executed as plain text. They don’t need special
preparation or compilation to run.

In this aspect, JavaScript is very different from another language called Java. Today,
JavaScript can execute not only in the browser, but also on the server, or actually on any
device that has a special program called the JavaScript engine. The browser has an
embedded engine sometimes called a “JavaScript virtual machine”.

Different engines have different “codenames”.For example: V8 – in Chrome, Opera


and Edge. SpiderMonkey – in Firefox There are other codenames like “Chakra” for IE,
“JavaScriptCore”, “Nitro” and “SquirrelFish” for Safari, etc.

The terms above are good to remember because they are used in developer articles on the
internet. We’ll use them too. For instance, if “a feature X is supported by V8”, then it
probably works in Chrome, Opera and Edge.

3.2.1 WHAT CAN IN BROWSER JAVASCRIPT DO?

Modern JavaScript is a “safe” programming language. It does not provide low-level


access to memory or CPU, because it was initially created for browsers which do not
require it. JavaScript’s capabilities greatly depend on the environment it’s running in. For
instance, Node.js supports functions that allow JavaScript to read/write arbitrary files,
perform network requests, etc.

In-browser JavaScript can do everything related to webpage manipulation, interaction


with the user, and the webserver.

For instance, in-browser JavaScript is able to:

• Add new HTML to the page, change the existing content, modify styles.

Page | 12
• React to user actions, run on mouse clicks, pointer movements, key presses.

• Send requests over the network to remote servers, download and upload files (so-
called AJAX and COMET technologies).

• Get and set cookies, ask questions to the visitor, show messages.

• Remember the data on the client-side (“local storage”).

3.2.1 IMPORTANT POINTS

• JavaScript was initially created as a browser-only language, but it is now used in


many other environments as well.

• Today, JavaScript has a unique position as the most widely-adopted browser lan-
guage, fully integrated with HTML/CSS.

• There are many languages that get “trans piled” to JavaScript and provide certain
features. It is recommended to take a look at them, at least briefly, after mastering
JavaScript.

Page | 13
INTRODUCTION TO PHP

PHP is an open-source, interpreted, and object-oriented scripting language that can be


executed at the server-side. PHP is well suited for web development. Therefore, it is used
to develop web applications (an application that executes on the server and generates the
dynamic page.).

PHP was created by Rasmus Lerdorf in 1994 but appeared in the market in 1995. PHP 7.4.0 is the latest
version of PHP, which was released on 28 November. Some important points nee to be noticed about PHP
are as followed

o PHP stands for Hypertext Preprocessor.


o PHP is an interpreted language, i.e., there is no need for compilation.
o PHP is faster than other scripting languages, for example, ASP and JSP.
o PHP is a server-side scripting language, which is used to manage
o Dynamic content of the website.
o PHP can be embedded into HTML.
o PHP is an object-oriented language.
o PHP is an open-source scripting language.
o PHP is simple and easy to learn language.

Page | 14
Why use PHP
PHP is a server-side scripting language, which is used to design the dynamic web

applications with MySQL database.

It handles dynamic content, database as well as session tracking for the website.

You can create sessions in PHP.

It can access cookies variable and also set cookies.

It helps to encrypt the data and apply validation.

PHP supports several protocols such as HTTP, POP3, SNMP, LDAP, IMAP, and many more.

Using PHP language, you can control the user to access some pages of your website.

As PHP is easy to install and set up, this is the main reason why PHP is the best language

to learn.

PHP can handle the forms, such as - collect the data from users using forms, save it

into the database, and return useful information to the user.

For example - Registration form.

PHP Features
PHP is very popular language because of its simplicity and open source.

There are some important features of PHP given below:

Page | 15
Performance:

PHP script is executed much faster than those scripts which are written in other

languages such as JSP and ASP. PHP uses its own memory, so the server workload

and loading time is automatically reduced, which results in faster processing speed

and better performance.

Open Source:

PHP source code and software are freely available on the web. You can develop all the

versions of PHP according to your requirement without paying any cost. All its

components are free to download and use.

Page | 16
Connect PHP to MySQL
What is MySQL?
MySQL is an open-source relational database management system (RDBMS). It is the most
popular database system used with PHP.
Structured Query Language (SQL). The data in a MySQL database are stored in tables that
consist of columns and rows.
MySQL is a database system that runs on a server. MySQL is ideal for both small and large
applications. MySQL is a very fast, reliable, and easy-to-use database system. It uses
standard SQL. MySQL compiles on a number of platforms.
How we can connect PHP to MySQL?
PHP 5 and later can work with a MySQL database using:
 MySQLi extension (the ‘i’ is abbreviation for improved)
 PDO (PHP Data Objects)
Which one should we use MySQLi or PDO?
Both MySQLi and PDO have their recompenses:
 PDO will work with 12 different database systems, whereas MySQLi will only
work with MySQL databases.
 So, if you have to shift your project to use alternative database, PDO makes the
process easy. You only have to change the connection string and a few queries.
With MySQLi, you will need to rewrite the complete code — queries included.
 Both are object-oriented, but MySQLi also offers a procedural API.
In short, you can choose whichever you want if you want to stick to MySQL otherwise you
should go with PDO.
Connection to MySQL using MySQL
PHP provides mysql_connect() function to open a database connection.
This function takes a single parameter, which is a connection returned by the
mysql_connect() function.
You can disconnect from the MySQL database anytime using another PHP function
mysql_close().
There is also a procedural approach of MySQLi to establish a connection to MySQL
database from a PHP script.

Page | 17
CHAPTER 4

ALGORITHM AND DESIGN


4.1 DESIGN GOALS

This mini project has ensured that the user has an interactive and explorable environment.
The interface is user friendly, simple to understand and has tried to ensure that there are
no bugs.

The project consists of a web-based environment which was developed using HTML CSS
bootstrap, and JavaScript. The goal was to make a smooth and responsive web application
which help me with my future ahead.

The project aims to make the life of the person by organizing all the projects done till
now, the services they can provide while working under/for some company, giving links
to all the certifications and also the resume. Using this web application, one can increase
their credibility rather than just showing their resume in company interviews.

4.2 WEB-APPLICATION STRUCTURE:

The whole web application has been divided into sections namely:

• Header Section: Contains all headings such as Home, Services, Projects, About
and contact

• Hero Section: Contains a stylish, flowing and very well formatted sentence of the
name of the person.

• Service Section: Contains brief description of the services that could be provided
by the person.

• Projects Section: Contains projects (GitHub code links for every project) and Cer-
tification over the years.

• About Section: Contains brief description of the person and also a link to the re-
sume.
Page | 18
• Contact Section: Contains sub parts like Phone number, Email ID and Address in
order to contact the person.

• Footer Sections: Contains icons/buttons to the social media handles.


• Example code for section is given below:

Figure 4.1 Example

Page | 19
4.3 ALGORITHM:

1. START
2. Create Sections using HTML and name file as index.html:
• Home Section
• Booked Tickets
• Check PNR
• Log in
• Sign up
• About Section
• Contact Section
3. Create CSS modules for each section, class and division in a separate file named
styles.css. Examples of some classes are:

• .container
• .section title
• font-awesome

• .font- awesome .min

• .about

4. Link styles.css to index.html using <link href> tag


5. Use php and mysql using in a separate file to make all classes and modules, ex-
amples:

o Aboutus,
o activate_jet_details
o activate_jet_details_form_handler
o add_flight_details
o add_flight_details_form_handler
o add_jet_details
o add_jet_details_form_handler
o add_ticket_details_form_handle
o admin_homepage
o admin_ticket_message

o admin_view_booked_tickets
o admin_view_booked_tickets_form_handler
o book_tickets

Page | 20
o book_tickets2
o cancel_booked_tickets
o cancel_booked_tickets_form_handler
o cancel_booked_tickets_success
o customer_homepage
o deactivate_jet_details
o deactivate_jet_details
o delete_flight_details
o delete_flight_details_form_handler
o flightcheck
o flightlist
o home_page
o login_handler
o login_page
o logout_handler
o new_user
o new_user_form_handler
o payment_details
o payment_details_form_handler
o pnr
o pnrall
o pnrcheck
o pnrcheckall
o ticket_success
o user_reg_success
o view_booked_tickets
o view_flights_form_handler
6. Finaly print the tickets
7. END

Page | 21
CHAPTER 5
FLOW CHART
MAIN PAGE

Page | 22
ADMIN SIDE

Page | 23
USER SIDE

Page | 24
IMPLEMENTATION
5.1 CREATING SECTIONS(HTML,CSS & PHP with MYSQL)
INDEX PAGE

Page | 25
ADMIN SIDE

Page | 26
ABOUT US

Page | 27
BOOK TICKETS

Page | 28
Page | 29
NEW USER FROM HANDLER

Page | 30
Page | 31
VIEW BOOKED TICKETS

Page | 32
Page | 33
Page | 34
PNR CHECK

Page | 35
Page | 36
Page | 37
CANCEL TICKETS

Page | 38
DELETE OPERATION

Page | 39
LOGOUT

DATABASE MYSQL CONNECTION

Page | 40
CSS FILE

Page | 41
Page | 42
MYSQL PHP CONNECTION

Page | 43
Page | 44
Page | 45
Page | 46
Page | 47
Page | 48
CHAPTER 6
RESULT
HOME PAGE

WELCOME TO AIRLINE RESERVATION PORTAL

Page | 49
ABOUT US PAGE INFORMATION

CONTACT US PAGE

Page | 50
ADMIN SIDE LOGIN

ADMINISTRATOR HOME PAGE

Page | 51
ADD AIRCRAFT DEATAILS

ACTIVATE JET ID

Page | 52
ADD FLIGHT SCHEDULE DETAILS

Page | 53
ADMIN VIEW LIST OF BOOKED TICKETS

LIST OF BOOKED TICKETS FOR THE FLIGHT

Page | 54
DEACTIVATE AIRCRAFT ID

DEACTIVATE SUCCESSFULLY

Page | 55
FLIGHT SCHEDULE TO BE DELETED

FLIGHT SCHEDULE DELETED SUCCESSFULLY

Page | 56
CREATE NEW USER ACCOUNT

USER SIDE LOGIN

Page | 57
NEW USER LOGIN HOME PAGE

USER SEARCH FOR AVAILABLE TICKETS DETAILS

Page | 58
AVAILABLE FLIGHTS DETAILS

VIEW BOOKED FLIGHT TICKETS (UPCOMING AND COMPLETED TRIPS)

Page | 59
ADD PASSENGER DETAILS

PAYMENT METHED

Page | 60
FINALLY BOOKED SUCCESSFULLY COMPLETED

CHECK PNR NUMBER

FINALLY PRINT THE TICKETS

Page | 61
CHAPTER 7

CONCLUSION

The Airline reservation system is designed for users to reserve a seat, display
seat the system. A formula is included in the function to calculate the seats are
reserved. Pseudocode is written for some important codes. A flow charts are also
created for explaining the process of the Airline reservation system.

The Airline reservation system a WEB BASED project . With working


employees traveling 24/7 this software speed up your reservation process and makes
it convenient for the customers to book flights whenever and wherever! AIRLINE-
RESERVATION-SYSTEM.

It reduces the scope of manual error and conveniently maintains any modifications,
cancellations in the reservations. It not only provides flight details but also but also
creates a platform to book tickets, cancels or modifies ticket timings or dates and
even informs about the number of people on board

One of the purposes of the projects is to let the user experience something
interesting and fun.

Finally, the project is able to achieve all the fundamental requirements


stated by the college as to make a web application using HTML CSS
and JavaScript.

Page | 62
CHAPTER 8

REFERENCES

[1] https://www.javatpoint.com/

[2] https://www.youtube.com/

[3] https://www.geeksforgeeks.com/

[4] https://www.github.com/

[5] https://www.w3schools.com/

[6] https://www.tutorialspoint.com/

Page | 63

You might also like