Professional Documents
Culture Documents
SR. NO.
1 INTRODUCTION 1
4 TESTING 8—9
7 DECSCRIPTION 42—79
8 CONCLUSION 80
9 REFERENCES 56
Diagram Index
1 Class diagram 10
2 Case diagram 11
3 Activity diagram 15
3 Component diagram 17
4 Deployment diagram 17
5 Activity diagram 15
ABSTRACT
This is a small scale project for Online shopping system. The basic idea is that
customer’s can buy products using online. The administrator can enter the name and
password and can create an account and then generate the receipt of the products
purchased.
The Online Women Shopping system enables vendors to set up online shops,
customers to browse through the shops, and a system administrator to approve and reject
requests for new shops and maintain lists of shop categories. Also on the agenda is
designing an online shopping site to manage the items in the shop and also help
customers purchase them online without having to visit the shop physically.Our online
shopping mall will use the internet as the sole method for selling goods to its consumers.
Shopping will be highly personalized and the mall will provide lower prices than most
competitors.
a web shopping cart that web enables the day-day sales functions.It includes
The aim of this project is on the online shopping application it is developed using HTML5,
Javascript, CSS, PHP. The application is very useful where the buyer can directly buy the
products from home via internet on mobile or system. The application reduces lot of work load
for customer as well as owner. The transaction of money is completed in real time system.
Some of the online shops are EBAY Amazon. By this online shopping the product is directly
delivered to customer home. Online shopping is the process consumers go through to purchase
products or Services over the Internet. An online shop, e-shopping, e-store, internet shop, web
shop , web store , online store, or virtual store evokes the physical analogy of buying products
or services at a bricks-and-mortar retailer or in a mall. The metaphor of an online catalog is also
used, by analogy with mail order catalogs. All types of stores have retail web sites, including
those that do and do not also have physical storefronts and paper catalogs. Online shopping is a
type of electronic commerce used for business-to-business(B2B) and business-to-
consumer (B2C) transactions. The term Web shop also refers to a place of business where web
development, web hosting and other types of web related activities take place (Web refers to the
World Wide Web and "shop" has a colloquial meaning used to describe the place where one's
occupation is carried out).
CHAPTER 2
SOFTWARE REQUIREMENT AND ANALYSIS
CUSTOMER ROLE:
The customer’s can login to the System. He/She can view his/her product details and buy
their product. The customer can just view the information whereas he/she could not make
changes in the database.
ADMINISTRATOR ROLE:
The administrator plays a vital role in the Online shopping system. The administrator
controls the entire database. The report of the product is generated by the administrator itself.
The main role of the administrator is to safeguard the database and can add/delete the products
from the database.
2.2.Project Scope
The supplementary specification applies to online shopping system. This
specification defines the non-functional requirement of the system such as:
Functionality:
Since it stand alone application, one or more user may use it at a time.
Usability:
Desktop interface
Windows 98/2000/XP/7/8
Technology:
Front End : HTML5,Java Script ,PHP
Back End : xampp
Database : MySql
Reliability:
The system is available during online time only .
Performance:
The performance depends on hardware specification
2.3. Objectives
The purpose of this document is to define the requirements of Online shopping system.
This supplementary specification lists the requirements that are not readily captured in the use
case model. Supplementary specification and the use case model capture a complete set of
requirement of the system.
CHAPTER 3
DATA FLOW DAIGRAMS
Use Case Diagram
Class Diagram
A class diagram describes the types of objects in the system and the various kinds of
static relationships that exist among them.i.e.,A graphical representation of a static view on
declarative static elements. A class is the description of a set of objects having similar attributes,
adminis
login add item
name : variant new
age : variant user name : variant new item name : variant new
city : variant new password : variant new item no : variant
quantity : variant
add items() add items()
view()
Sequence Diagram
purchasing
purchasing again
Collaboration Diagram
administrat
1: add the item
or
add item
customer
5: purchasing again
3: purchasing
view item purchase
FIG3:COMPONENT DIAGRAM
Server
Client Application
(Database)
Server
FIG4:DEPLOYMENT DIAGRAM
CHAPTER 4
TESTING
Definition:
Software testing is a critical element of software quality assurance and represents the ultimate
review of specification, design and coding. “Testing is a process of executing a program with
intent of finding errors”. Test cases prepared should not be very easy or very difficult.
Objective:
The objective of the testing is as follows:
To design different tests that uncovers the errors with minimum time and cost.
To check whether the software functions appear to be working according to the
specifications given by the user.
Types of Testing:
The testing techniques used for the system are as follows:
1. Usability Testing:
This testing is done for checking whether the given system is usable and acceptable for
customers. The transactions and operations can be carried out easily. This testing is done
through GUI testing i.e. forms; layouts are easily understandable to the customer.
Customer can easily fill up all the details.
2.Compliance Testing:
This testing is done to check system’s portability. The effort required to transfer a program from
one hardware configuration or software system environment to another.
3.Exhaustive Testing:
It performs sufficient testing to evaluate every possible path and condition in the application
system. This is the only test method that guarantees proper functioning of the application system.
4. Stress Testing:
Stress testing helps in finding out the product capability to handle a certain load and when the
system will break down due to overload of records. Loading of record can be steadily increased
to see when the system will fail.
7.2 Implementation
Implementation is a procedure of converting the proposed system into an operational one. The
objective of implementation was to carry out the conversion with minimum cost, minimum risk
and user satisfaction. The approach of direct changeover was used for implementation. This
implies the introduction of a completely new system without any reference to any previous
similar system that exists or may not exist. This methods help in implementing a system directly
as there are no chances of data loss or data conversion from one system to another.
Implementation needs only the required hardware and software configuration on the client side
which is there on to implement the system.
The implementation plan structured the implementation activity. Before implementing the
system, a check should be made on whether the required software and hardware are
CHAPTER 5
SOURCE CODE
Index.php
<?php
session_start();
error_reporting(0);
include('includes/config.php');
// Code user Registration
if(isset($_POST['submit']))
{
$name=$_POST['fullname'];
$email=$_POST['emailid'];
$contactno=$_POST['contactno'];
$password=md5($_POST['password']);
$query=mysqli_query($con,"insert into users(name,email,contactno,password)
values('$name','$email','$contactno','$password')");
if($query)
{
echo
"<script>alert('You are successfully register');</script>";
}
else{
echo "<script>alert('Not register something went worng');</script>";
}
}
// Code for User login
if(isset($_POST['login']))
{
$email=$_POST['email'];
$password=md5($_POST['password']);
$query=mysqli_query($con,"SELECT * FROM users WHERE email='$email' and
password='$password'");
$num=mysqli_fetch_array($query);
if($num>0)
{
$extra="my-cart.php";
$_SESSION['login']=$_POST['email'];
$_SESSION['id']=$num['id'];
$_SESSION['username']=$num['name'];
$uip=$_SERVER['REMOTE_ADDR'];
$status=1;
$log=mysqli_query($con,"insert into userlog(userEmail,userip,status) values('".
$_SESSION['login']."','$uip','$status')");
$host=$_SERVER['HTTP_HOST'];
$uri=rtrim(dirname($_SERVER['PHP_SELF']),'/\\');
header("location:http://$host$uri/$extra");
exit();
}
else
{
$extra="login.php";
$email=$_POST['email'];
$uip=$_SERVER['REMOTE_ADDR'];
$status=0;
$log=mysqli_query($con,"insert into userlog(userEmail,userip,status)
values('$email','$uip','$status')");
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']),'/\\');
header("location:http://$host$uri/$extra");
$_SESSION['errmsg']="Invalid email id or Password";
exit();
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta -->
<meta
charset="utf-8">
<meta http-
equiv="Content-Type" content="text/html; charset=UTF-8">
<meta
name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta
name="description" content="">
<meta
name="author" content="">
<meta
name="keywords" content="MediaCenter, Template, eCommerce">
<meta
name="robots" content="all">
<title>Shopping
Portal | Signi-in | Signup</title>
<!-- Bootstrap
Core CSS -->
<link
rel="stylesheet" href="assets/css/bootstrap.min.css">
<!--
Customizable CSS -->
<link
rel="stylesheet" href="assets/css/main.css">
<link
rel="stylesheet" href="assets/css/green.css">
<link
rel="stylesheet" href="assets/css/owl.carousel.css">
<link
rel="stylesheet" href="assets/css/owl.transitions.css">
<!--<link
rel="stylesheet" href="assets/css/owl.theme.css">-->
<link
href="assets/css/lightbox.css" rel="stylesheet">
<link
rel="stylesheet" href="assets/css/animate.min.css">
<link
rel="stylesheet" href="assets/css/rateit.css">
<link
rel="stylesheet" href="assets/css/bootstrap-select.min.css">
<!-- Demo
Purpose Only. Should be removed in production -->
<link
rel="stylesheet" href="assets/css/config.css">
<link
href="assets/css/green.css" rel="alternate stylesheet" title="Green color">
<link
href="assets/css/blue.css" rel="alternate stylesheet" title="Blue color">
<link
href="assets/css/red.css" rel="alternate stylesheet" title="Red color">
<link
href="assets/css/orange.css" rel="alternate stylesheet" title="Orange color">
<link
href="assets/css/dark-green.css" rel="alternate stylesheet" title="Darkgreen color">
<!-- Demo
Purpose Only. Should be removed in production : END -->
<!--
Icons/Glyphs -->
<link
rel="stylesheet" href="assets/css/font-awesome.min.css">
<!-- Favicon --
>
<link
rel="shortcut icon" href="assets/images/favicon.ico">
<script type="text/javascript">
function valid()
{
if(document.register.password.value!= document.register.confirmpassword.value)
{
alert("Password and Confirm Password Field do not match !!");
document.register.confirmpassword.focus();
return false;
}
return true;
}
</script>
<script>
function userAvailability() {
$("#loaderIcon").show();
jQuery.ajax({
url: "check_availability.php",
data:'email='+$("#email").val(),
type: "POST",
success:function(data){
$("#user-availability-status1").html(data);
$("#loaderIcon").hide();
},
error:function (){}
});
}
</script>
</head>
<body class="cnt-home">
<!--
============================================== HEADER
============================================== -->
<header class="header-style-1">
<!--
============================================== TOP MENU
============================================== -->
<?php include('includes/top-header.php');?>
<!-- ============================================== TOP MENU : END
============================================== -->
<?php include('includes/main-header.php');?>
<!--
============================================== NAVBAR
============================================== -->
<?php include('includes/menu-bar.php');?>
<!-- ============================================== NAVBAR : END
============================================== -->
</header>
<li><a
href="home.html">Home</a></li>
<li
class='active'>Authentication</li>
</ul>
</div>
<!-- Sign-in -->
<div
class="form-group">
<label
class="info-title" for="exampleInputEmail2">Email Address <span>*</span></label>
<input
type="email" class="form-control unicase-form-control text-input" id="email"
onBlur="userAvailability()" name="emailid" required >
<span
id="user-availability-status1" style="font-size:12px;"></span>
</div>
<div class="form-group">
<label
class="info-title" for="contactno">Contact No. <span>*</span></label>
<input
type="text" class="form-control unicase-form-control text-input" id="contactno"
name="contactno" maxlength="10" required >
</div>
<div class="form-group">
<label
class="info-title" for="password">Password. <span>*</span></label>
<input
type="password" class="form-control unicase-form-control text-input" id="password"
name="password" required >
</div>
<div class="form-group">
<label
class="info-title" for="confirmpassword">Confirm Password. <span>*</span></label>
<input
type="password" class="form-control unicase-form-control text-input" id="confirmpassword"
name="confirmpassword" required >
</div>
<button
type="submit" name="submit" class="btn-upper btn btn-primary checkout-page-button"
id="submit">Sign Up</button>
</form>
<span
class="checkout-subtitle outer-top-xs">Sign Up Today And You'll Be Able To : </span>
<div
class="checkbox">
<label
class="checkbox">
Speed
your way through the checkout.
</label>
<label
class="checkbox">
Track your
orders easily.
</label>
<label
class="checkbox">
Keep a record of all your purchases.
</label>
</div>
</div>
<!-- create a new account -->
</div><!-- /.row --
>
</div>
<?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 type="text/javascript" src="assets/js/lightbox.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;
});
});
$
(window).bind("load", function() {
$('.show-
theme-options').delay(2000).trigger('click');
});
</script>
<!-- For demo
purposes – can be removed on production : End -->
</body>
</html>
CHAPTER 6
SCREEN OUPUT
CHAPTER 7
CONCLUSION
Technology has made significant progress over the years to provide consumers a better online
shopping experience and will continue to do so for years to come. With the rapid growth of
products and brands, people have speculated that online shopping will overtake in-store
shopping. While this has been the case in some areas, there is still demand for brick and mortar
stores in market areas where the consumer feels more comfortable seeing and touching the
product being bought. However, the availability of online shopping has produced a more
educated consumer that can shop around with relative ease without having to spend a large
amount of time. In exchange, online shopping has opened up doors to many small retailers that
would never be in business if they had to incur the high cost of owning a brick and mortar store.
At the end, it has been a win-win situation for both consumer and sellers.
CHAPTER 8
REFRENCES & BIOGRAPHY :
The following books were referred during the analysis and execution phase of the project
Books Referred: