Anda di halaman 1dari 50

E-Mandi- Electronic Vegetable Market

1. INTRODUCTION
Most of the times price of the commodity products increase due to
the intermediate between the consumer and the farmer. These intermediate
persons make profits mainly by providing the buying, transportation and selling
services. These profit and service charges are finally added to the price of the
product by each and every intermediate involved. So if the number of the
intermediate are high the consumers have to spend lots of money to buy a
particular product.
ow in !erala farmers normally sell their product by their own
risk and they normally get inade"uate price for their products. These days the
communication between farmers and agencies are done via telephones. #lso
there may be many intermediate between the farmer and consumer. $y using the
E Mandi system there will be direct communication between the farmer and
government recogni%ed fruits and vegetables agencies. E Mandi makes it
convenient for the farmers and agencies to establish an effective trade route.
2. LITERATURE SURVEY
The prices of the commodity products increased due to the
intermediates between the consumer and the farmer. These intermediate persons
make profits mainly, by providing the buying, transporting and selling service.
These profits and service charges are finally added to the price of the product by
each and every intermediate that involves. Therfore if the numbers of the
intermediates are high the consumers have to spend lot amount of money to buy
a particular product.
&n kerala farmers are normally sell their product by their own risk
and they normally get less prices for their product. #lso their involves many
'hinmaya &nstitute (f Technology )

E-Mandi- Electronic Vegetable Market
intermediates between the farmer and consumer. $y using the E Mandi system
there will be direct communication between the farmer and government
recogni%ed fruit and vegetables agencies. ow a days in kerala price of
agricultural products increased vastly when comes to consumer. Even though,
most of the times farmers does not get the actual revenue for the products as
they e*peted. This problem is due to a number of factors. The number of
intermediate involved to e*change may cause the cost of the product to rise as it
reaches the consumers. +ue to the ineffective route informations the transport
service e*penses may increase. The lack of information between demand and
supply can result in lack of profits. The inade"uate market information also
makes it difficult for the farmers to keep up with the changing needs of
customers. These all are the problems faced by the farmers and agencies in now
days. !erala government provides some benefitable things for farmers through
e-krishi pro,ect but this system is a new one for increasing efficiency of
agriculture in kerala

3. PROJECT DESCRIPTION
E-Mandi is mainly focused on improving the efficiency in
agricultural trade for farmers. The -overnment agencies also benifit from this
through trade information. The main ob,ectives it focuses on are.
To build close relationship among farmers and government recogni%ed
fruits and vegetable agencies. #lso increase the number of contacts
between them.
To provide efficient way to sell #griculture products.
/et farmers to specify their own pricing rate depending on the ongoing
market rate and give a reasonable price to his0her product. 1armers get
price alerts using the SMS and also through referring website.
'hinmaya &nstitute (f Technology 2

E-Mandi- Electronic Vegetable Market
To provide bidding facility for buying the products, this facility is for
government recogni%ed fruits and vegetable agencies and this leads to
advantage for farmers.
3rovide root map and distance facility.
3.1 PURPOSE
The purpose of E-Mandi system is to create a close
relationship between farmers and government recogni%ed fruits and vegetable
agencies to sell and buy agricultural products.The system is it can be useful for
vegco, horticorp and other government recogni%ed fruits and vegetable agencies
to collect products from different places with the root map and distance facility.
3.2 SCOPE OF THE PROJECT
The scope of E mandi system is solving the problems that
farmers facing at the time of selling products and the system is useful for
government recogni%ed fruits and vegetable agencies to collect products from
different places. The E- Mandi system is applicable for every government
recogni%ed fruits and vegetable agencies in kerala and also for farmers. 1armers
can also use the benefit of this system through #kshaya and other #griculture
office without money.
3.3 EXISTING AND PROPOSED SYSTEM
Exi!in" S#!$%&
&n !erala price of agricultural products increased vastly when
comes to consumer. Even though, most of the times farmers does not get the
actual revenue for the products as they e*pected. This problem is due to.
'hinmaya &nstitute (f Technology 4

E-Mandi- Electronic Vegetable Market
umber of intermediates involved to e*change.
5ighest transport service e*penses.
The contacts farmers have with market are less. Even the e*isting
contacts are based on telephone conversations.
/ack of market information.
+ifficulty in establishing an effective route to market.
/ack of knowledge on demand and supply.
P'()($d S#!$%&
The E Mandi 6Electronic Vegetable Market7 system is mainly
focused on establishing direct communication between farmers and government
recogni%ed fruits and vegetable agencies. This system reduces the price of
agricultural products for the end consumers by decreasing the intermediate. The
system is mainly a web based system . #ny registered user can get to know the
prices of commodity via SMS or referring website. #ll the farmers can give
information about their products and government agencies can bid on that
product. The system also displays a route map and the distance to the respective
farmer involved in the bidding process. #fter completing the closing date of
bidding the system automatically generates a agreement certificate and send
through mail to both the parties. -overnment agencies can also give their
re"uirements. The administrator is allowed to view the comments of the farmers
and agencies.
3.* SALIENT FEATURES OF THE SYSTEM
The salient features of the system are.
The system gives route map information on farmers, based on which
agencies can bid for a particular product.
'hinmaya &nstitute (f Technology 8

