0% found this document useful (0 votes)
19 views

Yatri.com Doc[1] (2)

Uploaded by

Tejas Wankhede
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Yatri.com Doc[1] (2)

Uploaded by

Tejas Wankhede
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 36

online railway ticket booking

MAST YATRI.COM
Index

Chapter Page number


CHAPTER 1 : INTRODUCTION
1.1 Existing System 5
1.2 Need for System 5
1.3 Operating Environment Hardware and Software 6
CHAPTER 2 : PROPOSED SYSTEM
2.1 Proposed System (Introduction of system) 7
2.2 Module specifications (Scope) 7
2.3 Objectives of System 8
CHAPTER 3 : ANALYSIS & DESIGN
3.1 Use Case Diagrams 9
3.2 Activity Diagram 10
3.3 Class Diagram 11
3.3 Module Hierarchy Diagram 12
3.4 Table specifications (Database design) 13
3.5 Data dictionary 14
CHAPTER 4 : USER MANUAL
4.1 User Interface Screens (Input) 16
4.2 Output Screens with data 22
4.3 Data Reports 28
4.4 Sample program code 33
4.5 Limitations and Bibliography 36

1|Page
CHAPTER 1 : INTRODUCTION

Our website has various kinds of information that helps regarding booking
of tickets via railways .

Users will be able to search the train availability ,the exact fare ,the arrival
and departure time of the train and they can also book the ticket by using
the debit ,credit or master card and after booking the ticket if the user
want
to cancel it then they can easily do it also.

Railway passengers frequently need to know about their ticket reservation


status, ticket availability on a particular train or for a place, train arrival or
departure details, special trains etc.. Customer information centers at the
railway stations are unable to serve such queries at peak periods.

The online railway ticket reservation system aims to develop a web


application which aims at providing trains details, trains availability, as well
as the facility to book ticket in online for customers. So, we thought of
developing a web based application which would provide the users all
these
facilities from his terminal only as well as help them in booking their
tickets.
The Application was to be divided into two parts namely the user part ,
and
the administrator part. And each of these has their corresponding
features.
We decided to give the name of the website “RAILWAY TICKET BOOKING
SYSTEM”.

2|Page
3|Page
1.1 Existing System

➢ Lack of security of Data.


➢ More man power.
➢ Time consuming.
➢ Consumes large volume of pare work
➢ Needs manual calculations.
➢ No direct role for the higher officials.

1.2 Need for System

The computerized system was needed because there were following


drawbacks in the present manual system.
➢ Keeping a record of all passenger was a very tedious job.
➢ Searching a particular record was tedious because it involved
searching all entries which required more time.
➢ Fine manipulation of records is done automatically in computerized
system unlike manual system thus eliminating the chance of error.
➢ Manual system is difficult and time consuming.
➢ Due to computerization data storage and retrieval is done efficiently.
➢ Human errors are reduced.
➢ Makes system user friendly.

4|Page
1.3 Operating Environment Hardware and Software

Hardware Requirements:

 I5 Processor
 256 MB
 1 TB HARDDISK
 Memory
 Secondary Storage
 Architecture
 Keyboard
 Mouse

Software Requirements

 OPERATING SYSTEM: Windows


 LANGUAGE: PHP,HTML5,CSS3
 BACKEND: MySQL

CHAPTER 2 : PROPOSED SYSTEM

5|Page
2.1 Proposed System (Introduction of system)
1. Security Data.
2. Ensure Data Accuracy.
4. Greater Efficiency.
5. Better Service.
6. Minimum Time Required.

2.2 Module specifications (Scope)

1. Passengers Registration Module


2. Passengers Login Module
3. Admin Login Module
4. Train Availability Module
5. Add Train Module
6. Booking Train Ticket Module
7. Generate Ticket Module

6|Page
2.3 Objectives of System

 Human errors are reduced.


 Data storage is done efficiently.
 Keeping a record of all entered was a very tedious job.
 Searching a particular entry was tedious because it involved
searching all entries which required more time.
 The cost for maintenance is eliminated.
 Makes system user friendly.
 Our system provides two types of user administrator and local user
which have a limited functionality.
 It improves the security.
 Only the users who have administrative rights are allowed to create
or modify users

7|Page
• Railway passengers frequently need to know about their
ticket reservation status, ticket availability on a
particular train or for a place, train arrival or
departure details, special trains etc.. Customer
information centers at the railway stations are unable to
serve such queries at peak periods. The number of the
reservation counters available to the passengers and
customers are verbless most of the reservation systems
there are long queues, so it takes a long time for any
individual to book the ticket. As now there are no call
centers facilities available to solve the queries of the
passengers
• The online railway ticket reservation system aims to
develop a web application which aim sat providing
trains details, trains availability, as well as the facility to
book ticket in online for customers.

8|Page
3.1 Use Case Diagrams

