8/12/2019 Online Train Ticket Booking System
1/65
ONLINE TRAIN TICKET
RESERVATION SYSTEM
1
8/12/2019 Online Train Ticket Booking System
2/65
CONTENTS
ACKNOWLEDEMENT
SYNOPSIS
1. INTRODUCTION
Organization
Scope of the project
Har!are Specification
Soft!are Specification
2. SYSTEM ANALYSIS
"#1 E$i%ting %&%te'
"#" (ropo%e %&%te'
"#) *ea%i+i,it& %tea&
"#- O+jecti.e% of the %&%te'
3. SYSTEM DESING
)#1 /ata +a%e e%ign
)#" Mo0,e% in the project
4. TESTING AND INPLEMENTATION
5. CONCLUSION
APPENDIX
/ata f,o! iagra'Screen ,a&o0t
So0rce coe
BIBLIOGRAPHY
"
8/12/2019 Online Train Ticket Booking System
3/65
SYNO(SIS
The (ri'ar& O+ject of thi% e+ App,ication i% 2oo3ing a Train
Tic3et fro' an&!here an 'aintaining ata on %er.er !hich i%
,ocate at one p,ace#
Thi% (roject Intro0ce% On,ine Tic3et Re%er.ation S&%te'# It
e$p,ain% ho! re%er.ation i% +eing one in Inian Rai,!a&%# The
%tep +& %tep proce0re i% e$p,aine# (roper co''ent% ha.e +een
gi.en at e%ire ,ocation% to 'a3e the project 0%er frien,
Vario0% f0nction% an %tr0ct0re% are 0%e to 'a3e a co'p,ete 0%e
of AS(#NET#
The (roject i% entit,e a% ONLINE TRAIN TICKET
RESERVATION SYSTEM ha% +een e.e,ope for E0cationa,
p0rpo%e#
Thi% project i% !e,, .er%e !ith the progra''ing# Rai,!a&
re%er.ation can ea%i,& +e acco'panie !ith the he,p of thi%#
The !e+ App,ication 0%e for the e.e,op'ent of thi% project i%
AS(#NET 4 V2#net an the +ac3en for ata+a%e 0%e for the
e.e,op'ent of thi% project i% ACCESS "55)# It% p,atfor' i%
!ino!% 6(
)
8/12/2019 Online Train Ticket Booking System
4/65
1# INTRO/7CTION
1#1 OR8ANISATION
The Highe%t 'anage'ent of organization i% the Rai,!a& 2oar9
a,%o ca,,e the Mini%tr& of Rai,!a&%# The +oar i% heae +& a
Chair'an !ho report% to the Mini%ter of Rai,!a&%# The +oar ha%
fi.e other 'e'+er% in aition to the chair'an#
The Inian Rai,!a&%i% organize +roa,& +& f0nctiona, gro0p% of
Inian Rai,!a& Ser.ice# Thi% i% traitiona,,& ho! the co:operation
i% organize# The Inian Rai,!a&% perhap% ha% +een ,e%%
a.ent0ro0% in changing the %tr0ct0re; it ha% ,arge,& 3ept 0p !hat it
got a% a ,egac& %ince the 2riti%h era#
The c!!e"# $%"e& %' #he I"()*" R*)+,*-& *!e
N*e A//!. He*(0*!#e!&
Centra, Rai,!a& CR M0'+ai
Ea%tern Rai,!a& ER Ko,3ata
Ea%t Centra, Rai,!a& ECR Hajip0r
Ea%t Coa%t Rai,!a& ECoR 2h0+ane%!ar
Kon3an Rai,!a& KR (an.e,Northern Rai,!a& NR /e,hi
North Centra, Rai,!a& NCR A,,aha+a
North e%tern Rai,!a& NR
8/12/2019 Online Train Ticket Booking System
5/65
North Ea%tern Rai,!a& NER 8ora3hp0r
Northea%t *rontier Rai,!a& N*R Ma,igaon=80!ahati>
So0thern Rai,!a& SR Chennai
So0th Centra, Rai,!a& SCR Sec0nera+a
So0th Ea%tern Rai,!a& SER Ko,3ata
So0th Ea%t Centra, Rai,!a& SECR 2i,a%p0r9 C8
So0th e%tern Rai,!a& SR H0+,i
e%tern Rai,!a& R M0'+ai
e%t Centra, Rai,!a& CR
8/12/2019 Online Train Ticket Booking System
6/65
1#" SCO(E O* THE (RO
8/12/2019 Online Train Ticket Booking System
7/65
1#) HAR/ ARE S(ECI*ICATION
Processor : Pentium 1V + Latest
Clock Speed : 2 GHZ
Display Adapter : !"GLL#
Hard Disk Capacity : !$G%
&'( : "2 (% &'(
&A( : "12 (% &A(
Ports : C'( ) LP*
Printer used : PS', S*#L-S C'L'& !.$
Virtual (emory : /2 %it
8/12/2019 Online Train Ticket Booking System
8/65
1.4 SOTWARE SPECIICATION
S-PP'&*S : D'* ,* 0&A( '&
% S&V& : 33S "42 +
%&'S& : 3 . +
0ront nd : ASP4,* ) V%4,*
%ack nd : (s5Access 2$$/
'peratin6 System : indo7s 8P
F
8/12/2019 Online Train Ticket Booking System
9/65
"# SYSTEM ANALYSIS
"#1 E6ISTIN8 SYSTEM
Inian rai,!a&% are one of the +0%ie%t an fa%te%t rai,!a& net!or3%
acro%% the !or,# Tra.e,ing +& rai, i% the fine%t 'ean% to enjo& the
i''en%e i%parit&9 !hich e$i%t% a,, o.er the +reath an ,ength of
Inia# *or 'a3ing &o0r .o&age ha%%,e free
The Inian Rai,!a& ha% it% o!n officia, !e+%ite9 pro.iing a,, the
i'portant etai,% an infor'ation concerning Inian Rai,!a&%Net!or3# Inian Rai,!a&% ha% +een !or3ing contin0o0%,& to
pro.ie high:c,a%% a'enitie% to it% 0%er%# Ser.ice% offere +&
Inian rai,!a&% officia, !e+%ite
A,tho0gh ha.ing a,, *aci,itie% So'e Ti'e SERVER 27SSY i%%0e%
are not a.oia+,e an an a!3!ar +0n,e of A/VERTISMENTS(a%%enger% Co0, not +e Acce%%e the ta%3 !ith their Tight
Sche0,e an +0%
G
8/12/2019 Online Train Ticket Booking System
10/65
"#" (RO(OSE/ SYSTEM
Toa& one cannot affor to re,& on the fa,,i+,e h0'an +eing% of +e
rea,,& !ant% to %tan again%t toa&% 'erci,e%% 20%% Ho0r% !here
not to !i%e %a&ing NO TIMEJ no ,onger .a,i
One ha% to 0%e the Internet Concept% *or a,, their +0%ine%% or
'ar3eting or Tra.e,ing# So the e+ App,ication Soft!are ha% +een
an a%cent in ato'ization .ario0% organization%#
O0r !e+ app,ication ha% to +e ,oae on the Ser.er an !or3 can
+e one# Thi% pre.ent% a ,ot of ti'e an 'one The !or3 +eco'e%
f0,,& a0to'ate an an& infor'ation regaring the organization
can +e o+taine +& acce%%ing the !e+# Moreo.er9 no! it% an age
of internet a0to'ation %0ch an ini.i0a, gi.e% the +etter ,oo3#
Man& e+ App,ication %oft!are pro0ct% !or3ing are no! in'ar3et% e%pecia,,& for ONLIE 2OOKIN8 an the n0'+er of
co'petitor% are increa%ing i% 0n a.oia+,e# An the& ha.e to
'a3ing thing% a,, to 'one& 'a3ing thro0gh *7SSY
A/VERTISMENTJ thi% ,ea% to the O.ercro!e I( Traffic#
The propo%e %&%te' ha% +een e.e,ope to o.erco'e
fro' a+o.e iffic0,tie% an 'a3e the ONLINE TRAIN TICKET
2OOKIN8 (roce%% i% 0%er frien,& an a non co''ercia,
%er.ice#
15
8/12/2019 Online Train Ticket Booking System
11/65
"#) *EASI2ILITY ST7/Y
The 'ain o+jecti.e of the fea%i+i,it& %t0& i% to te%t the
technica,9 econo'ica, an operationa, fea%i+i,it& of e.e,oping a
co'p0ter %&%te'# Thi% i% one +& in.e%tigating the e$i%ting %&%te'
in the area 0ner in.e%tigation an generating iea% a+o0t a ne!
%&%te'#
Tech")c*+ 'e*&)/)+)#-
The technica, fea%i+i,it& '0%t +e +a%e on an o0t,ine e%ign
of %&%te' re0ire'ent%# Thi% project can r0n on an& %&%te'9 !hich
i% in%ta,,e in !ino!% p,atfor' !ith /OT#NET *ra'e!or3
%0pport%# The c0rrent %et 0p i% %0fficient for the proce%%ing of '&
project e.er& a
Ec%"%)c 'e*&)/)+)#-
Econo'ic ana,&%i% i% the 'o%t fre0ent,& 0%e 'etho for
e.a,0ating the effecti.ene%% of a caniate %&%te'# The e$ec0tion
ti'e i% ,e%%er co'pare to other !e+ app,ication%# An it ha% the
'ore efficient one9 +eca0%e it gi.e% the %ec0rit& of the ata# It ha%
,e%% e$pen%i.e for co%t4
11
8/12/2019 Online Train Ticket Booking System
12/65
S#e& )" 'e*&)/)+)#- *"*+-&)&
a> *or' a project tea' an appoint a project ,eaer
+> (repare %&%te' f,o!chart%
c> En0'erate potentia, caniate %&%te'
> /e%cri+e an ientif& characteri%tic% of caniate %&%te'
e> /eter'ine an .a,0a+,e perfor'ance 4 co%t effecti.ene%%
of each caniate %&%te'#
f> eight %&%te' perfor'ance an co%t ata#
g> Se,ect the +e%t caniate %&%te'
(repare an report fina, project irecti.e to 'anage'ent
"#- O2
8/12/2019 Online Train Ticket Booking System
13/65
*or ti'e con%0'ption
)# SYSTEM /ESI8N
)#1 /ATA2ASE /ESI8N
A /ata+a%e i% a co,,ection of interre,ate ata %tore !ith
'ini'0' re0nanc& to %er.e 'an& 0%er% 0ic3,& an efficient,
The genera, o+jecti.e of ata+a%e i% to 'a3e infor'ation acce%%
ea%&9 0ic3,&9 ine$pen%i.e an f,e$i+,e for the 0%er# The /ata+a%e
of T!o hee,er Motor a0to'ation %&%te' con%i%t% of ta+,e% an
ata are %0cce%%f0,,& 'aintaine# The /ata+a%e ha% con%i%t of
7SER Ta+,e
The Ta+,e Con%i%t% the *ie,% ? 0%erna'e9 pa%%!or#
TRAIN Ta+,e
The Ta+,e Con%i%t% the *ie,%?
I/9 TrainNo9 TrainNa'e9 Arrai.a,Ti'e9 /epart0reTi'e#
CLASS Ta+,e
1)
8/12/2019 Online Train Ticket Booking System
14/65
The Ta+,e Con%i%t% the *ie,% ? S,No9C,a%%#
A+o.e Ta+,e% are Interacte !ith Main A0thori%e Ser.er an a,,
ata fro' Rai,!a&% are o!n,oae perioica,,& an +a%e on
http?@@!!!#irctc#co#in@ a,,ocation#
*o,,o!ing Ta+,e% are interacte !ith o0r Tran%action#
1> (ASSEN8ER Ta+,e
"> RE8SELECT Ta+,e
)> 7SERS Ta+,e#
->
3.2 MODULES IN THE PRO6ECT
1> e+ Config#6ML
"> /efa0,t#AS(6
)> /efa0,t#AS(6#V2
-> Reg%e,ect#AS(6
B> Reg%e,ect#AS(6#V2D> 2oo3ing#AS(6
> 2oo3ing#AS(6#V2
F> (nr/etai,%#AS(6
1-
http://www.irctc.co.in/http://www.irctc.co.in/8/12/2019 Online Train Ticket Booking System
15/65
G> (nr/etai,%#AS(6#V2
-# TESTIN8 AN/
IM(LEMENTATION
The %&%te' ha% +een %0cce%%f0,,& i'p,e'ente !ith the te%t
.a,0e%# At e.er& %tage of rea, ata are fe into the %&%te'# The
chec3,i%t i% ta3en an ata .a,iation ha% +een one# 7nti, the ata
.a,iation the ata i% error free#
Te%ting i% a proce%% of e$ec0ting a progra' !ith
the intent of fining error# /0ring the te%ting proce%%9 each %ection
of the project ha% +een te%te %eparate, In the e%ign pha%e error%in the proce0re !ere fo0n an change% !ere 'ae the 0%er
re0ire'ent%# e .erif& that a,, the %&%te' e,e'ent% ha.e +een
proper,& integrate an perfor' the a,,ocate f0nction%# The %tep
in.o,.e% in acceptance te%ting#
Acceptance te%ting in.o,.e% p,anning an
e$ec0tion of .ario0% t&pe% of %tep% in orer to e'on%trate that the
i'p,e'ente in %oft!are %&%te' %ati%fie% the re0ire'ent of the
0%er# The acceptance te%t% ha.e +een con0cte !ith the 0%er to
fin o0t !hether the 0%er i% %ati%fie !ith the %&%te'#
1B
8/12/2019 Online Train Ticket Booking System
16/65
The %&%te' ha% +een i'p,e'ente after co'p,eting the
.a,iation re0ire to %o,.e the error% fo0n# The %&%te' i% +eing
gi.en %pecia, e'pha%i% on 'en0 ri.en 'oe,# It i% nee% ha.e
+een ta3en into acco0nt an a,, faci,itie% ha.e +een pro.ie in the
%&%te'#
B# CONCL7SION
The gi.en project tit,e ONLINE TRAIN TICKET
RESERVATION S&%te'% i% %0cce%%f0,,& co'p,ete an A,, the
o0tp0t of (age% are a,%o generate# Va,iation i% one accoring,&
an the %&%te' i% e%igne to +e a% interacti.e a% po%%i+,e# Li%ting
the' %ie +& %ie pro.ie% a,, nece%%ar& option9 an& one of the
e%ire option can +e %e,ecte an the corre%poning operation i%
perfor'e# *ina,,& the !e+ App,ication i% Rea& *or 8etting the
/o'ain an E2 SERVER
O0r /o'ain Na'e i%
h##77 ,,,. O"+)"e#!*)"!e&e!8*#)%".c%7
*or /e'o (0rpo%e O0r ,oca, %er.er Na'e i%
h##77L%c*+H% O"+)"e#!*)"!e&e!8*#)%"7
1D
8/12/2019 Online Train Ticket Booking System
17/65
A((EN/I6
SO7RCE CO/E
/efa0,t#A%p$
(age Lang0agePV2P A0toE.entire0pPfa,%eP
Coe*i,eP/efa0,t#a%p$#.+P Inherit%PQ/efa0,tP
/OCTY(E ht', (72LIC P:@@)C@@/T/ 6HTML 1#5
Tran%itiona,@@ENP Phttp?@@!!!#!)#org@TR@$ht',1@/T/@$ht',1:
tran%itiona,#tP
ht', $',n%Phttp?@@!!!#!)#org@1GGG@$ht',P
hea r0natP%er.erP
tit,ee,co'e to on,ine Rai,!a& Regi%tration##@tit,e
@hea
+o& +gco,orPa,ice+,0eP
for' iPfor'1P r0natP%er.erP
1
8/12/2019 Online Train Ticket Booking System
18/65
i.
a%p?(ane, I/P(ane,1P r0natP%er.erP 2orerCo,orP2,0eP
2orerSt&,ePSo,iP HeightP1G"p$P
St&,ePz:ine$? 155; ,eft? "-Fp$; po%ition? a+%o,0te; top?
")"p$P ithPB--p$P
a%p?Login I/PLogin1P r0natP%er.erP HeightP"p$P
St&,ePz:ine$? 155; ,eft? "p$;
po%ition? a+%o,0te; top? )"p$P ithP-55p$P
Tit,eTe$tSt&,e 2orerSt&,ePNoneP @
In%tr0ctionTe$tSt&,e 2orerSt&,ePNoneP @
Te$t2o$St&,e 2orerSt&,ePIn%etP
2orerCo,orP2,0eP @
La+e,St&,e 2orerCo,orP2,0eP @
@a%p?Login
i. %t&,ePz:ine$? 151; ,eft? 5p$; !ith? B--p$; po%ition?
a+%o,0te; top? 5p$;
height? "-p$; +ac3gro0n:co,or? ))55ffP
@i.
@a%p?(ane,
4n+%p;4n+%p; a%p?La+e, I/PLa+e,1P r0natP%er.erP
2ac3Co,orPTran%parentP *ont:2o,PTr0eP *ont:SizePLargerP
1F
8/12/2019 Online Train Ticket Booking System
19/65
*oreCo,orP5555C5P HeightP"-p$P St&,ePz:ine$?
151; ,eft? )"5p$; po%ition? a+%o,0te;
top? Fp$P Te$tPe,co'e To On,ine Rai,!a&
Regi%trationP ithP-"-p$P *ont:Na'e%PMicro%oft San%
SerifP@a%p?La+e,
a%p?(ane, I/P(ane,"P r0natP%er.erP
2ac3I'age7r,PU@i'g@'ainQheaerQ+ig)Q!hite")#
8/12/2019 Online Train Ticket Booking System
20/65
(artia, C,a%% Q/efa0,t
Inherit% S&%te'#e+#7I#(age
(rotecte S0+ Login1QA0thenticate=2&Va, %ener A% O+ject9
2&Va, e A% S&%te'#e+#7I#e+Contro,%#A0thenticateE.entArg%>
Han,e% Login1#A0thenticate
If Login1#7%erNa'e Pa'inP An Login1#(a%%!or
Pa'inP Then
Re%pon%e#Reirect=Preg%e,ect#a%p$P>
E,%e
M%g2o$=P(,ea%e Verf& 0%erna'e an pa%%!orP9
M%g2o$St&,e#E$c,a'ation9 PNot A,,o!eP9 >
Login1#Tit,eTe$t PNot A,,o!e (,ea% Tr& AgainP
En If
En S0+
En C,a%%
"5
8/12/2019 Online Train Ticket Booking System
21/65
(age Lang0agePV2P A0toE.entire0pPfa,%eP
Coe*i,ePreg%e,ect#a%p$#.+P Inherit%Preg%e,ectP
I'port Na'e%pacePS&%te'#/ata#O,e+P
/OCTY(E ht', (72LIC P:@@)C@@/T/ 6HTML 1#5
Tran%itiona,@@ENP Phttp?@@!!!#!)#org@TR@$ht',1@/T/@$ht',1:
tran%itiona,#tP
ht', $',n%Phttp?@@!!!#!)#org@1GGG@$ht',P
hea r0natP%er.erP
tit,eSe,ect Train@tit,e
%cript ,ang0agePja.a%criptP t&[email protected]%criptP
@@ C/ATAW
@@ XX
@%cript
@hea
+o& on,oaPret0rn !ino!Qon,oa=>P onc,ic3Pret0rn
!ino!Qonc,ic3=>P
for' iPfor'1P r0natP%er.erP onc,ic3Pret0rnfor'1Qonc,ic3=>P
i.
4n+%p;
"1
8/12/2019 Online Train Ticket Booking System
22/65
a%p?I'age I/PI'age)P r0natP%er.erP
A,ternateTe$tPLogoP 2orerCo,orPhiteP HeightPF5p$P
I'ageA,ignPTopP
I'age7r,PU@i'g@rai,Q,ogoQne!Qre#gifP St&,ePz:ine$? 15";
,eft? 1Dp$; po%ition? a+%o,0te; top? Fp$P ithP"p$P @
4n+%p; 4n+%p;4n+%p;4n+%p; 4n+%p;4n+%p; 4n+%p;4n+%p;
a%p?(ane, I/P(ane,1P r0natP%er.erP
2ac3Co,orPhiteS'o3eP HeightPB--p$P
Horizonta,A,ignPCenterP
St&,eP,eft? GDp$; po%ition? re,ati.e; top? 5p$; z:ine$?
151;P ithPB"p$P *ont:2o,PTr0eP
a%p?I'age I/PC'20ttonP r0natP%er.erP
2orerSt&,ePO0t%etP I'age7r,PU@i'g@trni'g#(N8P
St&,ePz:ine$? 155; ,eft? ))Dp$; po%ition? a+%o,0te; top?
D-p$P HeightP-5p$P ithP-Fp$P @
a%p?La+e, I/PLa+e,Tit,eP r0natP%er.erP *ont:
SizePLargerP *oreCo,orP55-555P
St&,ePz:ine$? 151; ,eft? Fp$; po%ition? a+%o,0te; top?
-5p$P Te$tP S0+'it *o,,o!ing /etai,% an *in the Train%P
ithP)Dp$P 2ac3Co,orPSi,.erP@a%p?La+e, 4n+%p;
a%p?La+e, I/PLa+e,"P r0natP%er.erP
2orerSt&,ePSo,iP 2orerithP"p$P *ont:2o,PTr0eP
""
8/12/2019 Online Train Ticket Booking System
23/65
*oreCo,orP2,0eP St&,ePz:ine$? 15"; ,eft? "-p$;
po%ition? a+%o,0te; top? "1Dp$P
Te$tP/epat0re =!ithin G" a&%>P
ithP"-5p$P@a%p?La+e,
a%p?La+e, I/PLa+e,)P r0natP%er.erP
2orerSt&,ePSo,iP 2orerithP"p$P *ont:2o,PTr0eP
*oreCo,orP2,0eP St&,ePz:ine$? 15); ,eft? "-p$;
po%ition? a+%o,0te; top? 1B"p$P
Te$tPTrain Na'e *ro':ToP
ithP"-5p$P@a%p?La+e,
a%p?La+e, I/PLa+e,-P r0natP%er.erP
2orerSt&,ePSo,iP 2orerithP"p$P *ont:2o,PTr0eP
*oreCo,orP2,0eP St&,ePz:ine$? 15-; ,eft? "-p$;
po%ition? a+%o,0te; top? "F5p$P
Te$tPA0,t =1" >P ithP"-5p$P@a%p?La+e,
a%p?La+e, I/PLa+e,BP r0natP%er.erP
2orerSt&,ePSo,iP 2orerithP"p$P *ont:2o,PTr0eP
*oreCo,orP2,0eP St&,ePz:ine$? 15B; ,eft? "-p$;
po%ition? a+%o,0te; top? )1"p$P
Te$tPChi,ren= B: 11 >P ithP"-5p$P@a%p?La+e, a%p?La+e, I/PLa+e,DP r0natP%er.erP
2orerSt&,ePSo,iP 2orerithP"p$P *ont:2o,PTr0eP
")
8/12/2019 Online Train Ticket Booking System
24/65
*oreCo,orP2,0eP St&,ePz:ine$? 15D; ,eft? "-p$;
po%ition? a+%o,0te; top? )--p$P
Te$tPSenior Men = D5 >P
ithP"-5p$P@a%p?La+e,
a%p?La+e, I/PLa+e,P r0natP%er.erP
2orerSt&,ePSo,iP 2orerithP"p$P *ont:2o,PTr0eP
*oreCo,orP2,0eP St&,ePz:ine$? 15; ,eft? "-p$;
po%ition? a+%o,0te; top? )Dp$P
Te$tPSenior o'en = BF >P
ithP"-5p$P@a%p?La+e,
4n+%p; 4n+%p;
4n+%p; 4n+%p;
a%p?/rop/o!nLi%t I/P//Li%tA0,tP r0natP%er.erP
St&,ePz:ine$? 15F; ,eft? "F5p$;
po%ition? a+%o,0te; top? "F5p$P ithPG5p$P
Ta+Ine$P-P
a%p?Li%tIte'5@a%p?Li%tIte'
a%p?Li%tIte'1@a%p?Li%tIte'
a%p?Li%tIte'"@a%p?Li%tIte'
a%p?Li%tIte')@a%p?Li%tIte' a%p?Li%tIte'-@a%p?Li%tIte'
a%p?Li%tIte'B@a%p?Li%tIte'
a%p?Li%tIte'D@a%p?Li%tIte'
"-
8/12/2019 Online Train Ticket Booking System
25/65
@a%p?/rop/o!nLi%t
a%p?/rop/o!nLi%t I/P//Li%tChi,P r0natP%er.erP
St&,ePz:ine$? 15G; ,eft? "F5p$;
po%ition? a+%o,0te; top? )1"p$P ithPG5p$P
Ta+Ine$PBP
a%p?Li%tIte'5@a%p?Li%tIte'
a%p?Li%tIte'1@a%p?Li%tIte'
a%p?Li%tIte'"@a%p?Li%tIte'
a%p?Li%tIte')@a%p?Li%tIte'
a%p?Li%tIte'-@a%p?Li%tIte'
a%p?Li%tIte'B@a%p?Li%tIte'
a%p?Li%tIte'D@a%p?Li%tIte'
@a%p?/rop/o!nLi%t
a%p?/rop/o!nLi%t I/P//Li%tS'enP r0natP%er.erP
St&,ePz:ine$? 115; ,eft? "F5p$;
po%ition? a+%o,0te; top? )--p$P ithPG5p$P
Ta+Ine$PDP
a%p?Li%tIte'5@a%p?Li%tIte'
a%p?Li%tIte'1@a%p?Li%tIte'
a%p?Li%tIte'"@a%p?Li%tIte' a%p?Li%tIte')@a%p?Li%tIte'
a%p?Li%tIte'-@a%p?Li%tIte'
a%p?Li%tIte'B@a%p?Li%tIte'
"B
8/12/2019 Online Train Ticket Booking System
26/65
a%p?Li%tIte'D@a%p?Li%tIte'
@a%p?/rop/o!nLi%t
a%p?/rop/o!nLi%t I/P//Li%tSo'enP r0natP%er.erP
St&,ePz:ine$? 111; ,eft? "F5p$;
po%ition? a+%o,0te; top? )Dp$P ithPG5p$P
Ta+Ine$PP
a%p?Li%tIte'5@a%p?Li%tIte'
a%p?Li%tIte'1@a%p?Li%tIte'
a%p?Li%tIte'"@a%p?Li%tIte'
a%p?Li%tIte')@a%p?Li%tIte'
a%p?Li%tIte'-@a%p?Li%tIte'
a%p?Li%tIte'B@a%p?Li%tIte'
a%p?Li%tIte'D@a%p?Li%tIte'
@a%p?/rop/o!nLi%t
a%p?20tton I/PC'*inTrainP r0natP%er.erP St&,ePz:
ine$? 11"; ,eft? "F5p$; po%ition? a+%o,0te;
top? -5Fp$P Te$tPConfir'P ithP15-p$P
Ta+Ine$PFP @
a%p?Te$t2o$ I/PT$t/epti'eP r0natP%er.erP2orerSt&,ePSo,iP Ma$LengthP11P St&,ePz:ine$? 11);
"D
8/12/2019 Online Train Ticket Booking System
27/65
,eft? "F5p$; po%ition? a+%o,0te; top? "1Dp$P
ithPGDp$P 2ac3Co,orPE5E5E5P 2orerithP1p$P
ReaOn,&PTr0eP Ta+Ine$P11P@a%p?Te$t2o$
a%p?La+e, I/PLa+e,FP r0natP%er.erP
2orerSt&,ePSo,iP 2orerithP"p$P *ont:2o,PTr0eP
*oreCo,orP2,0eP St&,ePz:ine$? 11-; ,eft? "-p$;
po%ition? a+%o,0te; top? "-Fp$P
Te$tPC,a%%P ithP"-5p$P@a%p?La+e,
a%p?/rop/o!nLi%t I/P/rop/o!nLi%t1P r0natP%er.erP
St&,ePz:ine$? 11B; ,eft? "F5p$;
po%ition? a+%o,0te; top? "-Fp$P ithP15-p$P
Ta+Ine$P)P
a%p?Li%tIte'Ac *ir%t C,a%%@a%p?Li%tIte'
a%p?Li%tIte'Ac "@a%p?Li%tIte'
a%p?Li%tIte'Ac )@a%p?Li%tIte'
a%p?Li%tIte'Ac Chair@a%p?Li%tIte'
a%p?Li%tIte'*ir%t c,a%%@a%p?Li%tIte'
a%p?Li%tIte'S,eeper@a%p?Li%tIte'
a%p?Li%tIte'Secon Sitting@a%p?Li%tIte'
@a%p?/rop/o!nLi%ta%p?/rop/o!nLi%tI/P/rop/o!nLi%t"P r0natP%er.erP St&,ePz:ine$? 11D;
"
8/12/2019 Online Train Ticket Booking System
28/65
,eft? "F5p$; po%ition? a+%o,0te; top? 1B"p$P
ithP"-5p$P Ta+Ine$P1P Ca0%e%Va,iationPTr0eP
A0to(o%t2ac3PTr0eP
a%p?Li%tIte'@a%p?Li%tIte'
@a%p?/rop/o!nLi%t
4n+%p;
a%p?La+e, I/PLa+e,GP r0natP%er.erP
2orerSt&,ePSo,iP 2orerithP"p$P *ont:2o,PTr0eP
*oreCo,orP2,0eP St&,ePz:ine$? 11; ,eft? "-p$;
po%ition? a+%o,0te; top? 1"5p$P
Te$tPAn& I/ for Yo0r RefP Too,TipPE$? %e,.a551 9
proj55" etc##P ithP"-5p$P HeightP1Dp$P@a%p?La+e,
a%p?Te$t2o$ I/PT$tTe'piP r0natP%er.erP
2orerSt&,ePIn%etP Ma$LengthP15P St&,ePz:ine$? 11F;
,eft? "F5p$; po%ition? a+%o,0te; top? 1"5p$P
Too,TipPEnter an& A,phaN0'eric N0'+erP
ithPFFp$P@a%p?Te$t2o$
a%p?La+e, I/PLa+e,15P r0natP%er.erP
*oreCo,orP2,0eP St&,ePz:ine$? 11G; ,eft? "-p$;
po%ition? a+%o,0te; top? --5p$P ithPBDp$PTa+Ine$P1)P@a%p?La+e,
4n+%p;
"F
8/12/2019 Online Train Ticket Booking System
29/65
a%p?Te$t2o$ I/PT$ttota,P r0natP%er.erP
2ac3Co,orPhiteP
Ma$LengthPB5P St&,ePz:ine$? 1"5; ,eft? "-p$;
po%ition? a+%o,0te; top? -5Fp$P
ithP"-5p$P 2orerCo,orP2,0eP
2orerithP1p$P Vi%i+,eP*a,%eP
Ta+Ine$P1BP5@a%p?Te$t2o$
4n+%p;4n+%p;4n+%p;
a%p?Ca,enar I/PCa,enar1P r0natP%er.erP
HeightP1F5p$P St&,ePz:ine$? 1"1; ,eft? )G"p$;
po%ition? a+%o,0te; top? "1Dp$P ithP"5Fp$P
2ac3Co,orPhiteP 2orerCo,orP2,0eP Ce,,(aingP-P *ont:
Na'e%PVeranaP *ont:SizePFptP *oreCo,orP5555C5P
Ta+Ine$P"P
Tit,eSt&,e 2orerCo,orP2,ac3P 2ac3Co,orPGGGGGGP
*ont:2o,PTr0eP @
Se,ecte/a&St&,e 2ac3Co,orPDDDDDDP *ont:
2o,PTr0eP *oreCo,orPhiteP @
Toa&/a&St&,e 2ac3Co,orPF5F5**P
*oreCo,orP2,ac3P @ Se,ectorSt&,e 2ac3Co,orPCCCCCCP @
ee3en/a&St&,e 2ac3Co,orP****CCP @
OtherMonth/a&St&,e *oreCo,orP8ra&P @
"G
8/12/2019 Online Train Ticket Booking System
30/65
Ne$t(re.St&,e Vertica,A,ignP2otto'P @
/a&HeaerSt&,e 2ac3Co,orPCCCCCCP *ont:
2o,PTr0eP *ont:SizePptP @
@a%p?Ca,enar
a%p?20tton I/PC'Ho'eP r0natP%er.erP
2ac3Co,orP8raientActi.eCaptionP 2orerCo,orPNa.&P
2orerSt&,ePSo,iP
HeightP"-p$P (o%t2ac37r,PU@/efa0,t#a%p$P St&,ePz:
ine$? 1""; ,eft? DD-p$;
po%ition? a+%o,0te; top? Fp$P Te$tPHo'eP
ithPF5p$P *ont:2o,PTr0eP *oreCo,orPhiteP
Ta+Ine$PGP @
4n+%p;+r @
+r @
+r @
+r @
+r @
a%p?Te$t2o$ I/PT$tTrainnoP r0natP%er.erP St&,ePz:
ine$? 1"-;
,eft? "F5p$; po%ition? a+%o,0te; top? 1F-p$PithPGDp$P *oreCo,orPReP ReaOn,&PTr0eP
Ta+Ine$P)P@a%p?Te$t2o$
+r @
)5
8/12/2019 Online Train Ticket Booking System
31/65
8/12/2019 Online Train Ticket Booking System
32/65
+r @
+r @
+r @
+r @
a%p?Re0ire*ie,Va,iator
I/PRe0ire*ie,Va,iator1P r0natP%er.erP
Contro,ToVa,iatePT$tTe'piP
ErrorMe%%agePZ Enter An& I *or
Yo0rSe,f9E$?%a'551P *ont:2o,PTr0eP St&,ePz:ine$? 1";
,eft? )Dp$; po%ition? a+%o,0te; top? 11"p$P
ithP""-p$P@a%p?Re0ire*ie,Va,iator
4n+%p;
+r @
+r @
+r @
+r @
a%p?La+e, I/PLa+e,1P r0natP%er.erP *oreCo,orP2,0eP
St&,ePz:ine$? 1"F; ,eft? "-p$;
po%ition? a+%o,0te; top? -D-p$P ithPBDp$P
Ta+Ine$P1-P@a%p?La+e, 4n+%p;
a%p?Te$t2o$ I/PT$tSeata.ai,P r0natP%er.erP
2ac3Co,orP20tton*aceP 2orerCo,orP2,0eP
)"
8/12/2019 Online Train Ticket Booking System
33/65
*ont:2o,PTr0eP *oreCo,orPReP ReaOn,&PTr0eP
St&,ePz:ine$? 1)5; ,eft? B"5p$;
po%ition? a+%o,0te; top? -5Fp$P ithP"p$P
Ta+Ine$P1"P5@a%p?Te$t2o$
+r @
@a%p?(ane,
:: fo,,o!ing te%t ,ine ::
@i.
@for'
@+o&
@ht',
%cript r0natP%er.erP
@%cript
Reg%e,ect#A%p$#.+
I'port% S&%te'#/ata#O,e/+
I'port% S&%te'#/ata#O,e/+#O,e/+Co''an
I'port% S&%te'#/ata#O,e/+#O,e/+(ara'eterI'port% S&%te'#/ata#O,e/+#O,e/+Connection
(artia, (0+,ic C,a%% reg%e,ect
Inherit% S&%te'#e+#7I#(age
))
8/12/2019 Online Train Ticket Booking System
34/65
/i' t'pi A% String
/i' cn A% O,e/+Connection
/i' c' A% O,e/+Co''an
/i' %tr A% String
/i' Con A% Ne!
O,e/+Connection=(ro.ierMicro%oft#
8/12/2019 Online Train Ticket Booking System
35/65
If /rop/o!nLi%t"#Te$t Not A,,o!eJ Then
La+e,1#Te$t (,ea%e Se,ect the /ateJ
E$it S0+
En If
If T$tSeata.ai,#Te$t 5 Then
La+e,15#Te$t OO(%## No Seat% A.ai,a+,e on thi% /ate
(,z Chec3 Another /ateJ
La+e,1#*oreCo,or /ra!ing#Co,or#InianRe
E$it S0+
En If
NC Not Confir'eJ
%tr INSERT INTO
reg%e,ect=regno9fro'to9epart/ate9c,a%%9a0,t9chi,ren9S'en9S!o
'en9tota,noofpa%%enger9TrainNo9Confir'>VAL7ES=J 4
T$tTe'pi#Te$t 4 9J 4 /rop/o!nLi%t"#Se,ecteIte'#Te$t 4
9J 4 T$t/epti'e#Te$t 4 9J 4
/rop/o!nLi%t1#Se,ecteIte'#Te$t 4 9J 4
//Li%tA0,t#Se,ecteIte'#Te$t 4 9J 4
//Li%tChi,#Se,ecteIte'#Te$t 4 9J 4
//Li%tS'en#Se,ecteIte'#Te$t 4 9J 4//Li%tSo'en#Se,ecteIte'#Te$t 4 9J 4 T$ttota,#Te$t 4 9J
4 T$tTrainno#Te$t 4 9J 4 NC 4 >J
c' Ne! O,e/+Co''an=%tr9 Con>
)B
8/12/2019 Online Train Ticket Booking System
36/65
c'#E$ec0teNon0er&=>
La+e,15#Te$t S0cce%f0,,& Sa.eJ
(ane,1#Contro,%#C,ear=>
%eatLi'itNo%7pate=>
t'pi Ser.er#7r,Encoe=T$tTe'pi#Te$t>
Re%pon%e#Reirect=+oo3ing#a%p$[Va,0eJ 4 t'pi>
Con#C,o%e=>
En S0+
(rotecte S0+ tota,%=>
/i' tota,noofpa%%enger A% String
/i' a A% Integer //Li%tA0,t#Te$t
/i' + A% Integer //Li%tChi,#Te$t
/i' %'en A% Integer //Li%tS'en#Te$t
/i' %!o'en A% Integer //Li%tSo'en#Te$t
tota,noofpa%%enger a + %'en %!o'en La+e,15#Vi%i+,e Tr0e
T$ttota,#Te$t tota,noofpa%%enger
)D
8/12/2019 Online Train Ticket Booking System
37/65
En S0+
(rotecte S0+ Ca,enar1QSe,ectionChange=2&Va, %ener A%
O+ject9 2&Va, e A% S&%te'#E.entArg%> Han,e%
Ca,enar1#Se,ectionChange
If Ca,enar1#Se,ecte/ate Toa& Then T$t/epti'e#Te$t
Not A,,o!eJ ? T$t/epti'e#*oreCo,or
/ra!ing#Co,or#/ar3Re ? E$it S0+
T$t/epti'e#Te$t *or'at=Ca,enar1#Se,ecte/ate9
@MM@&&&&J>
Ca,, ch3zero.a,0e=>
En S0+
(rotecte S0+ (ageQLoa=2&Va, %ener A% O+ject9 2&Va, e A%
S&%te'#E.entArg%> Han,e% Me#Loa
T$t/epti'e#Te$t *or'at=Toa&9 @MM@&&&&J>
/i' r1 A% O,e/+/ataReaer
/i' c'1 A% O,e/+Co''an
Con#Open=>
c'1 Ne! O,e/+Co''an=Se,ect trainNa'e fro'Trainetai,%J9 Con>
r1 c'1#E$ec0teReaer
)
8/12/2019 Online Train Ticket Booking System
38/65
If r1#Ha%Ro!% Tr0e Then
hi,e r1#Rea=>
/rop/o!nLi%t"#Ite'%#A=r1=trainNa'eJ>>
En hi,e
En If
r1#C,o%e=>
%eat,i'it%ate0p,oa=>
T$tTe'pi#*oc0%=>
En S0+
(ri.ate S0+ %eat,i'it%ate0p,oa=>
If Not (age#I%(o%t2ac3 Then once ,oa i% eno0gh = thi%
concept i% act0a,,& r0n +& rai,!a&% 'ain %ite
/i' Nate A% O+ject
Nate *or'at=Toa&9 @MM@&&&&J>
/i' c'ate A% O,e/+Co''an
c'ate Ne! O,e/+Co''an=7(/ATE Seat%Li'it
SET Seat%Li'it#WNateX J 4 Nate 4 J9 Con>
c'ate#E$ec0teNon0er&=>
En If En S0+
(ri.ate S0+ %eat,i'it!n,oa=>
)F
8/12/2019 Online Train Ticket Booking System
39/65
/i' /RS A% O,e/+/ataReaer
/i' C' A% O,e/+Co''an
C' Ne! O,e/+Co''an=%e,ect Z fro' Seat%Li'it
!here=TrainNoJ 4 T$tTrainno#Te$t 4 >J9 Con>
/RS C'#E$ec0teReaer
If /RS#Ha%Ro!% Tr0e Then
hi,e /RS#Rea=>
T$tSeata.ai,#Te$t /RS=Tota,Seat%J>
En hi,e
En If
/RS#C,o%e=>
En S0+
(ri.ate S0+ %eatLi'itNo%7pate=>
/i' SeatA.ai, A% Integer
SeatA.ai, T$tSeata.ai,#Te$t \ T$ttota,#Te$t
/i' c'ate A% O,e/+Co''an
c'ate Ne! O,e/+Co''an=7(/ATE Seat%Li'it SET
Tota,Seat%J 4 SeatA.ai, 4 !here=trainNo J 4T$tTrainno#Te$t 4 >J9 Con>
c'ate#E$ec0teNon0er&=>
)G
8/12/2019 Online Train Ticket Booking System
40/65
En S0+
(rotecte S0+ TrainnoSe,ecte=>
/i' r A% O,e/+/ataReaer
/i' c' A% O,e/+Co''an
c' Ne! O,e/+Co''an=%e,ect Z fro' trainetai,%
!here=TrainNa'eJ 4 /rop/o!nLi%t"#Se,ecteIte'#Te$t 4
>J9 Con>
r c'#E$ec0teReaer
If r#Ha%Ro!% Tr0e Then
hi,e r#Rea=>
T$tTrainno#Te$t r=trainNoJ>
En hi,e
En If
r#C,o%e=>
Con#C,o%e=>
En S0+
(ri.ate S0+ ch3zero.a,0e=> If Not (age#I%(o%t2ac3 Then
If C/+,=T$tSeata.ai,#Te$t> 5 Then
-5
8/12/2019 Online Train Ticket Booking System
41/65
La+e,15#Te$t OO(%## No Seat% A.ai,a+,e on thi% /ate
(,z Chec3 Another /ateJ
E$it S0+
En If
En If
En S0+
(rotecte S0+ /rop/o!nLi%t"QSe,ecteIne$Change=2&Va,
%ener A% O+ject9 2&Va, e A% S&%te'#E.entArg%> Han,e%
/rop/o!nLi%t"#Se,ecteIne$Change
La+e,1#Te$t /rop/o!nLi%t"#Se,ecteIte'#Te$t
Ca,, TrainnoSe,ecte=>
Ca,, %eat,i'it!n,oa=>
En S0+
En C,a%%
Reg%e,ect#A%p$
(age Lang0agePV2P A0toE.entire0pPfa,%eP
Coe*i,ePreg%e,ect#a%p$#.+P Inherit%Preg%e,ectP
I'port Na'e%pacePS&%te'#/ata#O,e+P
-1
8/12/2019 Online Train Ticket Booking System
42/65
/OCTY(E ht', (72LIC P:@@)C@@/T/ 6HTML 1#5
Tran%itiona,@@ENP Phttp?@@!!!#!)#org@TR@$ht',1@/T/@$ht',1:
tran%itiona,#tP
ht', $',n%Phttp?@@!!!#!)#org@1GGG@$ht',P
hea r0natP%er.erP
tit,eSe,ect Train@tit,e
%cript ,ang0agePja.a%criptP t&[email protected]%criptP
@@ C/ATAW
@@ XX
@%cript
@hea
+o& on,oaPret0rn !ino!Qon,oa=>P onc,ic3Pret0rn
!ino!Qonc,ic3=>P
for' iPfor'1P r0natP%er.erP onc,ic3Pret0rn
for'1Qonc,ic3=>P
i.
4n+%p;a%p?I'age I/PI'age)P r0natP%er.erP
A,ternateTe$tPLogoP 2orerCo,orPhiteP HeightPF5p$P
-"
8/12/2019 Online Train Ticket Booking System
43/65
I'ageA,ignPTopP
I'age7r,PU@i'g@rai,Q,ogoQne!Qre#gifP St&,ePz:ine$? 15";
,eft? 1Dp$; po%ition? a+%o,0te; top? Fp$P ithP"p$P @
4n+%p; 4n+%p;4n+%p;4n+%p; 4n+%p;4n+%p; 4n+%p;4n+%p;
a%p?(ane, I/P(ane,1P r0natP%er.erP
2ac3Co,orPhiteS'o3eP HeightPB--p$P
Horizonta,A,ignPCenterP
St&,eP,eft? GDp$; po%ition? re,ati.e; top? 5p$; z:ine$?
151;P ithPB"p$P *ont:2o,PTr0eP
a%p?I'age I/PC'20ttonP r0natP%er.erP
2orerSt&,ePO0t%etP I'age7r,PU@i'g@trni'g#(N8P
St&,ePz:ine$? 155; ,eft? ))Dp$; po%ition? a+%o,0te; top?
D-p$P HeightP-5p$P ithP-Fp$P @
a%p?La+e, I/PLa+e,Tit,eP r0natP%er.erP *ont:
SizePLargerP *oreCo,orP55-555P
St&,ePz:ine$? 151; ,eft? Fp$; po%ition? a+%o,0te; top?
-5p$P Te$tP S0+'it *o,,o!ing /etai,% an *in the Train%P
ithP)Dp$P 2ac3Co,orPSi,.erP@a%p?La+e,
4n+%p;
a%p?La+e, I/PLa+e,"P r0natP%er.erP2orerSt&,ePSo,iP 2orerithP"p$P *ont:2o,PTr0eP
*oreCo,orP2,0eP St&,ePz:ine$? 15"; ,eft? "-p$;
po%ition? a+%o,0te; top? "1Dp$P
-)
8/12/2019 Online Train Ticket Booking System
44/65
Te$tP/epat0re =!ithin G" a&%>P
ithP"-5p$P@a%p?La+e,
a%p?La+e, I/PLa+e,)P r0natP%er.erP
2orerSt&,ePSo,iP 2orerithP"p$P *ont:2o,PTr0eP
*oreCo,orP2,0eP St&,ePz:ine$? 15); ,eft? "-p$;
po%ition? a+%o,0te; top? 1B"p$P
Te$tPTrain Na'e *ro':ToP
ithP"-5p$P@a%p?La+e,
a%p?La+e, I/PLa+e,-P r0natP%er.erP
2orerSt&,ePSo,iP 2orerithP"p$P *ont:2o,PTr0eP
*oreCo,orP2,0eP St&,ePz:ine$? 15-; ,eft? "-p$;
po%ition? a+%o,0te; top? "F5p$P
Te$tPA0,t =1" >P ithP"-5p$P@a%p?La+e,
a%p?La+e, I/PLa+e,BP r0natP%er.erP
2orerSt&,ePSo,iP 2orerithP"p$P *ont:2o,PTr0eP
*oreCo,orP2,0eP St&,ePz:ine$? 15B; ,eft? "-p$;
po%ition? a+%o,0te; top? )1"p$P
Te$tPChi,ren= B: 11 >P ithP"-5p$P@a%p?La+e,
a%p?La+e, I/PLa+e,DP r0natP%er.erP
2orerSt&,ePSo,iP 2orerithP"p$P *ont:2o,PTr0eP *oreCo,orP2,0eP St&,ePz:ine$? 15D; ,eft? "-p$;
po%ition? a+%o,0te; top? )--p$P
--
8/12/2019 Online Train Ticket Booking System
45/65
Te$tPSenior Men = D5 >P
ithP"-5p$P@a%p?La+e,
a%p?La+e, I/PLa+e,P r0natP%er.erP
2orerSt&,ePSo,iP 2orerithP"p$P *ont:2o,PTr0eP
*oreCo,orP2,0eP St&,ePz:ine$? 15; ,eft? "-p$;
po%ition? a+%o,0te; top? )Dp$P
Te$tPSenior o'en = BF >P
ithP"-5p$P@a%p?La+e,
4n+%p; 4n+%p;
4n+%p; 4n+%p;
a%p?/rop/o!nLi%t I/P//Li%tA0,tP r0natP%er.erP
St&,ePz:ine$? 15F; ,eft? "F5p$;
po%ition? a+%o,0te; top? "F5p$P ithPG5p$P
Ta+Ine$P-P
a%p?Li%tIte'5@a%p?Li%tIte'
a%p?Li%tIte'1@a%p?Li%tIte'
a%p?Li%tIte'"@a%p?Li%tIte'
a%p?Li%tIte')@a%p?Li%tIte'
a%p?Li%tIte'-@a%p?Li%tIte'
a%p?Li%tIte'B@a%p?Li%tIte' a%p?Li%tIte'D@a%p?Li%tIte'
@a%p?/rop/o!nLi%t
-B
8/12/2019 Online Train Ticket Booking System
46/65
a%p?/rop/o!nLi%t I/P//Li%tChi,P r0natP%er.erP
St&,ePz:ine$? 15G; ,eft? "F5p$;
po%ition? a+%o,0te; top? )1"p$P ithPG5p$P
Ta+Ine$PBP
a%p?Li%tIte'5@a%p?Li%tIte'
a%p?Li%tIte'1@a%p?Li%tIte'
a%p?Li%tIte'"@a%p?Li%tIte'
a%p?Li%tIte')@a%p?Li%tIte'
a%p?Li%tIte'-@a%p?Li%tIte'
a%p?Li%tIte'B@a%p?Li%tIte'
a%p?Li%tIte'D@a%p?Li%tIte'
@a%p?/rop/o!nLi%t
a%p?/rop/o!nLi%t I/P//Li%tS'enP r0natP%er.erP
St&,ePz:ine$? 115; ,eft? "F5p$;
po%ition? a+%o,0te; top? )--p$P ithPG5p$P
Ta+Ine$PDP
a%p?Li%tIte'5@a%p?Li%tIte'
a%p?Li%tIte'1@a%p?Li%tIte'
a%p?Li%tIte'"@a%p?Li%tIte'
a%p?Li%tIte')@a%p?Li%tIte' a%p?Li%tIte'-@a%p?Li%tIte'
a%p?Li%tIte'B@a%p?Li%tIte'
a%p?Li%tIte'D@a%p?Li%tIte'
-D
8/12/2019 Online Train Ticket Booking System
47/65
@a%p?/rop/o!nLi%t
a%p?/rop/o!nLi%t I/P//Li%tSo'enP r0natP%er.erP
St&,ePz:ine$? 111; ,eft? "F5p$;
po%ition? a+%o,0te; top? )Dp$P ithPG5p$P
Ta+Ine$PP
a%p?Li%tIte'5@a%p?Li%tIte'
a%p?Li%tIte'1@a%p?Li%tIte'
a%p?Li%tIte'"@a%p?Li%tIte'
a%p?Li%tIte')@a%p?Li%tIte'
a%p?Li%tIte'-@a%p?Li%tIte'
a%p?Li%tIte'B@a%p?Li%tIte'
a%p?Li%tIte'D@a%p?Li%tIte'
@a%p?/rop/o!nLi%t
a%p?20tton I/PC'*inTrainP r0natP%er.erP St&,ePz:
ine$? 11"; ,eft? "F5p$; po%ition? a+%o,0te;
top? -5Fp$P Te$tPConfir'P ithP15-p$P
Ta+Ine$PFP @
a%p?Te$t2o$ I/PT$t/epti'eP r0natP%er.erP
2orerSt&,ePSo,iP Ma$LengthP11P St&,ePz:ine$? 11); ,eft? "F5p$; po%ition? a+%o,0te; top? "1Dp$P
ithPGDp$P 2ac3Co,orPE5E5E5P 2orerithP1p$P
ReaOn,&PTr0eP Ta+Ine$P11P@a%p?Te$t2o$
-
8/12/2019 Online Train Ticket Booking System
48/65
a%p?La+e, I/PLa+e,FP r0natP%er.erP
2orerSt&,ePSo,iP 2orerithP"p$P *ont:2o,PTr0eP
*oreCo,orP2,0eP St&,ePz:ine$? 11-; ,eft? "-p$;
po%ition? a+%o,0te; top? "-Fp$P
Te$tPC,a%%P ithP"-5p$P@a%p?La+e,
a%p?/rop/o!nLi%t I/P/rop/o!nLi%t1P r0natP%er.erP
St&,ePz:ine$? 11B; ,eft? "F5p$;
po%ition? a+%o,0te; top? "-Fp$P ithP15-p$P
Ta+Ine$P)P
a%p?Li%tIte'Ac *ir%t C,a%%@a%p?Li%tIte'
a%p?Li%tIte'Ac "@a%p?Li%tIte'
a%p?Li%tIte'Ac )@a%p?Li%tIte'
a%p?Li%tIte'Ac Chair@a%p?Li%tIte'
a%p?Li%tIte'*ir%t c,a%%@a%p?Li%tIte'
a%p?Li%tIte'S,eeper@a%p?Li%tIte'
a%p?Li%tIte'Secon Sitting@a%p?Li%tIte'
@a%p?/rop/o!nLi%ta%p?/rop/o!nLi%t
I/P/rop/o!nLi%t"P r0natP%er.erP St&,ePz:ine$? 11D;
,eft? "F5p$; po%ition? a+%o,0te; top? 1B"p$P
ithP"-5p$P Ta+Ine$P1P Ca0%e%Va,iationPTr0ePA0to(o%t2ac3PTr0eP
a%p?Li%tIte'@a%p?Li%tIte'
@a%p?/rop/o!nLi%t
-F
8/12/2019 Online Train Ticket Booking System
49/65
4n+%p;
a%p?La+e, I/PLa+e,GP r0natP%er.erP
2orerSt&,ePSo,iP 2orerithP"p$P *ont:2o,PTr0eP
*oreCo,orP2,0eP St&,ePz:ine$? 11; ,eft? "-p$;
po%ition? a+%o,0te; top? 1"5p$P
Te$tPAn& I/ for Yo0r RefP Too,TipPE$? %e,.a551 9
proj55" etc##P ithP"-5p$P HeightP1Dp$P@a%p?La+e,
a%p?Te$t2o$ I/PT$tTe'piP r0natP%er.erP
2orerSt&,ePIn%etP Ma$LengthP15P St&,ePz:ine$? 11F;
,eft? "F5p$; po%ition? a+%o,0te; top? 1"5p$P
Too,TipPEnter an& A,phaN0'eric N0'+erP
ithPFFp$P@a%p?Te$t2o$
a%p?La+e, I/PLa+e,15P r0natP%er.erP
*oreCo,orP2,0eP St&,ePz:ine$? 11G; ,eft? "-p$;
po%ition? a+%o,0te; top? --5p$P ithPBDp$P
Ta+Ine$P1)P@a%p?La+e,
4n+%p;
a%p?Te$t2o$ I/PT$ttota,P r0natP%er.erP
2ac3Co,orPhiteP
Ma$LengthPB5P St&,ePz:ine$? 1"5; ,eft? "-p$;po%ition? a+%o,0te; top? -5Fp$P
-G
8/12/2019 Online Train Ticket Booking System
50/65
ithP"-5p$P 2orerCo,orP2,0eP
2orerithP1p$P Vi%i+,eP*a,%eP
Ta+Ine$P1BP5@a%p?Te$t2o$
4n+%p;4n+%p;4n+%p;
a%p?Ca,enar I/PCa,enar1P r0natP%er.erP
HeightP1F5p$P St&,ePz:ine$? 1"1; ,eft? )G"p$;
po%ition? a+%o,0te; top? "1Dp$P ithP"5Fp$P
2ac3Co,orPhiteP 2orerCo,orP2,0eP Ce,,(aingP-P *ont:
Na'e%PVeranaP *ont:SizePFptP *oreCo,orP5555C5P
Ta+Ine$P"P
Tit,eSt&,e 2orerCo,orP2,ac3P 2ac3Co,orPGGGGGGP
*ont:2o,PTr0eP @
Se,ecte/a&St&,e 2ac3Co,orPDDDDDDP *ont:
2o,PTr0eP *oreCo,orPhiteP @
Toa&/a&St&,e 2ac3Co,orPF5F5**P
*oreCo,orP2,ac3P @
Se,ectorSt&,e 2ac3Co,orPCCCCCCP @
ee3en/a&St&,e 2ac3Co,orP****CCP @
OtherMonth/a&St&,e *oreCo,orP8ra&P @
Ne$t(re.St&,e Vertica,A,ignP2otto'P @ /a&HeaerSt&,e 2ac3Co,orPCCCCCCP *ont:
2o,PTr0eP *ont:SizePptP @
@a%p?Ca,enar
B5
8/12/2019 Online Train Ticket Booking System
51/65
a%p?20tton I/PC'Ho'eP r0natP%er.erP
2ac3Co,orP8raientActi.eCaptionP 2orerCo,orPNa.&P
2orerSt&,ePSo,iP
HeightP"-p$P (o%t2ac37r,PU@/efa0,t#a%p$P St&,ePz:
ine$? 1""; ,eft? DD-p$;
po%ition? a+%o,0te; top? Fp$P Te$tPHo'eP
ithPF5p$P *ont:2o,PTr0eP *oreCo,orPhiteP
Ta+Ine$PGP @
4n+%p;+r @
+r @
+r @
+r @
+r @
a%p?Te$t2o$ I/PT$tTrainnoP r0natP%er.erP St&,ePz:
ine$? 1"-;
,eft? "F5p$; po%ition? a+%o,0te; top? 1F-p$P
ithPGDp$P *oreCo,orPReP ReaOn,&PTr0eP
Ta+Ine$P)P@a%p?Te$t2o$
+r @
+r @ +r @
+r @
+r @
B1
8/12/2019 Online Train Ticket Booking System
52/65
a%p?La+e, I/PLa+e,11P r0natP%er.erP
2orerSt&,ePSo,iP 2orerithP"p$P *ont:2o,PTr0eP
*oreCo,orP2,0eP St&,ePz:ine$? 1"B; ,eft? "-p$;
po%ition? a+%o,0te; top? 1F-p$P
Te$tPTrain NoP ithP"-5p$P@a%p?La+e,
4n+%p; 4n+%p;4n+%p;4n+%p;4n+%p;4n+%p;
a%p?La+e, I/PLa+e,1"P r0natP%er.erP
2orerSt&,ePSo,iP 2orerithP"p$P *ont:2o,PTr0eP
*oreCo,orP2,0eP St&,ePz:ine$? 1"D; ,eft? )G"p$;
po%ition? a+%o,0te; top? -5Fp$P
Te$tPSeat A.ai,a+i,it&P ithP1"5p$P@a%p?La+e,
+r @
+r @
+r @
+r @
+r @
+r @
+r @
+r @
+r @ +r @
+r @
+r @
B"
8/12/2019 Online Train Ticket Booking System
53/65
a%p?Re0ire*ie,Va,iator
I/PRe0ire*ie,Va,iator1P r0natP%er.erP
Contro,ToVa,iatePT$tTe'piP
ErrorMe%%agePZ Enter An& I *or
Yo0rSe,f9E$?%a'551P *ont:2o,PTr0eP St&,ePz:ine$? 1";
,eft? )Dp$; po%ition? a+%o,0te; top? 11"p$P
ithP""-p$P@a%p?Re0ire*ie,Va,iator
4n+%p;
+r @
+r @
+r @
+r @
a%p?La+e, I/PLa+e,1P r0natP%er.erP *oreCo,orP2,0eP
St&,ePz:ine$? 1"F; ,eft? "-p$;
po%ition? a+%o,0te; top? -D-p$P ithPBDp$P
Ta+Ine$P1-P@a%p?La+e,
4n+%p;
a%p?Te$t2o$ I/PT$tSeata.ai,P r0natP%er.erP
2ac3Co,orP20tton*aceP 2orerCo,orP2,0eP
*ont:2o,PTr0eP *oreCo,orPReP ReaOn,&PTr0ePSt&,ePz:ine$? 1)5; ,eft? B"5p$;
po%ition? a+%o,0te; top? -5Fp$P ithP"p$P
Ta+Ine$P1"P5@a%p?Te$t2o$
B)
8/12/2019 Online Train Ticket Booking System
54/65
+r @
@a%p?(ane,
:: fo,,o!ing te%t ,ine ::
@i.
@for'
@+o&
@ht',
%cript r0natP%er.erP
@%cript
(nr#A%p$#.+
I'port% S&%te'#/ata#O,e/+
(artia, C,a%% pnr
Inherit% S&%te'#e+#7I#(age
(rotecte S0+ Lin320tton1QC,ic3=2&Va, %ener A% O+ject9
2&Va, e A% S&%te'#E.entArg%> Han,e% Lin320tton1#C,ic3 /i' 0r, A% String
Phttp?@@!!!#inianrai,#go.#in@ho'e#ht',P opening ne! !ino!
/i' %+ A% Ne! String20i,er=>
B-
8/12/2019 Online Train Ticket Booking System
55/65
%+#Appen=P%cript t&pe [email protected]%criptP>
%+#Appen=P!ino!#open=P>
%+#Appen=0r,>
%+#Appen=P>;P>
%+#Appen=P::@%criptP>
C,ientScript#Regi%terStart0pScript=Me#8etT&pe=>9 P%criptP9
%+#ToString=>>
En S0+
(rotecte S0+ (ageQLoa=2&Va, %ener A% O+ject9 2&Va, e A%
S&%te'#E.entArg%> Han,e% Me#Loa
/i' tt,% A% String
tt,% Re0e%t#0er&String=P.a,0eP>
T$t(a%%I/#Te$t tt,%
En S0+
En C,a%%
(nr#A%p$
BB
8/12/2019 Online Train Ticket Booking System
56/65
(age Lang0agePV2P A0toE.entire0pPfa,%eP
Coe*i,ePpnr#a%p$#.+P Inherit%PpnrP
Regi%ter A%%e'+,&PMicro%oft#ReportVie!er#e+*or'%9
Ver%ionF#5#5#59 C0,t0rene0tra,9
(0+,icKe&To3en+5)fBff11B5a)aP
Na'e%pacePMicro%oft#Reporting#e+*or'%P
Tag(refi$Pr%!e+P
I'port Na'e%pacePS&%te'#/ata#O,e/+P
/OCTY(E ht', (72LIC P:@@)C@@/T/ 6HTML 1#5
Tran%itiona,@@ENP Phttp?@@!!!#!)#org@TR@$ht',1@/T/@$ht',1:
tran%itiona,#tP
ht', $',n% Phttp?@@!!!#!)#org@1GGG@$ht',P
hea iPHea1P r0natP%er.erP
tit,e(a%%enger% /etai,%###@tit,e
@hea
+o& %t&,eP+ac3gro0n:co,or? !hite; te$t:a,ign? center;P
for' iP*or'1P r0natP%er.erP
%trong(,ea%e Ma3e Yo0r (a&'ent% thro0gh Net2an3ing anConfir' Yo0r Seat%
a%p?Lin320tton I/PLin320tton1P r0natP%er.erP
2ac3Co,orPhiteP 2orerCo,orPC5C5**P
BD
8/12/2019 Online Train Ticket Booking System
57/65
2orerSt&,eP/a%heP *oreCo,orPReP HeightP1Dp$P
OnC,ic3PLin320tton1QC,ic3P
St&,ePz:ine$? 15B; ,eft? F-p$; po%ition? a+%o,0te; top?
"FFp$P ithP1Dp$POther e+%ite%@a%p?Lin320tton
@%trong
a%p?Acce%%/ataSo0rce I/PAcce%%/ataSo0rce1P
r0natP%er.erP /ata*i,ePU@/2@Rai,!a&+#'+P
Se,ectCo''anPSELECT WNa'eX9 W/ateofTra.e,X9
WTrainNa'eX9 WTrainN0'+erX9 WC,a%%X9 W(nrNoX9 WAgeX9 W8enerX9
WT&peOf(a%%engerX9 WregnoX9 W*ro'toX *ROM W(a%%engerX
HERE =WregnoX [>P
Se,ect(ara'eter%
a%p?Contro,(ara'eter Contro,I/PT$t(a%%I/P
Na'ePregnoP (ropert&Na'ePTe$tP T&pePStringP @
@Se,ect(ara'eter%
@a%p?Acce%%/ataSo0rce
a%p?(ane, I/P(ane,1P r0natP%er.erP
2ac3I'age7r,PU@AppQ/ata@rai,Q,ogoQne!Qre#gifP
HeightP"p$P St&,ePz:ine$? 151; ,eft? FF5p$; po%ition?
a+%o,0te; top? Fp$P ithP"p$P
@a%p?(ane,
B
8/12/2019 Online Train Ticket Booking System
58/65
+r @
:: OnIte'Co''anPc0%to'er%QIte'Co''an ::
a%p?(ane, I/P(ane,"P r0natP%er.erP
2ac3I'age7r,PU@Ri'ageLogo#jpgP HeightP1G"p$P
St&,ePz:ine$? 15"; ,eft? Dp$; po%ition? a+%o,0te; top?
FFp$P ithP1G"p$P
rapP*a,%eP
@a%p?(ane,
4n+%p; 4n+%p;
4n+%p;4n+%p;
a%p?/ataLi%t I/P/ataLi%t1P r0natP%er.erP
/ataSo0rceI/PAcce%%/ataSo0rce1P
Repeat/irectionPHorizonta,P
St&,ePz:ine$? 15); ,eft? 1Dp$; po%ition? a+%o,0te; top? "p$P
2orerCo,orP2,ac3P 2orerSt&,eP/o0+,eP 2orerithP1p$P
CaptionP(a%%enger% /etai, 44 (NRP CaptionA,ignPTopP
HeightP--Fp$P ithPB"p$P
Ite'Te'p,ate
Na'e?
a%p?La+e, I/PNa'eLa+e,P r0natP%er.erP Te$tE.a,=PNa'eP> @a%p?La+e,+r @
/ateofTra.e,?
BF
8/12/2019 Online Train Ticket Booking System
59/65
a%p?La+e, I/P/ateofTra.e,La+e,P r0natP%er.erP
Te$t E.a,=P/ateofTra.e,P> @a%p?La+e,+r @
TrainNa'e?
a%p?La+e, I/PTrainNa'eLa+e,P r0natP%er.erP Te$t
E.a,=PTrainNa'eP> @a%p?La+e,+r @
TrainN0'+er?
a%p?La+e, I/PTrainN0'+erLa+e,P r0natP%er.erP
Te$t E.a,=PTrainN0'+erP> @a%p?La+e,+r @
C,a%%?
a%p?La+e, I/PC,a%%La+e,P r0natP%er.erP Te$t
E.a,=PC,a%%P> @a%p?La+e,+r @
(nrNo?
a%p?La+e, I/P(nrNoLa+e,P r0natP%er.erP Te$t
E.a,=P(nrNoP> @a%p?La+e,+r @
Age?
a%p?La+e, I/PAgeLa+e,P r0natP%er.erP Te$t
E.a,=PAgeP> @a%p?La+e,+r @
8ener?
a%p?La+e, I/P8enerLa+e,P r0natP%er.erP Te$t
E.a,=P8enerP> @a%p?La+e,+r @ T&peOf(a%%enger?
a%p?La+e, I/PT&peOf(a%%engerLa+e,P r0natP%er.erP
Te$t E.a,=PT&peOf(a%%engerP> @a%p?La+e,+r @
BG
8/12/2019 Online Train Ticket Booking System
60/65
regno?
a%p?La+e, I/PregnoLa+e,P r0natP%er.erP Te$t
E.a,=PregnoP> @a%p?La+e,+r @
*ro'to?
a%p?La+e, I/P*ro'toLa+e,P r0natP%er.erP Te$t
E.a,=P*ro'toP> @a%p?La+e,+r @
+r @
@Ite'Te'p,ate
@a%p?/ataLi%t
4n+%p;
a%p?Te$t2o$ I/PT$t(a%%I/P r0natP%er.erP St&,ePz:ine$?
15-; ,eft? 1Dp$; po%ition? a+%o,0te;
top? Fp$P Vi%i+,eP*a,%eP@a%p?Te$t2o$
+r @
+r @
+r @
+r @
+r @
+r @
+r @ +r @
+r @
+r @
D5
8/12/2019 Online Train Ticket Booking System
61/65
+r @
+r @
+r @
+r @
+r @
+r @
+r @
+r @
+r @
4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p;
4n+%p; 4n+%p; 4n+%p; 4n+%p;
4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p;
4n+%p; 4n+%p; 4n+%p; 4n+%p;
4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p;
4n+%p; 4n+%p; 4n+%p; 4n+%p;
4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p;
4n+%p; 4n+%p; 4n+%p; 4n+%p;
4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p;
4n+%p; 4n+%p; 4n+%p; 4n+%p;
4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p;4n+%p; 4n+%p; 4n+%p; 4n+%p;
4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p;
4n+%p; 4n+%p; 4n+%p; 4n+%p;
D1
8/12/2019 Online Train Ticket Booking System
62/65
4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p;
4n+%p; 4n+%p; 4n+%p;4n+%p;
+r @
+r @
+r @
+r @
+r @
+r @
4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p;
4n+%p; 4n+%p; 4n+%p; 4n+%p;
4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p; 4n+%p;
4n+%p;@for'
@+o&
@ht',
%cript r0natP%er.erP
(rotecte S0+ (ageQLoa=2&Va, %ener A% O+ject9 2&Va, e
A% S&%te'#E.entArg%>
/i' tt,% A% String
tt,% Re0e%t#0er&String=P.a,0eP>
T$t(a%%I/#Te$t tt,% En S0+
@%cript
D"
8/12/2019 Online Train Ticket Booking System
63/65
/ATA *LO /IA8RAM?:
D)
B%%9)"
T)c9e#
L%)"
Re)!*#)%"
,)#h
P*&&e"e!
De#*)+&
8/12/2019 Online Train Ticket Booking System
64/65
BIBLIOGRAPHY
The%e are the fo,,o!ing ,in3% !hich a%%i%t 'e at each an e.er&
%tep in co'p,eting thi% project
1# !!!#!i3ipeia#co'
"# !!!#an%!er%#co'
)# !!!#a%3'e#co'
-# !!!#e%nip%#co'
In%tea of the%e 0%ef0, !e+%ite%9 fo,,o!ing +oo3% a,%o he,p 'e?
1# O2
8/12/2019 Online Train Ticket Booking System
65/65
DB