E-Mandi- Electronic Vegetable Market
#t the bidding time the farmers are sorted based on least distance and
ma*imum "uantity.
#fter the bidding system generates an agreement certificate and is mailed
to both parties involved in the process.
SMS alert facility is provided.
The comments by the farmers can be viewed by an agency and vice versa.
#dmin can view all the comments based on the bids as well as date and the
last comment will be visible on the top of the list.
*. SOFT+ARE RE,UIREMENT ANALYSIS
E Mandi is mainly focused on improving the efficiency in
agricultural trade for farmers. The -overnment agencies also benifit from this
through trade information. The main ob,ectives it focuses on are.
To build close relationship among farmers and government recogni%ed fruits
and vegetable agencies. #lso increase the number of contacts between them.
To provide efficient way to sell #griculture products.
/et farmers to specify their own pricing rate depending on the ongoing
market rate and give a reasonable price to his0her product. 1armers get price
alerts using the SMS and also through referring website.
To provide bidding facility for buying the products, this facility is for
government recogni%ed fruits and vegetable agencies and this leads to
advantage for farmers.
*.1 PRO-LEM DEFINITION
&n kerala price of agricultural products increased vastly
when comes to consumer. Even though, most of the times farmers does not
get the actual revenue for the products as they e*peted. This problem is due
'hinmaya &nstitute (f Technology 9

