Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 70

BENGALURU NORTH UNIVERSITY

(2023-2024)

A Project Report on
ONLINE RAILWAY RESERVATION SYSTEM

A project report Submitted in partial fulfilment of the requirements for the award of
Degree of

Bachelor of Computer Application


By
MANASABAI PB(U19NQ21S0036)

Under the guidance of


Ms.Jansirani E
Assistant Professor

DEPARTMENT OF BCA

Cambridge College
Bangalore-560036
DEPARTMENT OF BCA

CAMBRIDGE COLLEGE
Bangalor

CERTIFICATE

This is to certify that MANASABAI PB Of 6 SEM BCA has carried out the project Titled “ONLINE
RAILWAY REGISTRATION SYSTEM” under the guidance of Ms.Jansirani E ss and Submitted in partial
fulfilment of Bachelor of Computer Applications during academic year.

2023-2024

Date:

Head of Department Principal

Internal Examiner External Signature


DECLARATION

I MANASABAI PB hereby declare that the project work titled ONLINE RAILWAY REGISTRATION
SYSTEM is a Bonafide work carried out by me under the guidance of Ms.Jansirani E Assistant Professor,
Dept. of BCA.

MANASABAI PB(U19NQ21S0036)

ACKNOWLEDGEMENT

I would like to express my sincere thanks to my institution CAMBRIDGE COLLEGE, for


providing excellent infrastructure for the successful completion of the project.
I wish to express my whole hearted gratitude to my Principal Dr.ASHWINI K, for her kind
support in carrying out this project.

I would like to extend hearty thanks to my HOD, Ms.MEERA SATHISH for being a constant
support and encouragement to carry out the project successfully.

I would like to extend hearty thanks to my guide Ms.JANSIRANI E for her valuable
suggestions, guidance and support in the completion of this project.

I would like to thank all teaching and non-teaching staff who have directly and indirectly
supported in carrying out this project successfully.

I extend my sincere thanks to my parents, friends for their moral support provided in completion
of the project.

MANASABAI PB(U19NQ21S0036)
ABSTRACT

The Online Railway Reservation System (RRMS) is a comprehensive software solution designed to streamline
and optimize the process of booking train tickets and managing passenger information. With the ever-increasing
demand for efficient transportation services, especially in the railway sector, the RRMS offers a user-friendly
interface for both passengers and administrators, enhancing the overall experience of train travel.

The primary objective of the RRMS is to provide a seamless booking experience for passengers while ensuring
effective management of railway resources. Passengers can easily search for train routes, check seat availability,
and make reservations through the online platform. The system incorporates advanced algorithms to efficiently
handle multiple bookings simultaneously, minimizing wait times and ensuring smooth transactions.

Moreover, the RRMS facilitates the management of passenger data, including ticket information, personal
details, and travel preferences. Administrators can access a centralized database to track bookings, manage train
schedules, and analyze passenger trends. This data-driven approach enables railway authorities to make
informed decisions regarding capacity planning, resource allocation, and service improvement.

TABLE OF CONTENTS
Acknowledgement i
Abstract ii
List of Figures iii
List of Tables iv

Chapter No. Name of the Chapter Page No.

Chapter 1: Introduction
1.1 About the Mini Project 1
1.2 About SQL 1-3
1.3 Scope and Application 3-4
1.4 Implementation of Architecture 5-8
Chapter 2: Literature Survey
2.1 Related Work 9
2.2 Problem Statement 9
2.3 Proposed Statement 9
2.4 Advantages and Disadvantages 10
Chapter 3: System Requirements and Specifications
3.1 Hardware Requirements 11
3.2 Software Requirements 11
3.3 Functional Requirements 11
Chapter 4: Design and Methodology
4.1 Architecture of the Proposed System 12
4.2 ER Diagram and Schema Diagram 13-14
Chapter 5: Tables and Implementation
5.1 Tables used in the project 15-16
5.2 Module Division 17
5.3 Algorithm 17-18
Chapter 6: Testing and Coding
6.1 Types of Testing 19-20
6.2 Coding 21-55
Chapter 7: Results and Discussions 56-64
Chapter 8: Conclusion 65
Bibliography 66
LIST OF FIGURES

Figure No. Name of the Figure Page No.


4.1 System Architecture 12
4.2 Entity Relationship Diagram 13
4.3 Schema Diagram 14
7.1 welcome Page 56
7.3 Register Page 57
7.4 Login Page 58
7.8 Book Train Page 60
8.0 Booking Page 61
8.4 Checkout Page 63

LIST OF TABLES

Table No. Name of the table Page No.


5.1.1 Passengers Table 15
5.1.2 Staff Table 15
5.1.3 Station Table 15
5.1.4 Tickets Table 16
5.1.5 Train Table 16
Online Railway Reservation system

INTRODUCTION

1.1 About the Mini Project


The Railway Reservation Management System (RRMS) represents a pivotal
advancement in the realm of transportation management, specifically within the railway
sector. As one of the most widely used modes of transportation globally, railways face the
constant challenge of efficiently managing passenger bookings, optimizing resource
utilization, and ensuring a seamless travel experience for millions of passengers daily. In
response to these challenges, the RRMS emerges as a comprehensive software solution aimed
at revolutionizing the way railway services are accessed, booked, and managed.

1.2 About SQL


MySQL is an Oracle-backed open-source relational database management system
(RDBMS) based on Structured Query Language (SQL). MySQL runs on virtually all
platforms, including Linux, UNIX and Windows. Although it can be used in a wide
range of applications, MySQL is most often associated with web applications and
online publishing. MySQL is an important component of an open-source enterprise
stack called LAMP. LAMP is a web development platform that uses Linux as the
operating system, Apache as the web server. The ANSI standard SQL provides basic
functions for data manipulation, transaction control, and record retrieval from the
database. However, most end users intract with Oracle through applications that
provide an interface that hides the underlying SQL and its complexity Originally
conceived by the Swedish company MySQL was acquired by Sun Microsystems in
2008 and then by Oracle when it bought Sun in 2010. Developers can use MySQL
under the GNU General Public License (GPL), but enterprises must obtain a
commercial license from Oracle. Today, MySQL is the RDBMS behind many of the
top websites in the world and countless corporate and consumer-facing web-based
applications, including Facebook, Twitter and YouTube.

pg. 1
Online Railway Reservation system
PHP is a widely-used open-source scripting language primarily designed for web
development. Originally created by Danish-Canadian programmer Rasmus Lerdorf in 1994,
PHP stands for "PHP: Hypertext Preprocessor" (originally "Personal Home Page").

Here are some key points about PHP:

Server-Side Scripting: PHP is a server-side scripting language, meaning it's executed on


the server before the result is sent to the client's browser.

Syntax: PHP syntax is similar to C, Java, and Perl. It is known for its simplicity and ease of
learning, especially for those who have experience in C-like languages.

Dynamic Web Pages: PHP is commonly used to create dynamic web pages, allowing
developers to generate content on the fly based on user input, database queries, or other
external data sources.

Integration: PHP can be seamlessly integrated with HTML, allowing developers to embed
PHP code directly into HTML pages for dynamic content generation.

Database Connectivity: PHP supports a wide range of databases, including MySQL,


PostgreSQL, Oracle, and SQLite, making it suitable for building database-driven web
applications.

Frameworks: There are several popular PHP frameworks like Laravel, Symfony, and
CodeIgniter, which provide developers with tools and structures to streamline the
development process.

Open Source: PHP is open source, meaning its source code is freely available and can be
modified and redistributed by anyone. This has contributed to its widespread adoption and
continuous improvement by the community.

pg. 2
Online Railway Reservation system

Cross-Platform: PHP runs on various platforms, including Windows, Linux, macOS, and
Unix-like systems, making it highly versatile for web development across different
environments.

Large Community: PHP has a large and active community of developers who contribute
to its development, provide support, and create extensive documentation and resources for
learning.

Usage: PHP powers a significant portion of the web, with popular websites like Facebook,
Wikipedia, WordPress, and many others built using PHP.

Overall, PHP is a powerful and flexible language for web development, offering a balance of
simplicity, functionality, and scalability for building a wide range of web applications and
services.

1.3 Scope and Application


The scope of the Railway Reservation Management System (RRMS) project encompasses a
wide range of functionalities and objectives aimed at revolutionizing the booking and
management processes within the railway sector. Primarily, the project aims to develop a
comprehensive software solution that facilitates seamless train ticket booking, efficient
resource utilization, and enhanced passenger experience. This includes features such as an
intuitive user interface for passengers to search, select, and book train tickets online, real-
time availability updates, and secure payment gateways for transactions.

pg. 3
Online Railway Reservation system
Online Railway ticket reservation is very useful nowadays. This is very important to design a
good-working system software for ticket booking and related transactions. To design it, full-
track documentation of models (ER, DFD, Class, Use-case, Activity, Sequence) is required as
per as software development is concerned.

Features of the System:

The Reservation system should contain the following features:

If a passenger wants to reserve ticket(s), firstly, he/she has to log in to the Railway system
with valid credentials. Then, the passenger has to provide his/her details with the date of the
journey, names of the passengers and their details, origin station details, destination station
details, and the class type of the required ticket(s).

