Download as pdf or txt
Download as pdf or txt
You are on page 1of 69

CAKE SHOP

MANAGEMET
SYSTEM

1
PROFORMA FOR THE APPROVAL PROJECT PROPOSAL

(Note:All entries of the proforma of approval should be filled up with appropriate and
complete information. Incomplete proforma of approval in any respect will be
summarily rejected.)

PNR No.: ........................ Rollno: ___________

1. Name of the Student

2. Title of the Project

_________________________________________________

3. Name of the Guide


_________________________________________________

4. Teaching experience of the Guide

5. Is this your first submission? Yes No

Signature of the Student Signature of the Guide

Date: ..................... Date: .........................

Signature of the Coordinator


Date: ...................
2
A Project Report
Submitted in partial fulfillment of the
Requirements for the award of the Degree of

BACHELOR OF SCIENCE (INFORMATION TECHNOLOGY)

BY

VIRAJ RATHOD – IF16071


SHAURYA SALIAN – IF16048

Under the esteemed guidance of


Mrs. RASHMI CHINDARKAR

Designation

DEPARTMENT OF INFORMATION TECHNOLOGY

THE SIA COLLEGE OF HIGHER EDUCATION


(Affiliated to University of Mumbai)

DOMBIVLI, 421201
MAHARSHTRA
2018-19

3
THE SIA COLLEGE OF HIGHER EDUCATION
(Affiliated to University of Mumbai)

DOMBIVLI, MAHARSHTRA-421201

DEPARTMENT OF INFORMATION TECHNOLOGY

CERTIFICATE

This is to certify that the project entitled, "Cake Shop Management System", is bonafied work
of VIRAJ RATHOD bearing Seat.No: (IF16071) submitted in partial fulfillment of the
requirements for the award of degree of BACHELOR OF SCIENCE in INFORMATION
TECHNOLOGY from University of Mumbai.

Internal Guide Coordinator

External Examiner

Date: College Seal


4
ABSTRACT

A cake shop management system is a computerized management system. This system keeps
the records of hardware assets besides software of the organization. The proposed system will
keep a track of cakes, orders, cancellation, payments and generation of report regarding the
present status. This project has the software that will help in storing, updating and retrieving the
information through various user-friendly modules.
The main objective of cake shop management system is to provide solution for the cake shop
to manage their work using computerized process. This software application will help the admin
to handle the customer information, details about the products, payment details, billing
information etc. Detailed explanation about modules and design are provided in the project
documentation.
The existing system is a manually maintained system. All the cake shop records are to be
maintained for the details of each customer, price details, orders, cancellation, payments etc. All
these details are entered and retrieved manually, because of this there are many disadvantages
like Time consuming, updating process, inaccuracy of data. For avoiding these we introduced or
proposed a new system in proposed system the computerized version of the existing system
provides easy and quick access over the data.
Requirement definition and management is recognized as a necessary step in the delivery of
successful systems and software projects, discipline is also required by standards, regulations and
quality improvement initiatives. Creating and managing requirements is a challenge of IT,
systems and product development projects or indeed for any activity where you have to manage
contractual relationship.
Organization need to effectively define and manage requirements to ensure they are meeting
needs of the customer, while providing compliance and staying on the schedule and within a
budge. The impact of a poorly expressed requirement can bring a business out of compliance or
even cause injury or death. Requirement definition and management is an activity that can
deliver a high, fast return on investment.

5
ACKNOWLEDGEMENT

Firstly, we would like to acknowledge our college, THE SIA COLLEGE OF HIGHER
EDUCATION. We owe great thanks to many people who helped and supported me during the
preparation of this document and the project.

Secondly, we would like to express our gratitude towards our Head of the Department,
Coordinator, for providing me with help and assistance whenever I asked for it. She allowed us
to experiment at will and encouraged creative thinking, thereby allowing me to grow and mature.
We would also like to thank my internal guide for providing me support throughout the
project development phases.
I am highly obliged to the teaching members of the Department of Information
technology who have spared efforts in making this project a successful endeavor.

6
DECLARATION

I here by declare that the project entitled, “Cake Shop Management System” done at place
where the project is done, has not been in any case duplicated to submit to any other university
for the award of any degree. To the best of my knowledge other than me, no one has submitted to
any other university.
The project is done in partial fulfillment of the requirements for the award of degree of
BACHELOR OF SCIENCE (INFORMATION TECHNOLOGY) to be submitted as final
semester project as part of our curriculum.

Name of student and signature

7
TABLE OF CONTENT

SR.NO CONTENTS PAGE NO.


1 INTRODUCTION 9
1.1 BACKGROUND 9
1.2 OBJECTIVE 10
1.3 PURPOSE, SCOPE AND 11
APPLICIBALITY
1.3.1 PURPOSE 11
1.3.2 SCOPE 11
1.3.3 APPLICIBALITY 12
1.4 ORGANISATION OF REPORT 13

2 REQUIREMENT AND SYSTEM 14


ANALYSIS
2.1 EXISTING SYSTEM 14
2.2 PROPOSED SYSETM 15
2.3 REQUIREMENT ANALYSIS 16
2.4 HARDWARE REQUIREMENT 17
2.5 SOFTWARE REQUIREMENT 17
2.6 JUSTIFICATION OF SELECTION 18
OF TECHNOLOGY
3 SYSTEM DESIGN 20
3.1 MODULE DIVISION 20
4 IMPLEMENTATION AND TESTING 29
4.2 TESTING APPROACH 29
4.2.1 UNIT TESTING 29
4.2.2 INTEGRATION TESTING 30
5 IMPLEMENTATION AND TESTING 31
5.1 IMPLEMENTATION APPROACH 31
5.2 CODING DETAILS AND CODE 35
EFFICIENCY
5.2.1 HOME PAGE 36
5.2.2 ABOUT PAGE 39
5.2.3 SIGNMODAL.PHP 41
5.2.4 ORDERDETAIL.PHP 46
5.2.5 CARTLIST.PHP 50
8
5.3 TESTING APPROACH 54
5.3.1 UNIT TESTING 55
5.3.2 I NTEGRATION TESTING 55
5.3.3 BETA TESTING 55
5.4 MODIFICATION AND 55
IMPROVEMENT
5.5 TEST CASES 56
6 RESULTS AND DISCUSSION 59

6.1 TEST REPORT 59


6.2 USER DOCUMENTATION 61
7 CONCLUSION 67
7.1 CONCLUSION 67
7.1.1 SIGNIFICANCE OF THE SYSTEM 67
7.2 LIMITATION OF THE SYSTEM 67
7.3 FUTURE SCOPE OF THE PROJECT 67

9
TABLE OF DIAGRAM
SR.NO DIAGRAM PAGE NO
1 ENTITY RELATIONSHIP 23
DIAGRAM
1.1 E.R DIAGRAM 25
2 DATA FLOW DIAGRAM 26

2.1 FIRST LEVEL DFD 27

2.2 SECOND LEVEL DFD 28

10
INTRODUCTION
1.1 BACKGROUND:
PROJECT DESCRIPTION

This project is a website developed for a cake shop. It is a website developed to take orders
and sell cakes for each customer. The cake shop management system is a standalone application.
The main principle behind the need of cake shop management system is easy management of the
shop. It is user friendly and has a modular approach. The modular approach of the software
increases the flexibility of the software.
It is a system that allows users to check for various cakes available at the online store and
purchase online. The project consists of list of Cakes and bakery products displayed in various
categories. The user may browse through these items as per categories. If the user likes a product
he may add it to his shopping cart. He may even pay through a credit card or cash on delivery.
Once the user makes a successful transaction he gets a copy of the shopping receipt on his email
id. User has also option for ordering custom cakes according to their requirements like cake’s
flavor, size, shapes and so on. Thus the online Cake shopping project brings an entire cake shop
online and makes it easy for both buyer and seller.
The Cake Shop management system is a computerized management system. This system
keeps the records of hardware assets besides software of this organization. The proposed system
will keep a track of Workers, Accounts and generation of report regarding the present status.
This project has GUI based software that will help in storing, updating and retrieving the
information through various user-friendly menu-driven modules.
The customer will be able to check the shop’s online website at any time. Paper work and
Manual work is reduced. Each customer will be given a unique customer ID while ordering the
cakes. The website then demands customer details for reference. The customers or the visitors
can see the cake details, its quantity, size, shape and flavors as per choice.
Next the cake is selected and is customized according to the customers need. The customer
should enter the date of delivery and also the quantity. Only Admin can add the cake details
flavor details and rate. And he also has the right to edit and delete those details from the list. A
username and password is generated for each users or customers.
After a close analysis of samples collected during the problem definition stage the analyst
found that all the hardware and software requirements needed for implementation and
maintenance of the system are readily available in the market and cheaply affordable by the
owner of shop. The system was carefully designed to ensure maximum efficiency of the system
at the hotel. The system was skillfully and carefully coded to seal any possible loopholes in the
system. This system will indeed help the hotel management and the esteemed staff members to
manage and steer the cake shop’s functionality and transactions to realize its maximum potential
in addition to its competence in the business field.

11
1.2 OBJECTIVES:
My idea is to provide each and every people out there to have a “fun” party at different
occasions. The customers can order instantaneously across anywhere around the area,
anywhere they want.
The online cake ordering system will be computerized so that it has less paper work to
do and it will save both the money and the time. It will also reveal bakery to the outside
environment. So everyone will have the win-win situation.
 The main objective of the Cake shop management system is to manage the details of
Cakes, Orders, Customers, Delivery and to satisfy the customer.
 It manages all the information about Cakes, Customer Details.
 It is accurate, user-friendly and reliable.
 It improves the communication between the cake shop admin and the customer/client.
 It minimizes the time of ordering required in a physical cake shop and saves the
customer’s time.
 The customer can access it from anywhere easily.
 Computerization will almost minimize all the shortcoming of the current manual system.
 Computerization will be helpful in reducing extra manpower.
 The admin single handedly manages the system.
 There is only one admin in the system.
 The admin will approve the cakes which will be sold out via online method based on the
quality of the cakes, though the admin will not check for the quality, per se, he will
investigate the quality-report of cakes.
 Computerization makes searching easy and instantaneous.
 Computerization will reduce the possibility of human errors.
 To develop a system that will surely satisfy the customer needs.
 To design a system able to accommodate huge amount of orders at a time.
 It gives the customers a variety of payment options.
 Records of salary structure of the employees.
 Keeping records of cake orders.
 Keeping user satisfaction as the priority.
 Scheduling the delivery of user make it convenient for user.
 Scheduling the services of workers and properly tu manage them properly.
 Keeping records of user registration details accurately arranged order so that the
treatment of Customers becomes quick and satisfactory.
 Keeping details about the users, their choices and payment detail reports etc.
 Keeping the best service facilities possible.

One of the main objectives of the cake shop management system is ensure customer
satisfaction. The system will also automatically calculate and displays the final bill to the
customer.

12
1.3 PURPOSE, SCOPE and APPLICABILITY
1.3.1 Purpose:

 The main purpose of the cake shop management system is to help the owner/user to
manage the cake shop with ease.
 It also helps the owner to reorder the cake if unavailable and make it available for the
customers.
 It reduces time consumption.
 Operations can be easily carried out on the system
 One can easily get use to with the system.
 Easy to use for the customer as well.
 An application suite consists of multiple applications bundled together.
 Business applications often come in suites.
 The code documented here is intended to make it easier to save every page generated
by a database backed site as a flat file.
 No database crashes.
 Zero server configuration and upkeep.
 No need to optimize your app code.
 You don’t pay to host CPUs, only bandwidth

1.3.2 Scope:
Cake shop management system includes creating and deleting orders, adding and removing
items from an order and closing orders. Orders should also be stored in the database use to
calculate total sales.
The scope for the cake shop management system can be explained as:
 It is a web based system.
 Information handling of the orders placed.
 New records can be created, data retrieval, update and cancellation of the order
functionality.
 The scope of the project is to develop, customize software package for reducing the
manual problems.
 Online Cake shop management system also deals with cancellation.
 The scope of the system is defined on the basis of various functionalities provided by
the system.
 The scope of the project is to develop customize software package for reducing the
manual problems.
 It should deals with the online Bakery management as well as cancellation.
 This system never decreases the manpower but helps the development of available
manpower and optimizes the manpower by which banquet’s standards and
capabilities can be scaled to higher dimension.

13
1.3.3 Applicability:
Buying of cakes online in a country where we use cakes to celebrate every little occasion
has an important part in our life. There are not many websites which allow the buying and selling
of cakes.
The website helps the retailers to earn a little profit by buying various cakes from the cake shops
at a particular rate and then this cakes will be sold at a reasonable rate to the customers which in
turn is a three way profit for the retailers, the buyer and the site owner.
Cakes of various flavors can be found on the website which is of great use as the buyer won’t
need to travel far distances for the cakes all over the city. He can access the website and buy
cakes they need.

14
1.4 ORGANIZATION OF REPORT:

It is always necessary to study and recognize the problem of the existing system, which will
help in finding out the requirements of the new system. A thorough study of the proposed
system involves finding different alternatives for a better solution. The following steps will
be undertaken to improve the project:
 Data Gathering
 Study of Existing system
 Analyzing problem
 Studying various documents
 Feasibility study for further improvement

The current system lacks the concept of tracking the product and also a profile of the
customers which will contain a feedback about our quality of cakes which will help
the buyer to choose the desired cake they want.
In order to give a brief idea about the project this report is generated.
The report will be telling about the solutions that can be given for the problems that
are faced by the current systems.

15
CHAPTER 2: REQUIREMENT AND SYSTEM ANALYSIS
The main aim in this stage is to assess what kind of system would be suitable
for a problem and how to build it. The requirements of this system can be defined
by going through the existing system and its problems.

2.1 Existing system


Before developing the application to manage the cake shop, the shop was
handled manually. The advancement of technology helped the user or shop owner to carry
out the management of shop with ease. Earlier the users or the staff members used to take
the orders manually or write it in a book or register.
It was becoming difficult to handle the cake shop with limited employees.
During festive season, when the shop becomes crowded it becomes difficult for the
employees to deal with the customers and handle them properly. The employees cannot
handle every customer at the same time and may create havoc in the shop. It creates a bad
impact to the shop’s reputation and may lead to low business to the shop.
In the existing manual system a lot of time is spent in communicating the
information across different branches. There is a need for an integrated automated system,
which has some centralized control over the entire process. Conventional System makes use
of huge amounts of paper for recording transactions.
The existing system is a manually maintained system. All the cake’s orders are
to be maintained for the details of each customer. Fee details, delivery, etc. All these
details are entered and retrieved manually.

Advantages:
 Employees don’t need special computer skills to run the manual system.
 No reliance on computer devices which may fail since they are machine in nature.
 Relatively low running costs as the system requires no electricity, internet
services as the computerized system would.