E-Mandi- Electronic Vegetable Market
to a number of factors. The number of intermediate involved to e*change
may cause the cost of the product to rise as it reaches the consumers. +ue to
the ineffective route informations the transport service e*penses may
increase. The lack of information between demand and supply can result in
lack of profits. The inade"uate market information also makes it difficult for
the farmers to keep up with the changing needs of customers. $y using the
e-mandi system, these problems can be solved.
*.2 FEASI-ILITY ANALYSIS
5aving understood the e*isting software and specified
ob,ective of the proposed software the alternative software is investigated. #
feasibility analysis is performed to choose the software that meets the
performance at least cost. The main aim of feasibility study activity is to
determine whether it would be functionally and technically feasible to
develop the product. The feasibility study involves the analysis of the
problem and collection of relevant information relating to the product such
as different data items which would be the input to the system, the
processing re"uired to be carried out on these data, the output data re"uired
to be produced by the system. # feasibility study is a rest of the system
proposal according to its working, impact on the organi%ation, ability to meet
users, need and effective use of resources. The ob,ective of the feasibility
study is ac"uiring the sense of the scope of the system.
Three essential considerations involved in the feasibility study are
: (perational feasibility
: Technical feasibility
: Economical feasibility
'hinmaya &nstitute (f Technology ;

E-Mandi- Electronic Vegetable Market
O)$'a!i(na. F$ai/i.i!#
(perational feasibility is dependent on human resources available
for the pro,ect and involves pro,ecting whether the system will be used if it is
developed and implemented. (perational feasibility is a measure of how well
a proposed system solves the problems, and takes advantage of the
opportunities identified during scope definition and how it satisfies the
re"uirements identified during the re"uirements analysis phase carried out
earlier.
The E-Mandi system would provide end users with timely,
accurate and useful formatted information. $y using the E-Mandi, the
farmers and government agencies sell and buy product with reliable way.
T$01ni0a. F$ai/i.i!#
# large part of determining resources has to do with assessing
technical feasibility. &t considers the technical re"uirements of the proposed
pro,ect. The technical re"uirements are then compared to the technical
capability of the environment where it is to be deployed. The systems pro,ect
is considered technically feasible if the environment technical capability is
sufficient to support the pro,ect re"uirements.
The current technical resources can be upgraded or added to make
the pro,ect feasible within the limits of current technology. The language
selected for coding is php. &t is feasible to develop a user-friendly interface
using 353, 'SS, <avaScript and 5yper Te*t Markup /anguage. The system
is easier to be developed in +ream=eaver platform and the database can be
implemented using MyS>/ server. +ream=eaver provide technical
guarantee of accuracy, reliability is of access and data security. Thus since
both the hardware and the software re"uirement are satisfied, it is
'hinmaya &nstitute (f Technology ?

E-Mandi- Electronic Vegetable Market
technically feasible.
E0(n(%i0 F$ai/i.i!#
Economic analysis could also be referred to as cost0benefit
analysis. &t is the most fre"uently used method for evaluating the
effectiveness of a new system. &n economic analysis the procedure is to
determine the benefits and savings that are e*pected from a candidate system
and compare them with costs. &f benefits outweigh costs, then the decision is
made to design and implement the system.
This E Mandi system is e*pected to give long term benefits as the
product delivery and farmer satisfaction will improve. &n the long run
farmers can be saved from the intermediaries who e*tract more profit from
them. The farmers can register through already e*isting governmental
agencies such as #!S5#@# and #grcultural +epartment. The already
e*isting staff can be utili%ed for this programme. The computer hardware
and internet connection is already available at centers, which can be utili%ed.
The additional cost would be incurred in the training of the staff and nothing
else. The cost of printing bulky registers can be saved. The pro,ect does not
involve any special hardware other than standard specifications. So it is
economically feasible to implement the pro,ect within the available budget.
*.3 METHODOLOGY
The &ncremental model is used to develop this pro,ect
because the re"uirements could not completely be free%e at the pro,ect start.
The system was to be designed from the currently known re"uirements and
then adaptations has to be made to the developed system. &n incremental
model the whole re"uirement is divided into various builds. Multiple
development cycles take place here, making the life cycle a Amulti-waterfallB
'hinmaya &nstitute (f Technology C

E-Mandi- Electronic Vegetable Market
cycle. 'ycles are divided up into smaller, more easily managed modules.
Each module passes through the re"uirements, design, implementation and
testing phases. # working version of software is produced during the first
module, so you have working software early on during the software life
cycle. Each subse"uent release of the module adds function to the previous
release. The process continues till the complete system is achieved.
+1$n !( 2$ !1$ In0'$%$n!a. %(d$.&
De"uirements of the complete system are clearly defined and understood.
Ma,or re"uirements must be definedE however, some details can evolve
with time.There are some high risk features and goals.
Ad3an!a"$ (4 In0'$%$n!a. %(d$.&
-enerates working software "uickly and early during the software life
cycle.
More fle*ible F less costly to change scope and re"uirements.
Easier to test and debug during a smaller iteration.
'hinmaya &nstitute (f Technology G

E-Mandi- Electronic Vegetable Market
'ustomer can respond to each built.
/owers initial delivery cost.
Easier to manage risk because risky pieces are identified and handled during
itHd iteration.
*.* SOFT+ARE AND HARD+ARE RE,UIREMENTS
Ha'd5a'$ R$62i'$%$n!
3rocessor . &ntel 3rocessor 5igher Than &ntel 'ore2 +uo.
Dam . Minimum (f 2 -b Dam
5dd . )9 -b 1ree 5ard +isk Space
!eyboard . )I8keys !eyboard.
Mouse . /ogitech Mouse.
S(4!5a'$ R$62i'$%$n!
(perating System . =indows (s 0 /inu* (s
1ront End . php
$ack End . Mys"l Server
3latform . +ream=eaver
=eb Servers . =#M3 Server
T$'% and T$'%in(.("#
PHP
353 is a general-purpose scripting language that is especially suited to
server-side web development where 353 generally runs on a web server.
#ny 353 code in a re"uested file is e*ecuted by the 353 runtime, usually to
create dynamic web page content or dynamic images used on =eb sites or
'hinmaya &nstitute (f Technology )I

E-Mandi- Electronic Vegetable Market
elsewhere. &t can also be used for command-line scripting and client-side
graphical user interface 6-J&7 applications. 353 can be deployed on most
=eb servers, many operating systems and platforms, and can be used with
many relational database management systems 6D+$MS7. &t is available free
of charge, and the 353 -roup provides the complete source code for users to
build, customi%e and e*tend for their own use.
M#S,L
The database server used for doing this pro,ect is MyS>/. MyS>/ is
the worldKs most used open source relational database management system
that runs as a server providing multi-user access to a number of databases.
MyS>/ is a popular choice of database for use in web applications, and is a
central component of the widely used /#M3 open source web application
software stack 6and other K#M3K stacks7. /#M3 is an acronym for L/inu*,
#pache, MyS>/, and 3erl035303ython.L 1ree-software-open source pro,ects
that re"uire a full-featured database management system often use MyS>/.
+AMP SERVER
The acronym =#M3 refers to a set of free 6open source7 applications,
combined with Microsoft =indows, which are commonly used in =eb server
environments. The =#M3 stack provides developers with the four key
elements of a =eb server. an operating system, database, =eb server and
=eb scripting software. The combined usage of these programs is called a
server stack. &n this stack, Microsoft =indows is the operating system 6(S7,
#pache is the =eb server, MyS>/ handles the database components, while
353, 3ython, or 3ED/ represents the dynamic scripting languages.
'hinmaya &nstitute (f Technology ))

E-Mandi- Electronic Vegetable Market
*.7 USECASE DIAGRAMS
The E-Mandi system is useful for both the farmers and
government recogni%ed fruits and vegetable agencies.
This system is used by three types of users. They are
#dministrator
1armers
-overnment recogni%ed fruits and vegetable agencies.
Fa'%$'&
'hinmaya &nstitute (f Technology )2

E-Mandi- Electronic Vegetable Market
A"$n0i$&
'hinmaya &nstitute (f Technology )4

E-Mandi- Electronic Vegetable Market
Ad%ini!'a!('&
'hinmaya &nstitute (f Technology )8

E-Mandi- Electronic Vegetable Market
7. SOFT+ARE DESIGN
Software design usually involves problem solving and
planning a software solution. This includes both low-level component and
algorithm design and high-level, architecture design.Software design is the
process of implementing software solutions to one or more set of problems. (ne
of the important parts of software design is the software re"uirements analysis
6SD#7. &t is a part of the software development process that lists specifications
used in software engineering.
7.1 UML DIAGRAMS
Jnified Modeling /anguage is a standardi%ed,
general-purpose modeling language in the field of software engineering. The
Jnified Modeling /anguage includes a set of graphic notation techni"ues to
create visual models of ob,ect-oriented software-intensive systems.
7.1.1 DATA FLO+ DIAGRAMS
The +1+ is also known as the bubble chart. &t is a
simple graphical formalism that can be used to represent a system in terms of
the input data to the system, various processing carried out in these data and the
output data generated by the system. Starting with a set of high-level functions
that a system performance of +1+ model in hierarchically it represents various
sub functions. &n a normal convention, logical +1+ can be completed using
only four notations.
Depresents source or destination of data
Depresents +ata 1low
Depresents a process that transforms incoming data into outgoing data
'hinmaya &nstitute (f Technology )9

E-Mandi- Electronic Vegetable Market
Depresents +ata Source
F2n0!i(n S#%/(.
# function is represented using a circle. This symbol is called a process
or a bubble. $ubbles are annotated with the names of corresponding functions.
Ex!$'na. En!i!# S#%/(.
#n e*ternal entity such as a librarian, library member etc is represented
by a rectangle. The e*ternal entities are essentially those physical entities
e*ternal to the software system, which interact with the system by inputting data
to the system or by consuming the data produced by the system.
Da!a F.(5 S#%/(.
# directed arc or an arrow is used as a +ata 1low Symbol. This
represents the data flow occurring between two processes or between an
e*ternal entity and a process in direction of the +ata 1low #rrow. +ata 1low
symbols are annotated with corresponding data names.
Da!a S!('$ S#%/(.
# +ata Store represents a logical fileE it is represented using two parallel
lines. # logical file can represent either +ata Store Symbol, which can represent
either data structure or a physical file on disk.
O2!)2! S#%/(.
The output symbol is used when a hardcopy is produced and the user of
the copies cannot be clearly specified or there are several users of the output.
The +1+ at the simplest level is referred to as the 'onte*t #nalysis
+iagram. These are e*panded by level, each e*plaining in process in detail.
3rocesses are numbered for easy identification and are normally labeled in block
letters. Each data flow is labeled for easy understanding.
'hinmaya &nstitute (f Technology );

E-Mandi- Electronic Vegetable Market
C(n!$x! Dia"'a%
The conte*t diagram is the most abstract data flow representation of a
system. &t represents the entire system as a single bubble. This bubble is labeled
according to the main function of the system. The various e*ternal entities with
the system interact and the data input to the system and the data output from the
system are represented as incoming and outgoing arrows. These data flow
arrows should be annotated with the corresponding data names.
L$3$.81 DFD
To develop the /EVE/-) +1+, e*amine the high level functional
re"uirements. &t is between three to seven high-level functional re"uirements
then these can be directly represented as bubbles as in the /EVE/-) +1+. =e
can e*amine the input data to these functions and the data output by these
functions, and represent them appropriately in the diagram.
P'(0$d2'$ !( d$3$.() a DFD %(d$. (4 a #!$%&
1. The SDS document is e*amined to determine.
: +ifferent high-level functions that the system need to perform.
: +ata input to every high-level function
: +ata output from every high-level functions
: &nteractions among the identified high-level functions
These aspects of the high-level functions are then represented in a diagrammatic
form.This forms the top level +ata 1low +iagram, usually called +1+.
2. The high-level functions described in the SDS +ocuments, and then each
of the high-level functions can be represented in form of a bubble. Each
high-level function is decomposed into constituent subfunctions through the
following set of activities.
: +ifferent sub functions of the high-level functions are identified.
'hinmaya &nstitute (f Technology )?

E-Mandi- Electronic Vegetable Market
: +ata input to each of these sub functions is identified.
: +ata output from each of these sub functions is identified.
: &nteractions among these sub functions are identified.
These aspects are then represented in a diagrammatic form using a +1+.
4. Step three is repeated recursively for each sub function until a simple
algorithm can represent a sub function.
Da!a 4.(5 dia"'a% &
L$3$. 9
'hinmaya &nstitute (f Technology )C

E-Mandi- Electronic Vegetable Market
L$3$. 1
'hinmaya &nstitute (f Technology )G

E-Mandi- Electronic Vegetable Market
L$3$. 2
'hinmaya &nstitute (f Technology 2I

E-Mandi- Electronic Vegetable Market
7.2 DATA-ASE DESIGN
The system is implemented in such a way that all the valid
informationHs are stored in the database. +atabase design converts the data
model developed in logical designing to database definition. This is supported
by database software. The management of data involves baoh the definition of
structure of the storage of information and provision of mechanism for the
manipulation of information. &n addition database system must provide safety of
information handle, despite the system crashes due to attempts of unauthori%ed
access.
# database is a collection of interrelated data stored with minimum
redundancy to serve many users "uickly and efficiently. &n database design,
several views of data must be considered along with the person who users them.
The logical view is what the data look like, regardless of how they are stored.
The physical view is the way data e*ist in physical storage.
Tables are carefully designed aiming to achieve its main ob,ectives
ie, to make information access easy, "uick, ine*pensive and fle*ible for
user.+atabase design is the process of producing a detailed data model of a
database. This logical data model contains all the needed logical and physical
design choices and physical storage parameters needed to generate a design in a
+ata +efinition /anguage, which can then be used to create a database. # fully
attributed data model contains detailed attributes for each entity.
The term database design can be used to describe many different
parts of the design of an overall database system. 3rincipally, and most
correctly, it can be thought of as the logical design of the base data structures
used to store the data. &n the relational model these are the tables and views. &n
an ob,ect database the entities and relationships map directly to ob,ect classes
and named relationships. 5owever, the term database design could also be used
'hinmaya &nstitute (f Technology 2)

E-Mandi- Electronic Vegetable Market
to apply to the overall process of designing, not ,ust the base data structures, but
also the forms and "ueries used as part of the overall database application within
the database management system.
7.2.1 E8R DIAGRAMS
#n ED diagram is a diagram that helps to design
databases in an efficient way. The E-D diagram for the E-Mandi system as
follows
'hinmaya &nstitute (f Technology 22

E-Mandi- Electronic Vegetable Market
:. CODE TEMPLATE
:.1 CODING OR CODE OUTLINES
'(2!$.)1)
Mhtml *mlnsNLhttp.00www.w4.org0)GGG0*htmlLO
MheadO
MscriptO
function call67P
document.form).submit67E
Q
M0scriptO
Mscript srcNLhttp.00maps.google.com0mapsR
fileNapiSvN2SkeyN#$>&####?,T>-rshu=kcC5y1&8V25*>@3m-*tdIIhT>
('I(Up#M(8I15#*T2Gd$-f*"M3"9%wdei+S5E3/CG#L
typeNLte*t0,avascriptLOM0scriptO
Mscript srcNLhttp.00maps.google.com0maps0api0,sRsensorNtrueLOM0scriptO
Mscript
srcNLhttp.00a,a*.googleapis.com0a,a*0libs0,"uery0).C.40,"uery.min.,sLOM0scriptO
MscriptO
var g+irE
function initiali%e67 P
geocoder N new -'lient-eocoder67E
g+ir N new -+irections67E
-Event.add/istener6g+ir, LloadL, function67 P
alert6V6LWfromL7.val677E
var driving+istanceMiles N g+ir.get+istance67.meters 0 );IG.488E
'hinmaya &nstitute (f Technology 24

E-Mandi- Electronic Vegetable Market
var driving+istance!ilometers N g+ir.get+istance67.meters 0 )IIIE
V6LWresultsL7.te*t 6 driving+istanceMiles X K miles 6or K X
driving+istance!ilometers X K kilometers7K7E
Q7E
Q
function calculateDoute6from, to7 P
00 'enter initiali%ed to aples, &taly
var my(ptions N P
%oom. )I,
center. new google.maps./at/ng68I.C8, )8.297,
mapType&d. google.maps.MapType&d.D(#+M#3
QE
00 +raw the map
var map(b,ect N new
google.maps.Map6document.getElement$y&d6LmapL7, my(ptions7E
var directionsService N new google.maps.+irectionsService67E
var directionsDe"uest N P
origin. from,
destination. to,
travelMode. google.maps.+irectionsTravelMode.+D&V&-,
unitSystem. google.maps.JnitSystem.METD&'
QE
directionsService.route6
directionsDe"uest,
function6response, status7
P
if 6status NN google.maps.+irectionsStatus.(!7
'hinmaya &nstitute (f Technology 28

E-Mandi- Electronic Vegetable Market
P
new google.maps.+irectionsDenderer6P
map. map(b,ect,
directions. response
Q7E
Q
else
V6LWerrorL7.append6LJnable to retrieve your routeMbr 0OL7E
Q
7E
Q
V6document7.ready6function67 P
00 &f the browser supports the -eolocation #3&
if 6typeof navigator.geolocation NN LundefinedL7 P
V6LWerrorL7.te*t6L@our browser doesnKt support the -eolocation #3&L7E
returnE
Q
V6LWfrom-link, Wto-linkL7.click6function6event7 P
event.prevent+efault67E
var address&d N this.id.substring6I, this.id.inde*(f6L-L77E
navigator.geolocation.get'urrent3osition6function6position7 P
var geocoder N new google.maps.-eocoder67E
geocoder.geocode6P
LlocationL. new google.maps./at/ng6position.coords.latitude,
position.coords.longitude7
Q,
function6results, status7 P
'hinmaya &nstitute (f Technology 29

E-Mandi- Electronic Vegetable Market
if 6status NN google.maps.-eocoderStatus.(!7
V6LWL X address&d7.val6resultsYIZ.formattedTaddress7E
else
V6LWerrorL7.append6LJnable to retrieve your addressMbr 0OL7E
Q7E
Q,
function6positionError7P
V6LWerrorL7.append6LError. L X positionError.message X LMbr 0OL7E
Q,
P
enable5igh#ccuracy. true,
timeout. )I [ )III 00 )I seconds
Q7E
Q7E

V6LWcalculate-routeL7.submit6function6event7 P
event.prevent+efault67E
calculateDoute6V6LWfromL7.val67, V6LWtoL7.val677E
show/ocation67E
Q7E
Q7E
function show/ocation67 P
geocoder.get/ocations6V6LWfromL7.val67, function 6response7 P
if 6\response ]] response.Status.code \N 2II7
P
alert6LSorry, we were unable to geocode the first addressL7E
Q
'hinmaya &nstitute (f Technology 2;

E-Mandi- Electronic Vegetable Market
else
P
location) N Plat. response.3lacemarkYIZ.3oint.coordinatesY)Z, lon.
response.3lacemarkYIZ.3oint.coordinatesYIZ, address.
response.3lacemarkYIZ.addressQE
geocoder.get/ocations6V6LWtoL7.val67, function 6response7 P
if 6\response ]] response.Status.code \N 2II7
P
alert6LSorry, we were unable to geocode the second addressL7E
Q
else
P
location2 N Plat. response.3lacemarkYIZ.3oint.coordinatesY)Z,
lon. response.3lacemarkYIZ.3oint.coordinatesYIZ, address.
response.3lacemarkYIZ.addressQE
g+ir.load6Kfrom. K X location).address X K to. K X
location2.address7E
Q
Q7E
Q
Q7E
Q
M0scriptO
M0headO
Mbody on/oadNLinitiali%e67LO
M0headO
Mbody onloadNLinitiali%e67LO
'hinmaya &nstitute (f Technology 2?

E-Mandi- Electronic Vegetable Market
Mdiv idNLcontainerLO
Mdiv idNLbannerLO
Mdiv idNLbannerTnameLOM0divO
Mdiv idNLlogoutLOMa hrefNLLO'ontact us ] #bout us M0aO MbO]M0bO Ma
hrefNLlogout.phpLO/ogoutM0aOM0divO
Mdiv idNLbannerTimagesL classNLblueberryLO
Mul classNLslidesLO
MliOMimg srcNL..0images0banner).,pgL 0OM0liO
MliOMimg srcNL..0images0banner2.,pgL 0OM0liO
MliOMimg srcNL..0images0banner4.,pgL 0OM0liO
M0ulO
M0divO
Mdiv idNLmenuLO
MRphp
includeTonce6Lagencysess.phpL7E
RO
Ma hrefNLbidding.phpLO $iddingM0aO
]
Ma hrefNLroute.phpRrouteN)LO 1armer routeM0aO
]
Ma hrefNLroute.phpRrouteNILO1armer distanceM0aO
]
Ma hrefNLbuy.phpLO$uy productM0aO
]
Ma hrefNLlogout.phpLO/ogoutM0aO
M0divO
M0divO
'hinmaya &nstitute (f Technology 2C

E-Mandi- Electronic Vegetable Market
Mdiv idNLcontentLO
Mdiv classNLtitleTwrapperLO
Mspan classNLtitleTbo*LOMstrongODoute \M0strongOM0spanO M0divO
Mdiv classNLspacerT9ILOM0divO
M\--@our content goes here --O
Mdiv alignNLcenterLO
MRphp
includeTonce6Lagencysess.phpL7E
RO
MRphp
if6isset6VTDE>JESTYKrouteKZ77P
if6VTDE>JESTYKrouteKZNN)7P
RO
Mform nameNLform)L methodNLpostLO
MpOSelect 1armer
Mselect nameNLfarmidL on'hangeNLcall67LO
MoptionOselectM0optionO
MRphp
VresNmys"lT"uery6Lselect [ from farmerL7E
while6VrowNmys"lTfetchTarray6Vres77P
RO
Moption valueNLMRphp echo VrowYIZ ROLOMRphp echo VrowY)Z.L L.
VrowY4Z ROM0optionO
MRphp
Q
RO
M0selectO
'hinmaya &nstitute (f Technology 2G

E-Mandi- Electronic Vegetable Market
MRphp
if6isset6VTDE>JESTYKfarmidKZ77P
VfarmidNVTDE>JESTYKfarmidKZE
VtoNIEVfromNIE
VresNmys"lT"uery6Lselect location from farmer where farmeridNVfarmidL7E
if6VrowNmys"lTfetchTarray6Vres77P
global VtoE
VtoNVrowYIZE
Q
VresNmys"lT"uery6Lselect location from agency where loginidNVlogidL7E
if6VrowNmys"lTfetchTarray6Vres77P
global VfromE
VfromNVrowYIZE
Q
VroutesN,sonTdecode6fileTgetTcontents6Khttp.00maps.googleapis.com0maps0api0di
rections0,sonRoriginNK.strTreplace6L L,L^2IL,
Vfrom7.KSdestinationNK.strTreplace6L L,L^2IL,
Vto7.KSalternativesNtrueSsensorNfalseK77-OroutesE
usort6Vroutes,createTfunction6KVa,VbK,Kreturn
intval6Va-OlegsYIZ-Odistance-Ovalue7 - intval6Vb-OlegsYIZ-Odistance-Ovalue7EK77E
00print the shortest distance
RO
M0pO
MpOSnbspEM0pO
MpOSnbspE M0pO
M0formO
Mform idNLcalculate-routeL nameNLcalculate-routeL actionNLWL
'hinmaya &nstitute (f Technology 4I

E-Mandi- Electronic Vegetable Market
methodNLgetLO
MpO
Minput typeNLhiddenL nameNLrouteL valueNL)L0O


Minput typeNLhiddenL idNLfromL nameNLfromL valueNLMRphp echo Vfrom R
OL si%eNL4IL 0O
Minput typeNLhiddenL idNLtoL nameNLtoL valueNLMRphp echo Vto ROL
si%eNL4IL 0O
Minput nameNLsubL typeNLsubmitL valueNLView DouteL 0O
MRphp echo L+istance isL.VroutesYIZ-OlegsYIZ-Odistance-Ote*tE RO M0pO
MpOSnbspE M0pO
M0formO
Mdiv idNLmapLOM0divO
Mp idNLerrorLOM0pO
MRphp
Q
Q
elseP
header6Llocation.map.phpRrouteNIL7E
Q
Q
RO
M0divO
M0bodyO
M0htmlO
'hinmaya &nstitute (f Technology 4)

E-Mandi- Electronic Vegetable Market
F2n0!i(n& 0a.. ;<
+escription . The function that submits the admin form.
&nput. #uto complete te*t bo* string, the dragged marker position of source and
destination
(utput. +isplay the directions of the source and destination
/ogic. -et the place using the googles auto complete and get the longitude and
latitude of the source and destination specified and display the directions using
googles +irectionsDender class. The function is called onload.
F2n0!i(n& Ini!ia.i=$ ;<
+escription . The main function in which all the map related and directions
related classes are initiali%ed and also calls the function to
calculate the distance between the source and destination.
&nput. #uto complete te*t bo* string, the dragged marker position of source and
destination
(utput. +isplay the directions of the source and destination
/ogic. -et the place using the googles auto complete and get the longitude and
latitude of the source and destination specified and display the directions
using googles +irectionsDender class. The function is called onload.
F2n0!i(n& Ca.02.a!$'(2!$;<
+escription . 'alculates the distance between the source and destination.
&nput. Start and end that is the sorce and destination ,the marker position.
(utput. 'alculates the distance and shows the kms using googles
+irectionsService class.
/ogic. -et the start and end and pass it to the class as are"uest to the googles
+irectionsService.Doute.
'hinmaya &nstitute (f Technology 42

E-Mandi- Electronic Vegetable Market
Function: showlocation()
+escription . shows the locations on the map using markers.
&nput. Start and end that is the sorce and destination ,the marker position.
(utput. Shows the location on the map using markers with their coordinates
/ogic. -et the start and end and pass it to the class as are"uest to the googles
+irectionsService.Doute .

:.2 TA-LES
login Table.
S$'ia. N(& C(.2%n Na%$ Da!a!#)$ C(n!'ain!
) loginid &nt6))7 3rimary key
2 username varchar64I7 ot ull
4 password varchar64I7 ot ull
8 Type varchar64I7 otull
9 Status &nt6))7 otull
#gency Table.
S$'ia. N(& C(.2%n Na%$ Da!a!#)$ C(n!'ain!
) agencyid int 3rimary key
2 agencyname varchar6897 otull
4 loginid varchar6897 otull
8 address varchar6897 otull
9 location varchar6897 otull
; licenceno varchar6897 otull
? Mobno int otull
C emailid varchar6897 otull
G status varchar6897 otull
'hinmaya &nstitute (f Technology 44

E-Mandi- Electronic Vegetable Market
$idsinfo Table.
S$'ia. N(& C(.2%n na%$ Da!a!#)$ C(n!'ain!
) bidid int 3rimary key
2 sellid int otull
4 agencyid int otull
8 bidamount int otull
9 date int otull
'omment Table.
S$'ia. N(& C(.2%n N%a$ Da!a!#)$ C(n!'ain!
) id int 3rimary key
2 loginid int otull
4 sub,ect varchar64I7 otull
8 comment varchar6)II7 otull
Sell product Table.
S$'ia. N(& C(.2%n na%$ Da!a!#)$ C(n!'ain!
) sellid int primary key
2 prodTid int otull
4 minprice int otull
8 openingdate date otull
9 closingdate date otull
; status varchar62I7 otull
? "uantity varchar62I7 otull
C farmerid int otull
'hinmaya &nstitute (f Technology 48

