0% found this document useful (0 votes)
62 views49 pages

NewFinalTicket Booking

The document describes a movie ticket booking system project. It includes an introduction, objectives, scope, background study, system analysis, design, implementation, testing and conclusion. The project aims to develop a web application to help cinema operators and users book movie tickets online in a flexible way.

Uploaded by

saugat stha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views49 pages

NewFinalTicket Booking

The document describes a movie ticket booking system project. It includes an introduction, objectives, scope, background study, system analysis, design, implementation, testing and conclusion. The project aims to develop a web application to help cinema operators and users book movie tickets online in a flexible way.

Uploaded by

saugat stha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 49

Tribhuvan University

Faculty of Humanities and Social Science

MOVIE TICKET BOOKING SYSTEM

A PROJECT REPORT

Submitted to
Department of Computer Application
Itahari Namuna College

In partial fulfillment of the requirements for the Bachelor in Computer Application

Submitted by

Name: Pritam Shah


Name: Bikash Giri
Roll No: 115202006, 1152020
December 2023

Under the Supervision of


Saroj Ojha

ii
Tribhuvan University
Faculty Of Humanities And Social Sciences
Itahari Namuna College

SUPERVISOR’S RECOMMENDATION

I hereby recommend that this project prepared under my supervision by Pritam Shah and
Bikash Giri entitled “MOVIE TICKET BOOKING” in partial fulfillment of the
requirements for the degree of Bachelor’s in Computer Application is recommended for
the final evaluation.

Saroj Ojha
Project Supervisor
Itahari Namuna College
Itahari-8, Sunsari

ii
Tribhuvan University
Faculty Of Humanities And Social Sciences
Itahari Namuna College

LETTER OF APPROVAL

This is to certify that this project prepared by Pritam Shah and Bikash Giri entitled
“MOVIE TICKET BOOKING SYSTEM” in partial fulfillment of the requirements for
the degree of Bachelor’s in Computer Application has been evaluated. In our opinion, it is
satisfactory in the scope and quality of a project for the required degree.

Nabin Shrestha
Saroj Ojha
HOD/Coordinator
Supervisor
Itahari Namuna College
Itahari Namuna College

ii
Internal Examiner External Examiner

Itahari Namuna College (INC) Tribhuvan University (TU)

ACKNOWLEDGMENT

The success and outcomes of this project require a lot of guidance and assistance from
many people and are very fortunate to have this all along the completion of this project.
We would like to express our gratitude and appreciation to all those who gave us the
possibility to complete this project. We are very glad to express our deepest sense of
gratitude and sincere thanks to our supervisor Saroj Ojha and project teacher Mr. Saman
kc whose contribution in simulating suggestions and encouragement helped us in
completing our project.

We are also thankful to Mr. Nabin Shrestha, HOD, Itahari Namuna College, and Mr.
Dharma Neupane, Principal, Itahari Namuna College for encouraging and guiding us
throughout the completion of this project. All useful suggestions for this whole work and
cooperative behavior are sincerely acknowledged.

Last but not least, many thanks go to our teachers, friends, and guardians who directly or
indirectly helped us in achieving the goal. We would like to thank all the guidance and
support that helped in the completion of this project. Special thanks to their suggestions
and advice.

ii
ABSTRACT

This is a project report for the project entitled "Movie Ticket Booking System". This is a
web application developed aimed to help cinema hall operators and users use this
application and make it flexible for customers to book tickets online.

"CineXpress" represents a groundbreaking solution that redefines the movie ticket


booking experience while providing businesses with a robust and scalable platform. It
provides an immersive cinematic experience brought to life in the digital realm. With
CineXpress, we aim to set new standards in the world of online movie ticket booking,
making it easier, more enjoyable, and more convenient for movie enthusiasts worldwide.

It helps to book the tickets online rather than using the traditional manual system of
reserving movie tickets. This eliminates the risk of erroneous booking reduces overall
lead time and ensures growth in customer satisfaction.

Keywords: Tickets, Book Seats, Shows, Entertainment, Movies, Cinema

ii
TABLE OF CONTENTS

