Top Banner
A Project Report on Online Movie Ticket Booking Submitted as partial fulfillment of the requirement For M.Sc. IT Semester I Prepared for Subject: PROJECT I (P105) Prepared By Group No:-23 Name of Project Developer 1. Astha Patel (1416it22025) (237) 2. Hetal Zala (1416it22085) (271) 3. Zarana Patel (1416it22251) (251) M.Sc. IT Programme Department of Computer Science Kadi Sarva Vishwavidyalaya PROJECT – I P105 Semester - I 2013 Group No : 23
51

Online Movie Ticket Booking

Apr 15, 2017

Download

Education

Astha Patel
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Online Movie Ticket Booking

A Project Report on

Online Movie Ticket Booking

Submitted as partial fulfillment of the requirement

For M.Sc. IT Semester I

Prepared for Subject: PROJECT I (P105)

Prepared By

Group No:-23

Name of Project Developer

1. Astha Patel (1416it22025) (237)

2. Hetal Zala (1416it22085) (271)

3. Zarana Patel (1416it22251) (251)

M.Sc. IT Programme

Department of Computer Science

Kadi Sarva Vishwavidyalaya

Gandhinagar

M.Sc. IT Programme, Department of Computer Science

2012

PROJECT – IP105

Semester - I2013

Group No : 23

Page 2: Online Movie Ticket Booking

Kadi Sarva VishwavidyalayaGandhinagar

Date:

PROJECT WORK CERTIFICATE

This is to certify that the project report submitted by Astha Patel,Hetal Zala,Zarana

Patel having Enrollment no.1416it22025,1416it22085,1416it22251, a student of M.Sc. IT

Semester- I, Department of Computer Science, KSV University, Gandhinagar have/has

completed his/her project titled as Online Movie Ticket Booking satisfactorily.

We appreciate the enthusiasm & dedication towards work submitted.

Internal Project Guide

Mr. Yagnesh VyasM.Sc. IT, GandhinagarKadi Sarva Vishwavidyalaya

Prof. B. R. Pandya

Head of Department, M.Sc. IT, GandhinagarKadi Sarva Vishwavidyalaya

Page 3: Online Movie Ticket Booking

ACKNOWLEDGMENT

I am grateful to my Mr.Yagnesh Vyas for providing me valuable guidance for project

work and other domain related information.

I would like to express my endless thanks to external source of referral, for giving

invaluable advice, direction, support and transferring knowledge throughout the project work.

Also my hearty gratitude to Head of Department, Prof. B. R. Pandya for giving me an

opportunity for learning through the process of project work by which I can improve my

technical skills along with practical exposure and its applicability in the industry.

Name of Student: Enrollment No.:

Astha Patel 1416it22025

Hetal Zala 1416it22085

Zarana Patel 1416it22251

Page 4: Online Movie Ticket Booking

Index

No Description Page No

1 Scope 1

2 Objective 2

3 System Architecture

- Tools & Technology 4

4 System Design

- Entity Relationship Diagram 7

- Data Dictionary 9

5 Coding 19

6 Testing 24

7 Screen Layouts 27

8 Formatted Reports 56

Page 5: Online Movie Ticket Booking

scope

The proposed system is online ticket booking.

User can book ticket easily.

Current system allows the user to create account and book ticket.

Administrator can manage movie,screen,show etc.

User can manage his own profile.

This system provide facility like watch trailer,movie information,etc.

Page 6: Online Movie Ticket Booking

Requirement

User

• Registration-: First name,Last Name,city,Address,Gender,E-mail,Phone,Username,pas-word.

• Login-:Username,password.

• Watch Trailers.

• Book Ticket.

• Manage Account.

Admin

• Add movie-: movie_name,movie_type,movie_status,movie_director

movie_image,movie_cast,movie_trailer,movie_music,moviedate,movie_end_date

Page 7: Online Movie Ticket Booking

• Add screen-:screen_name.

• Add show:-show_time,movie_id,screen_id

• Update movie, update show, update seat price,, delete movie, delete show

