0% found this document useful (0 votes)
117 views50 pages

Web-Based Bus Ticket Booking System

Uploaded by

pdprathap1994
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)
117 views50 pages

Web-Based Bus Ticket Booking System

Uploaded by

pdprathap1994
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

BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

ABSTRACT
Bus Ticket Booking System is a Web based application that works within a centralized network.
This project presents a review on the software program “Bus Ticket Booking System” as should
be used in a bus transportation system, a facility which is used to reserve seats, cancellation of
reservation and different types of route enquiries used on securing quick reservations. BTBS is
built for managing and computerizing the traditional database, ticket booking and tracking bus
and travel made. It maintains all customer details, bus details, reservation details. In order to
achieve the design, Imo Transport Company (ITC) was chosen as a case study because of its
strategic importance to Imo State. Structured Systems Analysis and Design Methodology
(SSADM) was adopted. In addition, PHP Hypertext Preprocessor (PHP) language was used for
the front- end of the software while the back end was designed using MySQL. The software
achieved is capable of improving the customer hand and relationship management in ITC
operations. It is recommended that despite the present functionality of the designed software,
an additional functionality such as the use of E-mail to send tickets and notifications to the
customer and an online payment using credit cards/debit cards should be implemented into the
system. Furthermore, other operations carried by ITC such as the courier services should also
be integrated in order to enhance the system.

Dept. of BCA 2023-2024 Page2


BUS TICKET BOOKING SYSTEM VVFGC -TUMKUR

Chapter 1

INTRODUCTION
Bus management system is an integrated electronic management system. This system ensure
that the management process of this company runs smoothly done. This system will also help
in decrementing error mostly caused by human mistake. This system was developed as one of
the solution to transfer from current manual practices to a more systematic computerized
system.

Bus Management System Project in Php/MYSQLI is a web-based technology that will manage
the records of the Bus bookings which is issue by administrative and also help to provide bus
facility to people who need to travel. Buses are the most frequently available and most used
vehicle for going from small distance trips to very long trips. They’re a no. of types of buses
available in the market according to the private or public. According to ac or no ac. Apart from
this interstate, shrines, or inter-country also possible. Bus Management System project is
helpful to bus administration by reducing the paperwork, time consumption and makes the
process of getting bus as simple and fast.

When we do task manually then it become very hard to manage the ticket booking. So are
developing this system to manage booking of ticket automatically, in this bus ticket booking
project we develop the system that can help the user to book their ticket online, In this project
we take care of every services related to travelling and online ticket booking. When you start
your travelling tour you have to book ticket so we help you in booking your traveling ticket.

It is development so that the costumer can easily check the bus availability status, the costumer
also book the ticket from any place and any time and pay the amount of ticket from anywhere.
The system must have a database which contain the customer information, it must be able to
accurately give the bus information such as the bus schedule and also have a nice interface to
make it easier to use. Finally, the application must also be a user-friendly for commercial
purpose.

Dept.of BCA 2023-2024 Page3


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

Chapter 2

LITERATIVE SURVEY
Factor influencing online bus ticket booking keywoards: ticket booking, virtual computing,
web services review of literature. Chapter it is literature survey and work methodology. It is
web-based application that allows, online bus reservation system provides bus transportation
system.

In This 21st Century the growth in the development of artificial intelligence or data science or
even we can say Machine Learning had made a lot of changes in every system or in the filed
or upgrowing technologies. This Growing technology also made a lot of changes in the
traveling Sections as there was very difficult situation for every person who wants to travel
from one place to another. Previously there were long lasting tickets line for reserving your
seat in the bus for that we have to stand in a queue and waiting till your number come. The
people who want to cancel their tickets also needs to face the same issue as well. As soon as
the technology get improves the modification in the system give everyone a relaxing chance
over this problem. Many Systems came up with the new technologies or a new mindset in order
dismiss these useless problems. Even also the development of new versions of this system
every system has their own Consequences.

There are many systems Likely to be mentioned are Bus in this if a female passenger books a
ticket, then its mandatory for that bus that the next seat to that female passenger must be book
by Female Only and Male Party can’t get access to that Bus seat and these sometimes may
create a vacant space problem as a needy Male passenger can’t able to get that Seat. Another
example we can say RTC app its also did good Job while traveling from one place to another
but sometimes people get tired of using it because in this RTC App people can only book
Government Buses Only. There are also some buses which needs some modifications like the
where to find my bus Current Locations, the proper timing it takes to reach out the destination.