SUPERVISOR’S RECOMMENDATION.....................................................................I
LETTER OF APPROVAL............................................................................................II
ACKNOWLEDGEMENT...........................................................................................III
ABSTRACT.................................................................................................................IV
LIST OF FIGURE.........................................................................................................V
LIST OF TABLES.......................................................................................................VI
LIST OF ABBREVIATIONS......................................................................................vii
CHAPTER 1: INTRODUCTION..................................................................................1
1.1 Introduction..........................................................................................................1
1.2 Problem Statement................................................................................................1
1.3 Objectives.............................................................................................................2
1.4 Scope and Limitations..........................................................................................2
1.4.1 Limitation.......................................................................................................3
1.5 Assignment of Roles and Responsibilities...........................................................3
CHAPTER 2: BACKGROUND STUDY AND LITERATURE REVIEW..................4
2.1 Background Study................................................................................................4
2.2 Literature Review.................................................................................................5
CHAPTER 3: SYSTEM ANALYSIS AND DESIGN...................................................6
3.1 System Analysis...................................................................................................6
3.1.2 Feasibility Analysis........................................................................................9
3.1.4 Process Modelling (DFD)............................................................................11
3.2 System Design................................................................................................14
3.2.1 Architectural Design....................................................................................14
3.2.2 Database Schema Design.............................................................................15
3.2.3 Interface Design...........................................................................................16
CHAPTER 4: IMPLEMENTATION AND TESTING...............................................21
4.1 Implementation...................................................................................................21
4.1.1 Tools Used...................................................................................................21
4.1.2 Implementation Details of Modules............................................................22
4.2 Testing................................................................................................................23

ii
4.2.1 Test Cases for System Testing.....................................................................24
CHAPTER 5: CONCLUSION AND FUTURE RECOMMENDATIONS.................26
5.1 Lesson Learnt / Outcome....................................................................................26
5.2 Conclusion..........................................................................................................26
5.3 Future Recommendations...................................................................................26
Appendices...................................................................................................................27
Appendix 1: Screenshots..........................................................................................28
Appendix 2: Source Codes.......................................................................................29
Appendix 3: Database Table Screenshots................................................................35
References....................................................................................................................37

ii
LIST OF FIGURE
Figure 3.1: Waterfall Model 6
Figure 3.1.1: Use Case Diagram 8
Figure 3.1.2: Gantt Chart 10
Figure 3.1.3: ER Diagram 10
Figure 3.1.4: Context Diagram 11
Figure 3.1.5: Level 1 DFD 12
Figure 3.1.6: Admin Level 2 DFD 13
Figure : Architectural Diagram 14
Figure 10: Database Schema 15
Figure 11.1: User Home Page Design 16
Figure 12.1: Login Sequence Diagram 18
Figure 13: Activity Diagram 20

ii
LIST OF TABLES

Test Case Table


Test Cases Table 1 …….………………………………………………………....….23
Test Cases Table 2 ……....…………………………………………………….….…25
Database Table
Table 1: Movie ……………………….……………………………………………..34
Table 2: User …….…………………………………………………………….…....35
Table 3: Booking …….…………………………………………………………...…35
Table 4: Ticket……...………………………………………………………..…..…..35
Table 5: Contact from user …….……………………………………………..….…..36

ii
List of Abbreviations

CSS: Cascading Style Sheets

DFD: Data Flow Diagram

ER: Entity Relationship

HTML: HyperText Markup Language

IDE: Integrated Development Environment

JS: JavaScript

PHP: Hypertext Preprocessor

TC Id: Test Case Id

TBS: Ticket Booking System

UI: User Interface

ii
CHAPTER 1: INTRODUCTION
1.1 Introduction
An online movie ticket booking system is a web-based platform that allows users to
browse and book movie tickets remotely. It is a convenient and efficient way to
purchase tickets, as it eliminates the need to queue at the cinema box office.

Cinexpress typically offers a variety of features: A list of all upcoming and currently
showing movies, with showtimes. The ability to save booking history and manage
tickets. It’s beneficial for both users and cinemas. For cinemas, they help to reduce
queues, increase ticket sales, and collect valuable data about customer preferences. It
is a popular and convenient way to purchase movie tickets. They offer a variety of
features that benefit both users and cinemas

1.2 Problem Statement


