100% found this document useful (2 votes)
1K views76 pages

Web Based System That Will Link Farmers To Buyers

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
1K views76 pages

Web Based System That Will Link Farmers To Buyers

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 76

DESIGN AND IMPLEMENTATION OF A WEB BASED SYSTEM

THAT WILL LINK FARMERS TO BUYERS

ACADEMIC RESEARCH MATERIAL

WE ASSIST OUR CUSTOMERS BY PROVIDING QUALITY MATERIALS FOR


ACADEMIC RESEARCH.

THIS MATERIAL IS FOR RESEARCH PURPOSES ONLY AND SHOULD BE


USED AS GUIDELINE.

DO NOT COPY VERBATIM (WORD FOR WORD)

TERMS OF USE

TERMS AND CONDITIONS APPLIED. SEE OUR WEBSITE “TERMS AND


CONDITIONS” PAGE https://sparklyn.com.ng/sparklyn-terms-policy/

DO NOT COPY THIS MATERIAL VERBATIM.

STUDY THE BELOW MATERIAL CAREFULLY AND DEVELOP YOUR OWN


FRESH MATERIAL. THE FOLLOWING MATERIAL IS JUST A GUIDELINE.

For more Project Topics and Materials

Visit: https://sparklyn.com.ng/project-and-seminar-materials
1
2
APPROVAL PAGE

This is to certify that this project work, “Design and Implementation of a Web

Based System that will Link Farmers to Buyers ”, was written by Student’s

Name with Registration number Your Matric / Registration Number and has

been read and approved for the award of (Degree, ND, or HND) in the department

of (Your Department), Your School (SIAS, SBMT, SHSS), Institution

Address.

………………………………… ………………………….

Project Supervisor’s Name DATE


(Project Supervisor)

………………………………… ………………………….

Your HOD’s Name DATE


(Head of Department)

3
DEDICATION

This work is dedicated to God for his enabling grace, and to all computer enthusiasts who help

to make life a pleasant experience.

4
ACKNOWLEDGEMENT

I owe my indebtedness to my Supervisor (Name of your Supervisor), the Head of Department

(Name of your HOD) and the Lecturers in the department of (Your Department) for their moral

support that facilitated the successful completion of my (Tertiary Institution level). I am

grateful to God Almighty and my parent for their financial support in my career. I really

appreciate you all for everything, Thank you very much.

5
TABLE OF CONTENTS

Preliminary Pages

Title page

Approval page

Dedication

Acknowledgement

Table of Contents

Abstract

CHAPTER ONE

INTRODUCTION

1.1 Introduction

1.2 Background of Study

1.3 Statement of the Problem

1.4 Aim and objectives of the Study

1.5 Significance of Study

1.6 Scope of Study

1.7 Limitations of the Study

1.8 Definition of Terms

CHAPTER TWO

LITERATURE REVIEW

2.1 Introduction

2.2 Theoretical Framework

2.3 Agricultural Management Subsystem

6
2.3.1 Agricultural Administrative Subsystem

2.3.2 Agricultural market-management subsystem

2.3.3 Agricultural Education Subsystem

2.3.4 Agricultural Extension Subsystem

2.4 Functionalities of the Web-Based Agricultural Support System

2.5 Agricultural Production Subsystem

2.6 Piggery Farming or Hog Farming

2.6.1 Management Information System (MIS)

2.2.2 Farm records and Their Uses

2.2.3 Importance of Keeping Farm Records

2.2.4 Types of Farm Records and Their Uses

2.7 Empirical Studies

2.7.1 Managing the Farm Business

2.7.2 Transmission of Data Into Information

2.7.3 Management Information Systems For Tertiary Institution

2.7.4 The Evolution of Management Information Systems (MIS)

CHAPTER THREE

SYSTEM ANALYSIS AND DESIGN

3.1 Methodology Adopted

3.1.1 Problem Identification Using SSADM

3.2 Analysis of the Existing System

3.2.1 Dataflow of the Existing System

3.2.2 Disadvantages of the Existing System

7
3.3 Analysis of the Proposed System

3.3.1 Data Flow Diagram of the Proposed System

3.3.2 Advantages of the Proposed System

3.3.3 Justification of the Proposed System

3.4 Functional Requirements

3.4.1 Use Case Diagram of the Admin / User Privileges

3.5 Data Requirements

3.6 High Level Model of the Proposed System

CHAPTER FOUR

SYSTEM DESIGN AND IMPLEMENTATION

4.1 Objectives of the Design

4.2 Cohesion and Decomposition High level Model

4.3 Control Center / Overall Dataflow Diagram

4.3.1 Proposed System Operation Flowchart

4.1 System Specification and Design

4.4.1 Input and Output Specification

4.4.2 Database Specification and Design

4.4.3 Data Dictionary

4.5 Choice and Justification of Programming Language

4.6 Program Documentation

4.7 Implementation Techniques

4.8 Programming Module Specification

4.8.1 Installation

8
4.9 Computer Hardware Minimum Requirement

4.10 Software Requirement

4.11 Personnel / User Training

CHAPTER FIVE

SUMMARY, CONCLUSION, AND RECOMMENDATION

5.1 Introduction

5.2 Summary

5.3 Conclusion

5.4 Recommendation

REFERENCES

APPENDIX A - "SOURCE CODE"

APPENDIX B - "OBJECT PROGRAMS"

9
ABSTRACT
A web based system for linking farmers to buyers is a software that promotes farm products
and livestock through farm product advertisement. Farm business has different impact on
different people. The relevance of farm business is seen in different ways by different scholars
in the profession. The aim of the study is to design a Web Based System That Will Link
Farmers to Buyers. In achieving this aim, the specific objectives were set out to design and
implement a Farm Product Marketing system to aid farmers in rural areas have a proper
platform to promote their farm product, enhance link between Farmers and end product users
in urban areas and ease the distribution of farm products across the country through
technology. The motivation that led to the implementation of the proposed system is that
agricultural farm products differ from industrial products due to their perishable nature and
special requirements during various harvesting process and transportation operations. Most
times this farmers’ mistake marketing efficiency with marketing margins and physical losses
and state of market competition. The methodology adopted in this study is the structure system
analysis and design methodology (SSADM) which is a technical approach for analyzing and
designing an application or system by applying object oriented programming as well as visual
modeling throughout the software development process. The programming language used is
HTML, CSS, JAVASCRIPT, PHP, SQL and JQUERY. The reason why web programming
languages was used is because, it is platform independent and it is a web based application.
These indicators are also discussed in this chapter. Further, the research also covers major
areas to identify major agricultural marketing problems with their possible solutions using
modern web technology. This study will be of immense benefit to farmers and other
researchers who intend to know more on this study and can also be used by non-researchers to
build more on their research work. The expected result is a web based system that will link
farmers to buyers by showcasing their agricultural products after a successful harvest season.

10
CHAPTER ONE

INTRODUCTION

1.1 Introduction

A web based system for linking farmers to buyers is a software that promotes farm products and

livestock through farm product advertisement. Farm business has different impact on different

people. The software packaged of the proposed system contains a lot of files and records the file

that was designed in details. These files include sales, files which each of this record consist of

files like varieties of farm products and attributes such as; quantity, price, weight, sub-total, total

amount, and grand total of the farm product. Farm business has different impact on different

people. The relevance of farm business is seen in different ways by different scholars in the

profession. Agricultural marketing incorporates all exercises which enhance value to agricultural

products as they move from rural areas of agricultural production to ultimate urban areas for

consumption. A successful and productive marketing system is required in order to ensure fair

returns to farmers but unfortunately, little consideration is paid to this sector across Nigeria.

As a prelude to other parts of this study, this chapter will discuss the background upon which this

study was initiated, the statement of problems that led to this study, the Aim and Objectives of

the study. Others are Significance of the study, Scope of work, Limitation of the study and

Definition of technical terms.

1.2 Background of Study

Agriculture sector in Nigeria is considered a major contributor to economic growth and

development. This sector not only meets food demands of population but also provides raw

material for industry besides providing surplus for exports. Despite the face this sector has

11
witnessed many high points and low points in recent years, overall growth has remained

satisfactory. This sector has a proven great potential to support the nation’s economy both now

and in the future if due consideration is given to solve rising issues. Reasonable agriculture

growth and improvement rely on how concerns various partners particularly farmers who are

facing several risks in farm production and marketing of their farm produce, are adequately

addressed. Regularly, farmers need to bear value reduction in their produce due to poor

infrastructure and post-harvest practices. Moreover, frequent food surpluses and deficiencies

have featured the need to modernize marketing system framework so that goal situations can be

handled. Marketing can be defined and comprehended in various ways but commonly it is

recognized as a place or areas where buyers and sellers gather and interact for buying and selling

goods and services.

Many other scholars have described marketing as an exchange process of goods and services

accompanied by price making mechanism. Agricultural markets play a central role of assembling

rural agricultural produce from scattered and vast production areas and distribute these

commodities further to consumers and other stakeholders in urban and peri-urban areas.

Agricultural marketing most times encompasses activities which may be picking/harvesting,

drying, cleaning, sorting, grading, processing, packaging, labeling, transporting, storage,

promotion and sale of agricultural products. All these major activities contribute in adding value

to agricultural products as these products flow from farm producers to consumers. While some of

these major activities are performed on farmers’ farm, the others are carried out off-farm by

other market intermediaries such as traders and agro-processors.

12
1.3 Statement of the Problem

Agricultural farm products differ from industrial products due to their perishable nature and

special requirements during various harvesting process and transportation operations. There is a

need to design a farm product marking system to aid in displaying farm produce from farmers

across the country to meet major stakeholders in need of these farm products. This will assist in

growing the economy of the country when international investors invest in the farm produce seen

on the marketing system. Furthermore, agricultural marketing includes all business activities

designed to plan, price, promote and distribute want satisfying goods and services to household

consumers and industrial users.

1.4 Aim and objectives of the Study

The aim of the study is to design a Web Based System That Will Link Farmers to Buyers. In

achieving this aim, the specific objectives were set out as follows:

1. To design and implement a Farm Product Marketing system to aid farmers in rural areas

have a proper platform to promote their farm product.

2. To develop a software that will enhance the link between Farmers and end product users in

urban areas.

3. To design an application that will ease the distribution of farm products across the country

through technology.

1.5 Significance of Study

Agriculture is a well-organized and vibrate sector in Africa, it contributes significantly to the

growth of any economy. It also provides employment to over 1.5 million people. Recently, this

sector has shown 8 to 10 percent growth rate per annum due to rising demand of various

13
agricultural products. It is observed that an agricultural commodity changes seven to eight

different hands before reaching ultimate consumers. Functions performed by various market

bodies (especially the middlemen in the market chain) remain one of the most controversial

issues in Africa’s agricultural economy. It is argued that middlemen exploit marginal farmers

and hamper their legitimate share which can be solved with the use of technology to link farmers

directly to buyers.

Besides, the study will serve as reference material for subsequent researcher in the field or

related topics.

1.6 Scope of Study

In the study of this nature, one would like to accumulate information from many areas, but in the

view of the time given for this research, such a wide range could not be reached. The researcher

therefore, concentrated on the development of a web based system that will link farmers to

buyers.

1.7 Limitations of the Study

During the course of this study, many things militated against its completion, some of which are:

1. Time Constraint: The time frame given to accomplish this project was very short due to

school academic calendar and it was carried out under pressure which made the researcher

not to implement some necessary features.

2. Establishment Policies: Establishment policies posed a serious limitation as most staffs

are not ready to release information needed for this project work. There were lots of

information needed from the staffs of this institution to enhance the study which took them

14
time to release or they did not release at all for security purposes, hence the scope was

reduced.

3. Research material: availability of research material is a major setback to the scope of the

study.

4. Frequent power failure: This made the researcher append more money on fuel to ensure

sustainable power.

1.8 Definition of Terms

Computer: A machine used in modern times in organization and homes do manipulate data.

Data: Is a row fact that has no meaning.

Database: A collection of interrelated data stared with controlled redundancy to serve one or

more application.

Information: Information is a data that has been evaluated. It is a processed data.

Information System: A systematic way of organizing the handling of information, from

information gathering to information retrieval and use.

Management: The process of procuring, allocating, combing and utilizing or organizational

resources expressed usually as 3ms (men, materials and money) through planning organizing

directing and controlling activities of work of the organization member to reach certain stated

objectives.

Management Information System: Management Information System is an integrated and

holistic reporting network system in an organization that provides planning and controlling

information for effective decision making.

15
Mobility: This ability of information to move from one point to another, from one person to

another easily and timely.

System: It is a collection of interrelated and interdependent procedures that are joined together to

perform an activity or a task.

Software: The programs that control the computer operation the system program controls the

hardware component of computer which application program controls task performed by

computer.

16
CHAPTER TWO

LITERATURE REVIEW

2.1 Introduction

This chapter focuses on the review of related literature. A literature review includes the current

knowledge as well as theoretical and methodological contributions to a particular topic. It

documents the state of the art with respect to the topic you are writing. It surveys the literature in

the topic selected. In this research work the literature review includes the Theoretical

Framework, Agricultural Management Subsystem, Functionalities of the Web-Based

Agricultural Support System, Agricultural Production Subsystem, Piggery Farming or Hog

Farming, and Empirical Studies.

2.2 Theoretical Framework

Agricultural research focuses on more diverse objectives than other science research, including

cropping production, animal husbandry, water management, soil cultivation, pesticide /herbicide

application, nutrition of nitrogen, etc. The research model proposed by Yao (2003) is suggested

applicable to agricultural research subsystem; we lay out the whole research process into 7

phrases:

1. Idea-generating phase: The phase aims to identify a study topic of interest. It may also

be referred as the preparation or the exploration phase. Literature search and reading

plays important roles in this phase.

2. Problem-definition phase: The objective is to precisely and clearly define and formulate

study question from general observation generated from the previous phase. Problem

17
definition involves careful conceptualization and abstraction. Precisely defined problem

renders. It easier to find related and solved problems, as well as potential solutions.

3. Procedure-design/planning phase: The objective is to make a workable research plan

by considering all issues involved, such as expected findings and results, available tools

and methodologies, experiments designs, system implementation, time and resource

constraints, and so on. This phase deals with planning and organizing research at strategic

level.

4. Observation/experimentation phase: The objective is to observe real world

phenomena, collect data, and carry out experiments. Depending on the nature of the

research disciplines, various tools and equipment, as well as different methods, can be

used.

5. Data-analysis phase: The objective is to make sense out of the data collected. So we can

extracts potentially useful information from data. Statistical software packages can be

used.

6. Results-interpretation phase: The objective is to build rational models and theories that

explain the results from the data-analysis phase. It is necessary to investigate how the

results help answer the research question, and how this answer contributes to the

knowledge of the field. The connections to other concepts and existing studies may also

be established.

7. Communication phase: The objective is to present the research results to the research

community. Communication can be done in either a formal or an informal manner. Books

and scientific journals are the traditional communication media. Web publication is a new

18
tool of communication. Oral presentation at a conference, or discussion with colleagues,

is an interactive means of communication.

2.3 Agricultural Management Subsystem

2.3.1 Agricultural Administrative Subsystem: Agriculture administration is a concept that the

government and the ministry of agriculture should formulate guidelines, provisions, plans,

strategic decisions, and policies of agriculture development and be responsible for carrying out

policies for different purposes, such as, production, distributing, financial, credit, labor, etc.

2.3.2 Agricultural market-management subsystem: Though the transformation from

planning-economy to market-modulated economy has taken place since 1980,s, some major

conflicts have occurred. One most outstanding contradiction is that circulation channels of the

primary products can’t meet the demands of market. Market-management by the governmental

macro-manipulation can help to stock and protect the crucial primary products which related to

the national economy and the peoples' livelihood. For example, under the market economy, some

crucial primary products may overstock largely due to the years’ bumper harvest, quantity and

quality problems. The price will decrease too much once the primary products can’t sell

successfully, which leads to the loss of farmers’ interest to produce in next year. Under such

condition, the government should generate the protective prices to ensure the farmers’ essential

income. On the other hand, when the farmers are faced with serious natural disasters that they

reject to sell their agricultural products, some agricultural products will be in serious shortage

and result in panic buying and high-rising prices, which can’t be accepted by the consumers. In

order to deal with such problems, governments should have enough stock of crucial agricultural

products to stabilize prices in the market.

19
It is obvious that good management will be of great benefit not only to nation but also to farmers

and others. So WASS should be able to help decision makers for better solution.

2.3.3 Agricultural Education Subsystem

Agricultural education means training people to produce, process, and distribute food or fiber,

and spreading scientific and technical information related to all phases of such work. It strives to

help the people of the world improve the quantity and quality of products indispensable to

human life. Agricultural education covers different levels from children’s class in village schools

to graduate study in universities (Anderson, 1980). Education and training are widely

acknowledged as important contributors to national economic development and social well-being

(Sue, 2000).

In general, agricultural education is divided into three level: higher agricultural education, for

example education in universities and institution; vocational agricultural education, including

various kinds involved knowledge and skills in agriculture; and the agricultural training for the

adults or the youth. So a agricultural support system should fulfill all such needs.

2.3.4 Agricultural Extension Subsystem

The agricultural extension subsystem plays key role for agricultural development. The main

function of extension is to disseminate useful information, including the research results in

agriculture, home economics, and related subjects. As well as to helps families to apply such

knowledge to real problems at farm, home, and community level (Anderson, 1980). Such

functions are shown as the follows (Van, 1999):

a. First, it is medium between the agricultural research institutions, universities and farmers;

Second, it fills the gap between agricultural technology into real practice;

20
b. Third, it transfers the skills and knowledge to the farmers as to improve their living

standard and agricultural practices;

c. Forth, it helps farmers to make decision.

d. Firth, it helps extension agents or organizations effectively and efficiently identify the goal

and which decision it tries to help its farmers,

e. Last, extension managers can effectively deal with administrative affairs.

2.4 Functionalities of the Web-Based Agricultural Support System

In order to support a large spectrum of agricultural activities, WASS must be flexible and has

much functionality. This section summarizes the functionalities and required computer

technologies.

Decision support or expert system: There are many factors, which can affect the agricultural

activities. Its' not an easy thing to deal with all kinds of agricultural problems effectively and

correctly no matter to the producers or the governors or others related. Agricultural decision

support system can serve as an important and very useful tool for farmers and decision-makers

for solution to various problems. They can reach an optimal decision based on many

considerations. For example, farmers can get information about what kind of crop should be

grow under different soil type and how to choose the crop varieties, how to fertilize, how to

irrigate, how to prevent the diseases and insects, etc.

Collaborative work support: Collaborative work support provides a sound environment where

all experts for agriculture in different areas can work together virtually, and significantly

promote agriculture development.

21
Collaboratory is one kind of collaborative work support, which is an open meta-laboratory that

spans multiple geographical areas with collaborators interacting via electronic means. It gives a

good chance to scientists to share research instruments, data and information, to exchange

experiences, and to accelerate the development and dissemination of knowledge (Xiaorong et al.,

2003).

Audio/video conferencing is another kind of collaborative work support. The virtual

conferencing greatly supports interaction between scientists, farmers, governors, extension

agents and any others who are engaged in agriculture, and it provide a friendly environment to

communicate with each other. Lots of the agricultural problems can be communicated and solved

effectively and efficiently with such conference. And the audio/video conferencing can act as a

virtual classroom for agricultural education too.

Chat room is another component of the collaborative work support, which will facilitate the

communications between the users. In the agricultural support system there are various chat

rooms in accordance with the difference of subsystem, for examples education chat room for

education subsystem, extension chat room for extension subsystem etc. The users who want to

communicate with the extension agents can enter the extension chat room.

Bulletin Board System (BBS) is integrated into the Collaborative work support system. The same

as the chat room, it is comprised of education BBS, the extension BBS and so on, so the users

can easily keep a track of previous discussion contents in which they are interested. Furthermore,

e-mail is a essential tool suitable for exchanging information too.

Information support: Information support includes information collection, management,

retrieve or searching, exchange of for agricultural usage.

22
Agricultural production is closely involved with many factors a great matter, such as soil,

precipitation, temperature, altitude, price of the products, transportation etc. So it is very

essential to continuously collect information in different aspects and construct database, which is

easy for searching and reuse later on.

Good searching support is very important for scientists, farmers, governors, and others. The

scientists can find information of interest efficiently by researching support (Tang et al., 2003).

With searching support, the farmers can get to know information about crops varieties, livestock,

price of agricultural products etc. The extension agents can collect new information of

agricultural technology by searching. The governors and other decision makers can also benefit

greatly from the searching support.

Exchange of information allows users to experiences, skills, data etc, thus to promote agriculture

development. Researchers can upload research papers, others can share such information by

downloading this; and government or administrator can publicize agricultural policies, rules;

Extension agents can disseminate and popularize new technology through the system, at the

same time farmers can keep up with the progress of new agricultural technology.

2.5 Agricultural Production Subsystem

Agricultural production subsystem is the core and basis component of agricultural system, which

can be further divided into three levels: pre-production system, production system, and post-

production system.

23
Pre-production and post-production subsystem: The agriculture pre-production subsystem

includes all various departments, which provide production material and service for agriculture.

The main tasks include the manufacture and maintenance of farm machineries and other

agricultural facilities; the production of chemical products such as fertilizers and pesticides, the

production of agricultural construction materials, and supplementary materials, the production of

agricultural transportation facilities, the processing of seeds and feed; the circulation,

transportation, information and finance service, and etc.

The agriculture post-production subsystem deals with processing the primary products such as

grain, oil, food, feed,etc.

Production subsystem: Production subsystem is a main component, which directly supplies

food to human being and raw material to industry. It is comprised of five parts: planting,

forestry, animal husbandry aquaculture, etc. The production may effected greatly by soil,

weather, water etc. Farmers need to overcome all kinds of constraints due to resources limits,

etc., in order to get higher yield and better quality products. A combination the web-technology

and agricultural expert system or agricultural decision support system will be very helpful to

farmers so that they can get to under certain latitude and soil type, which is suitable for specific

crop, how to control the insects, what kinds of feedstuff to be feed on the livestock etc.

2.6 Piggery Farming or Hog Farming

Piggery (Pig farming or hog farming) is the raising and breeding of domestic pigs as livestock,

and is a branch of animal husbandry. Pigs are farmed principally for food (e.g. pork, bacon,

gammon) and skins.

2.6.1 Management Information System (MIS)

24
A management information system (MIS) is a computer system that gathers data from multiple

business systems, analyzes the information, and provides reports that help guide management in

decision-making.

2.6.2 Farm records and Their Uses

A farm record is a document (in most cases a book) that is used to keep account of different

activities, events, materials etc. regarding the farm operations. Farm records are different from

farm accounts in the sense that farm accounts deal only with the financial aspects of all farm

operations. Farm accounts deal majorly with the farm expenditures and income and help the

farmer to calculate how his business is doing.

2.6.3 Importance of Keeping Farm Records

a) Farm records help a farmer to keep stock and manage each aspect of the farm properly.

b) They are important for planning and budgeting. They provides a farmer with enough

information needed for proper planning and budgeting at every point in time.

c) They help farmers know the progress and contributions of each aspect of the farm to its

overall success.

d) They are important for proper farm management.

e) They can be very helpful when a farmer needs to access financial aids from banks or

other financial institution.

2.6.4 Types of Farm Records and Their Uses

a) Daily Farm Record: These are the records of all important daily activities and events

that happen on the farm. These records help the farmer keep track of past farming

activities and plan for future activities.

25
b) Records of farm implements and equipment:This is used to keep an inventory of all

the equipment on the farm and their quantity. It can also contain the date of purchase of

the equipment and sometimes their description.

c) Record of agricultural inputs: This record is used to keep track of all agricultural inputs

such as fertilizers, seeds, etc. The record often also contains the amount of that was

bought, the amount that has been used, and what is left.

d) Records of livestock and livestock products: Farmers keep different records of

livestock for each type of livestock on the farm. Also, for livestock that have products

e.g. eggs from chickens, the farmer keeps a record that accounts for the number of eggs

laid every day. If a farmer has cows for milk production, he keeps record of the amount

of liters of milk produced per day.

e) Records of animal feeds: This record is used for keeping an inventory of the types of

animal feed and the quantity purchased, used, and also quantity in stock on a daily basis.

f) Production records: Production records are used to document everything that is

produced on the farm. These records are prepared every week. And then summed up at

the end of the month and also at the end of the year. Thus, there is a weekly record, a

monthly record, and an annual record of everything produced on the farm. They help the

farmer to keep track of how well the farm is doing.

g) Records for farm use: Used for recording the date the land was prepared for farming,

the number of plots or hectares used in planting, the plants planted on the farm and where

they are planted.

h) Farm expenditure records:Farm expenditure records are used to keep a record of all

expenditures.

26
i) Workers records: This type is used to keep the record of staffs, their salaries, and

payment. It is also known as labour record.

j) Vehicle records: It is used to keep a record of all vehicles used on the farm, petrol and

oil used, and also any repairs and servicing and the dates of the repair or servicing.

k) Sales record: Sale records are used to keep a record of all sales made from farm produce.

2.7 Empirical Studies

Farm business has different impact on different people. The relevance of farm business is seen in

different ways by different scholars in the profession.

2.7.1 Managing the Farm Business

According to Stephen (1886), “In general, the value of information is the value of the change in

decision behaviours caused by the information less the cost of the information”. In other words, a

decision maker given a set of possible decisions will select on the basis of the information at

hand. If new information brings about taking a different decision, then the value of the new

information is the difference in value between the outcome of the old decision, less the cost of

obtaining the information.

From the above assertion, computerized farm management information system can be regarded

as the prior technology for farm managers, although some people failed to understand the

importance and as well appreciate the opportunity offered by technology, which would be of a

great advantage to the management at all levels. Without information, farm managers will just

grind to a half.

27
They went further to throw more light on the difference between data and information.

Information is obtained from the data. The farm manager typically has a large multitude of data,

but a limited supply of information.

Data -> Processing -> Information

2.7.2 Transmission of Data Into Information

The relation of data to information is roughly that of raw material to finished products. Data is a

group of unprocessed symbols which represents quantities, actions, things, etc. Information is

data that has been processed into a form that is meaningful to the recipient and is of real or

perceived value in current or prospective decision. Hence, information is data that have been

evaluated in the context of a specific problem or situation. The true value of information is

related to decision that the manager has to make”.

According to Davis who defined management information as “integrated man / machine system

for providing information to support the operation, management and decision making in an

organization”; MC Donough defined Management and Information System (MIS) as “Logical

configuration of the significant element in a selected problem area.

Engr. Agbo defined it as “a supporting system which assist management in his decision for the

attainment of organization objective”

In view of all these attempts to define management information system, it implies that the basic

purpose of MIS in an organization is to provide a means for supplying the decision makers (the

managers) with information for making decision. It also implies that it is a supporting system

which assists the management in his decision for the attainment of set objectives. This shows that

poor management information system can lead to a total liquidation of a management. In this

study effort and intention is geared to effective and efficient means of information.

28
Computerizing a system is to hand over all man activities / manual activities like data gathering,

storage, processing and dissemination of information to computer power. The computer makes

for the availability of accurate, efficient, and timely information promptly to the farm manager.

Jorue et al. (2000) in their research work “Given that information innovation adoption is not due

to either government or similar edict (e.g. from Bank lender), nor due to technological necessity,

the research hypothesis is that information innovation adoption depends on the concurrent

presence of three factors: Thus

1. Knowledge gap between the software developer and user: This gap involves the

knowledge and information that each farmer possesses and use for operating and managing

her / his farm relative to software developer’s concept. Its large gap may result in different

viewpoints of the decision problem and its solution. If this knowledge gap is small, the

adoption will be facilitated, otherwise adoption will not occur.

2. Extent of farmer’s perception of the economic benefit and ease of management

derived from the adoption of information system innovation: A clearly perceived

benefit will reinforce adoption behaviour, otherwise adoption will not occur.

3. Skills needed to manage the information innovation: Adoption will be accelerated if

farmers have the skills, otherwise adoption will be slowed down. According to these

scholars, “successful use of information system depends on the three factors:

a. The extent to which information innovation operation fits with the farmers

existing work environment: The better this fit, the greater the use and vise – versa.

b. The matching of the information innovation capacity with the farmer’s decision

context: The more flexible the system to accommodate the farmer’s requirements,

the more successful the system will be.

29
c. Suitable system facilities such as introduction of inputs, interface design, output

type and design and integration with the other applications: This aspect defines

the level of application friendliness. The greater the friendliness, the more likely will

the application be successful and vice –versa”.

2.7.3 Management Information Systems For Tertiary Institution

According to Akuwudike et al., (2004), “Evolution of computer – Based management

information system (MIS), this author emphasized on the evolution of computer-based

Management Information System which started from stage one (1) data processing to the last

stage which is interactive networks. It is this last stage that we have up to date.

Table 2.1 Evolution of Computer – Based Management Information System (MIS)

S/ Stages Time Period Description


N
1 Centralized data processing (Batch 1954- 1964 Accounting and clerical
processing) applications pay rolling and salary
administration.
2 Management focused data 1965- 1980 Direct support DSS for
processing management and operation
function
3 Decentralized End – user 1980- 1985 Personal computers under the
computing (real time processing direct control of users
4 Interactive networks 1986-date Lining individuals end-users

2.7.4 The Evolution of Management Information Systems (MIS)

A management information system (MIS) is a computer system that gathers data from multiple

business systems, analyzes the information, and provides reports that help guide management in

decision-making.

30
MIS started as a data capturing and processing system and evolved into a more complex and

intelligent system. Here’s how MIS evolved through the years.

1950-1960: Electronic Data Processing (EDP): Electronic Data Processing (EDP) systems,

also called Transaction Processing Systems (TPS), were groundbreaking at the time. It was the

first large-scale computer information system to centralize and process day-to-day transactions

and activities such as cash deposits, ATM transactions, and payment orders. Shifting from

manual to electronic made transaction processing and record-keeping a much faster process.

1960-1970: Management Information Systems (MIS): It wasn’t long before the EDP system

was upgraded to a Management Information System (MIS) that was able to generate reports from

the data it collected. MIS pulled reports from historical data to determine cost trends, do a sales

analysis, keep track of inventory, and measure production performance.

When managers evaluated the information in these reports, they could see which areas of the

business were underperforming and adjust decisions accordingly.

1970-1980: Decision Support Systems (DSS): Decision Support System (DSS) provided

historical and ad hoc reports on both internal and external information for example, internal sales

reports and external market pricing.

This advancement brought a new level of decision-making to businesses. Management could

more accurately forecast sales, perform a risk analysis, and make bolder strategic decisions.

It was during this era that personal computers entered the workplace. PCs were connected to the

main server so information became accessible to employees throughout the company. This led to

a significant boost in productivity.

31
With this came the need for expert skills to manage these computer networks. Information

technology (IT) soon became a burgeoning career and a degree in Management Information

Systems became sought after.

1980-1990: Executive Information Systems (EIS): As PCs put power in the hands of

executives, they could purchase software tailored to their department’s needs, such as

accounting, project management, and HR systems. It resulted in multiple systems within an

organization working independently.

This led to Executive Information Systems (EIS), a more refined version of the DSS system. It

allowed executives to analyze their department’s output and how it impacted the business’s

overall performance.

1990-2000: Enterprise Resource Management (ERP) Systems: Multiple information systems

that were not integrated resulted in employees wasting time duplicating information across

systems. MIS had to become efficient.

It did that by creating Enterprise Resource Management (ERP) systems that integrated

knowledge management systems and expert systems.

Knowledge-based systems were used to organize and disseminate business knowledge within an

organization. Example: placing a best practices resource on the intranet.

Expert systems started to use artificial intelligence to provide advice and solutions. Example:

proposing faster delivery routes or assessing risk profiles for credit applications.

For the first time, different systems were “talking” to each other.

How is MIS Changing?

MIS systems are becoming more intelligent. Most of the trends below are not new but they will

continue to shape how management information systems function in the future.

32
a) Automation and cross-functional integration: Automation can be used for repetitive

tasks and to cross-populate data with other systems. This frees up employees’ time to focus

on higher-value tasks. For example, automation can track inventory and alert you when

stocks are low or automatically reorder stocks when needed without human intervention.

b) Big data analytics: Worldwide, around 2.5 quintillion bytes of data are being generated

daily. That’s a ton of data and a lot of it is harvested by businesses. From customers’

buying habits to social media interactions, data is rolling in from everywhere. Management

information systems not only have to cope with the influx of data, but also analyze it. The

information gleaned can be used to make operations more efficient, improve customer

service, and create personalized marketing campaigns.

c) Artificial intelligence (AI): Artificial intelligence is making waves across almost every

sector. AI has been the biggest disruptor in business in recent years. From chatbots to self-

driving cars, AI is already a part of our lives and will continue to become more entrenched.

d) AI technology is capable of learning patterns and identifying anomalies when processing

big data. It can be used to detect fraud and determine the risk profile of applicants applying

for credit.

e) Cyber security: Cybercrime is a threat every business faces. Most cyber attacks are

financially motivated but some want to access or steal information to gain a competitive

edge. A cyber attack can be a fatal blow to a business. Research by Fundera shows that

60% of small businesses that experience a cyber attack go out of business within six

months. Companies now invest heavily in protecting their data. As cybercriminals become

more sophisticated, cyber security software will have to stay one step ahead.

33
Outdated technology can hold your business back. If your business still uses an old

management information system, it may be time to upgrade. A more robust MIS can

enhance productivity and improve customer service, and that ultimately leads to higher

profits."

34
CHAPTER THREE

SYSTEM ANALYSIS AND DESIGN

3.1 Methodology Adopted

The structured system analysis and design methodology (SSADM) was adopted for the analysis,

design and implementation of this system. Structured systems analysis and design methodology

(SSADM) is a set of standards for systems analysis and application design. It uses a formal

methodical approach to the analysis and design of information systems.

SSADM follows the waterfall life cycle model starting from the feasibility study to the physical

design stage of development. One of the main features of SSADM is the intensive user

involvement in the requirements analysis stage. The users are made to sign off each stage as they

are completed assuring that requirements are met. The users are provided with clear, easily

understandable documentation consisting of various diagrammatic representations of the system.

SSADM breaks up a development project into stages, modules, steps and tasks. The first and

foremost model developed in SSADM is the data model. It is a part of requirements gathering

and consists of well defined stages, steps and products. The techniques used in SSADM are

logical data modeling, data flow modeling and entity behavior modeling.

a) Logical Data Modeling: This involves the process of identifying, modeling and

documenting data as a part of system requirements gathering. The data are classified

further into entities and relationships.

b) Data Flow Modeling: This involves tracking the data flow in an information system. It

clearly analyzes the processes, data stores, external entities and data movement.

35
c) Entity Behavior Modeling: This involves identifying and documenting the events

influencing each entity and the sequence in which these events happen.

3.1.1 Problem Identification Using SSADM

The SSADM was used to discover some problems;

a) Feasibility Study: This assumes that the proposed project has been identified as a result of

an exercise such as strategic planning and sets out to evaluate the various technical,

organizational, financial and business options available. The aim is to establish the whether

the direction and requirements of the project are feasible. The aim is to evaluate the

feasibility of the proposal, involving an analysis of the problem and determination of the

best solution; usually a range of potential solutions are presented.

b) Investigation of the Environment: The process of identifying, modeling and documenting

the data requirements of the system being designed. The result is a data model containing

entities (things about which a business needs to record information), attributes (facts about

the entities) and relationships (associations between the entities).

c) Business System Option (BSO): A BSO defines the functional scope of a proposed

solution. At its most basic level it consists of textual descriptions of those requirements

satisfied by the solution. All BSOs must satisfy the minimum requirement as identified by

user representatives.

d) Requirement Certification: Requirement Certificate aims to equip the learner or end user

(client) with the advanced knowledge of project management and will enable the learner to

understand the system requirement to uphold the project management required parameters.

e) Technical System Option (Implementation): There is availability of software, hardware

and technical man power for the development and running of the new system. Hence the

36
system is technically feasible as the requirement can be met without stress and much

financial input. The software and hardware requirements include an Integrated

Development Environment for web based applications, a standard PC for running this

application, a local server and an up to date web browser for testing. As a programmer, the

researcher can provide these requirements with ease and as such, this project is technically

feasible.

f) Logical Design: Technical system options are production and logical design updates and

query processing and system dialogue.

g) Physical Design: physical database design and a set of program specifications Program

specifications are using the logical system specification and the technical system

specification.

3.2 Analysis of the Existing System

The analysis of the existing system comprises the following;

a) Input Analysis: The input of layout of the existing system comprises user intervention

such as; filling of link request form, opening account and login into system.

b) Process Analysis: The customer is registered and being given account number, when the

customer wants to apply for linking farmers to buyers, the customer enters the ID number

in the provided field and information related to that Identification number is displayed if

the information matches the customer’s information, the customer then proceed to choose

the type of farmer he/she prefer and then answer security questions then request for the

card. Why this is necessary to be implemented as an improvement to the existing system is

that it takes away the hassles of a physical registration process and makes it possible for

multiple users to carry out the registration process simultaneously without any delays.

37
c) Output Analysis: The output from the system designed is generated from the system

inputs. These reports can also be presented as hard copy.

3.2.1 Dataflow of the Existing System

WEB BASED SYSTEM THAT WILL


LINK FARMERS TO BUYERS

Input Analysis Output Analysis

Process
Fill Link Analysis Produce Result
Request Form

Process Request
Opening Account Generate Report

Login to System Process New Account

Validate Login Details

Figure 3.2.1: Dataflow of the Existing System

3.2.2 Disadvantages of the Existing System

Some of the problems identified in the present system include:

1. The speed of processing data manually is low and prone to errors.

2. The current process is stressful to customers

3. Things done manually were very uncomfortable.

3.2.3 Weakness of the existing System

38
Agricultural farm products differ from industrial products due to their perishable nature and

special requirements during various harvesting process and transportation operations. There is a

need to design a farm product marking system to aid in displaying farm produce from farmers

across the country to meet major stakeholders in need of this farm products. This will assist in

growing the economy of the country when international investors invest in the farm produce seen

on the marketing system. Furthermore, agricultural marketing includes all business activities

designed to plan, price, promote and distribute want satisfying goods and services to household

consumers and industrial users.

3.3 Analysis of the Proposed System

An overview of the proposed system flow chat has a relationship between an object to another

just like the entity. Relationship diagram, the object relationship pair can be graphically

represented by a diagram called entity relationship diagram (Entity Relationship Diagram). It is

mainly used in database applications but now it is more commonly used in data design. The

primary purpose of ERD is to represent the relationship between data object.

39
3.3.1 Data Flow Diagram of the Proposed System

This is a data flowchart of the proposed system as shown in figure 3.2.

Sends Success /

ADMIN TABLE ADMIN

Found / Not Found Login

LOGIN ACCOUNT
Found / Not Found Login

Success /

USER TABLE USER

Success /
Sends Failure

Registration Details

REGISTER

Figure 3.2: Data Flow Diagram of the Proposed System

3.3.2 Advantages of the Proposed System

Agriculture is a well-organized and vibrate sector in Africa, it contributes significantly to the

growth of any economy. It also provides employment to over 1.5 million people. Recently, this

sector has shown 8 to 10 percent growth rate per annum due to rising demand of various

agricultural products. It is observed that an agricultural commodity changes seven to eight

different hands before reaching ultimate consumers.

40
Functions performed by various market bodies (especially the middlemen in the market chain)

remain one of the most controversial issues in Africa’s agricultural economy. It is argued that

middlemen exploit marginal farmers and hamper their legitimate share which can be solved with

the use of technology to link farmers directly to buyers.

3.3.3 Justification of the Proposed System

Agriculture sector in Nigeria is considered a major contributor to economic growth and

development. This sector not only meets food demands of population but also provides raw

material for industry besides providing surplus for exports. Despite the face this sector has

witnessed many high points and low points in recent years, overall growth has remained

satisfactory. This sector has a proven great potential to support the nation’s economy both now

and in the future if due consideration is given to solve rising issues. Reasonable agriculture

growth and improvement rely on how concerns various partners particularly farmers who are

facing several risks in farm production and marketing of their farm produce, are adequately

addressed. Regularly, farmers need to bear value reduction in their produce due to poor

infrastructure and post-harvest practices. Moreover, frequent food surpluses and deficiencies

have featured the need to modernize marketing system framework so that goal situations can be

handled. Marketing can be defined and comprehended in various ways but commonly it is

recognized as a place or areas where buyers and sellers gather and interact for buying and selling

goods and services.

3.4 Functional Requirements

The following figure 3.4 shows the various modules involved in the system and available to

users who have limited access and to the Admin who have full access to the system.

41
3.4.1 Use Case Diagram of the Admin / User Privileges

Update Record

Ensure Link Btw


Farmers to Buyers

Activate Account

Figure 3.3: Use Case diagram of the Admin

ADMIN

Input Data

View Linked Buyers


END-

Create Account

Figure 3.4: Use Case diagram of the User (Client)

3.5 Data Requirements

42
The following are the data requirements of new and existing users in the system. New users are

required to create an account by providing some necessary information, while existing farmers

(users) can directly request link to buyers by providing their registered account Information

required by the system.

a) Email Address: The user's email address is required during registration and subsequent

login on the system.

b) Password: The user is required to enter a secured password or pin during registration and

subsequent login on the system

c) User Name: The user is required to enter a nickname which he/she will be addressed as

subsequently for security reasons.

d) Passport: This field contains the photograph or picture of the account holder or system

user.

e) Address: This field contains the address of the system user.

43
3.6 High Level Model of the Proposed System

The high level model of the proposed system is illustrated below;

WEB BASED SYSTEM THAT WILL LINK FARMERS TO BUYERS

HOM Admin END-USER (Client)


E
Update Record
Open Account
Enable Linkage
Request Buyer’s Link
Activate Account

Respond Input Password

View Linked Buyers

Respond

Figure 3.5: High Level Model of the Proposed System

44
CHAPTER FOUR

SYSTEM DESIGN AND IMPLEMENTATION

4.1 Objectives of the Design

The following are the objectives of the proposed Web Based System That Will Link Farmers To

Buyers design;

1. To design and implement a Farm Product Marketing system to aid farmers in rural areas

have a proper platform to promote their farm product.

2. To develop a software that will enhance the link between Farmers and end product users in

urban areas.

3. To design an application that will ease the distribution of farm products across the country

through technology.

4.2 Cohesion and Decomposition High level Model

Description: This is a cohesion and Decomposition High level Model

Admin

Update Record Ensure Linkage Activate Account Deactivate Account

45
Figure 4.1: Admin User Privileges

Client
(User)

Create Request Link to Input Password View Linked Respond


Buyers
Account Buyers

Figure 4.2: Client (User) Privileges

46
4.3 Control Center / Overall Dataflow Diagram

Description: This is a control center / overall dataflow diagram

Web Based
System That Will
Link Farmers to
Buyers

Input from
keyboard

Process

Result to
Disk Report screen
storage (output)

Figure 4.3: Control Center / Overall Dataflow Diagram

47
4.3.1 Proposed System Operation Flowchart

Description: The diagram below entails the proposed system operation flowchart

Start

Enter
ID Number
\

Validate ID

Request Linkage

Input Kind of
Buyer Needed

Answer security
question B

NO Displa
Are answers y Error
correct? messa
YES

Send Request

48
Save

Sto
Figure 4.4: Proposed System Operation Flowchart

4.1 System Specification and Design

4.4.1 Input and Output Specification

Description: The diagram below entails the Input and Output Specification of the proposed

system.

LINK FARMERS TO

Customer
Enter Phone Number

Password
Enter Password

Sign In Register Here

Figure 4.4: Input Specification for Login System

Login Successful
Or
Login Unsuccessful

Figure 4.5: Input and Output Format

49
4.4.2 Database Specification and Design

The web based system that will link farmers to buyers database contains four (4) tables:

Table 4.5: Payment Table


S/ FIELD NAME DATA TYPE FIELD LENGTH
N
1 id Int 30
2 fname varchar 100
3 amount varchar 50
4 penalty varchar 1000
5 contact varchar 50
6 deduction varchar 30
7 overtiime varchar 30
8 datereg timestamp

Table 4.6: Role Table


S/N FIELD NAME DATA TYPE FIELD LENGTH
1 Id Int 30
2 Role Varchar 50
3 description Varchar Medium text
4 payment Varchar 30
5 Datereg Timestamp

Table 4.7: staff Table

S/N FIELD NAME DATA TYPE FIELD


LENGTH
1 id Int 30

50
2 contact varchar 100
3 address varchar 1000
4 pass varchar 100
5 fname varchar 100
6 lname varchar 100
7 Gender varchar 10
8 Photo varchar 100
9 Role varchar 100
10 Datereg Timestamp
Table 3.8: Piggery Table

S/ FIELD NAME DATA TYPE FIELD


N LENGTH
1 Id Int 30
2 Cname varchar 100
3 Typeofpig varchar 50
4 Numberofpig varchar 20
5 Gender varchar 10
6 Contact varchar 20
7 Address varchar 300
8 Datetime varchar 50
9 Validate varchar 20

4.4.3 Data Dictionary

The data dictionary table contains the list of field and their description used in the database table

structure designation.

Table 4.5: LinkFarmertoBuyers Request table structure

S/N Field Name Description


1. Id This field signifies the unique identification of
the table and it’s a primary key.
2. Country It consist of the list of countries
3. It consist of the list of states within a specific
Location
country
4. Fname It signifies the full name of the End-user

51
5. Gender It signifies the gender of the End-user
6. Address It signifies the address of the End-user
7. It signifies the bank verification number (BVN)
Photo
of the End-user
8. Pn It contains the passport photo of the End-user
9. Pass It contains the end-user’s password / pin
10. Datereg Date of registration

4.5 Choice and Justification of Programming Language

To ensure a standardized object oriented program in its entire ramification, HTML, CSS,

JAVASCRIPT, PHP and MYSQL Database was used in the development of a Web Based

system that will link farmers to buyers. These entire programs are used to ensure effective

program. The motive behind the use of the language is its compatibility with several Operating

Systems. It is object oriented and combines the feature of hypertext Preprocessor (PHP) and

JavaScript platform thereby making it to run on any Operating System. It is secured in that it

does not cause harm to user’s system and access to information is restricted. The language is

simple and easy to learn.

Below is a brief explanation of the programming languages used;

HTML: HTML is a markup language for describing web documents (web pages).

1. HTML stands for Hyper Text Markup Language

2. A markup language is a set of markup tags

3. HTML documents are described by HTML tags

4. Each HTML tag describes different document content

CSS: stands for Cascading Style Sheet, it describes how HTML elements are to be displayed on

screen, paper, or in other media. CSS saves a lot of work. It can control the layout of multiple

web pages all at once and External style sheets are stored in CSS files
52
JAVASCRIPT: JavaScript is the programming language of HTML and the Web. Programming

makes computers do what you want them to do. JavaScript is easy to learn.

Hypertext Preprocessor (PHP): PHP is a server scripting language, and a powerful tool for

making dynamic and interactive Web pages. PHP is a widely-used, free, and efficient alternative

to competitors such as Microsoft's ASP.

MYSQL: SQL is a standard language for accessing and manipulating databases. SQL stands for

Structured Query Language, SQL lets you access and manipulate databases, and SQL is an ANSI

(American National Standards Institute) standard. SQL can perform the following task;

1. SQL can execute queries against a database

2. SQL can retrieve data from a database

3. SQL can insert records in a database

4. SQL can update records in a database

5. SQL can delete records from a database

6. SQL can create new databases

7. SQL can create new tables in a database

8. SQL can create stored procedures in a database

9. SQL can create views in a database

10. SQL can set permissions on tables, procedures, and views

4.6 Program Documentation

The main purpose of program documentation is to describe the design of your program. The

documentation also provides the framework in which to place the code. As coding progresses,

the code is inserted into the framework already created by the program documentation. The

following was documented for the successful implementation of the software;

53
a) README file which contains a brief description of the project, installation instructions, a

short example/tutorial,

b) Document your code which comprises application of coding conventions, such as file

organization, comments, naming conventions, programming practices, etc.

c) Version of the files along with the major edits you did in each version

4.7 Implementation Techniques

The software Implementation is a process carried out to make changes on the tested programs

developed in the system. The software will be installed successfully if the hardware requirement

and the software requirement are available. The following phase contains how the software was

implemented successfully;

1) Coding: The coding system has been developed to meet the following main objectives;

a) To design and implement a Farm Product Marketing system to aid farmers in rural areas

have a proper platform to promote their farm product.

b) To develop a software that will enhance the link between Farmers and end product users in

urban areas.

c) To design an application that will ease the distribution of farm products across the country

through technology.

2) File conversion: During file setup it is necessary to convert the existing master file to a new

page. This new form is the responsibility of the newly designed, which undergoes the process of

converting the old system master file to a new one.

System Conversion is a transformation process stage in system implementation at which the

newly designed system is put in place of the old system by the organization after been tested and

documented to prove that it is working. It is a significant milestone after which the ownership of
54
the system if been officially transferred from the researcher (analyst) and the programmer to the

end user.

The under listed are various system conversion briefly described to enable the implementation

process.

a) Parallel System of Conversion: This takes place simultaneously at the same time, runs

between the old and new system until probably the new system is completely put in place

and the old system discarded.

b) Direct System of Conversion: This takes place automatically at a time over a short period

of time. It saves cost, manages time and enhances fast operation but finds to a high risk of

failure without new system comparability.

3) Changeover Procedure:

This is the process of changing from the former or previous system to the new system. In a

changeover procedure, the organization change from the existing system to new system. This can

be done in one of the following ways:

a) Parallel Changeover: This is the process of running the two systems simultaneously and

comparing their results until the new system proves satisfactory; after which the use of the

new system would be commenced.

b) Direct Changeover: This is the case whereby the new system replaced the old system

immediately after development and when it must have proved successful. This procedure

may be drastic if the new system fails.

c) Phased Changeover: In phased changeover method, the system usually starts with one

unit or department of the organization. The advantage is that the organization would avoid

losses in case it (the new system) fails.

55
4) Commissioning: This is the process of ensuring that installed systems are functionally tested

and capable of being operated and conform to the design intention.

4.8 Programming Module Specification

Programming module specification follows successful implementation and incorporates also

evaluation of the system in order to give the desired or necessary improvement. It includes

monitoring the process of the other stages of system development to ensure that the development

plan and objective are being accomplished. There are three types of system maintenance which

include;

a) Corrective Maintenance: This covers maintenance, which is needed to put right coding

errors and other faults, which may be introduced into the software. It include, the routine

“debugging” of newly produced or recently amended code and emergency error correction

in response to report faults.

b) Adaptive Maintenance: This covers the changes which are made to the software to meet

new or changed circumstances, such as restructuring of a database, alternatives in

operating procedures and changes to hardware or software versions.

c) Preventive Maintenance: This covers attempts to make the software perform more

effectively. It includes user requests for enhancement, improvement due to experience,

changes to make the software more easy to use and rewrite the code to make the

maintenance that is specifically used for the new system to reduce its chances of breakages.

4.8.1 Installation

56
The following are the steps required for the installation of the new web based system that will

link farmers to buyers;

Installing Software from the CD Drive or Flash Drive

Step 1: Insert and Open you Compact Disk (CD)

Step 2: Copy the “link-farmers-to-buyers” folder and paste in your WAMP server Path to

Paste the folder: C:\wamp\www\

Step 3: Turn on your Window Apache MySQL and PHP (WAMP Server 2.4)

Step 4: Open your browser e.g Mozilla Firefox, Google Chrome.

Step 5: Type in this URL below on your address bar of your browser

localhost/phpmyadmin/

Step 6: Ensure the username is root and password is empty before clicking on Go button

Step 7: Click on Import and Browse your computer to search for LinkFarmerstoBuyers.db

Path: C: \wamp\www\link-farmers-to-buyers\db

Step 8: Click and open on LinkFarmerstoBuyers, then click on Go button below the import page.

Step 9: Type in this URL below to execute the Software

127.0.0.1/link-farmers-to-buyers/

Step 10: You’re done

Re-Executing the Software After Installation

Step 1: Start your WAMP Server

Step 2: Open your browser and type in the URL below and click enter

127.0.0.1/link-farmers-to-buyers/

4.9 Computer Hardware Minimum Requirement

57
The software designed needed the following hardware for an effective operation of the newly

designed system.

a) A system running on AMD, Pentium 2 or higher processor

b) The random access memory (ram) should be at least 512mb.

c) Enhanced keyboard.

d) At least 20 GB hard disk.

e) V.G.A or a colored monitor.

4.10 Software Requirement

The software requirements include:

a) A Windows XP operating system or higher version for faster processing

b) MySQL database

c) Apache webserver

d) PHP 5.6+ runtime environment

4.11 Personnel / User Training

Before the user can use the software, it is necessary to give a thorough training on how to use the

software. It is also important to note that the users of the software are the operators. Training

involves the tutorials, lectures or other methods used to make the users to understand how to use

and maintain the software program. The following steps would help train and guide the users on

how to use the program effectively:

a) Follow the instruction as in the software installation above

b) Right click on the web based system that will link farmers to buyers Software and copy

to the installed WAMP server

c) If successful, click on your browser and type in 127.0.0.1/link-farmers-to-buyers

58
d) Enter the security password and click on login

e) Enter the main menu, select any of the submenus you want and continue

f) After performing necessary actions on the submenu, exit the program from the browser

close button

CHAPTER FIVE

SUMMARY, CONCLUSION, AND RECOMMENDATION

5.1 Introduction

It is important to ascertain that the objective of this study was on web based system that will link

farmers to buyers. In the preceding chapter, the relevant data collected for this study were

presented, critically analyzed and appropriate interpretation given. In this chapter, certain

recommendations made which in the opinion of the researcher will be of benefits in addressing

the web based system that will link farmers to buyers.

5.2 Summary

A web based system for linking farmers to buyers is a software that promotes farm products and

livestock through farm product advertisement. Farm business has different impact on different

people. The software packaged of the proposed system contains a lot of files and records the file

that was designed in details. These files include sales, files which each of this record consist of

files like varieties of farm products and attributes such as; quantity, price, weight, sub-total, total

amount, and grand total of the farm product. Farm business has different impact on different

people. The relevance of farm business is seen in different ways by different scholars in the

profession. Agricultural marketing incorporates all exercises which enhance value to agricultural

products as they move from rural areas of agricultural production to ultimate urban areas for

consumption. A successful and productive marketing system is required in order to ensure fair

returns to farmers but unfortunately, little consideration is paid to this sector across Nigeria.
59
The motivation that led to the implementation of the proposed system is that agricultural farm

products differ from industrial products due to their perishable nature and special requirements

during various harvesting process and transportation operations. Most times this farmers’

mistake marketing efficiency with marketing margins and physical losses and state of market

competition.

The aim of the study is to design a Web Based System That Will Link Farmers to Buyers. In

achieving this aim, the specific objectives were set out to design and implement a Farm Product

Marketing system to aid farmers in rural areas have a proper platform to promote their farm

product, enhance link between Farmers and end product users in urban areas and ease the

distribution of farm products across the country through technology.

The methodology adopted in this study is the structure system analysis and design methodology

(SSADM) which is a technical approach for analyzing and designing an application or system by

applying object oriented programming as well as visual modeling throughout the software

development process. The programming language used is HTML, CSS, JAVASCRIPT, PHP,

SQL and JQUERY. The reason why web programming languages was used is because, it is

platform independent and it is a web based application. These indicators are also discussed in

this chapter. Further, the research also covers major areas to identify major agricultural

marketing problems with their possible solutions using modern web technology. This study will

be of immense benefit to farmers and other researchers who intend to know more on this study

and can also be used by non-researchers to build more on their research work. The expected

result is a web based system that will link farmers to buyers by showcasing their agricultural

products after a successful harvest season.

60
5.3 Conclusion

In essence, the research work was successfully researched to meet the objectives set at the

beginning of the project work. While one cannot completely rule out one form of limitation or

the other, it was a success to a greater extent. On the whole, the research has been a worthwhile

exercise. It has afforded the researcher the opportunity to really appraise the situation on the

ground and allow one to bring out areas that might need attention for the improvement of the

research work.

5.4 Recommendation

The following are recommendations for further study on this research work;

Only few across the counter information were provided for in the research work, it is strongly

recommended for subsequent researcher to expand the scope of the research work.

61
REFERENCES
A.W.van den Ban, Agricultural Development; Opportunities and Threads for Farmers and
Implications for Extension Organizations, The Journal of Agricultural Education and
Extension, 1999,vol. 6. no.3. pp.145-156
Akuwudike, H. C and Ugwu O. I (2005); Management Information Systems for Tertiary
Institutions
Alvarez, J. and Nuthall, P. (2001h) Florida, dkry farmer’s opinions about using Western
Farmers.
Anderson, Robert S., The Encyclopedia Americana, Americana Corporation, c1980, vol. 1.
pp.342.
Anderson, Robert S., The Encyclopedia Americana, Americana Corporation, c1980, vol. 1.
pp.353.
Anderson, Robert S., The Encyclopedia Americana, Americana Corporation, c1980, vol. 1.
pp.345.
Beck, A.C., Jr., and E. D Hillmer (1972); A Practical Approach to Organization computerized
farm Information system, farm and Hort, cultural management group (1984) Organization
Psychology.
Decision for Agricultural Business, “Agricultural Extension Development Through MBO.
Garoyan, L., and others (1971); Phannia and Scheduling Post- Unification
Gwinn, Robert P., The New Encyclopaedia Britannica, Encyclopaedia Britannica, Inc., c1993,
v1, pp. 156.
Hu Yuegao, Agricultural Development Principle, China Agricultural University Press, Beijing,
China, 2000, pp.139-155.
Johnson, G. L., and others, (1961) A Study of management process of Mid-Jorge Alvarez and
Peter Nuthall (2000); Factors Affecting farmer adoption and Jos ª M Parente de Oliveira
and Clovis Torres Fernandes, A Framework for Adaptive Educational Hypermedia
System, Proceedings of WSS'03, 2003, pp. 55-62.
Lisa Fan and Yiyu Yao, Web-based Learning Support Systems, Proceedings of WSS'03, 2003,
pp. 43-48.
ObiohaIwuoha, Edebeatu Dom (2015): An Introduction to System Programming, (2nd Edition)
Ingenieux Publishers, Owerri, Nigeria.
ObiohaIwuoha, Edebeatu Dom (2016): Management Information System (2nd Edition)
Ingenieux Publishers, Owerri, Nigeria.
Sue KilpatrickˈEducation and Training: Impacts on Farm Management Practice,
http://www.crlra.utas.edu.au/files/discussion/2000/D03-2000.pdf
62
Tang, H., Wu, Y., Yao, J.T., Wang, G.Y. and Yao, Y.Y., CUPTRSS: A Web-based Research
support System, Proceedings of WSS'03, 2003, pp. 21-28.
Ugwu O. I., Madu F. U.(2011) Modern System Analysis and Design. Ingenieux Publishers,
Owerri, Nigeria use of computerized information systems.
Xiaorong, Xiang, Yingping, Huang, Gregory Madey, Steve Cabaniss, A Web-based
Collaboratory for Supporting Environmental Science Research, Proceedings of WSS'03,
2003, pp. 29-26.
Yao, J.T. and Yao, Y.Y., Web-based support Systems, Proceedings of WSS'03, 2003, pp. 1-5.
Yao, Y.Y., A Framework for Web-based Research support Systems, Proceedings of the Twenty-
sventh Annual International Computer Software and Applications Conference, Dallas,
USA, November, 2003, IEEE Computer Society Press, pp.601-606.