In present there are three screen and each screen has three category like gold,silver, platinum..

Category seat schedule

Platinum—20 seats

Gold—65 seats

Silver—24 seats

Tools And Technology

Code Building Language :-

Microsoft Visual Studio 2010

Scripting Language :-

ASP.NET(C#)

CSS(Cascading Style Sheet)

HTML(Hyper Text Markup Language )

JAVA Script

Application Browser :-

Mozilla Firefox 17.0.1 or above

Multimedia Tools:-

Page 8: Online Movie Ticket Booking

Adobe Photoshop CS5

Data Base:-

Microsoft Sqlserver-2008

Scripting Tool :

AJAX

Platform :-

Microsoft Windows 7

Hardware Requirement

Server Side :-

60 GB of available hard-disk space 2 GB of RAM 2.5 GHz processor

Clint Side :-

256 MB of RAM Intel Pentium 4 processor HDD 50 GB

Software Requirement

Page 9: Online Movie Ticket Booking

Server Side :-

Operating System : Microsoft Windows 7 Front End : MS Visual Studio 2010 Back End : SQL Server 2008 Programming Language : Asp.Net with C# Web browser : Internet Explorer, Mozilla Firefox 17.0.1

Clint Side :-

web browser :Mozila Firefox 17.0 or above Internet Explorer 9 or above Microsoft Windows XP/7 OS

Page 10: Online Movie Ticket Booking

Er Diagram

Page 11: Online Movie Ticket Booking

Data Dictionary

1) Registration Table:-

Description:-

Sr. No Field Name Data Type Size Constraint

1 User_id Int 5 Primary Key

2 F_name Varchar 30 Not null

3 L_name Varchar 30 Not null

4 City Varchar 30 Not null

5 Address Varchar 30 Not null

6 Gender Varchar 10 Not null

7 Email Varchar 50 Not null

8 Mobile no Int 10 Not null

9 Username Varchar 30 Not null

10 Password Varchar 20 Not null

Page 12: Online Movie Ticket Booking

2) Admin Table

Description:-

Sr.No Field Name Data Type Size Constraint

1 admin_id Int 5 Primary Key

2 Admin_username Varchar 50 Not null

3 Admin_password varchar 50 Not null

Page 13: Online Movie Ticket Booking

3) Booking_master Table

Description:-

Sr. no Field Name Data Type Size Constraint

1 Booking_id Int 5 Primary Key

2 User_id int 5 F.k

3 Show_id int 5 F.K.

4 Booking_date Varchar 10 Not null

5 Booking_showdate

Varchar 10 Not null

Page 14: Online Movie Ticket Booking

4) Booking_detail TableDescription:-

Sr.no Field Name Data Type Size

Constraint

1 booking Int 5 Primary Key

2 Booking_id int 5 F. k.

3 Booking_seat

varchar

30 F.K.

Page 15: Online Movie Ticket Booking

5) Screen TableDescription:-

Sr.no Field Name Data Type

Size Constraint

1 Screen_id Int 2 Primary Key

2 Screen_name

varchar 30 Not null

Page 16: Online Movie Ticket Booking

6) Seat TableDescription:-

Sr.no Field Name

Data Type

Size Constraint

1 seat_id Int 3 Primary Key

2 Seat_name

Varchar 30 Not null

3 St_id int 3 F.K.

Page 17: Online Movie Ticket Booking

7) Movie TableDescription:-

Sr.no Field Name Data Type

Size

Constraint

1 Movie_id Int 5 Primary Key

2 Movie_name Varchar

30 Not null

3 Movie_image Varchar

30 Not null

4 Movie_trailer Varchar

30 Not null

5 Movie_director Varchar

30 Not null

6 Movie_cast Varchar

70 Not null

7 Movie_music Varchar

50 Not null

8 Movie_type varchar 30 Not null

9 Movie_status Varcha 30 Not null

Page 18: Online Movie Ticket Booking

r

10 Movie_date varchar 10 Not null

11 Movie_end_date