● Traditional movie ticket booking involves long queues at cinema counters or
navigating complex online booking systems, leading to frustration and
inconvenience for users.
● Movie enthusiasts often struggle to find comprehensive information about films,
including trailers, reviews, and cast details, making it challenging to make
informed decisions.
● Existing platforms cannot provide personalized recommendations and user
profiles, missing the opportunity to enhance the movie-going experience.

1.3 Objectives
In response to these challenges, CineXpress has set forth the following objectives:

● To provide users with rich and detailed movie information, including trailers, reviews,

and cast details, aiding them in making informed choices.

● To keep users engaged and informed with real-time notifications about bookings,

cancellations, and upcoming movie releases.

● Empower theater administrators with a powerful dashboard to manage bookings, user

accounts, and movie listings effectively, optimizing operational workflows

1
1.4 Scope and Limitations
1.4.1 Scope
The web application will overcome the manual approach of booking movie
tickets:

Admin:

● Add Movies

● Manage Movies

● Update Movies

● Remove Movies

● Review Booking

● Approve booking

● Manage Page Content

Users:

● Register

● Login

● View Profile

● Update Profile

● Make booking

● View own booking

2
● View released movie

Our proposed system has the following advantages:

● User-friendly interface.

● Fast access to the database.

● Quick response

1.4.2 Limitation

● Members have to connect on cancellation.

● Online payment is not available.

● It requires the internet to use it.

1.5 Report Organization


The report consists of five chapters in which all the phases of application design and
development will be covered.
Chapter 1: Introduces the system and the problems, and gives an overview of the
study.
Chapter 2: Background study and the literature review of the project.
Chapter 3: System analysis and design phase of the application. It explains the
methodology used while developing the system.
Chapter 4: Implementation and testing phase of the application development.
Chapter 5: Conclusion, recommendations, and future works to improve this project.

3
1.6 Assignment of Roles and Responsibilities
Brief profiles of each team member and their general duties follow below. Many of the
responsibilities will be shared among team members to ensure the overall success of the
project.

- Pritam Shah will be involved in interactions with the users for requirement
determinations. He will help in the physical design of pages and contents. He will
also help in coding and testing of the system. He will collect the facts and figures
required for improvement of the system.

- Bikash Giri will mostly be involved in writing codes for the program. He will
analyze the requirements, facts, and figures collected by his team members and
implement them in the system. He will design the required prototypes of the
systems. He will implement the database into a program using programming
languages. He plays the main role in designing a user interface.

Both members may work on the same files/tasks at the same time.

CHAPTER 2: BACKGROUND STUDY AND LITERATURE REVIEW

2.1 Background Study


Cinexpress is an innovative online movie ticket booking web application designed
to streamline and enhance the movie-going experience for users. This project aims
to provide a convenient and user-friendly platform for booking movie tickets,
enabling users to browse movie listings, select showtimes, choose seats, and make
secure payments from the comfort of their homes or on the go. This document
presents a comprehensive background study and literature review, shedding light
on the industry trends, challenges, and best practices that have informed the
development of Cinexpress.

4
2.2 Literature Review
A critical component of Cinexpress is its online ticket booking system. Extensive
research has been conducted on the efficacy of such systems in enhancing the customer
experience and increasing box office revenue. Literature reveals that user-friendly
interfaces, secure payment gateways, real-time seat availability updates, and
personalized recommendations contribute to the success of these systems. By
incorporating these findings into Cinexpress, the platform aims to provide an efficient
and engaging booking process for users.

Friends Cinema Movie Ticket Booking Services


FriendsCinema is the best ticket booking platform in Dharan, Nepal offering an excellent
cinematic experience for movie lovers everywhere. . They offer a diverse range of movies that cater
to all tastes and preferences.

The team is passionate about friendly and knowledgeable staff and is always on hand to help
you find the perfect film or answer any query.

Features

● Discounts and Promotions: Keep an eye out for our special offers, discounts,

and loyalty programs. We believe in providing you with affordable


entertainment options.

● Concession Stands: Enhance your movie experience with our delectable snacks

and beverages available at our concession stands. From popcorn and nachos to
your favorite soft drinks, we've got the treats you crave.

● Easy Ticket Retrieval: No need to stand in long queues at the cinema. Simply

show your e-ticket on your mobile device or print it at home for a quick and
hassle-free entry.
5
● Accessibility: Friends Cinema is committed to ensuring that everyone can enjoy

movies. We provide accessible seating options and facilities for those with
special needs.

● Customer Support: Our dedicated customer support team is available to assist

you with any questions or concerns regarding your booking.

6
CHAPTER 3: SYSTEM ANALYSIS AND DESIGN
3.1 System Analysis
System Analysis is a detailed study of the various operations performed by a system and
their relationships within and outside of the system. Here the key question is- why do all
problems exist in the present system? What must be done to solve the problem? The
analysis begins when a user or manager begins a study of the program using an existing
system. Data is collected on the various files, decision points, and transactions handled by
the present system during analysis. The commonly used tools in the system are Data Flow
Diagram etc. Training, experience, and common sense are required for the collection of
relevant information needed to develop the system. The success of the system depends
largely on how clearly the problem is defined, thoroughly investigated, and properly
carried out through the choice of solution. A good analysis model should provide not only
the mechanisms of problem understanding but also the solution’s framework.

Figure SEQ Figure \* ARABIC 1: Waterfall Model


Figure 3.1: Waterfall Model

7
3.1.1 Requirement Analysis
For any system, there are functional and non-functional requirements to be considered
while determining the requirements of the system. Functional requirements are product
features or functions that developers must implement to enable users to accomplish their
tasks. In addition, Non-functional Requirements (NFRs) define system attributes such as
security, reliability, performance, maintainability, scalability, and usability.

I. Functional Requirements
Only authentic users must have access to the system.
Admin/System User:
The Admin must be authenticated before accessing the system to be able to:

● Add/Update/Delete Movies

● Add/Edit/Delete Categories

● Add/Update/Delete Page Contents

● Check Booking details

● View user Details

Admin will also be able to handle overall system.

Users/Customers:
Members must be authenticated before accessing the system The Members will able to:

● View Booking details

● View their Profile

● Update their Password

● View Available Movies.

8
The use case diagram, which presents the system requirements is used to show how the
proposed system works in practice. The interaction between actor and use cases is also
described using a use case diagram.

figure 3.1.1: Use Case Diagram

II. Non-Functional Requirements

● Security: User have to register their account for booking. Users can log in with

their email and password.

● Usability: The system will be user-friendly. The UI should be simple enough for

everyone to.

9
● Accuracy: The data stored about the movies, and booking transactions should be

correct, consistent, and reliable.

● Maintainability: The software should be easily maintainable and adding new

movies and making changes to the software must be as simple as possible.

● Portability: The software should function properly on multiple environments

10
3.1.2 Feasibility Analysis
A feasibility study is a detailed analysis that considers all of the critical aspects of a
proposed project to determine the likelihood of it succeeding. A feasibility analysis is
used to determine the viability of an idea, such as ensuring a project is legally and
technically feasible as well as economically justifiable. It tells us whether a project is
worth the investment—in some cases, a project may not be doable

Feasibility studies undergo four major analyses to predict the system's success and they
are as follows:

● Technical Feasibility

● Operational Feasibility

● Economic Feasibility

● Schedule Feasibility

I. Technical Feasibility
The system in the facts that it has been developed on windows XP platform and a high
configuration of 1GB RAM on Intel Pentium dual-core processors. So, this system is
technically feasible. This study is carried out to check the technical requirements of the
system. We can strongly say that it is technically feasible since there will not be much
difficulty in getting the required resources for the development and maintenance of the
system as well. All the resources needed for the development of the software are easily
collected.

II. The operational Feasibility


System is easy to operate with the basic knowledge of computation and the internet. A
well-trained workforce is not necessary. Users can easily access the system, as it is user-
friendly in many aspects with good UI.

III. Economic Feasibility


Development of this application is highly economically feasible. The organization need
not have to spend too much money on the development of the system. The only thing to

11
be done is to make an environment for the development of the system in a comfortable
environment.

IV. Schedule Feasibility


Schedule feasibility is defined as the probability of a project to be completed within its
scheduled time limits, by a planned due date. If a project has a high probability of being
completed on time, then its schedule feasibility is appraised as high.

Figure SEQ Figure \* ARABIC 4: Gantt Chart


figure 3.1.2: Ghant Chart

Data Modelling (ER Diagram)


This ER (Entity Relationship) diagram represents the model of this project (Movie
Booking System).

12

Figure SEQ Figure \* ARABIC 5: ER Diagram


figure 3.1.3: ER Diagram

3.1.4 Process Modelling (DFD)


Process modeling involves graphically representing the processes, or actions, that
capture, manipulate, store, and distribute data between a system and its
environment and among components within a system. A common form of a process
model is a data-flow diagram (DFD). A data-flow diagram is a graphic that
illustrates the movement of data between external entities and the processes and
data stores within a system.

13
figure 3.1.4; Context level 0 Data Flow Diagram (DFD)

figure 3.1.5: level 1 data flow diagram

14
figure 3.1.5: level 3 data flow diagram

15
3.2 System Design
It refers to the process of defining the elements of a system such as the architecture,
modules, and components, the different interfaces of the components, and the data that
goes through the system. System design gives the knowledge of the requirements and
analysis to design the software product. In this chapter, We will deal with the module,
database design, user interface design, and program design. For the designing of the
application, various diagrams like sequence diagrams, activity diagrams, etc. have been
used.

3.2.1 Architectural Design


An architectural diagram is a visual representation that maps out the physical
implementation of components of a software system.

Figure SEQ Figure \* ARABIC 9:

figure 3.2.1: Architectural Design

16
3.2.2 Database Schema Design
The design of a database is called a schema. This tells us about the structural view of the
database. A database schema represents the logical configuration of all or part of a
relational database. A database schema indicates how the entities that make up the
database relate to one another, including tables, views, stored procedures, and more.
Typically, a database designer creates a database schema to help programmers whose
software will interact with the database.

figure 3.2.2: Database Schema Design

3.2.3 Interface Design


Interface design is an important part of software development. The user interface is the
front-end application view to which the user interacts to use the software. Users can
manipulate and control the software as well as hardware through a user interface. UI
should be as simple as possible.

17
figure 3.2.5: Home Page interface

figure 3.2.6: Administration Panel

18
figure 3.2.7: User Authentication Page

figure 3.2.8: Change Password

19
1

Figure SEQ Figure \* ARABIC 12.1: Login Sequence Diagram

figure 3.2.9: Sequence Diagram

20
figure 3.2.10: Sequence Diagram

II. Activity Diagram


Activity diagrams are graphical representations of workflows of stepwise activities
and actions with support for choice, iteration, and concurrency. An activity diagram
is a flowchart to represent the flow from one activity to another activity. The
activity can be described as an operation of the system.

21
figure 3.2.11: Activity Diagram

22
CHAPTER 4: IMPLEMENTATION AND TESTING
4.1 Implementation
4.1.1 Tools Used
The various system tools that have been used in developing both the front-end and the
back-end of the project are discussed in this chapter.

I. Frontend
HTML, CSS, and JavaScript are used to implement the front end.

● HTML: The HyperText Markup Language or HTML is the standard markup

language for documents designed to be displayed in a web browser.

● CSS: CSS (Cascading Style Sheets) is the language we use to style an HTML

document. CSS describes how HTML elements should be displayed.

● JavaScript: JavaScript (JS) is a lightweight object-oriented programming language

that is used by several websites for scripting webpages. It is an interpreted, full-


fledged programming language that enables dynamic interactivity on websites when
applied to an HTML document.

II. Backend and Database


The back end is implemented using PHP and MySQL database is used.

● PHP: PHP (Hypertext Preprocessor) is a server scripting language and a powerful

tool for making dynamic and interactive Web pages. It is an open-source,


interpreted, and object-oriented scripting language that can be executed on the
server side.

● MySQL: MySQL is the most popular Open-Source Relational SQL database

management system. MySQL is one of the best RDBMS being used for developing
web-based software applications.

Also, we used other various software like Microsoft Word to create documentation,
Google Meet for communication, XAMPP to implement this project on a local server,
and Visual Studio Code as an IDE. We used the https://app.diagrams.net/ website to
create different diagrams.

23
4.1.2 Implementation Details of Modules
For developing a website, we are going to use HTML, CSS, PHP, and JavaScript.

To create web pages, HTML language helps to build login forms, tables, image
processing, and perform other various operations that run in the browser. A web browser
can read HTML files and compose them into visible or audible web pages. The browser
does not display the HTML tags but uses them to interpret the content of the page. HTML
describes the structure of a website semantically along with cues for presentation, making
it a markup language rather than a programming language.

