Bus Ticket Booking System - Docx New
Bus Ticket Booking System - Docx New
Bus Ticket Booking System - Docx New
Abstract:
Our project is dedicated to utilizing the potential of cloud computing to transform bus ticketing
and payment systems radically. Through cutting-edge cloud technologies, we aim to develop an
advanced and scalable ticketing platform tailored explicitly for public transportation, promising
unprecedented convenience and efficiency. The heart of our initiative lies in crafting a robust
cloud-based system capable of handling ticket bookings, payments, and passenger management
seamlessly. Leveraging cloud computing techniques ensures high availability, scalability, and
security, facilitating smooth transactions and effective service management.
Our vision is to translate complex transportation data into actionable insights for providers. We
envision a user-friendly interface enabling passengers to book tickets seamlessly and make
secure online payments. This interface acts as a vital link between cloud technology and public
transportation services, providing providers with timely information to make informed decisions
and enhance operational efficiency.
In conclusion, our project represents a significant leap forward in applying cloud computing to
public transportation, with bus ticketing and payment as the focal point. Through collaboration,
innovation, and a commitment to ethical principles, we aim to equip transportation providers
with advanced tools to revolutionize the management and utilization of public transportation.
Together, we can pave the way for a more efficient and passenger-friendly future.
Implementing cloud computing in a bus ticket booking system offers numerous advantages,
including scalability, reliability, cost-effectiveness, and enhanced performance. Here's how it can
be integrated:
1. Scalability:
2. Reliability:
3. Cost-effectiveness:
Pay-as-you-go model
Reduce upfront infrastructure costs
Optimize resource utilization
4. Performance:
5. Security:
6. Flexibility:
7. Data Analytics:
8. Disaster Recovery:
Evaluate different cloud service providers (e.g., AWS, Azure, Google Cloud)
based on factors like pricing, performance, and available services.
Select a cloud provider that best suits the requirements of the bus ticket
booking system.
2. Infrastructure Setup:
3. Application Deployment:
4. Database Management:
System Requirements:
Hardware Requirement:
Software Requirements:
The system is compatible with various operating systems such as Windows, Linux, or macOS,
and can be developed using AWS, Google Cloud Platform (GCP), or Microsoft Azure.
FLOWCHART:
CODING:
<?php
require 'assets/partials/_functions.php';
$conn = db_connect();
if(!$conn)
die("Connection Failed");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bus Ticket Bookings</title>
<!-- google fonts -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?
family=Montserrat:wght@100;200;300;400;500&display=swap" rel="stylesheet">
<!-- Font-awesome -->
<script src="https://kit.fontawesome.com/d8cfbe84b9.js" crossorigin="anonymous"></script>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet" integrity="sha384-
+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x"
crossorigin="anonymous">
<!-- CSS -->
<?php
require 'assets/styles/styles.php'
?>
</head>
<body>
<?php
$num = mysqli_num_rows($result);
if($num)
{
$row = mysqli_fetch_assoc($result);
$route_id = $row["route_id"];
$customer_id = $row["customer_id"];
$customer_route = $row["customer_route"];
$booked_amount = $row["booked_amount"];
$booked_seat = $row["booked_seat"];
$booked_timing = $row["booking_created"];
</p>
<button type="button" class="btn-close" data-bs-dismiss="alert"
aria-label="Close"></button>
</div>
<?php }
else{
echo '<div class="my-0 alert alert-danger alert-dismissible fade show" role="alert">
<strong>Error!</strong> Record Doesnt Exist
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-
label="Close"></button>
</div>';
}
?>
<?php }
// Delete Booking
if($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST["deleteBtn"]))
{
$pnr = $_POST["id"];
$bus_no = $_POST["bus"];
$booked_seat = $_POST["booked_seat"];
elseif($deleteResult)
{
$messageStatus = "success";
$messageInfo = "Booking Details deleted";
$messageHeading = "Successfull!";
$messageInfo = "Your request could not be processed due to technical Issues from
our part. We regret the inconvenience caused";
}
// Message
echo '<div class="my-0 alert alert-'.$messageStatus.' alert-dismissible fade show"
role="alert">
<strong>'.$messageHeading.'</strong> '.$messageInfo.'
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-
label="Close"></button>
</div>';
}
?>
<header>
<nav>
<div>
<a href="#" class="nav-item nav-logo">SBTBS</a>
<!-- <a href="#" class="nav-item">Gallery</a> -->
</div>
<ul>
<li><a href="#" class="nav-item">Home</a></li>
<li><a href="#about" class="nav-item">About</a></li>
<li><a href="#contact" class="nav-item">Contact</a></li>
</ul>
<div>
<a href="#" class="login nav-item" data-bs-toggle="modal" data-bs-
target="#loginModal"><i class="fas fa-sign-in-alt" style="margin-right: 0.4rem;"></i>Login</a>
<a href="#pnr-enquiry" class="pnr nav-item">PNR Enquiry</a>
</div>
</nav>
</header>
<!-- Login Modal -->
<?php require 'assets/partials/_loginModal.php';
require 'assets/partials/_getJSON.php';
$routeData = json_decode($routeJson);
$busData = json_decode($busJson);
$customerData = json_decode($customerJson);
?>
<section id="home">
<div id="route-search-form">
<h1>Simple Bus Ticket Booking System</h1>
<center>
<button class="btn btn-danger " data-bs-toggle="modal" data-bs-
target="#loginModal">Administrator Login</button>
</center>
<br>
<center>
<a href="#pnr-enquiry"><button class="btn btn-primary">Scroll Down <i class="fa fa-
arrow-down"></i></button></a>
</center>
</div>
</section>
<div id="block">
<section id="info-num">
<figure>
<img src="assets/img/route.svg" alt="Bus Route Icon" width="100px" height="100px">
<figcaption>
<span class="num counter" data-target="<?php echo count($routeData); ?
>">999</span>
<span class="icon-name">routes</span>
</figcaption>
</figure>
<figure>
<img src="assets/img/bus.svg" alt="Bus Icon" width="100px" height="100px">
<figcaption>
<span class="num counter" data-target="<?php echo count($busData);
?>">999</span>
<span class="icon-name">bus</span>
</figcaption>
</figure>
<figure>
<img src="assets/img/customer.svg" alt="Happy Customer Icon" width="100px"
height="100px">
<figcaption>
<span class="num counter" data-target="<?php echo count($customerData); ?
>">999</span>
<span class="icon-name">happy customers</span>
</figcaption>
</figure>
<figure>
<img src="assets/img/ticket.svg" alt="Instant Ticket Icon" width="100px"
height="100px">
<figcaption>
<span class="num"><span class="counter" data-target="20">999</span>
SEC</span>
<span class="icon-name">Instant Tickets</span>
</figcaption>
</figure>
</section>
<section id="pnr-enquiry">
<div id="pnr-form">
<h2>PNR ENQUIRY</h2>
<form action="<?php echo $_SERVER["REQUEST_URI"]; ?>" method="POST">
<div>
<input type="text" name="pnr" id="pnr" placeholder="Enter PNR">
</div>
<button type="submit" name="pnr-search">Submit</button>
</form>
</div>
</section>
<section id="about">
<div>
<h1>About Us</h1>
<h4>Wanna know were it all started?</h4>
<p>
Lorem ipsum dolor sit amet consecteturadipisicing elit. Perferendis soluta voluptas
eaque, numquam veritatis aperiam expedita deleniti, nesciunt cum alias velit. Cupiditate
commodi
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Accusamus cum nisi ea
optio unde aliquam quia reprehenderit atque eum tenetur!
Lorem ipsum dolor sit amet consectetur adipisicing elit. Sed placeat debitis corporis
voluptates modi quibusdam quidem voluptatibus illum, maiores sequi.
</p>
</div>
</section>
<section id="contact">
<div id="contact-form">
<h1>Contact Us</h1>
<form action="">
<div>
<label for="name">Name</label>
<input type="text" name="name" id="name">
</div>
<div>
<label for="email">Email Address</label>
<input type="email" name="email" id="email">
</div>
<div>
<label for="message">Message</label>
<textarea name="message" id="message" cols="30" rows="10"></textarea>
</div>
<div></div>
</form>
</div>
</section>
<footer>
<p>
<i class="far fa-copyright"></i> <?php echo date('Y');?> - Simple Bus Ticket
Booking System | Made with ❤️ by csbs
</p>
</footer>
</div>
Conclusion
The development of a bus ticket booking system utilizing cloud computing offers a range of
benefits that significantly enhance the efficiency, scalability, and user experience of the service.
The primary advantages include:
Scalability: Cloud infrastructure allows the system to handle varying loads seamlessly, ensuring
that during peak times, the service remains available and responsive.
Cost-Effectiveness: By leveraging cloud services, the system reduces the need for extensive
on-premise hardware and maintenance costs. Pay-as-you-go models further optimize
operational costs.
Reliability and Availability: Cloud platforms offer robust uptime guarantees and disaster recovery
options, ensuring that the ticket booking system is always accessible to users.
Flexibility: The system can be easily updated and maintained without significant downtime. New
features and updates can be rolled out efficiently.
Data Security and Compliance: Cloud providers often have advanced security measures and
compliance certifications, ensuring that user data is protected according to the latest standards.
Integration Capabilities: The cloud environment facilitates integration with various third-party
services such as payment gateways, maps, and customer support systems, enhancing the
overall functionality.
Future Scope
The bus ticket booking system can be further enhanced and expanded in several ways to
provide a more comprehensive and advanced service:
Developing native mobile applications with offline capabilities to cater to users with intermittent
internet access.
Enhancing the mobile user experience with intuitive interfaces and features like real-time
tracking of buses.
Blockchain Integration:
Leveraging blockchain technology for secure and transparent transactions, ensuring data
integrity and reducing fraud.
Advanced Analytics:
Using big data analytics to gain insights into user behavior, preferences, and operational
efficiencies.
Implementing real-time analytics for monitoring system performance and user satisfaction.
Enhanced User Experience:
Incorporating virtual assistants or chatbots for customer support to provide instant assistance.
Offering more flexible payment options, including digital wallets and cryptocurrencies.
Internet of Things (IoT):
Integrating IoT devices to provide real-time data on bus locations, traffic conditions, and seat
availability.
Enabling smart bus stops with digital displays showing arrival times and other relevant
information.
Geographic Expansion:
Scaling the system to cover more regions and incorporate various modes of transportation,
including trains and ride-sharing services.
Offering multi-modal transportation options and seamless ticketing for end-to-end journey
planning.
Sustainability Initiatives:
Promoting eco-friendly transportation options and providing information on the carbon footprint
of journeys.
Implementing features that encourage users to opt for greener travel alternatives.
By continuously innovating and incorporating these advanced technologies and features, the
bus ticket booking system can stay ahead in the competitive market, providing exceptional
service to users and adapting to their evolving needs.