Dept. of BCA 2023-2024 Page4


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

2.1Existing System
This website is very easy to operate it provide database about institute. Courses and main
advantage of this project is that it will generate an environment such that more than one person
could solve his problem together, customer have to give query for getting desire solution. this
project has been developed on HTML and PHP. It has been developed and implemented for
regular use by the user. It is very easy to understand and operate. Hence it is will be totally user
friendly and interactive website.

2.2Proposed System
The system is very simple in design and to implement. The system required very low system
resources and the system will work in almost all configuration. Stated that system design is to
create a technical solution that satisfies the functional requirement for the system. at this point
in the project life cycle there should be a function specification, written primarily in the
business terminology containing a complete description of the operational needs of the various
organizational entities that will use the system. The challenge is to translate all of this
information in to technical specification that accurately describe the design of the system, and
that can be used an input system construction.

Dept.of BCA 2023-2024 Page5


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

LANGUAGES USED

JavaScript

JavaScript often abbreviated as is, is high-level interpreted programming language.it is a


language Which is also characterized as dynamic, weakly typed, prototype-based and
multiparadigm.

Alongside HTML and CSS, JavaScript is one of the three core technologies of the world wide
web Java script enables interactive web pages and thus is an essential part of web applications.
The Vast majority of websites use it, and all major web browsers have a dedicated JavaScript
engine to Execute it.

CSS
Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of
a Document written in a mark, up language like HTML.css in a cornerstone technology of
World Wide Web, alongside HTML and JavaScript.
CSS is designed to enable the separation of presentation and content, including layout, colours,
and Fonts. this separation characteristics, enable multiple web pages to share formatting by
specifying the relevant CSS in a separate CSS file, and reduce complexity and repetition in the
structural Content.

HTML
Hypertext Markup Language (HTML) is the standard markup language for creating web page
Web applications. with Cascading style sheets (CSS) and JavaScript, it forms a triad of
cornerstone Technologies for the World Wide Web.

Web browsers receive HTML documents from a web server or from local storage and render
the Documents into multimedia web pages. HTML describes the structure of web page
semantically and originally included cues for the appearance of the document.

Dept. of BCA 2023-2024 Page6


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

Dept.of BCA 2023-2024 Page7


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

Chapter 3

SOFTWARE REQUIREMENT SPECIFICATION

A System requirements specification is a document or set of documentation that describes the


features and behaviour of a system of software application. It includes a variety Elements that
attempts to define the intended functionality required by the customer to satisfy their different
uses. There are two types of requirements: Hardware and Software requirements. In addition
to specifying how the system should behave, the specification also defines at a high level the
main business process that will be supported, what simplifying assumptions have been made
and what key performance parameters will need to be met by the system. This document
describes the nature of a project, software or application. This includes the purpose, scope,
functional and non-functional requirements, software and hardware requirements of the
project.

3.1Hardware Requirements

• Processor: AMD Risen 3 CPU @ 2.60Ghz

• Installed memory (RAM): 8.00GB

• System type: 64-bit Operating System, x64-based processor

• Total size of Hard disk: 1TB

3.2 Software Requirements

• Operating System: Microsoft windows 11

• Integrated Development Environment:

1. Front-end tool: HTML, CSS, JAVA SCRIPT

2. Back-end tool: My SQL

3. Programming Language: PHP

Dept. of BCA 2023-2024 Page8


LANGUAGES USED LANGUAGES USED

BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

Chapter 4

SYSTEM DESIGN
System Design is the most creative and challenging phase in the system life cycle.
Design is the first step into the development phase for any engineered product or
system. Design is a creative process. A good design is the key to effective system.
System design is a solution how to approach the creation of a new system. System
design transforms a logic representation of what is required to do into the physical
specification. The specification is converted into physical reality during development.

DATA FLOW DIAGRAM


A data flow diagram (DFD) is a graphical representation of the “flow” of data through
an information system, modelling its process asecpts. A DFD is often used as a
preliminary step to create an overview of the system, which can later be elaborated.

Home Page

Login page
services Bus ticket booking system
Booking System

User Details Aboutus

Fig. Data flow diagram

Dept.of BCA 2023-2024 Page9


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

ER-DIAGRAM

Manage Manage
LoginId Password Route Buses

Booking
Home Login Has AdminLogin peoples

Logout Transaction

Ticket
Details
PNR Enquiry