9|Page
3.2 Activity Diagram

10 | P a g e
3.4 Table specifications (Database design)

11 | P a g e
Data dictionary
1)User_tb
1Field Name Data Type Length Constraint
user_id Int 10 Primary key

user_name Varchar 20 Not null


user_birth Date 10 Not null
user_gender Varchar 6 Not null
user_email Varchar 25 Not null
user_password Varchar 30 Not null
user_city Varchar 20 Not null
user_phone Bigint 10 Not null

2) Admin
Field Name Data Type Length Constraint
agent_id Int 10 Primary Key
email Varchar 30 Not null
password Varchar 40 Not null

3) AddTrain
Field Name Data Type Length Constraint
Tno Int 10 Primary key
Tname Varchar 40 Not null
Tprice Int 10 Not null

From1 Varchar 30 Not null


To1 Varchar 40 Not null
Class Varchar 20 Not null

12 | P a g e
Date Date 10 Not null
Time Time 10 Not null
Dtime Time 10 Not null
Tseats Int 30 Not null

4) City
Field Name Data Type Length Constraint
cname Varchar 50 Not null

5) tblbook
Field Name Data Type Length Constraint
user_id Int 10 (Foreign key)
Tno Int 10 (Foreign key)
qty Int 50 Not null
status Int 20 Not null
Ticketstatus Varchar 50 Not null

6) Report
Field Name Data Type Length1 Constraint
user_id Int 20 (Foreign key)
user_name Varchar 30 Not null
user_city Varchar 50 Not null
user_email Varchar 25 Not null
user_phone Bigint 10 Not null

13 | P a g e
SCREENS
user Side

1.Home Screen

14 | P a g e
2.services

15 | P a g e
3.User Login

16 | P a g e
4.User registration

17 | P a g e
5.User home page

18 | P a g e
6.Search train

19 | P a g e
7.View Trains

20 | P a g e
8.View Train Details

21 | P a g e
9.Booking

22 | P a g e
10.Pay Bill

23 | P a g e
11.Ticket Booked

24 | P a g e
12.Ticket Status

25 | P a g e
Admin Side

13.Admin Login

26 | P a g e
14.admin Home Screen

27 | P a g e
15.Add trains

28 | P a g e
16.Total Users

29 | P a g e
Sample Code
<html>

<head>

<title></title>

<?php require 'head.php';?>

</head>

<body>

<?php require 'main-header.php';?>

<center>

<h2 style="color: green;"> Booking Information </h2>

</center><br><br>

<table class="table">

<tr style="background-color: darkred;color: white;">

<td>Train Name</td>

<td>From</td>

<td>To</td>

<td>Date</td>

<td>Ticket Price</td>

<td>No. of Passenger</td>

<td>Ticket Status</td>

</tr>

<?php

$q=mysqli_query($con,"select * from tblbook,addtrain where addtrain.Tno=tblbook.Tno and tblbook.status='0' and

30 | P a g e
tblbook.user_id=".$_SESSION['user_id']);

while ($r=mysqli_fetch_array($q)) {

?>

<Tr>

<td>

<?php echo $r["Tname"];?>

</td>

<td>

<?php echo $r["From1"];?>

</td>

<td>

<?php echo $r["To1"];?>

</td>

<td>

<?php echo $r["Date"];?>

</td>

<td>

<?php echo $r["Tprice"];?>

</td>

<td>

<?php echo $r["qty"];?>

</td>

<td>

<?php echo $r["ticketstatus"];?>

</td>

<td>

<?php $total= $r["qty"]*$r["Tprice"];$ftotal+=$total;?>

31 | P a g e
</td>

</Tr>

<?php

?>

<Tr>

<td>

Bill

</td>

<td>

<?php echo $ftotal;?>

</td>

</Tr>

</table><br><br><br>

<center>

<a href="bill.php"><input type="button" class="btn btn-success" value="Pay Bill" name=""> </a>

</center><br><br>

<?php require 'footer.php';?>

</body>

</html>

32 | P a g e
CONCLUSION:

Human errors are reduced.

Data storage is done efficiently.

Keeping a record of all entered was a very tedious job.

Searching a particular entry was tedious because it involved searching

all entries which required more time.

The cost for maintenance is eliminated.

Makes system user friendly.

Our system provides two types of user administrator and local user

which have a limited functionality. It improves the security.

Only the users who have administrative rights are allowed to create or

modify users

33 | P a g e
ADVANTAGES:
It is fast, efficient and reliable.

Avoids data redundancy and inconsistency.

Very user friendly.

Easy accessibility of data.

Number of personal required is considerably less.

Provides more security and integrity to data.

sss

34 | P a g e
Bibliography

1) www.w3school.com
2) http://dynamicdrive.com/
3)https://www.tutorialspoint.com/index.htm

35 | P a g e

You might also like