The Railway Reservation System will provide the available Train-list, and Seat-availability,
via-details

pg. 4
Online Railway Reservation system

IMPLEMENTATION OR ARCHITECTURE DESIGN

1. ENTITY RELATIONAL (ER) MODEL: It is a high-level conceptual


data model diagram. ER modeling helps you to analyze data requirements systematically
to produce a well-designed database. The Entity-Relation model represents real-world
entities and the relationship between them. It is considered a best practice to complete ER
modeling before implementing your database.ER modeling helps you to analyze data
requirements systematically to produce a well-designed database.

2. USE CASE DIAGRAM: A use case diagram at its simplest is a representation of


a user's interaction with the system that shows the relationship between the user and the
different use cases in which the user is involved. A use case diagram can identify the
different types of users of a system and the different use cases and will often be
accompanied by other types of diagrams as well. The use cases are represented by either
circles or ellipses

USE CASE DIAGRAM FOR CANCELLATION

pg. 5
Online Railway Reservation system

USE CASE DIAGRAM FOR TICKET BOOKING SYSTEM

3.DATA FLOW DIAGRAM: Data flow diagrams are used to graphically represent
the flow of data in a business information system. DFD describes the processes that are
involved in a system to transfer data from the input to the file storage and report generation
pg. 6
Online Railway Reservation system

DATA FLOW DIAGRAM FOR LEVEL 0

DATA FLOW DIAGRAM FOR LEVEL 1

pg. 7
Online Railway Reservation system

SYSTEM DESIGN DIAGRAM

pg. 8
Online Railway Reservation system

LITERATURE REVIEW
2.1 Related works
Several related works have contributed significantly to the development and enhancement
of Railway Reservation Management Systems (RRMS). One notable area of research
focuses on improving the user experience and efficiency of ticket booking processes.
Various studies have explored the implementation of user-friendly interfaces, intuitive
search algorithms, and real-time availability updates to streamline the booking process
and enhance passenger satisfaction. Additionally, research efforts have been directed
towards integrating advanced technologies such as artificial intelligence and machine
learning to develop predictive models for demand forecasting and dynamic pricing
strategies, thereby optimizing resource utilization and revenue generation for railway
authorities.

1.3 Problem Statement


The existing railway reservation systems are plagued with inefficiencies and
shortcomings that hinder the smooth functioning of railway services and detract from the
passenger experience. Traditional reservation methods often involve long queues at ticket
counters, limited accessibility to booking facilities, and manual processes prone to errors
and delays. Additionally, railway authorities face challenges related to resource
optimization, capacity planning, and decision-making due to the lack of comprehensive
data analytics and decision support systems.

2.3 Proposed Solution


The proposed solution for the Railway Reservation Management System (RRMS)
encompasses the development of a robust and user-centric software platform designed to
streamline the booking process, optimize resource utilization, and enhance the overall
passenger experience. This solution integrates advanced technologies, intuitive interfaces,
and data-driven decision support systems to address the inefficiencies and shortcomings of

existing reservation systems.

pg. 9
Online Railway Reservation system

2.4 Advantages and Disadvantages


2.4.1 Advantages
The Railway Reservation Management System (RRMS) offers a myriad of advantages
that revolutionize the way railway services are accessed, booked, and managed. Firstly,
RRMS enhances the overall efficiency and convenience of the booking process by providing
passengers with a user-friendly online platform accessible via web browsers or mobile
applications. This eliminates the need for traditional manual ticketing processes, reducing
queues at ticket counters and minimizing wait times for passengers. Moreover, RRMS
incorporates advanced technologies such as real-time updates and availability checks,
enabling passengers to make informed decisions and secure bookings seamlessly.
.
2.4.2 Disadvantage
While the Railway Reservation Management System (RRMS) offers numerous
advantages, it also presents certain drawbacks that warrant consideration. One potential
disadvantage of RRMS is the digital divide, which may exclude segments of the population
with limited access to technology or internet connectivity from utilizing the system
effectively. This could result in marginalized groups facing difficulties in accessing railway
services and booking tickets, exacerbating existing disparities in transportation access.

pg. 10
Online Railway Reservation system

SYSTEM REQUIREMENTS AND SPECIFICATIONS

3.1 Hardware Requirements


 Processor: core i3 or higher
 RAM:2GB
 Hard disk:25GB

3.2 Software Requirements


 Operating System: Windows, Linux, Mac
 Languages: PHP
 Database: MYSQL
 Tools: Visual Studio Code, XAMPP

3.3 Functional Requirements


 Mobility
 Convenience
 User-Interface
 Transparency
 Flexibility
 Accuracy
 Eligibility

pg. 11
Online Railway Reservation system

DESIGN AND METHODOLOGY

4.1 Architecture of the Proposed System

Figure 4.1 System Architecture


.

The architecture of a proposed Railway Reservation System involves the design and
organization of various components and layers that work together to provide the desired
functionalities efficiently and securely. The proposed architecture provides a structured
framework for building a scalable, secure, and efficient Railway Reservation System. Each
layer plays a specific role in delivering the desired functionalities while maintaining the
overall integrity and reliability of the system.

pg. 12
Online Railway Reservation system

4.2 ER and Schema Diagram

Figure 4.2: Entity Relationship Diagram

pg. 13
Online Railway Reservation system

4.2.1 Schema diagram

Figure 4.3: Schema Diagram

pg. 16
Online Railway Reservation system

TABLES AND IMPLEMENTATION


5.1 Tables used in the project
 Table 5.1.1: Passengers

 Table 5.1.2: Staff

 Table 5.1.3: Station Table

pg. 17
Online Railway Reservation system

 Table 5.1.4 Ticket Table

 Table5.1.5: Train Table

pg. 18
Online Railway Reservation system Tables and Implementation

5.2 Module Division


 A Railway Reservation System typically consists of several modules that handle
different aspects of the reservation process and related functionalities. Here are some
common modules found in a Railway Reservation System:
 User Authentication Module: This module handles user authentication and
authorization, allowing users to log in securely to the system.
 Ticket Booking Module: This module facilitates users to search for trains, check seat
availability, and book tickets for their desired journey.
 Seat Allocation Module: This module is responsible for allocating seats to passengers
based on their preferences and availability.
 Ticket Cancellation Module: Users can cancel their booked tickets through this
module, and refunds are processed according to the cancellation policy.
 Customer Support Module: This module provides customer support services such as
helpdesk assistance, live chat support, FAQs, etc., to assist users with their queries and
concerns.

5.3 Algorithm
Designing an algorithm for a Railway Reservation System involves defining the steps and
logic required to facilitate various functionalities such as ticket booking, cancellation, seat
allocation, etc. Here's a simplified algorithm outline for the ticket booking process:
 Input: User details (passenger name, contact information, etc.).
• Journey details (source station, destination station, date, etc.).
• Train details (train number, class, etc.).
• Search for Trains:
• Query the database to find trains available for the specified journey date and
route.
• Display available trains along with their schedules and seat availability.
 Select Train and Class:
• User selects a train and the desired class (e.g., Sleeper, AC, etc.).
 Check Seat Availability: Verify if seats are available in the selected class. If seats are
available, proceed to the next step. Otherwise, inform the user and allow them to select
another train or class
pg. 19
Online Railway Reservation system

 Book Ticket:
• Collect passenger details (name, age, gender, etc.).
• Generate a unique ticket ID.
• Update the database to reserve the selected seats for the passenger.
• Calculate the fare based on the selected class and number of passengers.
• Generate a booking confirmation with ticket details.
• Payment Processing:
• Collect payment information from the user (credit/debit card, net banking,
etc.).
• Process the payment securely.
• Update the database to mark the ticket as paid.
 Ticket Confirmation: Display the confirmed ticket details to the user.
• Send a confirmation email/SMS to the user with ticket information. 
Cancellation (Optional): If the user wishes to cancel the ticket:
• Collect the ticket ID or booking reference.
• Refund the amount as per the cancellation policy.
• Update the database to release the reserved seats.
• End: End the booking process.

This algorithm outlines the basic steps involved in the ticket booking process of a
Railway Reservation System. Depending on the system's requirements and complexity,
additional steps may be included, such as seat allocation, waiting list management,
integration with payment gateways, etc. Additionally, error handling and validation checks
should be implemented at each step to ensure the integrity and reliability of the system.

pg. 20
Online Railway Reservation system

TESTING
6.1 Types of Testing
 System Testing is a critical element of software quality assurance and represents the
ultimate review of specification, design, and coding. The user tests the developed
system and changes are made according to their needs. The testing phase involves the
testing developed system using various kinds of data. Testing is vital to the success of
the system. System testing makes a logical assumption that if all the parts of the
system are correct, the goal will be successfully achieved. The railway reservation
system is subject to a variety of tests such as recover, security and usability tests. A
series of testing is performed for the proposed system before the system is ready for
the user acceptance testing. Implementation ends with formal tests. The test data are
very crucial to this process. They must be realistic and cover extreme conditions are
well. Ideally, vary alternative path through the program should be exercised at least
once beyond the test data. The system test must involve all the elements that compose
the system including program validation checking, files, and forms and triggers
procedures.

 Component testing is of individual program components i.e. the each module is