E-Mandi- Electronic Vegetable Market
1armer Table.
S$'ia. N(& C(.2%n Na%$ Da!a!#)$ C(n!'ain!
) farmerid int 3rimary key
2 name varchar6897 otull
4 loginid varchar6897 otull
8 address varchar6897 otull
9 location varchar6897 otull
; mobno int otull
? emailid varchar6897 otull
C status int otull
3roduct details table.
S$'ia. N(& C(.2%n Na%$ Da!a!#)$ C(n!'ain!
) productid int 3rimary key
2 productname Varchar6897 otull
4 category Varchar6897 otull
8 price int otull
9 date Varchar6897 otull
>. TESTING
-.a0? -(x T$!in"
&t is focused on the functional re"uirements of the software.
&t is not an alternative to =hite $o* testingE it is complementary approach that
is likely to uncover a different class of errors than =hite $o* methods. &t is
attempted to find errors in the following categories.
'hinmaya &nstitute (f Technology 49

E-Mandi- Electronic Vegetable Market
). &ncorrect or missing functions.
2. &nterface errors.
4. Errors in data structure or e*ternal database access.
8. 3erformance errors.
9. &nitiali%ation errors.
+1i!$ -(x T$!in"
The test is conducted during the code generation phase
itself. #ll errors were rectified at the moment of its discovery. +uring this test
it is ensured that.
). #ll independent parts within a module have been e*ercised at least
once.
2. E*ercise all logical decisions on their true or false side.
4. E*ecute all loops at their boundaries.
T$! T#)$
).Jnit testing
2.&ntegration testing
4.System testing
8.#cceptance testing
Uni! !$!in"&
&n unit testing different modules are tested against the
specifications produced during design phase for the modules in the pro,ect and
the goal is to test the internal logic of the modules.
&n order to perform the unit testing, the best approach we adopted
in this pro,ect is functional testing in which inputs are given to the system for
which the e*pected results are known, boundary values and special values. 1or
'hinmaya &nstitute (f Technology 4;