For Styling the HTML pages, BootStrap 4 and CSS will assist us. CSS is a Cascading
Style Sheet that is used for making our website more presentable with the help of
different selectors. JavaScript is used in the system to modify HTML documents and
validate forms.

For the backend, we will be using PHP. In this system, PHP is used for server-side web
development. Similarly, PHP is used to run SQL queries to store, retrieve, and manipulate
the information contained in a database. As a database, we will be using MySQL which
stores the data and information of members and books. Also, it stores records of
transactions in the library.

4.2 Testing
Software Testing is the process of testing the functionality and correctness of software.
Software testing is an empirical technical investigation conducted to provide stakeholders
with information about the quality of the product to the context in which it is intended to
operate. This includes but is not limited to, the process of executing a program or
application with the intent of finding errors.

● Whitebox Testing

White-box testing is a detailed investigation of the internal logic and structure of the
code. White-box testing is also called glass testing or open-box testing. To perform
white-box testing on an application, a tester needs to know the internal workings of
the code.

24
● Blackbox Testing

The technique of testing without having any knowledge of the interior workings of
the application is called black-box testing. The tester is oblivious to the system
architecture and does not have access to the source code. Typically, while
performing a black-box test, a tester will interact with the system’s user interface by
providing inputs and examining outputs without knowing how and where the inputs
work.

● Test Cases for Unit Testing

It is a software development process in which the smallest testable parts of an


application, called units, are individually and independently scrutinized for proper
operation. This testing methodology is done during the development process by the
software developers and sometimes QA staff. The main objective of unit testing is to
isolate written code to test and determine if it works as intended.
Unit testing is an important step in the development process because if done
correctly, it can help detect early flaws in code which may be more difficult to find in
later testing stages.

Test Cases Table 1:

TC Test Case Test Data Description Expected Actual Remarks


ID Result Result

1 Testing Username: While entering Successfully As Pass


Admin admin correct logged in and expected,
Login Password: redirect to result from
credentials
admin admin

home page

25
2 Testing Username: While entering Show message As Pass
Admin pritam incorrect Login Failed: expected,
Login Password: credentials Email or result in
pritam Password do not
match.

3 Testing Email: While entering Successfully As Pass


User Login pritam@gmail. the correct logged in and expected,
com Password: credentials was redirected results
pritam to the homepage

4 Testing Email: While entering Show message As Pass


pritam@gmail incorrect Login Failed: expected,
User Login
.com credentials Email or result

Password: Password do not

pritam match.

5 On Click Logout Clicking Disable the user As Pass


clicking button Logout button profile and the expected
logout user is not result
button by allowed to book
user tickets

6 On Click Logout Clicking Redirect to the As Pass


clicking button logout button Login page of
expected,
admin
logout result
button by
admin

7 Adding required movie Entering Update As Pass


new name and other Successfully
Required expected,
movies via information
information result
admin

8 Adding required Entering show messages, As Pass


different category name desired categories expected,
categories
26
via admin category name updated result

9 Adding All required Entering all Show message As Pass


new genre genre data required Genre added expected
via admin details successfully. result

4.2.1 Test Cases for System Testing


System Testing includes testing of a fully integrated software system. System testing is
testing conducted on a complete integrated system to evaluate the system's compliance
with its specified requirements. All of the modules/components are linked together to see
whether the system performs as planned. This is crucial for producing high-quality
output.

Test Cases Table 2:

TC Test Test Data Description Expected Actual Remarks


ID Case Result Result
1 Changing Old Filling change Show As Pass
Password password: password message: expected,
pintu form. Password result
New changed
password: successfully
pritam

2 For Choose the Choosing the Show As Pass


Booking number of required message: expected,
ticket via seats detail result
Booking
user
successfully

4 For insert required Clicking edit Show message As Pass


editing data Button expected,
booked if
ticket according to result
available
27
booked need/use
via user

5 For Click cancel Clicking Show message As Pass


Cancelling button Cancel Button expected,
in the status
ticket result
field:
Booked
Cancelled

28
CHAPTER 5: CONCLUSION AND FUTURE RECOMMENDATIONS

5.1 Lesson Outcome