tested. Component or unit testing is the process of testing individual components in
isolation. It is a defect testing process.

 Testing Strategies
Following are few of the testing strategies used for the testing purpose:
• Unit testing.
• Validation testing.
• Output testing.
• User acceptance testing.

pg. 21
Online Railway Reservation system
Testing

 Unit Testing it focuses effort on the smallest unit of software design of the module.
This is also known as “Module Testing”. The module is tested separately. This testing
was carried out during programming stage itself in this testing each module is found
to be working satisfactorily with regards to the expected output from the module.

 Validating Testing at the culmination of integration testing, software is completely


assembled as a package, interfacing errors have been uncovered and corrected and
final series of software test begins. Validation testing can be defined in many ways, but
a simple definition is that validation succeeds when the software function in a manner
that can be reasonably expected by the customer. After validation test has been
conducted, one of the two possible conditions exists, the functions are performance
characteristics confirm to specification and are accepted or a deviation from
specification is uncovered and deficiency list is created.

 Output Testing after performing the validation testing the next test is output testing of
the proposed system since no system could be useful if it does not produce the
required output in the specified format. Asking the user about the format required by
them tests the outputs generated or displayed by the system under consideration. Here,
the output format is considered in two ways. One on-screen and other is printed
format. The output format on the screen is found to be correct as the format was
designed in the system phase according to the user’s needs. Hence, output testing does
not result in any correction in the system.

 User Acceptance Testing of a system is the key factory for the success of any system.
The system under consideration is tested for user acceptance by constantly keeping in
touch with the perspective system. Users at time of developing can make changes
wherever required. Taking various kinds of test data does the above tests. Preparation
of the test data places a vital role in system testing. After preparing the test data the
system

pg. 22
Online Railway Reservation system

Coding

Login

**Log on to codeastro.com for more projects! ***

**Database Name: orrsphp**

**Developed by Martin Mbithi Nzilani**

**Recommended PHP Version: 5.6, 7.4, 8.1**

**Admin Login Details**

Email: admin@mail.com

Password: codeastro.com

pg. 23
Online Railway Reservation system

Employee login

<!-- Server side code for log in-->