E-Mandi- Electronic Vegetable Market
this the module selected was advance details where the balance amount falls to
negative indicating there is no more payment re"uired. Secondly performance
testing was done to determine the amount of e*ecution time spent in various
aspects like the module, program throughput, response time, and the device
utili%ation by the program unit.
In!$"'a!i(n !$!in"&
The primary goal of the integration testing is to see if the
modules can be integrated properly. The integration testing is therefore
considered as testing the design. Thus in the integration testing step, all the
errors uncovered are corrected for the ne*t testing steps.
S#!$% !$!in"&
System testing is similar to integration testing, but instead of
integrating modules into programs for testing, programs are integrated into
systems for testing the interfaces between programs in a system. System testing
can be defined in many ways, but a simple definition is that validation succeeds
when the software functions in a manner that can be reasonably e*pected by the
customer.
A00$)!an0$ !$!in"&
(nce the system tests have been satisfactory completed, the
system is ready for acceptance testing. #cceptance testing is the process
whereby actual users test a completed information system in the environment
where it will eventually be used, the end result of which is the userHs acceptance
or re,ection. The admin and staff at 'ompany accepted proposed system after
testing.
'hinmaya &nstitute (f Technology 4?

E-Mandi- Electronic Vegetable Market
In0'$%$n!a. In!$"'a!i(n T!$!in" &
$ottom up approach for testing i.e continuous testing of an
application as new functionality is added. This #pplication
functionality and modules are independent enough to test separately.
The functionality like view0create group, view0edit profile, view0post
notification,view0post news and add0show event are independent to each
other. These functionalities are added separately and tested after the
implementation of each.
T$! Ca$
S$'ia. N(& T$! In)2! Ex)$0!$d
O2!)2!
O/!ain$d
O2!)2!
R$%a'?
) Jsername,
3assword of admin
avigate to
5omepage of
#dmin
5ome page of
#dmin
success
2 Jsername, 3assword
of farmer
avigate to
5omepage of
1armer
5ome page of
1armer
success
4 Jsername, 3assword
of agency
avigate to
5omepage of
#gency
5omepage of
#gency
success
8 &nvalid Jsername,
3assword
Error in login Error in login success
9 1armer
name,location,addres
s,mobno.email
id,user
name,password
1armer
registered
Successfully
1armer
registered
succefully
success
; #gency
name,location,addres
s,mobno.email
id,licence no,user
name,password
#gency
registered
successfully
#gency
registered
successfully
success
? 3roduct name,
opening date,closing
date,"uantity
/isted
product for
bidding
/isted product
for bidding
success
'hinmaya &nstitute (f Technology 4C

