Marble-Tiles Report
Marble-Tiles Report
Marble-Tiles Report
1-PROJECS SYNOPSIS
1.1 INTRODUCTION:
Tiles and Marbles distribution is a web application to manage the sales and purchase of
the tiles and marbles from manufacturer to Buyers and customers. Any how the customer can buy
the tiles and marbles online and retailer can deliver to customers on time ,so that it is easy to
customer to get the tiles on his address without visiting the shop.
Upon ‘checkout’ the software calculates as total for the order including shipping and
handling postage, packing and GST taxes, if applicable.
Tiles and marbles is very important website used to assist people making purchases
and compare tiles and marbles online.
It provides the user a catalog of different tiles and marbles available in the system.
In order to purchase a cart is provided to the user.
The shopping cart application has been developed to allow business grows larger
and faster.
1|Page
Tiles and Marble Distribution
This site will let customers to view and order products online from any part of the
world.
The shopping cart is expanded permanently through new products and services in
order to offer a product portfolio corresponding to the market.
• To debug the existing system, remove procedures those cause data redundancy, make
navigational sequence proper. To provide information about audits on different level and
also to reflect the current work status depending on organization or auditor or date.
Required to build strong password mechanism.
The system makes the overall project management much easier and flexible.
There is no risk of data mismanagement at any level while the project development is under
process.
Report generation feature is provided using different kinds of reports like implementation’s of
GST etc.
2|Page
Tiles and Marble Distribution
1.5 PROCESSLOGIC
Input Output
1.6 Input:
Product selection
Customer details
Purchase detail
1.7 Output:
Billing and online payment facility
Process:
Billing and accounting
3|Page
Tiles and Marble Distribution
2-NET FRAMEWORK
Hypertext Preprocessor (PHP) lets you separate the dynamic part of your pages
from the static HTML. We simply write the regular html in the normal manner, using
whatever Web-page-building tools you normally use. We then enclose the code for the c
parts in special tags, most of which start with "<?php" and end with "?>".
We normally give a file. php. extension, Although what you write often looks more a
regular html file than a servlet, behind the scenes, the PHP page just gets converted to a
normal servlet, with the static html simply being printed to the output stream associated
with the servlet’s service method.
This is normally done the first time the page is requested, and developers can
simply request the page themselves when first installing it if they want to be sure that the
first real user doesn't get a momentary delay when the PHP page is translated to a servlet
and the servlet is compiled and loaded. Many Web servers let you define aliases that so
that a URL that appears to reference an html file really points to a servlet or PHP page.
My Sql:-
MYSQL is the world's most used open source Relational Database Management
System(RDBMS) that runs as a server providing multi-user access to a number of
databases. MYSQL is a popular choice of database for use in web applications, and is a
central component of the widely used LAMP open source web application software stack
(and other 'AMP stacks). LAMP is an acronym for "Linux, Apache, MySQL,
Perl/PHP/Python." Free-software-open source projects that require a full-featured
database management system often use MySQL.
4|Page
Tiles and Marble Distribution
MYSQL Workbench is available in two editions, the regular free and open source
Community Edition which may be downloaded from the MYSQL website, and the
proprietary Standard Edition which extends and improves the feature set of the
Community Edition. Third-party proprietary and free graphical administration applications
(or "front ends") are available that integrate with MYSQL and enable users to work with
database structure and data visually.
Features of HTML:-
· It is not a programming language.
· It is not a data description language.
· It is simple to understand and implement.
· HTML constructs a very easy to comprehend, and can be used effectively by
anybody.
· The methodology used by HTML to mark up information is independent of its
5|Page
Tiles and Marble Distribution
PORTABILITY:-
PHP is an open-source server side scripting language designed for Web
development toproduce dynamic web pages. It is one of the first developed server-side
scripting languages to be embedded into an HTML source document rather than calling an
external file to process data. The code is interpreted by a Web server with a PHP processor
module which generates the resulting Web page. It has also evolved to include a command
line interface capability and can be used in standalone graphical applications.
PHP can be deployed on most Web servers and also as a standalone shell on almost
every operating system and platform free of charge. PHP was a competitor to Microsoft's
Active Server Pages (ASP) server-side script engine and similar languages.
COMPOSITION:-
6|Page
Tiles and Marble Distribution
It was mentioned earlier that the PHP architecture could include reusable PHP
components. The architecture also allows for the embedding of a scripting language
directly into the PHP file. The components current supported include sessions and Serves.
As the default scripting language, PHP Pages use the C Programming language, JavaScript,
HTML. This means that scripting on the server side can take advantage of the full set of
capabilities that the C programming language offers.
PROCESSING:-
A PHP file is essentially an HTML document with PHP scripting or tags. It may have
associated components in the form of .class or it may not. The use of components is not
required.
The PHP file has a .php extension to identify it to the server as a Highpper text
Preprocessor Pages file. Before the page is served, the PHP syntax is parsed and processed
into a servlet on the server side. The servlet that is generated, outputs real content in
straight HTML for responding to the customer. Because it is standard HTML, the
dynamically generated response looks no different to the customer browser than a static
response.
ACCESS MODELS:-
PHP file may be accessed in at least two different ways:
A client request comes directly into a PHP page. In this scenario, suppose
the page accessed reusable "include.php" components that perform
particular well-defined computations like accessing a database. The page
uses such Beans to generate dynamic content and present it back to the
7|Page
Tiles and Marble Distribution
client.
A request comes through a servlet. The servlet generates the dynamic
content. To handle the response to the client, the servlet creates a file and
stores the dynamic content (sometimes called the result set) The servlet
then invokes a PHP.
PHP is best summarized as an embedded server-side web scripting language that
provides the developers with the capability to quickly and efficiently build web
applications.PHP bears a close resemblance, both syntactically and grammarly, to the
C programming language although developers haven’t been shy to integrate features from
a multitude of languages including Perl, java and C++.Several of these valuable borrowed
features include regular expressions, parsing, powerful array handling capabilities, an
object oriented methodology and vast database support.
PHP can also serve as a valuable tool for creating and managing a dynamic content,
embedded directly beside the likes of java script, Style sheets, WML (wireless markup
language) and many other useful languages .Providing a hundreds of predefined functions.
Extensive support is offered for graphic creation and manipulation, mathematical
calculations, ecommerce, and burgeoning technologies such as extensive markup language
(XML), open database connectivity (ODBC) and macromedia sock ware.
In this project we have implemented three-tier model, commands are sent to a "middle
tier" of Services, which then send SQL statements to the database.
Advantages of PHP:-
· PHP can generate dynamic page content
· PHP can create, open, read, write, and close files on the server
· PHP can collect form data
· PHP can send and receive cookies
· PHP can add, delete, modify data in your database
· PHP can restrict users to access some pages on your website
· PHP can encrypt data
· PHP runs on different platforms (Windows, Linux, Unix , Mac OS X, etc.)
· PHP is compatible with almost all servers used today (Apache, IIS, etc.).
8|Page
Tiles and Marble Distribution
Why PHP?
· PHP runs on different platforms (Windows, Linux, Unix, Mac OS X, etc.)
· PHP is compatible with almost all servers used today (Apache, IIS, etc.)
· PHP has support for a wide range of databases
· PHP is free. Download it from the official PHP resource:
· PHP is easy to learn and runs efficiently on the server side
· Web Browser
· HTML client extension ( active x controls and Netscape plugging)
9|Page
Tiles and Marble Distribution
DATA VALIDATION:-
PHP provides the means for basic data validation before it is sent to the server.
Whether the values entered are correct or not or whether all the fields in a form are filled
out or not can be checked before sending data to web server, if PHP is not used then data is
sent to web server, and the web server would response with a message that the data sent to
it is incorrect or incomplete. Thus, PHP ensures data validation and also reduces the
network traffic.
PHP Data Base Connectivity:
In an enterprise computing which is largely the black art of managing huge
databases? People associated with the enterprise need to be able to use and update the
data easily, quickly and securely.
PHP Data Base Connectivity is a standard SQL database access interface providing
uniform access to a wide range of relational databases. It also provides a common base on
which higher level tools and interfaces can be built.
<?php
$var=$_POST[""]
$con=mysql_connect("localhost","root","
"); mysql_select_db("guru",$con);
$sql="insert into tablename values()";
mysql_query($sql
); ?>
Mysql_select_db does the following things:
10 | P a g e
Tiles and Marble Distribution
CONNECTION:-
SENDING STATEMENT:-
This is the Http Session object associated with the request. Recall that sessions are
created automatically, so this variable is bound even if there was no incoming session
reference. The one exception is if you use the session attribute of the page directive to turn
sessions off, in which case attempts to reference the session variable cause errors at the
time the JSP page is translated into a servlet.
Access:-Create a PHP Web Application or Mobile Application using Net Beans Build and
run project, this will automatically launch the WAMP as default.
http://localhost/
11 | P a g e
Tiles and Marble Distribution
Directory structure:-
The typical and default directory hierarchy of a Tomcat installation comprises the
following:-
•Wamp finds the servlet based on the URL and the d eployment descriptor
(web.xml) and passes the request to the servlet
•The servlet computes a response
•Either: The servlet writes an HTML page containing the response
The servlet forwards the response to the JSP
The PHP embeds the response in an HTML page
• Wamp returns the HTML page to the user.
12 | P a g e
Tiles and Marble Distribution
Status:-
Wamp is available at the php.net binary downloads page. The wamp server is a PHP
based Web Application container that was created to run Servlets and PHP Pages in Web
applications. As part of wamp open source, it has nearly become the industry accepted
standard reference implementation for both the Servlets and PHP.
Wamp server includes the apache tomcat .Apache Tomcat (formerly under the
Apache Jakarta Project; Tomcat is now a top level project) is a web container developed at
the Apache Software Foundation.
It adds tools for configuration and management but can also be configured by
editing configuration files that are normally XML-formatted. Because Tomcat includes its
own HTTP server internally, it is also considered a standalone web server.
Tomcat is a web server that supports servlets and PHPs. Tomcat comes with the Jasper
compiler that compiles PHPs into servlets.The Tomcat servlet engine is often used in
combination with an Apache webserver or other web servers. Tomcat can also function as
an independent web server. Earlier in its development, the perception existed that
standalone Tomcat was only suitable for development environments and other
environments with minimal requirements for speed and transaction handling. However,
that perception no longer exists; Tomcat is increasingly used as a
standalone web server in high-traffic, high availability environments. Since its developers
wrote Tomcat in Java, it runs on any operating system that has a JVM.
Backend:
Overview of MYSQL
MYSQL is the world's most used open source Relational Database Management
system (RDBMS) that runs as a server providing multi-user access to a number of
databases. MySQL is a popular choice of database for use in web applications, and is a
central component of the widely used LAMP open source web application software stack
(and other 'AMP stacks). LAMP is an acronym for "Linux, Apache, MySQL,
Perl/PHP/Python." Free-software-open source projects that require a full-featured
13 | P a g e
Tiles and Marble Distribution
MySQL Workbench is available in two editions, the regular free and open
source
Community Edition which may be downloaded from the MySQL website, and the
proprietary
Standard Edition which extends and improves the feature set of the Community Edition.
Third-party proprietary and free graphical administration applications (or "front ends")
are available that integrate with MySQL and enable users to work with database structure
and data visually. Some well-known front ends, in alphabetical order, are:
· Adminer – a free MySQL front end written in one PHP script, capable of managing
multiple databases, with many CSS skins available.
· DaDaBIK – a customizable CRUD front-end to MySQL. W ritten in PHP. Commercial.
· DBEdit – a free front end for MySQL and other databases.
· dbForge GUI Tools — a set of tools for database man agement that includes separate
applications for schema comparison and synchronization, data comparison and
synchronization, and building queries.
· HeidiSQL – a full featured free front end that runs on Windows, and can connect to
local or remote MySQL servers to manage databases, tables, column structure, and
individual data records. Also supports specialised GUI features for date/time fields
and enumerated multiple-value fields.
LibreOffice Base - LibreOffice Base allows the creation and management of databases,
preparation of forms and reports that provide end users easy access to data. Like Access, it
can be used as a front-end for various database systems, including Access databases (JET),
14 | P a g e
Tiles and Marble Distribution
developed in PHP and is included in the LAMP stack, MAMP, XAMPP and WAMP
software bundle installers.
· SQLBuddy - a free Web-based front end, developed in PHP.
· Sequel Pro - a free, open-source front end for Mac OS X.
· SQLYog - a free community-developed UI for MySQL.
MySQL is written in C and C++. Its SQL parser is written in yacc and a home-
brewed lexical analyzer. Many programming languages with language-specific APIs
include libraries for accessing MySQL databases. These include MySQL
Connector/Net for integration with Microsoft's Visual Studio (languages such as C#
and VB are most commonly used) and the JDBC driver for Java. In addition, an ODBC
interface called MyODBC allows additional programming languages that support the
ODBC interface to communicate with a MySQL database, such as ASP or ColdFusion.
The HTSQL - URL-based query method also ships with a MySQL adapter, allowing
direct interaction between a MySQL database and any web client via structured
URLs.
Features:
· Cross-platform support
· Updatable Views
· Transactions with the In no DB, and Cluster storage engines; savepoints with
InnoDB. We can import and export the database
Why MySQL?
· Free as in Freedom - Released with GPL version 2 license (though a different license
can be bought from Oracle, see below)
· Cost - Free!
· Support - Online tutorials, forums, mailing list (lists.mysql.com), paid support
contracts.
· Speed - One of the fastest databases available.
· Functionality - supports most of ANSI SQL commands.
15 | P a g e
Tiles and Marble Distribution
Limitations
· Like other SQL databases, MySQL does not currently complitly with the full SQL
standard for some of the implemented functionality, including foreign key references
when using some storage engines other than the 'standard' InnoDB.
· Triggers are currently limited to one per action / timing, i.e. maximum one after
insert and one before insert on the same table. There are no triggers on views.
· MySQL, like most other transactional relational databases, is strongly limited by
hard disk performance. This is especially true in terms of write latency. Given the
recent appearance of very affordable consumer grade SATA interface Solid-state
drives that offer zero mechanical latency, a fivefold speedup over even an eight drive
RAID array can be had for a smaller investment.
SELECT statement
This statement is used to select certain attributes from a Table.
Format: SELECT <ATTRIBUTES> FROM <TABLENAME> WHERE CONDITION;
INSERT statement
Enables the user to enter data directly into the Table
Format: INSERT INTO TABLENAME (ATTRIBUTE NAMES…)
UPDATE statement
Enables to modify the data already stored in the table.
Format: UPDATE TABLENAME
SET COLUMNNAME=VALUE
WHERE CONDITION
DELETE statement
WHERE CONDITION
View
A view is a personalized presentation of data from one or more tables. View does not
contain or store data, but they take data from the tables on which they are based, called
base tables. As the tables the views can also be queried, updated, inserted and
Deleted, with some restrictions.
SELECT FIELDS
FROM TABLENAME
WHERE CONDITION
Indexes
An index is an optional structure associated to tables that increases the data recovery
performance. An index is created for one or more columns of a table. After being created,
an index is automatically updated and used by ORACLE.
17 | P a g e
Tiles and Marble Distribution
· Database Designers: These would be the people who analyze the kind of
data that is to be stored in the database, and would design the structure of
the database.
· Database Administrator: More popularly called the DBA, this would be a
person who monitors operations on a database and ensures that it is
maintained efficiently.
· Application Developer: This category of people takes care of writing
programs for accessing the database.
· End User: Entry of data and manipulation of the data is taken care of by
the end user.
18 | P a g e
Tiles and Marble Distribution
3-PROJECT SUBJECT
3.1 MODULES
3.1.1 ADMIN:
Admin can add or update information .When admin login, he saw the customer’s database,
means how many users are authenticated to this website and how many users are transact everyday, and
newly items are inserting into products.
Shipping details: Admin is going to view payment details that is entered by owner as to know whether
his going pay by cash or card.
Purchase products: Admin is going purchase the product necessary for his store (like granites,
tiles, raw materials).
View stock reports: Make an overview of stock for the day , for month and for year.
3.1.2 STOCK:
Wheather you check the stock available or not that all include in this module
Product availability
19 | P a g e
Tiles and Marble Distribution
Online delivery
Online delivery: If product is available if suppose customer want to buy product online that time
give to only cash on delivery and free shipping charges.
3.1.3 PRODUCT:
This module contains product name, and related image, and cost of its. Like tiles, marbles,
granites, stone etc… Whatever customer wants from the tiles and marbles distributions.
Order: Customer can order as per his requirements, product of his choice.
View bills: The login customer can View bills for his orders after the supply is been
made by the supplier.
Make payments: Customer has to enter the payment method like cash on delivery.
3.1.4 CUSTOMER:
These are the one who purchases the products Customer can view the brands, shows and
should select the required product based on their requirement. Customer can place order view the
invoice.
View products
View samples
order
View bill
Make payments
View products: Whatever product want to wish to buy a customer that all
Product will be displayed in this.
View samples: Customer view images by just clicking on the name of the category.
Make Order: Customer can order as per his requirements, product of his choice.
View bills: The login customer can View bills for his orders after the supply is been
20 | P a g e
Tiles and Marble Distribution
3.1.5 LOGICSTIC:
To track product location .If it dispatched and the date of its delivery.
21 | P a g e
Tiles and Marble Distribution
HARDWARE REQUIREMENTS
22 | P a g e
Tiles and Marble Distribution
It provides high level of security using different protocols like https etc.
Scope
The Scope of the project is to reach the maximum customers in short time and getting
orders from customers.
Generation of report by autonomous.
Definitions and Abbreviations
SRS - Software Requirement Sspecification.
References
The references are:
www.mysql.com
23 | P a g e
Tiles and Marble Distribution
www.php.nets
http://www.wampserver.com/en/
https://getbootstrap.com
www.Javascript.com/
Overview
The following subsections provide the complete overview of the specifications requirements documentation for
the project is given below.
In this module we define the overall description of the Web application Tiles and Marbels Distribution System
Like the importance of the product, what are the user characteristics, what are the general constraints and
assumptions and dependencies.
Specific Requirements
The specific requirements are –
24 | P a g e
Tiles and Marble Distribution
Functionality
This software is totally self-contained and works relatively as efficient as other packages related to the Product catagories. It
provides simple database rather than complex ones for high requirements and it provides good and easy graphical user
interface to new as well as experienced users of the computers
The system shall enable user to select multiple options on the screen to search.
The system shall display all the matching products based on the search
The system shall display only 10 matching result on the current screen.
25 | P a g e
Tiles and Marble Distribution
The system shall enable user to navigate between the search results.
The system shall notify the user when no matching product is found on the search.
The system shall allow user to add/remove products in the shopping cart.
The system shall display the current tracking information about the order.
The system shall allow user to select the payment method for order.
The system shall notify the user about any changes made to the order.
26 | P a g e
Tiles and Marble Distribution
The system shall enable the user to enter their reviews and ratings.
Usability
Graphical User Interface:
The system shall provide a uniform look and feel between all the web pages.
The system shall provide a digital image for each product in the product catalog.
Accessibility
The system shall provide handicap access.
The system shall provide for replication of databases to off-site storage locations.
The system shall provide RAID V Disk Stripping on all database storage disks.
The system shall provide a contractual agreement with an internet service provider who can
provide 99.999% availability through their network facilities onto the internet.
Performance
The product shall be based on web and has to be run from a web server.
27 | P a g e
Tiles and Marble Distribution
The product shall take initial load time depending on internet connection strength which also
depends on the media from which the product is run.
Security
Data Transfer:
The system shall use secure sockets in all transactions that include any confidential customer
information.
The system shall automatically log out all customers after a period of inactivity.
The system shall confirm all transactions with the customer’s web browser.
The system shall not leave any cookies on the customer’s computer containing the user’s
password.
Data Storage
The customer’s web browser shall never display a customer’s password. It shall always be
echoed with special characters representing typed characters.
The system’s back-end servers shall never display a customer’s password. The customer’s
password may be reset but never shown.
Supportability
Configuration Management Tool
The source code developed for this system shall be maintained in configuration management
tool.
Design Constraints
Standard Development Tools
The system shall be built using a standard web page development tool that conforms to either
IBM’s CUA standards or Microsoft’s GUI standards.
The computers must be equipped with web browsers such as Internet explorer.
28 | P a g e
Tiles and Marble Distribution
The product must be stored in such a way that allows the client easy access to it.
Purchased Components
Not Applicable
Interfaces
There are many types of interfaces as such supported by the E-Store software system namely;
User Interface, Software Interface and Hardware Interface.
The protocol used shall be HTTP.
The Port number used will be 80.
There shall be logical address of the system in IPv4 format.
Software Interfaces
The user interface for the software shall be compatible to any browser such as Internet
Explorer, Mozilla or Netscape Navigator by which user can access to the system.
The user interface shall be implemented using any tool or software package like
wordpress, Front Page etc.
Hardware Interfaces
Since the application must run over the internet, all the hardware shall require to connect
internet will be hardware interface for the system. As for e.g. Modem, WAN – LAN,
Ethernet Cross-Cable.
Licensing Requirements
Not Applicable.
Applicable Standards
It shall be as per the industry standard.
29 | P a g e
Tiles and Marble Distribution
Data Flow Diagrams are a graphical tool used to describe and analyze the movement of data
through a system. DFD’s are used to capture the essential feature of both existing real system and
future physical implementation of the system.
The DFD is a graphical technique that depicts the information flow and the transforms that are
applies as data move from input to the output .The DFD is also known as Bubble Chart or Data Flow
Graphs or Context diagram.
The data flow diagram may be used to present a system or software at any level of abstraction. A
fundamental system model or a context model represents the entire software elements as a single
bubble with input and output data indicated by incoming and outgoing arrows respectively.
30 | P a g e
Tiles and Marble Distribution
Zero
Data store notation it might refer to Level
DFD:
database tables or files
DB
Tiles and
Admin
Details of tails & marbles
Marbles Stock
Purchase details Order details
Customer Distribution
Invoice
Transaction
Processing details
On details
31 | P a g e
Tiles and Marble Distribution
32 | P a g e
Tiles and Marble Distribution
33 | P a g e
Tiles and Marble Distribution
6-ER-DAIGRAM
s-city
c-
pswd pswd
name
reg-date
nam
id e 1 emai
c-id l
1
ADMIN Checks CUSTUMER
1 for
login s-
address
Purchase
M product
addre
SHOPPING CART Purcha
ssdet se
ail
M 1
Onam
p-id catagory
e Or-id pnam
STOCK e
34 | P a g e
Tiles and Marble Distribution
255
Customer name Varchar Not null
255
Password Varchar Not null
0
Creation Date Timestamp Not null
255
UpdationDate Varchar Not null
20
Category Name Int Not null
50
Category Description Varchar Not null
20
Creation Date Int Not null
35 | P a g e
Tiles and Marble Distribution
20
UpdationDate Decimal Not null
255
Name Varchar Not null
255
Email Varchar Not null
11
Contact no Bigint Not null
255
Password Varchar Not null
255
shipping State Varchar Not null
255
shipping City Varchar Not null
11
shippingPincode Int Not null
20
billing Address Longtext Not null
255
billing State Varchar Not null
255
billing City Varchar Not null
11
billingPincode Int Not null
255
updationDate Varchar Not null
36 | P a g e
Tiles and Marble Distribution
80 Not null
CustomerId Int
Foreign key
80 Not null
ProductId Int
Foreign key
80
Quantity Int Not null
80
Payment Method Varchar Not null
80
Order Status Varchar Not null
90 Not null
OrderId Varchar
Foreign key
90
Status Varchar Not null
90
Remark Varchar Not null
37 | P a g e
Tiles and Marble Distribution
11 Not null
Product Id Int
Foreign key
11
Quality Int Not null
11
Price Int Not null
11
Value Int Not null
255
Name Varchar Not null
255
Summary Varchar Not null
38 | P a g e
Tiles and Marble Distribution
11 Not null
CategoryId Int
Foregin key
11 Not null
SubcategoryId Int
Foreign key
255
Product Name Varchar Not null
255
Product Company Varchar Not null
11
Product Price Int Not null
255
Product Description Varchar Not null
255
ProductImage1 Varchar Not null
255
ProductImage2 Varchar Not null
255
ProductImage3 Varchar Not null
11
Shipping Charge Int Not null
255
Product Availability Varchar Not null
255
Updation Date Varchar Not null
39 | P a g e
Tiles and Marble Distribution
30 Not null
Id Int
Primary key
50 Foreign key
Category Id Varchar
Not null
50
Subcategory Varchar Not null
255
UpdationDate Varchar Not null
255
user Email Varchar Not null
16
Use rip Binary Not null
255
Logout Varchar Not null
18
Status Int Not null
8-SCREENSHORTS
HOME PAGE:
40 | P a g e
Tiles and Marble Distribution
PRODUCT IMAGE:
41 | P a g e
Tiles and Marble Distribution
CART PAGE:
LOGIN PAGE :
42 | P a g e
Tiles and Marble Distribution
43 | P a g e
Tiles and Marble Distribution
BILLINGADDRESS:
SHIPING ADDRESS :
44 | P a g e
Tiles and Marble Distribution
ORDER TABLE:
45 | P a g e
Tiles and Marble Distribution
PYMENT METHOD :
46 | P a g e
Tiles and Marble Distribution
TRACKING HISTORY:
TRACK ORDER:
47 | P a g e
Tiles and Marble Distribution
<?php
session_start();
error_reporting(0);
include('includes/config.php');
$id=intval($_GET['id']);
if(isset($_SESSION['cart'][$id])){
$_SESSION['cart'][$id]['quantity']++;
48 | P a g e
Tiles and Marble Distribution
}else{
$query_p=mysql_query($sql_p);
if(mysql_num_rows($query_p)!=0){
$row_p=mysql_fetch_array($query_p);
header('location:index.php');
}else{
$message="Product ID is invalid";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
49 | P a g e
Tiles and Marble Distribution
50 | P a g e
Tiles and Marble Distribution
<link href='http://fonts.googleapis.com/css?family=Roboto:300,400,500,700'
rel='stylesheet' type='text/css'>
</head>
<body class="cnt-home">
<header class="header-style-1">
<?php include('includes/top-header.php');?>
<?php include('includes/main-header.php');?>
<?php include('includes/menu-bar.php');?>
</header>
<div class="container">
<div class="row">
51 | P a g e
Tiles and Marble Distribution
<?php include('includes/side-menu.php');?>
<!-- ==========================================
SECTION – HERO ========================================= -->
<div class="full-width-slider">
<div class="full-width-slider">
<div class="full-width-slider">
52 | P a g e
Tiles and Marble Distribution
<div class="full-width-slider">
</div>
<!-- ==============================================
INFO BOXES ============================================== -->
<div class="info-boxes-inner">
<div class="row">
<div class="info-box">
<div class="row">
53 | P a g e
Tiles and Marble Distribution
<div class="col-xs-2">
</div>
<div class="col-xs-10">
</div>
</div>
</div>
<div class="info-box">
<div class="row">
<div class="col-xs-2">
</div>
<div class="col-xs-10">
</div>
</div>
54 | P a g e
Tiles and Marble Distribution
</div>
<?php
while ($row=mysql_fetch_array($ret))
# code...
?>
<div class="products">
55 | P a g e
Tiles and Marble Distribution
<div class="product">
<div class="product-image">
<div class="image">
<div class="description"></div>
<div class="product-price">
<span class="price">
56 | P a g e
Tiles and Marble Distribution
<?php } ?>
</div>
<div class="product-slider">
<?php
while ($row=mysql_fetch_array($ret))
# code...
?>
<div class="products">
<div class="product">
57 | P a g e
Tiles and Marble Distribution
<div class="product-image">
<div class="image">
<div class="description"></div>
<div class="product-price">
<span class="price">
</span>
58 | P a g e
Tiles and Marble Distribution
<?php } ?>
</div>
<div class="product-slider">
<?php
while ($row=mysql_fetch_array($ret))
?>
<div class="products">
<div class="product">
<div class="product-image">
<div class="image">
59 | P a g e
Tiles and Marble Distribution
</div>
</div>
<div class="description"></div>
<div class="product-price">
<span class="price">
</span>
</div>
</div>
</div>
</div>
</div>
<?php } ?>
60 | P a g e
Tiles and Marble Distribution
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<section class="section">
<?php
while ($row=mysql_fetch_array($ret))
?>
<div class="products">
<div class="product">
<div class="product-image">
61 | P a g e
Tiles and Marble Distribution
<div class="image">
<div class="description"></div>
<div class="product-price">
<span class="price">
</div>
</div>
</div>
</div>
62 | P a g e
Tiles and Marble Distribution
</div>
<?php }?>
</div>
</section>
</div>
<div class="col-md-6">
<section class="section">
<!--<h3 class="section-title">Floor-tiles</h3>-->
<?php
while ($row=mysql_fetch_array($ret))
?>
<div class="products">
<div class="product">
<div class="product-image">
<div class="image">
63 | P a g e
Tiles and Marble Distribution
<div class="description"></div>
<div class="product-price">
<span class="price">
</div>
</div>
</div>
</div>
</div>
<?php }?>
</div>
</section>
</div>
64 | P a g e
Tiles and Marble Distribution
</div>
</div>
<!--<h3 class="section-title">Stone</h3>-->
<?php
while ($row=mysql_fetch_array($ret))
# code...
?>
<div class="item">
<div class="products">
<div class="product">
<div class="product-micro">
<div class="product-image">
<div class="image">
65 | P a g e
Tiles and Marble Distribution
<div class="zoom-overlay"></div>
</a>
<div class="product-info">
<div class="product-price">
<span class="price">
Rs. <?php echo htmlentities($row['productPrice']);?>
</span
</div>
66 | P a g e
Tiles and Marble Distribution
</div>
</div>
</div><?php } ?>
</div>
</section>
<?php include('includes/brands-slider.php');?>
</div>
</div>
<?php include('includes/footer.php');?>
<script src="assets/js/jquery-1.11.1.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/bootstrap-hover-dropdown.min.js"></script>
<script src="assets/js/owl.carousel.min.js"></script>
<script src="assets/js/echo.min.js"></script>
<script src="assets/js/jquery.easing-1.3.min.js"></script>
<script src="assets/js/bootstrap-slider.min.js"></script>
<script src="assets/js/jquery.rateit.min.js"></script>
<script src="assets/js/bootstrap-select.min.js"></script>
67 | P a g e
Tiles and Marble Distribution
<script src="assets/js/wow.min.js"></script>
<script src="assets/js/scripts.js"></script>
<script src="switchstylesheet/switchstylesheet.js"></script>
<script>
$(document).ready(function(){
$(".changecolor").switchstylesheet( { seperator:"color"} );
$('.show-theme-options').click(function(){
$(this).parent().toggleClass('open');
return false;
});
});
$(window).bind("load", function() {
$('.show-theme-options').delay(2000).trigger('click');
});
</script>
</body>
</html>
MY CART CODE:
<?php
session_start();
68 | P a g e
Tiles and Marble Distribution
error_reporting(0);
include('includes/config.php');
if(isset($_POST['submit'])){
if(!empty($_SESSION['cart'])){
if($val==0){
unset($_SESSION['cart'][$key]);
}else{
$_SESSION['cart'][$key]['quantity']=$val;
if(isset($_POST['remove_code']))
if(!empty($_SESSION['cart'])){
foreach($_POST['remove_code'] as $key){
unset($_SESSION['cart'][$key]);
69 | P a g e
Tiles and Marble Distribution
if(isset($_POST['ordersubmit']))
if(strlen($_SESSION['login'])==0)
header('location:login.php');
else{ $quantity=$_POST['quantity'];
$pdd=$_SESSION['pid'];
$value=array_combine($pdd,$quantity);
header('location:payment-method.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
70 | P a g e
Tiles and Marble Distribution
<meta charset="utf-8">
<title>My Cart</title>
71 | P a g e
Tiles and Marble Distribution
<link href='http://fonts.googleapis.com/css?family=Roboto:300,400,500,700'
rel='stylesheet' type='text/css'>
<!-- HTML5 elements and media queries Support for IE8 : HTML5 shim and Respond.js-->
<!--[if lt IE 9]>
<script src="assets/js/html5shiv.js"></script>
<script src="assets/js/respond.min.js"></script>
<![endif]-->
</head>
<body class="cnt-home">
72 | P a g e
Tiles and Marble Distribution
<header class="header-style-1">
<?php include('includes/top-header.php');?>
<?php include('includes/main-header.php');?>
<?php include('includes/menu-bar.php');?>
</header>
<div class="breadcrumb">
<div class="container">
<div class="breadcrumb-inner">
<li><a href="#">Home</a></li>
</ul>
<div class="container">
<div class="shopping-cart">
<div class="table-responsive">
73 | P a g e
Tiles and Marble Distribution
<?php
if(!empty($_SESSION['cart'])){
?>
<?php
$pdtid=array();
$query = mysql_query($sql);
$totalprice=0;
$totalqunty=0;
$GST=0;
$Grandtotal=0;
if(!empty($query)){
while($row = mysql_fetch_array($query)){
$quantity=$_SESSION['cart'][$row['id']]['quantity'];
$subtotal= $_SESSION['cart'][$row['id']]
['quantity']*$row['productPrice']+$row['shippingCharge'];
$totalprice += $subtotal;
$_SESSION['qnty']=$totalqunty+=$quantity;
array_push($pdtid,$row['id']);
74 | P a g e
Tiles and Marble Distribution
//print_r($_SESSION['pid'])=$pdtid;exit;
?>
<thead>
<tr>
</tr>
<tbody>
<tr>
<td class="cart-image">
75 | P a g e
Tiles and Marble Distribution
</a>
</td>
<td class="cart-product-name-info">
$_SESSION['sid']=$pd;
?></a></h4>
<div class="row">
<div class="col-sm-4">
</div>
<div class="col-sm-8">
$num=mysql_num_rows($rt);
?>
<div class="reviews">
</div>
<?php } ?>
</div>
</td>
76 | P a g e
Tiles and Marble Distribution
<td class="cart-product-quantity">
<div class="quant-input">
<div class="arrows">
</div>
</div>
</td>
</tr>
<script type="text/javascript">
$(document).ready(function() {
$('#Button1').click(function() {
location.reload();
77 | P a g e
Tiles and Marble Distribution
});
});
</script>
<?php } }
$_SESSION['pid']=$pdtid;
?>
<tfoot>
<tr>
<td colspan="7">
<div class="shopping-cart-btn">
<span class="">
</span>
</td>
</tr>
</tfoot>
</div>
78 | P a g e
Tiles and Marble Distribution
<thead>
<tr>
<th>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div class="form-group">
while ($rt=mysql_fetch_array($qry)) {
echo htmlentities($rt['shippingState']);
echo htmlentities($rt['shippingPincode']);
?>
79 | P a g e
Tiles and Marble Distribution
</div>
</td>
</tr>
</div>
<thead>
<tr>
<th>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div class="form-group">
while ($rt=mysql_fetch_array($qry)) {
80 | P a g e
Tiles and Marble Distribution
echo htmlentities($rt['billingState']);
echo htmlentities($rt['billingPincode']);
} ?>
</div>
</td>
</tr>
</div>
<thead>
<tr>
<th>
<div class="cart-grand-total">
</div>
</th>
</tr>
<tr>
<?php
81 | P a g e
Tiles and Marble Distribution
$gst=($totalprice%9)*10;
$Grandtotal=$totalprice+$gst+$gst;
?>
<th>
<div class="cart-grand-total">
</div>
</th>
</tr>
<tr>
<th>
<div class="cart-grand-total">
</div>
</th>
</tr>
<tr>
<th><div class="cart-grand-total">
</div>
82 | P a g e
Tiles and Marble Distribution
</th>
</tr>
<tbody> <tr>
<td>
</div>
</td>
</tr>
</table>
<?php } else {
}?>
</div> </div>
div>
</form>
</div>
</div>
<?php include('includes/footer.php');?>
83 | P a g e
Tiles and Marble Distribution
<script src="assets/js/jquery-1.11.1.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/bootstrap-hover-dropdown.min.js"></script>
<script src="assets/js/owl.carousel.min.js"></script>
<script src="assets/js/echo.min.js"></script>
<script src="assets/js/jquery.easing-1.3.min.js"></script>
<script src="assets/js/bootstrap-slider.min.js"></script>
<script src="assets/js/jquery.rateit.min.js"></script>
<script src="assets/js/bootstrap-select.min.js"></script>
<script src="assets/js/wow.min.js"></script>
<script src="assets/js/scripts.js"></script>
<script src="switchstylesheet/switchstylesheet.js"></script>
<script>
$(document).ready(function(){
$(".changecolor").switchstylesheet( { seperator:"color"} );
$('.show-theme-options').click(function(){
$(this).parent().toggleClass('open');
return false;
});
});
84 | P a g e
Tiles and Marble Distribution
$(window).bind("load", function() {
$('.show-theme-options').delay(2000).trigger('click');
});
</script>
<script>var tot=0;
$(".arrow1").click(function(){
$('#grandTotal').html(tot) ;
});</script>
</body>
</html>
10-TESTING
Unit Testing
Individual components are tested to ensure that they operate correctly. Each component is tested
independently without other system components.
Module Testing
Module is a collection of dependent components such as an objects class, an abstract data type or
some looser collection of procedure and functions. A module encapsulates related components so can be
tested without other system modules.
85 | P a g e
Tiles and Marble Distribution
Subsystem Testing
This phase involves testing collection of modules, which have been integrated into subsystems.
Subsystems may be independently designed and implemented. The most common problems that arise in
the large software system are subsystems interface mismatches. The subsystem test process should
therefore concentrate on the detection of interface errors by rigorously exercising these interface.
System Testing
The subsystems are integrated to make up the entire system .the testing process is concerned with
finding errors which result from unanticipated interactions between subsystems and system components.
It is also concerned with validating that the system is functional and non-functional requirements.
When we give username and password if it is correct then it will get logged into the respective module.
If anyone of them is wrong it won’t get logged, we can overcome this with the help of white box testing
i.e. for example if username or password is wrong then go to invalid password and we get hint question
an hint answer just insert the required values in that field Then it will show our password for that
particular module, by this we can overcome our problems.
Example:
86 | P a g e
Tiles and Marble Distribution
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 satisfesits requirements. Two set so acceptance test can be , those developed
by the customer
87 | P a g e
Tiles and Marble Distribution
Integration Testing:
Top down integration starts with the main routine and immediate subordinate routines in the
system structure. After this top level “skeleton” has been thoroughly tested, it becomes the test harness
for it’s immediately subordinate routines. Top-down integration requires the use for program tubs to
stimulate the effect of lower-level routines that are called by those being tested.
Example:
88 | P a g e
Tiles and Marble Distribution
Enter the Username and Login page will display. Invalid username
Password.
Invalid password
If the text feld is not matched Login page will display. Please match the requested
with the given pattern . format. Please enter exactly 10
89 | P a g e
Tiles and Marble Distribution
digits.
CONCLUSION
To conclude the description about the project. The project developed using PHP and
MySql is based on there quirement specification of the user and the analysis of the existing
system,with flexibility for future enhancement for a web application which helps in the
management of shop activities, and provide good attractive Graphical User Interface(GUI) to the
user.
11- BIBLIOGRAPHY
90 | P a g e
Tiles and Marble Distribution
Books
1.“SoftwareEngineering”,by IanSomerville,SixthEdition,PearsonEducationLtd
2007.
nd
2. “Web Programming”, by‘Chris Bates’ WileyDreamtechIndia, 2 Edition.
3. IEEE SRSFormat.
Websites:-
https://www.w3schools.com/
https://www.lynda.com/MySQL-tutorials/PHP-MySQL-Essential-Training-2-Build-
CMS/587675-2.html
http://www.phpbuddy.com/
https://dev.mysql.com/doc/en/
91 | P a g e