There have been several improvements in our programming language and writing skills as
well as our time management skills while doing this project. It was difficult at the
beginning because it was our first project and everything was new. Although it is our first
project it turned out to match all the expectations. A lot was learned about proper time
management as the project had to be submitted before the deadline along with the
documentation. Although it is expectedly good, some new features to this system could
be added in the upcoming days to make it more user friendly and efficient.

5.2 Conclusion
We, the project team will design and implement a system capable of allowing users to
view movies online and can be able to book tickets online through “Cinexpress’. It will
save a lot of time for customers as they can be able to book their desired movie.

5.3 Future Recommendations


The Success of this Application depends on the number of audiences who are willing to
use this system. Future developments will be done according to the feedback and reviews
obtained from the users of the system. We intend to develop this software further and
enhance it to make it more productive. Possible future enhancements of this Ticket
Booking System would be:

● Implement Online payment System

● Improvements on UI and other features

● Implement notification features

29
APPENDICES

Appendix 1: Screenshots

figure: Movie Detail with available showtime

figure: Movie Listing

30
figure: add movies

figure: adding categories

31
Appendix 2: Source Codes
Login page source code:

<?php
session_start();
include 'header.php';
?>
<div id="loginForm" class="d-flex text-center mt-1">
<form class="form-signin" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<img class="mb-3" src="./img/websitelogo.png" alt="Loading Logo" width="172" height="122">
<h1 class="h3 mb-3 font-weight-normal">Please sign in</h1>
<label for="email" class="sr-only">Email address</label>
<input type="email" name="email" id="email" class="form-control" placeholder="Email address" required
autofocus="">
<label for="password" class="sr-only">Password</label>
<input type="password" name="password" id="password" class="form-control" placeholder="Password"
required>
<button class="btn btn-lg btn-primary btn-block " name="submit" type="submit">Sign in</button>
<hr class="lead">
<a href="register.php" class="text-decoration-none">Don't have an account? Sign up</a>
<p class="mt-5 mb-3 text-muted">© <?php echo date("Y"); ?></p>
</form>
</div>
<style>
#loginForm {
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
padding-top: 40px;
padding-bottom: 40px;
background-color: #f5f5f5;
}
.form-signin {
width: 100%;
max-width: 330px;
padding: 15px;
margin: auto;
}
.form-signin .checkbox {
font-weight: 400;
}
.form-signin .form-control {
32
position: relative;
box-sizing: border-box;
height: auto;
padding: 10px;
font-size: 16px;
}
.form-signin .form-control:focus {
z-index: 2;
}

