Beruflich Dokumente
Kultur Dokumente
1. INTRODUCTION
The project entitled “ SPICE KART ”- Online Spice Selling System is a complete system
for management of sales, purchases. This system will also help you in creation of bills,
payment receipts, and item names with dimensions and price such as MRP and DP. This
software has the power to regulate, dominate, or manipulate Services and items, written
specifically for the Windows® desktop environment. This project envisages the use of
MYSQL to process database so that data from them are embedded in the SQL Server. The
PHP as the front end, which is processed to manipulate SQL server for the processes like
addition, update, deletion etc. Apart from this, it is assured that the user friendliness of the
system will help the end user simplify the processes involved in the system
In modern world all fields of endeavour have been touched by the computer revolution.
The advantage of computers does not end just with speed. The accuracy, need for less
space for data storage security from discrepancies etc are just a few of its innumerable
advantages.
The project deals with web based shopping. Users of the site can login to the site by
using their user id and password. After login they can choose different products they
want. Inside the site, they feel, they are in a Shopping Mall. They can buy the products as
much as they want. In side the site we are using a shopping cart to enable easy shopping.
First the users can choose the products and then they can customize the quantity and
products.
The main objective of “Online Spice Selling System” is to develop a user friendly
computerized system to manage all the manual works. It reduces the difficulties of
purchasing products from the shops. This will help the customers to buy the products
using only mouse clicks and they can receive the products at their home by VPP. They
had to pay the money only that time.
The system should be error free &System should possess maximum efficiency
2. SYSTEM ANALYSIS
The existing system operates manually.A wide variety of reports should also be
maintained by the management in order to carry out the activities in an efficient and
effective manner. In such circumstances the staff has to work hard for the preparation
of manual report. Information is meaningful only if it is available in time. There may
be a chance of occurring errors at the time of manual preparation.
The management cannot obtain all the information in time. The company
administrators and the managers have to wait till the report work is completed.
Finally the report should be submitted to the higher-level people manually. The
networking effect of making information instantly available is not possible with the
existing system.
Give details about the type of works and the amount per square feet
Advantages:
The main advantage of the proposed system is user convenience. In this system, each
module is built in such a way that the user needs to enter relevant data. The system is
secured because only authorized users can enter into the system using the username and
at each field and also by providing proper messages at each step. This helps in reducing
2.3.1 Introduction
The developing system must be justified by cost and benefit. Criteria to ensure that
effort is concentrated on project, which will give best, return at the earliest. The
following are some of the important financial questions asked during preliminary
investigation:
It defines all data objects that are processed within the system, the relationship
between the data objects, and other information that is pertinent to the relationships.
The entity –relationship diagram(ERD) addresses these issues and represents all data
objects that are entered, stored, transformed, and produced within an application. Data
modeling tools provide a software engineer with the ability to represent data object,
their characteristics, and their relationships. Used primarily for large database
applications and other information systems projects, data modeling tools provide an
automated means for creating comprehensive entity relation diagrams, data object
dictionaries, and related models.
Level 1.2
ER Diagram:
3. SYSTEM DESIGN
Once the WebApp Architecture has been established and the component of
the architecture has been identified, you must define navigation path way that enable
users to access WebApp content and functions. To accomplish this, you should
(1) Identify the semantics of navigation for different users of the site.
Admin’s pages
Customers’s pages
Customer home page
Customer profile page
Customer product page
Customer cart page
Product viewing page
Company’s pages
The SPICE KART contains a Login page from there each users are directed to
their corresponding home pages according to their user type. In the administrator’s
home page administrator can view all current customers, companies, products, and add
product categories. Also he is able to frequent analysis on the site to find which all
categories of products have the highest selling count. Using this data he is able to create
offers on a product combo’s. He is also responsible for activating, deactivating and
deleting the offers that he creates.
The user who initially comes into the site is a guest who is able to view all the
products but cannot purchase the products. The guest is able to login or register to the
site. A guest can either register as a customer or a company. But in order for a company
to be registered the admin have to approve the company. This will be done once a
company registers into the site and the admin contacts the company to review the
company status and details the company have entered. A customer is able to purchase
the products in the site once he/she login to the site. The customer is given the ability to
update his/her details like address, contact etc in the event of any changes occurring in
their life. After purchase of a product the customer is liable to rate the products (out of
10) so that the admin can see which all products has the highest ratings.
Once a company is approved by the company the company is able to add their
products to the site of sale. The company is able to delete or update the products as they
wish. They are also able to update the company details. They are also capable of
viewing the orders on their products and also view which of their products are selling
faster.
(2) Provide computation or data processing capability that is appropriate for the
WebApp’s business domain,
To achieve these capabilities you must design and construct program component that are
identical in form to software components for traditional software.Component level
design occurs after the first iteration of architectural design has been completed .At this
stage, the overall data and program structure of the software has been established. The
intent is to translate the design model into operational software. The component level
design represents the software in a way that allows you to review the details of the
design for correctness and consistency with other design representations.
cart
tbl_category
tbl_customer
tbl_item
tbl_login
tbl_paymet
tbl_sale
tbl_stock
tbl_subcategory
id int(11) No customer id
2. tbl_category
3.tbl_login
id int(20) No Customer id
5.tbl_item
7.tbl_sales
8.tbl_stock
Subcategory
sc_name varchar(20) No
name
3.4.1 Introduction
It is tied to the goals established for a web App, the content to be presented, the
user who will visit and the navigation philosophy that has been established. As an
architectural designer, you must identify content architecture and WebApp Architecture.
Content architecture focuses on the manner in which content objects are structured for
presentation and navigation. WebApp Architecture addresses the manner in which the
application is structured to manage user interaction, handle internal processing tasks,
effect navigation and present content.
CUSTOMER:
Customers are required to register on the website before they can do the
buying of products. Customers have ability to browse and search product by name and
categories, adding products to the shopping basket for check out and register order.
Non-registered users can visit and view the products. But they cannot do the buying
before registration.
SHOPPING CART:
Shopping cart module tries to simulate the working of a store where user can
view each design, color, size and price of the product available. The items they like can
be added to the logical cart and can be removed if not required later. Billing and other
payment related matters are handled here.
ADMINISTRATION:
Administrators are responsible for approving and removing the companies from
the website. Different categories of items are added by administrator. The admin is
responsible for producing offers by analysing apriori data. The offer’s created can then
be activated, deactivated and deleted according to the wish of the admin.
1. User Management
Input:-
New customer details
New company details
Updating Company Details.
Updating Customer details
Processing:-
Information of Companies.
Information of Customers.
In this module the product for different companies are managed. It consist of
adding, updating and deleting of product and their details.
Input:-
Edit Information.
Processing :-
Add Details.
Edit Details.
Delete Product.
Output :-
3. Shopping
The users can browse product hosted by various companies and can buy them if
they like it.
Input :-
Order management consist of calculation of cost for users and the billing
procedures.
Input :-
Billing Information
Billing Address
Processing :-
Process Billing.
Output :-
Input :-
Purchase Information
Processing :-
Apriori Algorithm
Output :-
Strong Rules
4. SYSTEM SPECIFICATION
Web Server
Operating System :MS Windows Server 2008 or Higher
PHP is an intuitive, server side scripting language. Like any other scripting
language it allows developers to build logic into the creation of web page content and
handle data returned from a web browser. PHP also contains a number of extensions that
make it easy to interact with databases, extracting data to be displayed on a web page and
storing information entered by a web site visitor back into the database.
MySQL isthe world's second most widely used open-source relational database
management system (RDBMS). It is named after co-founder Michael Widenius's
daughter, My. The SQL phrase stands for Structured Query Language.
The MySQL development project has made its source code available under the
terms of the GNU General Public License, as well as under a variety of proprietary
agreements. MySQL was owned and sponsored by a single for-profit firm, the Swedish
company MySQL AB, now owned by Oracle Corporation.
For commercial use, several paid editions are available, and offer additional
functionality. Applications which use MySQL databases include: TYPO3, MODx,
Joomla, WordPress, phpBB, MyBB, Drupal and other software. MySQL is also used in
many high-profile, large-scale websites, including Wikipedia, Google (though not for
searches), Facebook, Twitter, Flickr, and YouTube.
5. SYSTEM DEVELOPMENT
CUSTOMER:
Customers are required to register on the website before they can do the
buying of products. Customers have ability to browse and search product by name and
categories, adding products to the shopping basket for check out and register order.
Non-registered users cannot visit and view the products. and they cannot do the buying
before registration.
SHOPPING CART:
Shopping cart module tries to simulate the working of a store where user can
view each design, color, size and price of the product available. The items they like can
be added to the logical cart and can be removed if not required later. Billing and other
payment related matters are handled here.
ADMINISTRATION:
Administrators are responsible for approving and removing the companies from
the website. Different categories of items are added by administrator. The admin is
responsible for producing offers by analysing apriori data. The offer’s created can then
be activated, deactivated and deleted according to the wish of the admin.
1. User Management
The User Management module deals with the registration of different companies
and Customers. It includes adding, deleting, and updating of company details and
customer details. The Administrator has the ability to approve or delete a company
through this module.
2. Product Management
In this module the product for different companies are managed. It consist of
adding, updating and deleting of product and their details.
The users can browse product hosted by various companies and can buy them if
they like it. This includes the process of adding the products to the logical cart. The
customer is then able to remove the products he do not want and redefine the cart. After
this he is able to undergo payment for the items he bought and finalise the transaction.
Order management consist of calculation of cost for users and the billing
procedures.
6. SYSTEM TESTING
6.1. TESTING
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 high probability finding an undiscovered error.
A successful test is one that uncovers an undiscovered error.
Testing is vital to the success of the system. System testing makes a logical
assumption that if all parts of the system are subject to variety of tests on-line response,
volume, stress, recovery and security and usability tests. A series of tests are performed
before the system is ready for user acceptance testing.
Test Procedure
The test case consists of different inputs with the expected results in each case.
During testing, the Tester records the Actual Test Results against the expected ones and if
found matching, the test case is assigned as a Pass. Otherwise, the Test Case is assigned
as a Fail and orders for Rework and Retest.
Stop Criteria
The strategy for unit testing is that unit would be the standard approach for
performing unit testing, unless specifically stated. The unit test cases would have to be
created before coding. The unit test cases should be created for all public methods of
classes developed, unless specifically stated. Unit testing should be done for each class as
soon as its development is completed. Irrespective of methodology used, developers
should ensure code coverage specified in MTP is met during unit testing. Unit testing of a
developer’s code should be mandatory be performed before integration of code. Interface
testing can be considered complete, when unit testing of the business interfaces is
completed. Inter-subsystem integration and Client-server integration should not be done
unless interface testing is completed.
Advantages:
Detailed Strategy
Server side
The unit test cases would be created for the public methods of all server side
classes. Unit Test Cases need not be created for Query Constructor and VO classes.
Interface testing would be done once all classes for a business method are unit tested and
developed. Unit testing of delegate classes in isolation is not required. Testing can be
done after integrating with server. Server developers should do this testing.
Client side
Client side testing should be done before integration with server code. Dummy
delegates are to be used for the testing all flows as per use case have to be tested. The data
displayed in the screen correctly represents the data got from the delegate. The correct
Screens/ Pop ups/ Messages are displayed. The testing should also check correctness
against the GUI Specification of the corresponding screen.
Bottom-up integration
Low level modules are combined into clusters (sometimes called builds) that
perform a specific software sub-function.
A driver (a control program for testing) is written to coordinate test case input
and output.
The cluster is tested.
Drivers are removed and clusters are combined moving upward in the program
structure.
Validation testing is done on the Virtual Classroom system to check whether all
the data are filled appropriately in the various text boxes and combo boxes. In this
Software all the validations are done using java script. The software validates each data
provided through the various forms and gives appropriate messages accordingly so that
the user will not be able to proceed without giving relevant information. The system was
given various wrong values to see the proper display of error messages.
Enter correct user name and Load login page again with ‘invalid’
2. Passed
wrong password message
Select the ‘User’ option from the given Displays the form for User
1 list Passed
registration
Enter values to the fields which are not
corresponding to the database fields Displays a message tells the
2 (eg: non-letters to the candidate name, values entered are non -type Passed
phone numbers containing non-
numerals, etc)
Select the product from the user home Displays the product viewing
1 page form for User for adding Passed
product to the cart
Displays a message tells the
Enter the quantity in the quantity box values entered are non -type
2 Passed
box
All data enter correctly and click product added to the cart
4 Passed
ADD. successfully
Select the ‘add product’ option from Displays the form for adding
1 the given list Passed
products
Enter values to the fields which are not Displays a message tells the
1 Passed
corresponding to the database fields values entered are non –type
INTEGRATION TESTING
After the completion of testing each individual module, the modules are linked
together. Now it should work properly apart from working individually. This linking
of modules often referred as interfacing. Data loss may occur at the time of
interfacing. This should be carefully avoided because this will affect the other
modules also. Integration testing is systematic technique for constructing the program
linkage while conducting tests at the same time to uncover errors associated with that
interface. The tests were carried out each time a module was linked.
SYSTEM TESTING
5 Make sure that during operation, incorrect inputs will be deleted. Passed
Testing Strategies
A test is a set of data that the system will process as normal input.
However, the data are created with the express intent of determining whether the system
will process them correctly. There are two general strategies for testing website. Code
Testing have to test cases that result in executing every instruction in the program or a
module; but is every path through the program is tested.
7. SYSTEM IMPLEMENTATION
The implementation is the final stage and it is an important phase. It involves the
individual programming; system testing, user training and the operational running of
developed proposed system that constitutes the application subsystems. One major task of
preparing for implementation is education of users, which should really have been taken
place much earlier in the project when they were being involved in the investigation and
the design.
8. RESULTS
The customers are able to buy the items in the website and all payment related
information is given to the customer as well as the company. The companies are able to
add their products to the site and the orders on their products are viewed by the
company along with the customer details. The administrator is able to frequently
analyse which all categories of products gets sold together and he is able to create
effective offers for the customers.
9. CONCLUSION
The system had been developed in an attractive dialog fashion. So user with
minimum knowledge about computers can also operate the system easily to conclude
this, we thank all people who help us to complete this project successfully.
For the future enhancement, this system includes several things. This system
currently does not give any printable reports. The system can be modified to give
printed reports of activities and transactions. We can set up a more efficient way for
users to communicate within the website.
The main thing is that, currently when a hardware or software reaching its
warranty period, it does not giving any information about it. So in future it can be
integrated with the system. All the customer problems can record for future references.
And also we can implement a SMS or mail server for providing confirmation to the
customers about the status of requests. It also has to implement a mail server for
providing feedback to the site. Another thing is to produce invoices of the purchasing
items. It is very essential in organization management.
ANNEXURE 1
1.home page
2.CustomerRegistration page
4. Contact us
6. Admin_home
8. edit or delete
ANNEXURE 2
SAMPLE CODES
DB connection :
<?php
mysql_connect("localhost","root","");
mysql_select_db("dbspicekart");
?>
<!DOCTYPE html>
<html lang="zxx">
<head>
<title> Spice kart</title>
<!--booststrap-->
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" media="all">
<!--//booststrap end-->
<!-- font-awesome icons -->
<link href="css/fontawesome-all.min.css" rel="stylesheet" type="text/css" media="all">
<!-- //font-awesome icons -->
<!-- For Clients slider -->
<link rel="stylesheet" href="css/flexslider.css" type="text/css" media="all" />
<!--flexs slider-->
<link href="css/JiSlider.css" rel="stylesheet">
<!--Shoping cart-->
<link rel="stylesheet" href="css/shop.css" type="text/css" />
<!--//Shoping cart-->
<!--stylesheets-->
</div>
</div>
<nav class="navbar navbar-expand-lg navbar-light">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-center"
id="navbarSupportedContent">
<ul class="navbar-nav ">
<li class="nav-item active">
<a class="nav-link" href="index.php">Home <span class="sr-
only">(current)</span></a>
</li>
<li class="nav-item ">
<a class="nav-link" href="about.php">About <span class="sr-only"></a>
</li>
<li class="nav-item ">
<a class="nav-link" href="contact.php">Contact Us <span class="sr-only"></a>
</li>
<li class="nav-item">
<a href="login.php" class="nav-link" style="color: black">Login</a>
</li>
<li class="nav-item">
<a href="cregister.php" class="nav-link" style="color: black">Sign up</a>
</li>
</ul>
</ul>
</div>
</nav>
</div>
<!-- Slideshow 4 -->
<div class="slider text-center">
<div class="callbacks_container">
<ul class="rslides" id="slider4">
<li>
<div class="slider-img one-img" style="background-image: url(spices/spices-1.jpg)">
<div class="container">
<div class="slider-info ">
<h5>Explore the world of<br>Spices</h5>
<div class="bottom-info">
<p>We have the world's best spicesjust for you </p>
</div>
<div class="outs_more-buttn">
<a href="about.php">Read More</a>
</div>
</div>
</div>
</div>
</li>
<li>
<div class="slider-img two-img" style="background-image: url(spices/1234.jpg)">
<div class="container">
<section class="subscribe">
<div class="container-fluid">
<div class="row"></div>
</div>
</section>
</div>
</footer>
<!-- //footer -->
<!--js working-->
<script src='js/jquery-2.2.3.min.js'></script>
<!--//js working-->
<!-- cart-js -->
<script src="js/minicart.js"></script>
<script>
toys.render();
if (this.subtotal() > 0) {
items = this.items();
});
</script>
<!--// responsiveslides banner-->
<!--slider flexisel -->
<script src="js/jquery.flexisel.js"></script>
<script>
$(window).load(function() {
$("#flexiselDemo1").flexisel({
visibleItems: 3,
animationSpeed: 3000,
autoPlay:true,
autoPlaySpeed: 2000,
pauseOnHover: true,
enableResponsiveBreakpoints: true,
responsiveBreakpoints: {
portrait: {
changePoint:480,
visibleItems: 1
},
landscape: {
changePoint:640,
visibleItems:2
},
tablet: {
changePoint:768,
visibleItems: 2
});
</script>
<!-- //slider flexisel -->
<!-- start-smoth-scrolling -->
<script src="js/move-top.js"></script>
<script src="js/easing.js"></script>
<script>
jQuery(document).ready(function ($) {
$(".scroll").click(function (event) {
event.preventDefault();
$('html,body').animate({
scrollTop: $(this.hash).offset().top
}, 900);
});
});
</script>
<!-- start-smoth-scrolling -->
<!-- here stars scrolling icon -->
<script>
$(document).ready(function () {
var defaults = {
containerID: 'toTop', // fading element id
containerHoverID: 'toTopHover', // fading element hover id
scrollSpeed: 1200,
});
</script>
<!-- //here ends scrolling icon -->
<!--bootstrap working-->
<script src="js/bootstrap.min.js"></script>
<!-- //bootstrap working-->
</body>
</html>
Registration page :
<!DOCTYPE html>
<html lang="zxx">
<head>
<title>Customer registration</title>
<!--booststrap-->
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" media="all">
<!--//booststrap end-->
<!-- font-awesome icons -->
<link href="css/fontawesome-all.min.css" rel="stylesheet" type="text/css" media="all">
<!-- //font-awesome icons -->
<!--Shoping cart-->
<link rel="stylesheet" href="css/shop.css" type="text/css" />
<div class="container-fluid">
<div class="hedder-up row">
<div class="col-lg-3 col-md-3 logo-head">
<h1><a href="index.php"><img src= "pic/1111.png" width=125
height=100/></a> <a class="navbar-brand" href="index.php"> Spice
kart</a></h1>
</div>
Al-Ameen college edathala 67
Project Report 2019 SPICE KART
</div>
</div>
<nav class="navbar navbar-expand-lg navbar-light">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-center"
id="navbarSupportedContent">
<ul class="navbar-nav ">
<li class="nav-item ">
<a class="nav-link" href="index.php">Home <span class="sr-only"></a>
</li>
<li class="nav-item">
<a href="about.php" class="nav-link">About</a>
</li>
</ul>
</div>
</nav>
</div>
</div>
<!--//headder-->
<!-- banner -->
<div class="inner_page-banner one-img" style="background-image: url(pic/new/pexels-
photo-1086719.jpeg)">
</div>
<!--//banner -->
<!--contact -->
<section class="contact py-lg-4 py-md-3 py-sm-3 py-3"><!--//contact-map -->
</section>
<div class="modal-body" align="justify">
<div class="container py-lg-5 py-md-4 py-sm-4 py-3">
<h3 class="title text-center mb-lg-5 mb-md-4 mb-sm-4 mb-3" >Create new
account</h3>
<div class="contact-list-grid">
<form action="#" method="post">
<div class=" agile-wls-contact-mid" style="color:black">
<div class="form-group contact-forms">
First name
<input type="text" class="form-control" name="c_fname" pattern="[A-Za-z]+"
placeholder="First name" style="width: 530px; height: 40px; color: black" required>
</div>
<div class="form-group contact-forms">
<p>
Last name
<input type="text" class="form-control" name="c_lname" pattern="[A-Za-z]+"
placeholder="Last name" style="width: 530px; height: 40px;" required>
</p>
</div>
<div class="form-group contact-forms">
User name
<input type="username" class="form-control" name="username"
placeholder="Username" style="width: 530px; height: 40px;" required>
</div>
<div class="form-group contact-forms">
Password
<div align="left">
<label>Date of Birth
<div align="left">
<input type="date" name="c_dob" placeholder="Date of Birth" value="date"
style="width: 530px; height: 40px; color: black" required>
</label>
</div>
<div align="left">
<p>
<label>Gender</label>
<label>
</div>
</form>
<div align="center">
<button type="submit" class="btn btn-block sent-butnn align-middle" name="submit"
value="submit" style="width: 530px; height: 40px;" >Sign Up</button>
</div>
</div>
</div>
$c_fname=$_REQUEST['c_fname'];
$c_lname=$_REQUEST['c_lname'];
$c_hname=$_REQUEST['c_hname'];
$c_street=$_REQUEST['c_street'];
$c_city=$_REQUEST['c_city'];
$c_gender=$_REQUEST['c_gender'];
$c_phn=$_REQUEST['c_phn'];
$c_email=$_REQUEST['c_email'];
$c_dob=$_REQUEST['c_dob'];
$username=$_REQUEST['username'];
$password=$_REQUEST['password'];
$cpassword=$_REQUEST['cpassword'];
$res=mysql_query($rs);
$rst=mysql_fetch_array($res);
if($rst['cnt']>0)
{
clr();
echo"<script>alert('Already Registerd');</script>";
header("Location:cregister.php");
}
else if($rst['c']>0)
{
echo"<script>alert('Username already taken');</script>";
}
else if($password!=$cpassword)
{
echo"<script>alert('Password mismatch');</script>";
}
else
{
$qry="insert into
tbl_customer(c_fname,c_lname,c_hname,c_street,c_city,c_gender,c_phn,c_email,c_dob,u
sername,password)values('$c_fname','$c_lname','$c_hname','$c_street','$c_city','$c_gend
er',$c_phn,'$c_email','$c_dob','$username','$password')";
}
function clr()
{
$c_fname="";
$c_lname="";
$c_hname="";
$c_street="";
$c_city="";
$c_gender="";
$c_phn="";
$c_email="";
$c_dob="";
$username="";
$password="";
}
?>
<!--js working-->
<script src='js/jquery-2.2.3.min.js'></script>
<!--//js working-->
<!-- cart-js -->
<script src="js/minicart.js"></script>
<script>
toys.render();
if (this.subtotal() > 0) {
items = this.items();
var defaults = {
containerID: 'toTop', // fading element id
containerHoverID: 'toTopHover', // fading element hover id
scrollSpeed: 1200,
easingType: 'linear'
};
$().UItoTop({
easingType: 'easeOutQuart'
});
});
Product page:
<!DOCTYPE html>
<html lang="zxx">
<head>
<title>Product</title>
<!--booststrap-->
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" media="all">
<!--//booststrap end-->
<!-- font-awesome icons -->
<link href="css/fontawesome-all.min.css" rel="stylesheet" type="text/css" media="all">
<!-- //font-awesome icons -->
<!--Shoping cart-->
<link rel="stylesheet" href="css/shop.css" type="text/css" />
<!--//Shoping cart-->
<!--stylesheets-->
<link href="css/style.css" rel='stylesheet' type='text/css' media="all">
<!--//stylesheets-->
<link href="//fonts.googleapis.com/css?family=Sunflower:500,700" rel="stylesheet">
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,600,700"
rel="stylesheet">
</head>
Al-Ameen college edathala 78
Project Report 2019 SPICE KART
<?php
include "connect.php";
?>
<body>
<!--headder-->
<div class="header-outs" id="home">
<div class="header-bar">
<div class="container-fluid">
<div class="hedder-up row">
<div class="col-lg-3 col-md-3 logo-head">
<h1><img src= "pic/1111.png" width=125 height=100/> <a class="navbar-
brand">Spice Kart</a></h1>
</div>
</div>
</div>
<nav class="navbar navbar-expand-lg navbar-light">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-center"
id="navbarSupportedContent">
<ul class="navbar-nav ">
<li class="nav-item ">
<a class="nav-link" href="customer.php">Home <span class="sr-
only">(current)</span></a>
</li>
</ul>
<!--contact -->
<section class="contact py-lg-4 py-md-3 py-sm-3 py-3">
<?php
if($rs['qty']>0)
{
$sta="AVAILABLE";
}
// else
// {
// $sta="NOT AVAILABLE";
// }
?>
<br>
<?php
echo"<align=center>Rs".$rate;
?>
<br>
<?php
echo"<align=center>".$sta;
Al-Ameen college edathala 81
Project Report 2019 SPICE KART
echo"</div>";
// echo $sta;
}
?>
</form>
<script>
function msg()
{
var reg=document.URL;
alet(reg);
}
</script>
</div>
</div>
<!--//contact-map -->
</section>
<!--js working-->
<script src='js/jquery-2.2.3.min.js'></script>
<!--//js working-->
<!-- cart-js -->
<script src="js/minicart.js"></script>
<script>
toys.render();
if (this.subtotal() > 0) {
items = this.items();
var defaults = {
containerID: 'toTop', // fading element id
containerHoverID: 'toTopHover', // fading element hover id
scrollSpeed: 1200,
easingType: 'linear'
};
$().UItoTop({
easingType: 'easeOutQuart'
});
});
</script>
<!-- //here ends scrolling icon -->
<!--bootstrap working-->
<script src="js/bootstrap.min.js"></script>
<!-- //bootstrap working--> <!-- //OnScroll-Number-Increase-JavaScript -->
</body>
</html>
Item page:
<!DOCTYPE html>
<html lang="zxx">
<head>
<title>Item</title>
<!--booststrap-->
<div class="container-fluid">
<div class="hedder-up row">
<div class="col-lg-3 col-md-3 logo-head">
<h1><a href="index.php"><img src= "pic/1111.png" width=125
height=100/></a> <a class="navbar-brand" href="index.php"> Spice
kart</a></h1>
</div>
</ul>
</div>
</nav>
</div>
</div>
<!--//headder-->
<!-- banner -->
<div class="inner_page-banner one-img" style="background-image: url(pic/new/pexels-
photo-1086719.jpeg)">
</div>
<!--//banner -->
<!--contact -->
<section class="contact py-lg-4 py-md-3 py-sm-3 py-3"><!--//contact-map -->
</section>
$res=mysql_query($rs);
echo'<option>......select category.......</option>';
while($rst=mysql_fetch_array($res))
{
echo'<option value='.$rst['cat_name'].'>'.$rst['cat_name'].'</option>';
}
?>
</select>
</p>
</div>
<p>
Subcategory name
</p>
<p>
while($rst1=mysql_fetch_array($res1))
{
echo'<option value='.$rst1['sc_name'].'>'.$rst1['sc_name'].'</option>';
}
?>
</select>
</p>
</div>
<div class="form-group contact-forms" align="left" >
<label>Item name</label>
<label>Item Quantity</label>
<label>Item Rate</label>
<div align="left">
<label> Image</label>
<input type="file" name="txtimg" required>
</div>
</div>
<button type="submit" class="btn btn-block sent-butnn" name="submit" value="submit"
style="width: 400px; height: 40px;">ADD</button>
</div>
</form>
<?php
if(isset($_REQUEST['submit']))
{
$cat_name=$_REQUEST['cat_name'];
$sc_name=$_REQUEST['sc_name'];
Al-Ameen college edathala 89
Project Report 2019 SPICE KART
$rate=$_REQUEST['rate'];
$item_name=$_REQUEST['item_name'];
$itemquantity=$_REQUEST['itemquantity'];
$folder='pic/';
$file=$folder.basename($_FILES['txtimg']['name']);
move_uploaded_file($_FILES['txtimg']['tmp_name'], $file);
// $target_dir = "pic/";
// $img = $target_dir . basename($_FILES["fileupload"]["name"]);
//
$rs2="select count(*) as cnt from tbl_item where item_name='$item_name'";
$res3=mysql_query($rs2);
$rst4=mysql_fetch_array($res3);
if($rst4['cnt']>0)
{
clr();
echo "<script>alert('Item already added ');</script>";
//echo "alredy added";
}
else
{
}
function clr()
{
$cat_name="";
$sc_name="";
$item_name="";
}
?>
</div>
</div>
</div>
<!--subscribe-address-->
<section class="subscribe">
<div class="container-fluid">
<div class="row"></div>
</div>
</section>
<!--//subscribe-address-->
<section class="sub-below-address py-lg-4 py-md-3 py-sm-3 py-3"></section>
<!--//subscribe-->
<!-- footer -->
<footer class="py-lg-4 py-md-3 py-sm-3 py-3 text-center">
<div class="copy-agile-right">
<p>
© 2019 Spice Kart | All Rights Reserved </p>
if (this.subtotal() > 0) {
items = this.items();
var defaults = {
containerID: 'toTop', // fading element id
containerHoverID: 'toTopHover', // fading element hover id
scrollSpeed: 1200,
easingType: 'linear'
};
$().UItoTop({
easingType: 'easeOutQuart'
});
BIBLIOGRAPHY
Edition.
2. Programming in php
Web References:
3. www. Functions.com/Mysql
4. www.onlinelibrary.wiley.com/doi/10.1002/qua.21273/full
5. www.google.com
6. www.wikipedia.com
7. www.youtube.com