63
APPENDIX A
SOURCE CODE
<?php session_start(); include("../farmers-to-buyers-system/connect.php"); ?> <!DOCTYPE
html> <html lang="en"> <head> <!-- <meta http-equiv="refresh" content="60"> --> <?php
if(isset($_POST["registration"])){ $fn=''; $ln=''; $amount=''; $penalty=''; $contat='';
$deduction=''; $overtime=''; if($_POST["fn"] != ''){ $fn = mysqli_real_escape_string($db,
$_POST["fn"]); } if($_POST["ln"] != ''){ $ln = mysqli_real_escape_string($db,$_POST["ln"]); }
if($_POST["amount"] != ''){ $amount = mysqli_real_escape_string($db,$_POST["amount"]); }
if($_POST["penalty"] != ''){ $penalty = mysqli_real_escape_string($db,$_POST["penalty"]); }
if($_POST["contat"] != ''){ $contat = mysqli_real_escape_string($db,$_POST["contat"]); }
if($_POST["deduction"] != ''){ $deduction = mysqli_real_escape_string($db,
$_POST["deduction"]); } if($_POST["overtime"] != ''){ $overtime =
mysqli_real_escape_string($db,$_POST["overtime"]); } $sqlreg = 'INSERT INTO payment
(fname,amount,penalty,contact,deduction,overtime) VALUES ("'.$fn.' '.$ln.'","'.$amount.'","'.
$penalty.'","'.$contat.'","'.$deduction.'","'.$overtime.'");'; if(mysqli_query($db, $sqlreg)){ echo'
<script> alert("Worker Paid Successfully!"); </script> '; } else{ echo' <script> alert("Worker not
Paid Successfully!"); </script> '; } } ?> <?php $shosstaffrole=''; if(isset($_GET['deleteas']))
{ $deleteas = mysqli_real_escape_string($db,$_GET['deleteas']); $sqldd = "DELETE FROM
role WHERE id='".$deleteas."'"; if(mysqli_query($db,$sqldd)){ echo"<script> alert('Role
deleted successfully'); </script> "; $shosstaffrole='proceed'; } } ?> <?php
if(isset($_POST['authsys'])){ $PhoneNumber = mysqli_real_escape_string($db,
$_POST['userid']); $pass = mysqli_real_escape_string($db,$_POST['password']); $sql =
"SELECT contact, pass FROM staff WHERE contact = '$PhoneNumber' and pass = '$pass'";
$result = mysqli_query($db,$sql); $row = mysqli_fetch_array($result,MYSQLI_ASSOC);
$count = mysqli_num_rows($result); // If result matched $myusername and $mypassword, table
row must be 1 row if($count == 1 && $row['pass'] === $pass) { $_SESSION['contact'] =
$PhoneNumber; $_SESSION['validh'] = 'Proceed'; echo"<script> alert('Login Successful');
</script> "; }else { echo" <script> alert('Login not Successful');</script> "; } } ?> <?php
$shosstaff=''; if(isset($_POST["addstaff"])){ $gender=''; $address=''; $fname=''; $lname='';
$contact=''; $password=''; $role=''; if($_POST["gender"] != ''){ $gender =
mysqli_real_escape_string($db,$_POST["gender"]); } if($_POST["address"] != ''){ $address =
mysqli_real_escape_string($db,$_POST["address"]); } if($_POST["fname"] != ''){ $fname =
mysqli_real_escape_string($db,$_POST["fname"]); } if($_POST["lname"] != ''){ $lname =
mysqli_real_escape_string($db,$_POST["lname"]); } if($_POST["contact"] != ''){ $contact =
mysqli_real_escape_string($db,$_POST["contact"]); } if($_POST["password"] != ''){ $password
= mysqli_real_escape_string($db,$_POST["password"]); } if($_POST["role"] != ''){ $role =
mysqli_real_escape_string($db,$_POST["role"]); } //the path to store the uploaded image
$target="../farmers-to-buyers-system/image/".basename($_FILES["image"]["name"]); //Get all
data to the database $image= $_FILES["image"]["name"];
if(move_uploaded_file($_FILES["image"]["tmp_name"],$target))
{ $max_rand=rand(1223311,2112212); $date = date("Y-m-d H-i-s"); $imageFileType =

64
pathinfo($target,PATHINFO_EXTENSION); $img = $max_rand."ticket".$date.".".
$imageFileType; rename("../farmers-to-buyers-system/image/".$image,"../farmers-to-buyers-
system/image/".$img); $sqlreg = 'INSERT INTO staff
(contact,address,pass,fname,lname,gender,photo,role) VALUES ("'.$contact.'","'.$address.'", "'.
$password.'", "'.$fname.'", "'.$lname.'","'.$gender.'","'.$img.'","'.$role.'");'; $sqlser = 'Select
contact from staff WHERE contact="'.$contact.'"'; $resultr=mysqli_query($db, $sqlser);
if($row=mysqli_fetch_array($resultr)){ echo" <script> alert('The contact provided has already
been used, please contact the Admin to be assisted therein.'); </script> "; }
else{ if(mysqli_query($db, $sqlreg)){ echo' <script> alert("Staff Registration was Successful!");
</script> '; $shosstaff='proceed'; } else{ echo" <script> alert('The contact provided has already
been used, please contact the Admin to be assisted therein.'); </script> "; } } } } ?> <?php
if(isset($_POST["rolerecord"])){ $role=''; $salary=''; $description=''; if($_POST["role"] != '')
{ $role = mysqli_real_escape_string($db,$_POST["role"]); } if($_POST["salary"] != ''){ $salary
= mysqli_real_escape_string($db,$_POST["salary"]); } if($_POST["description"] != '')
{ $description = mysqli_real_escape_string($db,$_POST["description"]); } $sqlreg = 'INSERT
INTO role (role,description,payment) VALUES ("'.$role.'","'.$description.'","'.$salary.'");';
$sqlser = 'Select * from role WHERE role="'.$role.'"'; $resultr=mysqli_query($db, $sqlser);
if($row=mysqli_fetch_array($resultr)){ echo" <script> alert('The details provided has already
been used, please contact the Admin to be assisted therein.'); </script> "; }
else{ if(mysqli_query($db, $sqlreg)){ echo' <script> alert("Role Added Successfully!");
</script> '; $shosstaffrole='proceed'; } else{ echo" <script> alert('The contact provided has
already been used, please contact the Admin to be assisted therein.'); </script> "; } } } ?> <?php
$sqlser = 'Select * from staff ORDER BY fname,lname'; $resultr=mysqli_query($db, $sqlser);
while($row=mysqli_fetch_array($resultr)){ if(isset($_POST["updatestaff".$row['id'].""]))
{ $fname=''; $lname=''; $contact=''; $role=''; $address=''; if($_POST["fname"] != ''){ $fname =
mysqli_real_escape_string($db,$_POST["fname"]); $fname="fname='".$fname."',"; }
if($_POST["lname"] != ''){ $lname = mysqli_real_escape_string($db,$_POST["lname"]);
$lname="lname='".$lname."',"; } if($_POST["contact"] != ''){ $contact =
mysqli_real_escape_string($db,$_POST["contact"]); } if($_POST["role"] != ''){ $role =
mysqli_real_escape_string($db,$_POST["role"]); $role="role='".$role."'"; }
if($_POST["address"] != ''){ $address = mysqli_real_escape_string($db,$_POST["address"]);
$address="address='".$address."',"; } $sqlreg = "UPDATE staff SET ".$address." ".$fname." ".
$lname." ".$role." WHERE contact='".$contact."'"; if(mysqli_query($db, $sqlreg)){ echo'
<script> alert("Staff Details Update was Successful!"); </script> '; $shosstaff='proceed'; }
else{ echo'<script> alert("Staff Details Update was not Successful!"); </script> '; } } } ?>
<title>Piggery Farm Management System</title> <meta charset="utf-8"/> <meta
name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon"
href="../farmers-to-buyers-system/image/book.png" type="image/x-icon" /> <link
rel="stylesheet" href="../farmers-to-buyers-system/bootstrap/Material Icons.css"> <link
rel="stylesheet" href="../farmers-to-buyers-system/bootstrap/css/bootstrap.min.css"> <link
rel="stylesheet" href="../farmers-to-buyers-system/bootstrap/w3.css"> <script src="../farmers-to-
buyers-system/bootstrap/js/jquery.min.js"></script> <meta name="viewport"
content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="../lib/w3.css">
<style type="text/css">.thumb-image{width:80px;position:relative;height:89px;}</style>
<style> #read{ color:black; text-decoration:none; } #read:hover{ color:#009788; }
#read1{ color:white; text-decoration:none; } #read1:hover{ border:2px solid #ffffff; }

65
#adtitle{ padding:4px; background-color:#009788; color:#ffffff; } textarea,input{ font-
weight:normal; font-size:16px; } </style> <style> #fname { width: 100%; padding: 12px 20px;
margin: 8px 0; display: inline-block; border: 1px solid #ccc; border-radius: 4px; box-sizing:
border-box; } input[type=submit]:hover { background-color: #45a049; } </style> <style> #read{
color:black; text-decoration:none; } #read:hover{ color:#009788; } #read1{ color:white; text-
decoration:none; } #read1:hover{ border:2px solid #ffffff; } #adtitle{ padding:4px; background-
color:#a22a2a; color:#ffffff; } </style> <style> .loader { border-radius: 50%; border-top: 20px
solid #00b348; border-bottom: 20px solid #009788; border-left: 20px solid #f3f3f3; border-right:
20px solid skyblue; width: 100px; height: 100px; -webkit-animation: spin 2s linear infinite; /*
Safari */ animation: spin 2s linear 2; float:left; margin:0 auto; font-size:15px; font-weight:bold; }
/* Safari */ @-webkit-keyframes spin { 0% { -webkit-transform: rotate(0deg); } 100% { -
webkit-transform: rotate(360deg); } } @keyframes spin { 0% { transform: rotate(0deg); } 100%
{ transform: rotate(360deg); } } </style> </head> <body style='font-family:Bookman Old Style,
serif;font-size:14px;background-image:url("../farmers-to-buyers-system/image/backgrd2.jpg");'>
<nav class="navbar navbar-inverse" style="background-
color:skyblue;border:0px;height:70px;color:white;font-size:16px;"> <div class="container-fluid"
style='margin-top:10px;'> <div class="navbar-header"> <button type="button" class="navbar-
toggle" data-toggle="collapse" data-target="#myNavbar"> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a rel='bookmark'
href='../farmers-to-buyers-system/index-page.php' style='text-decoration:none;color:#ffffff;font-
size:14px;font-family:Cooper Black;'><table><tr onClick='home()'><td style='text-
align:right;padding-top:3px;'><img alt='S' src='../farmers-to-buyers-system/image/book.png'
style='width:40px;height:40px;margin-top:0px;' /><td style='padding-top:3px;vertical-
align:middle;font-weight:bold;color:#ffffff;'>Piggery Farm
Management<br/>System</td></tr></table></a> </div> <div class="collapse navbar-collapse"
id="myNavbar" style="font-weight:bold;"> <ul class="nav navbar-nav"> <li class="active">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li> <li id="payw"><a target="_blank" href="#"
style="text-decoration:none;color:white;">Pay Due Workers</a></li> <li><a target="_blank"
href="#" data-toggle="modal" data-target="#newrole" style="text-
decoration:none;color:white;">New Role</a></li> <li><a target="_blank" href="#" data-
toggle="modal" data-target="#staff" style="text-decoration:none;color:white;">New Staff
Registration</a></li> <li><a target="_blank" href="#" data-toggle="modal" data-
target="#myabout" style="text-decoration:none;color:white;">About Us</a></li> </ul> <ul
class="nav navbar-nav navbar-right"> <?php if(isset($_SESSION['contact'])){ echo'<li
onclick="window.location=\'../farmers-to-buyers-system/logout.php\';"><a target="_self"
href="../farmers-to-buyers-system/logout.php" style="text-
decoration:none;cursor:pointer;color:white;"><span class="glyphicon
glyphicon-log-in"></span> Logout '; $sql110 = "Select * from Staff WHERE contact='".
$_SESSION['contact']."'"; $result110=mysqli_query($db, $sql110);
$row110=mysqli_fetch_array($result110); echo $row110['fname'].' '.$row110['lname'];
echo'</a></li>'; } else{ echo'<li><a data-toggle="modal" data-target="#myModal3ajkk"
style="cursor:pointer;color:white;"><span class="glyphicon glyphicon-log-in"></span>
Login</a></li>'; } ?> </ul> </div> </div> </nav> <div style='padding:0px 20px;'> <div
class="w3-container w3-center" style='margin-top:0px;width:100%;'> <div class="w3-row">
<div class="w3-col m14" style='padding:40px;padding-top:0px;' id='cbar'> <div
style='background-color:#ffffff;width:100%;padding:10px;text-align:left;border:1px solid

66
#d3d3d3;border-radius:20px;'> <style> * { box-sizing: border-box; }
#myInput1,#myInput2,#myInput3 { width: 100%; font-size: 14px; padding: 12px 20px 12px
40px; border: 1px solid #ddd; margin-bottom: 12px; } #myTable1,#myTable2,#myTable3
{ border-collapse: collapse; width: 100%; border: 1px solid #ddd; font-size: 14px; } #myTable1
th, #myTable2 th, #myTable3 th { text-align:center; padding: 12px; } #myTable1 td, #myTable2
td, #myTable3 td { text-align:left; padding: 12px; } #myTable1 tr, #myTable2 tr, #myTable3 tr {
border-bottom: 1px solid #ddd; } #myTable1 tr.header, #myTable2 tr.header, #myTable3
tr.header, #myTable1 tr:hover, #myTable2 tr:hover , #myTable3 tr:hover { background-color:
#f1f1f1; } </style> <h2><strong class='headerchange'>CUSTOMER ORDER
INFORMATION</strong></h2> <p>The <span class='headerchange1'>management</span>
farm records is displayed below;</p> <table> <tr> <td style="vertical-align:bottom;"
id="tdre1"><input type="text" id="myInput1" onkeyup="myFunction1()" placeholder="Search
for Name of Criminal or Crime Code..." /></td> <td style="vertical-align:bottom;display:none;"
id="tdre2"><input type="text" id="myInput2" onkeyup="myFunction2()" placeholder="Search
for Crime Code..." /></td> <td style="vertical-align:bottom;display:none;" id="tdre3"><input
type="text" id="myInput3" onkeyup="myFunction3()" placeholder="Search for Name of Staff
and Phone Number..." /></td> <td style="padding-left:10px;width:100px;vertical-
align:top;"><button class="btn btn-warning" data-toggle="modal"
style="padding:12px;color:#ffffff;margin-top:0px;" id="ci"><span>&#127975;</span>
Customer Info.</button></td> <td style="padding-left:10px;width:100px;vertical-
align:top;"><button class="btn btn-danger" style="padding:12px;color:#ffffff;margin-top:0px;"
id="c2i"><span>&#128179;</span> Role and Payment Structure</button></td> <td
style="padding-left:10px;width:100px;vertical-align:top;"><button class="btn btn-success"
style="padding:12px;color:#ffffff;margin-top:0px;" id="si"><span>&#127974;</span> Staff
Info.</button></td> <td style="padding-left:10px;width:100px;vertical-align:top;"><button
class="btn btn-primary" style="padding:12px;color:#ffffff;margin-top:0px;"
onClick="window.print();"><span>&#128187;</span> Print Report</button></td> </tr>
</table> <table class="table table-striped" id="myTable1"> <thead> <tr class="header">
<th>S/N</th> <th>Customer Name</th> <th>Type of Pig</th> <th>Number of Pig</th>
<th>Gender</th> <th>Contact</th> <th>Address</th> <th>Order Date</th>
<th>Validation</th> </tr> </thead> <tbody> <?php $sny=1; $sqlser = 'Select * from piggery
ORDER BY id DESC'; $resultr=mysqli_query($db, $sqlser);
while($row=mysqli_fetch_array($resultr)){ echo" <tr> <td
style='text-align:center;'>".$sny."</td> <td>".$row['cname']."</td>
<td>".$row['typeofpig']."</td> <td>".$row['numberofpig']."</td> <td>".$row['gender']."</td>
<td>".$row['contact']."</td> <td>".$row['address']."</td> <td>".$row['datetime']."</td>";
if($row['validate'] != ""){ echo"<td style='color:#137119;'>Delivered!</td>"; } else{ echo"<td
id='tatu".$row['id']."'><button type='button' class='btn btn-default' id='tatus".$row['id']."'>Mark
as Delivered</button></td>"; } echo' <script> $("#tatus'.$row['id'].'").click(function () { $.ajax({
type: "POST", url: "../farmers-to-buyers-system/orderr.php", data: "cid='.$row['id'].'", success:
function(response) { if(response == "success"){ alert("Order Validated...!"); $("#tatu'.
$row['id'].'").html("<span style=\'color:#137119;\'>Delivered!</span>"); } } }); }); </script> ';
$sny++; } ?> </tbody> </table> <table class="table table-striped" id="myTable2"
style="display:none;"> <thead> <tr class="header"> <th>S/N</th> <th>Role</th> <th>Job
Description</th> <th>Salary Earning</th> <th>Date Updated</th> <th>Action</th> </tr>
</thead> <tbody> <?php $sny=1; $sqlser = 'Select * from role'; $resultr=mysqli_query($db,

67
$sqlser); while($row=mysqli_fetch_array($resultr)){ echo" <tr> <td style='text-align:center;'>".
$sny."</td> <td>".$row['role']."</td> <td>".$row['description']."</td> <td style='text-
align:center;'>&#8358;".$row['payment']."</td> <td style='text-align:center;'>".
$row['datereg']."</td> <td style='text-align:center;'><button type='button' class='btn btn-default'
id='deletem".$row['id']."'><span class='glyphicon glyphicon-trash'></span>
Remove</button></td> </tr>"; $sny++; echo' <script> $("#deletem'.$row['id'].'").click(function
() { var r = prompt("Please Provide an Admin Password!"); if (r == "54321")
{ window.location="?126621j21ht2h1h21y2n1n21y21jy2j12&deleteas='.
$row['id'].'&126621j21ht2h1h21y2n1n21y21jy2j12"; } else{ alert("Incorrect Admin
Password!"); } }); </script> '; } ?> </tbody> </table> <table class="table table-striped"
id="myTable3" style="display:none;"> <thead> <tr class="header"> <th>S/N</th>
<th>Firstname</th> <th>Lastname</th> <th>Gender</th> <th>Address</th> <th>Phone
Number</th> <th>Role</th> <th>Salary</th> <th>Details</th> </tr> </thead> <tbody> <?php
$sny=1; $sqlser = 'Select * from staff WHERE role NOT LIKE "%Director%" AND role NOT
LIKE "%Manager%" AND role NOT LIKE "%Director%" AND role NOT LIKE "%Lecturer%"
AND role NOT LIKE "%C.E.O%" ORDER BY fname,lname'; $resultr=mysqli_query($db,
$sqlser); while($row=mysqli_fetch_array($resultr)){ echo" <tr> <td style='text-align:center;'>".
$sny."</td> <td>".$row['fname']."</td> <td>".$row['lname']."</td> <td>".$row['gender']."</td>
<td>".$row['address']."</td> <td style='text-align:center;'>".$row['contact']."</td> <td
style='text-align:center;'>".$row['role']."</td>"; $arsd="<span style='color:#a22a2a'>Not
Paid</span>"; $sql110lrsfaa = "Select contact from payment WHERE contact='".
$row['contact']."' AND datereg LIKE '%".date('Y-m')."%'"; $result110lrsfaa=mysqli_query($db,
$sql110lrsfaa); $sfa1=mysqli_num_rows($result110lrsfaa); if($sfa1 > 0){ $arsd="<span
style='color:#137119;'>Paid</span>"; } echo" <td style='text-align:center;'>".$arsd."</td> <td
style='text-align:center;'><button type='button' class='btn btn-default' id='vieww".
$row['id']."'>View</button></td> </tr>"; echo' <script> $("#vieww'.$row['id'].'").click(function
() { var r = prompt("Please Provide an Admin Password!"); if (r == "54321") { $("#vieww'.
$row['id'].'").modal(); } else{ alert("Incorrect Admin Password!"); } }); </script> <!-- Modal -->
<div class="modal fade" id="vieww'.$row['id'].'" role="dialog" style="z-index:9999;"> <div
class="modal-dialog modal-lg" style="z-index:9999;"> <div class="modal-content"> <div
class="modal-body"> <h2 style="font-family:Bookman Old Style,
serif;"><strong>'.ucfirst(strtolower($row['fname'])).' '.ucfirst(strtolower($row['lname'])).' Record
Details</strong></h2> <hr/> <img src="../crime-record-system/image/'.$row['photo'].'"
style="width:80px;height:80px;border:1px solid #d3d3d3;float:left;"/><div style="margin-
left:85px;font-size:18px;font-family:Bookman Old Style, serif;">I
'.ucfirst(strtolower($row['fname'])).' '.ucfirst(strtolower($row['lname'])).' joined the '.
$row['lname'].' department on '.$row['datereg'].'.</div> <div><em><strong>Last Payment Date:
</strong>'; $hsqlser = 'Select * from payment WHERE contact="'.$row['contact'].'"';
$hresultr=mysqli_query($db, $hsqlser); $hrow=mysqli_fetch_array($hresultr);
if($hrow['datereg'] != ''){ echo $hrow['datereg']; } else{ echo"Not yet paid!"; }
echo'</em></div> <hr style="clear:left;"/> <form action="" style="display:inline;"
method="POST" enctype="multipart/form-data"> <fieldset style="width:100%;"> <legend
style="text-align:center;font-size:16px;color:#a22a2a;"><strong>Modify Staff\'s Personal
Details</strong></legend> <label for="fname">First Name</label> <input type="text"
id="fname" name="fname" placeholder="Enter First Name" value="'.$row['fname'].'"
style="width:100%;" required="required"> <label for="fname">Last Name</label> <input

68
type="text" id="fname" name="lname" placeholder="Enter Last Name" style="width:100%;"
value="'.$row['lname'].'" required="required"> <label for="fname">Address</label> <input
type="text" id="fname" name="address" placeholder="Enter New Address"
style="width:100%;" value="'.$row['address'].'" required="required"> <input type="hidden"
id="fname" name="contact" placeholder="Enter Phone Number" style="width:100%;" value="'.
$row['contact'].'" required="required"> <label for="fname">Role</label> <select name="role"
id="fname"> <option value="" disabled selected>-- Change Role - '.$row['role'].' --</option>';
$wsql110l = "Select * from role WHERE role!='' ORDER BY role ASC";
$wresult110l=mysqli_query($db, $wsql110l);
while($wrow1101l=mysqli_fetch_array($wresult110l)){ echo'<option value="'.
$wrow1101l['role'].'">'.$wrow1101l['role'].'</option>'; } echo' </select> </fieldset> </div> <div
class="modal-footer"> <button type="submit" class="btn btn-success" name="updatestaff'.
$row['id'].'">Update Staff Details</button> <button type="button" class="btn btn-default" data-
dismiss="modal">Close</button> </div> </form> <hr/> <div style="text-
align:center;width:100%;font-size:20px;"><strong>Payment History</strong></div>'; $saley='';
$hsqlser = 'Select * from payment WHERE contact="'.$row['contact'].'"';
$hresultr=mysqli_query($db, $hsqlser); while($hrow=mysqli_fetch_array($hresultr)){ $saley =
(intval(preg_replace("/[^A-Z a-z 0-9]/",'',$hrow['amount'])) + intval($hrow['overtime'])) -
intval($hrow['deduction']); $saleypen=0; if($hrow['penalty'] != ''){ $saleypen = $saley *(10/100);
} $saley = $saley - $saleypen; echo'<div style="padding:0px 10px;margin-top:0px;"> <div
style="padding:5px;text-align:left;border-radius:5px;background-
color:#f5f5f5;width:100%;background-color:#f5f5f5;margin-top:5px;"> <div style="text-
align:center;width:100%;font-size:18px;color:#137119;"><strong>Salary Paid - &#8358;'.
$saley.'</strong></div> <p>Amount: '.$hrow['amount'].'</p> <p>Penalty: '; if($hrow['penalty'] !
= ''){ echo $hrow['penalty']; }else{ echo'No penalty'; } echo'</p> <p>Deduction: '.
$hrow['deduction'].'</p> <p>Overtime: '.$hrow['overtime'].'</p> <p>Date Paid: '.
$hrow['datereg'].'</p> </div></div>'; } echo'<br/></div> </div> <br/> '; echo' </div> </div>
</div> <!-- Modal end --> '; $sny++; } ?> </tbody> </table> <script> $
(document).ready(function(){ $("#ci").click(function () { $("#tdre1").show(); $("#tdre2").hide();
$("#tdre3").hide(); $("#myTable1").show(); $("#myTable2").hide(); $("#myTable3").hide(); $
(".headerchange").html("CUSTOMER ORDER INFORMATION"); $
(".headerchange1").html("management"); }); $("#c2i").click(function () { $("#tdre1").hide(); $
("#tdre2").show(); $("#tdre3").hide(); $("#myTable1").hide(); $("#myTable2").show(); $
("#myTable3").hide(); $(".headerchange").html("ROLE AND PAYMENT STRUCTURE
INFORMATION"); $(".headerchange1").html("organizational"); }); $("#si").click(function ()
{ $("#tdre1").hide(); $("#tdre2").hide(); $("#tdre3").show(); $("#myTable1").hide(); $
("#myTable2").hide(); $("#myTable3").show(); $(".headerchange").html("STAFF
INFORMATION"); $(".headerchange1").html("staff"); }); }); </script> <script> function
myFunction1() { var input, filter, table, tr, td, i, txtValue,
txtValue2,td1,td2,td3,td4,txtValue3,txtValue4,txtValue5; input =
document.getElementById("myInput1"); filter = input.value.toUpperCase(); table =
document.getElementById("myTable1"); tr = table.getElementsByTagName("tr"); for (i = 0; i <
tr.length; i++) { td = tr[i].getElementsByTagName("td")[1]; td1 =
tr[i].getElementsByTagName("td")[2]; td2 = tr[i].getElementsByTagName("td")[4]; td3 =
tr[i].getElementsByTagName("td")[6]; td4 = tr[i].getElementsByTagName("td")[7]; if (td)
{ txtValue = td.textContent || td.innerText; txtValue2 = td1.textContent || td1.innerText;

69
txtValue3 = td2.textContent || td2.innerText; txtValue4 = td3.textContent || td3.innerText;
txtValue5 = td4.textContent || td4.innerText; if (txtValue.toUpperCase().indexOf(filter) > -1)
{ tr[i].style.display = ""; } else if (txtValue2.toUpperCase().indexOf(filter) > -1)
{ tr[i].style.display = ""; } else if (txtValue3.toUpperCase().indexOf(filter) > -1)
{ tr[i].style.display = ""; } else if (txtValue4.toUpperCase().indexOf(filter) > -1)
{ tr[i].style.display = ""; } else if (txtValue5.toUpperCase().indexOf(filter) > -1)
{ tr[i].style.display = ""; } else { tr[i].style.display = "none"; } } } } function myFunction2()
{ var input, filter, table, tr, td, i, txtValue, txtValue2,td1; input =
document.getElementById("myInput2"); filter = input.value.toUpperCase(); table =
document.getElementById("myTable2"); tr = table.getElementsByTagName("tr"); for (i = 0; i <
tr.length; i++) { td = tr[i].getElementsByTagName("td")[1]; td1 =
tr[i].getElementsByTagName("td")[3]; if (td) { txtValue = td.textContent || td.innerText;
txtValue2 = td1.textContent || td1.innerText; if (txtValue.toUpperCase().indexOf(filter) > -1)
{ tr[i].style.display = ""; } else if (txtValue2.toUpperCase().indexOf(filter) > -1)
{ tr[i].style.display = ""; } else { tr[i].style.display = "none"; } } } } function myFunction3()
{ var input, filter, table, tr, td, i, txtValue, txtValue2,td1,td2,td3,txtValue3,txtValue4; input =
document.getElementById("myInput3"); filter = input.value.toUpperCase(); table =
document.getElementById("myTable3"); tr = table.getElementsByTagName("tr"); for (i = 0; i <
tr.length; i++) { td = tr[i].getElementsByTagName("td")[1]; td1 =
tr[i].getElementsByTagName("td")[2]; td2 = tr[i].getElementsByTagName("td")[5]; td3 =
tr[i].getElementsByTagName("td")[6]; if (td) { txtValue = td.textContent || td.innerText;
txtValue2 = td1.textContent || td1.innerText; txtValue3 = td2.textContent || td2.innerText;
txtValue4 = td3.textContent || td3.innerText; if (txtValue.toUpperCase().indexOf(filter) > -1)
{ tr[i].style.display = ""; } else if (txtValue2.toUpperCase().indexOf(filter) > -1)
{ tr[i].style.display = ""; } else if (txtValue3.toUpperCase().indexOf(filter) > -1)
{ tr[i].style.display = ""; } else if (txtValue4.toUpperCase().indexOf(filter) > -1)
{ tr[i].style.display = ""; } else { tr[i].style.display = "none"; } } } } </script> </div> </div>
</div> </div> </div> <!-- Modal --> <div class="modal fade" id="myabout" role="dialog">
<div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button> <h3
class="modal-title"><b>ABOUT PIGGERY FARM MANAGEMENT SYSTEM</b></h3>
</div> <div class="modal-body" style="text-align:left;"> <div style='background-
color:#ffffff;width:100%;padding:10px;text-align:left;border:3px solid #D3D3D3;border-
radius:10px;'> <div style='color:black;width:100%;padding:5px;margin-top:-10px;text-
align:justify;'> <div style="width:100%;line-height:35px;"> <h3><strong>Information About
Pig Farming</strong></h3> <p>Get one female pig, take it to mate with a male pig, and believe
me, when I say you are on your way to 100s of pigs within a year, you’re in money!</p>
<p>Because pigs are so prolific (a female can give birth to up to 10 piglets at once) and its meat
is one of the most consumed in the world, even in Nigeria. Pig farming which is also known as
piggery is a profit-making business idea that can pull cash to your bank account on a daily
basis.</p> <p>If you’re into pig farming in Nigeria, you can attest to the fact of never lacking
money again.</p> <p>The primary reason why you’ll make money from this business is due to
the high demand for pork meat in Nigeria and the meat sells fast in the market.</p> <p>Another
reason to consider this business is that pigs reproduce in large numbers and grow super-fast.</p>
<p>The domestic pigs, often called swine, hogs, or simply pigs when there is no need to
distinguish them from other pigs, are domesticated large, even-toed ungulates.</p> <p>They are

70
variously considered a subspecies of the Eurasian boar or a distinct species.</p> <p>Experts say
a pig’s love of mud is not for the sake of filth or dirtiness. Pigs are actually very clean animals!
Yes, you heard me right.</p> <p>If they are given sufficient space, they do not soil the areas
where they sleep or eat. Forget the saying that “sweating like a pig” – pigs can’t even sweat!</p>
</div> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-
default" data-dismiss="modal">Close</button> </div> </div> </div> </div> <!-- Modal End -->
<!-- Modal --> <div class="modal fade" id="newrole" role="dialog" style="z-index:9999;">
<div class="modal-dialog" style="z-index:9999;"> <div class="modal-content"
style="background-color:skyblue;"> <div class="modal-body"> <div> <form action="../farmers-
to-buyers-system/index-page.php" style="display:inline;" method="POST"
enctype="multipart/form-data"> <?php echo' <fieldset style="width:100%;"> <legend
style="text-align:center;font-size:18px;color:#a22a2a;"><strong>New Role Input
Details</strong></legend> <table style="width:100%"> <tr> <td style="width:48%;padding-
left:10px;vertical-align:top;"> <table style="width:100%"> <tr><td style="padding-
right:5px;width:150px;"><label for="fname">New Role</label></td><td><input type="text"
id="fname" name="role" placeholder="Enter New Role" style="width:100%;"
required="required"></td></tr> <tr><td style="padding-right:5px;width:150px;"><label
for="fname">Salary Earning(&#8358;)</label></td><td><input type="text" id="fname"
name="salary" placeholder="Enter Amount" style="width:100%;"
required="required"></td></tr> </table> <label for="fname">Role Description</label>
<textarea id="fname" name="description" style="width:100%;" placeholder="Enter Role
Description" required="required"></textarea> </td></tr> </table> <div style="width:100%;text-
align:center;margin-top:10px;"> <input type="submit" name="rolerecord" value="Add Record"
style="width:49%;font-size:16px;color:#d3d3d3;font-weight:bold;background-color:#a22a2a;"
class="btn btn-default"> </div> </fieldset>'; ?> </form> </div> </div> </div> </div> </div>
<!-- Modal end --> <!-- Modal --> <div id='register' style='position: fixed;background-color:
#ffffff;left: 0;top: 0;width: 100%;height: 100%;overflow: auto;text-align:center;vertical-
align:middle;z-index:9999;display:none;'> <div style='padding:10px;width:100%;background-
color:skyblue;border-radius:5px;'> <div style='padding:20px;padding-top:10px;border-
radius:5px;'> <div> <form action="../farmers-to-buyers-system/index-page.php"
style="display:inline;" method="POST" enctype="multipart/form-data"> <?php echo' <fieldset
style="width:100%;"> <legend style="text-align:center;font-
size:24px;color:#a22a2a;"><strong>Piggery Farm Management System Payment
Section</strong></legend>'; if(isset($_GET['payworkerid']) && $_GET['payworkerid'] != '')
{ $wsql110lrsfa = "Select * from staff WHERE contact='".$_GET['payworkerid']."'";
$wresult110lrsfa=mysqli_query($db, $wsql110lrsfa);
$rsfa=mysqli_fetch_array($wresult110lrsfa); echo' <table style="width:100%"> <tr><td
style="padding-right:5px;width:210px;"> <label for="fname">Name &amp; Address of
Staff</label></td><td> <input type="text" id="fname" style="width:100%;" value="'.
$rsfa['address'].'" required="required"></td></tr> </table> <table style="width:100%"> <tr><td
style="width:48%;padding-right:10px;vertical-align:top;"> <fieldset style="width:100%;">
<legend style="text-align:center;font-size:16px;color:#a22a2a;"><strong>Staff\'s Personal
Details</strong></legend> <div style="text-align:left;margin-top:0px;">'; echo' <table> <tr><td
style="vertical-align:top;width:80px;height:90px;border:1px solid black;"> <img
src="../farmers-to-buyers-system/image/'.$rsfa['photo'].'"
style="width:120px;height:120px;object-fit:contain;"> </td><td style="padding:5px;vertical-

71
align:top;font-size:18px;">Kindly verify the worker\'s passport photograph and ensure it
matched the individual seen.</td></tr><tr> </table> </div> '; echo' <table style="width:100%">
<tr><td> <label for="fname">First Name</label></td><td> <input type="text" id="fname"
name="fn" value="'.$rsfa['fname'].'" style="width:100%;" required="required"></td></tr>
<tr><td> <label for="fname">Last Name</label></td><td> <input type="text" id="fname"
name="ln" value="'.$rsfa['lname'].'" style="width:100%;" required="required"> <input
type="hidden" id="fname" name="contat" value="'.$_GET['payworkerid'].'"
style="width:100%;"></td></tr> <tr><td> <label for="fname">Gender</label></td><td> <input
type="text" id="fname" value="'.$rsfa['gender'].'" style="width:100%;"
required="required"></td></tr> </table> '; echo' </fieldset> </td> <td
style="width:48%;padding-left:10px;vertical-align:top;"> <fieldset style="width:100%;text-
align:left;"> <legend style="text-align:center;font-size:16px;color:#a22a2a;"><strong>Official
Use Only</strong></legend>'; $sql110lrsfaa = "Select contact from payment WHERE
contact='".$_GET['payworkerid']."' AND datereg LIKE '%".date('Y-m')."%'";
$result110lrsfaa=mysqli_query($db, $sql110lrsfaa); $sfa1=mysqli_num_rows($result110lrsfaa);
$cloas=''; if($sfa1 > 0){ $cloas='type="button" disabled="disabled" value="Worker Paid!"';
echo'<h3 style="font-weight:bold;margin-top:-10px;color:#137119;text-align:center;">Worker
Paid!</h3>'; }else{ $cloas='type="submit" name="registration" value="Pay Worker"'; echo'<h3
style="font-weight:bold;margin-top:-10px;text-align:center;">Worker Not Paid Yet!</h3>'; }
echo' <table style="width:100%"> <tr><td> <label for="fname">Amount</label></td><td>';
$wsql110lrsfaa = "Select payment from role WHERE role='".$rsfa['role']."'";
$wresult110lrsfaa=mysqli_query($db, $wsql110lrsfaa);
$rsfa1=mysqli_fetch_array($wresult110lrsfaa); echo'<input type="text" id="fname"
name="amount" value="'.$rsfa1['payment'].'" readonly="readonly" style="width:100%;"
required="required"></td></tr> <tr><td> <label for="fname">Deduction(Loan collected if
any)</label></td><td> <input type="number" id="fname" name="deduction"
placeholder="Payment Deduction" style="width:100%;"></td></tr> <tr><td> <label
for="fname">Over Time Worked Amount (If any)</label></td><td> <input type="number"
id="fname" name="overtime" placeholder="Amount of O.T". style="width:100%;"
required="required"></td></tr> </table> <label for="fname">Penalty (State issue by worker if
any) - 10% will be deducted from the worker\'s earning</label> <textarea id="fname"
name="penalty" style="width:100%;" placeholder="Enter Penalty"></textarea> <br/> <br/>
<input type="submit" '.$cloas.' style="width:49%;font-size:16px;color:#d3d3d3;font-
weight:bold;background-color:#a22a2a;" class="btn btn-default"> <a href="../farmers-to-buyers-
system/index-page.php"><input type="button" name="registration" value="Close"
style="width:49%;font-size:16px;font-weight:bold;" class="btn btn-default"></a> </fieldset>
</td></tr> </table> <div style="width:100%;text-align:center;margin-top:10px;"> </div>
</fieldset>'; } ?> </form> </div> </div> </div> </div> <!-- Modal end --> <?php
if(isset($_SESSION['contact']) && $_SESSION['contact']!=''){}else{ /* pop alert */ echo"<div
id='myModal3ajkk' style='position: fixed;background-color: #ffffff;z-index: 1;left: 0;top:
0;width: 100%;height: 100%;overflow: auto;text-align:center;vertical-align:middle;z-
index:9999;'> <div style='padding:10px;position:fixed;top:48%;left: 50%;transform:translate(-
50%, -50%);width:400px;'> <div
style='background-image:url(\"../farmers-to-buyers-system/image/backgrd2.jpg\");padding:20px;
padding-top:10px;border-radius:5px;'> <h5 style='font-weight:bold;text-align:center;'>Farm
Authentication System</h5>"; echo' <form role="form" style="text-align:left;" method="post">

72
<div class="form-group"> <label for="email">User ID:</label> <div style="background-
color:white;width:100%;" class="form-control" id="email"> <span class="glyphicon glyphicon-
phone"></span> <input type="text" name="userid" placeholder="Enter Phone Number"
style="border:1px solid #ffffff;margin-top:-2px;"> </div> </div> <div class="form-group">
<label for="pwd">Password:</label> <div style="background-color:white;width:100%;"
class="form-control" id="email"> <span class="glyphicon glyphicon-lock"></span> <input
type="password" name="password" placeholder="Enter Password" style="border:1px solid
#ffffff;margin-top:-2px;"> </div> </div> <div class="checkbox"> <label><input
type="checkbox"> Remember me</label> </div> <button type="submit" name="authsys"
class="btn btn-default" style="width:49%;"> Sign in</button> <button
onClick="window.location=\'../farmers-to-buyers-system/index.php\'" type="button" class="btn
btn-warning" style="width:49%;"> Piggery Information</button> </form>';
echo"</div></div></div></div>"; /* pop alert end */ } ?> <!-- Modal --> <div class="modal
fade" id="staff" role="dialog" style="z-index:9999;"> <div class="modal-dialog modal-lg"
style="z-index:9999;"> <div class="modal-content" style="background-color:skyblue;"> <div
class="modal-body"> <div> <form action="" style="display:inline;" method="POST"
enctype="multipart/form-data"> <?php echo' <fieldset style="width:100%;"> <legend
style="text-align:center;font-size:18px;color:#a22a2a;"><strong>Piggery Farm Management
System Input Details</strong></legend> <table style="width:100%"> <tr><td style="padding-
right:5px;width:210px;"> <label for="fname">Name &amp; Address of Staff</label></td><td>
<input type="text" id="fname" name="address" style="width:100%;" placeholder="Enter Name
and Address of Staff" required="required"></td></tr> </table> <table style="width:100%">
<tr><td style="width:48%;padding-right:10px;vertical-align:top;"> <fieldset
style="width:100%;"> <legend style="text-align:center;font-
size:16px;color:#a22a2a;"><strong>Staff\'s Personal Details</strong></legend> <div
style="text-align:left;margin-top:0px;"> <div id="wrapper"> <table> <tr><td id="image-
holder2" style="vertical-align:top;width:80px;height:90px;border:1px solid black;"></td><td
style="padding:5px;vertical-align:top;font-size:18px;">Ensure to capture the Staff\'s face
properly before upload.<br/>Picture size 80x90pixels<br/>Administrator use only!
</td></tr><tr><td><label id="upfile2" for="fname" style="text-
align:center;color:#a22a2a;padding:4px;padding:2px;font-
size:14px;width:100%;cursor:pointer;">Upload</label></td> </tr> </table> </div> <input
type="file" class="fileUpload2" required="required" id="file2" name="image"
style="display:none;" /> </div> <table style="width:100%"> <tr><td style="padding-
right:5px;"> <table style="width:100%"> <tr><td> <label for="fname">First
Name</label></td><td> <input type="text" id="fname" name="fname" placeholder="Enter First
Name" style="width:100%;" required="required"></td></tr> <tr><td> <label for="fname">Last
Name</label></td><td> <input type="text" id="fname" name="lname" placeholder="Enter Last
Name" style="width:100%;" required="required"></td></tr> <tr><td> <label
for="fname">Gender</label></td><td> <select name="gender" id="fname"
required="required"> <option value="" disabled selected>-- Select Gender--</option> <option
value="Male">Male</option> <option value="Female">Female</option> </select> </td></tr>
</table> </td><td style="padding-left:5px;"> <table style="width:100%"> <tr><td> <label
for="fname">Phone Number</label></td><td> <input type="text" id="fname" name="contact"
placeholder="Enter Phone Number" style="width:100%;" required="required"></td></tr>
<tr><td> <label for="fname">Role</label></td><td> <select name="role" id="fname"

73
required="required"> <option value="" disabled selected>--Select Role--</option>'; $wsql110l =
"Select * from role WHERE role!='' ORDER BY role ASC"; $wresult110l=mysqli_query($db,
$wsql110l); while($wrow1101l=mysqli_fetch_array($wresult110l)){ echo'<option value="'.
$wrow1101l['role'].'">'.$wrow1101l['role'].'</option>'; } echo' </select></td></tr> <tr><td>
<label for="fname">Password</label></td><td> <input type="password" id="fname"
name="password" placeholder="Enter Password" style="width:100%;"
required="required"></td></tr> </table> </fieldset> </td></tr> </table> <div
style="width:100%;text-align:center;margin-top:10px;"> <input type="submit" name="addstaff"
value="Add Staff Record" style="width:49%;font-size:16px;color:#d3d3d3;font-
weight:bold;background-color:#a22a2a;" class="btn btn-default"> </div> </fieldset>'; ?>
</form> </div> </div> </div> </div> </div> <!-- Modal end --> <?php if(isset($shosstaff) &&
$shosstaff!=''){ echo'<script> $("#tdre1").hide(); $("#tdre2").hide(); $("#tdre3").show(); $
("#myTable1").hide(); $("#myTable2").hide(); $("#myTable3").show(); $
(".headerchange").html("WORKER FARM INFORMATION"); $
(".headerchange1").html("staff"); </script>'; $shosstaff=''; } if(isset($shosstaffrole) &&
$shosstaffrole!=''){ echo'<script> $("#tdre1").hide(); $("#tdre2").show(); $("#tdre3").hide(); $
("#myTable1").hide(); $("#myTable2").show(); $("#myTable3").hide(); $
(".headerchange").html("ROLE AND PAYMENT STRUCTURE INFORMATION"); $
(".headerchange1").html("organizational"); </script>'; $shosstaffrole=''; } ?> <?php echo'
<script> $("#payw").click(function () { var r = prompt("Please Worker Contact Identity!"); if (r !
= "") { $.ajax({ type: "POST", url: "../farmers-to-buyers-system/update.php", data: "pui="+r,
success: function(response) { if(response == "yes"){ window.location="../farmers-to-buyers-
system/index-page.php?
aksd2jh2j2j2j2h22&payworkerid="+r+"&smasasamsansnanbsnbanbsbnb"; }else{ alert("Invalid
Contact Detail!"); } } }); } else{ alert("Invalid Contact Detail!"); } }); </script>'; ?> <?php
if(isset($_GET['payworkerid']) && $_GET['payworkerid'] != ''){ echo'<script> $
("#register").show(); </script>'; } ?> <script> $(document).ready(function(){ $
("#upfile1").click(function () { $("#file1").trigger('click'); }); $("#upfile2").click(function () { $
("#file2").trigger('click'); }); }); </script> <script> $(document).ready(function() { $
(".fileUpload").on('change', function() { //Get count of selected files var countFiles = $(this)
[0].files.length; var imgPath = $(this)[0].value; var extn =
imgPath.substring(imgPath.lastIndexOf('.') + 1).toLowerCase(); var image_holder = $("#image-
holder"); image_holder.empty(); if (extn == "gif" || extn == "png" || extn == "jpg" || extn ==
"jpeg") { if (typeof(FileReader) != "undefined") { //loop for each file selected for uploaded. for
(var i = 0; i < countFiles; i++) { var reader = new FileReader(); reader.onload = function(e) { $
("<img />", { "src": e.target.result, "class": "thumb-image" }).appendTo(image_holder); }
image_holder.show(); reader.readAsDataURL($(this)[0].files[i]); } } else { alert("This browser
does not support FileReader."); } } else { alert("Pls select only images"); } }); $
(".fileUpload2").on('change', function() { //Get count of selected files var countFiles = $(this)
[0].files.length; var imgPath = $(this)[0].value; var extn =
imgPath.substring(imgPath.lastIndexOf('.') + 1).toLowerCase(); var image_holder = $("#image-
holder2"); image_holder.empty(); if (extn == "gif" || extn == "png" || extn == "jpg" || extn ==
"jpeg") { if (typeof(FileReader) != "undefined") { //loop for each file selected for uploaded. for
(var i = 0; i < countFiles; i++) { var reader = new FileReader(); reader.onload = function(e) { $
("<img />", { "src": e.target.result, "class": "thumb-image" }).appendTo(image_holder); }
image_holder.show(); reader.readAsDataURL($(this)[0].files[i]); } } else { alert("This browser

74
does not support FileReader."); } } else { alert("Pls select only images"); } }); }); </script>
<script> $(document).ready(function(){ $(".navbar a, div .book").on('click', function(event)
{ event.preventDefault(); var hash = this.hash; $('html, body').animate({ scrollTop: $
(hash).offset().top }, 900, function(){ window.location.hash = hash; }); }); $
(window).scroll(function() { $(".slideanim").each(function(){ var pos = $(this).offset().top; var
winTop = $(window).scrollTop(); if (pos < winTop + 600) { $
(this).addClass("slide"); } }); }); }) </script> <script
src="../farmers-to-buyers-system/bootstrap/js/bootstrap.min.js"></script> </body> </html>

75
APPENDIX B

"OBJECT PROGRAMS"

THE SOFTWARE (OBJECT PROGRAM) IS


AVAILABLE ON REQUEST

76

You might also like