E-Mandi- Electronic Vegetable Market
C rate $id
successful
$id successful success
G source,destination show map
location and
route
map location
and route
obtained
success
)I farmer name show farmer
distance
farmer
distance
obtained
success
)) product,price,farmer,
closing date,
status,"uantity
show bid
status
bid status
obtained
success
)2 product
name,"uantity
add product
to sell
product added success
)4 price, product update
product by
admin
product
updated by
admin
success
@. CONCLUSION
These days in !erala farmers normally sell their product by
themselves and they normally get inade"uate price for their products. $y using
the E Mandi system there will be direct communication between the farmer and
government recogni%ed fruits and vegetables agencies. This makes it possible
for farmers to gain more profit for their products and improve their livelihood.
The government can also provide an effective way for the consumers to get the
commodities for best prices preventing fruadalant activities. E Mandi makes it
convenient for the farmers and agencies to establish an effective trade route.
Thus this system can be termed as Aeco-friendlyB since it encourages the
agricultural community by ensuring their welfare.
'hinmaya &nstitute (f Technology 4G

E-Mandi- Electronic Vegetable Market
A. SUGGESTION FOR FUTURE +ORBS
This system can be implemented throughout &ndia thereby ensuring a more
thrusting agricultural community
Various features such as optimal path, ratings to farmers etc can be
implemented
'an improve the e*isting facilities such as SMS and bidding.
'an provide more security for preventing unauthori%ed agencies.
Deliability and fle*ibility can be increased.
19. -I-ILOGRAPHY
Y)Z +e Silva, AThe Dole of &'T in 1ighting #gricultural 3overtyB
3roceedings of the #nnual 'onference of the Southeast #sia Degional
'omputer 1ederation, Malaysia , <anuary 2II9.
Y2Z Dheingold.5, A3hones and Markets. Mobile Technology in Dural
+evelopmentB , 1ebruary 2II9.
Y4Z D.S.3ressman, ASoftware Engineering 1ifth editionB, Mc-raw5ill
publication, )GG?.
Y8Z Tutorials 3oint, ASimply easy learningB, <une 2I)2.
Y9Z &'T#, A &nformation and 'ommunication Technology #gency of Sri
/ankaB, #vailable JD/. Ahttp.00www.icta.lk0 B
'hinmaya &nstitute (f Technology 8I