<?php
session_start();
include('assets/inc/config.php');//get configuration file
if(isset($_POST['emp_login']))
{
$emp_email=$_POST['emp_email'];
$emp_pwd=sha1(md5($_POST['emp_pwd']));//double encrypt to increase security
$stmt=$mysqli->prepare("SELECT emp_email ,emp_pwd , emp_id FROM
orrs_employee WHERE emp_email=? and emp_pwd=? ");//sql to log in user
$stmt->bind_param('ss',$emp_email,$emp_pwd);//bind fetched parameters
$stmt->execute();//execute bind
$stmt -> bind_result($emp_email,$emp_pwd,$emp_id);//bind result
$rs=$stmt->fetch();
$_SESSION['emp_id']=$emp_id;//assaign session to passenger id
//$uip=$_SERVER['REMOTE_ADDR'];
//$ldate=date('d/m/Y h:i:s', time());
if($rs)
{//if its sucessfull
header("location:emp-dashboard.php");
}

else
{
#echo "<script>alert('Access Denied Please Check Your Credentials');</script>";
$error = "Access Denied Please Check Your Credentials";
}
}
?>
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-
scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="assets/img/favicon.ico">
<title>Online Railway Reservation System</title>

pg. 24
Online Railway Reservation system
<link rel="stylesheet" type="text/css" href="assets/lib/perfect-scrollbar/css/perfect-
scrollbar.css"/>
<link rel="stylesheet" type="text/css" href="assets/lib/material-design-icons/css/material-
design-iconic-font.min.css"/>
<link rel="stylesheet" href="assets/css/app.css" type="text/css"/>
<!--Trigger Sweet Alert-->
<?php if(isset($error)) {?>
<!--This code for injecting an alert-->
<script>
setTimeout(function ()
{
swal("Failed!","<?php echo $error;?>!","error");
},
100);
</script>

<?php } ?>
</head>
<body class="be-splash-screen">
<div class="be-wrapper be-login">
<div class="be-content">
<div class="main-content container-fluid">
<div class="splash-container">
<div class="card card-border-color card-border-color-success">
<div class="card-header"><img class="logo-img" src="assets/img/logo-xx.png"
alt="logo" width="{conf.logoWidth}" height="27"><span class="splash-description">Please
enter your user information.</span></div>
<div class="card-body">

<!--Login Form-->
<form method ="POST">
<div class="login-form ">

<div class="form-group">
<input class="form-control" name="emp_email" type="text"
placeholder="Email" autocomplete="off">
</div>

<div class="form-group">
<input class="form-control" name="emp_pwd" type="password"
placeholder="Password">
</div>

<div class="form-group row login-tools">


<div class="col-6 login-remember">
<div class="custom-control custom-checkbox">
<input class="custom-control-input" type="checkbox" id="check1">
<label class="custom-control-label" for="check1">Remember Me</label>
pg. 25
Online Railway Reservation system
</div>
</div>
<div class="col-6 login-forgot-password"><a target = "_blank" href="../pass-
pwd-forgot.php">Forgot Password?</a></div>
</div>

<div class="form-group row login-submit">


<div class="col-6"><input type = "submit" name ="emp_login" class="btn btn-
success btn-xl" value ="Log In"></div>
</div>

</div>
</form>
<!--End Login-->
</div>
</div>
<div class="splash-footer">Back <a href = "../index.php">Home</a></div>

<div class="splash-footer">&copy; 2019 - <?php echo date ('Y');?> Online Railway


Reservation System | Developed By Martin Mbithi Nzilani</div>
</div>
</div>
</div>
</div>
<script src="assets/lib/jquery/jquery.min.js" type="text/javascript"></script>
<script src="assets/lib/perfect-scrollbar/js/perfect-scrollbar.min.js"
type="text/javascript"></script>
<script src="assets/lib/bootstrap/dist/js/bootstrap.bundle.min.js"
type="text/javascript"></script>
<script src="assets/js/app.js" type="text/javascript"></script>
<script src="assets/js/swal.js"></script>

<script type="text/javascript">
$(document).ready(function(){
//-initialize the javascript
App.init();
});

</script>
</body>

</html>

pg. 26
Online Railway Reservation system

Employee logout

<?php
session_start();
unset($_SESSION['emp_id']);
session_destroy();

header("Location: emp-login.php");
exit;
?>

pg. 27
Online Railway Reservation system

Employee Dashboard
<?php
session_start();
include('assets/inc/config.php');
include('assets/inc/checklogin.php');
check_login();
$aid=$_SESSION['emp_id'];
?>
<!DOCTYPE html>
<html lang="en">
<!--Head-->
<?php include("assets/inc/head.php");?>
<!--End Head-->
<body>

<div class="be-wrapper be-fixed-sidebar">

<!--Navbar-->
<?php include("assets/inc/navbar.php");?>
<!--End Nav Bar-->

<!--Sidebar-->
<?php include('assets/inc/sidebar.php');?>
<!--End Sidebar-->

<div class="be-content">
<div class="main-content container-fluid">
<div class="row">
<div class="col-12 col-lg-6 col-xl-3">
<div class="widget widget-tile">
<div class="chart sparkline"><i class="material-
icons">airline_seat_recline_normal</i></div>
<div class="data-info">
<?php
//code for summing up number of passengers
$result ="SELECT count(*) FROM orrs_passenger";
$stmt = $mysqli->prepare($result);
$stmt->execute();
$stmt->bind_result($pass);
$stmt->fetch();
$stmt->close();
?>
<div class="desc">Passengers</div>
<div class="value"><span class="indicator indicator-equal mdi mdi-chevron-
right"></span><span class="number" data-toggle="counter" data-end="<?php echo $pass;?
>">0</span>
pg. 28
Online Railway Reservation system
</div>
</div>
</div>
</div>
<div class="col-12 col-lg-6 col-xl-3">
<div class="widget widget-tile">
<div class="chart sparkline"><i
class="material-icons">directions_subway</i></div>
<div class="data-info">
<?php
//code for summing up number of trains
$result ="SELECT count(*) FROM orrs_train";
$stmt = $mysqli->prepare($result);
$stmt->execute();
$stmt->bind_result($train);
$stmt->fetch();
$stmt->close();
?>
<div class="desc">Trains</div>
<div class="value"><span class="indicator indicator-positive mdi mdi-chevron-
right"></span><span class="number" data-toggle="counter" data-end="<?php echo $train;?
>">0</span>
</div>
</div>
</div>
</div>

<div class="col-12 col-lg-6 col-xl-3">


<div class="widget widget-tile">
<div class="chart sparkline"><i class="material-icons">receipt</i></div>
<div class="data-info">
<?php
//code for summing up number of trains tickets
$result ="SELECT count(*) FROM orrs_train_tickets WHERE confirmation
='Approved'";
$stmt = $mysqli->prepare($result);
$stmt->execute();
$stmt->bind_result($ticket);
$stmt->fetch();
$stmt->close();
?>
<div class="desc">Booked Tickets</div>
<div class="value"><span class="indicator indicator-positive mdi mdi-chevron-
right"></span><span class="number" data-toggle="counter" data-end="<?php echo $ticket;?
>">0</span>
</div>
</div>
</div>
pg. 29
Online Railway Reservation system
</div>

<div class="col-12 col-lg-6 col-xl-3">


<div class="widget widget-tile">
<div class="chart sparkline"><i class="material-icons">assignment_late</i></div>
<div class="data-info">
<?php
//code for summing up number of passengers
$result ="SELECT count(*) FROM orrs_train_tickets where confirmation !=
'Approved' ";
$stmt = $mysqli->prepare($result);
$stmt->execute();
$stmt->bind_result($pass);
$stmt->fetch();
$stmt->close();
?>
<div class="desc">Pending Tickets</div>
<div class="value"><span class="indicator indicator-positive mdi mdi-chevron-
right"></span><span class="number" data-toggle="counter" data-end="<?php echo $pass;?
>">0</span>
</div>
</div>
</div>
</div>

</div>
<div class="row">
<div class="col-sm-12">
<div class="card card-table">
<div class="card-header">Trains

<div class="tools dropdown"><span class=""></span><a class="dropdown-


toggle" href="#" role="button" data-toggle="dropdown"><span class=""></span></a>

</div>
</div>
<div class="card-body">
<!--Start Table-->
<table class="table table-striped table-bordered table-hover table-fw-widget"
id="table1">
<thead class="thead-dark">
<tr>
<th>Train Number</th>
<th>Train</th>
<th>Route</th>
<th>Departure</th>
pg. 30
Online Railway Reservation system
<th>Arrival</th>
<th>Dep.Time</th>
<th>Total Passengers</th>
<th>Fare</th>
</tr>
</thead>
<tbody>
<?php

$ret="SELECT * FROM orrs_train ORDER BY RAND() LIMIT 10 "; //sql


code to get to ten trains randomly
$stmt= $mysqli->prepare($ret) ;
$stmt->execute() ;//ok
$res=$stmt->get_result();
$cnt=1;
while($row=$res->fetch_object())
{
?>
<tr class="odd gradeX even gradeC odd gradeA ">
<td><?php echo $row->number;?></td>
<td><?php echo $row->name;?></td>
<td><?php echo $row->route;?></td>
<td><?php echo $row->current;?></td>
<td><?php echo $row->destination;?></td>
<td><?php echo $row->time;?></td>
<td><?php echo $row->passengers;?></td>
<td>$<?php echo $row->fare;?></td>
</tr>

<?php $cnt=$cnt+1; }?>


</tbody>
</table>
<!--eND Table-->
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="card card-table">
<div class="card-header">Passenger Reservations

<div class="tools dropdown"><span class=""></span><a class="dropdown-


toggle" href="#" role="button" data-toggle="dropdown"><span class=""></span></a>

</div>
</div>
<div class="card-body">
pg. 31
Online Railway Reservation system
<!--Start Table-->
<table class="table table-striped table-bordered table-hover table-fw-widget"
id="table1">
<thead class="thead-dark">
<tr>
<th>#</th>
<th>Passenger</th>
<th>Address</th>
<th>Train Number</th>
<th>Train</th>
<th>Departure</th>
<th>Arrival</th>
<th>Fare</th>
</tr>
</thead>
<tbody>
<?php
$ret="SELECT * FROM orrs_train_tickets WHERE confirmation
='Approved'"; //sql code to get all details of booked trains.
$stmt= $mysqli->prepare($ret) ;
$stmt->execute() ;//ok
$res=$stmt->get_result();
$cnt=1;
while($row=$res->fetch_object())
{
?>
<tr class="odd gradeX even gradeC odd gradeA ">

<td><?php echo $cnt;?>


<td><?php echo $row->pass_name;?></td>
<td><?php echo $row->pass_addr;?></td>
<td><?php echo $row->train_no;?></td>
<td><?php echo $row->train_name;?></td>
<td><?php echo $row->train_dep_stat ;?></td>
<td><?php echo $row->train_arr_stat;?></td>
<td>$<?php echo $row->train_fare;?></td>
</tr>

<?php $cnt=$cnt+1; }?>


</tbody>
</table>
<!--eND Table-->
</div>
</div>
</div>
</div>

</div>
pg. 32
Online Railway Reservation system
<!--footer-->
<?php include('assets/inc/footer.php');?>
<!--EndFooter-->
</div>

</div>

<script src="assets/lib/jquery/jquery.min.js" type="text/javascript"></script>


<script src="assets/lib/perfect-scrollbar/js/perfect-scrollbar.min.js"
type="text/javascript"></script>
<script src="assets/lib/bootstrap/dist/js/bootstrap.bundle.min.js"
type="text/javascript"></script>
<script src="assets/js/app.js" type="text/javascript"></script>
<script src="assets/lib/jquery-flot/jquery.flot.js" type="text/javascript"></script>
<script src="assets/lib/jquery-flot/jquery.flot.pie.js" type="text/javascript"></script>
<script src="assets/lib/jquery-flot/jquery.flot.time.js" type="text/javascript"></script>
<script src="assets/lib/jquery-flot/jquery.flot.resize.js" type="text/javascript"></script>
<script src="assets/lib/jquery-flot/plugins/jquery.flot.orderBars.js"
type="text/javascript"></script>
<script src="assets/lib/jquery-flot/plugins/curvedLines.js" type="text/javascript"></script>
<script src="assets/lib/jquery-flot/plugins/jquery.flot.tooltip.js"
type="text/javascript"></script>
<script src="assets/lib/jquery.sparkline/jquery.sparkline.min.js"
type="text/javascript"></script>
<script src="assets/lib/countup/countUp.min.js" type="text/javascript"></script>
<script src="assets/lib/jquery-ui/jquery-ui.min.js" type="text/javascript"></script>
<script src="assets/lib/jqvmap/jquery.vmap.min.js" type="text/javascript"></script>
<script src="assets/lib/jqvmap/maps/jquery.vmap.world.js"
type="text/javascript"></script>
<script src="assets/lib/datatables/datatables.net/js/jquery.dataTables.js"
type="text/javascript"></script>
<script src="assets/lib/datatables/datatables.net-bs4/js/dataTables.bootstrap4.js"
type="text/javascript"></script>
<script src="assets/lib/datatables/datatables.net-buttons/js/dataTables.buttons.min.js"
type="text/javascript"></script>
<script src="assets/lib/datatables/datatables.net-buttons/js/buttons.flash.min.js"
type="text/javascript"></script>
<script src="assets/lib/datatables/jszip/jszip.min.js" type="text/javascript"></script>
<script src="assets/lib/datatables/pdfmake/pdfmake.min.js"
type="text/javascript"></script>
<script src="assets/lib/datatables/pdfmake/vfs_fonts.js" type="text/javascript"></script>
<script src="assets/lib/datatables/datatables.net-buttons/js/buttons.colVis.min.js"
type="text/javascript"></script>
<script src="assets/lib/datatables/datatables.net-buttons/js/buttons.print.min.js"
type="text/javascript"></script>
<script src="assets/lib/datatables/datatables.net-buttons/js/buttons.html5.min.js"
type="text/javascript"></script>

pg. 33
Online Railway Reservation system
<script src="assets/lib/datatables/datatables.net-buttons-bs4/js/buttons.bootstrap4.min.js"
type="text/javascript"></script>
<script
src="assets/lib/datatables/datatables.net-responsive/js/dataTables.responsive.min.js"
type="text/javascript"></script>
<script
src="assets/lib/datatables/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js"
type="text/javascript"></script>

<script type="text/javascript">
$(document).ready(function(){
//-initialize the javascript
App.init();
App.dashboard();

});
</script>
</body>

</html>

pg. 34
Online Railway Reservation system

Passenger login

<!-- Server side code for log in-->


<?php
session_start();
include('assets/inc/config.php');//get configuration file
if(isset($_POST['pass_login']))
{
$pass_email=$_POST['pass_email'];
$pass_pwd=sha1(md5($_POST['pass_pwd']));//double encrypt to increase security
$stmt=$mysqli->prepare("SELECT pass_email ,pass_pwd , pass_id FROM
orrs_passenger WHERE pass_email=? and pass_pwd=? ");//sql to log in user
$stmt->bind_param('ss',$pass_email,$pass_pwd);//bind fetched parameters
$stmt->execute();//execute bind
$stmt -> bind_result($pass_email,$pass_pwd,$pass_id);//bind result
$rs=$stmt->fetch();
$_SESSION['pass_id']=$pass_id;//assaign session to passenger id
//$uip=$_SERVER['REMOTE_ADDR'];
//$ldate=date('d/m/Y h:i:s', time());
if($rs)
{//if its sucessfull
header("location:pass-dashboard.php");
}

else
{
#echo "<script>alert('Access Denied Please Check Your Credentials');</script>";
$error = "Access Denied Please Check Your Credentials";
}
}
?>
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-
scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="assets/img/favicon.ico">
<title>Online Railway Reservation System</title>
pg. 35
Online Railway Reservation system
<link rel="stylesheet" type="text/css" href="assets/lib/perfect-scrollbar/css/perfect-
scrollbar.css"/>
<link rel="stylesheet" type="text/css" href="assets/lib/material-design-icons/css/material-
design-iconic-font.min.css"/>
<link rel="stylesheet" href="assets/css/app.css" type="text/css"/>
<!--Trigger Sweet Alert-->
<?php if(isset($error)) {?>
<!--This code for injecting an alert-->
<script>
setTimeout(function ()
{
swal("Failed!","<?php echo $error;?>!","error");
},
100);
</script>

<?php } ?>
</head>
<body class="be-splash-screen">
<div class="be-wrapper be-login">
<div class="be-content">
<div class="main-content container-fluid">
<div class="splash-container">
<div class="card card-border-color card-border-color-success">
<div class="card-header"><img class="logo-img" src="assets/img/logo-xx.png"
alt="logo" width="{conf.logoWidth}" height="27"><span class="splash-description">Please
enter your user information.</span></div>
<div class="card-body">

<!--Login Form-->
<form method ="POST">
<div class="login-form ">

<div class="form-group">
<input class="form-control" name="pass_email" type="text"
placeholder="Email" autocomplete="off">
</div>

<div class="form-group">
<input class="form-control" name="pass_pwd" type="password"
placeholder="Password">
</div>

<div class="form-group row login-tools">


<div class="col-6 login-remember">
<div class="custom-control custom-checkbox">
<input class="custom-control-input" type="checkbox" id="check1">
<label class="custom-control-label" for="check1">Remember Me</label>
pg. 36
Online Railway Reservation system
</div>
</div>
<div class="col-6 login-forgot-password"><a href="pass-pwd-
forgot.php">Forgot Password?</a></div>
</div>

<div class="form-group row login-submit">


<div class="col-6"><a class="btn btn-danger btn-xl" href="pass-
signup.php">Register</a></div>
<div class="col-6"><input type = "submit" name ="pass_login" class="btn btn-
success btn-xl" value ="Log In"></div>
</div>

</div>
</form>
<!--End Login-->
</div>
</div>
<div class="splash-footer"><a href = "index.php">Home</a></div>

<div class="splash-footer">&copy; 2019 - <?php echo date ('Y');?> Online Railway


Reservation System | Developed By Martin Mbithi Nzilani</div>
</div>
</div>
</div>
</div>
<script src="assets/lib/jquery/jquery.min.js" type="text/javascript"></script>
<script src="assets/lib/perfect-scrollbar/js/perfect-scrollbar.min.js"
type="text/javascript"></script>
<script src="assets/lib/bootstrap/dist/js/bootstrap.bundle.min.js"
type="text/javascript"></script>
<script src="assets/js/app.js" type="text/javascript"></script>
<script src="assets/js/swal.js"></script>

<script type="text/javascript">
$(document).ready(function(){
//-initialize the javascript
App.init();
});

</script>
</body>

</html>

pg. 37
Online Railway Reservation system

Passenger logout

<?php
session_start();
unset($_SESSION['pass_id']);
session_destroy();

header("Location: pass-login.php");
exit;
?>

pg. 38
Online Railway Reservation system

Passenger Dashboard
<?php
session_start();
include('assets/inc/config.php');
include('assets/inc/checklogin.php');
check_login();
$aid=$_SESSION['pass_id'];
?>
<!DOCTYPE html>
<html lang="en">
<!--Head-->
<?php include("assets/inc/head.php");?>
<!--End Head-->
<!--Log on to codeastro.com for more projects!-->
<body>

<div class="be-wrapper be-fixed-sidebar">

<!--Navbar-->
<?php include("assets/inc/navbar.php");?>
<!--End Nav Bar-->

<!--Sidebar-->
<?php include('assets/inc/sidebar.php');?>
<!--End Sidebar-->
<!--Log on to codeastro.com for more projects!-->
<div class="be-content">
<div class="main-content container-fluid">
<div class="row">

<div class="col-12 col-lg-6 col-xl-4">


<a href="pass-my-booked-train.php">
<div class="widget widget-tile">
<div class="chart sparkline"><i
class="material-icons">add_shopping_cart</i></div>
<div class="data-info">
<div class="desc">Booked Train</div>
</div>
</div>
</a>
</div>
<div class="col-12 col-lg-6 col-xl-4">
<a href="pass-cancel-train.php">
pg. 39
Online Railway Reservation system
<div class="widget widget-tile">
<div class="chart sparkline"><i class ="material-icons">backspace</i></div>
<div class="data-info">
<div class="desc">Cancel Booking</div>
</div>
</div>
</a>
</div>
<!--Log on to codeastro.com for more projects!-->
<div class="col-12 col-lg-6 col-xl-4">
<a href="pass-print-ticket.php">
<div class="widget widget-tile">
<div class="chart sparkline" ><i class ="material-icons">burst_mode</i></div>
<div class="data-info">
<div class="desc">Tickets</div>
</div>
</div>
</a>
</div>

</div>
<div class="row">
<div class="col-sm-12">
<div class="card card-table">
<div class="card-header">Available Trains

<div class="tools dropdown"><span class=""></span><a class="dropdown-


toggle" href="#" role="button" data-toggle="dropdown"><span class=""></span></a>

</div>
</div>
<div class="card-body">
<!--Start Table-->
<table class="table table-striped table-bordered table-hover table-fw-widget"
id="table1">
<thead class="thead-dark">
<tr>
<th>Train Number</th>
<th>Train</th>
<th>Route</th>
<th>Departure</th>
<th>Arrival</th>
<th>Dep.Time</th>
<th>Total Seat</th>
<th>Fare</th>
</tr>
</thead>
<tbody>
pg. 40
Online Railway Reservation system
<?php

$ret="SELECT * FROM orrs_train ORDER BY RAND() LIMIT 10 "; //sql


code to get to ten trains randomly
$stmt= $mysqli->prepare($ret) ;
$stmt->execute() ;//ok
$res=$stmt->get_result();
$cnt=1;
while($row=$res->fetch_object())
{
?>
<tr class="odd gradeX even gradeC odd gradeA ">
<td><?php echo $row->number;?></td>
<td><?php echo $row->name;?></td>
<td><?php echo $row->route;?></td>
<td><?php echo $row->current;?></td>
<td><?php echo $row->destination;?></td>
<td><?php echo $row->time;?></td>
<td><?php echo $row->passengers;?></td>
<td>$<?php echo $row->fare;?></td>
</tr>

<?php $cnt=$cnt+1; }?>


</tbody>
</table>
<!--eND Table-->
</div>
</div>
</div>
</div>
<!--Log on to codeastro.com for more projects!-->
</div>
<!--footer-->
<?php include('assets/inc/footer.php');?>
<!--EndFooter-->
</div>

</div>

<script src="assets/lib/jquery/jquery.min.js" type="text/javascript"></script>


<script src="assets/lib/perfect-scrollbar/js/perfect-scrollbar.min.js"
type="text/javascript"></script>
<script src="assets/lib/bootstrap/dist/js/bootstrap.bundle.min.js"
type="text/javascript"></script>
<script src="assets/js/app.js" type="text/javascript"></script>
<script src="assets/lib/jquery-flot/jquery.flot.js" type="text/javascript"></script>
<script src="assets/lib/jquery-flot/jquery.flot.pie.js" type="text/javascript"></script>
<script src="assets/lib/jquery-flot/jquery.flot.time.js" type="text/javascript"></script>
pg. 41
Online Railway Reservation system
<script src="assets/lib/jquery-flot/jquery.flot.resize.js" type="text/javascript"></script>
<script src="assets/lib/jquery-flot/plugins/jquery.flot.orderBars.js"
type="text/javascript"></script>
<script src="assets/lib/jquery-flot/plugins/curvedLines.js" type="text/javascript"></script>
<script src="assets/lib/jquery-flot/plugins/jquery.flot.tooltip.js"
type="text/javascript"></script>
<script src="assets/lib/jquery.sparkline/jquery.sparkline.min.js"
type="text/javascript"></script>
<script src="assets/lib/countup/countUp.min.js" type="text/javascript"></script>
<script src="assets/lib/jquery-ui/jquery-ui.min.js" type="text/javascript"></script>
<script src="assets/lib/jqvmap/jquery.vmap.min.js" type="text/javascript"></script>
<script src="assets/lib/jqvmap/maps/jquery.vmap.world.js"
type="text/javascript"></script>
<script src="assets/lib/datatables/datatables.net/js/jquery.dataTables.js"
type="text/javascript"></script>
<script src="assets/lib/datatables/datatables.net-bs4/js/dataTables.bootstrap4.js"
type="text/javascript"></script>
<script src="assets/lib/datatables/datatables.net-buttons/js/dataTables.buttons.min.js"
type="text/javascript"></script>
<script src="assets/lib/datatables/datatables.net-buttons/js/buttons.flash.min.js"
type="text/javascript"></script>
<script src="assets/lib/datatables/jszip/jszip.min.js" type="text/javascript"></script>
<script src="assets/lib/datatables/pdfmake/pdfmake.min.js"
type="text/javascript"></script>
<script src="assets/lib/datatables/pdfmake/vfs_fonts.js" type="text/javascript"></script>
<script src="assets/lib/datatables/datatables.net-buttons/js/buttons.colVis.min.js"
type="text/javascript"></script>
<script src="assets/lib/datatables/datatables.net-buttons/js/buttons.print.min.js"
type="text/javascript"></script>
<script src="assets/lib/datatables/datatables.net-buttons/js/buttons.html5.min.js"
type="text/javascript"></script>
<script src="assets/lib/datatables/datatables.net-buttons-bs4/js/buttons.bootstrap4.min.js"
type="text/javascript"></script>
<script
src="assets/lib/datatables/datatables.net-responsive/js/dataTables.responsive.min.js"
type="text/javascript"></script>
<script
src="assets/lib/datatables/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js"
type="text/javascript"></script>

<script type="text/javascript">
$(document).ready(function(){
//-initialize the javascript
App.init();
App.dashboard();

});
</script>
pg. 42
Online Railway Reservation system
</body>

</html>
Bootstrap

/*!
* Beagle v1.7.1
* https://foxythemes.net
*
* Copyright (c) 2019 Foxy Themes
*/

/*! =======================================================
VERSION 10.0.0
========================================================= */
/*! =========================================================
* bootstrap-slider.js
*
* Maintainers:
* Kyle Kemp
* - Twitter: @seiyria
* - Github: seiyria
* Rohit Kalkur
* - Twitter: @Rovolutionary
* - Github: rovolution
*
* =========================================================
*
* bootstrap-slider is released under the MIT License
* Copyright (c) 2017 Kyle Kemp, Rohit Kalkur, and contributors
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
pg. 43
Online Railway Reservation system
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*
* =========================================================
*/.slider{display:inline-block;vertical-align:middle;position:relative}.slider.slider-
horizontal{width:210px;height:20px}.slider.slider-horizontal .slider-
track{height:10px;width:100%;margin-top:-5px;top:50%;left:0}.slider.slider-
horizontal .slider-selection,.slider.slider-horizontal .slider-track-low,.slider.slider-
horizontal .slider-track-high{height:100%;top:0;bottom:0}.slider.slider-horizontal .slider-
tick,.slider.slider-horizontal .slider-handle{margin-left:-10px}.slider.slider-horizontal .slider-
tick.triangle,.slider.slider-horizontal .slider-handle.triangle{position:relative;top:50%;-ms-
transform:translateY(-50%);transform:translateY(-50%);border-width:0 10px 10px
10px;width:0;height:0;border-bottom-color:#2e6da4;margin-top:0}.slider.slider-
horizontal .slider-tick-container{white-
space:nowrap;position:absolute;top:0;left:0;width:100%}.slider.slider-horizontal .slider-tick-
label-container{white-space:nowrap;margin-top:20px}.slider.slider-horizontal .slider-tick-
label-container .slider-tick-label{padding-top:4px;display:inline-block;text-
align:center}.slider.slider-horizontal .tooltip{-ms-transform:translateX(-
50%);transform:translateX(-50%)}.slider.slider-horizontal.slider-rtl .slider-
track{left:initial;right:0}.slider.slider-horizontal.slider-rtl .slider-tick,.slider.slider-
horizontal.slider-rtl .slider-handle{margin-left:initial;margin-right:-10px}.slider.slider-
horizontal.slider-rtl .slider-tick-container{left:initial;right:0}.slider.slider-horizontal.slider-
rtl .tooltip{-ms-transform:translateX(50%);transform:translateX(50%)}.slider.slider-
vertical{height:210px;width:20px}.slider.slider-vertical .slider-
track{width:10px;height:100%;left:25%;top:0}.slider.slider-vertical .slider-
selection{width:100%;left:0;top:0;bottom:0}.slider.slider-vertical .slider-track-
low,.slider.slider-vertical .slider-track-high{width:100%;left:0;right:0}.slider.slider-
vertical .slider-tick,.slider.slider-vertical .slider-handle{margin-top:-10px}.slider.slider-
vertical .slider-tick.triangle,.slider.slider-vertical .slider-handle.triangle{border-width:10px 0
10px 10px;width:1px;height:1px;border-left-color:#2e6da4;border-right-
color:#2e6da4;margin-left:0;margin-right:0}.slider.slider-vertical .slider-tick-label-
container{white-space:nowrap}.slider.slider-vertical .slider-tick-label-container .slider-tick-
label{padding-left:4px}.slider.slider-vertical .tooltip{-ms-transform:translateY(-
50%);transform:translateY(-50%)}.slider.slider-vertical.slider-rtl .slider-
track{left:initial;right:25%}.slider.slider-vertical.slider-rtl .slider-
selection{left:initial;right:0}.slider.slider-vertical.slider-rtl .slider-tick.triangle,.slider.slider-
vertical.slider-rtl .slider-handle.triangle{border-width:10px 10px 10px 0}.slider.slider-
vertical.slider-rtl .slider-tick-label-container .slider-tick-label{padding-left:initial;padding-
right:4px}.slider.slider-disabled .slider-handle{background-image:-webkit-linear-
gradient(top,#dfdfdf 0,#bebebe 100%);background-image:-o-linear-gradient(top,#dfdfdf
0,#bebebe 100%);background-image:linear-gradient(to bottom,#dfdfdf 0,#bebebe
100%);background-repeat:repeat-
x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdfdfdf',endColorstr='
#ffbebebe',GradientType=0)}.slider.slider-disabled .slider-track{background-image:-webkit-
pg. 44
Online Railway Reservation system
linear-gradient(top,#e5e5e5 0,#e9e9e9 100%);background-image:-o-linear-
gradient(top,#e5e5e5 0,#e9e9e9 100%);background-image:linear-gradient(to bottom,#e5e5e5
0,#e9e9e9 100%);background-repeat:repeat-
x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe5e5e5',endColorstr
='#ffe9e9e9',GradientType=0);cursor:not-allowed}.slider
input{display:none}.slider .tooltip.top{margin-top:-36px}.slider .tooltip-inner{white-
space:nowrap;max-width:none}.slider .hide{display:none}.slider-
track{position:absolute;cursor:pointer;background-image:-webkit-linear-gradient(top,#f5f5f5
0,#f9f9f9 100%);background-image:-o-linear-gradient(top,#f5f5f5 0,#f9f9f9
100%);background-image:linear-gradient(to bottom,#f5f5f5 0,#f9f9f9 100%);background-
repeat:repeat-
x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5',endColorstr='
#fff9f9f9',GradientType=0);-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);box-
shadow:inset 0 1px 2px rgba(0,0,0,0.1);border-radius:4px}.slider-
selection{position:absolute;background-image:-webkit-linear-gradient(top,#f9f9f9 0,#f5f5f5
100%);background-image:-o-linear-gradient(top,#f9f9f9 0,#f5f5f5 100%);background-
image:linear-gradient(to bottom,#f9f9f9 0,#f5f5f5 100%);background-repeat:repeat-
x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9f9f9',endColorstr='
#fff5f5f5',GradientType=0);-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);box-
shadow:inset 0 -1px 0 rgba(0,0,0,0.15);-webkit-box-sizing:border-box;-moz-box-
sizing:border-box;box-sizing:border-box;border-radius:4px}.slider-selection.tick-slider-
selection{background-image:-webkit-linear-gradient(top,#8ac1ef 0,#82b3de
100%);background-image:-o-linear-gradient(top,#8ac1ef 0,#82b3de 100%);background-
image:linear-gradient(to bottom,#8ac1ef 0,#82b3de 100%);background-repeat:repeat-
x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff8ac1ef',endColorstr=
'#ff82b3de',GradientType=0)}.slider-track-low,.slider-track-
high{position:absolute;background:transparent;-webkit-box-sizing:border-box;-moz-box-
sizing:border-box;box-sizing:border-box;border-radius:4px}.slider-
handle{position:absolute;top:0;width:20px;height:20px;background-
color:#337ab7;background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4
100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-
image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);background-repeat:repeat-
x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7',endColorstr
='#ff2e6da4',GradientType=0);filter:none;-webkit-box-shadow:inset 0 1px 0
rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0
rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);border:0 solid transparent}.slider-
handle.round{border-radius:50%}.slider-handle.triangle{background:transparent
none}.slider-handle.custom{background:transparent none}.slider-
handle.custom::before{line-height:20px;font-size:20px;content:'\
2605';color:#726204}.slider-tick{position:absolute;width:20px;height:20px;background-
image:-webkit-linear-gradient(top,#f9f9f9 0,#f5f5f5 100%);background-image:-o-linear-
gradient(top,#f9f9f9 0,#f5f5f5 100%);background-image:linear-gradient(to bottom,#f9f9f9
0,#f5f5f5 100%);background-repeat:repeat-
x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9f9f9',endColorstr='
#fff5f5f5',GradientType=0);-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);box-
shadow:inset 0 -1px 0 rgba(0,0,0,0.15);-webkit-box-sizing:border-box;-moz-box-
sizing:border-box;box-sizing:border-box;filter:none;opacity:.8;border:0 solid
transparent}.slider-tick.round{border-radius:50%}.slider-
pg. 45
Online Railway Reservation system
tick.triangle{background:transparent none}.slider-tick.custom{background:transparent
none}.slider-tick.custom::before{line-height:20px;font-size:20px;content:'\
2605';color:#726204}.slider-tick.in-selection{background-image:-webkit-

Database fail

-- phpMyAdmin SQL Dump


-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 04, 2022 at 07:25 AM
-- Server version: 5.6.21
-- PHP Version: 5.6.3

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";


SET time_zone = "+00:00";

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT


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

--
-- Database: `orrsphp`
--

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

--
-- Table structure for table `orrs_admin`
--

CREATE TABLE `orrs_admin` (


`admin_id` int(20) NOT NULL,
`admin_fname` varchar(200) NOT NULL,
`admin_lname` varchar(200) NOT NULL,
`admin_email` varchar(200) NOT NULL,
`admin_uname` varchar(200) NOT NULL,
`admin_pwd` varchar(200) NOT NULL,
`admin_dpic` varchar(60) NOT NULL
pg. 46
Online Railway Reservation system
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `orrs_admin`
--

INSERT INTO `orrs_admin` (`admin_id`, `admin_fname`, `admin_lname`, `admin_email`,


`admin_uname`, `admin_pwd`, `admin_dpic`) VALUES
(1, 'System ', 'Admin', 'admin@mail.com', 'Administrator',
'903b21879b4a60fc9103c3334e4f6f62cf6c3a2d', 'admin-icn.png');

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

--
-- Table structure for table `orrs_employee`
--

CREATE TABLE `orrs_employee` (


`emp_id` int(20) NOT NULL,
`emp_fname` varchar(200) NOT NULL,
`emp_lname` varchar(200) NOT NULL,
`emp_nat_idno` varchar(200) NOT NULL,
`emp_phone` varchar(200) NOT NULL,
`emp_addr` varchar(200) NOT NULL,
`emp_uname` varchar(200) NOT NULL,
`emp_email` varchar(200) NOT NULL,
`emp_pwd` varchar(200) NOT NULL,
`emp_dpic` varchar(200) NOT NULL,
`emp_dept` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `orrs_employee`
--

INSERT INTO `orrs_employee` (`emp_id`, `emp_fname`, `emp_lname`, `emp_nat_idno`,


`emp_phone`, `emp_addr`, `emp_uname`, `emp_email`, `emp_pwd`, `emp_dpic`,
`emp_dept`) VALUES
(1, 'John', 'Deacon', '866861970', '+31024579651', '79 Green Avenue', 'deacon',
'employee@mail.com', '903b21879b4a60fc9103c3334e4f6f62cf6c3a2d', 'defaultimg.jpg',
'Train Captain');

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

--
-- Table structure for table `orrs_passenger`
--

pg. 47
Online Railway Reservation system
CREATE TABLE `orrs_passenger` (
`pass_id` int(20) NOT NULL,
`pass_fname` varchar(200) NOT NULL,
`pass_lname` varchar(200) NOT NULL,
`pass_phone` varchar(200) NOT NULL,
`pass_addr` varchar(200) NOT NULL,
`pass_email` varchar(200) NOT NULL,
`pass_pwd` varchar(200) NOT NULL,
`pass_dpic` varchar(200) NOT NULL,
`pass_uname` varchar(200) NOT NULL,
`pass_bday` varchar(200) NOT NULL,
`pass_bio` longtext NOT NULL,
`pass_train_number` varchar(200) NOT NULL,
`pass_train_name` varchar(200) NOT NULL,
`pass_dep_station` varchar(200) NOT NULL,
`pass_dep_time` varchar(200) NOT NULL,
`pass_arr_station` varchar(200) NOT NULL,
`pass_train_fare` varchar(200) NOT NULL,
`pass_fare_payment_code` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `orrs_passenger`
--

INSERT INTO `orrs_passenger` (`pass_id`, `pass_fname`, `pass_lname`, `pass_phone`,


`pass_addr`, `pass_email`, `pass_pwd`, `pass_dpic`, `pass_uname`, `pass_bday`, `pass_bio`,
`pass_train_number`, `pass_train_name`, `pass_dep_station`, `pass_dep_time`,
`pass_arr_station`, `pass_train_fare`, `pass_fare_payment_code`) VALUES
(4, 'Christine', 'Moore', '7778885454', '44 Demo Address', 'christine@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'christine', '', '',
'CA556680', 'ZX Express', 'Test Station', '7:00 PM', 'Test Demo Station', '65', 'CAS0014587'),
(5, 'John', 'Barnes', '7412225698', '32 Ocello Street', 'johnk@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'johnbarnes', '', '', 'CA-
777', 'Corridor Express', 'New York', '1:00 PM', 'Washington', '38', '102458700041'),
(6, 'Fritz', 'Mickk', '7412560000', '80 Russell Street', 'fritz@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'fritz', '', '', 'CA-007',
'Black Water', 'Chicago', '7:00 AM', 'Carbondale', '33', '107856452120'),
(7, 'Raisa', 'Taylor', '8542221450', '22 Valley Street', 'taylor@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'raisataylor', '', '', '', '', '', '',
'', '', ''),
(8, 'Michael', 'Murdock', '7414587744', '43 Private Lane', 'murdock@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'murdock', '', '', '', '', '', '', '',
'', ''),
(9, 'Greg', 'Alexander', '7458000015', '33 Pleasant Hill Road', 'greg@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'greg', '', '', '', '', '', '', '', '', ''),

pg. 48
Online Railway Reservation system
(10, 'Dorothy', 'Garcia', '7458965555', '97 Euclid Avenue', 'garcia@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'dorothy', '', '', '', '', '', '', '', '',
''),
(11, 'Adele', 'Wilson', '7896547777', '28 Cook Hill Road', 'adelew@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'adele', '', '', '', '', '', '', '', '',
''),
(12, 'Martha', 'Meyer', '4570001569', '12 Eva Pearl Street', 'martha@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'martha', '', '', '', '', '', '', '', '',
''),
(13, 'Edna', 'Ashworth', '1475458500', '91 Timberbrook Lane', 'edna@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'edna', '', '', '', '', '', '', '', '', ''),
(14, 'Jody', 'Bennett', '7123650014', '60 Oral Lake Road', 'jody@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'jody', '', '', '', '', '', '', '', '', ''),
(15, 'Jerry', 'Campbell', '5478540000', '93 Sarah Drive', 'campbell@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'jerry', '', '', '', '', '', '', '', '', ''),
(16, 'Noelle', 'Ross', '3745698850', '41 Ray Court', 'ross@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'noelle', '', '', '', '', '', '', '', '',
''),
(17, 'William', 'Barnes', '6547778540', '31 Briarwood Road', 'wbarnes@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'wbarnes', '', '', '', '', '', '', '',
'', ''),
(18, 'Fred', 'Jacquez', '6478540000', '17 Peck Court', 'fredj@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'fred', '', '', '', '', '', '', '', '', ''),
(19, 'Larry', 'Clark', '7696965450', '39 Dawson Drive', 'larry@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'larry', '', '', '', '', '', '', '', '', ''),
(20, 'Liam', 'Moore', '4750001458', '114 Southcross Avenue', 'liamoore@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'liamoore', '', '', 'CA-778',
'Adirondack', 'Seattle', '6:00 AM', 'New York', '198', '100000789640');

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

--
-- Table structure for table `orrs_passwordresets`
--

CREATE TABLE `orrs_passwordresets` (


`pwd_id` int(20) NOT NULL,
`email` varchar(200) NOT NULL,
`status` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `orrs_passwordresets`
--

INSERT INTO `orrs_passwordresets` (`pwd_id`, `email`, `status`) VALUES


(1, 'employee@mail.com', 'Approved'),
(2, 'test21@mail.com', 'Pending');
pg. 49
Online Railway Reservation system

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

--
-- Table structure for table `orrs_train`
--

CREATE TABLE `orrs_train` (


`id` int(20) NOT NULL,
`name` varchar(200) NOT NULL,
`route` varchar(200) NOT NULL,
`current` varchar(200) NOT NULL,
`destination` varchar(200) NOT NULL,
`time` varchar(200) NOT NULL,
`passengers` varchar(200) NOT NULL,
`number` varchar(200) NOT NULL,
`fare` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `orrs_train`
--

INSERT INTO `orrs_train` (`id`, `name`, `route`, `current`, `destination`, `time`,


`passengers`, `number`, `fare`) VALUES
(6, 'Black Water', 'Chicago - Carbondale', 'Chicago', 'Carbondale', '7:00 AM', '195', 'CA-007',
'33'),
(10, 'ZX Express', 'Location One - Location Two', 'Test Station', 'Test Demo Station', '7:00
PM', '200', 'CA556680', '65'),
(11, 'Iron Range Express', 'Stockton - San Diego', 'Stockton', 'San Diego', '9:00 AM', '185',
'CA-697', '43'),
(12, 'Colonial', 'Boston - New York', 'Boston', 'New York', '10:45 AM', '255', 'CA-107', '35'),
(13, 'Corridor Express', 'New York - Washington', 'New York', 'Washington', '1:00 PM', '330',
'CA-777', '38'),
(14, 'Silver Meteor', 'New York - Miami', 'New York', 'Miami', '10:00 AM', '200', 'CA-707',
'128'),
(15, 'Silver Star', 'New Orleans - Los Angeles', 'New Orleans', 'Los Angeles', '8:45 AM', '190',
'CA-107', '149'),
(16, 'Adirondack', 'Seattle - New York', 'Seattle', 'New York', '6:00 AM', '210', 'CA-778',
'198'),
(17, 'Corridor Express', 'New York - Pittsfield', 'New York', 'Pittsfield', '12:45 PM', '195', 'CA-
797', '45');

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

--
-- Table structure for table `orrs_train_tickets`
--
pg. 50
Online Railway Reservation system

CREATE TABLE `orrs_train_tickets` (


`ticket_id` int(20) NOT NULL,
`pass_name` varchar(200) NOT NULL,
`pass_email` varchar(200) NOT NULL,
`pass_addr` varchar(200) NOT NULL,
`train_name` varchar(200) NOT NULL,
`train_no` varchar(200) NOT NULL,
`train_dep_stat` varchar(200) NOT NULL,
`train_arr_stat` varchar(200) NOT NULL,
`train_fare` varchar(200) NOT NULL,
`fare_payment_code` varchar(200) NOT NULL,
`confirmation` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `orrs_train_tickets`
--

INSERT INTO `orrs_train_tickets` (`ticket_id`, `pass_name`, `pass_email`, `pass_addr`,


`train_name`, `train_no`, `train_dep_stat`, `train_arr_stat`, `train_fare`, `fare_payment_code`,
`confirmation`) VALUES
(5, 'Christine Moore', 'christine@mail.com', '44 Demo Address', 'ZX Express', 'CA556680',
'Test Station', 'Test Demo Station', '65', 'CAS0014587', ''),
(6, 'John Barnes', 'johnk@mail.com', '32 Ocello Street', 'Iron Range Express', 'CA-697',
'Stockton', 'San Diego', '43', '102458700041', 'Approved'),
(7, 'John Barnes', 'johnk@mail.com', '32 Ocello Street', 'Corridor Express', 'CA-777', 'New
York', 'Washington', '38', '102458700041', 'Approved'),
(8, 'Fritz Mickk', 'fritz@mail.com', '80 Russell Street', 'Black Water', 'CA-007', 'Chicago',
'Carbondale', '33', '107856452120', 'Approved'),
(9, 'Liam Moore', 'liamoore@mail.com', '114 Southcross Avenue', 'Adirondack', 'CA-778',
'Seattle', 'New York', '198', '100000789640', 'Approved');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `orrs_admin`
--
ALTER TABLE `orrs_admin`
ADD PRIMARY KEY (`admin_id`);

--
-- Indexes for table `orrs_employee`
--
ALTER TABLE `orrs_employee`
ADD PRIMARY KEY (`emp_id`);
pg. 51
Online Railway Reservation system

--
-- Indexes for table `orrs_passenger`
--
ALTER TABLE `orrs_passenger`
ADD PRIMARY KEY (`pass_id`);

--
-- Indexes for table `orrs_passwordresets`
--
ALTER TABLE `orrs_passwordresets`
ADD PRIMARY KEY (`pwd_id`);

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

--
-- Indexes for table `orrs_train_tickets`
--
ALTER TABLE `orrs_train_tickets`
ADD PRIMARY KEY (`ticket_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `orrs_admin`
--
ALTER TABLE `orrs_admin`
MODIFY `admin_id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `orrs_employee`
--
ALTER TABLE `orrs_employee`
MODIFY `emp_id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `orrs_passenger`
--
ALTER TABLE `orrs_passenger`
MODIFY `pass_id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
--
-- AUTO_INCREMENT for table `orrs_passwordresets`
--
ALTER TABLE `orrs_passwordresets`
pg. 52
Online Railway Reservation system
MODIFY `pwd_id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `orrs_train`
--
ALTER TABLE `orrs_train`
MODIFY `id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
--
-- AUTO_INCREMENT for table `orrs_train_tickets`
--
ALTER TABLE `orrs_train_tickets`
MODIFY `ticket_id` int(20) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=10;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

pg. 53
Online Railway Reservation system

Index

<!DOCTYPE HTML>
<!--
Online Railway Reservation System
martdevelopers254 | @MartinMbithi
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>Online Railway Reservation System</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-
scalable=no" />
<link rel="stylesheet" href="includes/css/main.css" />
<noscript><link rel="stylesheet" href="includes/css/noscript.css" /></noscript>
</head>
<body class="is-preload">

<!-- Page Wrapper -->


<div id="page-wrapper">

<!-- Header -->


<header id="header" class="alt">
<h1><a href="index.php">Online Railway Reservation
System</a></h1>
<nav>
<a href="#menu">Menu</a>
</nav>
</header>

<!-- Menu -->


<nav id="menu">
<div class="inner">
<h2>Menu</h2>
<ul class="links">
pg. 54
Online Railway Reservation system
<li><a
href="index.php">Home</a></li>
<li><a href="pass-login.php">Make
Reservation</a></li>
<li><a href="employee/emp-
login.php">Employee Login</a></li>
<li><a href="admin/emp-
login.php">Admin Login</a></li>
</ul>
<a href="#" class="close">Close</a>
</div>
</nav>

<!-- Banner -->


<section id="banner">
<div class="inner">
<div class="logo"><span class="icon solid fa-
train"></span></div>
<h2>Online Railway Reservation System</h2>
<p>Best, Simple, and User Friendly Way To
Reserve Train Tickets Effectively</a></p>
</div>
</section>

<section id="footer">
<div class="inner">
<h2 class="major">Get in touch</h2>

<ul class="contact">
<li class="icon solid fa-home">
Online Railway Reservation
System<br />
PHP Project<br />

</li>
<li class="icon solid fa-phone">(+254)
127-0000</li>
<li class="icon solid fa-envelope"><a
href="#">mail@orrs.com</a></li>
<li class="icon brands fa-twitter"><a
href="#">twitter.com/Orrs</a></li>
<li class="icon brands fa-facebook-
f"><a href="#">facebook.com/orrs</a></li>
<li class="icon brands fa-instagram"><a
href="#">instagram.com/orrs</a></li>
</ul>
<ul class="copyright">

pg. 55
Online Railway Reservation system
<li>&copy; Online Railway Reservation
System.</li><li>Developed By: Martin Mbithi Nzilani</li>
</ul>
</div>
</section>

</div>

<!-- Scripts -->


<script src="includes/js/jquery.min.js"></script>
<script src="includes/js/jquery.scrollex.min.js"></script>
<script src="includes/js/browser.min.js"></script>
<script src="includes/js/breakpoints.min.js"></script>
<script src="includes/js/util.js"></script>
<script src="includes/js/main.js"></script>

</body>
</html>

pg. 56
Online Railway Reservation system

RESULTS AND DISCUSSION

Figure 7.1: Welcome Page

pg. 57
Online Railway Reservation system

Figure7.2: Home page

Figure 7.3: Register Page

pg. 58
Online Railway Reservation system

Figure 7.4: Admin login page

Figure 7.5: Trains page

pg. 59
Online Railway Reservation system

Figure 7.6: Available train page

Figure 7.7: Train search Page

pg. 60
Online Railway Reservation system

Figure 7.8: Book train page

Figure 7.9: Book ticket page


pg. 61
Online Railway Reservation system

Figure 8.0: Success booking page

Figure 8.1: Train Ticket page

pg. 62
Online Railway Reservation system

Figure 8.2: Cancel train page

Figure 8.3: Cancelled train success page

pg. 63
Online Railway Reservation system

Figure 8.4: Checkout page

Figure 8.5: Confirm checkout page

pg. 64
Online Railway Reservation system

Figure 8.6: Admin page

CONCLUSION

Railway reservation system we have stored all the information about the Trains scheduled
and the user booking tickets and even status of trains, seats etc. This data base is helpful for
the applications which facilitate passengers to book the train tickets and check the details of
trains and their status from their place itself it avoids inconveniences of going to railway
station for each and every query they get. We had considered the most important
requirements only, many more features and details cand be added to our project in order to
obtain even more user -friendly applications. These applications are already in progress and
in future they can be upgraded and may become part of amazing technology.

pg. 65
Online Railway Reservation system
18

BIBLIOGRAPHY
[1]. Fundamental of Database Systems by RamezElmasri and Shamkant B Navathe, Sixth
Edition, Addison Wesley, 2011.
[2]. Database System Concepts, Sixth Edition, Abraham Silberschatz, Henry F.Korth, S.
Sudarshan: Tata McGraw-Hill, 2010.
[3]. An Introduction to Database Systems by C.J. Date, A.Kannan, S.Swamynathan, 8th
Edition, Pearson Education, 2006.
[4]. https://www.w3schools.com/php/weblinks.
[5]. https://www.w3schools.com/mysql/weblinks.

pg. 66

You might also like