Report
Report
Significant amount of test data has been accumulated by parsing realistic data from web sources. A
major part of the project is dedicated to managing:
• reservation data ranging from 2 months old upto 4 months in future
• trains, trips, timetables, station pools
• distances between stations
• fares & costs
• quotas viz. GN, TKL, LD
• status viz. CNF, W/L, RAC (with proper pool, quota and wait list clearance)
• coaches viz. S, G, A, B , C, CC
• seat allotment
• cancellations
Implementation
Following are the related files
• account.php: the main page of the website after login
• book.php: for booking seats
• goforcancellation.php, cancel.php: for cancelling seats
• captcha.php: for captcha generation
• changepassword.php, changepasswordfinal.php: for chaning passwords
• dblink.php: for establishing link with the database
• findTrains.php: finding trains between station
• footer.php: general footer code for all php files
• generate.php: generating test data and some tables
• getAvailability: getting availability of seats
• guard.php: destroys timed out sessions and redirects to index.php
• header.js: Javascript functions to assist the website on client side
• header.php: general header code for most php files
• history.php: getting the booking history of current user account
• index.php: main page of the website when not logged in
• logout.php: Logs the user out
• Makefile: setting up the database and server anew
• pnrStatus.php: echoes back with PNR status related data
• Railways.sql: contains SQL code for generating tables and sequences
• register.php: registers new users into the website
• tdr.php, tdrfiling.php, tdrfinal.php: TDR related files
• triggers.sql: triggers for checking wherther validity constraints are satisfied
• updateprofile.php, updateprofilefinal.php: User profile updation
• datagencodes: Python and Bash codes for generating and importing reaslitic data
Screenshot