E-Mandi- Electronic Vegetable Market
Y;Z V13'!, AVegetable and 1ruit 3romotion 'ouncil, !eralam
6V13'!7B,#vailable JD/. Ahttp.00www.vfpck.org0docs0home.aspB
Y?Z -oogle . -etting Started - -oogle Maps <avaScript #3& v4, -oogle
+evelopers., &nternet .https.00developers.google.com0maps0 Y+ec .)9 ,
2I)4 Z Y(ct . I4, 2I)4Z
11. APPENDICES
11.1 OUTPUT SCREENS
HOME PAGE
'hinmaya &nstitute (f Technology 8)

E-Mandi- Electronic Vegetable Market
AGENCY REGISTRATION
'hinmaya &nstitute (f Technology 82

E-Mandi- Electronic Vegetable Market
FARMER ROUTE
'hinmaya &nstitute (f Technology 84

E-Mandi- Electronic Vegetable Market
FARMER DISTANCE
'hinmaya &nstitute (f Technology 88

E-Mandi- Electronic Vegetable Market
-IDDING
'hinmaya &nstitute (f Technology 89

E-Mandi- Electronic Vegetable Market
-ID STATUS PAGE
'hinmaya &nstitute (f Technology 8;

E-Mandi- Electronic Vegetable Market
ADMIN HOME PAGE
'hinmaya &nstitute (f Technology 8?

