Msbte Campus Agri Report-2
Msbte Campus Agri Report-2
Msbte Campus Agri Report-2
DIPLOMA IN
Computer Engineering
SUBMITTED TO
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION,
MUMBAI
SUBMITTED BY
GUIDED BY
Prof. B. B. Handge
CERTIFICATE
This is to certify that the project report entitled
“Agriculture Management System”
Was successfully completed by Students of Sixth Semester Diploma in
Computer Engineering.
Name Of Students Enrollment Number
Mehek S. Kapadni 2118000031
Kanchan M. Katare 2118000213
Pooja G. Abhang 2118000220
Devarshi A. Patil 2118000225
2
ACKNOWLEDGEMENT
I would like to express my sincere gratitude to our project guide Prof. B.
B. Handge for providing their invaluable guidance, comments and
suggestions throughout the course of the project Agriculture
Management System. I would like to thank Prof. B. B. Handge HOD
of Computer Engineering.
I would also like to thank Dr. S. P. Deshpande Principal of Gokhale
Education Society’s Sir Dr. M.S. Gosavi Polytechnic Institute, Nashik
Road, Nashik for constantly motivating us to work harder.
3
ABSTRACT
4
CONTENTS
1 INTRODUCTION 8
1.1 Scope 8
1.2Objectives 8
2 LITERATURE SURVEY 9
2.2 History 12
3 DEFINE PROBLEM 14
3.2Technology Description 15
4 REQUIREMENT ANALYSYS 18
4.2Software Requirement 19
5 DESIGN OF SYSTEM 23
5
5.1 System Architecture 24
6 IMPLEMENTATION OF SYSTEM 31
6.2 Snapshots 66
7 SYSTEM TSETING 69
8.1 Conclusion 77
6
IMAGE INDEX
IMAGE
IMAGE NAME PAGE NO.
NO.
01 Literature Review 11
02 Evaluation 12
03 Schedule Feasibility 23
04 System Architecture 25
05 DFD Level 0 26
06 DFD Level 1 26
07 DFD Level 2 27
08 Class Diagram 28
09 Sequence Diagram 29
10 Activity Diagram 30
11 Use Case Diagram 31
12 Login Module Output 67
13 Card Module Output 67
14 Contact Module Output 68
15 Edit Profile Output 68
16 Customization Module 69
TABLE INDEX
TABLE
TABLE NAME PAGE NO.
NO.
01 Functional Requirements 20
02 Test Cases 74 to 76
7
CHAPTER NO. 1
INTRODUCTION
8
1. Introduction
1.1 In the dynamic landscape of agricultural commerce, the Agriculture Shop Management
System (ASMS) emerges as a transformative solution, leveraging technology to optimize and
streamline the operations of agricultural supply businesses. This system is meticulously
crafted to address the unique challenges faced by agricultural shops, providing a
comprehensive platform for efficient inventory management, customer engagement, and
financial tracking.
1.2 Scope of Project:
1.3 The scope of the Agriculture Shop Management System (ASMS) project encompasses a
comprehensive set of features and functionalities aimed at enhancing the operational
efficiency, customer service, and overall management of agricultural supply businesses. The
project will focus on developing a robust software solution tailored to meet the specific needs
and challenges faced by agricultural shops.
1.4 Objective:
9
CHAPTER NO 2
Literature Survey
10
2.1 Literature Review
Agriculture Shop Management System
In recent years, the integration of technology into agricultural supply businesses has gained
momentum, driven by the need for improved efficiency, data-driven decision-making, and
enhanced customer service. This literature review explores key themes and findings related to
Agriculture Shop Management Systems (ASMS) in the existing body of literature.
Fig 2 - Evalution
Evaluation:
The evaluation of an Agriculture Shop Management System (ASMS) involves assessing its
effectiveness, usability, and impact on various aspects of agricultural retail operations. Here
are key criteria and considerations for evaluating the ASMS:
A comprehensive evaluation of the Agriculture Shop Management System based on these
criteria will provide valuable insights into its effectiveness, strengths, and areas for
improvement, guiding decisions on optimization and future enhancements.
12
2.2 History
13
2.3 Proposed System:
The proposed Agriculture Shop Management System (ASMS) is a comprehensive software
solution designed to revolutionize the way agriculture supply stores operate. This system is
developed to address the specific needs and challenges faced by businesses in the
agricultural retail sector, offering a set of advanced features and capabilities to streamline
operations and enhance overall efficiency.
The ASMS will enable agriculture retailers to manage their inventory in real-time, providing
up-to-the-minute information on stock levels, product expiration, and reorder points.
Integration with barcode scanning technology ensures accurate and efficient tracking of
products.
The ASMS will enable agriculture retailers to manage their inventory in real-time, providing
up-to-the-minute information on stock levels, product expiration, and reorder points.
Integration with barcode scanning technology ensures accurate and efficient tracking of
products.
14
CHAPTER NO 3
DEFINE PROBLEM
15
DEFINE PROBLEM
PHP:
16
The PHP language evolved without a written formal specification or standard until
2014, with the original implementation acting as the de facto standard which other
implementations aimed to follow. Since 2014, work has gone on to create a formal
PHP specification.
As of April 2020, over half of sites on the web using PHP are still on discontinued/
version 5.6 or older; and with version 7.0 and 7.1 over 68%, that are neither officially
supported by The PHP Development Team, while security support is provided by third
parties, such as Debian .
Because of the popularity of PHP that means at least 53% of the websites in the world
run on implementations of languages no longer supported by their designers. In
addition, PHP version 7.2, the most popular supported PHP version, will stop getting
security updates on November 30, 2020.
MySQL:
MySQL is written in C and C++. Its SQL parser is written in yacc, but it uses a home-
brewed lexical analyzer.
MySQL works on many system platforms, including AIX, FreeBSD, HP- UX,
eComStation, i5/OS, IRIX, Linux, macOS, Microsoft Windows, NetBSD, Novell,
NetWare, OpenBSD, Open Solaris, OS/2 Warp, QNX, Oracle Solaris, Symbian,
SunOS, SCO Open Server, SCO UnixWare, Sanos and Tru64. A port of MySQL to
OpenVMS also exists.
The MySQL server software itself and the client libraries use dual-licensing
distribution. They are offered under GPL version 2, or a proprietary license.
Free support additionally is available in different IRC channels and forums. Oracle
offers paid support via its MySQL Enterprise products. They differ in the scope of
services and in price. Additionally, a number of third party organizations exist to
provide support and services, including Maria DB and Percona.
17
MySQL has received positive reviews, and reviewers noticed it "performs extremely
well in the average case" and that the "developer interfaces are there, and the
documentation (not to mention feedback in the real world via Web sites and the like)
is very, very good".
It has also been tested to be a "fast, stable and true multi-user, multi-threaded sql
database server".
Xampp:
Since most actual web server deployments use the same components as XAMPP, it
makes transitioning from a local test server to a live server possible.
XAMPP's ease of deployment means a WAMP or LAMP stack can be installed quickly
and simply on an operating system by a developer, with the advantage that common
add-in applications such as Word Press and Joomla! Can also be installed with similar
ease using Bitnami.
18
CHAPTER NO 4
REQUIREMENT ANALYSIS
19
REQUIREMENT ANALYSIS
4.1 Hardware Requirements:
Processor: I3 processor
Ram: 4GB
Hard disk: 1 TB HDD
Work Station with above specification
Sr
Scenario and Actors Activities
No
1 User Authentication: Product Management:
20
4.4 Non Functional Requirements:
1. Extensibility:
The system must be easily extendible.
The system must be able to cope with regular changes.
2. Reliability:
The system must be recoverable quickly.
The system must have 99.99% accuracy.
The system must have 99.99% precision.
3. Security:
Processed information must be kept secure.
The physical storage location should be secure.
Wherever possible existing security definitions should be used.
23
CHAPTER NO 5
DESIGN OF SYSTEM
24
DESIGN OF SYSTEM
5.1 System Architecture
o This system is a tool for customer comfort, where user can order food from anywhere
and it will be delivered to customer's address without wasting time to go to a
restaurant.
25
o Here this portal will add the product which user willing to buy. This system is a web
based system which will help for organizing digital marketing.
o This system will allow the communication between customer and bakery shop.
o In addition user will able to see or give ratings and reviews to bakery shop. Else it
will help shops to increase their productivity and quality of services.
26
ER-Diagram
27
5.1.1 DED Level 0
28
5.1.2 DFD Level 1
29
5.1.3 DFD Level 3
30
5.1.4 Use Case Diagram
31
5.1.5 Sequence Diagram
32
CHAPTER NO 6
IMPLEMENTATION OF SYSTEM
33
IMPLEMENTATION OF SYSTEM
6.1 Module Design
1. INDEX MODULE
a. Module Name: Index Module
b. Purpose of Module:.
c. Data used:
d. Code :
</div>
<div class="item">
<img src="img/banner2.png" style="width:100%;">
</div>
<div class="item">
<img src="img/banner3.png" style="width:100%;">
</div>
<div class="item">
<img src="img/banner4.png" style="width:100%;">
</div>
<div class="item">
<img src="img/banner2.png" style="width:100%;">
34
</div>
</div>
</div>
</div>
</div>
<!-- /section title -->
<?php
include 'db.php';
while($row = mysqli_fetch_array($run_query)){
$pro_id = $row['product_id'];
$pro_cat = $row['product_cat'];
$pro_brand = $row['product_brand'];
$pro_title = $row['product_title'];
$pro_price = $row['product_price'];
$pro_image = $row['product_image'];
$cat_name = $row["cat_title"];
37
echo "
<div class='product'>
<a href='product.php?p=$pro_id'><div class='product-img'>
<img src='product_images/$pro_image' style='max-height: 170px;'
alt=''>
<div class='product-label'>
<span class='sale'>-30%</span>
<span class='new'>NEW</span>
</div>
</div></a>
<div class='product-body'>
<p class='product-category'>$cat_name</p>
<h3 class='product-name header-cart-item-name'><a
href='product.php?p=$pro_id'>$pro_title</a></h3>
<h4 class='product-price header-cart-item-info'>$pro_price<del
class='product-old-price'>$990.00</del></h4>
<div class='product-rating'>
<i class='fa fa-star'></i>
<i class='fa fa-star'></i>
<i class='fa fa-star'></i>
<i class='fa fa-star'></i>
<i class='fa fa-star'></i>
</div>
</div>
<div class='add-to-cart'>
<button pid='$pro_id' id='product' class='add-to-cart-btn block2-
btn-towishlist' href='#'><i class='fa fa-shopping-cart'></i> add
to cart</button>
</div>
</div>
";
}
;
}
?> <!-- product -->
38
<!-- /product -->
while($row = mysqli_fetch_array($run_query)){
$pro_id = $row['product_id'];
$pro_cat = $row['product_cat'];
$pro_brand = $row['product_brand'];
$pro_title = $row['product_title'];
$pro_price = $row['product_price'];
$pro_image = $row['product_image'];
$cat_name = $row["cat_title"];
echo "
<div class='product'>
<a href='product.php?p=$pro_id'><div class='product-img'>
41
<img src='product_images/$pro_image' style='max-height: 170px;'
alt=''>
<div class='product-label'>
<span class='sale'>-30%</span>
<span class='new'>NEW</span>
</div>
</div></a>
<div class='product-body'>
<p class='product-category'>$cat_name</p>
<h3 class='product-name header-cart-item-name'><a
href='product.php?p=$pro_id'>$pro_title</a></h3>
<h4 class='product-price header-cart-item-info'>$pro_price<del
class='product-old-price'>$990.00</del></h4>
<div class='product-rating'>
<i class='fa fa-star'></i>
<i class='fa fa-star'></i>
<i class='fa fa-star'></i>
<i class='fa fa-star'></i>
<i class='fa fa-star'></i>
</div>
</div>
<div class='add-to-cart'>
<button pid='$pro_id' id='product' class='add-to-cart-btn block2-
btn-towishlist' href='#'><i class='fa fa-shopping-cart'></i> add
to cart</button>
</div>
</div>
";
}
;
}
?>
</div>
43
2. DASHBOARD MODULE
?>
44
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-6">
<div class="card card-stats">
<div class="card-header card-header-success card-header-
icon">
<div class="card-icon">
<i class="material-icons">store</i>
</div>
<p class="card-category">Total Catagories</p>
<h3 class="card-title"> <?php $query = "SELECT cat_id FROM
categories";
$result = mysqli_query($con, $query);
if ($result)
{
// it return number of rows in the table.
$row = mysqli_num_rows($result);
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-6">
<div class="card card-stats">
<div class="card-header card-header-danger card-header-
icon">
<div class="card-icon">
<i class="material-icons">info_outline</i>
</div>
<p class="card-category">Total sellers</p>
<h3 class="card-title"><?php $query = "SELECT user_id FROM
user_info";
$result = mysqli_query($con, $query);
if ($result)
45
{
// it return number of rows in the table.
$row = mysqli_num_rows($result);
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-6">
<div class="card card-stats">
<div class="card-header card-header-info card-header-icon">
<div class="card-icon">
<i class="fa fa-twitter"></i>
</div>
<p class="card-category">Total Orders</p>
<h3 class="card-title"><?php $query = "SELECT order_id FROM
orders_info";
$result = mysqli_query($con, $query);
if ($result)
{
// it return number of rows in the table.
$row = mysqli_num_rows($result);
</div>
</div>
</div>
46
4. Subscribers MODULE
a. Module Name: Subscribers Module
b. Purpose of Module: To communicate with admin via sending email
meassage.
c. Data used: All the necessary required details filled by user.
d. Code :
<?php
include("../../db.php");
?>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-6">
<div class="card card-stats">
47
<div class="card-header card-header-success card-header-icon">
<div class="card-icon">
<i class="material-icons">store</i>
</div>
<p class="card-category">Total Catagories</p>
<h3 class="card-title"> <?php $query = "SELECT cat_id FROM categories";
$result = mysqli_query($con, $query);
if ($result)
{
// it return number of rows in the table.
$row = mysqli_num_rows($result);
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-6">
<div class="card card-stats">
<div class="card-header card-header-danger card-header-icon">
<div class="card-icon">
<i class="material-icons">info_outline</i>
</div>
<p class="card-category">Total sellers</p>
<h3 class="card-title"><?php $query = "SELECT user_id FROM user_info";
$result = mysqli_query($con, $query);
if ($result)
{
// it return number of rows in the table.
$row = mysqli_num_rows($result);
</div>
</div>
48
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-6">
<div class="card card-stats">
<div class="card-header card-header-info card-header-icon">
<div class="card-icon">
<i class="fa fa-twitter"></i>
</div>
<p class="card-category">Total Orders</p>
<h3 class="card-title"><?php $query = "SELECT order_id FROM orders_info";
$result = mysqli_query($con, $query);
if ($result)
{
// it return number of rows in the table.
$row = mysqli_num_rows($result);
</div>
</div>
</div>
49
50
5. LOGIN FORM MODULE
<?php
#this is Login form page , if user is already logged in then we will not allow user to access this
page by executing isset($_SESSION["uid"])
#if below statment return true then we will send user to their profile.php page
//in action.php page if user click on "ready to checkout" button that time we will pass data in a
form from action.php page
if (isset($_POST["login_user_with_product"])) {
//this is product list array
$product_list = $_POST["product_id"];
//here we are converting array into json format because array cannot be store in cookie
$json_e = json_encode($product_list);
//here we are creating cookie and name of cookie is product_list
setcookie("product_list",$json_e,strtotime("+1 day"),"/","","",TRUE);
}
?>
<div class="login-marg">
<!-- Billing Details -->
<div class="form-group">
<label for="email">Email</label>
<input class="input input-borders" type="email" name="email" placeholder="Email"
id="password" required>
</div>
<div class="form-group">
<label for="email">Password</label>
<input class="input input-borders" type="password" name="password" placeholder="password"
id="password" required>
</div>
</div>
</div>
</form>
53
6. CART MODULE
1. Module Name: Report submission Module
2. Purpose of Module: To communicate with admin for customized
products.
3. Data used: All the necessary details for custom-made
products with files toupload.
<?php
include "header.php";
?<section class="section">
<div class="container-fluid">
<div id="cart_checkout">
</div>
</div>
</section>
<?php
include "newslettter.php";
include "footer.php";?>
<?php
session_start();
$ip_add = getenv("REMOTE_ADDR");
include "db.php";
if(isset($_POST["categoryhome"])){
$category_query = "SELECT * FROM categories WHERE cat_id!=1";
$run_query = mysqli_query($con,$category_query) or
die(mysqli_error($con));
echo "
echo "
";
}
echo "</ul>
<!-- /NAV -->
</div>
<!-- /responsive-nav -->
";
}
}
if(isset($_POST["page"])){
$sql = "SELECT * FROM products";
$run_query = mysqli_query($con,$sql);
$count = mysqli_num_rows($run_query);
$pageno = ceil($count/2);
for($i=1;$i<=$pageno;$i++){
echo "
<li><a href='#product-row' page='$i' id='page'>$i</a></li>
55
";
}
}
if(isset($_POST["getProducthome"])){
$limit = 3;
if(isset($_POST["setPage"])){
$pageno = $_POST["pageNumber"];
$start = ($pageno * $limit) - $limit;
}else{
$start = 0;
}
$product_query = "SELECT * FROM products,categories WHERE
product_cat=cat_id LIMIT $start,$limit";
$run_query = mysqli_query($con,$product_query);
if(mysqli_num_rows($run_query) > 0){
while($row = mysqli_fetch_array($run_query)){
$pro_id = $row['product_id'];
$pro_cat = $row['product_cat'];
$pro_brand = $row['product_brand'];
$pro_title = $row['product_title'];
$pro_price = $row['product_price'];
$pro_image = $row['product_image'];
$cat_name = $row["cat_title"];
echo "
<div class='product-widget'>
<a href='product.php?p=$pro_id'>
<div class='product-img'>
<img src='product_images/$pro_image' alt=''>
</div>
<div class='product-body'>
<p class='product-category'>$cat_name</p>
<h3 class='product-name'><a
href='product.php?p=$pro_id'>$pro_title</a></h3>
<h4 class='product-price'>$pro_price<del class='product-old-
price'>$990.00</del></h4>
</div></a>
</div>
";
}
56
}
}
if(isset($_POST["gethomeProduct"])){
$limit = 9;
if(isset($_POST["setPage"])){
$pageno = $_POST["pageNumber"];
$start = ($pageno * $limit) - $limit;
}else{
$start = 0;
}
while($row = mysqli_fetch_array($run_query)){
$pro_id = $row['product_id'];
$pro_cat = $row['product_cat'];
$pro_brand = $row['product_brand'];
$pro_title = $row['product_title'];
$pro_price = $row['product_price'];
$pro_image = $row['product_image'];
$cat_name = $row["cat_title"];
echo "
</div>
<div class='add-to-cart'>
<button pid='$pro_id' id='product' class='add-to-cart-btn block2-
btn-towishlist' href='#'><i class='fa fa-shopping-cart'></i> add
to cart</button>
</div>
</div>
</div>
";
}
;
if(isset($_POST["get_seleted_Category"]) ||
isset($_POST["search"])){
if(isset($_POST["get_seleted_Category"])){
$id = $_POST["cat_id"];
$sql = "SELECT * FROM products,categories WHERE product_cat =
'$id' AND product_cat=cat_id";
}else {
$keyword = $_POST["keyword"];
$sql = "SELECT * FROM products,categories WHERE product_cat=cat_id
AND product_keywords LIKE '%$keyword%'";
}
$run_query = mysqli_query($con,$sql);
58
while($row=mysqli_fetch_array($run_query)){
$pro_id = $row['product_id'];
$pro_cat = $row['product_cat'];
$pro_brand = $row['product_brand'];
$pro_title = $row['product_title'];
$pro_price = $row['product_price'];
$pro_image = $row['product_image'];
$cat_name = $row["cat_title"];
echo "
</div>
<div class='add-to-cart'>
<button pid='$pro_id' id='product' href='#' tabindex='0'
class='add-to-cart-btn'><i class='fa fa-shopping-cart'></i> add to
cart</button>
</div>
</div>
</div>
59
";
}
}
60
6.2 Snapshots
INDEX MODULE :
61
FOOTER MODULE :
PRODUCT LIST
PRODUCT VIEW :-
CART
73
REGISTERATION PAGE
LOGIN FORM
74
ADMIN DASHBOARD
ADD PRODUCT
75
CHAPTER NO 7
SYSTEM TESTING
76
SYSTEM TESTING
Software testing is an investigation conducted to provide stakeholders
with information about the quality of the software product or service under test.
Software testing can also provide an objective, independent view of the
software to allow the business to appreciate and understand the risks of
software implementation. Test techniques include the process of executing a
program or application with the intent of finding software bugs(errors or other
defects), and verifying that the software product is fit for use.
Software testing involves the execution of a software component or system
component toevaluate one or more properties of interest. In general, these
properties indicate the extentto which the component or system under test:
77
signup is tested on data entered by user for login and checked it through Database
to cross verify the registration, then the cart module where product is
added into cart and removed from cart, should show the number of products
available in cart and also the total so there are some of the main test cases to be
tested using unit test. The next module is contact us where user should be able
to send the admin an email message to communicate for some needs ,so the
data should be valid and if any field is not filled by user then the message should
be shown to the user. So all the developed modules are tested alone to know its
correct functioning and working.
79
7.2 Test cases
Expected
Test ID Description Actual Result Status
Result
User should
successfully
To check
Login into User has
whether user
application successfully
001 successfully PASS
if he has Logged into
login into
already system
website
logged in
earlier
User has
User can sign
signed
002 Sign Up up in system if PASS
up into
a new user
system
System should System has
Data store in
003 store values stored values PASS
database
in database in database
If user gives
wrong values System has
004 Incorrect Data PASS
,system should shown error
show error
82
CONCLUSION & FUTURE SCOPE
8.1 Conclusion
In conclusion, the Agriculture Shop Management System (ASMS) stands as a pivotal
solution addressing the unique challenges faced by agriculture supply stores. The
development and implementation of ASMS signify a significant step towards
modernizing and optimizing operations within the agricultural retail sector. The
system's key features and functionalities have been carefully designed to bring about
transformative improvements, fostering efficiency, accuracy, and enhanced customer
satisfaction.
83
CHAPTER NO 9
REFERENCES AND BIBLIOGRAPHY
84
https://www.farmer.gov.in/
https://www.farmers.gov/
https://enam.gov.in/web/stakeholders-Involved/farmers
https://www.india.gov.in/farmers-portal
85