Disadvantages:
 Guest files can easily get lost or mix up with other guest file documents.
 Files occupy a large storage space.
 Unnecessary duplication of data.
 Files are prone to theft unauthorized modification due to low data security levels
and standards.
 Time Consuming
 Updating process
 Inaccuracy of data
 Delays transmission
 Due to easy access to guest data by unauthorized users, guest data is extremely
unconfident

16
2.2 Proposed system
 Data backup facility will be introduced.
 Data will be stored automatically to the server.
 Graphical richness is required.
 Good graphics attracts the customers.
 To enable online booking via the internet.
 To enable automated data entry methods.
 Ensure efficient and reliable communication within the hotel.
 Avoid data entry errors by use of input masks.
 Enable easy authorized modification of data.
 Enforce security measures to avoid unauthorized access to guest records.
 Enable fast and easy retrieval of guest records and data for fast reference activities.
 Storing resident details correctly.
 Maintain accuracy.
 Computerize the process of ordering and generating bill of a Cake Shop.
 Make all the systems computerize,
 Means no paper work.
 Reduce time consumption.
 Simple database is maintained.
 Easy operations for operator of the system.
 User interfaces are user friendly.
 It takes very less time to get use to with the system.
 In the proposed system we have the provision for generating bill.
 Another advantage of the system is that it is very easy to calculate the total amount.
 User friendly:
The proposed system is user friendly because the retrieval and storing of
data is fast and data is maintained efficiently. Moreover the graphical user interface is
provided in the proposed system, which provides user to deal with the system very
easily.
 Reports are easily generated:
 Reports can be easily generated in a proposed system. So any type of reports can be
generated in a proposed system, which helps the shop owner in a decisions-making
activity.
 No or very few paperwork:
All the data is inserted into the computer immediately and bills and reports
can be generated through computers.
 Since all the data is kept in a database no data of the shop can be destroyed.
 Moreover work becomes very easy because there is no need to keep data on papers.
 Computer operator control:
Computer operator control will be there no errors. Moreover storing and
retrieving of information is easy.

17
2.3 REQUIREMENT ANALYSIS

The main aim in this stage is to access what kind of a system would be suitable
for a problem and how to build it. The requirements of this system can be defined by
going through the existing system and its problems. Requirement analysis is a software
engineering task that bridges the gap between system level software allocation and
design. It provides the system engineer to specify software function and performance
indicate software’s interface with the other system elements and establish constraints that
software must meet.
The basic aim of this stage is to obtain a clear picture of the needs and
requirements of the end-user and also the organization. Analysis involves interaction
between the clients and the analysis. Usually analysts research a problem by asking
questions and reading existing documents. The analysts have to uncover the real needs of
the user even if they don’t know them clearly. During analysis it is essential that a
complete and consistent set of specifications emerge for the system. Here it is essential to
resolve the contradictions that could emerge from information got from various parties.
This is essential to ensure that the final specifications are consistent.
Each Requirement analysis method has a unique point of view. However all
analysis methods are related by a set of operational principles. They are
 The information domain of the problem must be represented and understood.
 The functions that the software is to perform must be defined.
 The behavior of the software as a consequence of external events must be defined.
 The model that depicts information, function and behavior must be partitioned in a
hierarchical or layered fashion.
 The analysis process must move from essential information to implementation detail.
The steps involved would be:
Problem Recognition:
The main problem is here while registration for the new alumni. If we want to
verify the old data or current data it is very difficult to find out. Maintain the data related
to all contact and faculty information is very difficult.
Evaluation and Synthesis:
In the proposed system this application saves the lot of time, and it is time
saving process when we use this application we can easily manage details, such as
contact search, cake requirements and gallery etc. No specific training is required for the
users to use this application. They can easily use the tool that decreases manual hours
spending for normal things and hence increases the performance.

18
2.4 Hardware Requirements
 Microprocessor core i5
 RAM 500Mb
 Hard disk space 20GB
 Storage device: Hard drive, Pen drive
 Output device: Printer

2.5 Software Requirements


 Windows 7 or higher.
 Latest browser
 Frontend: PHP

19
2.6 Justification of selection of Technology
Project Justification is an attempt to explain why an organization needs to implement a
particular solution to a problem and how this solution can be implemented. It is a process that
starts at the Project Initiation phase to confirm the need for launching a project that addresses the
problem through implementing the solution. Justifying a project means providing the
stakeholders with a comprehensive analysis of the environment to be changed by the project. The
project is justified when the analysis gives an interpretation and evaluation of all the results to be
delivered by the project.
Justifying a project is a process of analyzing a business environment to:

 Propose a solution to the problem related to the business environment.


 Determine alternatives or options to the proposed solution.
 Analyze costs, benefits, impacts, and risks of the proposed solution.
 Validate the solution.
 Get the project ready for feasibility study.

There are 9 common steps for justifying a project, regardless of the project’s type and size.

Step 1- Environmental Analysis:-


First of all, when a project initiator (a person who justifies the project) plans for project
justification, he/she needs to perform an environmental analysis that aims to examine the
business environment. Such an analysis determines relevant environmental factors that have the
greatest impact to the business. Then the project initiator reviews those factors and through an
evaluation matrix determines which of the factors can be used to create an environmental profile.
Such a profile describes the current situation and makes forecasts. SWOT analysis along with
PEST analysis (and its modifications) can be utilized for identifying and evaluating
environmental factors.

Step 2- Solution Proposal:-


The project initiator uses the results (current situation review and forecasts) of the
environmental analysis to determine areas requiring improvement. It actually means generating a
solution that can resolve the current issues and address future possible difficulties. Solution
proposal is an attempt to propose a change to the current environment.

Step 3- Alternatives Analysis:-


Along with the major solution there can be a range of other solutions that offer alternative
ways for solving the problem. An overview of project alternatives is given here. The initiator
should review all possible alternative options to the proposed solution and provide a
substantiation of the appropriateness of the selected solution.

Step 4- Impact Analysis:-


At this step of project justification, the project initiator focuses on running an impact
analysis to explain how the proposed solution can affect the business environment.

20
Step 5- Cost-Benefit Analysis:-
It is an analysis to determine what benefits can be produced by implementing the
proposed solution and what costs the project will require. A ratio between cost and
benefits is to be made and reviewed. The project initiator should perform the analysis to
provide the stakeholders (the sponsor) with cost-benefit justification.

Step 6- Financial Analysis:-


This kind of project justification analysis aims to develop financial and non-
financial projections that determine what money and effort will be required to perform
the project and implement the solution. The analysis lets build a cash flow model based
on financial criteria such as discounted cash flow, payback period, internal rate of return,
others.

Step 7- Risk Analysis:-


It is an assessment of threats and uncertainties sing that have a negative impact to
the business organization and its environment, as a result of the project and solution
implementation. The risk analysis aims to identify, evaluate and measure possible risks. It
determines which factors and contingencies influence the project results and in what
extent.

Step8- Reporting:-
The project initiator creates a management summary report of all the analyses to interpret
the project as a successful and effective endeavor. The report is then submitted to the
project sponsor for review and approval.

Step 9- Validation:-
The final step is to approve the project and the propose solution. This is a task of the
sponsor who provides necessary funds required for doing the project. When the
validation step is passed, the project initiator needs to take a range of activities to perform
a feasibility study that aims to provide that the project feasible in technical and
economical terms. Feasibility will be the next process to be carried out within the
initiation phase after the project justification process.

21
CHAPTER 3: SYSTEM DESIGN
System design is the process of defining the architecture, modules, interfaces and
data for a system to satisfy specified requirements. System design could be seen as
the application of system theory to product development. There is some overlap
with the disciplines of system analysis, system architecture and system
engineering.

3.1 Module Division:


There will be four types of module. Those modules are admin, customer/user, bakery and
accountant. Following are the detailed description of the modules.

Admin
This is the first and very important module in the system. The online cake shop
management system cannot be completed without the presence of the admin. The admin has the
power to create new record of each type of users, delete the existing records of each type of users
or update the existing records of each type of users in the system. All these records will be
inserted in the system and will be kept in the database.
This module provides administrator related functionalities. Administrator can view the
registered user and payment model in this module and can upload the information about the cake
shop management system such as cake shop facilities, orders, cancellation, payments etc. Admin
will give responses to the users based on the requirements and always check the availability of
the products. The cake shop management system main goal is to provide the security
maintenance.
There are some features of the modules which are common for some of them. So, it would be
wise to discuss those features at a single place rather than discussing them individually in each
module. Here are some common features and their detailed descriptions.

Registration
Any type of user who wants to be the part of the system will have to register. It is a very
simple process. They just have to provide their some personal information. The registered user
need not to worry about their personal information shared with me being stolen. All the
information will be kept private and confidential. These fields are:
 Name – The user just has to provide full name that would be used to address the person.

22
 Password – It is a mandatory field to fill up by the user’s own customized password
which will be used to login into the system to avoid the threat caused by the external
harmful entities.
 Email ID - Every registered user needs to enter their password for recovery or easy
communication purpose.
 Contact No – Instant communication is the necessity for better service. If the users
provide their personal numbers to contact, it would be easy to reach out the customers.
 Login- After you are registered in the system, you have to login into the system in order
to get additional benefits you are getting as an unregistered user. You just have to provide
your username which was given to you at the time of registration and the password. You
can also use your email id as a username.
If the credentials are matched with the tables stored into the database, you are given
access to your account. Now, you can enjoy your shopping.
 Forgot password and Change password- If you have forgotten your credential, do not
worry, I have taken that mistake also into the account. You just have to enter the email id
address, some sequence of instruction will be sent to your registered email address,
follow those and recover your password.
If you think your password is revealed into the public and you think it will be threat
for you as someone may misuse it, go for a change. Yes, change your password. There is
a nice option for changing the password.

Customers/user
This module is also for the users. By using this module user can lodge any complaints about
the process or system or can give feedback related to the products. User must be registered to the
system. At the homepage, there will be a lot of cakes and some sections to choose from. Those
sections can be:

 Popular Cakes
 New Arrivals
 Wedding / Anniversary
 Budget
Choosing Cakes
You, as a customer, can select the cakes you want. And, there are lots of categories, based on
which you can select the right cake at the reasonable price. The categories are:
Occasion - It is nice to have the occasion category. There should be different varieties of cakes
for different occasions. You do not want to have the birthday cake for your wedding anniversary
or the wedding anniversary cake on your birthday. So, select the occasion, select the cake and
enjoy your party.
Price - Sometimes you select the cake and you want it badly, but the problem arises when it is
out of your budget. You order a cake in your budget but you still think that cake (over budget)

23
was awesome. To avoid that conflict I have provided the option to select the cakes based on your
budget range. Thus, you can get your favorite cake and in your budget too. The price list can be
shown in the check-box form, so that you can choose multiple price range.
Flavors - You will also have the luxury to select the cake based on your taste. There are a lot of
verities for that. Choose it from:
 Pineapple
 Black Forest
 Blueberry
 Chocolate
 Strawberry
 Butterscotch
 Vanilla and many more
Weight of the Cake - Select the cake based on the weight, be it 1kg, 2kg, 5kg, 10kg etc.
Cart Checkout - When you have chosen the best cake of your interest and ready to order it
online, just go to the cart option and provide the required information for completing the
ordering process. First you have to provide the address at which you want your cake to be
delivered, and the payment method, whether you want to pay the money at the time of delivery
as cash or pay it online by net banking, debit card or credit card. Choice is yours.
Cancel the Order - If you think that you have misplaced the order, you can cancel it any time
you want. If you have already paid for the cake, the amount will be refunded into your account
within 5-7 business days.

24
ENTITY RELATIONSHIP DIAGRAM
An Entity Relationship (E-R) diagram is a specialized graphics that illustrates the
interrelationship between entities in a database. ER diagram often uses Symbols to represent
different type of information.

Symbols used in Entity Relationship (E-R) diagram are as follows:

Represent Data Entity

Represent Connection

Connect two entities or 1 to1 relation

Represent the Relationship

25
Shows One too many Relations

Shows many to One Relations

26
ER-DIAGRAM

