Final Project Report Shivani PDF

You might also like

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

MCSP – 060

PROJECT PROPOSAL
ON
SALES AND INVENTORY MANAGEMENT SYSTEM
(Online Electronic Store)

BY

SHIVANI SHRIVASTAVA
[Enrollment No. :166248840]

Under Guidance
of
GAYATRI KUMARI GUPTA

Submitted to the School of Computer and Information Sciences, IGNOU


in partial fulfilment of the requirements
for the award of the degree
Master of Computer Applications (MCA)
2019

Indira Gandhi National Open University


Maidan Garhi
New Delhi – 110068.
SCHOOL OF COMPUTER AND INFORMATION SCIENCES
IGNOU, MAIDAN GARHI, NEW DELHI – 110 068

II. PROFORMA FOR THE APPROVAL OF MCA PROJECT PROPOSAL (MCSP-060)

(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.)

Enrolment No.: ………………………


Study Centre: ……………….……….
Project Proposal No :…………………..
Regional Centre:…… RC Code:……
(for office use only)
E-mail: ………….………..…………...
Mobile/Tel No.: …..………………….

1. Name and Address of the Student ………………………..…………………………………….

………………………………………………………………

2. Title of the Project .………..…………………………………………………….

3. Name and Address of the Guide …..………………………………………………………….

………………………………………………………………

Ph.D* M.Tech.* B.E*/B.Tech.* MCA M.Sc.*


4. Educational Qualification of the Guide
(Attach bio-data also)
(*in Computer Science / IT only)
5. Working / Teaching experience of the Guide** ……………………………………………………………

……………………………………………………………………………………………………………….
(**Note: At any given point of time, a guide should not provide guidance for more than 5 MCA students of IGNOU)

6. Software used in the Project ……………………………………………………………..

7. If already pursued BCA/BIT from IGNOU,


mention the title of the project (CS-76) and the s/w used……………………………………………………

8. Project title of the Mini Project (MCS-044) and the s/w used………………………………………………

9. Is this your first submission? Yes No

Signature of the Student Signature of the Guide


Date: ………………… Date: …………………….

For Office Use Only Name:……………………………..............

…………………………………………….
Signature, Designation, Stamp of the
Project Proposal Evaluator
Approved Not Approved Date: …………………….
Suggestions for reformulating the Project:
CERTIFICATE OF ORIGINALITY

This is to certify that the project report entitled ____________________________________

submitted to Indira Gandhi National Open University in partial fulfilment of the requirement

for the award of the degree of MASTER OF COMPUTER APPLICATIONS ( MCA) , is

an authentic and original work carried out by Mr. / Ms.___________________________________

with enrolment no. _______________________under my guidance.

The matter embodied in this project is genuine work done by the student and has not been

submitted whether to this University or to any other University / Institute for the fulfilment of the

requirements of any course of study.

………………………. ...…………………….

Signature of the Student: Signature of the Guide

Date: ……………….. Date: …………………

Name and Address Name, Designation


of the student and Address of the
Guide:
……………………….. ………………………..
……………………….. ………………………..
……………………….. ………………………..
……………………….. ………………………..

Enrolment No…………
ACKNOWLEDGEMENT

I would like to take this opportunity to express my gratitude toward all the people who
have in various ways, helped in the successful completion of my project.

I must convey my gratitude to prof. Gayatri Kumari for giving me the constant sources
of inspiration and help in preparing the project , personally correcting my work and
providing encouragement through the project.

I also thank me all faculty members for steering me through the tough as well as easy
phases of project in a result oriented manner with concern attention.

Thanking You
ABSTRACT

Sales and Inventory Management System is one of the basic problems in almost every
company. Before computer age and integration, paper tables and paperwork solutions were
being used as inventory management tools. These we very far from being a solution,
took so much time, even needed employees just for this section of organization. There was
no an efficient solution available in the many companies during these days. Every process
was based on paperwork, human fault rate was high, the process and the tracing the
inventory losses were not possible, and there was no efficient logging systems. After the computer
age, every process is started to be integrated into electronic environment. Now we have
qualified technology to implement new solutions to these problems. Software based
systems bring the advantages of having the most efficient control with less effort and
employees. These developments provide new solutions for also inventory systems in
this context. In this paper, a new solution for Sales and Inventory System(SIMS) is
designed and implemented.
The Sales and Inventory System is an automated version of manual sales
and inventories system. It can handle all details about an Inventory. The details
includes Inventory personnel details, Sales details, Products details, Annual transection
details ,etc. In case of manual system they need a lot of time, manpower etc. Here
almost all work is computerized. So the accuracy is maintained. It is the job of the
administrator to insert update and monitor the whole process. When a user log into the system, He
would only view details of the Inventory. He can't perform any changes. Sales and
Inventory Management System is software which is helpful for Inventories. In the
current system all the activities are done manually. It is very time consuming and
costly. Our Sales and Inventory Management System deals with the various activities
related to the Inventories.
There are mainly 2 modules in this software
• Inventory Module
• Sales Module
Online Sales and
Inventory Management
System
MCSP – 060
PROJECT PROPOSAL
ON

SALES AND INVENTORY MANAGEMENT SYSTEM


(Online Electronic Store)

BY

SHIVANI SHRIVASTAVA
[Enrollment No. :166248840]

Under Guidance
of
GAYATRI KUMARI GUPTA

Submitted to the School of Computer and Information Sciences, IGNOU


in partial fulfilment of the requirements
for the award of the degree
Master of Computer Applications (MCA)
2019

Indira Gandhi National Open University


Maidan Garhi
New Delhi – 110068.
Enrollment No. 166248840

Table of Contents
1.Introduction
1.1 Background……………………………………………………………………...….....................04
1.2 Objective………………………………………………………………………...….....................05
1.3 Purpose and Scope of Project…………………………………………………...….....................06
2. System Analysis
2.1 Identification of Need……………..……………………………………...…………………....…07
2.2 Preliminary Investigation…………………………………………………………...…….............07
2.3 System Study……………………………………….…………………………….........................08
2.4 Feasibility Study……………………………………….……………………………....................09
2.5 Project Planning……….……………………………………………………………………........10
2.6 Project Scheduling………………………..…………………………….....……………………...11
2.7 Software Requirement Specification…………………………………………….....……….........12
3. Data Model
3.1 Data Flow Diagram……………..…………………………………………...…………………....13
3.2 Context Flow Diagram………..…………………………………………...……………………..18
3.3 Design Flow Chart………..…………………………………………...………………..………..19
3.4 Entity Relationship Model…………………………………………………………...……...........20
3.5 Use Case Diagram……………………………………….……… ……………….........................21
3.6 Class Diagram……….…………………………………………………………………................23
3.7 Activity Diagram……………………………………….....………...............................................24
3.8 State Diagram……………………………………………………………………………….........25
4. System Design
4.1 Modularization Detail…………………………………………………….……………................26
4.2 Data Dictionary………..………………………………………………………………..…..........31

Online Electronic Store 1


Enrollment No. 166248840

4.3 Procedural Design……………………………………………………………….........................33


4.4 User Interface Design…………………………………………………………….......................34
4.5 Test Cases……………………………………………………….................................................43
5. Coding
5.1 Complete Project Coding…………………………………………………….………..................45
5.2 Standardization of Coding………………………………………………………..….................117
6. Testing
6.1 Testing Technique and Strategy Used……………………………….……….............................118
6.2 Testing Plan Used…………………………………….................................................................120
6.3 Test reports for Unit Test Cases and System Test Cases ………………………………............123
6.4 Testing Procedure….……………...............................................................................................125
7. System Security Measure
7.1 Database Security……………………………….………............................................................127

8. Cost Estimation of the Project along with Cost Estimation Model…………………………….........128

9. Future scope and further enhancement of the Project……………………………………………..132

10. Bibliography……………………………………………….……………………………....……….133

11. Conclusion………………………………………………….……………………………….….…..134

12. Appendix……………………………………………….…………………………………..………135

REFFERENCES………………………………………………………………………………..……..136

Online Electronic Store 2


Enrollment No. 166248840

List of Figure & Table

Figure 1 : Gantt Chart for Sales and inventory management system……………………………..……..11


Figure 2 : Context Level DFD ……………………………………………………………………..........14
Figure 3 : Level “0” DFD……………………………………………………………………………......14
Figure 4 : Level “1” DFD……………………………………………………………………..................15
Figure 5 : Level “2” DFD …………………………………………………………………….................16
Figure 6 : Context Flow Diagram………..……….……………………………………..........................18
Figure 7 : Design Flow Diagram …………...………………………………………………..................19
Figure 8 : Entity Relationship Diagram…………………………………................................................20
Figure 9 : Use Case Diagram………………….……………………………...........................................21
Figure 10 : Class Diagram………………………………………………................................................23
Figure11 : Activity Diagram …………………………………….............................................................24
Figure12 : State Diagram ……...…………………………………...........................................................25
Figure13 : Procedural Design…...…………………..……………...........................................................33
Figure14 : User Interface Design…...…………..…..……………..........................................................35
Figure15 : Data Dictionary/ Table...…………..…..……………............................................................33

Online Electronic Store 3


Enrollment No. 166248840
1.INTRODUCTION

❖ 1.1 Background :

The “Sales and Inventory Management System” has been developed to override the problem prevailing
and practicing manual system. This software is supported to eliminate and in the same cases reduce the
hardship faced by the existing system. Moreover this system is designed for the Particular Need of
Company to carry out operation in a smooth and effective manner.

Every Organization, whether big or small, has challenge to overcome and managing the information of
Customer, Inventory, Sales, Supplier, Payment. Every “Sales and Inventory Management System” has
Different inventory needs, Therefore we design exclusive employee management system that are
adapted to your managerial requirement. This is design to assist in strategic planning, and will help you
ensure that yourorganization is equipped with the right level of information and details for your future
goal. Also, for those busy executive who are always on the go. Which will allow you to manage your
work force anytime at all times. This system will ultimately allow you to better manage resource.

“Sales And Inventory Management System” as describe above, can lead to error free, Secure reliable
and fast Management system. It can assist to user to concentrate on their other activities rather to
concentrate on the record keeping. Thusit willhelp Organization in better utilization of resources.

The “Sales and Inventory Management System” has been developed to override the problems prevailing
in the practicing manual system. Moreover the system is designed for the particular need of the company
to carry out operations in a smooth and effective manner.

Online Electronic Store 4


Enrollment No. 166248840

❖ 1.2 Objective :

The main objective of “Sales and Inventory Management System” is to manage the detail of Purchasing,

Payment, Supplier, Customer, Sales. It manage all the information about Purchasing, Inventory, Sales,

Purchasing. The Project is totally built at administrative end and thusonly the administrator is guarantee

to access. The purpose of project build and application program to reduce the manual work for

managing the purchasing, Payment, Inventory, Supplier.

Some of the following Objectives as follow:-

➢ To provide Searching Facilities to based on various factor. Such as Purchasing, Supplier,

Customer Sales.

➢ Manage the information of Inventory.

➢ It Generate the report on Purchasing, Payment, Inventory.

➢ To offer easy, simple and quick booking experience to the guests.

➢ Manage the information of customer.

➢ You can easily export PDF for purchasing, Inventory, customer.

Online Electronic Store 5


Enrollment No. 166248840

❖ 1.3 Purpose :

The purpose of the project is to build asales and inventory management software in order to reduce

the manual work for maintaining the details of purchasing, inventory and many more tasks. This

software will help the Electronic Store to complete all works fast and efficient without time wastage.

It provide all features and help to both hotel and its subsidiaries.

❖ 1.3 Scope :

It may help collecting perfect management in detail. In a very short time, the collection will be

obvious , Simple & sensible. It will help person to know the management of passed year

perfectly and vividly. It will also help in current all works and relative to “Sales and Inventory

Management System”. It will also reduced the cost of collecting and management & Collection

Procedure will go on smoothly.

Our Project aim at Business process automation, i.e, we have tried to computerize various

process of “Sales and Inventory management System”.

• In Computer System the person to fill the various forms and number of copies of the forms

can be easily generated at a time.

• In Computer System , It is not necessary to create the manifest but we can directly print it, which

saves our time.

• To utilize resource in efficient manner by increasing their productivity through automation.

• The system Generate types of information that can be used for various purpose.

Online Electronic Store 6


Enrollment No. 166248840

2. SYATEM ANALYSIS

❖ 2.1 Identification Of Needs :

Online Electronic Store (Sales and Inventory Management System) describe above can lead to error
free, secure reliable and fast management system for shopping.
It can assist the staff to concentrate on their related (for shopping) activities rather to
concentrate on record and report of issues Product, registration, and supplier. This will help
organization in better utilization of human resources.
In this phase, the user identifies the need for new or improve system. In large organization this
identification may be a part of a system planning Process.

❖ 2.2 Preliminary Investigation :

Benefit to Organization :
The Organization will obviously be able to gain benefit such as a saving in operation cost,
reduction in paper work, better utilization of human resources and more represent able image
increase goodwill. The other benefit are improved services and faster and better access to up-to
date information.

Initial Cost :
The initial cost of setting up the system will include the cost of hardware (server/client, Network
adapter and related hardware), Software (Server OS , add-on software, utilization) & labor (setup
&maintenance ). The same has to bear by the organization.

Running Cost :
Besides, the initial cost the long term cost will include the running cost for system including
the AMC, Product Charges, Cost for human resources, Cost for update/renewals of various
related software.

Online Electronic Store 7


Enrollment No. 166248840

❖ 2.3 System Study :

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- what all problems exist in
the present system? What must be done to solve the problem? Analysis begins when a user or manager
begins a study of the program using existing system.
During analysis, data collected on the various files, decision points and transactions
handled by the present system. The commonly used tools in the system are Data Flow Diagram,
interviews, etc. Training, experience and common sense are required for 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
frame work of the solution. Thus it should be studied thoroughly by collecting data about the system.
Then the proposed system should be analyzed thoroughly in accordance with the needs. System analysis
can be categorized into four parts.
• System planning and initial investigation
• Information Gathering
• Applying analysis tools for structured analysis
• Feasibility study
• Cost/ Benefit analysis.

In the current system we need to keep a number of records related to the Inventory and want to enter
the details of the Inventory and the marks manually. In this system only the teacher or the school
authority views the mark of the Inventory and they want to enter the details of the Inventory. This is
time consuming and has much cost.

Online Electronic Store 8


Enrollment No. 166248840

❖ 2.4 Feasibility Study :


At this stage, the analyst estimate the urgency of the project and estimate the develop cost.
In feasibility analysis, we have to study following :

➢ Technical Feasibility :
Technical Feasibility is concern with the availability of hardware and software required for the
development of the system, to see compatibility and maturity of the technology proposed to be
used and to see the availability of the required technical manpower to develop the system.
After the study we come to conclusion that we proceed further with the tool and
develop environment chosen by us. This was important in our cases as we were working on
two various phases of the department that will need to be integrated in future to make an
extended system.

➢ Operational Feasibility :
Operational Feasibility is just about problem that may arises during operation. There are two
accept related with this issue :
• What is the probability that the situation developed may not be put to user or may not
work ?

➢ Economic Feasibility :
It is the measure of cost effectiveness of project. The economic feasibility is nothing but
judging whether the possible benefit of solving the problems is worthwhile of not. At the
feasibility study level, it is impossible to estimate the cost because member’s requirement and
alternative situation has not been identified at this stage. However, When the specific
requirement and situation has been identified, the analyst weight the cost and benefit of all
situation, this is called “Cost benefit analysis.”

Online Electronic Store 9


Enrollment No. 166248840

❖ 2.5 Project Planning :

Software Project Planning can be viewed as following :

1.Within the Organization : How the Project is to be implemented ? What various constrain
(time cost, staff)? What is market strategy ?

2. With respect to the customer :weekly or timely meeting with the customer with presentation
on status report. Customer feedback is also taken and further modification and developments.
Are done. Project milestone and deliverables are also present to customer.
For a successful software project, the following step can be followed :
• Select a project :
➢ Identifying project’s aim and objective
➢ Understanding requirement and specification
➢ Method of analysis , design and implementation
➢ Testing Technique
➢ Documentation
• Project milestone and delivered
• Budget Allocation
• Project Estimate
➢ Cost
➢ Time
➢ Size of Code
➢ Duration
• Resource Allocation
➢ Hardware
➢ Software
➢ Previous relevant project information
➢ Digital shopping

Online Electronic Store 10


Enrollment No. 166248840

❖ 2.6 Project Scheduling:

Gantt Chart :
Gantt chart are a project control technique that can be used for several purpose including scheduling
and planning. Gantt chart is also known bar chart with each box representing an activity.

Gantt charts mainly used to allocate resources to activities. The resources allocated to activities include
staff, hardware, and software. Gantt charts (named after its developer Henry Gantt) are useful for
resource planning. A Gantt chart is special type of bar chart where each bar represents an activity. The
bars are drawn along a timeline. The length of each bar is proportional to the duration of the time
planned for the corresponding activity.

Work Break down Time taken in days


1 week---2week-------3week--------4week---------------- 5week-----

Preliminary Investigation

Investigation

Analysis

Design

Coding

Testing

Documentation

Implementation

Online Electronic Store 11


Enrollment No. 166248840

❖ 2.7 Software Requirements Specification :


The Software Requirements Specification is produced at the culmination of analysis task. The
function and performance allocated to software as part of system engendering are refined by
establishing a complete information description, a detailed function and behavioral description , an
indication of performance requirement and design constrain, appropriate validation criteria, and
other data patient to requirement.
➢ The main aim of this system is to keep records of the complete inventory.
➢ It support for inventory management helps you record and track material on the basis of
both quantity and value.
➢ It improves cash flow , visibility, and decision making.
➢ For warehousing management, you can track quantity and value of all your material,
perform physical inventory, and optimize your warehouse resources.

Functional Requirement :
• Input Output :-
➢ System shall have a from to accept the customer detail.
➢ System shall have a form to accept the plant details.
➢ System shall display transaction details.
➢ System should provide facility for changes of address.
Processing :
➢ System should automatically generate the bill.
➢ System should inform the pending order and makes changes if the order is dispatched.
Error Handling :
➢ Should report any error on duplicate primary keys.
➢ Should report any data type mismatch any field on the form.
➢ Should report on any ‘Invalid dates’.
➢ Should report any violantation of authorization of right.
➢ Should report any Invalid Login Error.

Online Electronic Store 12


Enrollment No. 166248840

3. DATA MODEL

❖ 3.1 Data Flow Diagram :

A Data Flow Diagram (DFD) is a graphical representation of the "flow" of data through an
Information System. A data flow diagram can also be used for the visualization of Data Processing. It is
common practice for a designer to draw a context-level DFD first which shows the interaction between
the system and outside entities. This context-level DFD is then "exploded" to show more detail of the
system being modeled.
A DFD represents flow of data through a system. Data flow diagrams are commonly used during
problem analysis. It views a system as a function that transforms the input into desired output. A DFD
shows movement of data through the different transformations or processes in the system.
Dataflow diagrams can be used to provide the end user with a physical idea of where the data they
input ultimately has an effect upon the structure of the whole system from order to dispatch to restock
how any system is developed can be determined through a dataflow diagram. The appropriate register
saved in database and maintained by appropriate authorities.
DATA Diagram Notation

FUNCTION

DATABASE

DATAFLOW

Input/Output

Online Electronic Store 13


Enrollment No. 166248840

Transaction Primary Detail Inventory


Salesman Manager

Report Report Review

Feedback
Feedback
Sales and
Inventory Transaction Checking
Management
System
Report Review
Feedback

Item
Information
Sales Manager
Admin Feedback
Account Detail

DFD level : Context Level Diagram

Log In System

Username, Password Feedback

New Info User Information


Change Create New
Info Admin User
Feedback Feedback

New/Categories Detail
New
Price
Change Item Add New
Price Item
Categories
Feedback Feedback

DFD LEVEL 0 - Application Process : Administrator

Online Electronic Store 14


Enrollment No. 166248840

Authenticatio
LogIn
n
LogIn Admin
System Detail
Logou
User t
Username, Feedback
Password
Admin

DFD LEVEL 1.1 - Functional Process : LogIn System

User

Feedback Save New


Info
New Info
Change Admin
Info

DFD LEVEL 1.2 - Functional Process : Change Information

User

Create Feedback
User
User Info
Admin Create a
new user
Feedback

DFD LEVEL 1.3 - Functional Process : Create a New User

Online Electronic Store 15


Enrollment No. 166248840

Item
Sales New
Item Feedback

Item’s Detail
Admin Add New
Item
Feedback

DFD LEVEL 1.4 - Functional Process : Add New Items

LogIn System

Username, password User detail


Feedbac View Report
k
Change Admin View
Informatio Report
New Info
n Report Detail

Report
Detail

Chec Inventory status


Inventory
k
Trends
Check Inventory
Status

DFD LEVEL 2 – Inventory Manger

Online Electronic Store 16


Enrollment No. 166248840

LogIn
System
Username/password Feedback

Sales Manager Check


Change
Payment
Info
Bills Detail

Exception Create

Reports Sales recoerd

DFD LEVEL 2 – Sales Manger

Online Electronic Store 17


Enrollment No. 166248840

❖ 3.2 Context Flow Diagram (CFD):

A Context Flow Diagram is a top level (also known as level 0) data flow diagram. It only contains
one process node (process 0) that generalizes the function of the entire system in relationship to external
entities. A Context Flow Diagram is a diagram that shows the inputs and output of a system. It shows all
the external entities with the system and the data flows between these entities and the system.

Gives order to, enquire give order to


n Admin Supplier
Customer
su
Supply Provide
products goods
Add View products,
products,
Order
details, Order ,
Generate bills,
Supplier Bill,report
details s

Sales and
inventory
management
system

Data base

Online Electronic Store 18


Enrollment No. 166248840
❖ 3.3 Design Flow Chart :

START

Input Username
& password

Check Username
password on users Display Error
table on db

True

Check user status

False
True Status =1

False
Display Status=2
Administrator main

Display Sales Status=3


Manager

Display Inventorary
Manger

STOP

LogIn Function of Sales & Inventorary Management System

Online Electronic Store 19


Enrollment No. 166248840
❖ 3.4 Entity Relationship Diagram :
An Entity Relation(ER) Diagram is a specialized graphics that illustrates the interrelationship between
entities in a database. ER diagrams often use symbols to represent 3 different types of information.
Boxes are commonly used to represent entities. Diamonds are normally used to represent relationships
and ovals are used to represent attributes.

Login_username

#login_id
userpwd
User_name Log In
user_id
Role id
User_mob user has roles
Role_name

User_ema
Per-id
il
permision
User_add n Per role id

Per
cus_name module
manag Inv_date
e
Cus_id
Pay_date Inv_num
Cus_mobil inventory
payment
e custome Inv_id
Pay_id
r
Cus_add ha Inv_ite
Pay_amt
s m
Cus_email
sales
Sales_desc

Sales_type
Sales_id

Online Electronic Store 20


Enrollment No. 166248840

❖ 3.5 Use Case Diagram :

❖ Use Case Diagram for Supplier : -

Login Id and Pwd

Checks

Tracks Order

Dispatch Order On

Send Invoice

Update Record

Online Electronic Store 21


Enrollment No. 166248840

❖ Use Case Diagram for Customer : -

Studies Requirement

Make list of
Order

Place the Order

Makes Payment

Invoice

Online Electronic Store 22


Enrollment No. 166248840

❖ 3.6 Class Diagram :


Customer
Cust_id
Name
Address1
Cust_City
Pincode
Order
Addcust() Order_no.
Updatecust() Ordercredate
Getcustdet() Order_Status
Payment Shipment_date
Amount
Payment Date Calcbilltotal()
Caltotalweiht()
Makepayment()
GetInvoice()

Order Detail
Orderno.
Credit/Debit Cash On Delivery Materialqty
Materialvalue
Number
CalcSubtotal
Type
Expiry Date

Validating

Product
Productcode
ProductName
ProductDetail
Productprice

Online Electronic Store 23


Enrollment No. 166248840

❖ 3.7 Activity Diagram :


start

Login PAGE

Register Username & Password


Login

Enter Name ,email, phone Username & Password


no. to login

Receive Conformation

Search Product List Select itemto purchase

Click button to view Item

Click on Add to Purchase

Fill their detail & booked Item

Receive Conformation

Logout

Online Electronic Store 24


Enrollment No. 166248840

❖ 3.8 State Diagram :

Supplier Transaction Customer Invoice

Validation

Online Electronic Store 25


Enrollment No. 166248840

4. SYSTEM DESIGN
❖ 4.1 Modularization Detail :
➢ Modules of Login

➢ Design Assumption:
This module is designed with the intension to provide security to user. The Login contains
the necessary information of the tables and forms included in the applications.

➢ Identification of Module
• Username:
Allows user to enter their name.

• Password:
Allows user to enter their valid password.

➢ Structure chart showing the hierarchy of modules:

Structure chart is a graphical representation of the control logic of processing functions or modules
representing a system. It is one of the most commonly used methods for system design.
In a structure chart, each program module is represented by a rectangular box. Modules at the top level
of the structure chart call the modules at the lower level. The connections between modules are
represented by lines between the rectangular boxes. The connection describes data flows between the
called and calling modules.

LOGIN

MASTER PAGE

➢ Data structures shared among modules:


Tables used are listed as follows:
Login

Online Electronic Store 26


Enrollment No. 166248840

➢ Modules of Category :

Design Assumption:

This module of Application will displays the category of the product under which it belongs. It also
maintains the measure type which displays how different types of products are measured

➢ Identification of Modules:

Category Id : Id of category.
Category Name : It displays the category name.
Measure Name : Name of the measurement
➢ Structure chart showing the hierarchy of modules.

MASTER PAGE

CATEGORY

SAVE UPDATE DELETE

➢ Modules of product :
Design Assumption:
This module is used to add ,save ,delete the products .This module is also used view the whole stock
by the use of grid.

Online Electronic Store 27


Enrollment No. 166248840

➢ Identification of Modules:

Product Id : This number is allocated for particular product.


Product Name : Describes the name of the product.
Category : The category of the products can be extracted.
Quantity : The quantity of the products.
Product Price : Price of the product.
Product description :Description of the product.

➢ Structure chart showing the hierarchy of modules:

MASTER PAGE

PRODUCT

SAVE UPDATE DELET VIEW


E

➢ Data structures shared among modules:


Tables used are listed as follows
Product

➢ Modules of Customer:
Design Assumption:
This module stores and maintains the details of the customers.

Online Electronic Store 28


Enrollment No. 166248840

➢ Identification of Modules:

Order No : It generates the order number.


Customer Name : It allows to enter customer name
Address : It allows to enter customer address.
PhoneNo : It allows enter customer telephone number.
Product Name : It allows to enter name of the product.
Price : It allows to enter price of the product.
Qty : It allows to enter quantity of the product.
Order Date : It allows to enter order date of the product.

➢ Structure chart showing the hierarchy of modules:

ORDER

CUSTOMER

SAVE UPDATE VIEW

➢ Data structures shared among modules:


Tables used are listed as follows,
Customer Order

➢ Modules of Payments and Bill Maintenance Module:


Design Assumption:
This module is used to keep track of all the payments done by each and every customer.

Online Electronic Store 29


Enrollment No. 166248840

➢ Identification of Modules:

Bill No : It generates bill.


CName : It generates customer name.
CAdd : It generates customer address.
PName : It generates name of the product.
Cat : It generates category of the product.
Qty : It generates quantity of the product.
Price : It generates price of particular product.
Tax : Allows to enter rate of tax.
Total : It generates total amount to pay.

➢ Data structures shared among modules:


Tables used are listed as follows,
Bill

➢ Security Module :-

• User access permission based on role.


• Pages can be encrypted using SSL and Sales-Inventory can be configured to only display pages using
SSL to ensure that all information passing over the internet is encrypted.
• Users can be defined to see only certain modules on the main menu - so menu options that they will
not have access to be not even displayed on screen.
• HTTP security can be configured over the top of the inbuilt security to provide two levels of security
- the first to access the web-server at all and the second to actually get into the Sales-Inventory.
• An audit trail of which users did what is retained and is automatically maintained based on how long
the information is required to be kept.
• All inputs are sanitized to prevent SQL injections and cross site scripting.

Online Electronic Store 30


Enrollment No. 166248840

❖ 4.2 Data Dictionary:


Database design maintains the data required by the system. One of the key design issues involve in the
database to design is the distribution of data in a way that minimizes transactions traffic. Another key
design issues is the choice of the database management system. Database tables used are described in
the following section.
DATABASE TABELS

Login Table

Field name Type Size Description Constraint


username varchar 50 username Not Null
password varchar 50 password Not Null

Category Table

Field name Type Size Description Constraint


cat_id varchar 50 Category id Not Null
cat_name varchar 50 Category name Not Null
mesure_name varchar 50 Measurement name Not Null

Product Table

Field name Type Size Description Constraint


p_id varchar 50 Product id Not Null
p_name varchar 50 Product name Not Null
cat_name varchar 50 Category name Not Null
p_price numeric 18,0 Product price Not Null
p_desc varchar 50 Product description Not Null
p_quantity numeric 18,0 Product quantity Not Null
mesure_name varchar 50 Measurement name Not Null

Online Electronic Store 31


Enrollment No. 166248840
Customer order Table

Field name Type Size Description Constraint


orderno varchar 50 Order number Not Null
c_name varchar 50 Customer name Not Null
address varchar 50 Address Not Null
phone_no numeric 18,0 Phone number Not Null
p_name varchar 50 Product name Not Null
price numeric 18,0 Price Not Null
qty numeric 18,0 Quantity Not Null
order_date datetime - Order date Not Null
delivery_order datetime - Delivery date Not Null

Supplier order Table

Field name Type Size Description Constraint


o_no numeric 18,0 Order date Not Null
s_name varchar 50 Supplier name Not Null
p_name varchar 50 Product name Not Null
qty numeric 18,0 Quantity Not Null
odate datetime - Order date Not Null
ddate datetime - Delivery date Not Null
status varchar 50 Status Not Null

Online Electronic Store 32


Enrollment No. 166248840

❖ 4.3 Procedural Design:

Logic Diagram : -
START

Log In

Log In User Finish

Manage Patient Process


Detail Detail

Post Detail to
View patient database
Report

Treat Patient Review


Patient Detail

Finished

Online Electronic Store 33


Enrollment No. 166248840
❖ 4.4 User Interface Design:
User Interface Design is concerned with the dialogue between a user and the computer. It is
concerned with everything from starting the system or logging into the system to the eventually
presentation of desired inputs and outputs. The overall flow of screens and messages is called a
dialogue.

The following steps are various guidelines for User Interface Design: -

• The system user should always be aware of what to do next.


• The screen should be formatted so that various types of information, instructions and
messages always appear in the same general display area.
• Message, instructions or information should be displayed long enough to allow
The system user to read them.
• Use display attributes sparingly.
• Default values for fields and answers to be entered by the user should be
specified.
• A user should not be allowed to proceed without correcting an error.
• The system user should never get an operating system message or fatal error.

1. Primary Design Phase: In this phase, the system is designed at block level. The blocks are
created on the basis of analysis done in the problem identification phase. Different blocks are
created for different functions emphasis is put on minimizing the information flow between
blocks. Thus, all activities which require more interaction are kept in one block.

2. Secondary Design Phase: In the secondary phase the detailed design of every block is
performed.
The general tasks involved in the design process are the following:
• Design various blocks for overall system processes.
• Design smaller, compact and workable modules in each block.

Online Electronic Store 34


Enrollment No. 166248840
• Design various database structures.
• Specify details of programs to achieve desired functionality.
• Design the form of inputs, and outputs of the system.
• Perform documentation of the design.
• System reviews.
❖ Features of the project Doctor Appointment System:-
• Product and Component based
• Creating & Changing Issues at ease
• Query Issue List to any depth
• Reporting & Charting in more comprehensive way
• User Accounts to control the access and maintain security

Screen Layout of Online Electronic Store (Sales & Inventory Management System) : -

➢ Home Page :

Online Electronic Store 35


Enrollment No. 166248840

Online Electronic Store 36


Enrollment No. 166248840

➢ Single Product Page :

Online Electronic Store 37


Enrollment No. 166248840

➢ Checkout Page :

Online Electronic Store 38


Enrollment No. 166248840

➢ Payment Page :

Online Electronic Store 39


Enrollment No. 166248840

➢ Login Page :

Online Electronic Store 40


Enrollment No. 166248840

➢ SignUp Page :

➢ Purchase Detail :

Online Electronic Store 41


Enrollment No. 166248840

Online Electronic Store 42


Enrollment No. 166248840
❖ 4.5 Test Cases:
The steps in the software testing : -
The steps involved during Unit testing are as follows:
• Preparation of the test cases.
• Preparation of the possible test data with all the validation checks.
• Complete code review of the module.
• Actual testing done manually.
• Modifications done for the errors found during testing.
• Prepared the test result scripts.

The unit testing done included the testing of the following items : -
• Functionality of the entire module/forms.
• Validations for user input.
• Checking of the Coding standards to be maintained during coding.
• Testing the module with all the possible test data.
• Testing of the functionality involving all type of calculations etc.
• Commenting standard in the source files.

Online Electronic Store 43


Enrollment No. 166248840

❖ Test Procedure and Implementation :


Testing presents an interesting anomaly for software engineering. During earlier software
engineering activities, the engineering attempts to build software form an abstract concepts to a
tangible project. Now comes to testing , The engineer creates a series of taste cases that are
intendment to “demolish” the software that has been built. In fact, testing is one step in the
software process that could be viewed as destructive rather than constructive.
Software engineer are by their nature constructive people. Testing required that the
developer discard preconvience notation of the “correctness” of software just develop and
overcome a conflict of interest that occur when error are in covered.
If testing is conduct successfully (according to the objective stated previously) , it

will uncover error in the software. As a secondary benefit testing demonstrate that software
function appear to working according to specification, that behavioral and performance
requirement. Appear to have been met. In Addition, data collecting as testing is conducted provide
a good indication of software reliability and some indication of software quality as a whole. But
testing cannot show the absence of error and defect, it can show .

Online Electronic Store 44


Enrollment No. 166248840
5. COADING
❖ 5.1 Complete Project Coding:

➢ signup.php :
<?php
include('dbconnection.php');
session_start();
if(isset($_POST['submit']))
{
$firstname=$_POST['firstname'];
$lastname=$_POST['lastname'];
$username=$_POST['username'];
$password=$_POST['password'];
$phone=$_POST['phone'];

$sql = "select * from user_details where username='$username'";


$result = mysql_query($sql);
if (mysql_fetch_array($result))
{
echo "<script type='text/javascript'>alert('Username Already Taken. Try With Other
Username')</script>";
}
else
{

$query="insert into user_details (first_name,last_name,phone,username,password)


values('$firstname','$lastname','$phone','$username','$password')";
echo $query;
if(mysql_query($query))
{

Online Electronic Store 45


Enrollment No. 166248840
echo "<script type='text/javascript'>alert('Account Created Successfully.')</script>";

}
else
{
echo "error".mysql_error();
}
}
?>

<head>
<title> Sign Up </title>
<style>
/*--main--*/
.main-agileits {
margin: 2% auto;
background: rgba(125, 63, 152, 0.52);
width: 32%;
font-family: 'Lato', sans-serif;
}
.sub-head {
font-size: 38px;
padding: 42px;
color: white;
text-transform: uppercase;
letter-spacing: 3px;
}
.sub-main{
position:relative;
}
/*--icons--*/

Online Electronic Store 46


Enrollment No. 166248840
.icon1,.icon2,.icon3,.icon4,.icon5,.icon6{
position: absolute;
left: 51px;
font-size: 18px;
color: rgba(0, 0, 0, 0.83);
width: 22px;
}
.icon1{
top: 12px;
}
.icon2 {
top: 75px;
}
.icon3 {
top: 138px;
}
.icon4 {
top: 201px;
}
.icon5 {
top: 264px;
}
.icon6 {
top: 327px;
}
/*--//icons--*/

.sub-main input[type="text"],.sub-main input[type="password"] {


outline: none;
font-size: 1.1em;
margin: 4px 0px 18px 1px;

Online Electronic Store 47


Enrollment No. 166248840
color: black;
padding: 10px 38px;
border: none;
border-radius: 2px;
width: 68%;
font-family: 'Lato', sans-serif;
}
.sub-main input[type="submit"] {
color: white;
background: #0fcdff;
border: none;
padding: 11px 35px;
font-size: 19px;
border-radius: 2px;
margin: 3px;
font-family: 'Lato', sans-serif;
cursor: pointer;
text-transform:lowercase;
transition: 0.5s all;
-webkit-transition: 0.5s all;
-o-transition: 0.5s all;
-moz-transition: 0.5s all;
-ms-transition: 0.5s all;
}
.sub-main input[type="submit"]:hover {
background: #d9edf7;
color: black;
transition:0.5s all;
-webkit-transition:0.5s all;
-o-transition:0.5s all;
-moz-transition:0.5s all;

Online Electronic Store 48


Enrollment No. 166248840
-ms-transition:0.5s all;
}

/*--//main--*/
.mark{
background-color:#000;
height:60px;
}
.head-img{
background:url(../../Shivani/images/medical.png);
height:100px;
width:100%;
}
.color
{
color: red;
}

</style>

</head>
<body>

<!--main-->
<br>
<div class="main-agileits">
<h2 class="sub-head"></h2>
<div class="sub-main">
<form method="post">
<input placeholder="First Name" name="firstname" class="name" type="text" required="">
<span class="icon1"><i class="fafa-user" aria-hidden="true"></i></span><br>

Online Electronic Store 49


Enrollment No. 166248840
<input placeholder="Last Name" name="lastname" class="name2" type="text" required="">
<span class="icon2"><i class="fafa-user" aria-hidden="true"></i></span><br>
<input placeholder="Phone Number" name="phone" class="number" type="text" required="">
<span class="icon3">
<i class="fafa-phone" aria-hidden="true"></i></span><br>
<input placeholder="Username" name="username" class="mail" type="text" required=""><span
class="icon4"><i class="fafa-envelope" aria-hidden="true"></i></span><br>
<input placeholder="Password" name="password" class="pass" type="password"
required=""><span class="icon5"><i class="fafa-unlock" aria-hidden="true"></i></span><br>
<input type="submit" name="submit" value="sign up">
</form></div><br><br><div class="clear"></div>
</div>
<center><a href="index.php"><button type="button" class="btnbtn-success">Back To
Home</button></a></center>
</body>
</html>

Online Electronic Store 50


Enrollment No. 166248840
➢ admin_page.php :
<?php
include('dbconnection.php');
session_start();
$username=$_SESSION['Username'];
if (!isset($_SESSION['Username']))
{
echo "<script type='text/javascript'>alert('Please Login To Check Cart')</script>";
header('Refresh:0.5; url=login.php');
}
if(isset($_POST['submit']))
{
echo "<script type='text/javascript'>alert('ok.')</script>";
}
if(isset($_POST['test1']))
{
echo "<script type='text/javascript'>alert('ok.')</script>";
}
functiontestfun()
{
echo "Your test function on button click is working";
}

if(array_key_exists('test',$_POST)){
testfun();
?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">

Online Electronic Store 51


Enrollment No. 166248840
<style>
body {font-family: Arial;}

/* Style the tab */


.tab {
overflow: hidden;
border: 1px solid #ccc;
background-color: #f1f1f1;
}

/* Style the buttons inside the tab */


.tab button {
background-color: inherit;
float: left;
border: none;
outline: none;
cursor: pointer;
padding: 14px 16px;
transition: 0.3s;
font-size: 17px;
}

/* Change background color of buttons on hover */


.tab button:hover {
background-color: #ddd;
}

/* Create an active/current tablink class */


.tab button.active {
background-color: #ccc;
}

Online Electronic Store 52


Enrollment No. 166248840

/* Style the tab content */


.tabcontent {
display: none;
padding: 6px 12px;
border: 1px solid #ccc;
border-top: none;
}
<style>
*{
box-sizing: border-box;
}

input[type=text], select, textarea {


width: 100%;
padding: 12px;
border: 1px solid #ccc;
border-radius: 4px;
resize: vertical;
}

label {
padding: 12px 12px12px 0;
display: inline-block;
}

input[type=submit] {
background-color: #4CAF50;
color: white;
padding: 12px 20px;
border: none;

Online Electronic Store 53


Enrollment No. 166248840
border-radius: 4px;
cursor: pointer;
float: right;
}

input[type=submit]:hover {
background-color: #45a049;
}

.container {
border-radius: 5px;
background-color: #f2f2f2;
padding: 20px;
}

.col-25 {
float: left;
width: 25%;
margin-top: 6px;
}
.col-75 {
float: left;
width: 75%;
margin-top: 6px;
}
/* Clear floats after the columns */
.row:after {
content: "";
display: table;
clear: both;
}

Online Electronic Store 54


Enrollment No. 166248840
/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on
top of each other instead of next to each other */
@media screen and (max-width: 600px) {
.col-25, .col-75, input[type=submit] {
width: 100%;
margin-top: 0;
}
}
</style>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all" />
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<link rel="stylesheet" href="css/fontawesome-all.css">
<link href="css/menu.css" rel="stylesheet" type="text/css" media="all" />

<link
href="//fonts.googleapis.com/css?family=Lato:100,100i,300,300i,400,400i,700,700i,900,900i&a
mp;subset=latin-ext" rel="stylesheet">
<link
href="//fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,
800i&amp;subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese"
rel="stylesheet">
</head>
<body>
<div class="container">
<div class="tab">
<button class="tablinks" onclick="openCity(event, 'London')">User Detail</button>

</div>
<div id="London" class="tabcontent">
<div class="container">
<form method="POST">

Online Electronic Store 55


Enrollment No. 166248840
<div class="row">
<div class="col-25">
<label for="fname"> Product</label>
</div>
<div class="col-75">
<select class="option-w3ls" name="product" onchange="myFunction()">
<?php
$sql = "select * from products";
$count=1;
$result=mysql_query($sql);
while($row=mysql_fetch_array($result))
{
echo "<option>".$row['Product_Name']."</option>";
}

?>
</select>
<input type="submit" name="test" id="test" value="RUN" />
</div>
</div>
<div class="row">
<div class="col-25">
<label for="lname">Product Quantity</label>
</div>
<div class="col-75">
<input type="text" id="lname" name="lastname" value="<?php echo $_SESSION['Last_Name'];
?>">
</div>
</div>

<div class="row">

Online Electronic Store 56


Enrollment No. 166248840
<div class="col-25">
<label for="lname">Product Price</label>
</div>
<div class="col-75">
<input type="text" id="phone" name="phone" value="<?php echo $_SESSION['Phone']; ?>">
</div>
</div><br>
<center><div class="row">
<input type="submit" name="submit" value="Update">
</div>
</center>
</form>
</div>
</div>
</div>
</div>
<script>
functionopenCity(evt, cityName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i <tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablinks");
for (i = 0; i <tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
}
document.getElementById(cityName).style.display = "block";
evt.currentTarget.className += " active";
}

Online Electronic Store 57


Enrollment No. 166248840
</script>
</body>
</html>

➢ dbconnection.php :
<?php
$host = "localhost";
$uname = "root";
$pass = "";

$con = mysql_connect("$host","$uname","$pass");
mysql_select_db("shivani_online_portal");
if ($con)
{
echo "success";
}
else
{
echo "Connection Failed";
}
?>

Online Electronic Store 58


Enrollment No. 166248840
➢ user_detail.php :
<?php
include('dbconnection.php');
session_start();
$username=$_SESSION['Username'];
if (!isset($_SESSION['Username']))
{
echo "<script type='text/javascript'>alert('Please Login To Check Cart')</script>";
header('Refresh:0.5; url=login.php');
}
if(isset($_POST['submit']))
{
// $username=$_SESSION['Username'];
$firstname=$_POST['firstname'];
$lastname=$_POST['lastname'];
$phone=$_POST['phone'];
$sql1="update user_details set First_Name='$firstname',
Last_Name='$lastname',Phone='$phone' where Username='$username'";
if(mysql_query($sql1))
{
echo "<script type='text/javascript'>alert('Updated Successfully.')</script>";
header('Refresh:0.5; url=logout.php');
}
else
{
echo "error".mysql_error();
}
}
?>

Online Electronic Store 59


Enrollment No. 166248840
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {font-family: Arial;}

/* Style the tab */


.tab {
overflow: hidden;
border: 1px solid #ccc;
background-color: #f1f1f1;
}

/* Style the buttons inside the tab */


.tab button {
background-color: inherit;
float: left;
border: none;
outline: none;
cursor: pointer;
padding: 14px 16px;
transition: 0.3s;
font-size: 17px;
}

/* Change background color of buttons on hover */


.tab button:hover {
background-color: #ddd;
}

Online Electronic Store 60


Enrollment No. 166248840
/* Create an active/current tablink class */
.tab button.active {
background-color: #ccc;
}

/* Style the tab content */


.tabcontent {
display: none;
padding: 6px 12px;
border: 1px solid #ccc;
border-top: none;
}
<style>
*{
box-sizing: border-box;
}

input[type=text], select, textarea {


width: 100%;
padding: 12px;
border: 1px solid #ccc;
border-radius: 4px;
resize: vertical;
}

label {
padding: 12px 12px12px 0;
display: inline-block;
}

input[type=submit] {

Online Electronic Store 61


Enrollment No. 166248840
background-color: #4CAF50;
color: white;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
float: right;
}

input[type=submit]:hover {
background-color: #45a049;
}

.container {
border-radius: 5px;
background-color: #f2f2f2;
padding: 20px;
}

.col-25 {
float: left;
width: 25%;
margin-top: 6px;
}

.col-75 {
float: left;
width: 75%;
margin-top: 6px;
}

Online Electronic Store 62


Enrollment No. 166248840
/* Clear floats after the columns */
.row:after {
content: "";
display: table;
clear: both;
}

/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on
top of each other instead of next to each other */
@media screen and (max-width: 600px) {
.col-25, .col-75, input[type=submit] {
width: 100%;
margin-top: 0;
}
}
</style>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all" />
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<link rel="stylesheet" href="css/fontawesome-all.css">
<link href="css/menu.css" rel="stylesheet" type="text/css" media="all" />

<link
href="//fonts.googleapis.com/css?family=Lato:100,100i,300,300i,400,400i,700,700i,900,900i&a
mp;subset=latin-ext" rel="stylesheet">
<link
href="//fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,
800i&amp;subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese"
rel="stylesheet">
</head>
<body>

Online Electronic Store 63


Enrollment No. 166248840
<div class="container">

<div class="tab">
<button class="tablinks" onclick="openCity(event, 'London')">User Detail</button>
<button class="tablinks" onclick="openCity(event, 'Paris')">Order History</button>

</div>

<div id="London" class="tabcontent">


<div class="container">
<form method="POST">
<div class="row">
<div class="col-25">
<label for="fname"> Name</label>
</div>
<div class="col-75">
<input type="text" id="fname" name="firstname" value="<?php echo
$_SESSION['First_Name']; ?>" >
</div>
</div>
<div class="row">
<div class="col-25">
<label for="lname">Last Name</label>
</div>
<div class="col-75">
<input type="text" id="lname" name="lastname" value="<?php echo $_SESSION['Last_Name'];
?>">
</div>
</div>

<div class="row">

Online Electronic Store 64


Enrollment No. 166248840
<div class="col-25">
<label for="lname">Phone</label>
</div>
<div class="col-75">
<input type="text" id="phone" name="phone" value="<?php echo $_SESSION['Phone']; ?>">
</div>
</div>

<br>

<center><div class="row">
<input type="submit" name="submit" value="Update">
</div>
</center>
</form>
</div>

</div>

<div id="Paris" class="tabcontent">


<div class=" container">
<div class="privacy py-sm-5 py-4">
<div class="container py-xl-4 py-lg-2">
<!-- tittle heading -->

<!-- //tittle heading -->


<div class="checkout-right">

<form method="POST">
<div class="table-responsive">

Online Electronic Store 65


Enrollment No. 166248840
<table class="timetable_sub">
<thead>
<tr>
<th>SL No.</th>
<th>Product Name</th>

<th>Quality</th>

<th>Price</th>
<th>Total Amount</th>
<th>Delivery Address</th>
</tr>
</thead>
<tbody>

<?php
$sql = "select c.SL_NO,c.Product_Name,c.Product_Quantity,p.Product_Price,c.Delivery_Address from
cart c, Products p where c.Product_Name=P.Product_Name and c.user='$username' and
c.buying_status='Y'";
$count=1;
$result=mysql_query($sql);
while($row=mysql_fetch_array($result))
{

echo "<tr class=rem1>


<td class=invert>".$count."</td>";

echo "<td class=invert>".$row['Product_Name']."</td>";

echo "<td class=invert>".$row['Product_Quantity']."</td>";

Online Electronic Store 66


Enrollment No. 166248840

echo "<td class=invert>


<div class=quantity>
<div class=quantity-select>

<div class=entry value>


<span>".$row['Product_Price']."</span>
</div>

</div>
</div>
</td>";

echo "<td class=invert>


<div class=quantity>
<div class=quantity-select>

<div class=entry value>


<span>".$row['Product_Price']*$row['Product_Quantity']."</span>
</div>

</div>
</div>
</td>";

echo "<td class=invert>


<div class=quantity>
<div class=quantity-select>

<div class=entry value>

Online Electronic Store 67


Enrollment No. 166248840
<span>".$row['Delivery_Address']."</span>
</div>

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

</tr>";
$count++;
}
?>

</tbody>
</table>
</div>
</form>
</div>

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

</div>
</div>

<script>
functionopenCity(evt, cityName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i <tabcontent.length; i++) {
tabcontent[i].style.display = "none";

Online Electronic Store 68


Enrollment No. 166248840
}
tablinks = document.getElementsByClassName("tablinks");
for (i = 0; i <tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
}
document.getElementById(cityName).style.display = "block";
evt.currentTarget.className += " active";
}
</script>

</body>
</html>

Online Electronic Store 69


Enrollment No. 166248840
➢ login.php :
<?php
include('dbconnection.php');
session_start();
if(isset($_POST['submit']))
{
$username=$_POST['username'];
$password=$_POST['password'];
$sql = "select * from user_details where username='$username' and password='$password'";
$result = mysql_query($sql);
if ( $row=mysql_fetch_array($result))
{
echo "<script type='text/javascript'>alert('Login Successful.')</script>";
//echo "login success";
$_SESSION['Username'] = $row['Username'];
$_SESSION['User'] ="Welcome ".$row['First_Name']." ".$row['Last_Name'];
$_SESSION['First_Name']=$row['First_Name'];
$_SESSION['Last_Name']=$row['Last_Name'];
$_SESSION['Phone']=$row['Phone'];
// header('location:index.php');
header('Refresh:0.5; url=index.php');
}
else
{
echo "<script type='text/javascript'>alert('Invalid Username Or Password.')</script>";
}
}
?>

Online Electronic Store 70


Enrollment No. 166248840
<!DOCTYPE html>
<html>
<head>
<title> Login</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<!-- //web font -->
<style>
body {
background:url("images/back.jpg") repeat 0px 0px;
background-attachment: fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
font-family: 'Raleway', sans-serif;
}
h1,h2,h3,h4,h5{
font-family: 'Raleway', sans-serif;
}
h1 {
font-size: 3em;
text-align: center;
color: #fff;
font-weight: 400;
margin-bottom: 1em;
letter-spacing: 5px;
text-transform: uppercase;
}
.head{
position: relative;
z-index: 1;

Online Electronic Store 71


Enrollment No. 166248840
}
.login-form h2{
font-size: 2em;
color: #333;
text-align: center;
margin-bottom: 1.5em;
line-height: 0.7em;
letter-spacing: 0px;
}
span.fa.fa-lock {
position: absolute;
font-size: 75px;
color: #e4eae7;
left: 45%;
top: -100%;
z-index: -1;
}
/*-- main --*/
.main {
padding: 3em 0 0;
text-align: center;
}
.main-w3lsrow {
margin: 0 auto;
background: #fff;
max-width: 400px;
padding: 3em 2em 2em;
text-align: center;
}

Online Electronic Store 72


Enrollment No. 166248840
.login-form input[type="text"], .login-form input[type="password"] {
outline: none;
font-size: .9em;
letter-spacing: 1px;
color: #666;
padding: 1em 1em;
margin: 0;
width: 100%;
box-sizing: border-box;
margin-bottom: 1em;
-webkit-appearance: none;
display: block;
border: 1px solid #dde0df;
background: #e4eae7;
font-family: 'Raleway', sans-serif;
}
.login-form p {
font-size: 0.9em;
color: #fff;
margin: 1.5em 0 .8em;
font-weight: 200;
letter-spacing: 6px;
text-align: left;
}

/*--placeholder-color--*/
::-webkit-input-placeholder{
color: #666;
}

:-moz-placeholder { /* Firefox 18- */

Online Electronic Store 73


Enrollment No. 166248840
color: #666;
}
/*--//placeholder-color--*/
.login-form input[type="submit"] {
font-size: 1em;
color: #ffffff;
background:#036DEB;
border: 1px solid #036DEB;
outline: none;
cursor: pointer;
padding: .8em 1em;
letter-spacing: 1px;
-webkit-appearance: none;
width: 100%;
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
-ms-border-radius: 0px;
-o-border-radius: 0px;
border-radius: 0px;
transition: 0.5s all;
-webkit-transition: 0.5s all;
-moz-transition: 0.5s all;
-o-transition: 0.5s all;
-ms-transition: 0.5s all;
-family: 'Raleway', sans-serif;
}
.login-form input[type="submit"]:hover {
background: #333;
color: #fff;
border: 1px solid #333;
}

Online Electronic Store 74


Enrollment No. 166248840
.login-agileits-bottom {
margin-top:1.6em;
text-align: center;
}
.login-agileits-bottom1 {
margin-top: 1.6em;
text-align: center;
}
.login-agileits-bottom1 h3 {
color: #fff;
font-size: 1em;
letter-spacing: 4px;
}
.login-agileits-bottom h6 {
font-size: 1em;
letter-spacing: 2px;
}
.login-agileits-bottom h6 a {
color: #333;
transition: 0.5s all ;
-webkit-transition: 0.5s all;
-moz-transition: 0.5s all;
-o-transition: 0.5s all;
-ms-transition: 0.5s all;
}
.login-agileits-bottom h6 a:hover{
color: #0f9d58;
}
/*-- //main --*/

/*-- copyright --*/

Online Electronic Store 75


Enrollment No. 166248840
.copyright {
padding: 2.4em 0 2em;
text-align: center;
}
.copyright p {
font-size: 1em;
color: #fff;
line-height:1.8em;
letter-spacing: 2px;
}
.copyright p a{
color: #fff;
-webkit-transition: 0.5s all;
-moz-transition: 0.5s all;
-o-transition: 0.5s all;
-ms-transition: 0.5s all;
transition: 0.5s all;
}
.copyright p a:hover{
color: #ff4c4c;
}
/*-- //copyright --*/
.color
{
color: red;
}

</style>

</head>

Online Electronic Store 76


Enrollment No. 166248840
<body>
<!-- main -->
<div class="main">
<br><br>
<div class="main-w3lsrow">
<!-- login form -->
<div class="login-form login-form-left">
<div class="agile-row">
<div class="head">
<h2>Login to your form</h2>
<span class="fafa-lock"></span>
</div>
<div class="clear"></div>
<div class="login-agileits-top">
<form method="post">
<input type="text" class="name" name="username" Placeholder="Username" required=""/>
<input type="password" class="password" name="password" Placeholder="Password" required=""/>
</div>
<span class="color"></span>
</div>
<input type="submit" name="submit" value="SUBMIT">
</form>
</div>
<div class="login-agileits-bottom">
<h6><a href="#">Forgot your password?</a></h6>
</div>

</div>
</div>
</div><br><br>
<!-- //login form -->

Online Electronic Store 77


Enrollment No. 166248840
<center>
<a href="index.php"><button type="button" class="btnbtn-success">Back To
Home</button></a></center>
<!-- copyright -->
<div class="copyright">
<p> Design by ShivaniShrivastava</p>
</div>
<!-- //copyright -->
</div>
<!-- //main -->
</div>

</body>
</html>

Online Electronic Store 78


Enrollment No. 166248840
index.php :
<?php
include('dbconnection.php');
session_start();
error_reporting(0);
$page="";
if ($_SESSION['Username']=="admin")
{
$page="admin_page.php";
}
else
{
$page="user_details.php";
}
$samsung_galaxy_price="";
$sql="Select * from products";
$result=mysql_query($sql);
while($row=mysql_fetch_array($result))
{

if($row['Product_Name']=="Samsung Galaxy J7 Prime")


{
$samsung_galaxy_price=$row['Product_Price'];
}
elseif ($row['Product_Name']=="Oppo A37") {
$oppo_price=$row['Product_Price'];
}
elseif ($row['Product_Name']=="Apple iPhone X") {
$appleX_price=$row['Product_Price'];
}

Online Electronic Store 79


Enrollment No. 166248840
elseif ($row['Product_Name']=="Sony Bravia 101.6 cm") {
$sony_bravia_price=$row['Product_Price'];
}
elseif ($row['Product_Name']=="Portronics POR-280 Sound Pot Wireless Bluetooth Speaker") {
$port_spk_price=$row['Product_Price'];
}
elseif ($row['Product_Name']=="Philips MMS-4545B 2.1 Channel Speakers System") {
$philips_spk_price=$row['Product_Price'];
}
elseif ($row['Product_Name']=="Lenovo 520 22IKU AIO 21.5-inch All-in-One Desktop") {
$lenovo_price=$row['Product_Price'];
}
elseif ($row['Product_Name']=="DELL Vostro 3568 15.6-inch Laptop") {
$dell_price=$row['Product_Price'];
}
elseif ($row['Product_Name']=="HP 15 DR0006TX 2018 15.6-inch Laptop") {
$hp_price=$row['Product_Price'];
}
}
?>
<!DOCTYPE html>
<head>
<title>Online Electronic Store</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8" />
<script>
addEventListener("load", function () {
setTimeout(hideURLbar, 0);
}, false);
functionhideURLbar() {
window.scrollTo(0, 1);

Online Electronic Store 80


Enrollment No. 166248840
}
</script>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all" />
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<link rel="stylesheet" href="css/fontawesome-all.css">
<link href="css/menu.css" rel="stylesheet" type="text/css" media="all" />
<style>
.snipcart-details input.button {
width: 80%;
}
.navbar-inner {
background: #F45C5D;
box-shadow: 0px 2px 6px 1px rgba(0, 0, 0, 0.13);
}
.bg-light {
background-color: #F45C5D !important;
}
.navbar-light .navbar-nav .nav-link {
letter-spacing: 1px;
font-size: 15px;
color: #fff;
}
.navbar-light .navbar-nav .show>.nav-link,
.navbar-light .navbar-nav .active>.nav-link,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .nav-link.active {
color: #fff;
}
.logo_agile h1 a {
color: #F45C5D;
font-size: 38px;

Online Electronic Store 81


Enrollment No. 166248840
text-decoration: none;
letter-spacing: 1px;
position: relative;
padding-left:200px;
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
font-size: 1rem;
font-weight: 400;
line-height: 0.9;
color: #212529;
text-align: left;
background-color: #fff;
}
.top_nav_right {
padding: 24px;
}
</style>
</head>
<body>
<!-- header-bottom-->
<div class="header-bot">
<div class="container">
<span class="color">
<a href="<?php echo $page; ?>">
<?php
echo $_SESSION['User'];
?>
</a>

Online Electronic Store 82


Enrollment No. 166248840
span>
<div class="row header-bot_inner_wthreeinfo_header_mid">
<!-- logo -->
<div class="col-md-10 logo_agile">
<h1 class="text-center">
<a href="index.html" class="font-weight-bold font-italic">Online Electronics Store </a></h1>
</div>
<!-- //logo -->
<!-- cart details -->
<div class="col-md-2 top_nav_right text-center mt-sm-0 mt-2">
<div class="wthreecartaits wthreecartaits2 cart cart box_1">
<form action="#" method="post" class="last">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="display" value="1">
<a href="checkout.php"><button class="btn w3view-cart" type="submit" name="submit" value="">
<i class="fasfa-cart-arrow-down"></i>
</button></a>
</form>
</div>
</div>
<!-- //cart details -->
</div>
<!-- navigation -->
<div class="navbar-inner">
<div class="container">
<nav class="navbarnavbar-expand-lgnavbar-light bg-light" style="width:935px">
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto text-center mr-xl-5">
<li class="nav-item active mr-lg-2 mb-lg-0 mb-2">
<a class="nav-link" href="index.php">Home<span class="sr-only">(current)</span></a></li>

Online Electronic Store 83


Enrollment No. 166248840
<li class="nav-item dropdown mr-lg-2 mb-lg-0 mb-2">
<a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-
>Electronics</a
<div class="dropdown-menu">
<div class="agile_inner_drop_nav_info p-4">
<h5 class="mb-3">Mobiles, Computers</h5>
<div class="row">
<div class="col-sm-12 multi-gd-img">
<ul class="multi-column-dropdown">
<li>
<a href="mobiles.php">All Mobile Phones</a>
<a href="audio.php">Audio & TV</a>
<a href="computer.php">Computer & Laptops</a></li>
</ul>
</div>
</div>
</div>
</div>
<a class="nav-link" href="about.php">About Us</a>
<a class="nav-link" href="newarival.php">New Arrivals</a>
<?php
if (isset($_SESSION['Username']))
{
echo "<li class=nav-itema class=nav-link href=LogOut.php>LogOut</a>li>";
}
else
{
echo "<li class=nav-item>
<a class=nav-link href=login.php>LogIn</a></li>";
}?>

Online Electronic Store 84


Enrollment No. 166248840
<li class="nav-item">
<a class="nav-link" href="signup.php">Sign Up</a></li>
<li class="nav-item">
<a class="nav-link" href="checkout.php">Checkout</a></li>
<li class="nav-item">
<a class="nav-link" href="AdminLogin.php">Admin</a>
</li></ul></div></nav></div></div></center>
<!-- //navigation -->
<!-- banner -->
<div class="header">
<imgsrc="images/2.jpg" width="100%" height="360px"></div>
<!-- top Products -->
<div class="ads-grid py-sm-5 py-4">
<div class="container py-xl-4 py-lg-2">
<!-- tittle heading -->
<div class="row">
<!-- product left -->
<div class="wrapper" style="width:100%">
<!-- first section -->
<div class="product-sec1 px-sm-4 px-3 py-sm-5 py-3 mb-4">
<h3 class="heading-tittle text-center font-italic">New Brand Mobiles</h3>
<div class="row" style="width:100%">
<div class="col-md-4 product-men mt-5">
<div class="men-pro-item simpleCart_shelfItem">
<div class="men-thumb-item text-center">
<a href="samsung.php"><imgsrc="images/m1.jpg" alt=""></a>
<div class="men-cart-pro">
<div class="inner-men-cart-pro">
<a href="samsung.php" class="link-product-add-cart">View More</a>
</div>

Online Electronic Store 85


Enrollment No. 166248840
</div>
</div>
<div class="item-info-product text-center border-top mt-4">
<h4 class="pt-1"><a href="samsung.php">Samsung Galaxy J78</a></h4>
<div class="info-product-price my-2">
<span class="item_price"><?php echo "Rs. ".$samsung_galaxy_price ;?></span>
</div>
<div class="snipcart-details top_brand_home_detailsitem_add single-item hvr-outline-out">
<form action="#" method="post">
<fieldset>
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="business" value=" " />
<input type="hidden" name="item_name" value="Samsung Galaxy J7" />
<input type="hidden" name="amount" value="200.00" />
<input type="hidden" name="discount_amount" value="1.00" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="return" value=" " />
<input type="hidden" name="cancel_return" value=" " />
<input type="submit" name="submit" value="Add to cart" class="button btn" />
</fieldset>
</form>
</div>
</div>
<div class="col-md-4 product-men mt-5">
<div class="men-pro-item simpleCart_shelfItem">
<div class="men-thumb-item text-
<div class="inner-men-cart-pro">
<a href="oppo.php" class="link-product-add-cart">View More</a>
</div>

Online Electronic Store 86


Enrollment No. 166248840
div>
<div class="item-info-product text-center border-top mt-4">
<h4 class="pt-1"><a href="oppo.php">OPPO A37f</a></h4>
<div class="info-product-price my-2">
<span class="item_price"><?php echo "Rs. ".$oppo_price ;?></span>
</div>
<div class="snipcart-details top_brand_home_detailsitem_add single-item hvr-outline-out">
<form action="#" method="post">
<fieldset>
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="business" value=" " />
<input type="hidden" name="item_name" value="OPPO A37f" />
<input type="hidden" name="amount" value="230.00" />
<input type="hidden" name="discount_amount" value="1.00" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="return" value=" " />
<input type="hidden" name="cancel_return" value=" " />
<input type="submit" name="submit" value="Add to cart" class="button btn" />
</fieldset>
</form>
</div>
<div class="col-md-4 product-men mt-5">
<div class="men-pro-item simpleCart_shelfItem">
<div class="men-thumb-item text-center"><imgsrc="images/m3.jpg" alt="">
<div class="men-cart-pro"><div class="inner-men-cart-pro">
<a href="apple.php" class="link-product-add-cart">View More</a></div>
</div>
<span class="product-new-top">New</span>
</div>

Online Electronic Store 87


Enrollment No. 166248840
<div class="item-info-product text-center border-top mt-4">
<h4 class="pt-1"><a href="apple.php">Apple iPhone X</a></h4>
<div class="info-product-price my-2">
<span class="item_price"><?php echo "Rs. ".$appleX_price ;?></span>
<del>Rs.105000.00</del>
</div>
<div class="snipcart-details top_brand_home_detailsitem_add single-item hvr-outline-out">
<form action="#" method="post">
<fieldset>
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="add" value="1" /><input type="hidden" name="business" value=" "
/>
<input type="hidden" name="item_name" value="Apple iPhone X" />
<input type="hidden" name="amount" value="280.00" />
<input type="hidden" name="discount_amount" value="1.00" />

<input type="hidden" name="currency_code" value="USD" />


<input type="hidden" name="return" value=" " />
<input type="hidden" name="cancel_return" value=" " />
<input type="submit" name="submit" value="Add to cart" class="button btn" />
</fieldset>
</form>
</div>
</div>
<!-- //first section -->
<div class="product-sec1 px-sm-4 px-3 py-sm-5 py-3 mb-4">
<h3 class="heading-tittle text-center font-italic">Tv& Audio</h3>
<div class="row">
<div class="col-md-4 product-men mt-5"><div class="men-pro-item simpleCart_shelfItem">
<div class="men-thumb-item text-center"><imgsrc="images/sony4.png" alt="">

Online Electronic Store 88


Enrollment No. 166248840
<div class="men-cart-pro"><div class="inner-men-cart-pro">
<a href="sony.php" class="link-product-add-cart">View More</a></div>
<div class="item-info-product text-center border-top mt-4">
<h4 class="pt-1"><a href="sony.php">Sony Bravia 101.6 cm (40 Inches) </a></h4>
<div class="info-product-price my-2">
<span class="item_price"><?php echo "Rs. ".$sony_bravia_price ;?></span>
</div>
<div class="snipcart-details top_brand_home_detailsitem_add single-item hvr-outline-out">
<form action="#" method="post">
<fieldset>
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="business" value=" " />
<input type="hidden" name="item_name" value="Sony Bravia 101.6 cm (40 Inches)" />
<input type="hidden" name="amount" value="320.00" />
<input type="hidden" name="discount_amount" value="1.00" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="return" value=" " />
<input type="hidden" name="cancel_return" value=" " />
<input type="submit" name="submit" value="Add to cart" class="button btn" />
</fieldset></form>
</div></div></div></div>
<div class="col-md-4 product-men mt-5">
<div class="men-pro-item simpleCart_shelfItem">
<div class="men-thumb-item text-center"><imgsrc="images/pro1.png" alt="">
<div class="men-cart-pro"><div class="inner-men-cart-pro">
<a href="protony.php" class="link-product-add-cart">View More</a></div></div>
<span class="product-new-top">New</span>
</div>
<div class="item-info-product text-center border-top mt-4">

Online Electronic Store 89


Enrollment No. 166248840
<h4 class="pt-1"><a href="protony.php">Portronics Bluetooth Speaker</a></h4>
<div class="info-product-price my-2">
<span class="item_price"><?php echo "Rs. ".$port_spk_price ;?></span>
<div class="snipcart-details top_brand_home_detailsitem_add single-item hvr-outline-out">
<form action="#" method="post">
<fieldset>
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="add" value="1/>
<input type="hidden" name="business" value=" " />
<input type="hidden" name="item_name" value="Portronics POR-280 Sound Pot Wireless Bluetooth
Speaker" />
<input type="hidden" name="amount" value="349.00" />
<input type="hidden" name="discount_amount" value="1.00" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="return" value=" " />
<input type="hidden" name="cancel_return" value=" " />
<input type="submit" name="submit" value="Add to cart" class="button btn" />
</fieldset>
</form>
</div>
<div class="col-md-4 product-men mt-5">
<div class="men-pro-item simpleCart_shelfItem"><div class="men-thumb-item text-center">
<imgsrc="images/sp1.png" alt=""><div class="men-cart-pro"><div class="inner-men-cart-pro">
<a href="philips.php" class="link-product-add-cart">View More</a>
</div>
</div>
<div class="item-info-product text-center border-top mt-4">
<h4 class="pt-1"><a href="single.html">Philips Channel Speakers </a></h4>
<div class="info-product-price my-2">
<span class="item_price"><?php echo "Rs. ".$philips_spk_price ;?></span>

Online Electronic Store 90


Enrollment No. 166248840
</div>
<div class="snipcart-details top_brand_home_detailsitem_add single-item hvr-outline-out">
<form action="#" method="post">
<fieldset>
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="business" value=" " />
<input type="hidden" name="item_name" value="Philips Speakers" />
<input type="hidden" name="amount" value="4,570.00" />
<input type="hidden" name="discount_amount" value="1.00" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="return" value=" " />
<input type="hidden" name="cancel_return" value=" " />
<input type="submit" name="submit" value="Add to cart" class="button btn" />
</fieldset>
</form>
</div></div>
<div class="product-sec1 product-sec2 px-sm-5 px-3">
<div class="row">
<h3 class="col-md-4 effect-bg">Summer Carnival</h3>
<p class="w3l-nut-middle">Get Extra 10% Off</p>
<div class="col-md-8 bg-right-nut"><imgsrc="images/image1.png" alt=""></div></div>
<div class="product-sec1 px-sm-4 px-3 py-sm-5 py-3 mt-4">
<h3 class="heading-tittle text-center font-italic">Computer & Laptops</h3>
<div class="row">
<div class="col-md-4 product-men mt-5">
<div class="men-pro-item simpleCart_shelfItem">
<div class="men-thumb-item text-center"><imgsrc="images/comp1.png" alt="">
<div class="men-cart-pro"><div class="inner-men-cart-pro">
<a href="lenovo.php" class="link-product-add-cart">View More</a></div>

Online Electronic Store 91


Enrollment No. 166248840
<div class="item-info-product text-center border-top mt-4">
<h4 class="pt-1"><a href="single.html">Lenovo Computer</a></h4>
<span class="item_price">
<?php echo "Rs. ".$lenovo_price;?></span>
</div>
<div class="snipcart-details top_brand_home_detailsitem_add single-item hvr-outline-out">
<form action="#" method="post">
<fieldset>
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="business" value=" " />
<input type="hidden" name="item_name" value="Lenovo Computer" />
<input type="hidden" name="amount" value="38,550.00" />
<input type="hidden" name="discount_amount" value="1.00" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="return" value=" " />
<input type="hidden" name="cancel_return" value=" " />
<input type="submit" name="submit" value="Add to cart" class="button btn" />
</fieldset></form></div>
</div>
<div class="col-md-4 product-men mt-5"><div class="men-pro-item simpleCart_shelfItem">
<div class="men-thumb-item text-center"><imgsrc="images/laptop1.jpg" alt="">
<div class="men-cart-pro"><div class="inner-men-cart-pro">
<a href="hp.php" class="link-product-add-cart">View More</a></div></div>
<fieldset>
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="business" value=" " />
<input type="hidden" name="item_name" value="HP Laptop" />
<input type="hidden" name="amount" value="61,999.00" />
<input type="hidden" name="discount_amount" value="1.00" />

Online Electronic Store 92


Enrollment No. 166248840
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="return" value=" " />
<input type="hidden" name="cancel_return" value=" " />
<input type="submit" name="submit" value="Add to cart" class="button btn" />
</fieldset>
</form>
</div>
<div class="col-md-4 product-men mt-5">
<div class="men-pro-item simpleCart_shelfItem">
<div class="men-thumb-item text-center">
<imgsrc="images/dell1.jpg" alt="">
<div class="men-cart-pro"><div class="inner-men-cart-pro">
<a href="dell.php" class="link-product-add-cart">View More</a></div>
</div>

<!-- footer first section -->


<h2 class="footer-top-head-w3l font-weight-bold mb-2">Electronics :</h2>
<p class="footer-main mb-4">If you're considering a new laptop, looking for a powerful new car stereo
or shopping for a new HDTV, we make it easy tofind exactly what you need at a price you can afford.
We offer Every Day Low Prices on TVs, laptops, cell phones, tabletsandiPads, video games, desktop
computers, cameras and camcorders, audio, video and more.</p>
<!-- //footer first section -->

<div class="row w3l-grids-footer border-top border-bottom py-sm-4 py-3">


<div class="col-md-4 offer-footer">
<div class="row">
<div class="col-4 icon-fot"><i class="fasfa-dolly"></i></div>
<div class="col-8 text-form-footer"><h3>Free Shipping</h3>
<p>on orders over Rs.25,00.00</p></div></div>
</div>
<div class="col-md-4 offer-footer my-md-0 my-4">

Online Electronic Store 93


Enrollment No. 166248840
<div class="row"><div class="col-4 icon-fot">
<i class="fasfa-shipping-fast"></i></div><div class="col-8 text-form-footer">
<h3>Fast Delivery</h3><p>World Wide</p></div></div>
<div class="col-md-4 offer-footer">
<div class="row"><div class="col-4 icon-fot"><i class="far fa-thumbs-up"></i></div>
<div class="col-8 text-form-footer"><h3>Big Choice</h3><p>of Products</p></div>

<!-- //footer second section -->


</div></div>
<!-- copyright -->
<div class="copy-right py-3">
<div class="container">
<marquee><p class="text-center text-white">Online Electronic Store This project is designed by
SHIVANI SHRIVASTAVA [MCA]</p></marquee></div></div>
<!-- //copyright -->

<!--js-files -->
<!--jquery -->
<scriptsrc="js/jquery-2.2.3.min.js"></script>
<!-- //jquery -->
<!--nav smooth scroll -->
<script>
$(document).ready(function () {
$(".dropdown").hover(
function () {
$('.dropdown-menu', this).stop(true, true).slideDown("fast");
$(this).toggleClass('open');
},
function () {
$('.dropdown-menu', this).stop(true, true).slideUp("fast");
$(this).toggleClass('open');

Online Electronic Store 94


Enrollment No. 166248840
}
);
});
</script>
<!-- //nav smooth scroll -->
<!-- cart-js -->
<scriptsrc="js/minicart.js"></script>
<script>paypals.minicarts.render(); //use only unique class names other than paypals.minicarts.Also
Replace same class name in css and minicart.min.js
paypals.minicarts.cart.on('checkout', function (evt) {var items = this.items(),len = items.length,total = 0,
i;
// Count the number of each item in the cartfor (i = 0; i <len; i++) {
total += items[i].get('quantity');
}
if (total < 1) {
alert('The minimum order quantity is 1. Please add more to your shopping cart before checking
out');evt.preventDefault();
});
</script>
<!-- //cart-js -->
<!-- scroll seller -->
<scriptsrc="js/scroll.js"></script>
<!-- //scroll seller -->
<!--smoothscroll -->
<scriptsrc="js/SmoothScroll.min.js"></script>
<!-- //smoothscroll -->
<!-- start-smooth-scrolling -->
<scriptsrc="js/easing.js"></script>
<script>
jQuery(document).ready(function ($) {
$(".scroll").click(function (event) {

Online Electronic Store 95


Enrollment No. 166248840
event.preventDefault();
$('html,body').animate({
scrollTop: $(this.hash).offset().top
}, 1000);
});
});
</script>
<!-- //end-smooth-scrolling -->
<!-- for bootstrap working -->
<scriptsrc="js/bootstrap.js"></script>
<!-- //for bootstrap working -->
<!-- //js-files -->
</body>
</html>

Online Electronic Store 96


Enrollment No. 166248840
➢ apple.php :
<?php
include('dbconnection.php');
session_start();
$product="Apple iPhone X";
$price="";
$quantity="";
$sql = "select * from products where Product_Name='$product'";
$result = mysql_query($sql);
if ( $row=mysql_fetch_array($result))
{
$price=$row['Product_Price'];
$quantity=$row['Product_Quantity'];
}
else
{
echo "error".mysql_error();
}
// echo $price;
// echo $quantity;

if (isset($_POST['submit']))
{
if (!isset($_SESSION['Username']))
{
echo "<script type='text/javascript'>alert('Please Login To ADD Product To Cart')</script>";
header('Refresh:0.5; url=login.php');
}
elseif ($_POST['req_qty'] > $quantity)
{

Online Electronic Store 97


Enrollment No. 166248840
echo "<script type='text/javascript'>alert('Required Quantity Is Not In Stock')</script>";
}
else
{
$username=$_SESSION['Username'];
$req_qty=$_POST['req_qty'];
$sql1="insert into cart (Product_Name,Product_Quantity,User) values
('$product','$req_qty','$username')";
if(mysql_query($sql1))
{
echo "<script type='text/javascript'>alert('Successfully Added To Cart')</script>";
}
else
{
echo "error".mysql_error();
}
}
?>

<!-- Single Page -->


<div class="banner-bootom-w3-agileits py-5"><div class="container py-xl-4 py-lg-2">
<div class="row">
<div class="col-lg-2 single-right-left "><div class="grid images_3_of_2">
<div class="flexslider">
<ul class="slides">
<li data-thumb="images/a11.jpg">
<div class="thumb-image">
<imgsrc="images/a11.jpg" data-imagezoom="true" class="img-fluid" alt=""></div></li>
<li data-thumb="images/a12.jpg">
<div class="thumb-image">

Online Electronic Store 98


Enrollment No. 166248840
<imgsrc="images/a12.jpg" data-imagezoom="true" class="img-fluid" alt=""></div></li><li data-
thumb="images/a13.jpg"><div class="thumb-image">
<imgsrc="images/a13.jpg" data-imagezoom="true" class="img-fluid" alt=""></div></li>
</ul>
<div class="clearfix"></div></div>

<div class="col-lg-10 single-right-left simpleCart_shelfItem">


<h3 class="mb-3">Apple iPhone X (Space Grey, 3GB RAM, 64GB Storage, 12 MP Dual
Camera, 458 PPI Display)</h3>
<p class="mb-3">
<span class="item_price"><?php echo "Rs." .$price; ?></span>
<!--<del class="mx-2 font-weight-light">$280.00</del>-->
<label>Free delivery</label>
<span class="item_price"><?php echo "Quantity In Stock:".$quantity; ?></span>
</p>
<div class="single-infoagile">
<ul>
<li class="mb-3">Cash on Delivery Eligible.</li>
<li class="mb-3">Shipping Speed to Delivery.</li>
<li class="mb-3">EMIs from Rs.1500/month.</li>
<li class="mb-3">Bank OfferExtra 5% off* with Axis Bank Buzz Credit CardT&C</li>
</ul>
</div>
<div class="product-single-w3l">
<p class="my-3">
<i class="far fa-hand-point-right mr-2"></i>
<label>1 Year</label>Manufacturer Warranty</p>
<ul>
<li class="mb-1">
Memory, Storage & SIM: 3GB RAM | 64GB storage | Single nano SIM

Online Electronic Store 99


Enrollment No. 166248840
</li>
<li class="mb-1">Display: 14.73 centimeters (5.8-inch) Full HD</li>
<li class="mb-1">Camera: 12+12 MP Dual rear camera</li>
<li class="mb-1">Battery: 2716 mAH lithium ion battery providing talk-time of 21 hours</li>
<li class="mb-1">Operating System and Processor: iOS v11.1.1 </li>
</ul>
<p class="my-sm-4 my-3">
<i class="fasfa-retweet mr-3"></i>Net banking & Credit/ Debit/ ATM card
</p>
</div>
<div class="occasion-cart">
<div class="snipcart-details top_brand_home_detailsitem_add single-item hvr-outline-out">
<form method="post">
<TABLE
BORDER="1">
<TR>
<TD>Quantity</TD>
<TD><INPUT TYPE="number" name="req_qty" value="" SIZE="20" required ></TD>
</TR>
</TABLE><br>
<input type="submit" name="submit" value="Add to cart" class="button" />
</form>
</div></div>
<!-- //Single Page -->

Online Electronic Store 100


Enrollment No. 166248840
➢ payment.php :
<?php
mysql_query("START TRANSACTION");
$username=$_SESSION['Username'];
$req_qty=$_POST['req_qty'];
$update_qty=$quantity-$req_qty;

$sql1="insert into cart (Product_Name,Product_Quantity,User) values


('$product','$req_qty','$username')";
$sql2="update Products set Product_Quantity='$update_qty' where Product_Name='$product'";

$a1 = mysql_query($sql1);
$a2 = mysql_query($sql2);

if ($a1 and $a2) {


mysql_query("COMMIT");
echo "<script type='text/javascript'>alert('Successfully Added To Cart')</script>";
header('Refresh:0.5; url='.$_SERVER['REQUEST_URI']);
} else {
mysql_query("ROLLBACK");
echo "<script type='text/javascript'>alert('Failed')</script>";
//echo $sql2;
}
?>

Online Electronic Store 101


Enrollment No. 166248840
➢ logout.php :
<?php
session_start();
if (isset($_SESSION['Username']))
{
unset($_SESSION['Username']);
unset($_SESSION['User']);
echo "<script type='text/javascript'>alert('Logged Out Successfully')</script>";
header('Refresh:0.5; url=index.php');
// header('Location:index.php');
}
?>

Online Electronic Store 102


Enrollment No. 166248840

❖ Checkout.php :
<?php
include('dbconnection.php');
session_start();
if (!isset($_SESSION['Username']))
{
echo "<script type='text/javascript'>alert('Please Login To Check Cart')</script>";
header('Refresh:0.5; url=login.php');
}
$username=$_SESSION['Username'];
$result=mysql_query("SELECT count(*) as total from cart where User='$username' and
buying_status=''");
$data=mysql_fetch_assoc($result);
// echo $data['total'];
if(isset($_POST['submit']))
{
$SL_NO=$_POST['submit'];
$sql1="delete from cart where SL_NO='$SL_NO' and User='$username'";

if(mysql_query($sql1))
{
echo "<script type='text/javascript'>alert('Item Successfully Removed')</script>";
header('Refresh:0.5; url='.$_SERVER['REQUEST_URI']); }
}
if(isset($_POST['submit2']))
{

Online Electronic Store 103


Enrollment No. 166248840
mysql_query("START TRANSACTION");
try
{
$username=$_SESSION['Username'];
$sql = "select * from cart where User='$username'";
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result))
{
$prod_name=$row['Product_Name'];
$used_qty=$row['Product_Quantity'];
$Qty="";
// echo "<script type='text/javascript'>alert(".$prod_name.")</script>";
$sql3="select * from products where Product_Name='$prod_name'";
$result1 = mysql_query($sql3);
if ( $row1=mysql_fetch_array($result1))
{
$Qty=$row1['Product_Quantity'];
}

if($Qty<$used_qty){
echo "<script type='text/javascript'>alert('Required Stock Not Available')</script>";
header('Refresh:0.5; url=checkout.php');
exit();
}
$update_qty=$Qty-$used_qty;
//echo "<script type='text/javascript'>alert(".$update_qty.")</script>";
$sql2="update Products set Product_Quantity='
$update_qty' where Product_Name='$prod_name'";
mysql_query($sql2);

$address=$_POST['name'].",".$_POST['landmark'].",".$_POST['city'].",".$_POST['add_type'].",Phone-

Online Electronic Store 104


Enrollment No. 166248840
".$_POST['number'];
//echo $address;
$sql4="update Cart set Buying_Status='Y', Delivery_Address='$address' where
Product_Name='$prod_name' and User='$username'";
mysql_query($sql4);
}
mysql_query("COMMIT");
echo "<script type='text/javascript'>alert('Product Ordered Successfully')</script>";
}

catch(Exception $e) {
mysql_query("ROLLBACK");
echo "<script type='text/javascript'>alert('Failed')</script>";
}
}

?>

<!DOCTYPE html>
<head>
<title>Online Electronic Store</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8" />
<script>
addEventListener("load", function () {
setTimeout(hideURLbar, 0);
},
false);
function hideURLbar() {
window.scrollTo(0, 1);
}

Online Electronic Store 105


Enrollment No. 166248840
</script>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all" />
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />

<link rel="stylesheet" href="css/fontawesome-all.css">


<link href="css/menu.css" rel="stylesheet" type="text/css" media="all" />
<body>
<!-- page -->
<div class="services-breadcrumb">
<div class="agile_inner_breadcrumb">
<div class="container">
<ul class="w3_short">
<li><a href="index.php">Home</a><i><li>Checkout</li>
</ul>
</div>
<!-- //page -->
<!-- checkout page -->
<div class="privacy py-sm-5 py-4">
<div class="container py-xl-4 py-lg-2">
<!-- tittle heading -->
<h3 class="tittle-w3l text-center mb-lg-5 mb-sm-4 mb-3">
<span>C</span>heckout
</h3>
<!-- //tittle heading -->
<div class="checkout-right">
<h4 class="mb-sm-4 mb-3">Your shopping cart contains:
<span>
<?php echo $data['total']; ?> Products</span>
</h4>
<form method="POST">
<div class="table-responsive">

Online Electronic Store 106


Enrollment No. 166248840
<table class="timetable_sub">
<thead>
<tr>
<th>SL No.</th>
<th>Product Name</th>
<th>Quality</th>
<th>Price</th>
<th>Remove</th>
</tr>
</thead>
<tbody>

<?php
$sql = "select c.SL_NO,c.Product_Name,c.Product_Quantity,p.Product_Price from cart c,
Products p where c.Product_Name=P.Product_Name and c.user='$username' and
c.buying_status=''";
$count=1;
$result=mysql_query($sql);
while($row=mysql_fetch_array($result))
{

echo"<tr class=rem1>
<td class=invert>".$count."</td>";
Echo"<td class=invert>".$row['Product_Name']."</td>";
echo "<td class=invert>".$row['Product_Quantity']."</td>";
echo"<td class=invert>
<div class=quantity>
<div class=quantity-select>
<div class=entry value>
<span>".$row['Product_Price']."</span>
</div>

Online Electronic Store 107


Enrollment No. 166248840

</div>
echo "<td class=invert>
<div class=rem>
<div class=close1><button name=submit type=submit
value=".$row['SL_NO'].">Remove</button> </div>
</div>
</td>
</tr>";
$count++;
}
?>
</tbody>
</table>
</div>
</form>
</div>
<div class="checkout-left">
<div class="address_form_agile mt-sm-5 mt-4">
<h4 class="mb-sm-4 mb-3">Add a new Details</h4>
<form method="post" class="creditly-card-form agileinfo_form">
<div class="creditly-wrapper wthree, w3_agileits_wrapper">
<div class="information-wrapper">
<div class="first-row">
<div class="controls form-group">
<input class="billing-address-name form-control" type="text" name="name" placeholder="Full
Name" required="">
</div>

Online Electronic Store 108


Enrollment No. 166248840
<div class="w3_agileits_card_number_grids">
<div class="w3_agileits_card_number_grid_left form-group">
<div class="controls">

<input type="text" class="form-control" placeholder="Mobile Number" name="number"


required="">
<div></div>
<div class="w3_agileits_card_number_grid_right form-group">
<div class="controls">
<input type="text" class="form-control" placeholder="Landmark" name="landmark" required="">
</div>
</div>
</div>
<div class="controls form-group">
<input type="text" class="form-control" placeholder="Town/City" name="city" required="">
</div>
<div class="controls form-group">
<select class="option-w3ls" name="add_type">
<option>Select Address type</option>
<option>Office</option>
<option>Home</option>
<option>Commercial</option>
</select>
</div>
</div>
</div>
</div>
<div class="checkout-right-basket">
<button type="submit" name ="submit2" class="btn btn-success">Order Now</button>
</div>
</form>

Online Electronic Store 109


Enrollment No. 166248840

<!-- //checkout page -->


<!-- copyright -->
<div class="copy-right py-3">
<div class="container">
<marquee><p class="text-center text-white">Online Electronic Store This project is designed by
SHIVANI SHRIVASTAVA [MCA]</p></marquee>
</div>
</div>
<!-- //copyright -->

<script src="js/jquery-2.2.3.min.js"></script>
<script src="js/scroll.js"></script>
<script src="js/SmoothScroll.min.js"></script>
<script src="js/easing.js"></script>
<script src="js/bootstrap.js"></script>
</body>
</html>

Online Electronic Store 110


Enrollment No. 166248840

❖ aboutus.php :
<!DOCTYPE html>
<head>
<title>Online Electronic Store</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8" />
<script>
addEventListener("load", function () {
setTimeout(hideURLbar, 0);
},
False
);
function hideURLbar() {
window.scrollTo(0, 1);
}
</script>
<style>
.snipcart-details input.button {
width: 80%;
}
.navbar-inner {
background: #F45C5D;
box-shadow: 0px 2px 6px 1px rgba(0, 0, 0, 0.13);
}
.bg-light {
background-color: #F45C5D !important;
}

Online Electronic Store 111


Enrollment No. 166248840
.navbar-light .navbar-nav .nav-link {
letter-spacing: 1px;
font-size: 15px;
color: #fff;
}
.navbar-light .navbar-nav .show>.nav-link,
.navbar-light .navbar-nav .active>.nav-link,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .nav-link.active {
color: #fff;
}
.logo_agile h1 a {
color: #F45C5D;
font-size: 38px;
text-decoration: none;
letter-spacing: 1px;
position: relative;
padding-left:200px;
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 1rem;
font-weight: 400;
line-height: 0.9;
color: #212529;
text-align: left;
background-color: #fff;
}
.top_nav_right {

Online Electronic Store 112


Enrollment No. 166248840
padding: 24px;
}
</style>
</head>

<body>
<!-- header-bottom-->
<div class="header-bot">
<div class="container">
<div class="row header-bot_inner_wthreeinfo_header_mid">
<!-- logo -->
<div class="col-md-10 logo_agile">
<h1 class="text-center">
<a href="index.html" class="font-weight-bold font-italic">Online Electronics Store</a>
</h1>
</div>
<!-- //logo -->
<!-- cart details -->
<div class="col-md-2 top_nav_right text-center mt-sm-0 mt-2">
<div class="wthreecartaits wthreecartaits2 cart cart box_1">
<form action="#" method="post" class="last">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="display" value="1">
<button class="btn w3view-cart" type="submit" name="submit" value="">
<i class="fas fa-cart-arrow-down"></i>
</button>
</form>
</div>
</div>
<!-- //tittle heading -->
<div class="row">

Online Electronic Store 113


Enrollment No. 166248840
<div class="col-lg-6 welcome-left">
<h3>Welcome</h3>

<h4 class="my-sm-3 my-2">consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore
et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat.</h4>

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse porta erat sit amet eros
sagittis, quis hendrerit libero aliquam. Fusce semper augue ac dolor efficitur, a pretium metus
pellentesque.</p>
</div>
<div class="col-lg-6 welcome-right-top mt-lg-0 mt-sm-5 mt-4">
<img src="images/ab.jpg" class="img-fluid" alt=" ">
</div>
</div>
<!-- //about -->
<!-- footer -->
<footer>
<div class="footer-top-first" style="background:#ebebeb">
<div class="container py-md-5 py-sm-4 py-3">
<!-- footer first section -->
<h2 class="footer-top-head-w3l font-weight-bold mb-2">Electronics :</h2>
<p class="footer-main mb-4"> If you're considering a new laptop, looking for a powerful new car
stereo or shopping for a new HDTV, we make it easy to find exactly what you need at a price you
can afford. We offer Every Day Low Prices on TVs, laptops, cell phones, tablets and iPads, video
games, desktop computers, cameras and camcorders, audio, video and more.</p>

<!-- //footer first section -->


<div class="row w3l-grids-footer border-top border-bottom py-sm-4 py-3">
<div class="col-md-4 offer-footer">

Online Electronic Store 114


Enrollment No. 166248840
<div class="row">
<div class="col-4 icon-fot">
<i class="fas fa-dolly"></i>

</div>
<div class="col-8 text-form-footer">
<h3>Free Shipping</h3>
<p>on orders over Rs.25,00.00</p>
</div></div></div>
<div class="col-md-4 offer-footer my-md-0 my-4">
<div class="row">
<div class="col-4 icon-fot">
<i class="fas fa-shipping-fast"></i>
</div>
<div class="col-8 text-form-footer">
<h3>Fast Delivery</h3>
<p>World Wide</p>
</div>
</div>
</div>
<div class="col-md-4 offer-footer">
<div class="row">
<div class="col-4 icon-fot">
<i class="far fa-thumbs-up"></i>
</div>
<div class="col-8 text-form-footer">
<h3>Big Choice</h3>
<p>of Products</p>
<div>
<!-- //footer second section -->
</div>

Online Electronic Store 115


Enrollment No. 166248840
</div>

<!-- copyright -->


<div class="copy-right py-3">
<div class="container">
<marquee><p class="text-center text-white">Online Electronic Store This project is designed by
SHIVANI SHRIVASTAVA [MCA]</p></marquee>
</div>
</div>
<!-- //copyright -->
<!-- js-files -->
<!-- jquery -->
<script src="js/jquery-2.2.3.min.js"></script>
<!-- //jquery –>
<!-- nav smooth scroll -->
<!-- //smooth-scrolling-of-move-up -->
<!-- for bootstrap working -->
<script src="js/bootstrap.js"></script>
<!-- //for bootstrap working -->
<!-- //js-files -->
</body>
</html>

Online Electronic Store 116


Enrollment No. 166248840
❖ 5.2 Standardization of Project :
➢ Benefit of coding standard :
Coding standards define a programming style. A coding standard does not usually
concern itself with wrong or right in a more abstract sense. It is simply a set of rules and
guidelines for the formatting of source code.

➢ Common aspect of a coding standard :


• File Naming and Organization
• Formatting and Indentation
• Comments and Documentation
• Classes, Functions and Interfaces
• Pointer and Reference Usage
• Testing
Sometimes a coding standard is an accepted practice for a particular language.
For instance, programmers generally accept that when writing php source code they will write
parameters and private and protected fields using Camel casing. They will write all other
identifiers using Pascal casing. What this means for the php programmer is that they can look at
a piece of php source code written by another and quickly indentify segments. This increases
readability substantially.

The other common type of coding standard is the one used in or between
development teams. Consider that professional code does not simply perform a job. Professional
code performs a job in such a way tha t it is easy to maintain and debug.

In professional environments, the benefits of coding standards are


readability, maintainability and compatibility. Any member of a development should be able to
read the code of another member. The coder who maintains a piece of code tomorrow may not be the
coder who programmed it today. In addition, today’s enterprise solutions are so complex that multiple
development teams unite to build a singular enterprise software application. With coding standards,
distinct teams can rely on the way that they can interface with the code built by a separate team.

Online Electronic Store 117


Enrollment No. 166248840

6. TESTING

❖ 6.1 Testing Technique and Strategy Used :


To perform testing in a planned and systematic manner, software testing
strategy is developed. A testing strategy is used to identify the levels of testing which are to
be applied along with the methods, techniques, and tools to be used during testing. This
strategy also decides test cases, test specifications, test case decisions, and puts them together
for execution.
The design and architecture of the software are also useful in choosing testing strategy. A
number of software testing strategies are developed in the testing process. All these strategies
provide the tester a template, which is used for testing. Generally, all testing strategies have
following characteristics.

➢ Types of Software Testing Strategies :

There are different types of software testing strategies, which are selected by the testers
depending upon the nature and size of the software. The commonly used software testing
strategies are listed below.

Analytic testing strategy: This uses formal and informal techniques to access and prioritize risks that
arise during software testing. It takes a complete overview of requirements, design, and
implementation of objects to determine the motive of testing. In addition, it gathers complete
information about the software, targets to be achieved, and the data required for testing the software.

Model-based testing strategy: This strategy tests the functionality of the software according to the
real world scenario (like software functioning in an organization). It recognizes the domain of data and
selects suitable test cases according to the probability of errors in that domain.

Methodical testing strategy: It tests the functions and status of software according to the checklist,
which is based on user requirements. This strategy is also used to test the functionality, reliability,

Online Electronic Store 118


Enrollment No. 166248840
usability, and performance of the software.

Process-oriented testing strategy: It tests the software according to already existing standards such as
the IEEE standards. In addition, it checks the functionality of the software by using automated testing
tools.

Dynamic testing strategy: This tests the software after having a collective decision of the testing
team. Along with testing, this strategy provides information about the software such as test cases used
for testing the errors present in it.

Philosophical testing strategy: It tests the software assuming that any component of the software can
stop functioning anytime. It takes help from software developers, users and systems analysts to test the
software.

Online Electronic Store 119


Enrollment No. 166248840

❖ 6.2 Testing Plan Used :

A TEST PLAN is a document describing software testing scope and activities. It is the basis for
formally testing any software/product in a project.
The format and content of a software test plan vary depending on the processes, standards, and test
management tools being implemented. Nevertheless, the following format, which is based on IEEE
standard for software test documentation, provides a summary of what a test plan can/should contain.

➢ Test Plan Identifier:

• Provide a unique identifier for the document. (Adhere to the Configuration Management System
if you have one.)

➢ Introduction:

• Provide an overview of the test plan.


• Specify the goals/objectives.
• Specify any constraints.

➢ References:

• List the related documents, with links to them if available, including the following:
o Project Plan
o Configuration Management Plan

➢ Test Items:

• List the test items (software/products) and their versions.

➢ Features to be Tested:

• List the features of the software/product to be tested.

Online Electronic Store 120


Enrollment No. 166248840
• Provide references to the Requirements and/or Design specifications of the features to be tested

➢ Features Not to Be Tested:

• List the features of the software/product which will not be tested.


• Specify the reasons these features won’t be tested.

➢ Approach:

• Mention the overall approach to testing.


• Specify the testing levels [if it’s a Master Test Plan], the testing types, and the testing methods
[Manual/Automated; White Box/Black Box/Gray Box]

➢ Item Pass/Fail Criteria:

• Specify the criteria that will be used to determine whether each test item (software/product) has
passed or failed testing.

➢ Test Deliverables:

• List test deliverables, and links to them if available, including the following:
o Test Plan (this document itself)
o Test Cases
o Test Scripts
o Defect/Enhancement Logs
o Test Reports

➢ Test Environment:

• Specify the properties of test environment: hardware, software, network etc.


• List any testing or related tools.

➢ Estimate:

Online Electronic Store 121


Enrollment No. 166248840
• Provide a summary of test estimates (cost or effort) and/or provide a link to the detailed
estimation.

➢ Schedule:

• Provide a summary of the schedule, specifying key test milestones, and/or provide a link to the
detailed schedule.

➢ Staffing and Training Needs:

• Specify staffing needs by role and required skills.


• Identify training that is necessary to provide those skills, if not already acquired.

➢ Responsibilities:

• List the responsibilities of each team/role/individual.

➢ Risks:

• List the risks that have been identified.


• Specify the mitigation plan and the contingency plan for each risk.

➢ Assumptions and Dependencies:

• List the assumptions that have been made during the preparation of this plan.
• List the dependencies.

➢ Approvals:

• Specify the names and roles of all persons who must approve the plan.
• Provide space for signatures and dates. (If the document is to be printed.)

Online Electronic Store 122


Enrollment No. 166248840

❖ 6.3 Test reports for Unit Test Cases and System Test Cases :

UNIT TESTING is a level of software testing where individual units/ components of a 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. In
procedural programming, a unit may be an individual program, function, procedure, etc. In object-
oriented programming, the smallest unit is a method, which may belong to a base/ super class, abstract
class or derived/ child class. (Some treat a module of an application as a unit. This is to be discouraged
as there will probably be many individual units within that module.) Unit testing frameworks, drivers,
stubs, and mock/ fake objects are used to assist in unit testing.

Acceptance Testing

System Testing

Integration Testing

Unit Testing

SYSTEM TESTING are the third phase in the Testing Lifecycle. System Tests are the test of the end-
user functionality. System Tests verify the correct functioning of all the required features as given in the
specification document.

Since prior testing phases have tested the internal logic of the application, System Tests should
not repeat detailed, exhaustive testing. Instead System Tests verify that all subsystems are cooperating
successfully to yield the final desired features.

Online Electronic Store 123


Enrollment No. 166248840

System tests are usually "black box" tests since we are testing the application without seeing the source
code. Create the test cases following the guidelines in the textbook, the black box techniques studied in
class, as well as your own experience or intuition about verifying program correctness. Number each
test case and write it in HTML (or Wiki) format.

Prepare the test cases according to these directions: System Test Case Format
The QA manager is responsible for creating the Test Matrix, which is a grid with Requirement Numbers
on one axis and Test Case Numbers on the other. It shows which test cases cover which requirements.
Use this which shows which test cases were written by which team member and has a link to the test
cases.

• Every functional requirement in the specification has at least one test case.
• Purpose provides specific detail of the behavior or function being tested.
• Actual input data and expected output data are provided. The expected output is precise and
detailed enough to be implemented as an "oracle" for automated testing. The data needs to run
on the actual software being released.
• User Action description is clear and specific enough for independent testers to follow the
directions.
• The test case will correctly verify the requirement.
• Cross-reference is correct.

Online Electronic Store 124


Enrollment No. 166248840

❖ 6.4 Testing Procedure:

The main objective of the testing here is to execute a program and find the errors, so that software can
function according to specification specified for behave and performance requirement of the software.
1.Testing Techniques: We have used the following testing technique for finding errors in this software:
(A).White Box Testing Technique: We have used this method to exercise the internal program logic.
During the course of white box testing, I have done the following work.
 All independent paths within a module are exercised at least once.
 All logical decision on their true and false side is also exercised.
 All loops were executed at their boundaries and within their operation bounds.
 Validity of internal data structure was also exercised.
Some of white box testing techniques, which we have used for this software, are: -
1. Basis Path Testing: The basis path methods enable me to derive a logical complexity
measure of a procedure design and this measure is used for defining a basis set of execution
path. This path ensures to execute every statement in a program at least once.
2. Control structure testing: Since the basis path testing was not enough, hence the control
structure testing is used to exercise the logical condition in a program module
During the course of testing, I have done the following activities,
Which are described below:-
▪ After testing all conditions, we have found some errors like:
▪ Boolean variable error in the module cost benefit analysis.
Case:-In cost benefit analysis, we have used the concept of relative cell referencing in this contact; we
have taken two types of cell
(i) Variable cell
(ii) Function

Based constant value cell. Only user can modify variable cell but function value cell only display
manipulated value. If cell is functional cell, its return TRUE else FALSE. During course of testing, we
have found this function not return value properly. So we have separately tested this function for
Boolean errors.

Online Electronic Store 125


Enrollment No. 166248840

(B). Black Box Testing: This method is used to test the functional requirements of the software as
specified in the section of S.E. Requirement Specification. By using this technique I have found errors
in the following categories:
• Incorrect or missing functions Interface errors
• Errors in data structure
• Behavior or performance errors and
• Initialization and termination errors
Testing Strategies: Testing strategy, which I have used here to integrate software test case design
methods into a series of steps, can be categorized into two spectrums: -
Code Testing.
Specifications testing.

The testing strategies, which I have used here, have the following generic characteristics:-
 First component level testing are performed and then we moved towards the integration of
the entire software.
 During the course of various types of testing, user involvements are also considered.
 Different types of testing are performed at different points of time.

• Integration Testing:- During this phase we have combine all the module and perform
integration sting for constructing the program structure while at the same time conducting tests to
uncover errors associated with interfacing. In order to integrate all the modules we have used
Bottom up approach.
• Validation Testing:-After the completion of integration testing removal of interfacing problem,
we have conducted validation testing according to reasonable expectation of user specified in the
S.E.Requirement specification documents. Since this s/w is designed for management, of the
software according to their needs.

Online Electronic Store 126


Enrollment No. 166248840

7.DATABASE SECURITY
➢ Data Integrity & Constrain :
Introduction to Data Integrity :-
It is important that data adhere to a predefined set of rules, as determined by the database administrator
or application developer. As an example of data integrity, consider the tables Patient and Doctors and
the business rules for the information in each of the tables.

Types of Data Integrity :- This section describes the rules that can be applied to table columns to
enforce different types of data integrity.

Null Rule :- A null rule is a rule defined on a single column that allows or disallows inserts or updates
of rows containing a null (the absence of a value) in that column.

Unique Column Values : - A unique value rule defined on a column (or set of columns) allows the
insert or update of a row only if it contains a unique value in that column (or set of columns).

Primary Key Values : - A primary key value rule defined on a key (a column or set of columns)
specifies that each row in the table can be uniquely identified by the values in the key.

Referential Integrity Rules : - A referential integrity rule is a rule defined on a key (a column or set of
columns) in one table that guarantees that the values in that key match the values in a key in a related
table (the referenced value). Referential integrity also includes the rules that dictate what types of data
manipulation are allowed on referenced values and how these actions affect dependent values.

The rules associated with referential integrity are:


Restrict: Disallows the update or deletion of referenced data.
Set to Null: When referenced data is updated or deleted, all associated dependent data is set to NULL.
Set to Default: When referenced data is updated or deleted, all associated dependent data is set to a
default value.

Online Electronic Store 127


Enrollment No. 166248840
Introduction Integrity Constraints : -

Oracle uses integrity constraints to prevent invalid data entry into the base tables of the database. You
can define integrity constraints to enforce the business rules you want to associate with the information
in a database. If any of the results of a DML statement execution violate an integrity constraint, then
Oracle rolls back the statement and returns an error.

NOT NULL Integrity Constraints : -

By default, all columns in a table allow nulls. Null means the absence of a value.
A NOT NULL constraint requires a column of a table contain no null values. For example, you can
define a NOT NULL constraint to require that a value be input in the last_name column for every row of
the doctors table.

Online Electronic Store 128


Enrollment No. 166248840

8. Project Cost Management & Estimation Guide

Creating a project budget is an extremely crucial part of any project management.


Various things are taken in consideration while calculating budget for project like labor costs, necessary
equipment acquisition, material costs, etc.

Project Cost Management :

Project Cost Management is the process of planning and controlling the project cost effectively. It
defines what costs are required for each deliverable. The cost of the project can be estimated from
various process sources like

• Creating WBS

• Develop Schedule

• Plan human resources

• Identifying risks

The inputs of cost management include,

• Project management plan


• Project charter
• Enterprise environmental factors
• Organizational process assets

➢ Project Cost Estimation :

The Project Cost Estimation is the process of approximating the total expenditure of the project.

Online Electronic Store 129


Enrollment No. 166248840

The accuracy of the cost estimation depends on the accuracy and details of the project scope, which is
the scope baseline. The scope will also define any constraints like date, resources or budget.

The risk register will help to estimate types of costs, the expenses made behind the contingent action and
the expenses made to cope with risks.

To estimate the cost of project you have to categorize various cost types into categories like

• Labor cost
• Equipment cost
• Cost of supplies
• Travel cost
• Training cost
• Overhead cost

Techniques used to estimate project cost :

To estimate project cost formally there are few techniques used

Analogous Estimating : This estimating technique is based on expert judgments and information based
on similar previous projects. Where previously done similar project cost is considered with plus or
minus of 20% for existing project.

Parametric estimating

Past data or record is used to estimate cost for the current project.

Bottom-up estimating : Once you have defined the scope of the project, it is the most reliable form of
technique. In this technique, based on WBS, you estimate the cost for each resource or deliverables.
Likewise, there are other techniques which could be useful for estimating cost like PERT
estimating, vendor bid analysis, etc.

➢ Project Budget Planning :

The main purpose of this activity is to allocate and authorize the monetary resources required to

Online Electronic Store 130


Enrollment No. 166248840

complete the project. The main output for determining the budget includes cost performance baseline. It
not only specifies what cost will be incurred but also when costs will be incurred. The inputs for
determining budget includes

• Activity cost estimates


• Basis for estimates
• Scope baseline
• Project Schedule
• Resource calendars
• Contracts
• Organizational process assets

The output of this process is

• Cost performance baseline


• Project funding requirements
• Project document updates

The project budgeting is performed in parallel with the project scheduling process. It is highly dependent
on three component –

• Cost estimation
• Task durations
• Allocated resources

During project budgeting, project manager communicates with different people responsible for
managing the work efforts as well as estimating project costs : He will use various project prospects like
work breakdown structure of the project, the cost estimates, historical data and records, resource
information, and policies.

Without risk assessment, the budgeting process is not completed. Risk assessing process considers
factors like time shortage, availability of resources, development team experience, the technology used,
etc. The risk assessment can be an amount between 25 and 30 percent of the overall project cost.

Online Electronic Store 131


Enrollment No. 166248840

9. FUTURE SCOPE & ENHANCEMENT

The scope of project include that what all future enhancement can be done in this system to
make it more feasible to use .

• Database for different products range and storage can be provided.


• Multilingual support can be provided so that it can be under stable by the person of any
language.
• More graphical can be added to make it more user friendly and under stable.
• Manage and backup version of documents online.

❖ Benefit :

• Manage Track Sales


• Manage contact
• Manage account
• Manage Opportunities
• Track product issue
• Manage issue priority
• Track product feature
• Manage Product Lifecycle

❖ Drawbacks and Limitations :

• The system is not capable of handling more than 6 user at a time.


• Some keyword in system are difficult to understand so the admin n operator person
should understand them through to use the accuracy.
• Graphs could have been added in order to get the record more clearly.

Online Electronic Store 132


Enrollment No. 166248840

10.BIBILIOGRAPHY

The following books were referred for completing this project. This includes books for front end part
and books for back end part.

The following are the list of books referred:


➢ Software Engineering – By Roger S. Pressman
➢ Core PHP Programming by Leon Atkinson : Pearson publishers
➢ Beginning PHP 5.3 by Matt Doyle - By Wrox Publication
➢ The complete Reference PHY by Stever Holzner : McGrow Hill
➢ MySql Bible by Steve Suehring Publisher: John Wiley & Sons

Online Electronic Store 133


Enrollment No. 166248840

11.CONCLUSION

While developing the system a conscious effort has been made to create and develop
a software package, making use of available tools, technique and resource - that would be
generate a proper support system.
While making the system , an eye has been kept on making its user - friendly, as cost
effective and flexible as possible. As such one may hope that the system will be acceptable to
any user and will adequately to any user will meet her needs.
As in the case of my system developed process where there a number of shortcoming in the
development of this system also.

Online Electronic Store 134


Enrollment No. 166248840

12.APPENDIX

1. FORMAT

Size : A4
Normal Text Size : Times New Roman, font size 12.
Heading Text Size : Times New Roman, font size 14 (Bold face)
Sub-Heading Text Size : Times New Roman, font size 12 (Bold face)
Margins : 1.5 inch on the left and top, 1 inch at the bottom and right
Paragraph : At Double Spacing
Line Spacing : 1.5 spacing to be provided throughout the Thesis.
Page number : Bottom centre of each page.
Binding : Hard bound with specified color coding.

2. ARRANGEMENT OF INITIAL PAGES

a. Front Cover Page


b. Approval Letter
c. Bio Data
d. Certificate of Originate

Online Electronic Store 135


Enrollment No. 166248840

REFFERENCES

• https://css-tricks.com
• http://www.php.net
• https://www.w3schools.com
• https://stackoverflow.com
• https://github.com
• https://www.codecademy.com
• https://www.tutorialspoint.com
• https://jquery.com

Online Electronic Store 136

You might also like