SlideShare a Scribd company logo
1 of 86
Download to read offline
FLORESTA FURNITURES
KARNATAK UNIVERSITY
DHARWAD
Janata Shikshana Samiti’s
Shri Manjunatheshwara Institute of UG & PG
Studies Vidyagiri, Dharwad-580004.
A PROJECT REPORT ON
“FLORESTA
FURNITURES”
BACHELOR OF COMPUTER SCIENCE
OF
KARNATAK UNIVERSITY, DHARWAD
PROJECT GUIDED BY
Smt . Renuka Matapathi
Submitted By
Deepa Mugad Priyanka Pawar
BSC(CS) VI SEMESTER BSC(CS)VI SEMESTER
REG NO:19M10123 REGNO:19M10160
DEPARTMENT OF COMPUTER SCIENCE
2021-2022
FLORESTA FURNITURES
JANATA SHIKSHAN SAMITI’S
SHRI MANJUNATHESHWARA INSTITUTE OF UG & PG
STUDIES, VIDYAGIRI, DHARWAD-580004
This is to certify that Miss. DEEPA MUGAD AND Miss. PRIYANKA
PAWAR has satisfactorily completed project work entitled “FLORESTA
FURNITURES” for the partial fulfilment of BSC(CS) prescribed by
Karanatak University, Dharwad during the academic year 2021-2022.
Smt.Reunka Matapathi Prof. Vivek M Laxmeshwar Dr. Ajith Prasad
Project Guide [HOD] Computer Department Principal
Examiners:
1) 2)
CERTIFICATE
FLORESTA FURNITURES
ACKNOWLEDGEMENT
The successful presentation of this project is an acknowledgement of the
immense support extended by JSS Shri Manjunatheshwara Institute of UG & PG Studies,
Vidyagiri, Dharwad Which has provided opportunities to fulfil the most cherished desired
to reach our goal. We would like to express our heartfelt thanks to our President Shri.
Vishwaprasannateertha of Pejavarmath of Udupi,Chairman Pujya Dr. D.Veerendra Hegde
and Dr. N. Vajrakumar, Secretary of JSS.
We would like to express our sincere gratitude to our beloved
Principal Dr.Ajith Prasad who gave us inspiration and moral support. We offer our
heartily gratitude to our H.O.D Prof. Vivek M. Laxmeshwar of Computer Science
Department who gave us knowledge and an opportunity to do the project on “FLORESTA
FURNITURES”, which also helped us in doing a lot of research and where expose to many
new things.
We would also take this opportunity to offer our sincere gratitude to our Project
Guide Smt.Renuka Matapathi for her excellent support throughout the development of this
project and for providing the necessary information on our request at all times. We also
thank all Teaching and Non-Teaching staff of Computer Science Department for helping us
in all aspects. We thank our parents for providing all the facilitiesto complete and make this
project successful.
Deepa Mugad (19M10123)
Priyanka Pawar (19M10160)
FLORESTA FURNITURES
DECLARATION
We, Deepa Mugad and Priyanka Pawar, students of sixth semester BSC(CS), Department
of Computer Science, JSS SMI UG AND PG STUDIES VIDYAGIRI, DHARWAD,
Karnataka University declare that the project entitled “FLORESTA FURNITURES” has
been submitted in partial fulfillment of the course requirement for the award of degree in
Bachelor of Science (Computer Science), Karnataka University, Dharwad during the academic
year 2021-2022. We have not submitted the matter embodied to any other university or
institution for the award ofany other degree.
Date: Deepa Mugad
Place: Dharwad Priyanka Pawar
FLORESTA FURNITURES
CONTENTS
1. PROJECT SYNOPSIS...............................................................1
2. FRAMEWORK ............................................................................ 3
2.1. HTML
2.2. CSS
2.3. PHP
2.4. X-AMP
2.5. My Sql
2.6. Visual Studio Code
3. PROJECT SUBJECT ................................................................. 7
4. SOFTWARE REQUIREMENTS SPECIFICATION.................10
4.1. Introduction
4.1.1. Purpose
4.1.2. Document Conventions
4.1.3. Scope
4.1.4. References
4.2. General Description
4.2.1. Product Functionalities
4.2.2. User Characteristics
4.3. Specific Requirements
4.3.1. Functional Requirements
4.3.2. Other Non-Functioal Requirements
4.3.3. External Interface Requirements
5.DESIGN OF THE SYSTEM........................................................15
5.1. Introduction
5.2. Data Flow Diagram
5.3. ER- Diagram
6. IMPLEMENTATION ..................................................................21
6.1. Introduction
6.2. Database Evolution
FLORESTA FURNITURES
7. DATABASE TABLES…............................................................26
7.1. Tables Used In Database
8. SCREEN SHOTS…................................................................... 29
9. SOURCE CODE ........................................................................ 34
10.TESTING.....................................................................................59
10.1. Software Testing
10.1.1. Introduction
10.1.2. Levels Of Testing
10.2. Validating The Tables
10.3. Functional Testing
11. CONCLUTION ......................................................................... 69
12. BIBLIOGRAPHY… ................................................................. 67
12.1. Books
12.2. Websites
FLORESTA FURNITURES
1. PROJECT SYNOPSIS
1.1 INTRODUTION
“FLORESTA FURNITURES” as we are developing a web application for the Furniture shop
“MANDOVI FURNITURES” situated at Dharwad. Its well-known outlet situated in heart of the
Dharwad city at main road of Hubli-Dharwad.
Furniture is the soul of a house; it gives a sense of fulfilling of needs. Types of furniture are of
many designs and categories. As the shop was firstly opened only with the intention of selling
wooden furniture like Sofa, Cots, Tables, Chairs but now it has a numerous variety of decorative
items and different type of products Wooden Wardrobe to the Garden Swings etc. They are the
wholesale dealers of reputed companies like Kurl-On, Sleep well and so on. They are the
merchants of wooden furniture utilities.
FLORESTA FURNITURE is a web application designed primarily for use in the furniture
item delivery service and it also provide the information about our furniture store. The main point
of developing this system is to help furniture store Administrator manage the furniture shop
business and help customer for online ordering and helpful for Customer to purchase his/her
desired item by sitting at home.
1.2 OBJECTIVE
• This system will allow furniture store to increase scope of business by reducing the labour
cost involved.
• The system also allows to quickly and easily manage an onlineitems which customers can
browse and use to place orders with just few clicks.
• The main point of developing this system is to help furniture store
• Administrator manage the furniture shop business and help customer for online ordering.
• Eliminate paper work and increase level of accuracy.
• Increase speed of service, sales volume and customer satisfaction.
1.3 INPUTS OF THE PROJECT
FLORESTA FURNITURES
• Furniture Products
• Categories
• Customer
• Orders
• Order details
• Cart
1.4 OUTPUTS OF THE PROJECT
• Customer profile
• Furniture details
• Order details
• View of order
• Generation of bills
• Report
1.5 PROCESS LOGIC
Furniture products
Categories
Customer
Orders
Customized Product
Payment
Orders details
Cart
• C
a
t
e
g
Customer profile
Furniture details
Order details
Payment
Customized Orders
View of orders
Report
FLORESTA
FURNITURE
FLORESTA FURNITURES
1.6 TOOLS/PLATFORM
Browser (Google Chrome)
XAAMP Sever
1.7 FRONT END
▪ HTML
▪ CSS
1.8 BACK END
▪ MySql
Programming Language
▪ JAVA Script
▪ PHP
1.9 DURATION OF THE PROJECT
2 Months
1.10 MEMBERS OF THE PROJECT
Deepa Mugad 19M10123
Priyanka Pawar 19M10160
1.11 LIMITATIONS
.
▪ We currently have not provided the Chatting facility.
▪ We are Currently not Providing the Tracking of the Product.
1.12 SCOPE OF THE APPLICATION
▪ To design web application for them that helps organization to extend their business
Across the state.
▪ To provide a online business as well as E-commerce business profit for that shop.
▪ This Website can Further Developed as Andriod.
2.FRAMEWORK
2.1 What is XAMPP?
XAMPP is an abbreviation where X stands for Cross-Platform, A stands for Apache, M stands
for MYSQL, and the Ps stand for PHP and Perl, respectively. It is an open-source package of
FLORESTA FURNITURES
web solutions that includes Apache distribution for many servers and command-line executables
along with modules such as Apache server, MariaDB, PHP, and Perl.
XAMPP helps a local host or server to test its website and clients via computers and laptops
before releasing it to the main server. It is a platform that furnishes a suitable environment to
test and verify the working of projects based on Apache, Perl, MySQL database, and PHP
through the system of the host itself. Among these technologies ,Perl is a programming
language used for web development, PHP is a backend scripting language, and MariaDB is the
most vividly used database developed by MySQL.
Components of XAMPP
As defined earlier, XAMPP is used to symbolize the classification of solutions for different
technologies. It provides a base for testing of projects based on different technologies through a
personal server. XAMPP is an abbreviated form of each alphabet representing each of its major
components. This collection of software contains a web server named Apache, a database
management system named MariaDB and scripting/ programming languages such
as PHP and Perl. X denotes Cross-platform, which means that it can work on different
platforms such as Windows, Linux and macOS.
Usage
The most obvious characteristic of XAMPP is the ease at which a WAMP webserver stack can
be deployed and instantiated.]
Later some common packaged applications that could be easily
installed were provided by Bitnami.
Officially, XAMPP's designers intended it for use only as a development tool, to allow website
designers and programmers to test their work on their own computers without any access to the
Internet. To make this as easy as possible, many important security features are disabled by
default. XAMPP has the ability to serve web pages on the World Wide Web. A special tool is
provided to password-protect the most important parts of the package.
XAMPP also provides support for creating and manipulating databases in
MariaDB and SQLite among others
Once XAMPP is installed, it is possible to treat a localhost like a remote host by connecting
using an FTP client. Using a program like FileZilla has many advantages when installing
FLORESTA FURNITURES
a content management system (CMS) like Joomla or WordPress. It is also possible to connect to
localhost via FTP with an HTML editor.
Features
XAMPP is regularly update to the latest releases of Apache, MariaDB, PHP and Perl. It also
comes with a number of other modules
including OpenSSL, phpMyAdmin, MediaWiki, Joomla, WordPress and more.[8]
Self-
contained, multiple instances of XAMPP can exist on a single computer, and any given instance
can be copied from one computer to another.[9]
XAMPP is offered in both a full and a standard
version (Smaller version).
Conclusion
 As we have seen, XAMPP is a powerful and versatile solution for setting up a