Booking
Information Ticket Download

Fig.ER-Diagram

Dept. of BCA 2023-2024 Page10


H

BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

Chapter 5
IMPLIMENTATION
Introduction
A crucial phase in the system lifecycle is the successful implementation of the new system
design. Implementation simply means converting a new system design into operation.
Coding is a stage in which the design is converted into working system. Implementation is
the process of bringing the developed system into operational use and turning it to the user.
This stage is considered to be the most crucial stage in the development of a successful
system since a new system is developed and the users are given the confidence of its
effectiveness.

Implementation Phases are as follows:

• First phase includes table design for Database module.

• Second phase includes coding for GUI modules

• Third phase includes the integration of modules

• Fourth phase includes connection establishment between the front-end and back end

• Fifth phase includes error handling and message generator.

CODING

DATABASE.PHP

-- phpMyAdmin SQL Dump


-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 21, 2022 at 01:50 PM
-- Server version: 10.4.21-MariaDB

Dept. of BCA 2023-2024 Page11


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

-- PHP Version: 8.0.10

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";


START TRANSACTION;
SET time_zone = "+00:00";

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT


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

--
-- Database: `busbooking_ezfare`
--
-- --------------------------------------------------------

--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (`id` int(11) NOT NULL,
`username` varchar(20) NOT NULL,
`password` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `admin`
--

INSERT INTO `admin` (`id`, `username`, `password`) VALUES

Dept. of BCA 2023-2024 Page12


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

(1, 'admin', 'admin');

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

--
-- Table structure for table `booking`
--

CREATE TABLE `booking` (`id` int(10) NOT NULL,


`passenger_name` varchar(25) NOT NULL,
`telephone` int(12) NOT NULL,
`email` varchar(15) NOT NULL,
`boarding_place` varchar(20) NOT NULL,
`Your_destination` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `booking`
--

INSERT INTO `booking` (`id`, `passenger_name`, `telephone`, `email`, `boarding_place`,


`Your_destination`);
-- --------------------------------------------------------
--
-- Table structure for table `bus`
--

CREATE TABLE `bus` (


`id` int(10) NOT NULL,
`Bus_Name` varchar(25) NOT NULL,
`Tel` int(12) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

Dept. of BCA 2023-2024 Page13


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

--
-- Dumping data for table `bus`
--

INSERT INTO `bus` (`id`, `Bus_Name`, `Tel`);


-- --------------------------------------------------------
--
-- Table structure for table `courses`
--

CREATE TABLE `courses` (


`id` int(30) NOT NULL,
`course` varchar(10) NOT NULL,
`description` text NOT NULL,
`level` varchar(15) NOT NULL,
`total_amount` float NOT NULL,
`date_created` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `courses`
--

INSERT INTO `courses` (`id`, `course`, `description`, `level`, `total_amount`, `date_created`);

-- --------------------------------------------------------
--
-- Table structure for table `fees`
--

CREATE TABLE `fees` (


`id` int(30) NOT NULL,
`course_id` int(30) NOT NULL,

Dept. of BCA 2023-2024 Page14


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

`description` varchar(20) NOT NULL,


`amount` float NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `fees`
--

INSERT INTO `fees` (`id`, `course_id`, `description`, `amount`);


-- --------------------------------------------------------
--
-- Table structure for table `payment`
--

CREATE TABLE `payment` (


`id` int(11) NOT NULL,
`amount` float NOT NULL,
`name` varchar(25) NOT NULL,
`email` varchar(25) NOT NULL,
`address` varchar(25) NOT NULL,
`city` varchar(25) NOT NULL,
`state` varchar(25) NOT NULL,
`zip_code` int(6) NOT NULL,
`card_name` varchar(25) NOT NULL,
`card_number` int(12) NOT NULL,
`exp_month` varchar(20) NOT NULL,
`exp_year` varchar(20) NOT NULL,
`cvv` int(3) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `payment`
--

Dept. of BCA 2023-2024 Page15


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

INSERT INTO `payment` (`id`, `amount`, `name`, `email`, `address`, `city`, `state`,
`zip_code`, `card_name`, `card_number`, `exp_month`, `exp_year`, `cvv`);
-- --------------------------------------------------------

--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (


`id` int(30) NOT NULL,
`ef_id` int(30) NOT NULL,
`amount` float NOT NULL,
`remarks` text NOT NULL,
`date_created` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE
current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `payments`
--

INSERT INTO `payments` (`id`, `ef_id`, `amount`, `remarks`, `date_created`);


-- --------------------------------------------------------
--
-- Table structure for table `route`
--

CREATE TABLE `route` (


`id` int(11) NOT NULL,
`via_city` varchar(25) NOT NULL,
`destination` varchar(25) NOT NULL,
`bus_name` varchar(25) NOT NULL,

Dept. of BCA 2023-2024 Page16


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

`departure_date` date NOT NULL,


`departure_time` time(6) NOT NULL,
`cost` varchar(25) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `route`
--

INSERT INTO `route` (`id`, `via_city`, `destination`, `bus_name`, `departure_date`,


`departure_time`, `cost`);

-- --------------------------------------------------------
--
-- Table structure for table `system_settings`
--

CREATE TABLE `system_settings` (


`id` int(30) NOT NULL,
`name` text NOT NULL,
`email` varchar(20) NOT NULL,
`contact` varchar(20) NOT NULL,
`cover_img` text NOT NULL,
`about_content` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `system_settings`
--

INSERT INTO `system_settings` (`id`, `name`, `email`, `contact`, `cover_img`,


`about_content`) ;
-- --------------------------------------------------------

Dept. of BCA 2023-2024 Page17


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

--
-- Table structure for table `users`
--

CREATE TABLE `users` (


`id` int(11) NOT NULL,
`user_id` bigint(25) NOT NULL,
`First_Name` varchar(25) NOT NULL,
`Last_Name` varchar(25) NOT NULL,
`username` varchar(25) NOT NULL,
`email` varchar(25) NOT NULL,
`password` varchar(25) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `user_id`, `First_Name`, `Last_Name`, `username`, `email`,


`password`);

--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`id`);

--
-- Indexes for table `booking`
--

Dept. of BCA 2023-2024 Page18


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

ALTER TABLE `booking`


ADD PRIMARY KEY (`id`);

--
-- Indexes for table `bus`
--
ALTER TABLE `bus`
ADD PRIMARY KEY (`id`);

--
-- Indexes for table `payment`
--
ALTER TABLE `payment`
ADD PRIMARY KEY (`id`);

--
-- Indexes for table `route`
--
ALTER TABLE `route`
ADD PRIMARY KEY (`id`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `admin`

Dept. of BCA 2023-2024 Page19


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

--
ALTER TABLE `admin`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `booking`
--
ALTER TABLE `booking`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT for table `bus`
--
ALTER TABLE `bus`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `payment`
--
ALTER TABLE `payment`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `route`
--
ALTER TABLE `route`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

Dept. of BCA 2023-2024 Page20


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

COMMIT;
HOME.PHP
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>REDWING and Ticket Booking</title>
<link rel="stylesheet" href="cssfile/nav.css">
<link rel="stylesheet" href="cssfile/footer.css">
<!--<link rel="stylesheet" type="text/css" href="cssfile/container.css">-->
<link rel="stylesheet" type="text/css" href="cssfile/videoedit.css">
<link href="http://fonts.googleapis.com/css?family=Cookie" rel="stylesheet"
type="text/css">
<!--<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-
awesome/4.2.0/css/font-awesome.min.css">-->
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<script src="https://code.jquery.com/jquery-3.4.1.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
integrity="sha384-
AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p"
crossorigin="anonymous"/>
<style type="text/css">
body{
background-image: url(image/1.jpg);
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
/*
margin: 0;
padding: 0;
width: 100%;

Dept. of BCA 2023-2024 Page21


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

height: 100%;
background-color: black;
}
#container{
height: 100vh;
width: 100%;
background-image: url(image/3.jpg);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
transition: 2s;
font-family: cursive;
animation-name: animate;
animation-direction: alternate-reverse;
animation-duration: 40s;
animation-fill-mode: forwards;
animation-iteration-count: infinite;
animation-play-state: running;
animation-timing-function: ease-in-out;
}
@keyframes animate{
0%{
background-image: url(image/1.jpg);
}
10%{
background-image: url(image/2.jpg);
}
20%{
background-image: url(image/3.jpg);
}
30%{
background-image: url(image/4.jpg);

Dept. of BCA 2023-2024 Page22


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

}
40%{
background-image: url(image/5.jpg);
}
50%{
background-image: url(image/6.jpg);
}
60%{
background-image: url(image/7.jpg);
}
70%{
background-image: url(image/8.jpg);
}
80%{
background-image: url(image/9.jpg);
}
90%{
background-image: url(image/10.jpg);
}
100%{
background-image: url(image/1.jpg);
}
*/
}
.home_details{
color: #fff;
font-family: inherit;
font-size: 74px;
padding: 162px 5px 5px 185px;
}
.font
{
color: #F9522E;

Dept. of BCA 2023-2024 Page23


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

}
.btnHome
{
font-family: inherit;
background-color: #F9522E;
padding: 13px 44px 13px 44px;
font-size: 18px;
border-style: none;
}
.btnHome:hover
{
background-color: orange;
cursor: pointer;
}
</style>
</head>
<body>
<div id="container">
<!--this is the header callling(nav bar)-->
<?php include("nav.php");
?>
<h1 class="home_details">Your Bus Pass.Anytime. <br><font
class="font">Anywhere..</font>
<br>
<a href="signUp.php"><button class="btnHome">SIGN UP
NOW</button></a>
</h1>
</div>
<div class="section">
<video autoplay loop muted class="section">
<source src="video/2.mp4" type="video/mp4">
</video>
</div><!--section-->

Dept. of BCA 2023-2024 Page24


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

<!--this is the footer calling-->


<?php include("footer.php");
?>
</body>
</html>

LOGIN.PHP
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>REDWING Login</title>
<link rel="stylesheet" href="cssfile/nav.css">
<link rel="stylesheet" href="cssfile/footer_l.css">
<!--<link rel="stylesheet" type="text/css" href="cssfile/container.css">-->
<link rel="stylesheet" href="cssfile/login.css">
<link rel="stylesheet" a href="css\font-awesome.min.css">
<link href="http://fonts.googleapis.com/css?family=Cookie" rel="stylesheet"
type="text/css">
<!--<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-
awesome/4.2.0/css/font-awesome.min.css">-->
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<script src="https://code.jquery.com/jquery-3.4.1.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
integrity="sha384-
AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p"
crossorigin="anonymous"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-
awesome/5.15.3/css/all.min.css"/>
<style type="text/css">
body{

Dept. of BCA 2023-2024 Page25


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

margin: 0;
padding: 0;
width: 100%;
height: 100%;
background-image: url(image/8.jpg);
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
.sign_up
{
font-size: 20px;
}
.sign_up:hover
{
background-color: #fff;
}
</style>
</head>
<body>
<!--this is the header callling(nav bar)-->
<?php include("nav.php");
?>
<?php
session_start();
include("connection.php");
include("function.php");
if($_SERVER['REQUEST_METHOD'] == "POST")
{
//something was posted
$user_name = $_POST['user_name'];
$password = $_POST['password'];
if(!empty($user_name) && !empty($password) && !is_numeric($user_name))

Dept. of BCA 2023-2024 Page26


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

{
//read from database
$query = "select * from users where username = '$user_name' limit 1";
$result = mysqli_query($conn, $query);
if($result)
{
if($result &&mysqli_num_rows($result) > 0)
{
$user_data = mysqli_fetch_assoc($result);
if($user_data['password'] === $password)
{
$_SESSION['user_id'] = $user_data['user_id'];
header("Location:viewBus.php");
die;
}
}
}
echo "wrong username or password!";
}
else
{
echo "wrong username or password!";
}
}
?>
<!------------------------------------------------------------------>
<div class="login-box">
<imgsrc="image/avatar.png" class="avatar">
<h1>Login For user</h1>
<form method="post">
<p>Username</p>
<input type="text" name="user_name" placeholder="Enter Username">
<p>Password</p>

Dept. of BCA 2023-2024 Page27


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

<input type="password" name="password" placeholder="Enter Password">


<input type="submit" name="login" value="Login">
<a href="signUp.php" class="sign_up">sign up</a>&nbsp&nbsp&nbsp
<a href="#">Forget Password</a>
</form>
</div>
<!------------------------------------------------------------------>
</body>
</html>

ABOUTUS.PHP

<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Suraksha Insurance solutions</title>
<link rel="stylesheet" href="cssfile/nav.css">
<link rel="stylesheet" href="cssfile/footer_l.css">
<!--<link rel="stylesheet" type="text/css" href="cssfile/container.css">-->
<link rel="stylesheet" href="cssfile/login.css">
<link rel="stylesheet" a href="css\font-awesome.min.css">

<link href="http://fonts.googleapis.com/css?family=Cookie" rel="stylesheet"


type="text/css">
<!--<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-
awesome/4.2.0/css/font-awesome.min.css">-->
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<script src="https://code.jquery.com/jquery-3.4.1.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
integrity="sha384-

Dept. of BCA 2023-2024 Page28


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p"
crossorigin="anonymous"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-
awesome/5.15.3/css/all.min.css"/>

<style type="text/css">
body{
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background-image: url(image/2.jpg);
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
.sign_up{
font-size: 20px;
}
.sign_up:hover{
background-color: #fff;
}
@import
url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
*{
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
}
about-sec{
display: flex;
padding: 3rem 0;

Dept. of BCA 2023-2024 Page29


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

width: 100%;
justify-content: center;
/* background: #2c3e50;*/
background: rgba(1, 2, 2, 0.5);
margin-top: 106px;
}
.about-img{
width: 250px;
height: 250px;
margin: 0 3rem;
}
.about-imgimg{
height: 100%;
width: 100%;
}
.about-intro{
color: #fff;
width: 400px;
height: 250px;
border-left: 3px solid #00b894;
padding-left: 2rem;
margin: 0 3rem;
}
.about-intro p{
margin-top: 1.5rem;
font-size: 14px;
opacity: .7;
}
@media only screen and (max-width: 900px) {
.about-sec{
flex-direction: column;
align-items: center;
}

Dept. of BCA 2023-2024 Page30


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

.about-img{
width: 80%;
}
.about-intro{
width: 100%;
height: 100%;
border-top: 3px solid #00b894;
border-left: none;
padding: 1rem;
margin-top: 2rem;
}
.about-intro h3,p{
width: 80%;
}
.about-intro p{
font-size: 12px;
}
}
table
{
width:99%;
border-collapse: separate !important;
margin:auto;
/*/table-layout:fixed;/*/
text-align:center;
margin-top:50px;
background-color: rgb(255, 255, 255);
border-radius: 10px 10px 0px 0px;
}
table th
{
border-bottom:2px solid rgb(187, 187, 187);
padding:10px 0px 10px 0px;

Dept. of BCA 2023-2024 Page31


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

font-family: "balsamiq_sansitalic" !important;


color: black;
}
table tr td
{
border-right: 2px solid rgb(187, 187, 187);
height: 58px;
padding: 22px 0px 0px0px;
font-family: "monospace;" !important;
border-bottom: 2px solid rgb(187, 187, 187);
font-size: 22px;
color: black;
}
table tr td a
{
background-color: rgb(255, 196, 0);
color: black;
border-radius: 5px;
padding: 6px;
text-decoration: none;
margin: 10px;
font-weight: 700;
}
table tr td button:hover
{
/*
background: rgb(255, 255, 255);
text-decoration:underline;
color:tomato;
padding: 4px;
border:2px solid tomato;
transition:background-color 0.2s;*/
padding: 5px 5px5px5px;

Dept. of BCA 2023-2024 Page32


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

border: 2px solid yellow;


border-radius: 7px;
background-color: red;
color: white;
cursor: pointer;
}
.topic_bus{
text-align: center;
color: #fff;
}
</style>
</head>
<body>
<!--this is the header callling(nav bar)-->
<?php include("nav.php");
?>
<div class="about-sec">
<div class="about-img">
<imgsrc="image/bus2.jpg">
</div>
<div class="about-intro">
<h3>About Us<span style="color: #00b894;"> !</h3>
<p>We, RedWing(Pvt) Ltd. who is pioneer of Online Bus Ticket Booking Service in India
since 2024. In this segment the company has launch a web site www.REDWING.LK with the
collaboration of NTC/CTB registered Busses in India.</p>
</div>
</div>
<?php include("connection.php");?>
<?php
$sqlget="SELECT * FROM bus";
$sqldata=mysqli_query($conn,$sqlget) or die('error getting');
while ($row=mysqli_fetch_array($sqldata,MYSQLI_ASSOC))
{

Dept. of BCA 2023-2024 Page33


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

?>
</tr>
<?php
}
echo "</table>";
?>
<?php
$sqlget="SELECT * FROM route";
$sqldata=mysqli_query($conn,$sqlget) or die('error getting');
while ($row=mysqli_fetch_array($sqldata,MYSQLI_ASSOC))
{
?>
</tr>
<?php
}
echo "</table>";
?>
<div class="about-sec">
<div class="about-img">
<imgsrc="image/bus3.jpg">
</div>
<div class="about-intro">
<p>Plan your trip, reserve bus tickets, and arrive at your destination</p>
<p>We offer a complete online bus booking platform where you can buy and sell bus seats.
The traveler can purchase bus tickets online, and in exchange, a text message with travel details
will be delivered to confirm the seat reservation.
</p>
<p>Plan your journey ahead of time, save time buying bus tickets, avoid lengthy lines, discover
your boarding location quickly, and enjoy your journey in comfort using REDWING'S efficient
bus reservation system
</p>
</div>
</div>

Dept. of BCA 2023-2024 Page34


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

</body>
</html>
CONTACT_US.PHP
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Suraksha Insurance solutions</title>
<link rel="stylesheet" href="cssfile/nav.css">
<link rel="stylesheet" href="cssfile/footer_l.css">
<link rel="stylesheet" href="cssfile/contact_us.css">
<!--<link rel="stylesheet" type="text/css" href="cssfile/container.css">-->
<link href="http://fonts.googleapis.com/css?family=Cookie" rel="stylesheet"
type="text/css">
<!--<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-
awesome/4.2.0/css/font-awesome.min.css">-->
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<script src="https://code.jquery.com/jquery-3.4.1.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
integrity="sha384-
AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p"
crossorigin="anonymous"/>
<style type="text/css">
body{
padding: 0;
margin: 0;
line-height: 1.5;
box-sizing: border-box;
color:rgba(248, 248, 248, 0.938);
background-image: url(image/7.jpg);
background-size: cover;

Dept. of BCA 2023-2024 Page35


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

background-repeat: no-repeat;
background-attachment: fixed;
}
</style>
</head>
<body>
<!--this is the header callling(nav bar)-->
<?php include("nav.php");
?>
<section id="fancy-form">
<div class="container">
<div class="form-sections">
<!-- Form left -->
<div class="Form-left">
<h1>Get In Touch</h1>
<div class="line"></div><!--border-bottom line-->
<p>Contact us for latest news and updates. subscribe our news letter :)</p><br>
<!--first Heading -->
<h4>ADDRESS</h4>
<span>tiptur, india</span>
<hr><br><br>
<!--second Heading -->
<h4>PHONE</h4>
<span>(+1)8088310232</span>
<hr><br><br>
<!--third Heading -->
<h4>EMAIL</h4>
<span>devikansd@gmail.com</span>
<hr><br>
<!-- social media icons
<a href="#" class="fa fa-facebook"></a>
<a href="#" class="fa fa-twitter"></a>
<a href="#" class="fa fa-google"></a>

Dept. of BCA 2023-2024 Page36


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

<a href="#" class="fa fa-linkedin"></a>


<a href="#" class="fa fa-youtube"></a>-->
</div>
<!-- form right -->
<div class="Form-right">
<h1>Contact Us</h1>
<div class="line"></div>
<!-- form -->
<form action="" method="post">
<h5>NAME</h5>
<input type="text"><br><br>
<h5>EMAIL</h5>
<input type="email"><br><br>
<h5>PHONE</h5>
<input type="number"><br><br>
<h5>YOUR MESSAGE</h5>
<textarea name="" id="" cols="50" rows="7"></textarea><br>
<button>Send</button>
</form>
</div>
</div>
</div>
</section>
</body>
</html>

Dept. of BCA 2023-2024 Page37


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

Chapter 6
SYSTEM TESTING
Introduction
to testing:
Verification and validation are a generic name given to checking processes, which ensures that
the software confirms to its specifications and meets the demands of users.

• Validation
Validation involves checking that the program has implanted meets the requirement.

•Verification
Verification involves checking that the program confirms to its specification.

Stages in the Implementation of Testing

6.1 Unit Testing


During this first round of testing, the program is submitted to assessments that focus on specific
Units or components of the software to determine whether each one is fully functional. The
main aim of this endeavours is to determine whether the application functions as designed. In
this phase, a unit can refer to a function, individual program or even a procedure, and a
Whitebox Testing method is usually used to get the job done. One of the biggest benefits of
this testing phase is that it can be run every time a piece of code is changed, allowing issues to
be resolved as quickly as possible. It’s quite common for software developers to perform unit
tests before delivering software to testers for formal testing.

Dept.of BCA 2023-2024 Page38


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

6.2 Integration Testing


Integration testing allows individuals the opportunity to combine all of the units within a
program and test them as a group. This testing level is designed to find interface defects
between the modules/functions. This is particularly beneficial because it determines how
efficiently the units are running together. Keep in mind that no matter how efficiently each unit
is running, if they aren’t properly integrated, it will affect the functionality of the software
program. In order to run these types of tests, individuals can make use of various testing
methods, but the specific method that will be used to get the job done will depend greatly on
the way in which the units are defined.

6.3 System Testing


System testing is the first level in which the complete application is tested as a whole. The goal
at this level is to evaluate whether the system has complied with all of the outlined requirements
and to see that it meets Quality Standards. System testing is undertaken by independent testers
who haven’t played a role in developing the program. This testing is performed in an
environment that closely mirrors production. System Testing is very important because it
verifies that the application meets the technical, functional, and business requirements that were
set by the customer.

6.4 Regression Testing


The final level, Regression testing, is conducted to determine whether the system is read for
release. During the Software development life cycle, requirements changes can sometimes be
misinterpreted in a fashion that does not meet the intended needs of the users. During this final
phase, the user will test the system to find out whether the application meets their business‟
needs. Once this process has been completed and the software has passed, the program will
then be delivered to production.

Dept. of BCA 2023-2024 Page39


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

Results:
Several errors were detected and rectified and the whole project is working as it should with
proper output and high efficiency. The several tests performed are as follows.

Dept.of BCA 2023-2024 Page40


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

Chapter 7
SNAPSHOTS

HOME PAGE

ABOUT US

Dept. of BCA 2023-2024 Page41


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

ADMIN LOGIN PAGE

Fig. Admin login Page

DASH BOARD

Dept.of BCA 2023-2024 Page42


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

ADD BUS DETAILS

ADD ROUTES

Dept. of BCA 2023-2024 Page43


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

CUSTORMER DETAILS

ADD CUSTOMER

Dept.of BCA 2023-2024 Page44


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

BOOKING

SEAT STATUS

Dept. of BCA 2023-2024 Page45


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

VIEW SEAT STATUS

ADD NEW ADMIN

Dept.of BCA 2023-2024 Page46


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

PNR ENQUIRY

BOOKING INFORMATION

Dept. of BCA 2023-2024 Page47


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

TICKETS DOWNLOAD

Dept.of BCA 2023-2024 Page48


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

Chapter 8

CONCLUSION
The “BUS MANAGEMENT SYSTEM” is successfully designed and developed to fulfilling
the necessary requirements, as identified in the requirements analysis phase, such as the system
is very much user friendly, form level validation and field level validation are performing very
efficiently.

The new computerized system was found to be much faster and reliable and user friendly then
the existing system, the system has been designed and developed step by step and tested
successfully. It eliminates the human error that are likely to creep in the kind of working in
which a bulk quantity of data and calculations as to be processed.

The system results in quick retrieval of information that is very vital for the progress any
organization. Cost is minimized in case of stationary. Burden of manual work is reduced as
whenever transaction takes place, there is a no need to record it in many places manually.

Dept. of BCA 2023-2024 Page49


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

Chapter 9

FUTURE ENHANCMENT
To solve these problems they required a computerized system to handle all the works. They
required a web based application that will provide a working environment that will be flexible
and will provide ease of work and will reduce the time for report generation and other paper
works. The main purpose behind the proposed system is to provide a comprehensive
computerized system, which can capture, collate and analyse the data from these wards and
evaluate the impact of the program.

We can also provide SMS based alert and email notifications for bookings. The wallet can be
developed to handle discounts on the point’s basis. It can also be used to provide referral code
concept for referring friends.

Chat features can be included in the application to chat with customer care. We can come with
a feature that will allow the customer to save favourite routes and provide discounts for same.
Introduce coupon management for providing which customers can use to avail discounts.

Dept.of BCA 2023-2024 Page50


BUS TICKET BOOKING SYSTEM VVFGC-TUMKUR

Chapter 10

BIBILIOGRAPHY
1. Database system models, languages, Design and application Programming, RamezElmari
and Shamakant B. Navarthe, 7th edition, 2017, Pearson.

2. Database Management systems, Ramakrishna and Gerkhe, 3rd edition, 2014, Mc Graw Hill.

Websites: http://www.wikipedia.com/

http://www.stackoverflow.com/

http://www.youtube.com/

http://www.w3schools.com/

Dept. of BCA 2023-2024 Page51

You might also like