.form-signin input[type="email"] {
margin-bottom: -1px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
margin-bottom: 10px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
</style>
<!-- User Authentication -->
<?php
include 'config.php';
if (isset($_POST['submit'])) {
$email = $_POST['email'];
$password = $_POST['password'];
$sql = "SELECT * from user where email='$email' and pwd='$password' ";
$result = mysqli_query($conn, $sql);
$row = mysqli_fetch_assoc($result);
if (mysqli_num_rows($result) == 1) {
session_start();
$_SESSION['isloggedin'] = 1;
$_SESSION['email'] = $row['email'];
$_SESSION['user_id'] = $row['user_id'];
$_SESSION['username'] = $row['username'];
?>
<script>
location.replace("index.php");
</script>

Home Page Source Code


33
<?php session_start(); ?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<style>
.carousel .carousel-item {
height: 500px;
}
.carousel-item img {
position: absolute;
object-fit: cover;
top: 0;
left: 0;
min-height: 500px;
}
</style>
</head>

<body style="background: #081548;">


<!-- Header goes here -->
<?php require("header.php"); ?>

<div id="myCarousel" class="carousel slide " data-ride="carousel">


<!-- indicators -->
<ol class="carousel-indicators">
<?php echo make_slide_indicators(); ?>
</ol>
<!-- highlight movies -->
<div class="carousel-inner ">
<?php echo make_slides(); ?>
</div>
<!-- Left / Right Arrow -->
<a href="#myCarousel" class="carousel-control-prev" data-slide="prev">
<span class="carousel-control-prev-icon"></span>
</a>
<a href="#myCarousel" class="carousel-control-next" data-slide="prev">
<span class="carousel-control-next-icon"></span>
</a>
</div>
34
<!-- Now Showing -->
<h2 class="container text-light my-3 fs-2 fw-bold text-uppercase text-secondary-emphasis ">Now Showing</h2>
<div class="container d-flex flex-wrap align-content-start">
<?php echo nowshowing(); ?>
</div>
<!-- Comming Soon -->
<div class="container my-5">
<ul class="d-flex justify-content-center ">
<div class="bg-secondary rounded-pill">
<li class="btn text-white bg-danger rounded-pill active" id="release">Comming Soon</li>
</div>
</ul>
<!-- Showing Releases -->
<?php echo commingsoon(); ?>
</div>
<!-- Footer Goes here -->
<?php include 'footer.php'; ?>
<!-- Option 1: jQuery and Bootstrap Bundle (includes Popper) -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
<?php
// carousel indicators
function make_slide_indicators()
{
require('config.php');
$output = '';
$count = 0;
$query = "SELECT * FROM movie WHERE front=1 ORDER BY id ASC ";
$result = mysqli_query($conn, $query);
// $result = make_query($conn);
while ($row = mysqli_fetch_array($result)) {
if ($count == 0) {
$output .= '<li data-target="#myCarousel" data-slide-to="' . $count . '" class="active"></li>';
} else {
$output .= '<li data-target="#myCarousel" data-slide-to="' . $count . '"></li>';
}
$count = $count + 1;
}
return $output;
}

// makes carousel slides for required movies


function make_slides()
35
{
require('config.php');
$output = "";
$count = 0;
$query = "SELECT * FROM movie WHERE front=1 ORDER BY id ASC ";
$result = mysqli_query($conn, $query);
// $result = make_query($conn);

while ($row = mysqli_fetch_array($result)) {


$output .= '<div class="carousel-item c-item>';
if ($count == 0) {
$output .= ' active';
}
$output .= '">
<img src="thumb/' . $row['img'] . '" class="d-block w-100 c-img" />
<div class="carousel-caption d-none d-md-block">
<h5>' . $row['mv_name'] . '</h5>
<p>' . $row['mv_des'] . '</p>
<button class="btn btn-danger"><a href="detail.php?movieid=' . $row['id'] . '" class="text-light text-
decoration-none"> Book Now</a></button>
</div>
</div>';
$count = $count + 1;
}
return $output;
}
// fetching available booking shows
function nowshowing()
{
require('config.php');
$output = "";
$query = " SELECT * FROM movie WHERE front=2";
$result = mysqli_query($conn, $query);
while ($row = mysqli_fetch_array($result)) {
$output .= '<div class="card text-center mx-3 mb-2" style="width:25%">
<img class="card-img" src="./thumb/' . $row['img'] . '" alt="Card image" style="object-fit:cover;">
<div class="card-body">
<h4 class="card-title">' . $row['mv_name'] . '</h4>
<p class="card-text ">Runtime: ' . $row['duration'] . '</p>
<a href="' . $row['link'] . '" class="btn btn-warning"><i class="mx-1 bi bi-play-circle"></i> Trailer</a>
<a href="" class="btn btn-danger"><i class="mx-2 bi bi-ticket-perforated"></i>Buy Now</a>
</div>
</div>';
}
return $output;
36
}
// fetching future releasing movi
function commingsoon()
{
require('config.php');
$output = "";
$query = " SELECT * FROM movie WHERE front=3";
$result = mysqli_query($conn, $query);
while ($row = mysqli_fetch_array($result)) {
$output .= '
<div class="container d-flex justify-content-center ">
<div class="card text-center mx-3" style="width:25%">
<img class="card-img" src="./thumb/' . $row['img'] . '" alt="Card image" style="object-fit:cover;">
<div class="card-body">
<h4 class="card-title">' . $row['mv_name'] . '</h4>
<p class="card-text ">Releasing On: ' . $row['reveal'] . '</p>
<a href="' . $row['link'] . '" class="btn btn-warning"><i class="mx-1 bi bi-play-circle"></i> Trailer</a>
</div>
</div>
</div>
';
}
return $output;
}
?>

37
APPENDIX 3: DATABASE TABLE SCREENSHOTS

Table 1: Movie Table

figure: Movie table database

Table 2: User Table

figure: Users table

Table 3: Booking Table

figure: users’ booking table

38
Table 4: ContactUs From Table

figure: Contact table of customer

Reference

39

You might also like