local web server. It presents a perfect way to create an environment for basic
WordPress coding, experimenting with Settings, tweaking themes, and much
more.
FLORESTA FURNITURES
2.2 HTML
HTML means Hypertext Markup Language. HTML is a method of describing the format of
document, which allows them to be viewed on computer screen. Web browsers display HTML
documents, program which can navigate across networks and display a wide variety of types
of information. HTML pages can be developed to be simple text or to be complex multimedia
extra advantages containing, moving images, virtual reality, and java applets.
Hypertext Markup language (HTML) is used to creating the web page either of static
or dynamic and used to develop the user-friendly web pages.
HTML is used for developing web pages .HTML is popularly used in World Wide Web
(WWW). It uses ASCII characters for both the main text and formatting instructions the main
text is data and the whole information is used by the browser to format the data. A HTML
document is simply a text file, which contains certain information you would like to publish.
A set of instruction embedded in a document is called Markup Language. These
instructions describe what the document text means and how it should look in a display. The
language also tells you how to make a document with other document on your local systems.
The World Wide Web and other inter resources such as FTP.
The global publishing format of the Internet is HTML. It allows authors to use not only text
but also format that text with headings, list and tables, and also includes still images videos,
and sound within text. Readers can access pages information from any where in the world at
the click of mouse button information can be downloaded to readers own PC or workstations
HTML pages can also be used for entering a data and as a front end for commercial transaction.
A website authoring program originally developed by Macromedia. It does many things
including allowing designer to move back and forth between visual and HTML modes.
2.3PHP
PHP is a scripting language originally designed for producing dynamic webpages. It has
evolved to include a command line interface capability and can be used in standalone graphical
application. While PHP was originally created by RasmusLerdorf in 1995, the main
implementation of PHP is now produced by the PHP Groups and serves as the de facto standard
for PHP as there is no formal specification.
FLORESTA FURNITURES
PHP is a scripting language under the PHP License; however, it is incompatible with
the GNU General Public License (GPL). Due to restrictions on the usage of the term PHP. It is
widely used general-purpose scripting language that is especially suited for web development
and can be embedded into HTML. It generally runs on a web server, taking PHP code as its
input, I am creating web pages as out puts. It can be deployed on web servers and on almost
every operating system and platform free of charge. PHP in installed on more the twenty
million web sites and one million web servers.
PHP Architecture
Usage
PHP primarily acts as a filter, taking input from a file or stream containing text and/or
PHP instructions and outputs another stream of data; most commonly the output will be HTML.
It can automatically detect the language of the user. From PHP 4, the PHP parser compiles
input to produce byte code for processing by the Zend Engine, giving improved performance
over its interpreter predecessor. Originally designed to create dynamic web pages, PHP’s
principal focus is server-side scripting, and it is similar to other server-side scripting languages
that provide dynamic content from a web server to a client, such as Microsoft’s Active Server
FLORESTA FURNITURES
Pages, Sun Microsystems JavaServer Pages, and mod_perl. PHP has also attracted the
development of many frameworks that provide building blocks and a design structure to
promote rapid application development (RAD). Some of these include CakePHP, Symfony,
CodeIgniter, and Zend Framework, offering features similar to other web application
frameworks.
The WAMP architecture has become popular in the web industry as a way of deploying web
applications. PHP is commonly used as the PHP in this bundle alongside Linux, Apache and
MySQL, although they may also refer to Python or Perl. As of April 2007, over 20 million
Internet domains were hosted on servers with PHP installed, and PHP was recorded as the most
popular Apache module. Significant websites are written in PHP including the user-facing
portion of Facebook, Wikipedia (MediaWiki), Yahoo!, MyYearbook, Wordpress.
In addition to server-side scripting, PHP can be used to create stand-alone, compiled
applications and libraries, it can be used for shell scripting.
FLORESTA FURNITURES
What is Database?
2.1 MY SQL
Quite simply, Its an organised collection of data. A Database management system (DBMS)
such as access file maker Pro, Oracle or SQL server provides you with the software tools you
need to organize that data in a flexible manner. It includes facilities to add modify or delete
data from database, ask questions (or queries) about the data stored in the database and produce
reports summarizing selected contents.
My SQL is a multithreaded, multi-user SQL database management system
(DBMS). The basic program runs as a server providing multi-user access to several databases.
My SQL was owned and sponsored by a single for-profit firm the Sidish company. My SQL
now a subsidiary of Sun Micro System, which hold the copy write to most of the database. The
data in My SQL is stored in database objects called Tables. A table is a collection of related
data entries and consist of columns and rows. Databases are useful when storing information
categorically.
MySQL is a database management system.
A database is a structured collection of data. It may be anything from a simple shopping list to
a picture gallery or the vast amounts of information in a corporate network. To add, access,
and process data stored in a computer database, you need a database management system such
as MySQL Server. Since computers are very good at handling large amounts of data, database
management systems play a central role in computing, as standalone utilities, or as parts of
other applications.
• MySQL databases are relational.
A relational database stores data in separate tables rather than putting all the data in one big
storeroom. The database structures are organized into physical files optimized for speed. The
logical model, with objects such as databases, tables, views, rows, and columns, offers a flexible
programming environment. You set up rules governing the relationships between different data
fields, such as one-to-one, one-to-many, unique, required or optional, and “pointers” between
different tables. The database enforces these rules, so that with a well-designed database, your
application never sees inconsistent, duplicate, orphan, out-of-date, or missing data.
FLORESTA FURNITURES
2. PROJECT SUBJECT…
▪ Speedy and efficient information processing is required to our socially and highly
developed technology.
▪ Computer can help the intolerable burden of handling the ever-increasing amount of
information related to the data.
▪ This may also lead to problems occurring due to information explosion.
About the project
• FURNITURE SHOP MANAGEMENT SYSTEM is a web application designed primarily for
use in the furniture item delivery service and it also provide the information about our
furniture store.
• This system will allow furniture store to increase scope of business by reducing the labor cost
involved.
• The system also allows to quickly and easily manage an online items which customers can
browse and use to place orders with just few clicks.
This project includes following features: -
▪ Having customer information and total products requirements
▪ For the help of user, it displays each and every detail about required topics.
▪ Maintains all the old record for later reference. Have provision for automatic update as
per the status.
Objectives of the proposed system
1. Immediate retrieval of information – The main objective of the new system is to
provide for quick and efficient retrieval of information, any type of information would
be available to the user whenever he requires. Facility would be provided for online
query to cut down on the response time greatly.
2. Immediate storage of information – In the proposed system, it will be easy to store
information at any given time at the correct places. The location of storage would be
easily available, and user will face no difficulty.
3. Prompt updating of information – In the proposed system, the information will
always remain up to date as the updating will be prompt and without any efforts. This
factor will be of great importance in the proposed system as it determines the integrity
of the information stored.
FLORESTA FURNITURES
4. Fast computation of information – The computation of information will be quite fast
in the proposed system. Not only mathematical calculations, but also logical
comparisons will be quick in the new system.
5. Planned approach toward working – The working is the service center information
system will be well planned and organized. The data will be stored properly in the data
store, which will help in retrieval of information as well as in its storage.
3.1 NUMBER OF MODULES
▪ Manage website
1. ADMIN
▪ Approve Status
▪ Login
▪ Manage admin’s password and databases
a. Upload new arrivals
b. View customers request
▪ Manage Users
▪ Logout
2. CUSTOMER
▪ Register
▪ Login
▪ View of products (Individual/Group)
▪ Create wishlist
c. Upload customized designs
d. View new arrivals
▪ Customers (My Profile)
▪ Logout (Feedback)
Notification
Module
Description
ADMIN
• Admin Login
The main activities in the application are the admin login page for admin. The other modules are
followed by this login page. This module records only admin and password of the admin.
FLORESTA FURNITURES
• Manage admin’s password and databases
Admin can manage the password and admin can transmit the respective addresses databases.
• Upload new arrivals items
Admin can transmit the new arrived items then admin can upload the status of approval.
• View customers request
Admin can manage the customers request details and transaction details are maintained.
• Manage users and logout
An admin can manage users account and their details, status and then, the terminate the admin
account
USER
• User Login
The main activities in the application are the user login page for user. The other modules are
followed by this login page. This module records only user and password of the user.
• User Registration
Another main function of our proposed system is registration, in order to register with the unique
application details such as name; password, email, place and time are required.
• View products
A user can view products categories wise on user’s content is a service under which
displayed, or even customized designs messages of customers are scanned and
transmitted as customized products through websites.
i.Upload customized products
A user create their design and update their details. Then, User will upload design .
View status
A user can view status of deposit process and account wishlist details. User can view whole
status.
My profile and Logout
User view my profile and if the user can update the profile details and then, the terminate their
account.
FLORESTA FURNITURES
4. SOFTWARE REQUIREMENTS SPECIFICATION
4.1 INTRODUCTION
SRS is the official statement of what is required by the system developers; it includes both
user requirements for the system and detailed specification of the system requirements. This
document is used while designing the proposed system and can also be used in the future if the
system is to be enhanced.
4.1.1 Purpose
The purpose of this Requirements Elicitation document is to provide a clear understanding as
to what actually the Industry Management Syatem is and to identify the critical requirements
essential for the project’s successful completion.
This document explains our team architecture, our teams’s initial understanding of the user
needs.
This online application enables the end users to register online, select the furniture from the
furniture menu.
An online orders. By just selecting the furniture that the user want to have. The user will be
given a username and a password to login. Admin can view Customer details and product detail.
4.1.2 Document Conventions
Main Section Title: Font: Times New Roman, Bold: Size 16
Sub Section Title: Font: Times New Roman, Bold: Size 14
Other Text Matter: Font: Times New Roman, Bold: Size 12
4.1.3 Scope
This document is intended for providing an abstract overview of the system and general
overview of the entire project.
Scope and Limitation for Online Furniture shop System is a still uses a manual procedure
in keeping records of their clients and past, current and upcoming. In making an order the
client must fill-up some forms such as waiver/ gate pass and the ordering.
The scope of the document:
▪ Team Architecture,
▪ System Functional and Non-Functional Requirements
FLORESTA FURNITURES
▪ Prototype of the System,
▪ Online payment acceptance for wide range of services.
4.1.4 Reference
FLORESTA FURNITURES
4.2 General Description
This section will give an overview of the whole application. The explanation of the application
will be in its context to show the application interacts with other systems and introduce the
basic functionality of it. It will also describe all the constraints and assumptions for the
application.
4.2.1 System Perspective
As per the requirements of the client, to build a customized application that facilitates to
maintain the entire details of the furniture shops and the databases, service to get through the
demerits of existing manualsystem with new implementations such as:
This furniture center is committed to being the best in all areas of its business. Online ordering
system will be a website whose main language of programming will be ASP.NET. Its main aim
is to simplify and improve the efficiency of the ordering process for both customer and shop,
minimize manual data entry and ensure data accuracy and security during both order placement
process. Customers will also be able to view product menus:
▪ It takes very less time for completion of process.
▪ The application and requests can be verified by the customers as well as owners
wherever they are and cantake necessary actions.
▪ It is very easy for giving complaints and suggestions.
Existing System
▪ In the present system the user has to do the transaction manually.
▪ It takes lot of time for dealing with the products as they are maintaining the records in the
book.
Proposed System
The proposed system is FLORESTA FURNITURES for a furniture shop. Here
everything is done online. The activities like shopping, viewing the new arrivals are can
be done through online. No waiting is required. And feedbacks can be giventhrough online.
Even if the customers is available in the sectors, he can verify application online. It is very
quick process than the existing system.
Product Functionalities
Project should support the following functionalities:
FLORESTA FURNITURES
▪ Login: Sign in into the web application.
▪ Sign up: User registration.
▪ Applying for the fixed deposit amount
4.2.2 User Characteristics
End Users
▪ No specific knowledge or skills are required from the end user.
▪ End user should have basic idea about computer operations.
Administrator
▪ Administrator must be having good knowledge of database management system.
▪ Administrator must be capable to manage user rights.
4.3 Specific Requirements
4.3.1 Functional Requirements
a) Login
▪ Start the application.
▪ User enters the username and password.
▪ System does authentication and main screen is displayed.
Authorization Fails
▪ Prompt the user that he typed the wrong password.
▪ Allow him to re-enter the password.
b) Change Password
▪ User initiates the change password command.
▪ User is prompted for to enter old password, new password and confirm password.
▪ System does authentication.
▪ New password is registered with the system.
FLORESTA FURNITURES
c) Forgot Password
▪ User initiates the forgot password command.
▪ User is prompted to enter email and with a previous password to recover forgot password.
▪ System authenticaton.
d) Depositing the amount
▪ After successfully logging into the system, the depositor has to apply the FD amount,
and then enter the registration date, maturity date and year.
▪ The only requirement here is that the depositor needs to log into the system.
4.3.2 Other Non-Functional Requirements:
a) Performance Requirements
▪ Should run on 500MHz, 64mb machine.
▪ 90% of responses should be within 3 second, except for downloading for which more
time is acceptable.
b) Security Requirements
▪ This application requires a user name with password is required to verify the
identification of the user.
4.3.3 External Interface Requirements
a) User Interfaces
Most user-friendly interface has been designed, Login pages for the users and admin. The
main interfaces used in the system are the forms and menus.
b) Hardware Interfaces
The system does not require any additional hardware interfaces, so the user need not
focus on the hardware apart from the standard hardware.
c) Software Interfaces
XAMPP server, internet browser installed on the server machine.
FLORESTA FURNITURES
5. DESIGN OF THE SYSTEM
5.1 Introduction
The purpose of the decision phase is to plan a solution of the problem specified by the
requirements document. This phase is the first step in moving the problem domain to the solution
domain. It involves the process, in which conceiving, planning and carrying out the plan
generating the necessary report, In other words, the design phase act as a bridge between SRS
and implementation phase. The design of the system is perhaps the most critical factor affecting
the quality of the software, and as a major impact on the later phase, particularly the testing and
maintenance.
Software Design
Design is the key phase of any project. It is the first step in moving from the problem
domain to the solution domain. The input to the design phase is the specifications of the system
to be designed. The output of the top-level design is the architectural design, or the system design
for the software system to be built. A design should be very clear, verifiable, complete, traceable,
efficient and simple.
Architecture Design
The architecture design defines the relationship among major structural element of the
program. Architecture diagram shows the relationship between different components of system.
This diagram helps to understand the overall concept of system.
Logical design
The graphical representation of system data and how the process transforms the data
Admin
Internet
Web
Browser
which
manages
user
interaction
with
owner and
customer
Mysql
database
Xamp
Server
FLORESTA FURNITURES
is known as Data Flow Diagram. It shows the logical flow of the data.
The logical design describes the detailed specification for the system, describing its
features, an effective communication and the user interface requirements. The logical design
of proposed system should include the following.
1. External system structure.
2. Relationship between all the activities.
3. The physical construction and all the activities.
4. Global data.
5. Control flow.
6. Derived program structure.
Design Principles
Basic design principles that enable the software engineer to navigate the design process are:
▪ The design process should not suffer from “Tunnel vision”.
▪ The design should be traceable to analysis model.
▪ The design should not reinvent the wheel.
▪ The design should minimize the intellectual distance between the software and the
problem, as it exists in the real world.
The design should exhibit uniformity and integrity.
▪ The design should be structured to accommodate changes.
▪ The design is not coding, and coding is not design.
▪ The design should be reviewed to minimize the conceptual errors.
5.2 Data Flow Diagram
The data flow diagram (DFD) is one of the important modeling tools. It shows the user
of the data pictorially. DFD represents the flow of the data between different transformations
and processes in the systems. The data flow diagram shows logical flow of the data. It represents
the functional dependencies within a system. It shows output values in a computation or derived
from input values. It is a simple pictorial representation or model for system behavior. It
specifies, “What is to be done but not how is to be done”. It describes the logical structure of the
system. It relates data information to various processess of the system. It follows top-down
approach.
Data Flow Diagram Notations
Data Flow:
FLORESTA FURNITURES
It may be from file-to-file or file-to-process or process-to-process. It is generally in terms
of attributes. There may be either an input data flow or output data flow.
Functional processing
The process is nothing but the transformation of data. It starts
With the subject and has the verb followed by the subject.
Data store
It includes file, data base and repository.
Actor/source/sink
The files which are outside the system and used by the process or processes of the system.
Objectives
• To graphically document boundaries of a system.
• To provide hierarchy breakdown of the system.
• To show movement of information between a system and its environment.
• To document information flows within the system.
• To aid communication between users and developers.
FLORESTA FURNITURES
Context level diagram (zero level DFD)
Flow of the project:
Fig level 0 DFD: Floresta Furniture.
Furniture products
Categories
Customer
Orders
Orders details
Cart
• C
a
t
e
g
o
r
i
e
s
• C
u
s
t
o
m
e
r
• O
r
d
Customer profile
Furniture details
Order details
View of orders
Generation of bills
Report
FLORESTA
FURNITURE
FLORESTA FURNITURES
Fig : Floresta Furniture process logic
FLORESTA FURNITURES
5.3 ER Diagram
Entity Relationship Diagram, also known as ERD, ER Diagram or ER model, is a type of
structural diagram for use in database design. An ERD contains different symbols and connectors
that visualize two important information. The major entities within the system scope, and the inter-
relationships among these entities.
An entity-relationship diagram is a data modelling technique that creates a graphical representation
of the entities, and the relationships between entities, within an information system. An entity-
relationship model (ERM) is an abstract and conceptual representation of data.
Entity-relationship modeling is a database modelling method, used to produce a type of conceptual
schema or semantic data model of a system, often a relational database, and its requirements in a top-
down fashion. Diagrams created by this process are called entityrelationship diagrams, ER diagrams,
or ERDs.
The first stage of information system design uses these models during the requirements analysis to
describe information needs or the type of information that is to be stored in a database. The data
modeling technique can be used to describe any ontology (i.e. an overview and classifications of
used terms and their relationships) for a certain area of interest. In the case of the design of an
information system that is based on a database, the conceptual data model is, at a later stage (usually
called logical design), mapped to a logical data model, such as the relational model; this in turn is
mapped to a physical model during physical design. Sometimes, both of these phases are referred to
as "physical design". The three main components of an E-R Diagram are:
• The entity is a person, object, place or event for which data is collected. For example, if you
consider the information system for a business, entities would include not only customers, but the
customer‘s address, and orders as well. The entity is represented by a rectangle and labelled with a
singular noun.
• The relationship is the interaction between the entities. In the example above, the customer places
an order, so the word ―places‖ defines the relationship between that instance of a customer and the
order or orders that they place. A relationship may be represented by a diamond shape, or more
simply, by the line connecting the entities. In either case, verbs are used to label the relationships.
FLORESTA FURNITURES
• The cardinality defines the relationship between the entities in terms of numbers. An entity may be
optional: for example, a sales representative could have no customers or could have one or many
customers; or mandatory: for example, there must be at least one product listed in an order. There are
several different types of cardinality notations; crow‘s foot notation, used here, is a common one. In
crow‘s foot notation, a single bar indicates one, a double bar indicates one and only one , a circle
indicates zero, and a crow's foot indicates many. The three main cardinal relationships are: oneto-
one, expressed as 1:1; one-to-many, expressed as 1: N; and many-to-many, expressed as M: N.
Fig (5.3): E-R Daigram of Floresta Furniture
FLORESTA FURNITURES
1.1 Introduction
6. IMPLEMENTATION
Implementation is the process of converting a new revised system design into operation. The
objective is to put the new revised system, which has been tested into operation while holding
costs, risks and personal irritation to the minimum. A critical aspect of the implementation
process is to ensure that there will be no description in the function of the organization. The
best methods for going control while implementation is that, any new system would be to use
well planned test files for testing all new programs. Another factor to be convinced in the
implementation phase in the acquisition of the hardware and software. Once the software is
developed for the system and testing is carried out, it is the process of making the newly
designed system fully operational and consistent in performance
Example
<?php
Echo “WELCOME TO OUR PROJECT”;
?>
Speed optimization
As with many scripting languages, PHP scripts are normally kept as human-readable
source code, even on production web servers. In this case, PHP scripts will be compiled at
runtime by the PHP engine, which increases their execution time. PHP scripts are able to be
compiled before runtime using PHP compilers as with other programming languages such as
C (the language PHP and its extensions are written in). Code optimizers aim to reduce the
computational complexity of the compiled code by reducing its size and making other changes
that can reduce the execution time with the overall goal of improving performance. The nature
of the PHP compilers such that there are often opportunities for code optimization, and an
example of a code optimizer is the Zend Optimizer PHP extension.
Another approach for reducing overhead for high load PHP servers is using PHP accelerators.
These can offer significant performance gains by caching the compiled form of a PHP script in
shared memory to avoid the overhead of parsing and compiling the code every time the script
runs.
Example to display message using HTML page
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
FLORESTA FURNITURES
<title>Untitled Document</title>
</head>
<body>
<h1>WELCOME TO OUR PROJECT</h1>
</body>
</html>
Output
1.2 Database Evolution
SQL was invented in the year 1960’s by E. F. Cod of IBM in order to increase data integrity
and reduce repetitive data. RDBMS did not appear until the late 70’s when Sybase and Oracle
introduced systems.
SQL server was originally a Sybase product. Microsoft bought the product outright from Sybase
and by version 7.0, the version prior to 2000 all the code had been rewritten by Microsoft’s
programming.
Features of SQL
• The entire SQL has been divided into 4 major categories
1. Data Manipulation Language.
2. Data Definition Language.
3. Transaction control language.
4. Data Control Lnaguage.
• It is simple English like language and uses simple commands such as SELECT,
CREATE, DROP etc.
• It is not having conditional loops, variables and most of the commands are single line
commands.
• To implement application logics, SQL has got extension language popularly called as
PL/SQL (Procedural language of SQL).
FLORESTA FURNITURES
• One of the key features of sql server is the XML support. XML has grown to be standard
technology for organizations that share data on the web.
Security
Views are basically used as a part of security, means in many organizations end user will
never be given original tables and all data entry will be done with the help of views only. But
the database administrator will be able to see everything because all the operations done by the
different users will come to the same table.
Queries
A query is a question or a request. With MySql, we can query a database for specific
information and have a record set returned.
Create a connection to a database
Before you can access data in a database, you must create a connection to the database. In
PHP, this is done with the mysql_connect () function.
Syntax
Mysql connect (server name, username, password);
Server name: Optional Specifies the Server to connect.
Default values is localhost: 3306
<?php
$con=mysql_connect('localhost','root','');
mysql_select_db ('project', $con); ?>
Steps to create a database in PHPMyAdmin
1) The following figure shows your PHPMyAdmin interface, just enter your database name and
click the 'Create' button to create your database.
2) Now to create a new table enter your table name and the number of fields in the table, then
click the 'Go' Button.
FLORESTA FURNITURES
3)The next step is to create the fields, just enter values for each field name, type, length of the
field, null option and mention whether it is a primary key or not. Then click the 'Save' button
to complete your table creation.
4) The following figure is displayed upon successful creation of your table
Steps to Drop Table in PHPMyAdmin
Login to phpmyadmin. Click 'databases'
List of your databases will appear. Click the one that is your WordPress database.
Note the size of the 'wp_bad_behaviour_log' table - this is one to be emptied in this example.
FLORESTA FURNITURES
Now select the box to the left of the table you wish to empty.
Note: Your table may have a different name, and unless you have been told, do NOT empty a
table that is used by the Word Press core.
From the drop-down menu, highlight and click the 'Empty' option.
You will now get a confirmation screen.
This is your last chance to check - there is no 'UNDO' function here!
Click 'Yes' and you will be returned to viewing all the tables in your install.
And your table has been cleared out.
If you needed to Drop a table, follow exactly the same, but select 'Drop' from the menu.
FLORESTA FURNITURES
7. DATABASE TABLES
7.1 Tables Used In Our Project
Table structure for ADMIN tablePrimary
Key: emailid
Field Type Null Default
emailid Varchar(20) No NULL
password Varchar(50) No NULL
Table structure for customer table
Primary Key: customercode
Field Type Null Default
customercode Int (11) No NULL
name Varchar (20) yes NULL
address Varchar(20) yes NULL
city Varchar (30) yes NULL
phone Varchar (12) yes NULL
pincode Varchar(6) yes NULL
state Varchar(20) yes NULL
Email_id Varchar (20) yes NULL
Table structure for customized design product
Primary key:id foregin key: customercode
Field Type Null Default
id Int (10) No none
customercode int(200) No none
Proname Varchar(20) yes NULL
qty Int(11) yes NULL
image Varchar (50) yes NULL
height int (11) yes NULL
width Int (11) yes NULL
woodtype Varchar (20) yes NULL
Field Type Null Default
FLORESTA FURNITURES
amount Int (11) yes NULL
status Varchar (20) yes NULL
Table structure for furniture
Primary key: furniture code foregin key: category id
Field Type Null Default
category_id Int (11) yes NULL
furniturecode int (11) No None
Furniturename Varchar(20) yes NULL
description Varchar (100) yes NULL
stock Int(11) yes NULL
price int(11) yes NULL
image Varchar(50) Yes NULL
Table structure for furnitureorder
Primary key: ordernaumber Foregin key: ordernumber
Field Type Null Default
ordernumber Int (11) No None
orderdate date yes NULL
customercode Int(11) yes NULL
items Int(11) yes NULL
amount Int(11) yes NULL
shipping int (11) yes NULL
net Int (11) yes NULL
status Varchar (10) No NULL
Table Structure for orderdetails
Foregin key: ordernumber and furniture code
Field Type Null Default
ordernumber Int (11) yes Null
furniturecode Int(11) yes NULL
FLORESTA FURNITURES
qty Int(11) yes NULL
price Int(11) yes NULL
amount Int(11) yes NULL
Tables Structure for payment
Primary key: paymentid Foregin key: ordernumber
Field Type Null Default
ordernumber Int (11) No None
paymentid Int(11) yes NULL
ordernumber Int(11) yes NULL
amount Int(11) yes NULL
image int (11) yes NULL
Tables structure for category
Primary key: categoryid
Field Type Null Default
categoryid int(11) No None
categoryname Varchar(20) yes NULL
Tables structure for cart
Primary key: cartid Foreign key : customercode and furniturecode
Field Type Null Default
cart_id Int (11) no NONE
customercode int (11) yes NULL
Furniturecode int(11) yes NULL
qty int (11) yes NULL
amount Int(11) yes NULL
price int(11) yes NULL
stock int(10) no NONE
FLORESTA FURNITURES
SCREEN SHOTS
Fig 1. A VIEW OF HOMEPAGE
Fig 2. A VIEW OF LOGIN PAGE
FLORESTA FURNITURES
Fig 3. A VIEW OF CUSTOMER REGISTRATION PAGE
Fig 4. A VIEW OF ACCOUNT HOLDER TABLE
FLORESTA FURNITURES
Fig 5. A VIEW OF BRANCH DETAILS TABLE
Fig 6. A VIEW OF DEPOSIT TABLE
FLORESTA FURNITURES
Fig 7. A VIEW OF WITHDRAWALS DETAILS TABLE
Fig 8. A VIEW OF FD-CALCULATOR DETAILS TABLE
FLORESTA FURNITURES
Fig 9. A VIEW OF USER DETAILS TABLE
Fig 10. A VIEW OF E-LETTER TABLE
FLORESTA FURNITURES
8. SOURCE CODE
ADMIN
FORM
<!DOCTYPE html>
<html lang="en">
<head>
<title>Change password</title>
<?php
include("headerlink.php");
?>
</head>
<body>
<?php
include('header.php');
?>
<?php
include('footer.php');
?>
</body>
</html>
ADHEADER.PHP LINKS
<div class="container-fluid bg-dark py-3">
<div class="container">
<div class="row">
<div class="col-md-6 text-center text-lg-left mb-2 mb-lg-0">
<div class="d-inline-flex align-items-center">
<a class="text-white pr-3" href="adminhome.php">Home</a>
<span class="text-white">|</span>
<a class="text-white px-3" href="changepasswordform.php">Change Password</a>
<span class="text-white">|</span>
<a class="text-white pl-3" href="signout.php">Sign Out</a>
</div>
</div>
</div>
</div>
</div>
<!-- Topbar End -->
<!-- Navbar Start -->
FLORESTA FURNITURES
<div class="container-fluid position-relative nav-bar p-0">
<div class="container position-relative" style="z-index: 9;">
<nav class="navbar navbar-expand-lg bg-secondary navbar-dark py-3 py-lg-0 pl-3 pl-lg-5">
<a href="" class="navbar-brand">
<h1 class="m-0 display-5 text-white"><span class="text-primary">FLORESTA</h1>
</a>
<button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbarCollapse">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-between px-3" id="navbarCollapse">
<div class="navbar-nav ml-auto py-0">
<a href="addcategoryform.php" class="nav-item nav-link">Add Category</a>
<a href="viewcustomers.php" class="nav-item nav-link">View Customers</a>
<a href="viewcategories.php" class="nav-item nav-link">View Category</a>
<a href="vieworders.php" class="nav-item nav-link">View Orders</a>
<a href="viewcustomizedorder.php" class="nav-item nav-link">View Customized Orders</a>
<a href="viewpayments.php" class="nav-item nav-link">View Payment</a>
<a href="reportform.php" class="nav-item nav-link">Report</a>
</div>
</div>
</nav>
</div>
</div>
<!-- Navbar End -->
ADFOOTER LINKS CODE
<!-- About Start -->
<div class="container-fluid bg-light">
<div class="container">
<div class="row">
<div class="col-lg-5">
<div class="d-flex flex-column align-items-center justify-content-center bg-primary h-100 py-5 px-3">
<i class="flaticon-brickwall display-1 font-weight-normal text-secondary mb-3"></i>
<h4 class="display-3 mb-3">Furniture</h4>
<h1 class="m-0">Industry</h1>
</div>
</div>
<div class="col-lg-7 m-0 my-lg-5 pt-5 pb-5 pb-lg-2 pl-lg-5">
<h6 class="text-primary font-weight-normal text-uppercase mb-3">Learn About Us</h6>
<h1 class="mb-4 section-title">We Are The Best Interior Designing Firm In Your City</h1>
<p>Invidunt lorem justo sanctus clita. Erat lorem labore ea, justo dolor lorem ipsum ut sed eos, ipsum et
dolor kasd sit ea justo. Erat justo sed sed diam. Ea et erat ut sed diam sea ipsum est dolor</p>
<div class="row py-2">
<div class="col-sm-6">
FLORESTA FURNITURES
<div class="d-flex align-items-center mb-4">
<h1 class="flaticon-house font-weight-normal text-primary m-0 mr-3"></h1>
<h5 class="text-truncate m-0">Living Room</h5>
</div>
</div>
<div class="col-sm-6">
<div class="d-flex align-items-center mb-4">
<h1 class="flaticon-stairs font-weight-normal text-primary m-0 mr-3"></h1>
<h5 class="text-truncate m-0">Pooja Room</h5>
</div>
</div>
<div class="col-sm-6">
<div class="d-flex align-items-center mb-4">
<h1 class="flaticon-office font-weight-normal text-primary m-0 mr-3"></h1>
<h5 class="text-truncate m-0">Bedroom Design</h5>
</div>
</div>
<div class="col-sm-6">
<div class="d-flex align-items-center mb-4">
<h1 class="flaticon-living-room font-weight-normal text-primary m-0 mr-3"></h1>
<h5 class="text-truncate m-0">Kitchen Design</h5>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- About End -->
<!-- Services Start -->
<div class="container-fluid py-5">
<div class="container py-5">
<div class="row">
<div class="col-lg-6 pr-lg-5">
<h6 class="text-primary font-weight-normal text-uppercase mb-3">Our Awesome Services</h6>
<h1 class="mb-4 section-title">Awesome Interior Designing Services For Your Home</h1>
<p>Invidunt lorem justo clita. Erat lorem labore ea, justo dolor lorem ipsum ut sed eos, ipsum et dolor kasd
sit ea justo. Erat justo sed sed diam. Ea et erat ut sed diam sea ipsum</p>
</div>
<div class="col-lg-6 p-0 pt-5 pt-lg-0">
<div class="owl-carousel service-carousel position-relative">
<div class="d-flex flex-column text-center bg-light mx-3 p-4">
<h3 class="flaticon-bedroom display-3 font-weight-normal text-primary mb-3"></h3>
<h5 class="mb-3">Bedroom Design</h5>
<p class="m-0">Make Your Bedroom Looks Beautiful</p>
</div>
<div class="d-flex flex-column text-center bg-light mx-3 p-4">
FLORESTA FURNITURES
<h3 class="flaticon-kitchen display-3 font-weight-normal text-primary mb-3"></h3>
<h5 class="mb-3">Kitchen Design</h5>
<p class="m-0">The Place Where You can cook for a Smile</p>
</div>
<div class="d-flex flex-column text-center bg-light mx-3 p-4">
<h3 class="flaticon-bathroom display-3 font-weight-normal text-primary mb-3"></h3>
<h5 class="mb-3">Bathroom Design</h5>
<p class="m-0">Your Living area makes Your Mood Feel Better</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Services End -->
<!-- Features Start -->
<div class="container-fluid bg-light">
<div class="container">
<div class="row">
<div class="col-lg-7 mt-5 py-5 pr-lg-5">
<h6 class="text-primary font-weight-normal text-uppercase mb-3">Why Choose Us?</h6>
<h1 class="mb-4 section-title">25+ Years Experience In The Interior Design Industry</h1>
<p class="mb-4">Dolores lorem lorem ipsum sit et ipsum. Sadip sea amet diam dolore sed et. Sit rebum
labore sit sit ut vero no sit. Et elitr stet dolor sed sit et sed ipsum et kasd ut. Erat duo eos et erat sed diam duo</p>
<ul class="list-inline">
<li><h5><i class="far fa-check-square text-primary mr-3"></i>Best Interior Design</h5></li>
<li><h5><i class="far fa-check-square text-primary mr-3"></i>Customer Satisfaction</h5></li>
<li><h5><i class="far fa-check-square text-primary mr-3"></i>Customized Design</h5></li>
</ul>
</div>
<div class="col-lg-5">
<div class="d-flex flex-column align-items-center justify-content-center h-100 overflow-hidden">
<img class="h-100" src="img/feature.jpg" alt="">
</div>
</div>
</div>
</div>
</div>
<!-- Features End -->
<!-- Projects Start -->
<div class="container-fluid py-5">
<div class="container py-5">
<div class="row justify-content-center">
<div class="col-lg-6 col-md-8 col text-center mb-4">
FLORESTA FURNITURES
<h6 class="text-primary font-weight-normal text-uppercase mb-3">Our Projects</h6>
<h1 class="mb-4">Some Of Our Awesome Interior Designing Projects</h1>
</div>
</div>
<div class="row">
<div class="col-12 text-center mb-2">
<ul class="list-inline mb-4" id="portfolio-flters">
<li class="btn btn-outline-primary m-1 active" data-filter="*">All</li>
<li class="btn btn-outline-primary m-1" data-filter=".first">Complete</li>
<li class="btn btn-outline-primary m-1" data-filter=".second">Running</li>
<li class="btn btn-outline-primary m-1" data-filter=".third">Upcoming</li>
</ul>
</div>
</div>
<div class="row mx-1 portfolio-container">
<div class="col-lg-4 col-md-6 col-sm-12 p-0 portfolio-item first">
<div class="position-relative overflow-hidden">
<div class="portfolio-img d-flex align-items-center justify-content-center">
<img class="img-fluid" src="img/portfolio-1.jpg" alt="">
</div>
<div class="portfolio-text bg-secondary d-flex flex-column align-items-center justify-content-center">
<h4 class="text-white mb-4">Project Name</h4>
<div class="d-flex align-items-center justify-content-center">
<a class="btn btn-outline-primary m-1" href="">
<i class="fa fa-link"></i>
</a>
<a class="btn btn-outline-primary m-1" href="img/portfolio-1.jpg" data-lightbox="portfolio">
<i class="fa fa-eye"></i>
</a>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12 p-0 portfolio-item second">
<div class="position-relative overflow-hidden">
<div class="portfolio-img d-flex align-items-center justify-content-center">
<img class="img-fluid" src="img/portfolio-2.jpg" alt="">
</div>
<div class="portfolio-text bg-secondary d-flex flex-column align-items-center justify-content-center">
<h4 class="text-white mb-4">Project Name</h4>
<div class="d-flex align-items-center justify-content-center">
<a class="btn btn-outline-primary m-1" href="">
<i class="fa fa-link"></i>
</a>
<a class="btn btn-outline-primary m-1" href="img/portfolio-2.jpg" data-lightbox="portfolio">
<i class="fa fa-eye"></i>
</a>
</div>
</div>
</div>
</div>
FLORESTA FURNITURES
<div class="col-lg-4 col-md-6 col-sm-12 p-0 portfolio-item third">
<div class="position-relative overflow-hidden">
<div class="portfolio-img d-flex align-items-center justify-content-center">
<img class="img-fluid" src="img/portfolio-3.jpg" alt="">
</div>
<div class="portfolio-text bg-secondary d-flex flex-column align-items-center justify-content-center">
<h4 class="text-white mb-4">Project Name</h4>
<div class="d-flex align-items-center justify-content-center">
<a class="btn btn-outline-primary m-1" href="">
<i class="fa fa-link"></i>
</a>
<a class="btn btn-outline-primary m-1" href="img/portfolio-3.jpg" data-lightbox="portfolio">
<i class="fa fa-eye"></i>
</a>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12 p-0 portfolio-item first">
<div class="position-relative overflow-hidden">
<div class="portfolio-img d-flex align-items-center justify-content-center">
<img class="img-fluid" src="img/portfolio-4.jpg" alt="">
</div>
<div class="portfolio-text bg-secondary d-flex flex-column align-items-center justify-content-center">
<h4 class="text-white mb-4">Project Name</h4>
<div class="d-flex align-items-center justify-content-center">
<a class="btn btn-outline-primary m-1" href="">
<i class="fa fa-link"></i>
</a>
<a class="btn btn-outline-primary m-1" href="img/portfolio-4.jpg" data-lightbox="portfolio">
<i class="fa fa-eye"></i>
</a>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12 p-0 portfolio-item second">
<div class="position-relative overflow-hidden">
<div class="portfolio-img d-flex align-items-center justify-content-center">
<img class="img-fluid" src="img/portfolio-5.jpg" alt="">
</div>
<div class="portfolio-text bg-secondary d-flex flex-column align-items-center justify-content-center">
<h4 class="text-white mb-4">Project Name</h4>
<div class="d-flex align-items-center justify-content-center">
<a class="btn btn-outline-primary m-1" href="">
<i class="fa fa-link"></i>
</a>
<a class="btn btn-outline-primary m-1" href="img/portfolio-5.jpg" data-lightbox="portfolio">
<i class="fa fa-eye"></i>
</a>
</div>
FLORESTA FURNITURES
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12 p-0 portfolio-item third">
<div class="position-relative overflow-hidden">
<div class="portfolio-img d-flex align-items-center justify-content-center">
<img class="img-fluid" src="img/portfolio-6.jpg" alt="">
</div>
<div class="portfolio-text bg-secondary d-flex flex-column align-items-center justify-content-center">
<h4 class="text-white mb-4">Project Name</h4>
<div class="d-flex align-items-center justify-content-center">
<a class="btn btn-outline-primary m-1" href="">
<i class="fa fa-link"></i>
</a>
<a class="btn btn-outline-primary m-1" href="img/portfolio-6.jpg" data-lightbox="portfolio">
<i class="fa fa-eye"></i>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Projects End –->
HEADER
<div class="container-fluid bg-dark py-3">
<div class="container">
<div class="row">
<div class="col-md-6 text-center text-lg-left mb-2 mb-lg-0">
<div class="d-inline-flex align-items-center">
<a class="text-white pr-3" href="adminhome.php">Home</a>
<span class="text-white">|</span>
<a class="text-white px-3" href="changepasswordform.php">Change Password</a>
<span class="text-white">|</span>
<a class="text-white pl-3" href="signout.php">Sign Out</a>
</div>
</div>
</div>
</div>
</div>
<!-- Topbar End -->
<!-- Navbar Start -->
<div class="container-fluid position-relative nav-bar p-0">
<div class="container position-relative" style="z-index: 9;">
<nav class="navbar navbar-expand-lg bg-secondary navbar-dark py-3 py-lg-0 pl-3 pl-lg-5">
<a href="" class="navbar-brand">
FLORESTA FURNITURES
<h1 class="m-0 display-5 text-white"><span class="text-primary">FLORESTA</h1>
</a>
<button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbarCollapse">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-between px-3" id="navbarCollapse">
<div class="navbar-nav ml-auto py-0">
<a href="addcategoryform.php" class="nav-item nav-link">Add Category</a>
<a href="viewcustomers.php" class="nav-item nav-link">View Customers</a>
<a href="viewcategories.php" class="nav-item nav-link">View Category</a>
<a href="vieworders.php" class="nav-item nav-link">View Orders</a>
<a href="viewcustomizedorder.php" class="nav-item nav-link">View Customized Orders</a>
<a href="viewpayments.php" class="nav-item nav-link">View Payment</a>
<a href="reportform.php" class="nav-item nav-link">Report</a>
</div>
</div>
</nav>
</div>
</div>
<!-- Navbar End -->
<!-- Carousel Start -->
<div class="container-fluid p-0">
<div id="header-carousel" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img class="w-100" src="img/carousel-1.jpg" alt="Image">
<div class="carousel-caption d-flex flex-column align-items-center justify-content-center">
<div class="p-3" style="max-width: 800px;">
<h4 class="text-primary text-uppercase font-weight-normal mb-md-3">FURNITURE</h4>
<h3 class="display-3 text-white mb-md-4">Make Your Home Better</h3>
</div>
</div>
</div>
<div class="carousel-item">
<img class="w-100" src="img/carousel-2.jpg" alt="Image">
<div class="carousel-caption d-flex flex-column align-items-center justify-content-center">
<div class="p-3" style="max-width: 800px;">
<h4 class="text-primary text-uppercase font-weight-normal mb-md-3">Make Your Home Well
Furnised </h4>
<h3 class="display-3 text-white mb-md-4">Stay At Home In Peace</h3>
</div>
</div>
</div>
</div>
<a class="carousel-control-prev" href="#header-carousel" data-slide="prev">
FLORESTA FURNITURES
<div class="btn btn-primary" style="width: 45px; height: 45px;">
<span class="carousel-control-prev-icon mb-n2"></span>
</div>
</a>
<a class="carousel-control-next" href="#header-carousel" data-slide="next">
<div class="btn btn-primary" style="width: 45px; height: 45px;">
<span class="carousel-control-next-icon mb-n2"></span>
</div>
</a>
</div>
</div>
<!-- Carousel End -->
HEADERLINKS
<!-- Favicon -->
<link href="img/favicon.ico" rel="icon">
<!-- Google Web Fonts -->
<link
href="https://fonts.googleapis.com/css2?family=Montserrat&family=Oswald:wght@400;500;600&display=swap"
rel="stylesheet">
<!-- Font Awesome -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css" rel="stylesheet">
<!-- Flaticon Font -->
<link href="lib/flaticon/font/flaticon.css" rel="stylesheet">
<!-- Libraries Stylesheet -->
<link href="lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
<link href="lib/lightbox/css/lightbox.min.css" rel="stylesheet">
<!-- Customized Bootstrap Stylesheet -->
<link href="css/style.css" rel="stylesheet">
CUSTOMERSIGNUP FORM
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Customer signup</title>
<?php
include("loginlink.php");
?>
</head>
<script>
function validate(){
var namepattern = /^[A-Za-z]+s?[A-Za-z]+$/;
FLORESTA FURNITURES
var name=document.forms["regform"]["textname"].value;
if(name.search(namepattern)==-1){
alert("Name should contain only alphabets with one space between each word");
return false;
}
var pwdpattern=/^(?=.d)(?=.[a-z])(?=.[A-Z])(?=.[a-zA-Z0-9])(?!.*s).{3,10}$/;
var pwd=document.forms["regform"]["textpass"].value;
if(pwd.search(pwdpattern)==-1)
{
alert("Password must contain one lowercase letter one uppercase letter one digit one
special character");
return false;
}
}
</script>
<body>
<?php
include('header.php');
?>
<div style="margin:center; width:120%; padding:1px;">
<h4 class="p-3 mb-2 bg-dark text-white" style="text-align:center;">
Customer signup</h4>
<form method="POST" action="customersignup.php" name="regform" onsubmit="return
validate();">
<table class="table">
<tr>
<th>Name</th> <td><input type="text" name="textname" required=""
autofocus="" id="textname" maxlength="20" minlength="3"/></td>
</tr>
<tr>
<th>Address</th>
<td><textarea name="textadd" rows="4" cols="25"></textarea></td>
</tr>
<tr>
<th>State</th>
<td>
<select id="select" name="textstate">
<option>Karnataka</option>
<option>Gujarat</option>
<option>Rajastan</option>
<option>Dehli</option>
</select>
</td>
</tr>
<tr>
<th>city</th>
<td>
<input type="textcity" name="textcity" />
</td>
</tr>
<tr>
<th>pincode</th>
<td>
FLORESTA FURNITURES
<input type="text" name="textpin" id="textpin" maxlength="6"
minlength="6" />
</td>
</tr>
<tr>
<th>Email</th>
<td><input type="email" name="textemail" id="textemail" />
</td>
</tr>
<tr>
<th>Phone</th>
<td><input type="text" name="textphone" id="textphone" maxlength="10"
minlength="10" />
</td>
</tr>
<tr>
<th>Password</th>
<td><input type="password" name="textpass" id="textpass" maxlength="10"
minlength="3"/>
</td>
</tr>
<tr>
<th>Confirm password</th>
<td><input type="password" name="textconpass" id="textconpass"
maxlength="10" minlength="3"/>
</td>
</tr>
<tr>
<td colspan="2"><input type="submit" class="btn btn-dark" name="btn"
value="Register"/></td>
</tr>
</table>
</form>
<?php
include('footer.php');
?></body></html>
code used to store the data to database this is related to customersignin
<?php
session_start();
$email=$_POST["textemail"];
$password=$_POST["textpass"];
$conn=new PDO("mysql:host=localhost;dbname=furnituredb","root",null);
//prepare select statement to get one row
$stmt=$conn->prepare("select * from customer where emailid=? and password=?");
$stmt->bindparam(1,$email);
$stmt->bindparam(2,$password);
$stmt->execute();
$c=$stmt->rowcount();
if($c==1)
{
FLORESTA FURNITURES
while($row=$stmt->fetch(PDO::FETCH_ASSOC))
{
$customercode=$row["customercode"];
}
$_SESSION["session_email"]=$email;
$_SESSION["session_password"]=$password;
$_SESSION["customercode"]=$customercode;
header('location:customer/customerhome.php');
}
$conn=null;
?><html>
<head>
<title>search result</title>
</head>
<body>
<?php
if($c==0)
{
echo "<br/>";
echo"invalid login";
}
?> </body></html>?>
FLORESTA FURNITURES
CHANGEPASSWORD FORM
<!DOCTYPE html>
<html lang="en">
<head>
<title>Change password</title>
<?php
include("headerlink.php");
?>
</head>
<body>
<?php
include('adheader.php');
?>
<div style="margin:auto; width:40%; padding:10px;">
<h4 class="p-3 mb-2 bg-secondary text-white" style="text-align:center;">
Change Password</h4>
<form method="POST" action="changepassword.php">
<table class="table">
<tr>
<th>Current Password</th>
<td><input type="text" name="textpass" required="" id="textpass"/></td>
</tr>
<tr>
<th>New Password</th>
<td><input type="text" name="textnewpass" id="textnewpass">
</td>
</tr>
<tr>
<th>Confirm Password</th>
<td><input type="text" name="textconpass" id="textconpass">
</td>
</tr>
<tr>
<td colspan="2"><input type="submit" class="btn btn-secondary" name="btn"
value="Change"/></td>
</tr>
</table>
</form>
</div>
</body>
</html>
CHANGEPASSWORD
FLORESTA FURNITURES
<?php
session_start();
//fetch input
$currentpassword=$_POST["textpass"];
$newpassword=$_POST["textnewpass"];
$confirmpassword=$_POST["textconpass"];
//compare
$msg="";
if($currentpassword==$_SESSION["session_password"])
{
if($newpassword==$confirmpassword)
{
//update n table
$conn=new PDO("mysql:host=localhost;dbname=furnituredb","root",null);
$conn->setattribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);
try{
$stmt=$conn->prepare("update admin set password=? where emailid=?");
$stmt->bindparam(1,$newpassword);
$stmt->bindparam(2,$_SESSION["session_email"]);
$stmt->execute();
$c=$stmt->rowcount();
if($c==1)
{
//session update
$_SESSION["session_password"]=$newpassword;
$msg="Password updated Successfully";
}
else{
$msg=" Password Update Failed";
} }
catch(Exception $e){
FLORESTA FURNITURES
$msg="Password Update Failed";}}
else{
$msg="New and Confirm Password Don't Match";
}
}
else{
$msg="Invalid Password";
}
?>
<html>
<head>
<title>Change password</title>
<?php
include('adminlinks.php');
?>
</head>
<body>
<?php
include('adminmenu.php');
?>
<?php
echo $msg;
?>
</body>
</html>
VIEWCATEGORIES.PHP
<?php
include('headerlink.php');
?>
<?php
//arrays
$cid=array();
$cname=array();
FLORESTA FURNITURES
//open connection to mysql
$conn=new PDO("mysql:host=localhost;dbname=furnituredb","root",null);
//prepare select statements
$stmt=$conn->prepare("select * from category");
$stmt->execute();
//push rows into arrays
while($row=$stmt->fetch(PDO::FETCH_ASSOC))
{
array_push($cid, $row["categoryid"]);
array_push($cname, $row["categoryname"]);
}
$conn=null;
?>
<html>
<body>
<?php include('adheader.php'); ?>
<div style="margin:auto; width:40%; padding:10px;">
<h4 class="p-3 mb-2 bg-secondary text-white" style="text-align:center;">
View category</h4>
<table border="2" class="table">
<tr>
<th>Category ID</th>
<th>Category Name</th>
<th>Add Product</th>
<th>View Product</th></tr>
<?php
$arr_length=count($cname);
for($i=0;$i<$arr_length;$i++)
{
FLORESTA FURNITURES
echo "<tr>";
$querystring = 'x=' . $cid[$i] . '&y=' . urlencode($cname[$i]);
$querystringproduct = 'x=' . $cid[$i];
echo"<td><a href=editcatform.php?$querystring>".$cid[$i]."</a></td>";
echo "<td>$cname[$i]</td>";
echo"<td><a href=addproductform.php?$querystringproduct>".$cid[$i]."</a></td>";
$viewproduct = 'z=' . $cid[$i];
echo"<td><a href=viewproduct.php?$viewproduct>".$cid[$i]."</a></td>";
echo"</tr>";}
?>
</table>
</div>
</body>
</html>
VIEWPRODUCTS.PHP
<?php
session_start();
//arrays
$cid=$_REQUEST["z"];
//open connection to mysql
$conn=new
PDO("mysql:host=localhost;dbname=fu
rnituredb","root",null);
//prepare select statements
$stmt=$conn->prepare("select * from
furniture where categoryid=?");
$stmt->bindParam(1,$cid);
$stmt->execute();
$c=$stmt->rowcount();
FLORESTA FURNITURES
$furniturecode=array();
$furniturename=array();
$price=array();
$stock=array();
$image=array();
$description=array();
//store data into arrays
if($c>0)
{
while($row=$stmt-
>fetch(PDO::FETCH_ASSOC))
{
array_push($furniturecode,$row["furnit
urecode"]);
array_push($furniturename,$row["furnit
urename"]);
array_push($price,$row["price"]);
array_push($stock,$row["stock"]);
array_push($image,$row["image"]);
array_push($description,$row["descripti
on"]);
}
}
$arrlen=count($furniturecode);
FLORESTA FURNITURES
?>
<html>
<head>
<title>View Products</title>
<?php
include('headerlink.php')
?>
</head>
<body>
<?php
include('adheader.php')
?>
<div style="margin:auto; width:40%;
padding:10px;">
<h4 class="p-3 mb-2 bg-secondary text-
white" style="text-align:center;">
Products</h4>
<?php
if($c>0){
?>
<table class="table">
<?php
FLORESTA FURNITURES
for($i=0;$i<$arrlen;$i++)
{
echo "<tr>";
echo "<td>";
echo "Furniture code:
".$furniturecode[$i];
echo "<br/>Furniture name:
".$furniturename[$i];
$furniturename[$i]=urlencode($furnitur
ename[$i]);
echo"<br/>";
echo "<img src=".$image[$i]."
height=100px width=100px/>";
echo"<br/>";
echo "price: ".$price[$i];
echo"<br/>";
echo "stock: " .$stock[$i];
echo"<br/>";
echo "Description:
".$description[$i];
$description[$i]=urlencode($description
[$i]);
echo"<br/>";
FLORESTA FURNITURES
//echo "<a
href=updatepriceform.php>Update</a>"
;
echo "<a
href=editproductform.php?code=$furnit
urecode[$i]&name=$furniturename[$i]
&price=$price[$i]&stock=$stock[$i]&d
escription=$description[$i]>Edit
Product</a>";
echo"</td>";
$i++;
if($i<$arrlen)
{
echo "<td>";
echo "Furniture code:
".$furniturecode[$i];
echo "<br/>Furniture name:
".$furniturename[$i];
$furniturename[$i]=urlencode($furnitur
ename[$i]);
echo"<br/>";
echo "<img src=".$image[$i]."
height=100px width=100px/>";
FLORESTA FURNITURES
echo"<br/>";
echo "price: ".$price[$i];
echo"<br/>";
echo "stock: " .$stock[$i];
echo"<br/>";
echo "Description:
".$description[$i];
$description[$i]=urlencode($description
[$i]) echo"<br/>";
echo "<a
href=editproductform.php?code=$furnit
urecode[$i]&name=$furniturename[$i]
&price=$price[$i]&stock=$stock[$i]&d
escription=$description[$i]>Edit
Product</a>";
echo"</td>"; }echo "</tr>"; } ?>
</table> <?php }
else{
echo "NO products of the selected
category";
// echo "<a
href=editproductform.php?code=$furnit
urecode[$i]&name=$furniturename[$i]
&price=$price[$i]&description=$descri
ption[$i]&stock=$stock[$i]>Edit
Product</a>"}; ?>
</div> </div>
</body></html>
FLORESTA FURNITURES
VIEWORDERSDETALIS.PHP
<?php
session_start();
$ordernumber=$_REQUEST["x"];
$conn=new
PDO("mysql:host=localhost;dbname=fu
rnituredb","root",null);
$stmt=$conn->prepare("select
ordersdetails.ordernumber,ordersdetails.
furniturecode,furniture.furniturename,
ordersdetails.price,ordersdetails.qty,orde
rsdetails.amount from ordersdetails
inner join furniture on
ordersdetails.furniturecode=furniture.fur
niturecode where
ordersdetails.ordernumber=?");
$stmt->bindParam(1,$ordernumber);
$stmt->execute();
$c=$stmt->rowcount();
//$ordernumber=array();
$furniturename=array();
$qty=array();
$furniturecode=array();
$amount=array();
$price=array();
$_SESSION["ordernumber"]=$ordernu
mber;
//store data into arrays
if($c>0)
{
while($row=$stmt-
>fetch(PDO::FETCH_ASSOC))
{
//array_push($ordernumber,$row["order
number"]);
FLORESTA FURNITURES
array_push($furniturecode,$row["furnit
urecode"]);
array_push($furniturename,$row["furnit
urename"]);
array_push($qty,$row["qty"]);
array_push($price, $row["price"]);
array_push($amount,
$row["amount"]);
}
}
$arrlen=count($furniturecode);
?>
<html>
<head>
<title>View Orders Details</title>
<?php
include('headerlink.php');
?>
</head>
<body>
<?php
include('adheader.php');
?>
<div style="margin:auto; width:40%;
padding:10px;">
<h4 class="p-3 mb-2 bg-secondary text-
white" style="text-align:center;">Placed
Orders</h4>
<?php
if($c>0){
?>
<form method="POST"
action="process.php">
<table class="table">
FLORESTA FURNITURES
<?php
for($i=0;$i<$arrlen;$i++)
{
echo "<tr>";
echo "<td>";
echo "Order Number:
".$ordernumber;
echo "<br/>";
echo" Furniture code:
".$furniturecode[$i];
echo "<br/>";
echo "Furniture Name : ".$furniturename[$i];
echo"<br/>";
echo "Quantity : ".$qty[$i];
echo"<br/>";
echo "Price: ".$price[$i];
echo"<br/>";
echo "Amount: ".$amount[$i];
echo"<br/>";
echo"</td>";
$i++;
if($i<$arrlen)
{
echo "<td>";
echo "Order Number: ".$ordernumber;
echo "<br/>";
echo "Furniturecode:
".$furniturecode[$i];
echo"<br/>";
echo" Furniture Name:
".$furniturename[$i];
echo "<br/>";
echo "Quantity : ".$qty[$i];
echo"<br/>";
echo "Price: ".$price[$i];
FLORESTA FURNITURES
echo"<br/>";
echo " Amount: ".$amount[$i];
echo"<br/>";
echo"</td>";
}
echo "</tr>";
echo"<br/>";
}
echo "<tr>";
echo "<td colspan='2'>";
echo "<input type='submit'
name='btn' class='btn btn-dark'
value='Process'/>";
echo "</td>";
echo "</tr>";
?>
</table>
</form>
<?php
//echo "<a
href=checkoutform.php>Check
Out</a>";
?>
</div>
<?php
} else{
echo "NO Products of Selected
Category";
}
?> </body>
</html>
FLORESTA FURNITURES
VIEWPAYMENTS.PHP
<?php
session_start();
$conn=new PDO("mysql:host=localhost;dbname=furnituredb","root",null);
$stmt=$conn->prepare("select * from payment");
//$stmt->bindParam(1,$_SESSION["customercode"]);
$stmt->execute();
$c=$stmt->rowcount();
$ordernumber=array();
$paymentdate=array();
$amount=array();
$image=array();
//store data into arrays
if($c>0)
{
while($row=$stmt->fetch(PDO::FETCH_ASSOC))
{
array_push($ordernumber,$row["ordernumber"]);
array_push($paymentdate,$row["paymentdate"]);
array_push($amount,$row["amount"]);
array_push($image,$row["image"]);
}
}
$arrlen=count($ordernumber);
?>
<html>
<head>
<title>View Payments</title>
<?php
include('headerlink.php')
?>
</head>
<body>
<?php
include('adheader.php')
FLORESTA FURNITURES
?>
<div style="margin:auto; width:60%; padding:50px;">
<h4 class="p-3 mb-2 bg-secondary text-white" style="text-align:center;">View Payments</h4>
<?php
if($c>0){
?>
<table border="1" class="table">
<?php
for($i=0;$i<$arrlen;$i++)
{
//$sum=$sum+$net[$i];
echo "<tr>";
echo "<td>";
echo "Order Number: ".$ordernumber[$i];
echo "<br/>";
echo" Payment Date: ".$paymentdate[$i];
//$furniturename[$i]=urlencode($furniturename[$i]);
echo"<br/>";
echo "Amount :".$amount[$i];
echo"<br/>";
echo "<img src=".$image[$i]." height=100px width=100px/>";
echo"<br/>";
echo"</td>";
$i++;
if($i<$arrlen)
{
echo "<td>";
echo "Order Number:".$ordernumber[$i];
echo "<br/>";
echo "Payment Date: ".$paymentdate[$i];
echo"<br/>";
echo "Amount : ".$amount[$i];
echo"<br/>";
echo "<img src=".$image[$i]." height=100px width=100px/>";
echo"<br/>";
FLORESTA FURNITURES
echo"</td>";
}
echo "</tr>";
}
?>
</table>
</div>
<?php
}
else{
echo "NO Products of the Selected Category";
}
?>
</body>
</html>
UPDATE CUSTOMIZEDORDER AMOUNT
<?php
//fetch posted data
$amount=$_POST["amount"];
$ordernumber=$_POST["order"];
$msg=null;
try{
$conn=new PDO("mysql:host=localhost;dbname=furnituredb","root",null);
$conn->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);
$stmt=$conn->prepare("update customizedproduct set amount=?,status='Order placed' where id=?");
$stmt->bindParam(1,$amount);
$stmt->bindParam(2,$ordernumber);
$stmt->execute();
$c=$stmt->rowCount();
if($c==1){
$msg="Amount updated Successfully";
}else{
$msg="Amount Update is Failed";
}
FLORESTA FURNITURES
}catch(Exception $e){
$msg="Amount Update Failed. " .$e->getMessage();
}finally{
$conn=null;
}
//update in table
?>
<html>
<head>
<title>view categories</title>
<?php
include('headerlink.php');
?>
</head>
<body>
<?php
include('adheader.php');
?>
<?php echo $msg; ?>
</body>
</html>
REPORT
<?php
$from=$_POST["fromday"];
$to=$_POST["today"];
$conn = new PDO("mysql:host=localhost;dbname=furnituredb","root",null);
$stmt=$conn->prepare("select sum(net) as 'total',count(items) as 'items' from furnitureorder where orderdate
between ? and ?");
$stmt->bindParam(1,$from);
$stmt->bindParam(2,$to);
$stmt->execute();
$row=$stmt->fetch(PDO::FETCH_ASSOC);
$total=$row["total"];
$totalitems=$row["items"];
$conn=null;
FLORESTA FURNITURES
?>
<html>
<head>
<title></title>
<?php
include("headerlink.php");
?>
</head>
<body>
<?php
include("adheader.php");
?>
<div style="margin:auto; width:40%; padding:10px;">
<h4 class="p-3 mb-2 bg-secondary text-white" style="text-align:center;">
Summary of earnings</h4>
<table class="table">
<h5>Total amount of orders :<?php echo $total;?></h5>
<h5>Total furniture solds :<?php echo $totalitems;?></h5>
</div>
</table>
</body>
</html>
FLORESTA FURNITURES
REPORTFORM
<html>
<head><title>Report</title>
<?php
include('headerlink.php');
?>
</head>
<body>
<?php
include('adheader.php');
?>
<div style="margin:auto; width:40%; padding:1px;">
<h4 class="p-3 mb-2 bg-secondary text-white" style="text-align:center;">Report</h4>
<form method="POST" action="report.php">
<table class="table">
<tr>
<td>From Date</td>
<td><input type="date" name="fromday" id="fromday"/>
</td>
</tr>
<tr>
<td>To Date</td>
<td><input type="date" name="today" id="today"/></td>
</tr>
<tr>
<td colspan="2"><input type="submit" class="btn btn-dark" name="btn" value="Report"/></td>
</tr>
</div>
</form>
</table>
</body>
</html>
FLORESTA FURNITURES
9. TESTING
10. 1 SYSTEM TESTING
10.1.1 Introduction
Testing is a process of executing a program with the indent of finding an error. Testing is a
crucial element of software quality assurance and presents ultimate review of specification,
design and coding. System Testing is an important phase. Testing represents an interesting
anomaly for the software. Thus, a series of testing are performed for the proposed system before
the system is ready for user acceptance testing. The code is tested at various levels in software
testing. Unit, system and user acceptance testings are often performed.
Testing Objectives
• Testing is a process of executing a program with the intent of finding an error.
• A good test case is one that has a probability of finding an as yet undiscovered error.
• A successful test is one that uncovers an undiscovered error.
Testing Principles
•All tests should be traceable to end user requirements.
•Tests should be planned long before testing begins.
• Testing should begin on a small scale and progress towards testing in large.
• Exhaustive testing is not possible.
• To be most effective testing should be conducted by a independent third party.
The primary objective for test case design is to derive a set of tests that has the highest livelihood
for uncovering defects in software. To accomplish this objective two different categories of test
case design techniques are used. They are:
• White box testing.
• Black box testing.
FLORESTA FURNITURES
White-Box Testing and Black-Box Testing
White Box Testing: White box testing focus on the program control structure. Test cases
are derived to ensure that all statements in the program have been executed at least once during
testing and that all logical conditions have been executed.
Black Box Testing: Black box testing is designed to validate functional requirements
without regard to the internal workings of a program. Black box testing mainly focuses on the
information domain of the software, deriving test cases by partitioning input and output in a
manner that provides through test coverage. Incorrect and missing functions, interface errors,
errors in data structures, error in functional logic are the errors falling in this category.
Testing strategies: A strategy for software testing must accommodate low-level tests that are
necessary to verify that all small source code segment has been correctly implemented as well
as high-level tests that validate major system functions against customer requirements.
There are two general strategies for testing software. They are as follows:
Code Testing: This examines the logic of the program. To follow this test, cases are developed
such that every path of program is tested.
Specification Testing: Specification Testing examines the specification, starting what the
program should do and how it should perform under various conditions. Then test cases are
developed for each condition and combinations of conditions and to be submitted for processing.
10.1.2 Levels of Testing
The stages of Testing Process are:
Unit Testing: Individual components are tested to ensure that they operate correctly. Each
component tested independently without other system components. Ex. Check for Username and
Password with the table, after the next module is loaded.
Integration Testing: Integration testing is a systematic technique for constructing the program
structure while at the same time conducting test to uncover errors associated with interfacing.
FLORESTA FURNITURES
This testing is done using the bottom-up approach to integrate the software components of the
software system in to functioning whole.
System Testing: System testing is actually a series of different tests whose primary purpose
is fully to exercise the computer-based system. The system tests that where applied are recovery
testing and performance testing. Finally, a review or audit is conducted which is a final
evaluation that occurs only after operating the system long enough for user to have gained a
familiarity with it. System testing was done by the inspection team to verify that all the
functionality identified is the software requirement specification has been implemented. Defects
that crept in the system has been found defect free and is working well. System testing is
concerned with interfaces, design logic, control flow recovery, procedures throughput, capacity
and timing characteristics of the entire system. For blank field, alphabets, number and special
character validation.
Acceptance Testing: User acceptance of the system is the key factor for the success of any
system. This is done by user. The system is given to the user and they test it with live data.
Acceptance testing involves the planning and execution of functional test. Performance tests,
stress tests in order to demonstrate that the implemented system satisfies its requirements. Two
sets of acceptance test can be run, those developed by the customer. The system has been tested
for its performance at unit level by the individuals through performance testing that is designed
to test the run time performance of the software. The performance of the fully integrated system
is tested and was found good.
FLORESTA FURNITURES
10.2 Validating the tables
Login Form
Fig (10.2.1): login
Fig (10.2.2): login
The above screenshot is showing the error message that we should enter valid username and
password.
FLORESTA FURNITURES
ACCOUNT HOLDER Table
Adding a new value to the table
Fig (10.2.3): Account Holder
Login Form
Fig (10.2.4): Logout
FLORESTA FURNITURES
BRANCH DETAILS Table
Fig (10.2.5): Branch Details
E-Letter Table
Fig (10.2.6): E-Letter
FLORESTA FURNITURES
FD-DETAILS Table
Fig (10.2.7): FD-Details
NOTIFICATION TABLE
Fig (10.2.8): Notification.
FLORESTA FURNITURES
Transaction Table
Fig (10.2.9): Transaction
USER-DETAILS Table
Fig (10.2.10): User Details
FLORESTA FURNITURES
10.3 Functional Testing
Test No Test Case Expected Result Actual Result Result
1 Valid
Username
and
Password
It should display respective
page according to user type.
Respective Home is
displayed
Fig
(10.2.1)
2 Invalid
Username
and
Password
It should give appropriate
error message saying “Enter
proper User-ID and
Password”
Error message displayed Fig
(10.2.2)
3 Add/Update
/Delete
Member
Details
Add/Delete/Update action is
taken.
Added/Updated/Deleted
Member message Displayed
Fig
(10.2.3)
4
Logout
It should logout correctly and
should not go to the home
page
Logout message displayed
and login page is shown
Fig
(10.2.4)
5 Insert
branch
details
Choose branch name and
branch address and submit
the values
Values will be inserted in the
table
Fig
(10.2.5)
6 Blank field
while
inserting
It should give appropriate
error message
Display appropriate error
message
Fig
(10.2.6)
FLORESTA FURNITURES
7 Valid FD
details
should be
provided
It should insert the FD
details into the database
while inserting
FD details is stored while
inserting
Fig
(10.2.7)
8 Insert values
without
notification
status and
submit
It must give an error
message while inserting
Display appropriate error
message
Fig
(10.2.8)
9 Insert values
without
account
holder name
and submit
It must give an error
message while inserting
It will display the error
message
Fig
(10.2.9)
10 Enter
invalid
mobile
number
It should give appropriate
message as “Mobile number
entered is incorrect”
It will display the error
message
Fig
(10.2.10)
FLORESTA FURNITURES
11. CONCLUSION
Software is said to have attained its objective only when it need all requirements of the user,
further the user himself is the person to judge the success of the system. Every attempt has been
made to ensure that the system is fully functional and works effectively and efficiently. The
system has been tested with simple data to cover all possible options and checked for all outputs.
Since the system is flexible and modular, further modification of this packge can be easily
incorporated.
Importance of the system
• Less manual work.
• Increased efficiency.
• Decreases the rate of errors.
• It reduces the time consumption.
• Quick (instant) result.
12.1 Books
12.BIBLIOGRAPHY
1. “Software Engineering”, by Ian Somerville, Sixth Edition, Pearson Education Ltd
2007.
2. “Web Programming”, by ‘Chris Bates’ Wiley Dreamtech India, 2nd Edition.
3. IEEE SRS Format.
4. Database Management Systems, by Navathe.
12.2 Websites
1. http://www.hotscripts.com/category/php/ for Php
2. http://en.wikipedia.org/wiki/PHP for Php.
3. http://www.mysql.com/click.php?e=35050 for MySql.

More Related Content

Similar to reportfloresta.pdf

Kalyan Hadoop
Kalyan HadoopKalyan Hadoop
Kalyan Hadoop
Canarys
 
Aniket updated resume 3
Aniket updated resume 3Aniket updated resume 3
Aniket updated resume 3
ANIKET THAKRE
 
Business Analytics with R
Business Analytics with RBusiness Analytics with R
Business Analytics with R
Edureka!
 
Business Analytics with R
Business Analytics with RBusiness Analytics with R
Business Analytics with R
Edureka!
 
Sasmita bigdata resume
Sasmita bigdata resumeSasmita bigdata resume
Sasmita bigdata resume
Sasmita Swain
 
Dspace Installation Requirement
Dspace Installation RequirementDspace Installation Requirement
Dspace Installation Requirement
Anil Mishra
 

Similar to reportfloresta.pdf (20)

Kalyan Hadoop
Kalyan HadoopKalyan Hadoop
Kalyan Hadoop
 
Architect’s Open-Source Guide for a Data Mesh Architecture
Architect’s Open-Source Guide for a Data Mesh ArchitectureArchitect’s Open-Source Guide for a Data Mesh Architecture
Architect’s Open-Source Guide for a Data Mesh Architecture
 
Virender
VirenderVirender
Virender
 
SharePoint 2016 & Office 365: A Look Ahead To What's Coming - SPS Vancouver
SharePoint 2016 & Office 365: A Look Ahead To What's Coming - SPS VancouverSharePoint 2016 & Office 365: A Look Ahead To What's Coming - SPS Vancouver
SharePoint 2016 & Office 365: A Look Ahead To What's Coming - SPS Vancouver
 
Meet the Infochimps Platform
Meet the Infochimps PlatformMeet the Infochimps Platform
Meet the Infochimps Platform
 
Aniket updated resume 3
Aniket updated resume 3Aniket updated resume 3
Aniket updated resume 3
 
SAUJANYA SINHA_RESUME
SAUJANYA SINHA_RESUMESAUJANYA SINHA_RESUME
SAUJANYA SINHA_RESUME
 
Business Analytics with R
Business Analytics with RBusiness Analytics with R
Business Analytics with R
 
Learn Business Analytics with R at edureka!
Learn Business Analytics with R at edureka!Learn Business Analytics with R at edureka!
Learn Business Analytics with R at edureka!
 
Business Analytics with R
Business Analytics with RBusiness Analytics with R
Business Analytics with R
 
PhD Projects Research Help
PhD Projects Research HelpPhD Projects Research Help
PhD Projects Research Help
 
Sasmita bigdata resume
Sasmita bigdata resumeSasmita bigdata resume
Sasmita bigdata resume
 
GurudasBhondkar5055
GurudasBhondkar5055GurudasBhondkar5055
GurudasBhondkar5055
 
Password management
Password managementPassword management
Password management
 
SharePoint & The Road Ahead: SharePoint 2016 & Office 365
SharePoint & The Road Ahead: SharePoint 2016 & Office 365 SharePoint & The Road Ahead: SharePoint 2016 & Office 365
SharePoint & The Road Ahead: SharePoint 2016 & Office 365
 
Resume
ResumeResume
Resume
 
Dspace Installation Requirement
Dspace Installation RequirementDspace Installation Requirement
Dspace Installation Requirement
 
Project proposal Module
Project proposal ModuleProject proposal Module
Project proposal Module
 
Parnents training
Parnents trainingParnents training
Parnents training
 
Deploying Python Machine Learning Models with Apache Spark with Brandon Hamri...
Deploying Python Machine Learning Models with Apache Spark with Brandon Hamri...Deploying Python Machine Learning Models with Apache Spark with Brandon Hamri...
Deploying Python Machine Learning Models with Apache Spark with Brandon Hamri...
 

Recently uploaded

Scouring of cotton and wool fabric with effective scouring method
Scouring of cotton and wool fabric with effective scouring methodScouring of cotton and wool fabric with effective scouring method
Scouring of cotton and wool fabric with effective scouring method
vimal412355
 
21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx
rahulmanepalli02
 
Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptx
hublikarsn
 

Recently uploaded (20)

Overview of Transformation in Computer Graphics
Overview of Transformation in Computer GraphicsOverview of Transformation in Computer Graphics
Overview of Transformation in Computer Graphics
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)
 
UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptx
 
Path loss model, OKUMURA Model, Hata Model
Path loss model, OKUMURA Model, Hata ModelPath loss model, OKUMURA Model, Hata Model
Path loss model, OKUMURA Model, Hata Model
 
Working Principle of Echo Sounder and Doppler Effect.pdf
Working Principle of Echo Sounder and Doppler Effect.pdfWorking Principle of Echo Sounder and Doppler Effect.pdf
Working Principle of Echo Sounder and Doppler Effect.pdf
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
Independent Solar-Powered Electric Vehicle Charging Station
Independent Solar-Powered Electric Vehicle Charging StationIndependent Solar-Powered Electric Vehicle Charging Station
Independent Solar-Powered Electric Vehicle Charging Station
 
Unsatisfied Bhabhi ℂall Girls Ahmedabad Book Esha 6378878445 Top Class ℂall G...
Unsatisfied Bhabhi ℂall Girls Ahmedabad Book Esha 6378878445 Top Class ℂall G...Unsatisfied Bhabhi ℂall Girls Ahmedabad Book Esha 6378878445 Top Class ℂall G...
Unsatisfied Bhabhi ℂall Girls Ahmedabad Book Esha 6378878445 Top Class ℂall G...
 
analog-vs-digital-communication (concept of analog and digital).pptx
analog-vs-digital-communication (concept of analog and digital).pptxanalog-vs-digital-communication (concept of analog and digital).pptx
analog-vs-digital-communication (concept of analog and digital).pptx
 
Scouring of cotton and wool fabric with effective scouring method
Scouring of cotton and wool fabric with effective scouring methodScouring of cotton and wool fabric with effective scouring method
Scouring of cotton and wool fabric with effective scouring method
 
Post office management system project ..pdf
Post office management system project ..pdfPost office management system project ..pdf
Post office management system project ..pdf
 
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
 
History of Indian Railways - the story of Growth & Modernization
History of Indian Railways - the story of Growth & ModernizationHistory of Indian Railways - the story of Growth & Modernization
History of Indian Railways - the story of Growth & Modernization
 
Fundamentals of Internet of Things (IoT) Part-2
Fundamentals of Internet of Things (IoT) Part-2Fundamentals of Internet of Things (IoT) Part-2
Fundamentals of Internet of Things (IoT) Part-2
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptx
 
21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx
 
Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptx
 
TMU_GDSC_20240509.pdfTMU_GDSC_20240509.pdf
TMU_GDSC_20240509.pdfTMU_GDSC_20240509.pdfTMU_GDSC_20240509.pdfTMU_GDSC_20240509.pdf
TMU_GDSC_20240509.pdfTMU_GDSC_20240509.pdf
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Danikor Product Catalog- Screw Feeder.pdf
Danikor Product Catalog- Screw Feeder.pdfDanikor Product Catalog- Screw Feeder.pdf
Danikor Product Catalog- Screw Feeder.pdf
 

reportfloresta.pdf

  • 1. FLORESTA FURNITURES KARNATAK UNIVERSITY DHARWAD Janata Shikshana Samiti’s Shri Manjunatheshwara Institute of UG & PG Studies Vidyagiri, Dharwad-580004. A PROJECT REPORT ON “FLORESTA FURNITURES” BACHELOR OF COMPUTER SCIENCE OF KARNATAK UNIVERSITY, DHARWAD PROJECT GUIDED BY Smt . Renuka Matapathi Submitted By Deepa Mugad Priyanka Pawar BSC(CS) VI SEMESTER BSC(CS)VI SEMESTER REG NO:19M10123 REGNO:19M10160 DEPARTMENT OF COMPUTER SCIENCE 2021-2022
  • 2. FLORESTA FURNITURES JANATA SHIKSHAN SAMITI’S SHRI MANJUNATHESHWARA INSTITUTE OF UG & PG STUDIES, VIDYAGIRI, DHARWAD-580004 This is to certify that Miss. DEEPA MUGAD AND Miss. PRIYANKA PAWAR has satisfactorily completed project work entitled “FLORESTA FURNITURES” for the partial fulfilment of BSC(CS) prescribed by Karanatak University, Dharwad during the academic year 2021-2022. Smt.Reunka Matapathi Prof. Vivek M Laxmeshwar Dr. Ajith Prasad Project Guide [HOD] Computer Department Principal Examiners: 1) 2) CERTIFICATE
  • 3. FLORESTA FURNITURES ACKNOWLEDGEMENT The successful presentation of this project is an acknowledgement of the immense support extended by JSS Shri Manjunatheshwara Institute of UG & PG Studies, Vidyagiri, Dharwad Which has provided opportunities to fulfil the most cherished desired to reach our goal. We would like to express our heartfelt thanks to our President Shri. Vishwaprasannateertha of Pejavarmath of Udupi,Chairman Pujya Dr. D.Veerendra Hegde and Dr. N. Vajrakumar, Secretary of JSS. We would like to express our sincere gratitude to our beloved Principal Dr.Ajith Prasad who gave us inspiration and moral support. We offer our heartily gratitude to our H.O.D Prof. Vivek M. Laxmeshwar of Computer Science Department who gave us knowledge and an opportunity to do the project on “FLORESTA FURNITURES”, which also helped us in doing a lot of research and where expose to many new things. We would also take this opportunity to offer our sincere gratitude to our Project Guide Smt.Renuka Matapathi for her excellent support throughout the development of this project and for providing the necessary information on our request at all times. We also thank all Teaching and Non-Teaching staff of Computer Science Department for helping us in all aspects. We thank our parents for providing all the facilitiesto complete and make this project successful. Deepa Mugad (19M10123) Priyanka Pawar (19M10160)
  • 4. FLORESTA FURNITURES DECLARATION We, Deepa Mugad and Priyanka Pawar, students of sixth semester BSC(CS), Department of Computer Science, JSS SMI UG AND PG STUDIES VIDYAGIRI, DHARWAD, Karnataka University declare that the project entitled “FLORESTA FURNITURES” has been submitted in partial fulfillment of the course requirement for the award of degree in Bachelor of Science (Computer Science), Karnataka University, Dharwad during the academic year 2021-2022. We have not submitted the matter embodied to any other university or institution for the award ofany other degree. Date: Deepa Mugad Place: Dharwad Priyanka Pawar
  • 5. FLORESTA FURNITURES CONTENTS 1. PROJECT SYNOPSIS...............................................................1 2. FRAMEWORK ............................................................................ 3 2.1. HTML 2.2. CSS 2.3. PHP 2.4. X-AMP 2.5. My Sql 2.6. Visual Studio Code 3. PROJECT SUBJECT ................................................................. 7 4. SOFTWARE REQUIREMENTS SPECIFICATION.................10 4.1. Introduction 4.1.1. Purpose 4.1.2. Document Conventions 4.1.3. Scope 4.1.4. References 4.2. General Description 4.2.1. Product Functionalities 4.2.2. User Characteristics 4.3. Specific Requirements 4.3.1. Functional Requirements 4.3.2. Other Non-Functioal Requirements 4.3.3. External Interface Requirements 5.DESIGN OF THE SYSTEM........................................................15 5.1. Introduction 5.2. Data Flow Diagram 5.3. ER- Diagram 6. IMPLEMENTATION ..................................................................21 6.1. Introduction 6.2. Database Evolution
  • 6. FLORESTA FURNITURES 7. DATABASE TABLES…............................................................26 7.1. Tables Used In Database 8. SCREEN SHOTS…................................................................... 29 9. SOURCE CODE ........................................................................ 34 10.TESTING.....................................................................................59 10.1. Software Testing 10.1.1. Introduction 10.1.2. Levels Of Testing 10.2. Validating The Tables 10.3. Functional Testing 11. CONCLUTION ......................................................................... 69 12. BIBLIOGRAPHY… ................................................................. 67 12.1. Books 12.2. Websites
  • 7. FLORESTA FURNITURES 1. PROJECT SYNOPSIS 1.1 INTRODUTION “FLORESTA FURNITURES” as we are developing a web application for the Furniture shop “MANDOVI FURNITURES” situated at Dharwad. Its well-known outlet situated in heart of the Dharwad city at main road of Hubli-Dharwad. Furniture is the soul of a house; it gives a sense of fulfilling of needs. Types of furniture are of many designs and categories. As the shop was firstly opened only with the intention of selling wooden furniture like Sofa, Cots, Tables, Chairs but now it has a numerous variety of decorative items and different type of products Wooden Wardrobe to the Garden Swings etc. They are the wholesale dealers of reputed companies like Kurl-On, Sleep well and so on. They are the merchants of wooden furniture utilities. FLORESTA FURNITURE is a web application designed primarily for use in the furniture item delivery service and it also provide the information about our furniture store. The main point of developing this system is to help furniture store Administrator manage the furniture shop business and help customer for online ordering and helpful for Customer to purchase his/her desired item by sitting at home. 1.2 OBJECTIVE • This system will allow furniture store to increase scope of business by reducing the labour cost involved. • The system also allows to quickly and easily manage an onlineitems which customers can browse and use to place orders with just few clicks. • The main point of developing this system is to help furniture store • Administrator manage the furniture shop business and help customer for online ordering. • Eliminate paper work and increase level of accuracy. • Increase speed of service, sales volume and customer satisfaction. 1.3 INPUTS OF THE PROJECT
  • 8. FLORESTA FURNITURES • Furniture Products • Categories • Customer • Orders • Order details • Cart 1.4 OUTPUTS OF THE PROJECT • Customer profile • Furniture details • Order details • View of order • Generation of bills • Report 1.5 PROCESS LOGIC Furniture products Categories Customer Orders Customized Product Payment Orders details Cart • C a t e g Customer profile Furniture details Order details Payment Customized Orders View of orders Report FLORESTA FURNITURE
  • 9. FLORESTA FURNITURES 1.6 TOOLS/PLATFORM Browser (Google Chrome) XAAMP Sever 1.7 FRONT END ▪ HTML ▪ CSS 1.8 BACK END ▪ MySql Programming Language ▪ JAVA Script ▪ PHP 1.9 DURATION OF THE PROJECT 2 Months 1.10 MEMBERS OF THE PROJECT Deepa Mugad 19M10123 Priyanka Pawar 19M10160 1.11 LIMITATIONS . ▪ We currently have not provided the Chatting facility. ▪ We are Currently not Providing the Tracking of the Product. 1.12 SCOPE OF THE APPLICATION ▪ To design web application for them that helps organization to extend their business Across the state. ▪ To provide a online business as well as E-commerce business profit for that shop. ▪ This Website can Further Developed as Andriod. 2.FRAMEWORK 2.1 What is XAMPP? XAMPP is an abbreviation where X stands for Cross-Platform, A stands for Apache, M stands for MYSQL, and the Ps stand for PHP and Perl, respectively. It is an open-source package of
  • 10. FLORESTA FURNITURES web solutions that includes Apache distribution for many servers and command-line executables along with modules such as Apache server, MariaDB, PHP, and Perl. XAMPP helps a local host or server to test its website and clients via computers and laptops before releasing it to the main server. It is a platform that furnishes a suitable environment to test and verify the working of projects based on Apache, Perl, MySQL database, and PHP through the system of the host itself. Among these technologies ,Perl is a programming language used for web development, PHP is a backend scripting language, and MariaDB is the most vividly used database developed by MySQL. Components of XAMPP As defined earlier, XAMPP is used to symbolize the classification of solutions for different technologies. It provides a base for testing of projects based on different technologies through a personal server. XAMPP is an abbreviated form of each alphabet representing each of its major components. This collection of software contains a web server named Apache, a database management system named MariaDB and scripting/ programming languages such as PHP and Perl. X denotes Cross-platform, which means that it can work on different platforms such as Windows, Linux and macOS. Usage The most obvious characteristic of XAMPP is the ease at which a WAMP webserver stack can be deployed and instantiated.] Later some common packaged applications that could be easily installed were provided by Bitnami. Officially, XAMPP's designers intended it for use only as a development tool, to allow website designers and programmers to test their work on their own computers without any access to the Internet. To make this as easy as possible, many important security features are disabled by default. XAMPP has the ability to serve web pages on the World Wide Web. A special tool is provided to password-protect the most important parts of the package. XAMPP also provides support for creating and manipulating databases in MariaDB and SQLite among others Once XAMPP is installed, it is possible to treat a localhost like a remote host by connecting using an FTP client. Using a program like FileZilla has many advantages when installing
  • 11. FLORESTA FURNITURES a content management system (CMS) like Joomla or WordPress. It is also possible to connect to localhost via FTP with an HTML editor. Features XAMPP is regularly update to the latest releases of Apache, MariaDB, PHP and Perl. It also comes with a number of other modules including OpenSSL, phpMyAdmin, MediaWiki, Joomla, WordPress and more.[8] Self- contained, multiple instances of XAMPP can exist on a single computer, and any given instance can be copied from one computer to another.[9] XAMPP is offered in both a full and a standard version (Smaller version). Conclusion  As we have seen, XAMPP is a powerful and versatile solution for setting up a local web server. It presents a perfect way to create an environment for basic WordPress coding, experimenting with Settings, tweaking themes, and much more.
  • 12. FLORESTA FURNITURES 2.2 HTML HTML means Hypertext Markup Language. HTML is a method of describing the format of document, which allows them to be viewed on computer screen. Web browsers display HTML documents, program which can navigate across networks and display a wide variety of types of information. HTML pages can be developed to be simple text or to be complex multimedia extra advantages containing, moving images, virtual reality, and java applets. Hypertext Markup language (HTML) is used to creating the web page either of static or dynamic and used to develop the user-friendly web pages. HTML is used for developing web pages .HTML is popularly used in World Wide Web (WWW). It uses ASCII characters for both the main text and formatting instructions the main text is data and the whole information is used by the browser to format the data. A HTML document is simply a text file, which contains certain information you would like to publish. A set of instruction embedded in a document is called Markup Language. These instructions describe what the document text means and how it should look in a display. The language also tells you how to make a document with other document on your local systems. The World Wide Web and other inter resources such as FTP. The global publishing format of the Internet is HTML. It allows authors to use not only text but also format that text with headings, list and tables, and also includes still images videos, and sound within text. Readers can access pages information from any where in the world at the click of mouse button information can be downloaded to readers own PC or workstations HTML pages can also be used for entering a data and as a front end for commercial transaction. A website authoring program originally developed by Macromedia. It does many things including allowing designer to move back and forth between visual and HTML modes. 2.3PHP PHP is a scripting language originally designed for producing dynamic webpages. It has evolved to include a command line interface capability and can be used in standalone graphical application. While PHP was originally created by RasmusLerdorf in 1995, the main implementation of PHP is now produced by the PHP Groups and serves as the de facto standard for PHP as there is no formal specification.
  • 13. FLORESTA FURNITURES PHP is a scripting language under the PHP License; however, it is incompatible with the GNU General Public License (GPL). Due to restrictions on the usage of the term PHP. It is widely used general-purpose scripting language that is especially suited for web development and can be embedded into HTML. It generally runs on a web server, taking PHP code as its input, I am creating web pages as out puts. It can be deployed on web servers and on almost every operating system and platform free of charge. PHP in installed on more the twenty million web sites and one million web servers. PHP Architecture Usage PHP primarily acts as a filter, taking input from a file or stream containing text and/or PHP instructions and outputs another stream of data; most commonly the output will be HTML. It can automatically detect the language of the user. From PHP 4, the PHP parser compiles input to produce byte code for processing by the Zend Engine, giving improved performance over its interpreter predecessor. Originally designed to create dynamic web pages, PHP’s principal focus is server-side scripting, and it is similar to other server-side scripting languages that provide dynamic content from a web server to a client, such as Microsoft’s Active Server
  • 14. FLORESTA FURNITURES Pages, Sun Microsystems JavaServer Pages, and mod_perl. PHP has also attracted the development of many frameworks that provide building blocks and a design structure to promote rapid application development (RAD). Some of these include CakePHP, Symfony, CodeIgniter, and Zend Framework, offering features similar to other web application frameworks. The WAMP architecture has become popular in the web industry as a way of deploying web applications. PHP is commonly used as the PHP in this bundle alongside Linux, Apache and MySQL, although they may also refer to Python or Perl. As of April 2007, over 20 million Internet domains were hosted on servers with PHP installed, and PHP was recorded as the most popular Apache module. Significant websites are written in PHP including the user-facing portion of Facebook, Wikipedia (MediaWiki), Yahoo!, MyYearbook, Wordpress. In addition to server-side scripting, PHP can be used to create stand-alone, compiled applications and libraries, it can be used for shell scripting.
  • 15. FLORESTA FURNITURES What is Database? 2.1 MY SQL Quite simply, Its an organised collection of data. A Database management system (DBMS) such as access file maker Pro, Oracle or SQL server provides you with the software tools you need to organize that data in a flexible manner. It includes facilities to add modify or delete data from database, ask questions (or queries) about the data stored in the database and produce reports summarizing selected contents. My SQL is a multithreaded, multi-user SQL database management system (DBMS). The basic program runs as a server providing multi-user access to several databases. My SQL was owned and sponsored by a single for-profit firm the Sidish company. My SQL now a subsidiary of Sun Micro System, which hold the copy write to most of the database. The data in My SQL is stored in database objects called Tables. A table is a collection of related data entries and consist of columns and rows. Databases are useful when storing information categorically. MySQL is a database management system. A database is a structured collection of data. It may be anything from a simple shopping list to a picture gallery or the vast amounts of information in a corporate network. To add, access, and process data stored in a computer database, you need a database management system such as MySQL Server. Since computers are very good at handling large amounts of data, database management systems play a central role in computing, as standalone utilities, or as parts of other applications. • MySQL databases are relational. A relational database stores data in separate tables rather than putting all the data in one big storeroom. The database structures are organized into physical files optimized for speed. The logical model, with objects such as databases, tables, views, rows, and columns, offers a flexible programming environment. You set up rules governing the relationships between different data fields, such as one-to-one, one-to-many, unique, required or optional, and “pointers” between different tables. The database enforces these rules, so that with a well-designed database, your application never sees inconsistent, duplicate, orphan, out-of-date, or missing data.
  • 16. FLORESTA FURNITURES 2. PROJECT SUBJECT… ▪ Speedy and efficient information processing is required to our socially and highly developed technology. ▪ Computer can help the intolerable burden of handling the ever-increasing amount of information related to the data. ▪ This may also lead to problems occurring due to information explosion. About the project • FURNITURE SHOP MANAGEMENT SYSTEM is a web application designed primarily for use in the furniture item delivery service and it also provide the information about our furniture store. • This system will allow furniture store to increase scope of business by reducing the labor cost involved. • The system also allows to quickly and easily manage an online items which customers can browse and use to place orders with just few clicks. This project includes following features: - ▪ Having customer information and total products requirements ▪ For the help of user, it displays each and every detail about required topics. ▪ Maintains all the old record for later reference. Have provision for automatic update as per the status. Objectives of the proposed system 1. Immediate retrieval of information – The main objective of the new system is to provide for quick and efficient retrieval of information, any type of information would be available to the user whenever he requires. Facility would be provided for online query to cut down on the response time greatly. 2. Immediate storage of information – In the proposed system, it will be easy to store information at any given time at the correct places. The location of storage would be easily available, and user will face no difficulty. 3. Prompt updating of information – In the proposed system, the information will always remain up to date as the updating will be prompt and without any efforts. This factor will be of great importance in the proposed system as it determines the integrity of the information stored.
  • 17. FLORESTA FURNITURES 4. Fast computation of information – The computation of information will be quite fast in the proposed system. Not only mathematical calculations, but also logical comparisons will be quick in the new system. 5. Planned approach toward working – The working is the service center information system will be well planned and organized. The data will be stored properly in the data store, which will help in retrieval of information as well as in its storage. 3.1 NUMBER OF MODULES ▪ Manage website 1. ADMIN ▪ Approve Status ▪ Login ▪ Manage admin’s password and databases a. Upload new arrivals b. View customers request ▪ Manage Users ▪ Logout 2. CUSTOMER ▪ Register ▪ Login ▪ View of products (Individual/Group) ▪ Create wishlist c. Upload customized designs d. View new arrivals ▪ Customers (My Profile) ▪ Logout (Feedback) Notification Module Description ADMIN • Admin Login The main activities in the application are the admin login page for admin. The other modules are followed by this login page. This module records only admin and password of the admin.
  • 18. FLORESTA FURNITURES • Manage admin’s password and databases Admin can manage the password and admin can transmit the respective addresses databases. • Upload new arrivals items Admin can transmit the new arrived items then admin can upload the status of approval. • View customers request Admin can manage the customers request details and transaction details are maintained. • Manage users and logout An admin can manage users account and their details, status and then, the terminate the admin account USER • User Login The main activities in the application are the user login page for user. The other modules are followed by this login page. This module records only user and password of the user. • User Registration Another main function of our proposed system is registration, in order to register with the unique application details such as name; password, email, place and time are required. • View products A user can view products categories wise on user’s content is a service under which displayed, or even customized designs messages of customers are scanned and transmitted as customized products through websites. i.Upload customized products A user create their design and update their details. Then, User will upload design . View status A user can view status of deposit process and account wishlist details. User can view whole status. My profile and Logout User view my profile and if the user can update the profile details and then, the terminate their account.
  • 19. FLORESTA FURNITURES 4. SOFTWARE REQUIREMENTS SPECIFICATION 4.1 INTRODUCTION SRS is the official statement of what is required by the system developers; it includes both user requirements for the system and detailed specification of the system requirements. This document is used while designing the proposed system and can also be used in the future if the system is to be enhanced. 4.1.1 Purpose The purpose of this Requirements Elicitation document is to provide a clear understanding as to what actually the Industry Management Syatem is and to identify the critical requirements essential for the project’s successful completion. This document explains our team architecture, our teams’s initial understanding of the user needs. This online application enables the end users to register online, select the furniture from the furniture menu. An online orders. By just selecting the furniture that the user want to have. The user will be given a username and a password to login. Admin can view Customer details and product detail. 4.1.2 Document Conventions Main Section Title: Font: Times New Roman, Bold: Size 16 Sub Section Title: Font: Times New Roman, Bold: Size 14 Other Text Matter: Font: Times New Roman, Bold: Size 12 4.1.3 Scope This document is intended for providing an abstract overview of the system and general overview of the entire project. Scope and Limitation for Online Furniture shop System is a still uses a manual procedure in keeping records of their clients and past, current and upcoming. In making an order the client must fill-up some forms such as waiver/ gate pass and the ordering. The scope of the document: ▪ Team Architecture, ▪ System Functional and Non-Functional Requirements
  • 20. FLORESTA FURNITURES ▪ Prototype of the System, ▪ Online payment acceptance for wide range of services. 4.1.4 Reference
  • 21. FLORESTA FURNITURES 4.2 General Description This section will give an overview of the whole application. The explanation of the application will be in its context to show the application interacts with other systems and introduce the basic functionality of it. It will also describe all the constraints and assumptions for the application. 4.2.1 System Perspective As per the requirements of the client, to build a customized application that facilitates to maintain the entire details of the furniture shops and the databases, service to get through the demerits of existing manualsystem with new implementations such as: This furniture center is committed to being the best in all areas of its business. Online ordering system will be a website whose main language of programming will be ASP.NET. Its main aim is to simplify and improve the efficiency of the ordering process for both customer and shop, minimize manual data entry and ensure data accuracy and security during both order placement process. Customers will also be able to view product menus: ▪ It takes very less time for completion of process. ▪ The application and requests can be verified by the customers as well as owners wherever they are and cantake necessary actions. ▪ It is very easy for giving complaints and suggestions. Existing System ▪ In the present system the user has to do the transaction manually. ▪ It takes lot of time for dealing with the products as they are maintaining the records in the book. Proposed System The proposed system is FLORESTA FURNITURES for a furniture shop. Here everything is done online. The activities like shopping, viewing the new arrivals are can be done through online. No waiting is required. And feedbacks can be giventhrough online. Even if the customers is available in the sectors, he can verify application online. It is very quick process than the existing system. Product Functionalities Project should support the following functionalities:
  • 22. FLORESTA FURNITURES ▪ Login: Sign in into the web application. ▪ Sign up: User registration. ▪ Applying for the fixed deposit amount 4.2.2 User Characteristics End Users ▪ No specific knowledge or skills are required from the end user. ▪ End user should have basic idea about computer operations. Administrator ▪ Administrator must be having good knowledge of database management system. ▪ Administrator must be capable to manage user rights. 4.3 Specific Requirements 4.3.1 Functional Requirements a) Login ▪ Start the application. ▪ User enters the username and password. ▪ System does authentication and main screen is displayed. Authorization Fails ▪ Prompt the user that he typed the wrong password. ▪ Allow him to re-enter the password. b) Change Password ▪ User initiates the change password command. ▪ User is prompted for to enter old password, new password and confirm password. ▪ System does authentication. ▪ New password is registered with the system.
  • 23. FLORESTA FURNITURES c) Forgot Password ▪ User initiates the forgot password command. ▪ User is prompted to enter email and with a previous password to recover forgot password. ▪ System authenticaton. d) Depositing the amount ▪ After successfully logging into the system, the depositor has to apply the FD amount, and then enter the registration date, maturity date and year. ▪ The only requirement here is that the depositor needs to log into the system. 4.3.2 Other Non-Functional Requirements: a) Performance Requirements ▪ Should run on 500MHz, 64mb machine. ▪ 90% of responses should be within 3 second, except for downloading for which more time is acceptable. b) Security Requirements ▪ This application requires a user name with password is required to verify the identification of the user. 4.3.3 External Interface Requirements a) User Interfaces Most user-friendly interface has been designed, Login pages for the users and admin. The main interfaces used in the system are the forms and menus. b) Hardware Interfaces The system does not require any additional hardware interfaces, so the user need not focus on the hardware apart from the standard hardware. c) Software Interfaces XAMPP server, internet browser installed on the server machine.
  • 24. FLORESTA FURNITURES 5. DESIGN OF THE SYSTEM 5.1 Introduction The purpose of the decision phase is to plan a solution of the problem specified by the requirements document. This phase is the first step in moving the problem domain to the solution domain. It involves the process, in which conceiving, planning and carrying out the plan generating the necessary report, In other words, the design phase act as a bridge between SRS and implementation phase. The design of the system is perhaps the most critical factor affecting the quality of the software, and as a major impact on the later phase, particularly the testing and maintenance. Software Design Design is the key phase of any project. It is the first step in moving from the problem domain to the solution domain. The input to the design phase is the specifications of the system to be designed. The output of the top-level design is the architectural design, or the system design for the software system to be built. A design should be very clear, verifiable, complete, traceable, efficient and simple. Architecture Design The architecture design defines the relationship among major structural element of the program. Architecture diagram shows the relationship between different components of system. This diagram helps to understand the overall concept of system. Logical design The graphical representation of system data and how the process transforms the data Admin Internet Web Browser which manages user interaction with owner and customer Mysql database Xamp Server
  • 25. FLORESTA FURNITURES is known as Data Flow Diagram. It shows the logical flow of the data. The logical design describes the detailed specification for the system, describing its features, an effective communication and the user interface requirements. The logical design of proposed system should include the following. 1. External system structure. 2. Relationship between all the activities. 3. The physical construction and all the activities. 4. Global data. 5. Control flow. 6. Derived program structure. Design Principles Basic design principles that enable the software engineer to navigate the design process are: ▪ The design process should not suffer from “Tunnel vision”. ▪ The design should be traceable to analysis model. ▪ The design should not reinvent the wheel. ▪ The design should minimize the intellectual distance between the software and the problem, as it exists in the real world. The design should exhibit uniformity and integrity. ▪ The design should be structured to accommodate changes. ▪ The design is not coding, and coding is not design. ▪ The design should be reviewed to minimize the conceptual errors. 5.2 Data Flow Diagram The data flow diagram (DFD) is one of the important modeling tools. It shows the user of the data pictorially. DFD represents the flow of the data between different transformations and processes in the systems. The data flow diagram shows logical flow of the data. It represents the functional dependencies within a system. It shows output values in a computation or derived from input values. It is a simple pictorial representation or model for system behavior. It specifies, “What is to be done but not how is to be done”. It describes the logical structure of the system. It relates data information to various processess of the system. It follows top-down approach. Data Flow Diagram Notations Data Flow:
  • 26. FLORESTA FURNITURES It may be from file-to-file or file-to-process or process-to-process. It is generally in terms of attributes. There may be either an input data flow or output data flow. Functional processing The process is nothing but the transformation of data. It starts With the subject and has the verb followed by the subject. Data store It includes file, data base and repository. Actor/source/sink The files which are outside the system and used by the process or processes of the system. Objectives • To graphically document boundaries of a system. • To provide hierarchy breakdown of the system. • To show movement of information between a system and its environment. • To document information flows within the system. • To aid communication between users and developers.
  • 27. FLORESTA FURNITURES Context level diagram (zero level DFD) Flow of the project: Fig level 0 DFD: Floresta Furniture. Furniture products Categories Customer Orders Orders details Cart • C a t e g o r i e s • C u s t o m e r • O r d Customer profile Furniture details Order details View of orders Generation of bills Report FLORESTA FURNITURE
  • 28. FLORESTA FURNITURES Fig : Floresta Furniture process logic
  • 29. FLORESTA FURNITURES 5.3 ER Diagram Entity Relationship Diagram, also known as ERD, ER Diagram or ER model, is a type of structural diagram for use in database design. An ERD contains different symbols and connectors that visualize two important information. The major entities within the system scope, and the inter- relationships among these entities. An entity-relationship diagram is a data modelling technique that creates a graphical representation of the entities, and the relationships between entities, within an information system. An entity- relationship model (ERM) is an abstract and conceptual representation of data. Entity-relationship modeling is a database modelling method, used to produce a type of conceptual schema or semantic data model of a system, often a relational database, and its requirements in a top- down fashion. Diagrams created by this process are called entityrelationship diagrams, ER diagrams, or ERDs. The first stage of information system design uses these models during the requirements analysis to describe information needs or the type of information that is to be stored in a database. The data modeling technique can be used to describe any ontology (i.e. an overview and classifications of used terms and their relationships) for a certain area of interest. In the case of the design of an information system that is based on a database, the conceptual data model is, at a later stage (usually called logical design), mapped to a logical data model, such as the relational model; this in turn is mapped to a physical model during physical design. Sometimes, both of these phases are referred to as "physical design". The three main components of an E-R Diagram are: • The entity is a person, object, place or event for which data is collected. For example, if you consider the information system for a business, entities would include not only customers, but the customer‘s address, and orders as well. The entity is represented by a rectangle and labelled with a singular noun. • The relationship is the interaction between the entities. In the example above, the customer places an order, so the word ―places‖ defines the relationship between that instance of a customer and the order or orders that they place. A relationship may be represented by a diamond shape, or more simply, by the line connecting the entities. In either case, verbs are used to label the relationships.
  • 30. FLORESTA FURNITURES • The cardinality defines the relationship between the entities in terms of numbers. An entity may be optional: for example, a sales representative could have no customers or could have one or many customers; or mandatory: for example, there must be at least one product listed in an order. There are several different types of cardinality notations; crow‘s foot notation, used here, is a common one. In crow‘s foot notation, a single bar indicates one, a double bar indicates one and only one , a circle indicates zero, and a crow's foot indicates many. The three main cardinal relationships are: oneto- one, expressed as 1:1; one-to-many, expressed as 1: N; and many-to-many, expressed as M: N. Fig (5.3): E-R Daigram of Floresta Furniture
  • 31. FLORESTA FURNITURES 1.1 Introduction 6. IMPLEMENTATION Implementation is the process of converting a new revised system design into operation. The objective is to put the new revised system, which has been tested into operation while holding costs, risks and personal irritation to the minimum. A critical aspect of the implementation process is to ensure that there will be no description in the function of the organization. The best methods for going control while implementation is that, any new system would be to use well planned test files for testing all new programs. Another factor to be convinced in the implementation phase in the acquisition of the hardware and software. Once the software is developed for the system and testing is carried out, it is the process of making the newly designed system fully operational and consistent in performance Example <?php Echo “WELCOME TO OUR PROJECT”; ?> Speed optimization As with many scripting languages, PHP scripts are normally kept as human-readable source code, even on production web servers. In this case, PHP scripts will be compiled at runtime by the PHP engine, which increases their execution time. PHP scripts are able to be compiled before runtime using PHP compilers as with other programming languages such as C (the language PHP and its extensions are written in). Code optimizers aim to reduce the computational complexity of the compiled code by reducing its size and making other changes that can reduce the execution time with the overall goal of improving performance. The nature of the PHP compilers such that there are often opportunities for code optimization, and an example of a code optimizer is the Zend Optimizer PHP extension. Another approach for reducing overhead for high load PHP servers is using PHP accelerators. These can offer significant performance gains by caching the compiled form of a PHP script in shared memory to avoid the overhead of parsing and compiling the code every time the script runs. Example to display message using HTML page <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  • 32. FLORESTA FURNITURES <title>Untitled Document</title> </head> <body> <h1>WELCOME TO OUR PROJECT</h1> </body> </html> Output 1.2 Database Evolution SQL was invented in the year 1960’s by E. F. Cod of IBM in order to increase data integrity and reduce repetitive data. RDBMS did not appear until the late 70’s when Sybase and Oracle introduced systems. SQL server was originally a Sybase product. Microsoft bought the product outright from Sybase and by version 7.0, the version prior to 2000 all the code had been rewritten by Microsoft’s programming. Features of SQL • The entire SQL has been divided into 4 major categories 1. Data Manipulation Language. 2. Data Definition Language. 3. Transaction control language. 4. Data Control Lnaguage. • It is simple English like language and uses simple commands such as SELECT, CREATE, DROP etc. • It is not having conditional loops, variables and most of the commands are single line commands. • To implement application logics, SQL has got extension language popularly called as PL/SQL (Procedural language of SQL).
  • 33. FLORESTA FURNITURES • One of the key features of sql server is the XML support. XML has grown to be standard technology for organizations that share data on the web. Security Views are basically used as a part of security, means in many organizations end user will never be given original tables and all data entry will be done with the help of views only. But the database administrator will be able to see everything because all the operations done by the different users will come to the same table. Queries A query is a question or a request. With MySql, we can query a database for specific information and have a record set returned. Create a connection to a database Before you can access data in a database, you must create a connection to the database. In PHP, this is done with the mysql_connect () function. Syntax Mysql connect (server name, username, password); Server name: Optional Specifies the Server to connect. Default values is localhost: 3306 <?php $con=mysql_connect('localhost','root',''); mysql_select_db ('project', $con); ?> Steps to create a database in PHPMyAdmin 1) The following figure shows your PHPMyAdmin interface, just enter your database name and click the 'Create' button to create your database. 2) Now to create a new table enter your table name and the number of fields in the table, then click the 'Go' Button.
  • 34. FLORESTA FURNITURES 3)The next step is to create the fields, just enter values for each field name, type, length of the field, null option and mention whether it is a primary key or not. Then click the 'Save' button to complete your table creation. 4) The following figure is displayed upon successful creation of your table Steps to Drop Table in PHPMyAdmin Login to phpmyadmin. Click 'databases' List of your databases will appear. Click the one that is your WordPress database. Note the size of the 'wp_bad_behaviour_log' table - this is one to be emptied in this example.
  • 35. FLORESTA FURNITURES Now select the box to the left of the table you wish to empty. Note: Your table may have a different name, and unless you have been told, do NOT empty a table that is used by the Word Press core. From the drop-down menu, highlight and click the 'Empty' option. You will now get a confirmation screen. This is your last chance to check - there is no 'UNDO' function here! Click 'Yes' and you will be returned to viewing all the tables in your install. And your table has been cleared out. If you needed to Drop a table, follow exactly the same, but select 'Drop' from the menu.
  • 36. FLORESTA FURNITURES 7. DATABASE TABLES 7.1 Tables Used In Our Project Table structure for ADMIN tablePrimary Key: emailid Field Type Null Default emailid Varchar(20) No NULL password Varchar(50) No NULL Table structure for customer table Primary Key: customercode Field Type Null Default customercode Int (11) No NULL name Varchar (20) yes NULL address Varchar(20) yes NULL city Varchar (30) yes NULL phone Varchar (12) yes NULL pincode Varchar(6) yes NULL state Varchar(20) yes NULL Email_id Varchar (20) yes NULL Table structure for customized design product Primary key:id foregin key: customercode Field Type Null Default id Int (10) No none customercode int(200) No none Proname Varchar(20) yes NULL qty Int(11) yes NULL image Varchar (50) yes NULL height int (11) yes NULL width Int (11) yes NULL woodtype Varchar (20) yes NULL Field Type Null Default
  • 37. FLORESTA FURNITURES amount Int (11) yes NULL status Varchar (20) yes NULL Table structure for furniture Primary key: furniture code foregin key: category id Field Type Null Default category_id Int (11) yes NULL furniturecode int (11) No None Furniturename Varchar(20) yes NULL description Varchar (100) yes NULL stock Int(11) yes NULL price int(11) yes NULL image Varchar(50) Yes NULL Table structure for furnitureorder Primary key: ordernaumber Foregin key: ordernumber Field Type Null Default ordernumber Int (11) No None orderdate date yes NULL customercode Int(11) yes NULL items Int(11) yes NULL amount Int(11) yes NULL shipping int (11) yes NULL net Int (11) yes NULL status Varchar (10) No NULL Table Structure for orderdetails Foregin key: ordernumber and furniture code Field Type Null Default ordernumber Int (11) yes Null furniturecode Int(11) yes NULL
  • 38. FLORESTA FURNITURES qty Int(11) yes NULL price Int(11) yes NULL amount Int(11) yes NULL Tables Structure for payment Primary key: paymentid Foregin key: ordernumber Field Type Null Default ordernumber Int (11) No None paymentid Int(11) yes NULL ordernumber Int(11) yes NULL amount Int(11) yes NULL image int (11) yes NULL Tables structure for category Primary key: categoryid Field Type Null Default categoryid int(11) No None categoryname Varchar(20) yes NULL Tables structure for cart Primary key: cartid Foreign key : customercode and furniturecode Field Type Null Default cart_id Int (11) no NONE customercode int (11) yes NULL Furniturecode int(11) yes NULL qty int (11) yes NULL amount Int(11) yes NULL price int(11) yes NULL stock int(10) no NONE
  • 39. FLORESTA FURNITURES SCREEN SHOTS Fig 1. A VIEW OF HOMEPAGE Fig 2. A VIEW OF LOGIN PAGE
  • 40. FLORESTA FURNITURES Fig 3. A VIEW OF CUSTOMER REGISTRATION PAGE Fig 4. A VIEW OF ACCOUNT HOLDER TABLE
  • 41. FLORESTA FURNITURES Fig 5. A VIEW OF BRANCH DETAILS TABLE Fig 6. A VIEW OF DEPOSIT TABLE
  • 42. FLORESTA FURNITURES Fig 7. A VIEW OF WITHDRAWALS DETAILS TABLE Fig 8. A VIEW OF FD-CALCULATOR DETAILS TABLE
  • 43. FLORESTA FURNITURES Fig 9. A VIEW OF USER DETAILS TABLE Fig 10. A VIEW OF E-LETTER TABLE
  • 44. FLORESTA FURNITURES 8. SOURCE CODE ADMIN FORM <!DOCTYPE html> <html lang="en"> <head> <title>Change password</title> <?php include("headerlink.php"); ?> </head> <body> <?php include('header.php'); ?> <?php include('footer.php'); ?> </body> </html> ADHEADER.PHP LINKS <div class="container-fluid bg-dark py-3"> <div class="container"> <div class="row"> <div class="col-md-6 text-center text-lg-left mb-2 mb-lg-0"> <div class="d-inline-flex align-items-center"> <a class="text-white pr-3" href="adminhome.php">Home</a> <span class="text-white">|</span> <a class="text-white px-3" href="changepasswordform.php">Change Password</a> <span class="text-white">|</span> <a class="text-white pl-3" href="signout.php">Sign Out</a> </div> </div> </div> </div> </div> <!-- Topbar End --> <!-- Navbar Start -->
  • 45. FLORESTA FURNITURES <div class="container-fluid position-relative nav-bar p-0"> <div class="container position-relative" style="z-index: 9;"> <nav class="navbar navbar-expand-lg bg-secondary navbar-dark py-3 py-lg-0 pl-3 pl-lg-5"> <a href="" class="navbar-brand"> <h1 class="m-0 display-5 text-white"><span class="text-primary">FLORESTA</h1> </a> <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbarCollapse"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse justify-content-between px-3" id="navbarCollapse"> <div class="navbar-nav ml-auto py-0"> <a href="addcategoryform.php" class="nav-item nav-link">Add Category</a> <a href="viewcustomers.php" class="nav-item nav-link">View Customers</a> <a href="viewcategories.php" class="nav-item nav-link">View Category</a> <a href="vieworders.php" class="nav-item nav-link">View Orders</a> <a href="viewcustomizedorder.php" class="nav-item nav-link">View Customized Orders</a> <a href="viewpayments.php" class="nav-item nav-link">View Payment</a> <a href="reportform.php" class="nav-item nav-link">Report</a> </div> </div> </nav> </div> </div> <!-- Navbar End --> ADFOOTER LINKS CODE <!-- About Start --> <div class="container-fluid bg-light"> <div class="container"> <div class="row"> <div class="col-lg-5"> <div class="d-flex flex-column align-items-center justify-content-center bg-primary h-100 py-5 px-3"> <i class="flaticon-brickwall display-1 font-weight-normal text-secondary mb-3"></i> <h4 class="display-3 mb-3">Furniture</h4> <h1 class="m-0">Industry</h1> </div> </div> <div class="col-lg-7 m-0 my-lg-5 pt-5 pb-5 pb-lg-2 pl-lg-5"> <h6 class="text-primary font-weight-normal text-uppercase mb-3">Learn About Us</h6> <h1 class="mb-4 section-title">We Are The Best Interior Designing Firm In Your City</h1> <p>Invidunt lorem justo sanctus clita. Erat lorem labore ea, justo dolor lorem ipsum ut sed eos, ipsum et dolor kasd sit ea justo. Erat justo sed sed diam. Ea et erat ut sed diam sea ipsum est dolor</p> <div class="row py-2"> <div class="col-sm-6">
  • 46. FLORESTA FURNITURES <div class="d-flex align-items-center mb-4"> <h1 class="flaticon-house font-weight-normal text-primary m-0 mr-3"></h1> <h5 class="text-truncate m-0">Living Room</h5> </div> </div> <div class="col-sm-6"> <div class="d-flex align-items-center mb-4"> <h1 class="flaticon-stairs font-weight-normal text-primary m-0 mr-3"></h1> <h5 class="text-truncate m-0">Pooja Room</h5> </div> </div> <div class="col-sm-6"> <div class="d-flex align-items-center mb-4"> <h1 class="flaticon-office font-weight-normal text-primary m-0 mr-3"></h1> <h5 class="text-truncate m-0">Bedroom Design</h5> </div> </div> <div class="col-sm-6"> <div class="d-flex align-items-center mb-4"> <h1 class="flaticon-living-room font-weight-normal text-primary m-0 mr-3"></h1> <h5 class="text-truncate m-0">Kitchen Design</h5> </div> </div> </div> </div> </div> </div> </div> <!-- About End --> <!-- Services Start --> <div class="container-fluid py-5"> <div class="container py-5"> <div class="row"> <div class="col-lg-6 pr-lg-5"> <h6 class="text-primary font-weight-normal text-uppercase mb-3">Our Awesome Services</h6> <h1 class="mb-4 section-title">Awesome Interior Designing Services For Your Home</h1> <p>Invidunt lorem justo clita. Erat lorem labore ea, justo dolor lorem ipsum ut sed eos, ipsum et dolor kasd sit ea justo. Erat justo sed sed diam. Ea et erat ut sed diam sea ipsum</p> </div> <div class="col-lg-6 p-0 pt-5 pt-lg-0"> <div class="owl-carousel service-carousel position-relative"> <div class="d-flex flex-column text-center bg-light mx-3 p-4"> <h3 class="flaticon-bedroom display-3 font-weight-normal text-primary mb-3"></h3> <h5 class="mb-3">Bedroom Design</h5> <p class="m-0">Make Your Bedroom Looks Beautiful</p> </div> <div class="d-flex flex-column text-center bg-light mx-3 p-4">
  • 47. FLORESTA FURNITURES <h3 class="flaticon-kitchen display-3 font-weight-normal text-primary mb-3"></h3> <h5 class="mb-3">Kitchen Design</h5> <p class="m-0">The Place Where You can cook for a Smile</p> </div> <div class="d-flex flex-column text-center bg-light mx-3 p-4"> <h3 class="flaticon-bathroom display-3 font-weight-normal text-primary mb-3"></h3> <h5 class="mb-3">Bathroom Design</h5> <p class="m-0">Your Living area makes Your Mood Feel Better</p> </div> </div> </div> </div> </div> </div> <!-- Services End --> <!-- Features Start --> <div class="container-fluid bg-light"> <div class="container"> <div class="row"> <div class="col-lg-7 mt-5 py-5 pr-lg-5"> <h6 class="text-primary font-weight-normal text-uppercase mb-3">Why Choose Us?</h6> <h1 class="mb-4 section-title">25+ Years Experience In The Interior Design Industry</h1> <p class="mb-4">Dolores lorem lorem ipsum sit et ipsum. Sadip sea amet diam dolore sed et. Sit rebum labore sit sit ut vero no sit. Et elitr stet dolor sed sit et sed ipsum et kasd ut. Erat duo eos et erat sed diam duo</p> <ul class="list-inline"> <li><h5><i class="far fa-check-square text-primary mr-3"></i>Best Interior Design</h5></li> <li><h5><i class="far fa-check-square text-primary mr-3"></i>Customer Satisfaction</h5></li> <li><h5><i class="far fa-check-square text-primary mr-3"></i>Customized Design</h5></li> </ul> </div> <div class="col-lg-5"> <div class="d-flex flex-column align-items-center justify-content-center h-100 overflow-hidden"> <img class="h-100" src="img/feature.jpg" alt=""> </div> </div> </div> </div> </div> <!-- Features End --> <!-- Projects Start --> <div class="container-fluid py-5"> <div class="container py-5"> <div class="row justify-content-center"> <div class="col-lg-6 col-md-8 col text-center mb-4">
  • 48. FLORESTA FURNITURES <h6 class="text-primary font-weight-normal text-uppercase mb-3">Our Projects</h6> <h1 class="mb-4">Some Of Our Awesome Interior Designing Projects</h1> </div> </div> <div class="row"> <div class="col-12 text-center mb-2"> <ul class="list-inline mb-4" id="portfolio-flters"> <li class="btn btn-outline-primary m-1 active" data-filter="*">All</li> <li class="btn btn-outline-primary m-1" data-filter=".first">Complete</li> <li class="btn btn-outline-primary m-1" data-filter=".second">Running</li> <li class="btn btn-outline-primary m-1" data-filter=".third">Upcoming</li> </ul> </div> </div> <div class="row mx-1 portfolio-container"> <div class="col-lg-4 col-md-6 col-sm-12 p-0 portfolio-item first"> <div class="position-relative overflow-hidden"> <div class="portfolio-img d-flex align-items-center justify-content-center"> <img class="img-fluid" src="img/portfolio-1.jpg" alt=""> </div> <div class="portfolio-text bg-secondary d-flex flex-column align-items-center justify-content-center"> <h4 class="text-white mb-4">Project Name</h4> <div class="d-flex align-items-center justify-content-center"> <a class="btn btn-outline-primary m-1" href=""> <i class="fa fa-link"></i> </a> <a class="btn btn-outline-primary m-1" href="img/portfolio-1.jpg" data-lightbox="portfolio"> <i class="fa fa-eye"></i> </a> </div> </div> </div> </div> <div class="col-lg-4 col-md-6 col-sm-12 p-0 portfolio-item second"> <div class="position-relative overflow-hidden"> <div class="portfolio-img d-flex align-items-center justify-content-center"> <img class="img-fluid" src="img/portfolio-2.jpg" alt=""> </div> <div class="portfolio-text bg-secondary d-flex flex-column align-items-center justify-content-center"> <h4 class="text-white mb-4">Project Name</h4> <div class="d-flex align-items-center justify-content-center"> <a class="btn btn-outline-primary m-1" href=""> <i class="fa fa-link"></i> </a> <a class="btn btn-outline-primary m-1" href="img/portfolio-2.jpg" data-lightbox="portfolio"> <i class="fa fa-eye"></i> </a> </div> </div> </div> </div>
  • 49. FLORESTA FURNITURES <div class="col-lg-4 col-md-6 col-sm-12 p-0 portfolio-item third"> <div class="position-relative overflow-hidden"> <div class="portfolio-img d-flex align-items-center justify-content-center"> <img class="img-fluid" src="img/portfolio-3.jpg" alt=""> </div> <div class="portfolio-text bg-secondary d-flex flex-column align-items-center justify-content-center"> <h4 class="text-white mb-4">Project Name</h4> <div class="d-flex align-items-center justify-content-center"> <a class="btn btn-outline-primary m-1" href=""> <i class="fa fa-link"></i> </a> <a class="btn btn-outline-primary m-1" href="img/portfolio-3.jpg" data-lightbox="portfolio"> <i class="fa fa-eye"></i> </a> </div> </div> </div> </div> <div class="col-lg-4 col-md-6 col-sm-12 p-0 portfolio-item first"> <div class="position-relative overflow-hidden"> <div class="portfolio-img d-flex align-items-center justify-content-center"> <img class="img-fluid" src="img/portfolio-4.jpg" alt=""> </div> <div class="portfolio-text bg-secondary d-flex flex-column align-items-center justify-content-center"> <h4 class="text-white mb-4">Project Name</h4> <div class="d-flex align-items-center justify-content-center"> <a class="btn btn-outline-primary m-1" href=""> <i class="fa fa-link"></i> </a> <a class="btn btn-outline-primary m-1" href="img/portfolio-4.jpg" data-lightbox="portfolio"> <i class="fa fa-eye"></i> </a> </div> </div> </div> </div> <div class="col-lg-4 col-md-6 col-sm-12 p-0 portfolio-item second"> <div class="position-relative overflow-hidden"> <div class="portfolio-img d-flex align-items-center justify-content-center"> <img class="img-fluid" src="img/portfolio-5.jpg" alt=""> </div> <div class="portfolio-text bg-secondary d-flex flex-column align-items-center justify-content-center"> <h4 class="text-white mb-4">Project Name</h4> <div class="d-flex align-items-center justify-content-center"> <a class="btn btn-outline-primary m-1" href=""> <i class="fa fa-link"></i> </a> <a class="btn btn-outline-primary m-1" href="img/portfolio-5.jpg" data-lightbox="portfolio"> <i class="fa fa-eye"></i> </a> </div>
  • 50. FLORESTA FURNITURES </div> </div> </div> <div class="col-lg-4 col-md-6 col-sm-12 p-0 portfolio-item third"> <div class="position-relative overflow-hidden"> <div class="portfolio-img d-flex align-items-center justify-content-center"> <img class="img-fluid" src="img/portfolio-6.jpg" alt=""> </div> <div class="portfolio-text bg-secondary d-flex flex-column align-items-center justify-content-center"> <h4 class="text-white mb-4">Project Name</h4> <div class="d-flex align-items-center justify-content-center"> <a class="btn btn-outline-primary m-1" href=""> <i class="fa fa-link"></i> </a> <a class="btn btn-outline-primary m-1" href="img/portfolio-6.jpg" data-lightbox="portfolio"> <i class="fa fa-eye"></i> </a> </div> </div> </div> </div> </div> </div> </div> <!-- Projects End –-> HEADER <div class="container-fluid bg-dark py-3"> <div class="container"> <div class="row"> <div class="col-md-6 text-center text-lg-left mb-2 mb-lg-0"> <div class="d-inline-flex align-items-center"> <a class="text-white pr-3" href="adminhome.php">Home</a> <span class="text-white">|</span> <a class="text-white px-3" href="changepasswordform.php">Change Password</a> <span class="text-white">|</span> <a class="text-white pl-3" href="signout.php">Sign Out</a> </div> </div> </div> </div> </div> <!-- Topbar End --> <!-- Navbar Start --> <div class="container-fluid position-relative nav-bar p-0"> <div class="container position-relative" style="z-index: 9;"> <nav class="navbar navbar-expand-lg bg-secondary navbar-dark py-3 py-lg-0 pl-3 pl-lg-5"> <a href="" class="navbar-brand">
  • 51. FLORESTA FURNITURES <h1 class="m-0 display-5 text-white"><span class="text-primary">FLORESTA</h1> </a> <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbarCollapse"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse justify-content-between px-3" id="navbarCollapse"> <div class="navbar-nav ml-auto py-0"> <a href="addcategoryform.php" class="nav-item nav-link">Add Category</a> <a href="viewcustomers.php" class="nav-item nav-link">View Customers</a> <a href="viewcategories.php" class="nav-item nav-link">View Category</a> <a href="vieworders.php" class="nav-item nav-link">View Orders</a> <a href="viewcustomizedorder.php" class="nav-item nav-link">View Customized Orders</a> <a href="viewpayments.php" class="nav-item nav-link">View Payment</a> <a href="reportform.php" class="nav-item nav-link">Report</a> </div> </div> </nav> </div> </div> <!-- Navbar End --> <!-- Carousel Start --> <div class="container-fluid p-0"> <div id="header-carousel" class="carousel slide" data-ride="carousel"> <div class="carousel-inner"> <div class="carousel-item active"> <img class="w-100" src="img/carousel-1.jpg" alt="Image"> <div class="carousel-caption d-flex flex-column align-items-center justify-content-center"> <div class="p-3" style="max-width: 800px;"> <h4 class="text-primary text-uppercase font-weight-normal mb-md-3">FURNITURE</h4> <h3 class="display-3 text-white mb-md-4">Make Your Home Better</h3> </div> </div> </div> <div class="carousel-item"> <img class="w-100" src="img/carousel-2.jpg" alt="Image"> <div class="carousel-caption d-flex flex-column align-items-center justify-content-center"> <div class="p-3" style="max-width: 800px;"> <h4 class="text-primary text-uppercase font-weight-normal mb-md-3">Make Your Home Well Furnised </h4> <h3 class="display-3 text-white mb-md-4">Stay At Home In Peace</h3> </div> </div> </div> </div> <a class="carousel-control-prev" href="#header-carousel" data-slide="prev">
  • 52. FLORESTA FURNITURES <div class="btn btn-primary" style="width: 45px; height: 45px;"> <span class="carousel-control-prev-icon mb-n2"></span> </div> </a> <a class="carousel-control-next" href="#header-carousel" data-slide="next"> <div class="btn btn-primary" style="width: 45px; height: 45px;"> <span class="carousel-control-next-icon mb-n2"></span> </div> </a> </div> </div> <!-- Carousel End --> HEADERLINKS <!-- Favicon --> <link href="img/favicon.ico" rel="icon"> <!-- Google Web Fonts --> <link href="https://fonts.googleapis.com/css2?family=Montserrat&family=Oswald:wght@400;500;600&display=swap" rel="stylesheet"> <!-- Font Awesome --> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css" rel="stylesheet"> <!-- Flaticon Font --> <link href="lib/flaticon/font/flaticon.css" rel="stylesheet"> <!-- Libraries Stylesheet --> <link href="lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet"> <link href="lib/lightbox/css/lightbox.min.css" rel="stylesheet"> <!-- Customized Bootstrap Stylesheet --> <link href="css/style.css" rel="stylesheet"> CUSTOMERSIGNUP FORM <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Customer signup</title> <?php include("loginlink.php"); ?> </head> <script> function validate(){ var namepattern = /^[A-Za-z]+s?[A-Za-z]+$/;
  • 53. FLORESTA FURNITURES var name=document.forms["regform"]["textname"].value; if(name.search(namepattern)==-1){ alert("Name should contain only alphabets with one space between each word"); return false; } var pwdpattern=/^(?=.d)(?=.[a-z])(?=.[A-Z])(?=.[a-zA-Z0-9])(?!.*s).{3,10}$/; var pwd=document.forms["regform"]["textpass"].value; if(pwd.search(pwdpattern)==-1) { alert("Password must contain one lowercase letter one uppercase letter one digit one special character"); return false; } } </script> <body> <?php include('header.php'); ?> <div style="margin:center; width:120%; padding:1px;"> <h4 class="p-3 mb-2 bg-dark text-white" style="text-align:center;"> Customer signup</h4> <form method="POST" action="customersignup.php" name="regform" onsubmit="return validate();"> <table class="table"> <tr> <th>Name</th> <td><input type="text" name="textname" required="" autofocus="" id="textname" maxlength="20" minlength="3"/></td> </tr> <tr> <th>Address</th> <td><textarea name="textadd" rows="4" cols="25"></textarea></td> </tr> <tr> <th>State</th> <td> <select id="select" name="textstate"> <option>Karnataka</option> <option>Gujarat</option> <option>Rajastan</option> <option>Dehli</option> </select> </td> </tr> <tr> <th>city</th> <td> <input type="textcity" name="textcity" /> </td> </tr> <tr> <th>pincode</th> <td>
  • 54. FLORESTA FURNITURES <input type="text" name="textpin" id="textpin" maxlength="6" minlength="6" /> </td> </tr> <tr> <th>Email</th> <td><input type="email" name="textemail" id="textemail" /> </td> </tr> <tr> <th>Phone</th> <td><input type="text" name="textphone" id="textphone" maxlength="10" minlength="10" /> </td> </tr> <tr> <th>Password</th> <td><input type="password" name="textpass" id="textpass" maxlength="10" minlength="3"/> </td> </tr> <tr> <th>Confirm password</th> <td><input type="password" name="textconpass" id="textconpass" maxlength="10" minlength="3"/> </td> </tr> <tr> <td colspan="2"><input type="submit" class="btn btn-dark" name="btn" value="Register"/></td> </tr> </table> </form> <?php include('footer.php'); ?></body></html> code used to store the data to database this is related to customersignin <?php session_start(); $email=$_POST["textemail"]; $password=$_POST["textpass"]; $conn=new PDO("mysql:host=localhost;dbname=furnituredb","root",null); //prepare select statement to get one row $stmt=$conn->prepare("select * from customer where emailid=? and password=?"); $stmt->bindparam(1,$email); $stmt->bindparam(2,$password); $stmt->execute(); $c=$stmt->rowcount(); if($c==1) {
  • 56. FLORESTA FURNITURES CHANGEPASSWORD FORM <!DOCTYPE html> <html lang="en"> <head> <title>Change password</title> <?php include("headerlink.php"); ?> </head> <body> <?php include('adheader.php'); ?> <div style="margin:auto; width:40%; padding:10px;"> <h4 class="p-3 mb-2 bg-secondary text-white" style="text-align:center;"> Change Password</h4> <form method="POST" action="changepassword.php"> <table class="table"> <tr> <th>Current Password</th> <td><input type="text" name="textpass" required="" id="textpass"/></td> </tr> <tr> <th>New Password</th> <td><input type="text" name="textnewpass" id="textnewpass"> </td> </tr> <tr> <th>Confirm Password</th> <td><input type="text" name="textconpass" id="textconpass"> </td> </tr> <tr> <td colspan="2"><input type="submit" class="btn btn-secondary" name="btn" value="Change"/></td> </tr> </table> </form> </div> </body> </html> CHANGEPASSWORD
  • 57. FLORESTA FURNITURES <?php session_start(); //fetch input $currentpassword=$_POST["textpass"]; $newpassword=$_POST["textnewpass"]; $confirmpassword=$_POST["textconpass"]; //compare $msg=""; if($currentpassword==$_SESSION["session_password"]) { if($newpassword==$confirmpassword) { //update n table $conn=new PDO("mysql:host=localhost;dbname=furnituredb","root",null); $conn->setattribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION); try{ $stmt=$conn->prepare("update admin set password=? where emailid=?"); $stmt->bindparam(1,$newpassword); $stmt->bindparam(2,$_SESSION["session_email"]); $stmt->execute(); $c=$stmt->rowcount(); if($c==1) { //session update $_SESSION["session_password"]=$newpassword; $msg="Password updated Successfully"; } else{ $msg=" Password Update Failed"; } } catch(Exception $e){
  • 58. FLORESTA FURNITURES $msg="Password Update Failed";}} else{ $msg="New and Confirm Password Don't Match"; } } else{ $msg="Invalid Password"; } ?> <html> <head> <title>Change password</title> <?php include('adminlinks.php'); ?> </head> <body> <?php include('adminmenu.php'); ?> <?php echo $msg; ?> </body> </html> VIEWCATEGORIES.PHP <?php include('headerlink.php'); ?> <?php //arrays $cid=array(); $cname=array();
  • 59. FLORESTA FURNITURES //open connection to mysql $conn=new PDO("mysql:host=localhost;dbname=furnituredb","root",null); //prepare select statements $stmt=$conn->prepare("select * from category"); $stmt->execute(); //push rows into arrays while($row=$stmt->fetch(PDO::FETCH_ASSOC)) { array_push($cid, $row["categoryid"]); array_push($cname, $row["categoryname"]); } $conn=null; ?> <html> <body> <?php include('adheader.php'); ?> <div style="margin:auto; width:40%; padding:10px;"> <h4 class="p-3 mb-2 bg-secondary text-white" style="text-align:center;"> View category</h4> <table border="2" class="table"> <tr> <th>Category ID</th> <th>Category Name</th> <th>Add Product</th> <th>View Product</th></tr> <?php $arr_length=count($cname); for($i=0;$i<$arr_length;$i++) {
  • 60. FLORESTA FURNITURES echo "<tr>"; $querystring = 'x=' . $cid[$i] . '&y=' . urlencode($cname[$i]); $querystringproduct = 'x=' . $cid[$i]; echo"<td><a href=editcatform.php?$querystring>".$cid[$i]."</a></td>"; echo "<td>$cname[$i]</td>"; echo"<td><a href=addproductform.php?$querystringproduct>".$cid[$i]."</a></td>"; $viewproduct = 'z=' . $cid[$i]; echo"<td><a href=viewproduct.php?$viewproduct>".$cid[$i]."</a></td>"; echo"</tr>";} ?> </table> </div> </body> </html> VIEWPRODUCTS.PHP <?php session_start(); //arrays $cid=$_REQUEST["z"]; //open connection to mysql $conn=new PDO("mysql:host=localhost;dbname=fu rnituredb","root",null); //prepare select statements $stmt=$conn->prepare("select * from furniture where categoryid=?"); $stmt->bindParam(1,$cid); $stmt->execute(); $c=$stmt->rowcount();
  • 61. FLORESTA FURNITURES $furniturecode=array(); $furniturename=array(); $price=array(); $stock=array(); $image=array(); $description=array(); //store data into arrays if($c>0) { while($row=$stmt- >fetch(PDO::FETCH_ASSOC)) { array_push($furniturecode,$row["furnit urecode"]); array_push($furniturename,$row["furnit urename"]); array_push($price,$row["price"]); array_push($stock,$row["stock"]); array_push($image,$row["image"]); array_push($description,$row["descripti on"]); } } $arrlen=count($furniturecode);
  • 62. FLORESTA FURNITURES ?> <html> <head> <title>View Products</title> <?php include('headerlink.php') ?> </head> <body> <?php include('adheader.php') ?> <div style="margin:auto; width:40%; padding:10px;"> <h4 class="p-3 mb-2 bg-secondary text- white" style="text-align:center;"> Products</h4> <?php if($c>0){ ?> <table class="table"> <?php
  • 63. FLORESTA FURNITURES for($i=0;$i<$arrlen;$i++) { echo "<tr>"; echo "<td>"; echo "Furniture code: ".$furniturecode[$i]; echo "<br/>Furniture name: ".$furniturename[$i]; $furniturename[$i]=urlencode($furnitur ename[$i]); echo"<br/>"; echo "<img src=".$image[$i]." height=100px width=100px/>"; echo"<br/>"; echo "price: ".$price[$i]; echo"<br/>"; echo "stock: " .$stock[$i]; echo"<br/>"; echo "Description: ".$description[$i]; $description[$i]=urlencode($description [$i]); echo"<br/>";
  • 64. FLORESTA FURNITURES //echo "<a href=updatepriceform.php>Update</a>" ; echo "<a href=editproductform.php?code=$furnit urecode[$i]&name=$furniturename[$i] &price=$price[$i]&stock=$stock[$i]&d escription=$description[$i]>Edit Product</a>"; echo"</td>"; $i++; if($i<$arrlen) { echo "<td>"; echo "Furniture code: ".$furniturecode[$i]; echo "<br/>Furniture name: ".$furniturename[$i]; $furniturename[$i]=urlencode($furnitur ename[$i]); echo"<br/>"; echo "<img src=".$image[$i]." height=100px width=100px/>";
  • 65. FLORESTA FURNITURES echo"<br/>"; echo "price: ".$price[$i]; echo"<br/>"; echo "stock: " .$stock[$i]; echo"<br/>"; echo "Description: ".$description[$i]; $description[$i]=urlencode($description [$i]) echo"<br/>"; echo "<a href=editproductform.php?code=$furnit urecode[$i]&name=$furniturename[$i] &price=$price[$i]&stock=$stock[$i]&d escription=$description[$i]>Edit Product</a>"; echo"</td>"; }echo "</tr>"; } ?> </table> <?php } else{ echo "NO products of the selected category"; // echo "<a href=editproductform.php?code=$furnit urecode[$i]&name=$furniturename[$i] &price=$price[$i]&description=$descri ption[$i]&stock=$stock[$i]>Edit Product</a>"}; ?> </div> </div> </body></html>
  • 66. FLORESTA FURNITURES VIEWORDERSDETALIS.PHP <?php session_start(); $ordernumber=$_REQUEST["x"]; $conn=new PDO("mysql:host=localhost;dbname=fu rnituredb","root",null); $stmt=$conn->prepare("select ordersdetails.ordernumber,ordersdetails. furniturecode,furniture.furniturename, ordersdetails.price,ordersdetails.qty,orde rsdetails.amount from ordersdetails inner join furniture on ordersdetails.furniturecode=furniture.fur niturecode where ordersdetails.ordernumber=?"); $stmt->bindParam(1,$ordernumber); $stmt->execute(); $c=$stmt->rowcount(); //$ordernumber=array(); $furniturename=array(); $qty=array(); $furniturecode=array(); $amount=array(); $price=array(); $_SESSION["ordernumber"]=$ordernu mber; //store data into arrays if($c>0) { while($row=$stmt- >fetch(PDO::FETCH_ASSOC)) { //array_push($ordernumber,$row["order number"]);
  • 67. FLORESTA FURNITURES array_push($furniturecode,$row["furnit urecode"]); array_push($furniturename,$row["furnit urename"]); array_push($qty,$row["qty"]); array_push($price, $row["price"]); array_push($amount, $row["amount"]); } } $arrlen=count($furniturecode); ?> <html> <head> <title>View Orders Details</title> <?php include('headerlink.php'); ?> </head> <body> <?php include('adheader.php'); ?> <div style="margin:auto; width:40%; padding:10px;"> <h4 class="p-3 mb-2 bg-secondary text- white" style="text-align:center;">Placed Orders</h4> <?php if($c>0){ ?> <form method="POST" action="process.php"> <table class="table">
  • 68. FLORESTA FURNITURES <?php for($i=0;$i<$arrlen;$i++) { echo "<tr>"; echo "<td>"; echo "Order Number: ".$ordernumber; echo "<br/>"; echo" Furniture code: ".$furniturecode[$i]; echo "<br/>"; echo "Furniture Name : ".$furniturename[$i]; echo"<br/>"; echo "Quantity : ".$qty[$i]; echo"<br/>"; echo "Price: ".$price[$i]; echo"<br/>"; echo "Amount: ".$amount[$i]; echo"<br/>"; echo"</td>"; $i++; if($i<$arrlen) { echo "<td>"; echo "Order Number: ".$ordernumber; echo "<br/>"; echo "Furniturecode: ".$furniturecode[$i]; echo"<br/>"; echo" Furniture Name: ".$furniturename[$i]; echo "<br/>"; echo "Quantity : ".$qty[$i]; echo"<br/>"; echo "Price: ".$price[$i];
  • 69. FLORESTA FURNITURES echo"<br/>"; echo " Amount: ".$amount[$i]; echo"<br/>"; echo"</td>"; } echo "</tr>"; echo"<br/>"; } echo "<tr>"; echo "<td colspan='2'>"; echo "<input type='submit' name='btn' class='btn btn-dark' value='Process'/>"; echo "</td>"; echo "</tr>"; ?> </table> </form> <?php //echo "<a href=checkoutform.php>Check Out</a>"; ?> </div> <?php } else{ echo "NO Products of Selected Category"; } ?> </body> </html>
  • 70. FLORESTA FURNITURES VIEWPAYMENTS.PHP <?php session_start(); $conn=new PDO("mysql:host=localhost;dbname=furnituredb","root",null); $stmt=$conn->prepare("select * from payment"); //$stmt->bindParam(1,$_SESSION["customercode"]); $stmt->execute(); $c=$stmt->rowcount(); $ordernumber=array(); $paymentdate=array(); $amount=array(); $image=array(); //store data into arrays if($c>0) { while($row=$stmt->fetch(PDO::FETCH_ASSOC)) { array_push($ordernumber,$row["ordernumber"]); array_push($paymentdate,$row["paymentdate"]); array_push($amount,$row["amount"]); array_push($image,$row["image"]); } } $arrlen=count($ordernumber); ?> <html> <head> <title>View Payments</title> <?php include('headerlink.php') ?> </head> <body> <?php include('adheader.php')
  • 71. FLORESTA FURNITURES ?> <div style="margin:auto; width:60%; padding:50px;"> <h4 class="p-3 mb-2 bg-secondary text-white" style="text-align:center;">View Payments</h4> <?php if($c>0){ ?> <table border="1" class="table"> <?php for($i=0;$i<$arrlen;$i++) { //$sum=$sum+$net[$i]; echo "<tr>"; echo "<td>"; echo "Order Number: ".$ordernumber[$i]; echo "<br/>"; echo" Payment Date: ".$paymentdate[$i]; //$furniturename[$i]=urlencode($furniturename[$i]); echo"<br/>"; echo "Amount :".$amount[$i]; echo"<br/>"; echo "<img src=".$image[$i]." height=100px width=100px/>"; echo"<br/>"; echo"</td>"; $i++; if($i<$arrlen) { echo "<td>"; echo "Order Number:".$ordernumber[$i]; echo "<br/>"; echo "Payment Date: ".$paymentdate[$i]; echo"<br/>"; echo "Amount : ".$amount[$i]; echo"<br/>"; echo "<img src=".$image[$i]." height=100px width=100px/>"; echo"<br/>";
  • 72. FLORESTA FURNITURES echo"</td>"; } echo "</tr>"; } ?> </table> </div> <?php } else{ echo "NO Products of the Selected Category"; } ?> </body> </html> UPDATE CUSTOMIZEDORDER AMOUNT <?php //fetch posted data $amount=$_POST["amount"]; $ordernumber=$_POST["order"]; $msg=null; try{ $conn=new PDO("mysql:host=localhost;dbname=furnituredb","root",null); $conn->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION); $stmt=$conn->prepare("update customizedproduct set amount=?,status='Order placed' where id=?"); $stmt->bindParam(1,$amount); $stmt->bindParam(2,$ordernumber); $stmt->execute(); $c=$stmt->rowCount(); if($c==1){ $msg="Amount updated Successfully"; }else{ $msg="Amount Update is Failed"; }
  • 73. FLORESTA FURNITURES }catch(Exception $e){ $msg="Amount Update Failed. " .$e->getMessage(); }finally{ $conn=null; } //update in table ?> <html> <head> <title>view categories</title> <?php include('headerlink.php'); ?> </head> <body> <?php include('adheader.php'); ?> <?php echo $msg; ?> </body> </html> REPORT <?php $from=$_POST["fromday"]; $to=$_POST["today"]; $conn = new PDO("mysql:host=localhost;dbname=furnituredb","root",null); $stmt=$conn->prepare("select sum(net) as 'total',count(items) as 'items' from furnitureorder where orderdate between ? and ?"); $stmt->bindParam(1,$from); $stmt->bindParam(2,$to); $stmt->execute(); $row=$stmt->fetch(PDO::FETCH_ASSOC); $total=$row["total"]; $totalitems=$row["items"]; $conn=null;
  • 74. FLORESTA FURNITURES ?> <html> <head> <title></title> <?php include("headerlink.php"); ?> </head> <body> <?php include("adheader.php"); ?> <div style="margin:auto; width:40%; padding:10px;"> <h4 class="p-3 mb-2 bg-secondary text-white" style="text-align:center;"> Summary of earnings</h4> <table class="table"> <h5>Total amount of orders :<?php echo $total;?></h5> <h5>Total furniture solds :<?php echo $totalitems;?></h5> </div> </table> </body> </html>
  • 75. FLORESTA FURNITURES REPORTFORM <html> <head><title>Report</title> <?php include('headerlink.php'); ?> </head> <body> <?php include('adheader.php'); ?> <div style="margin:auto; width:40%; padding:1px;"> <h4 class="p-3 mb-2 bg-secondary text-white" style="text-align:center;">Report</h4> <form method="POST" action="report.php"> <table class="table"> <tr> <td>From Date</td> <td><input type="date" name="fromday" id="fromday"/> </td> </tr> <tr> <td>To Date</td> <td><input type="date" name="today" id="today"/></td> </tr> <tr> <td colspan="2"><input type="submit" class="btn btn-dark" name="btn" value="Report"/></td> </tr> </div> </form> </table> </body> </html>
  • 76. FLORESTA FURNITURES 9. TESTING 10. 1 SYSTEM TESTING 10.1.1 Introduction Testing is a process of executing a program with the indent of finding an error. Testing is a crucial element of software quality assurance and presents ultimate review of specification, design and coding. System Testing is an important phase. Testing represents an interesting anomaly for the software. Thus, a series of testing are performed for the proposed system before the system is ready for user acceptance testing. The code is tested at various levels in software testing. Unit, system and user acceptance testings are often performed. Testing Objectives • Testing is a process of executing a program with the intent of finding an error. • A good test case is one that has a probability of finding an as yet undiscovered error. • A successful test is one that uncovers an undiscovered error. Testing Principles •All tests should be traceable to end user requirements. •Tests should be planned long before testing begins. • Testing should begin on a small scale and progress towards testing in large. • Exhaustive testing is not possible. • To be most effective testing should be conducted by a independent third party. The primary objective for test case design is to derive a set of tests that has the highest livelihood for uncovering defects in software. To accomplish this objective two different categories of test case design techniques are used. They are: • White box testing. • Black box testing.
  • 77. FLORESTA FURNITURES White-Box Testing and Black-Box Testing White Box Testing: White box testing focus on the program control structure. Test cases are derived to ensure that all statements in the program have been executed at least once during testing and that all logical conditions have been executed. Black Box Testing: Black box testing is designed to validate functional requirements without regard to the internal workings of a program. Black box testing mainly focuses on the information domain of the software, deriving test cases by partitioning input and output in a manner that provides through test coverage. Incorrect and missing functions, interface errors, errors in data structures, error in functional logic are the errors falling in this category. Testing strategies: A strategy for software testing must accommodate low-level tests that are necessary to verify that all small source code segment has been correctly implemented as well as high-level tests that validate major system functions against customer requirements. There are two general strategies for testing software. They are as follows: Code Testing: This examines the logic of the program. To follow this test, cases are developed such that every path of program is tested. Specification Testing: Specification Testing examines the specification, starting what the program should do and how it should perform under various conditions. Then test cases are developed for each condition and combinations of conditions and to be submitted for processing. 10.1.2 Levels of Testing The stages of Testing Process are: Unit Testing: Individual components are tested to ensure that they operate correctly. Each component tested independently without other system components. Ex. Check for Username and Password with the table, after the next module is loaded. Integration Testing: Integration testing is a systematic technique for constructing the program structure while at the same time conducting test to uncover errors associated with interfacing.
  • 78. FLORESTA FURNITURES This testing is done using the bottom-up approach to integrate the software components of the software system in to functioning whole. System Testing: System testing is actually a series of different tests whose primary purpose is fully to exercise the computer-based system. The system tests that where applied are recovery testing and performance testing. Finally, a review or audit is conducted which is a final evaluation that occurs only after operating the system long enough for user to have gained a familiarity with it. System testing was done by the inspection team to verify that all the functionality identified is the software requirement specification has been implemented. Defects that crept in the system has been found defect free and is working well. System testing is concerned with interfaces, design logic, control flow recovery, procedures throughput, capacity and timing characteristics of the entire system. For blank field, alphabets, number and special character validation. Acceptance Testing: User acceptance of the system is the key factor for the success of any system. This is done by user. The system is given to the user and they test it with live data. Acceptance testing involves the planning and execution of functional test. Performance tests, stress tests in order to demonstrate that the implemented system satisfies its requirements. Two sets of acceptance test can be run, those developed by the customer. The system has been tested for its performance at unit level by the individuals through performance testing that is designed to test the run time performance of the software. The performance of the fully integrated system is tested and was found good.
  • 79. FLORESTA FURNITURES 10.2 Validating the tables Login Form Fig (10.2.1): login Fig (10.2.2): login The above screenshot is showing the error message that we should enter valid username and password.
  • 80. FLORESTA FURNITURES ACCOUNT HOLDER Table Adding a new value to the table Fig (10.2.3): Account Holder Login Form Fig (10.2.4): Logout
  • 81. FLORESTA FURNITURES BRANCH DETAILS Table Fig (10.2.5): Branch Details E-Letter Table Fig (10.2.6): E-Letter
  • 82. FLORESTA FURNITURES FD-DETAILS Table Fig (10.2.7): FD-Details NOTIFICATION TABLE Fig (10.2.8): Notification.
  • 83. FLORESTA FURNITURES Transaction Table Fig (10.2.9): Transaction USER-DETAILS Table Fig (10.2.10): User Details
  • 84. FLORESTA FURNITURES 10.3 Functional Testing Test No Test Case Expected Result Actual Result Result 1 Valid Username and Password It should display respective page according to user type. Respective Home is displayed Fig (10.2.1) 2 Invalid Username and Password It should give appropriate error message saying “Enter proper User-ID and Password” Error message displayed Fig (10.2.2) 3 Add/Update /Delete Member Details Add/Delete/Update action is taken. Added/Updated/Deleted Member message Displayed Fig (10.2.3) 4 Logout It should logout correctly and should not go to the home page Logout message displayed and login page is shown Fig (10.2.4) 5 Insert branch details Choose branch name and branch address and submit the values Values will be inserted in the table Fig (10.2.5) 6 Blank field while inserting It should give appropriate error message Display appropriate error message Fig (10.2.6)
  • 85. FLORESTA FURNITURES 7 Valid FD details should be provided It should insert the FD details into the database while inserting FD details is stored while inserting Fig (10.2.7) 8 Insert values without notification status and submit It must give an error message while inserting Display appropriate error message Fig (10.2.8) 9 Insert values without account holder name and submit It must give an error message while inserting It will display the error message Fig (10.2.9) 10 Enter invalid mobile number It should give appropriate message as “Mobile number entered is incorrect” It will display the error message Fig (10.2.10)
  • 86. FLORESTA FURNITURES 11. CONCLUSION Software is said to have attained its objective only when it need all requirements of the user, further the user himself is the person to judge the success of the system. Every attempt has been made to ensure that the system is fully functional and works effectively and efficiently. The system has been tested with simple data to cover all possible options and checked for all outputs. Since the system is flexible and modular, further modification of this packge can be easily incorporated. Importance of the system • Less manual work. • Increased efficiency. • Decreases the rate of errors. • It reduces the time consumption. • Quick (instant) result. 12.1 Books 12.BIBLIOGRAPHY 1. “Software Engineering”, by Ian Somerville, Sixth Edition, Pearson Education Ltd 2007. 2. “Web Programming”, by ‘Chris Bates’ Wiley Dreamtech India, 2nd Edition. 3. IEEE SRS Format. 4. Database Management Systems, by Navathe. 12.2 Websites 1. http://www.hotscripts.com/category/php/ for Php 2. http://en.wikipedia.org/wiki/PHP for Php. 3. http://www.mysql.com/click.php?e=35050 for MySql.