Varchar

10 Not null

8) Seat_type TableDescription:-

Sr.no Field Name

Data Type

Size Constraint

1 st_id Int 5 Primary Key

2 type Varchar 30 Not null

3 price int 5 Not null

Page 19: Online Movie Ticket Booking

9) Show TableDescription:-

Sr.no Field Name Data Type

Size

Constraint

1 show_id Int 5 Primary Key

2 Show_time Varchar

30 Not null

3 Movie_id Int 30 F. k.

4 Screen_id Int 30 F. k.

5 Show_end_time

Varchar

30 Not null

Page 20: Online Movie Ticket Booking

10) Cancel_charge TableDescription:-

Sr.no Field Name

Data Type

Size Constraint

1 Charge_id

Int 5 Primary Key

2 time varchar 20 Not null

3 charge int 3 Not null

Page 21: Online Movie Ticket Booking

11) Cancelation TableDescription:-

Sr.no Field Name

Data Type

Size

Constraint

1 cancel_id Int 5 Primary Key

2 Booking_id Int 5 f.k

3 id int 5 f.k

4 Show_id int 5 f.k.

5 date Varchar

10 Not null

Page 22: Online Movie Ticket Booking

6 Booking_showdate

Varchar

10 Not null

7 Charge Int 10 Notnull

12) Cancel_Detail TableDescription:-

Sr.no Field Name

Data Type

Size Constraint

1 booking Int 5 Primary Key

2 Booking_id

int 5 F. k.

3 Seat_id int 3 f.k.

Page 23: Online Movie Ticket Booking

CODING

Login:-

public partial class admin_login : System.Web.UI.Page{ SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["mycinema"].ConnectionString); protected void Page_Load(object sender, EventArgs e) {

} protected void Submit_Click(object sender, EventArgs e) { con.Open();

SqlCommand cmd1 = con.CreateCommand(); cmd1.CommandType = CommandType.Text;

Page 24: Online Movie Ticket Booking

cmd1.CommandText = "select * from admin where admin_username='" + txtunm.Text + "' and admin_password='" + txtpwd.Text + "'"; cmd1.ExecuteNonQuery(); DataTable dt = new DataTable(); SqlDataAdapter da1 = new SqlDataAdapter(cmd1); da1.Fill(dt); foreach (DataRow dr in dt.Rows) { Session["admin"] = dr["admin_id"]; con.Close(); Response.Redirect("Default.aspx"); } Label1.ForeColor = Color.Red; Label1.Text = "Username or Password is Invalid"; }}

Registration:-

public partial class _Default : System.Web.UI.Page{ SqlConnection con=new SqlConnection(ConfigurationManager.ConnectionStrings["mycinema"].ConnectionString); protected void Page_Load(object sender, EventArgs e) {

} protected void Submit_Click(object sender, EventArgs e) { try {

con.Open(); SqlDataAdapter da = new SqlDataAdapter("select * from registration where username='" + txtunm.Text + "'", con); DataSet ds = new DataSet(); da.Fill(ds);

Page 25: Online Movie Ticket Booking

if (ds.Tables[0].Rows.Count > 0) { con.Close(); Label1.ForeColor = Color.Red; Label1.Text = "Sorry,Username is Not Valid!";

} else { SqlCommand cmd = con.CreateCommand(); cmd.CommandType = CommandType.Text; cmd.CommandText = "insert into registration values('" + txtfnm.Text + "','" + txtlnm.Text + "','" + txtct.Text + "','" + txtadd.Text + "','" + RadioButtonList1.SelectedValue.ToString() + "','" + txtmn.Text + "','" + txtem.Text + "','" + txtunm.Text + "','" + txtpwd.Text + "')";

cmd.ExecuteNonQuery(); SqlCommand cmd1 = con.CreateCommand(); cmd1.CommandType = CommandType.Text; cmd1.CommandText = "select id,firstname from registration where username='" + txtunm.Text + "' and password='" + txtpwd.Text + "'"; cmd1.ExecuteNonQuery(); DataTable dt = new DataTable();SqlDataAdapter da1 = new SqlDataAdapter(cmd1); da1.Fill(dt); foreach (DataRow dr in dt.Rows) { Session["userid"] = dr["id"]; Session["user"] = dr["firstname"]; con.Close(); Response.Redirect("index.aspx"); }

} } catch { con.Close(); Label1.ForeColor = Color.Red; Label1.Text = "Sorry, Registration Fail!"; } }}