E-Mandi- Electronic Vegetable Market
ADMIN MANAGE PRICES AND SEND SMS PAGE
'hinmaya &nstitute (f Technology 8C

E-Mandi- Electronic Vegetable Market

11.2 INSTALLATION MANUAL AMD USER MANUAL
11.2.1 In!a..a!i(n Man2a.
1or installing this system, we would need the web server service. &n
windows operating system the =#M3 server is used and /#M3 is used in /inu*
operating system.
&nstall =#M3 Server for Server Services.
S!$)1. +ownload the =#M3 Server 1iles.
+ownload free =#M3 from http.00www.wampserver.com0, depending upon
the operating system either download the 42 or ;8 bit download.
S!$) 2. &nstall =#M3 on your computer.
#fter download install the =#M3 by click on the .e*e =#M3 file.
S!$) 3. 'hoose the directory sample Ac._wampB and click ne*t.
S!$) *. Select0+eselect the icons display action.
S!$) 7. 'lick &nstall $utton.
S!$) :. #fter completion 'lick e*t and then click 1inish button.
S!$) >. Verify @our =#M3 is working.
#fter installing the =#M3 server put the E-Mandi php files are in
0var0www0E-Mandi. Dun the system by using the JD/ as follows.
http.00localhost0E-Mandi0inde* F 5ome.php
11.2.2 U$' Man2a.
The user must follow the instructions given below.
(n loading the E-Mandi, a startup screen appears which allows the user to Sign
&n and Sign Jp.
&f user is a farmer, then login with the username and password and view and
'hinmaya &nstitute (f Technology 8G

E-Mandi- Electronic Vegetable Market
use the system.
&f user is a agency, then login with the username and password and view and
use the system.
&f user is an admin, then admin can manage all activities .
Degistered user can get to know the prices of commodity via SMS or
referring website. #ll the farmers can give information about their products by
using the page add bidding. -overnment agencies can bid on that product by
using the bidding page of agencies home page. The agencies can view the route
and distance from the bidding page. The farmers and agencies can gave their
comments using the feedback page of both farmers and agencies home page.
#dminstrator can manage the prices, add users and mange and view all the details
of farmers and agencies.
'hinmaya &nstitute (f Technology 9I

Anda mungkin juga menyukai