Customer
Customer id
name
Customer
`1 address

Customer
Customer
phone no.
Customer
email id

Buy Provide Generate bill


order

Cakes
Confirm order
Occasion
Price

Delivered

Flavors Weight

27
DFD (Data Flow Diagram)
A data flow daigram (DFD) defines how the data is processed by a system in terms of inputs and
outputs. The main focus of data flow diagram is on the flow of information, where the data
comes from, where it goes and how the data get stored.
Data Flow Diagrams Symbols
Proces Notations: The work of this notation is to transform incoming data flow into outgoing
data flow.

Level

Process

Datastore Notations: Datastore is the place where the data of the system is stored. They are also
referred as files.

Datastore

Dataflow Notations: Dataflow are the pipelines through which the packets of information flow.
Label the arrows with the name of the data that moves through it.

External Entity Notations: external entities are the objects to which the system communicates.
External entities are sources and destinations of the system’s inputs and outputs.

External
External entity entity

28
First Level DFD
Cake Generate

Management Cake Report

Generate
Category
Category Report
Management

Order Generate

Management Order Report

Cake
shop
system Generate
Delivery
Delivery Report
Management

Check
Login
User login Details
Management

Generate
System user
System user Report
Management

29
Second Level DFD
Manage cake details
Login Get
Admin access

Manage category
details

Forgot Check Manage


passwo- crede- modules
rd ntials Manage order details

Manage customer
details

Send
Email to
user

Manage payment details

Manage delivery details

Manage Report

Manaage system admins Manage roles of user Manage user permission

30
CHAPTER 4: IMPLEMENTATION AND TESTING
4.2 Testing Approach
A test approach is the test strategy implementation of a project, defines how testing would
be carried out. Test approach has two techniques:
 Proactive- An approach in which the test design process is initiated as early as possible
in order to find and fix the effects before the build is created.
 Reactive- An approach in which the testing is not started until after design and coding
are completed.
Different Test Approaches:
There are many strategies that a project can adopt depending on the context and some of
them are:
 Dynamic and heuristic approaches.
 Consultative approaches.
 Model-based approach that uses statistical information about failure rates.
 Approaches based on risk-based testing where the entire development takes place based
on the risk.
 Methodical approach, which is based on failures.
 Standard-complaint approach specified by industry-specific standards.

4.2.1 UNIT TESTING:


Unit testing focuses on verification on the smallest unit of software. The unit testing we
have is:
1. WHITE BOX TESTING:
 Every independent paths have been verified at least once.
 The logical decisions have been verified on their true and false side.
 Every loops have been executed at their boundaries and within their
operational bounds.
 The internal data structure have been verified to assure their validity.
2. BASIC PATH TESTING:
 This technique was established with complexity and was used to derive
test cases for all the function.
3. CONDITIONAL TESTING:
 In this testing all the loops are tested to all the limits possible.
 All the resulting paths are tested so that each path that is generated on a
condition is used to uncover any possible errors.
4. LOOP TESTING:
 Loops are tested at their limits.
 All the loops are skipped at least once

31
4.2.2 INTEGRATION SYSTEM:
When it comes to integration of a cake shop, here are the two main phases:

The first phase: PLANNING


 Identifying the customers need and defining the optimal solution.
 The initial phase of a project are preliminary layout and
corresponding indication with 10% accuracy rate.

The second phase: EXECUTION OF PROJECT


 PART ONE- PREPARATION OF EXECUTION
During the preparation of execution phase we bring the
project to the outer world by doing the whole process of analysis.
Having identified the hardware and software requirements our next
step is to fulfill the customer need by developing the project
according to the customer satisfaction.
 PART TWO- BUILDING PROCESS
During this process the whole project is monitored for its
progress and quality before delivering to the customer.

32
CHAPTER 5: IMPLEMENTATION AND TESTING
5.1 Implementation Approaches
The project that we have developed loads on Microsoft visual studio 2010 The front end and a back end
used for successful implementation of the project are HTML , JAVA, Bootstrap and Microsoft SQL Server
respectively.

PHP TECHNOLOGY:

PHP: Hypertext Preprocessor, which the PHP FAQ describes as a recursive acronym. PHP is an alternative
to Microsoft's Active Server Page (ASP) technology. As with ASP, the PHP script is embedded within a
Web page along with its HTML. Before the page is sent to a user that has requested it, the Web server calls
PHP to interpret and perform the operations called for in the PHP script.
"PHP is a server-side, cross-platform, HTML embedded scripting language."
That's a mouthful, but if we break the definition down into smaller pieces, it is easier to understand.

Server-Side:

This means that PHP scripts execute on the Web server, not within the browser on your local machine.

Cross-Platform:

Cross-platform means that PHP scripts can run on many different operating systems and Web servers. PHP
is available for the two most popular Web server configurations (IIS running on Windows NT and Apache
running on UNIX).

HTML Embedded Scripting Language:

This means that PHP statements and commands are actually embedded in your HTML documents. When
the Web server sees the PHP statements in the Web page, the server executes the statements and sends the
resulting output along with the rest of the HTML. PHP commands are parsed by the server much like Active
Server Pages or Cold Fusion tags.

33
FRONT END

Hyper Text Markup Language (HTML)


Hyper Text Markup Language (HTML) is the backbone of any website development process,
without which a web page doesn't exist. Hypertext means that text has links, termed hyperlinks, embedded
in it. When a user clicks on a word or a phrase that has a hyperlink, it will bring another web-page. A
markup language indicates text can be turned into images, tables, links, and other representations. It is the
HTML code that provides an overall framework of how the site will look. HTML was developed by Tim
Berners-Lee. The latest version of HTML is called HTML5 and was published on October 28, 2014 by the
W3 recommendation. This version contains new and efficient ways of handling elements such as video and
audio files.

Bootstrap
Bootstrap is a free and open-source CSS framework directed at responsive, mobile-first front-end web
development. It contains CSS- and (optionally) JavaScript-based design templates for typography, forms,
buttons, navigation and other interface components.
.

JavaScript
JavaScript is an event-based imperative programming language (as opposed to HTML's declarative
language model) that is used to transform a static HTML page into a dynamic interface. JavaScript code can
use the Document Object Model (DOM), provided by the HTML standard, to manipulate a web page in
response to events, like user input.
Using a technique called AJAX, JavaScript code can also actively retrieve content from the web
(independent of the original HTML page retrieval), and also react to server-side events as well, adding a
truly dynamic nature to the web page experience.

34
BACKEND

MICROSOFT SQL Server


Microsoft SQL Server is a computer application used to create desktop, enterprise, and web-based
database systems. It is used at different levels and with various goals. Microsoft SQL Server is an
application used to create computer databases for the Microsoft Windows family of server operating
systems. Microsoft SQL Server provides an environment used to generate databases that can be accessed
from workstations, the Internet, or other media such as a personal digital assistant (PDA).
Microsoft SQL Server is comprehensive, integrated data management and analysis software that
enables organizations to reliably manage mission-critical information and confidently run today’s
increasingly complex business applications. SQL Server 2005 allows companies to gain greater insight from
their business information and achieve faster results for a competitive advantage.
MySQL is free and open-source software under the terms of the GNU General Public License, and is also
available under a variety of proprietary licenses. MySQL was owned and sponsored by the Swedish
company MySQL AB, which was bought by Sun Microsystems (now Oracle Corporation).In 2010, when
Oracle acquired Sun, Widenius forked the open-source MySQL project to create MariadDB.

Why we implemented the above Technology?


The hardware and software used in the development of this application are easily available,
efficient and portable and users as well as designer friendly technology in market as present. PHP is one
of the most appropriate languages because of the following reasons-

1. Generates dynamic web pages.

2. A process content of HTML form and also retrieves and respond to the data entered in the form.

3. Capable of inserting new data or retrieves existing data from the database.

4. A good benefit of using PHP is that it can interact with many different database languages including
MySQL.

5. Both PHP and MySQL are compatible with an Apache server which is also free to license.

35
Software and Hardware Specifications
Hardware Requirements

 Microprocessor core i5
 RAM 500Mb
 Hard disk space 20GB
 Storage device: Hard drive, Pen drive
 Output device: Printer

Software Requirements
 Windows 7 or higher.
 Latest browser
 Frontend: PHP, HTML , BOOTSTRAP
 Backend: MYSQL

36
5.2 CODING DETAILS AND CODE EFFICIENCY

We have written separate codes to form our one big project. The separate codes are made for various pages
that we designed.

 Home Page:

This web form consists of general description about our Cake Shop.

 About Us Page:

This web form consist the information about our shop.

 Menu page:

This web form consists of the Products that manufacture by firm and this page link to product rates
page.

 Log in:

This web form consists of user login and also consists of link for creating new account and change
password.

 Create New Account:

This web form helps the new users to register to the website.

 Contact Us:

This web form consists of organizations contact details and feedback form.

37
5.2.1 Home.php

<?php require_once ('headnav.php');


?>
<div class="container">

<?php check_message(); ?>


<div class="col-xs-12 col-sm-9">

<div class="">
<div class="panel panel-default">

<div class="panel-body">
<div class="col-xs-12 col-sm-12">

<fieldset>
<fieldset>
<legend><h2 class="text-left">WELCOME!</h2></legend>
<ul>
<strong>
Our best selling cake!<br>
</strong> <br>

<img src="images\cake1.jpg"><br>

<strong>
<h3> Strawberry Chocolate Cake with chocolate frosting, chocolate ganache, and sweet strawberries!
<br>This is the BEST chocolate cake!!!<br><h3>
</strong> <br>

</ul>

</fieldset>
<hr/>
<fieldset>

<legend><h2 class="text-left"></h2></legend>
<ul>

</ul>

</fieldset>

<fieldset>
38
<legend><h2 class="text-left"></h2></legend>
<ul>

</ul>

</fieldset>

</fieldset>

</div>
</div>
</div>

</div>

<div class="">
<div class="panel panel-default">

<div class="panel-body">

<legend><h3 class="text-left">Contact Us</h3></legend>

<iframe
src="https://maps.google.com/maps?width=100%&amp;height=600&amp;hl=en&amp;q=dombival
i+(My%20Business%20Name)&amp;ie=UTF8&amp;t=&amp;z=17&amp;iwloc=B&amp;output=e
mbed" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>

<fieldset>
<legend><h2 class="text-left">-</h2></legend>

<ul>

If you need any help please contact Cake o' Clock.


</ul>

</fieldset>

</div>
</div>

39
</div>

</div>

<?php require_once 'sidebar.php';?>

</div>

40
5.2.2 About.php

<?php require_once ('headnav.php');


?>
<div class="container">

<?php check_message(); ?>


<div class="col-xs-12 col-sm-9">

<div class="">
<div class="panel panel-default">

<div class="panel-body">
<div class="col-xs-12 col-sm-12">

<fieldset>
<fieldset>
<legend><h2 class="text-left">About</h2></legend>

</fieldset>
<hr/>
<fieldset>

<legend><h2 class="text-left">Company Mission</h2>To keep customers satisfied by serving them quality


and freshly baked goods at reasonable prices.</legend>

</fieldset>

<fieldset>

<legend><h2 class="text-left">Company Vision</h2>Cake o' Clock envisions to maintain a safe, healthy


and vibrant workplace for its employees in order to serve our customers best.</legend>

</fieldset>

</fieldset>

</div>
</div>
</div>

</div>
41
</div>
<?php require_once 'sidebar.php';?>
</div>

42
5.2.3 Signmodal.php

<?php require_once 'include/initialize.php'; ?>

<div class="modal-dialog" style="width:50%">


<div class="modal-content">
<div class="modal-header">
<button class="close" data-dismiss="modal" type=
"button">×</button>

<legend><h2 class="text-left">Sign Up</h2></legend>

<?php // require_once 'cart/signmodal.php'; ?>


<?php //require_once 'include/initialize.php'; ?>

<form class="form-horizontal span6" action="" name="personal" method="POST"


enctype="multipart/form-data">
<?php
// echo isset($_POST['FIRSTNAME'])? 'yes' : '';
$autonum = New Autonumber();
$res = $autonum->single_autonumber(1);

?>

<div class="form-group">
<div class="col-md-10">
<label class="col-md-4 control-label" for=
"FIRSTNAME">First Name:</label>
<input id="CUSTOMERID" name="CUSTOMERID" type="HIDDEN" value="<?php echo
$res->AUTO; ?>">
<div class="col-md-8">
<input class="form-control input-sm" id="FIRSTNAME" name="FIRSTNAME"
placeholder=
"First Name" type="text" value="">
</div>
</div>
</div>

<div class="form-group">
<div class="col-md-10">
<label class="col-md-4 control-label" for=
"LASTNAME">Last Name:</label>

43
<div class="col-md-8">

<input class="form-control input-sm" id="LASTNAME" name="LASTNAME" placeholder=


"Last Name" type="text" value="">
</div>
</div>
</div>

<div class="panel panel-default">


<div class="panel-head" style="margin-left:3%"><h3>address</h3></div>
<div class="panel-body">
<div class="form-group">
<div class="col-md-10">
<label class="col-md-4 control-label" for=
"HOMENUMBER">Home Number:</label>

<div class="col-md-8">
<input class="form-control input-sm" id="HOMENUMBER" name="HOMENUMBER"
placeholder=
"Home Number" type="text" value="">
</div>
</div>
</div>

<div class="form-group">
<div class="col-md-10">
<label class="col-md-4 control-label" for=
"STREET">Street / Village:</label>

<div class="col-md-8">
<input class="form-control input-sm" id="STREET" name="STREET" placeholder=
"Street" type="text" value="">
</div>
</div>
</div>

<div class="form-group">
<div class="col-md-10">

<label class="col-md-4 control-label" for=


"BARANGGY">District:</label>

<div class="col-md-8">
44
<input class="form-control input-sm" id="BARANGGY" name="BARANGGY"
placeholder=
"District" type="text" value="">
</div>
</div>

</div>
<div class="form-group">
<div class="col-md-10">
<label class="col-md-4 control-label" for=
"CITYADDRESS">City:</label>

<div class="col-md-8">
<input class="form-control input-sm" id="CITYADDRESS" name="CITYADDRESS"
placeholder=
"City Address" type="text" value="">
</div>
</div>
</div>

</div>
</div>

<div class="form-group">
<div class="col-md-10">
<label class="col-md-4 control-label" for=
"USERNAME">Username:</label>

<div class="col-md-8">
<input class="form-control input-sm" id="USERNAME" name="USERNAME"
placeholder=
"username" type="text" value="">
</div>
</div>
</div>

<div class="form-group">
<div class="col-md-10">
<label class="col-md-4 control-label" for=
"PASS">Password:</label>

<div class="col-md-8">
<input class="form-control input-sm" id="PASS" name="PASS" placeholder=
"Password" type="password" value=""><span></span>
</div>
45
</div>
</div>

<div class="form-group">
<div class="col-md-10">
<label class="col-md-4 control-label" for=
"PASS"></label>

<div class="col-md-8">

<p>Note</p>
Password must be atleast 8 to 15 characters. Only letter, numeric digits, underscore and first
character must be a letter.
</div>
</div>
</div>

<div class="form-group">
<div class="col-md-10">
<label class="col-md-4 control-label" for=
"CONTACTNUMBER">Contact Number:</label>

<div class="col-md-8">
<input class="form-control input-sm" id="CONTACTNUMBER"
name="CONTACTNUMBER" placeholder=
"Contact Number" type="text" value="">
</div>
</div>
</div>

<div class="form-group">
<div class="col-md-10">
<label class="col-md-4 control-label" for=
"ZIPCODE">Zip Code:</label>

<div class="col-md-8">
<input class="form-control input-sm" id="ZIPCODE" name="ZIPCODE" placeholder=
"Zip Code" type="number" value="">
</div>
</div>
</div>

<div class="form-group">
<div class="col-md-10">
<label class="col-md-4" align = "right"for=
"image">Upload Image:</label>

46
<div class="col-md-8">
<input type="file" name="image" value="" id="image"/>
</div>
</div>
</div>

<div class="form-group">
<div class="col-md-10">
<label class="col-md-4" align = "right"for=
"image"></label>
<div class="col-md-8">
<p>

</div>
</div>
</div>

<div class="modal-footer"><p align="left">&copy; Cake o' Clock</p>


<button class="btn btn-default" data-dismiss="modal" type=
"button">Close</button>
<input type="button" data-target="#smyModal" data-toggle="modal" value="Sign Up"
class="submit btn btn_katerina" onclick="return personalInfo();"/>

</div>

</form>

</div>
</div>
</div>

<script language="javascript" type="text/javascript">


function OpenPopupCenter(pageURL, title, w, h) {
var left = (screen.width - w) / 2;
var top = (screen.height - h) / 4;
var targetWin = window.open(pageURL, title, 'toolbar=no, location=no, directories=no, status=no,
menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=' + w + ', height=' + h + ', top=' + top + ',
left=' + left);
}
</script>

47
5.2.4 Orderdeatils.php

<?php
$autonum = New Autonumber();
$res = $autonum->single_autonumber(3);

?>

<!DOCTYPE html>
<html>
<head>
<title></title>
<?php require_once ('headnav.php');
?>
</head>
<body onload="totalprice()">

<form onsubmit="return orderfilter()" action="customer/controller.php?action=processorder"


method="post" >
<div class="container">
<?php echo check_message(); ?>

<div class="col-sm-9">
<div class="">
<div class="panel panel-default">
<div class="panel-body">
<fieldset>

<legend><h2 class="text-left">Order Details</h2></legend>


<strong>
<table>
<thead>
<tr>
<th width="200px"></th>
<th width="300px"></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>Name</td>
<td>:<?php echo $singlecustomer->FIRSTNAME .' '.$singlecustomer->LASTNAME; ?>
</td>
<td><input type="hidden" id="addr" name="addr" value="<?php echo $singlecustomer-
48
>CITYADDRESS ; ?>"></td>
<!-- <td>Date: <?php echo $_POST['form_datetime'];?> </td> -->

</tr>
<tr>
<td>Address</td>
<td>: <?php echo $singlecustomer->ADDRESS ; ?></td>
<td><input type="hidden" name="ORDERNUMBER" id="ORDERNUMBER"
value="<?php echo $res->AUTO; ?>"></td>
<td>Order Number :<?php echo $res->AUTO; ?></td>

</tr>

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

</strong>
<table class="katerina-table" id="table">
<thead >
<tr>
<th width="10">#</th>
<th>Product</th>
<th>Description</th>
<th>Quantity</th>
<th style="width:100px">Price</th>
<th style="width:120px">Total</th>
</tr>
</thead>
<tbody>

<?php
if (!empty($_SESSION['katerina_cart'])){
echo '<script>totalprice();</script>';
$count_cart = count($_SESSION['katerina_cart']);
for ($i=0; $i < $count_cart ; $i++) {
$query = "SELECT * FROM `tblproducts` p , `tblcategory` c
WHERE p.`CATEGORYID`=c.`CATEGORYID` and
PRODUCTID='".$_SESSION['katerina_cart'][$i]['productid']."'";
$mydb->setQuery($query);
$cur = $mydb->loadResultList();
foreach ($cur as $result){
?>

<tr>
<td></td>
<td><img src="admin/modules/product/<?php echo $result->IMAGES ?>"
width="50px" height="50px"></td>
49
<td><?php echo $result->PRODUCTNAME ?></td>
<td><?php echo $_SESSION['katerina_cart'][$i]['qty'] ?></td>
<td>&#8377 <?php echo $result->PRICE ?></td>
<td>&#8377 <output><?php echo
$_SESSION['katerina_cart'][$i]['price']?></output></td>

</tr>
<?php
}

}
}
?>

</tbody>

</table>
<table class="katerina-table">
<thead>
<tr>
<th width="150px"></th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>Payment Method</td>
<td>
<!-- <input type="text" id="date"> -->
<!-- <input type="button" id="btn" value="Show"/> -->
<select onchange="totalprice()" class="form-control" id="paymethod"
name="paymethod">
<option value="Cash on Delivery">Cash on Delivery</option>
<option value="Cash on Pickup">Cash on Pickup</option>
</select>
<input type="hidden" placeholder="HH-MM-AM/PM" id="ftime" name="ftime"
value="<?php echo date('y-m-d h:i:s') ?>" class="form-control"/>

<!-- <input type="text" value="<?php //echo date("m/d/Y h:i:s"); ?>"


id="form_datetime" name="form_datetime" class="form-control input-sm"/></td> -
->
<td><div align="right"> Total Price : </div>
<div align="right"> Delivery Fee : </div></td>
<td><div align="left"> &#8377 <span id="sum">0.00</span></div>
50
<div align="left"> &#8377 <span id="fee">0.00</span></div></td>

<tr>
<td></td>
<td><div id="note"></div></td>
<td><div align="right"> Overall Price :</div></td>
<td><div align="left"> &#8377 <span id="overall"></span></div>
<input type="hidden" name="alltot" id="alltot" value=""/></td>

</tr>
</tbody>
</table>
</fieldset><br/>
<a href="index.php?page=6" class="btn btn-default"><span class="glyphicon glyphicon-
arrow-left"></span>&nbsp;<strong>View Cart</strong></a>
<strong><button type="button" class="btn btn_katerina pull-right" name="btn" id="btn"
onclick="return validatedate();" /></strong>Submit Order <span class="glyphicon glyphicon-
chevron-right"></span></button>
</div>
</div>
</div>
</div>
</form>
<?php require_once 'sidebar.php';?>
</div>

</body>
</html>

51
5.2.5 Cartlist.php

<div class="container">
<div class="col-lg-9">
<?php

check_message();

?>

<div class="col-md-12 col-sm-8 content">


<div class="row">
<div class="col-md-12">
<div class="panel panel-default panel-shadow">
<div class="panel-heading panel-katerina" >
<h1> Cart List </h1>
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table table-default " id="table" >
<thead>
<tr>
<td>
<div class="culomn4"><div style="float: left; width:90px">Products</div></div>
<div class="culomn4"><div style="float: left; width:250px">Description</div></div>
<div class="culomn4"><div style="float: left; width:200px">Quantity</div></div>
<div class="culomn4"><div style="float: left; width:110px">Price</div></div>
<div class="culomn4"><div style="float: left; width:50px">Total</div></div>
</td>
</tr>
</thead>

<body onload=" totalprice(); ">


<tr>
<td>
<div class="katerina_scroll_cart" >
<?php

if (!empty($_SESSION['katerina_cart'])){

echo '<script>totalprice()</script>';
52
$count_cart = count($_SESSION['katerina_cart']);

for ($i=0; $i < $count_cart ; $i++) {

$query = "SELECT * FROM tblproducts p, tblcategory o


WHERE o.`CATEGORYID`=p.`CATEGORYID` and `PRODUCTID` =
'".$_SESSION['katerina_cart'][$i]['productid']."'";
$mydb->setQuery($query);
$cur = $mydb->loadResultList();

foreach ($cur as $result) {

?>

<form id="form" action="cart/controller.php?action=edit" method="POST"


onmousemove=" if(QTY.value=='' || QTY.value<1){
QTY.value =1;
}else{
if(parseInt(availqty.value)> QTY.value ){

var price = '<?php echo $result->PRICE; ?>';


TOT.value=parseFloat(QTY.value)*parseFloat(PRICE.value);

var totalval =parseFloat(QTY.value) * parseFloat(price);


TOTAL.value = totalval.toFixed(2);

totalprice();
}else{
QTY.value = parseInt(availqty.value);
} }"

oninput="

if(parseInt(availqty.value)> QTY.value ){

var price = '<?php echo $result->PRICE; ?>';


TOT.value=parseFloat(QTY.value)*parseFloat(PRICE.value);

var totalval =parseFloat(QTY.value) * parseFloat(price);


TOTAL.value = totalval.toFixed(2);

totalprice();
53
}else{
alert('The quantity that you put is greater than the available quantity of the
product.');
QTY.value = parseInt(availqty.value);
}">

<div class="column4">
<div style="float: left; width:90px">
<img src="admin/modules/product/<?php echo $result->IMAGES; ?>" onload="
totalprice() "
width="50px" height="50px">
</div>
<input type="hidden" name="availqty" value="<?php echo $result->QTY; ?>">

<div style="float: left; width:250px"><?php echo $result->PRODUCTNAME ;


?></div>

<div class="form-inline" style="float: left; width:190px">


<input class="form-control" autocomplete="off" id ="QTY" name="QTY<?php
echo $result->PRODUCTID ?>" type="number" value="<?php echo $_SESSION['katerina_cart'][$i]['qty'];
?>">

<input type="hidden" id="PRICE" name="PRICE" value="<?php echo $result-


>PRICE; ?>" />
<input type="hidden" id="TOT" name="TOT<?php echo $result->PRODUCTID
?>" value="<?php echo $_SESSION['katerina_cart'][$i]['price']; ?>" />

<a href="cart/controller.php?action=delete&id=<?php echo $result-


>PRODUCTID; ?>" class="btn btn-link" >Remove</a>
<button type="submit" name="update" class="btn btn-link" >Update</button>
</div>

<div style="float: left; width:50px">&nbsp;&nbsp;&#8377<span id="price1"><?php


echo $result->PRICE; ?></span></div>
<div id="test" style="float: right; width:50px">&#8377<output name="TOTAL"
for="QTY price"></output></div>
</div>
</form>

<?php
}
}
}else{
echo "<h1>There is no item in the cart.</h1>";
54
}
?>
</div>

</td>

</tr>
<tr >
<td>

<div class="culomn4"><div style="float: right;"><h1> Total Price : &#8377<span


id="sum">0</span></h1></div></div>
</td>

</tr>

</body>
</table>
</div>
</div>
</div>
<a href="index.php?page=2" class="btn btn-default pull-left"><span class="glyphicon glyphicon-
arrow-left"></span>&nbsp;<strong>Add New Order</strong></a>
<a href="index.php?page=7" name="proceed" class="btn btn_katerina pull-right"
><strong>Proceed And Checkout</strong> <span class="glyphicon glyphicon-chevron-right"></span></a>
</div>
</div>
</div>
</div>
<?php require_once ('sidebar.php');?>
</div>

55
5.3 Testing Approaches

WHITE-BOX TESTING:
In white-box testing an internal perspective of the system, as well as programming skills, are used to design
test cases. The tester chooses inputs to exercise paths. Through the code and determine the appropriate
outputs.
WHITE BOX TESTING (also known as Clear Box Testing, Open Box Testing, Glass Box Testing,
Transparent Box Testing, Code-Based Testing or Structural Testing) is a software testing method in which
the internal structure/design/implementation of the item being tested is known to the tester.

BLACK-BOX TESTING:
Black box testing have little or no regard to the internal logical structure of the System, it only examines the
fundamental aspect of the system. It makes sure that Input is properly accepted and output is correctly
produced.
BLACK BOX TESTING, also known as Behavioural Testing is a software testing method in which the
internal structure/design/implementation of the item being tested is not known to the tester. These test scan
be functional or non-functional, though usually functional.

FUNCTIONAL TESTING:
Functional tests involve exercising the code with nominal input values which gives the expected results and
boundary values are known.
FUNCTIONAL TESTING is a type of software testing whereby the system is tested against the
functional requirements/specifications.
Functions (or features) are tested by feeding them input and examining the output. Functional
testing ensures that the requirements are properly satisfied by the application.

PERFORMANCE TESTING:
Performance tests are designed to verify response time. If the wrong data is entered then the system does not
allow it and calculations are not performed.

56
5.3.1 Unit Testing

The first test in the development process is the unit test. The source code is normally divided into modules,
which in turn are divided into smaller units called units. These units have specific behaviour. The test done
on these units of code is called unit test. Unit test depends upon the language on which the project is
developed.
Unit tests ensure that each unique path of the project performs accurately to the documented specifications
and contains clearly defined inputs and expected results.
UNIT TESTING is a level of software testing where individual units/ components of software are tested.
The purpose is to validate that each unit of the software performs as designed. A unit is the smallest testable
part of any software. It usually has one or a few inputs and usually a single output.

5.3.2 Integration Testing

Integration testing (sometimes called integration and testing, abbreviated I&T) is the phase in software
testing in which individual software modules are combined and tested as a group. Integration testing is
conducted to evaluate the compliance of a system or component with specified functional requirements.
It occurs after unit testing and before validation testing. Integration testing takes as its input modules that
have been unit tested, groups them in larger aggregates, applies tests defined in an integration test plan to
those aggregates, and delivers as its output the integrated system ready for system testing.

5.3.3 Beta Testing

A beta test is a type of testing period for a computer product prior to any sort of commercial or official
release. Beta testing is considered the last stage of testing, and normally involves distributing the product to
beta test sites and individual users ("beta testers") outside the company for real-world exposure.
Other beta tests may simply offer the product for a free trial download over the Internet. Beta testing is often
preceded by a round of testing called alpha testing.
Inputs provided by the end-users helps in enhancing the quality of the product further and leads to its
success. This also helps in decision making to invest further in the future products or the same product for
improvisation.

5.4 Modifications and Improvements

 Modifications are required all the time in the project.

 Modification in this project can be creating a mobile version of the site and deploying it on the web.

 Improvement is needed in the encryption of password that is stored in database.

 And use of SSL in addition is required.


57
5.5 Test Cases

Valid Credentials for Admin Page

Redirected to Admin Page


58
Invalid Credentials for Admin Page

Redirected to Home Page

59
Manage/Edit User

Update User Accounts

60
Chapter 6 Results and Discussions
6.1 Test Reports

Valid Credentials for Staff Page

Redirected to Staff Page


61
Invalid Credentials for Staff Page

Redirected to Home Page

62
6.2 User Documentation
HOW TO REGISTER WITH THE WEBSITE?

The User who is new to the system can register with the system in order to access the Website.

The user who is not registered with the system can only view the introduction about the System.

In order to get registered with the website, the user has to follow the following steps:

1. Go to the Login Section which is on the right side of the home page of the website.
a. Click on the SIGN UP button.

After clicking on SIGNUP button user will be redirected on this page

63
Enter the details.

Click on the “Sign up”.

A message will popup for successful registration of the user on the screen.
64
HOW TO ORDER CAKE FROM OUR WEBSITE

 AFTER SUCCESSFUL REGISTRATION THE USER WILL BE REDIRECTED TO THE HOME PAGE.

 FROM THERE GOTO MENU PAGE TO SELECT FORM VARIOUS CATEGORIES AVAILABE ON
THE WEBSITE.

 CHOOSE THE CAKE / PRODUCT YOU WANT.

CLICK ON ORDER NOW BUTTON TO ADD THE ORDER IN CART

65
ITEM added to cart.

 IF user wants to add another product click on ADD ANOTHER PRODUCTS button, IF NOT THEN…

 Check the product, add the quantity you need & then…

 Click on PROCEED AND CHECKOUT button.

After clicking on PROCEED AND CHECKOUT button user will be redirected here.
66
 Check the order.

 Select the payment method you wish.

 The shop does not deliver outside Dombivali so if you resideoutside Dombivali you need to select Cash on
pickup payment method.

 If you reside inside Dombivali you can opt for Cash on delivery.

 This message will popup if u choose CASH ON DELIVERY and reside outside Dombivali.

67
After selecting CASH ON PICKUP payment method click on SUBMIT button and your order will be
placed successfully.

68
Chapter 7 Conclusions
7.1 Conclusion

 The online cake shop system allows the user to order the cakes or pastries in which they are interested.
 Orders will be confirmed till 5 pm every day, orders after 5 pm will be confirmed in next office hours.
 Once the order is confirmed message will be sent to the user.
 The admin can add categories, products, cakes, pastries for sale.

7.1.1 Significance OF the System

 The system is capable of handling users properly by providing unique user id to the user.
 Only Admin Can Add or Delete any product or category.
 The Categorization of the cakes or pastries or breads simplifies the job of the user to choose among various
products available.

7.2 Limitation of the system


 Users have to be first registered with the system, and then only they can order products from the website.
 Admin can only add the products.
 Admin cannot update or delete the data of users.

7.3 Future Scope of the Project

 The website can be implemented in various forms like tablet version mobile version application etc.
 The project can be implemented on commercial level with modifications.
 It acts a great platform for genuine Customers and buyers.

7.4 Refrences

1) www.google.com
2) www.w3cschools.com
3) www.phpbuddy.com
4) www.mysql.com
5) www.phpeasystep.com

69

You might also like