Page 26: Online Movie Ticket Booking

Testing

Test Case: Registration

1. User Name1.1. User Name Must be Unique

2. E-Mail2.1. E-mail Must be in proper format like([email protected])

Project : Online Theater Ticket Booking

Author: Group No. - 27 Date :

Reviewer : Date :

Module : registration Stage :

TC id

Requirement

Pre-conditi

Test case Descr

Steps Test Data

Expected Resu

Actual

Smoke (Ye

Regression

Passed

Commen

Page 27: Online Movie Ticket Booking

s/

Scenario/

Use case ID

on iption ltResult

s/No)

(Yes / No)

/ Failed

ts

TC_1

1.1 User’s username is required

This test case for use for the user’s

registration

form.

1) Enter username in “txt_username ” page.

2) Check validation of username

1) Username

=”hardik123”

IF username is registered then MSG (“Username already registered”)

Else success

Yes Passed

Nil

2) Username

=”hardik123”

IF username is registered then MSG (“Username already registered”)

Else success

YES Fail

Nil

Page 28: Online Movie Ticket Booking

TC_2

2.1 User’s email is required

Checking of E-Mail format for Registration.

1)Enter E-mail in “txtemail”’ box

2)check validation of “txtemail”’

1) “txtemail”’ = abc@example

MSG (“Invalid Email ”)

Yes Fail

Nil

2) “txtemail”’ = [email protected]

MSG (“Valid Email”)

Yes Pass

Nil

Test Case: Booking Show

1. Select Show Time And Date1.1. Select Show time and date of movie (If Selected Date is

Today then Show time Must be Greater than One hour to cur-rent time)

Project : Online Theater Ticket Booking

Author: Group No. - 16

Date :

Reviewer : Date :

Module : Select Show/Date

Stage :

TC id

Requirements

/

Scenario/

Pre-conditio

n

Test case Description

Steps

Test Data

Expecte

d Result

Actual Result

Smoke (Yes/No)

Regressio

n (Yes / No)

Passed / Failed

Comment

s

Page 29: Online Movie Ticket Booking

Use case ID

TC_1

1.1 Show time and date is required.

This test case use for the select perticuler show

select show

“show”

select show

“date”

1)Show=09:30 AM

Date=Today

(current time=10:00 AM)

MSG (“You Can not book this show.”)

Yes Fail Nil

2)

Show=11:30 AM

Date=Today

(current time=10:00 AM)

MSG (“”)

Yes Pass

Nil

3)

Show=10:00 AM

Date=Tommorow

(current time=11:00 AM)

MSG (“”)

Yes Pass

Nil

Page 30: Online Movie Ticket Booking

Screen Layouts

Admin Login:-

Page 31: Online Movie Ticket Booking

Admin Home:-

Page 32: Online Movie Ticket Booking
Page 33: Online Movie Ticket Booking

Add Movie:-

Add Show:-

Page 34: Online Movie Ticket Booking

Movie Detail:-

Page 35: Online Movie Ticket Booking
Page 36: Online Movie Ticket Booking

Show Detail:-

Booking Detail:-

Page 37: Online Movie Ticket Booking

Price:-

Page 38: Online Movie Ticket Booking

Users:-

Page 39: Online Movie Ticket Booking

User Registration:-

Page 40: Online Movie Ticket Booking

User Login:-

Page 41: Online Movie Ticket Booking

Schedual:-

Page 42: Online Movie Ticket Booking
Page 43: Online Movie Ticket Booking
Page 44: Online Movie Ticket Booking

Movie Tailer:-