Sunteți pe pagina 1din 108

ABTRACT

APARICI, MYCA MAE A. and RUELAN, JOHN REY J. Southern


Philippines Agri-Business and Marine and Aquatic School of Technology,
Malita, Davao Occidental, May 2018. “WEB-BASED BARANGAY
INFORMATION SYSTEM FOR MALITA, DAVAO OCCIDENTAL”.
Undergraduate Capstone Project.

Adviser: RHEA MAE L. PERITO, MSIS

The study was covered the thirty (30) barangays of at Malita, Davao

Occidental. Furthermore, it was developed to automate the management of

barangay household, commodities and population, populate barangay data

to be viewed municipal webpage in order to monitor the increase and

decrease of household, commodities and population for an immediate

action, and establish geotagging of commodities for barangays. The

web-based system utilize Google Map Application Programming Interface

(API) in locating the commodities from barangays. Also the study utilizes

php was used as a front end of the system, sublime text as the code editor,

WAMP server to create local server and Google chrome as a web browser.

The project’s objectives was met, particularly it could manage the

household, population and commodities in a short period of time; the

municipal personnel could now efficiently monitor the status of the


community to provide an immediate solution; and the users doesn’t need to

travel and conduct a survey in every barangay to gather data. A module

that will store and populate barangay household, population and geotagged

commodities was provided.


WEB-BASED BARANGAY INFORMATION SYSTEM FOR
MALITA, DAVAO OCCIDENTAL

MYCA MAE A. APARICI


JOHN REY J. RUELAN

CAPSTONE PROJECT STUDY SUBMITTED TO THE FACULTY OF THE


SOUTHERN PHILIPPINES AGRI-BUSINESS AND MARINE AND
AQUATIC SCHOOL OF TECHNOLOGY, MALITA, DAVAO
OCCIDENTAL, IN PARTIAL FULFILLMENT OF
THE REQUIREMENTS FOR THE
DEGREE OF

BACHELOR OF SCIENCE IN INFORMATION TECHNOLOGY

MAY 2018
ACKNOWLEDGMENT

The researchers would like to express their gratitude to the people

who in one way or another have contributed greatly for the realization of

this study.

Their capstone project adviser, Rhea Mae L. Perito, MSIS for the

valuable and informative suggestion in spite of her busy schedule.

The Department Chairman Joselito J. Mebolos, MIT, panel member

headed by the chairman Antonette R. Albarracin and members Bailina P.

Dalam, MIT and Ms. Obea Rizzi B. Omboy for their knowledge, patience and

time allocated from the start of developing until the study was successfully

done.

Their family for moral, financial support and giving time to make this

project successful. Their cheerful and supportive friends and classmates.

The respondents of the study who gave their time for examining and

answering the questions.

To the Almighty God for giving them strength, courage and

guidance to make this project possible.


DEDICATION

This research study is dedicated to everyone who helped and

never give up through all the struggles in accomplishing this study and

made it a successful one. Thank you and God Bless!

- Myca & John Rey


TABLE OF CONTENTS

PRELIMINARY PAGES PAGE

ABSTRACT i
TITLE PAGE iii
APPROVAL SHEET iv
DEDICATION v
ACKNOWLEDGEMENT vi
TABLE OF CONTENTS vii
LIST OF FIGURES ix
LIST OF TABLES xi
LIST OF APPENDICES xii

CHAPTER
I BACKGROUND OF THE STUDY
Introduction 1
Objectives of the Study 3
Significance of the Study 4
Scope and Limitation of the Study 5
Definition of Terms 5

II REVIEW OF RELATED LITERATURE


GIS Application for Local Government Revenue 8
Survey of Information Technology Use for Municipal 9
Infrastructure Management
Municipal Information Systems: Current Practices 10
and Issues
Management Information in Rural Area 10

III TECHNICAL BACKGROUND


Technicality of the Study 12
Details of Technologies Used 12
How the System Works 13
IV METHODOLOGY
Research Locale 15
Population of the Study 16
Operational Feasibility 16
Technical Feasibility 18
Compatibility Checking 19
Relevance of the Technologies 20
Schedule Feasibility 21
Economic Feasibility 22
Cost and Benefit of the Project 22
Data and Process Modelling 24
Object Modelling 30
Data Design 36
Security 40
Software Specification 40
Hardware Specification 41
Programming Environment 42
Test Plan 43

V SUMMARY, CONCLUSION AND


RECOMMENDATIONS
Summary 46
Conclusion 47
Recommendations 48

BIBLIOGRAPHY 49

APPENDICES 50

CURRICULUM VITAE 91
LIST OF TABLES

TABLE PAGE

1 Result of Compatibility Checking 20

2 Development Cost 23

3 Projected Annual Cost 23

4 Projected Annual Gain 23

5 Data Dictionary 38

6 List of Software Used 41

7 List of Hardware Used 41

8 Test Plan 44
LIST OF FIGURES

FIGURE PAGE

1 Waterfall Model 13

2 Vicinity Map of Malita, Davao Occidental 15

3 Functional Decomposition Diagram 18

4 Gantt Chart 22

5 Input, Process, and Output Diagram of the System 24

6 Administrator’s System Flow Chart 25

7 Municipal Personnel’s System Flow Chart 26

8 Barangay Personnel’s System Flow Chart 27

9 Context Diagram of the System 28

10 Data Flow Diagram of the System 29

11 Use Case Diagram of the System 30

12 Class Diagram of the System 31

13 Administrators Sequence Diagram of the System 32

14 Municipality Sequence Diagram of the System 33

15 Barangay Sequence Diagram of the System 33

16 Administrator Activity Diagram of the System 34


17 Municipal Personnel Activity Diagram of the System 35

18 Barangay Personnel Activity Diagram of the System 36

19 Entity Relationship Diagram of the System 37

20 Deployment diagram of the system 43

21 Functional Testing of the system 44


LIST OF APPENDICES

APPENDIX PAGE
A Relevant Source Code 50

B Communication Letter 71

C Evaluation Tool 73

D Administrator User Guide 75

E Municipal User Guide 82

F Barangay User Guide 86

G Grammarians Certificate 90
CHAPTER I

BACKGROUND OF THE STUDY

Introduction

Information Technology along side Scientific and Technological

innovations has been developing in a way which practically controls wealth

and power of a nation. These technological innovations are actually

achieved with the aim of human welfare. In fact 80% of the rural

community people of third world countries do not get any fruit of these

innovations achieved at the expense of billion of dollars. To the tune of only

20% of the people living in and around urban areas are utilizing the benefits

of such developments. Modern information technology has transformed


into a source of development raw materials, wealth and power of a nation

are directed for the well-being of humanity. The modern and the new

information technologies side by side with scientific and technological

innovations have greatly influenced the chronological development of mode

of information resource centers and technology development (Faruque et al.,

2014).

According to Lado et al., (2017) computerized barangay information

system is appropriate for use of barangay employees, who have access to

profile of barangay residents for the direct reports. Moreover, departmental

organizational staffs which have a business need for this information for

their business unit can also benefit. This is responsible for an effective and

efficient approach for barangay employees and residents. It well help them

accomplish task faster and would also eliminate the need of a large staff. It

will provide profile-based information for residents.

According to Rambaldi et al., (1998) resource mapping allows

community members to identify, locate, and classify resource occurrence,

distribution, use, tenure, and access. Critical locations such as areas known

for illegal fishing, pollution, and siltation, among others are identified and

mapped. The resource map is an essential input for planning and


monitoring and evaluation purposes.

Malita, as the scope of this project is the capital municipality of

the Province of Davao Occidental, Philippines. According to the 2015

Philippine Census, Malita has a Population of 117,746 people. The

municipality is the main economic center of Davao Occidental province,

agriculture and fishery are the main industries of the municipality. The

current system being used by municipal personnel in gathering data of

household, population and commodities is the survey process in which they

need to transport in different barangays of Malita and then manually

evaluate.

Thus, the developers proposed Web-Based Barangay Information

System that will automate the management of barangay household,

commodities, population, and establish geotagging of products and goods

for barangays. It will utilize Google Map Application Programming Interface

(API) to locate the commodities available per barangay.

Objectives of the Study

Generally, the system aimed to establish a Web-Based Information

System of the barangays in Malita, Davao Occidental.


Specifically, it aimed to:

1. Automate the management of barangay household, commodities

and population;

2. Populate barangay data to be viewed in municipal webpage in

order to monitor the increase and decrease of households,

commodities and population for an immediate action; and

3. Establish geotagging of commodities for barangays which will

utilize Google Map Application Programming Interface (API) for

Malita, Davao Occidental, to locate the commodities in each

barangay.

Significance of the Study

The study was designed for the Municipality of Malita, Davao

Occidental. The implementation of this study is useful for appending

benefits of the users. The administrator was regarded as an important user

who can access the entire system and monitor the data being saved.

Through the portal, municipality was updated and more aware of barangay

situations in terms of household, commodities and population. They can

also organize programs that can help the barangays. Furthermore, it

provided information assistance for community growth and development.


The barangay personnel could efficiently implement the benefits to their

constituents. Through this study, the community will efficiently receive any

local government benefits that could give alternative solutions to the

problems of community to maintain productivity.

Scope and Limitation of the Study

This system was designed for the Municipality of Malita, Davao

Occidental and its barangays. It was limited to access by the administrator,

municipal personnel and barangay personnel. The study covers only the

household, commodities, population and geotagging. The household

contains the resident’s profile. In addition, the system can count the total

households and population. The system populates barangay data to be

viewed in municipal webpage in order to monitor the increase and decrease

of households, commodities and population for an immediate solution, and

using the barangay coordinates which to be manage by the administrator

and the commodity information from the barangay was used to utilize the

geotagging of commodities.

Definition of Terms
Administrator – the one who has a control in the entire system

Artifacts – refers to the database and web application software component

that runs in a server

Barangay Coordinates – refers to the latitude and longitude of barangay

which used during the geotagging

Barangay Personnel – the one who are responsible in updating the

household and commodities information

Commodities – one of the required data for geotagging procedure

Constituents – refers to the residents within the community they provide

the data from the households

Database – refers to a storage of data to be retrieved during the runtime

process of the system

Geotagging – refers to the procedure of combining the barangay

coordinates and commodities and locate it to the map.

Households – thru this data, the system can count the total population

Municipal Personnel – the one who is responsible in populating data

from the barangays

Nodes – refers to the web server hardware component exist in the system

Pre-installed – refers to the applications that was already available in a


computer

Portal – a way to access the system, update and monitor the data that the

study needed

Population – the total count per person in every barangay

Security – refers to the method use to secure the database of the system

and also include password encryption.

Users – refers to persons who will used the system they are the

administrator, municipal personnel and barangay personnel


CHAPTER II

REVIEW OF RELATED LITERATURE AND STUDIES

GIS Application for Local Government Revenue

Fiscal decentralization – the devolution of revenue mobilization and

spending powers to lower levels of government – has become a main theme

of local governance in recent years (Fjeldstad 2005). Local revenue

mobilization has the potential to foster political and administrative

accountability by empowering communities (Shah 1998). Many local

government areas are financially weak and rely on financial transfers and

assistance from the central government (Brosio 2000). Moreover, the

revenue collection administrations are often inefficient and large amounts

of revenues are left uncollected whiles that collected are sometimes


inappropriately managed (Fjeldstad 2005). If the local governments are

able to generate a lot of revenue internally some of the funds can be used

to undertake development projects in their respective assemblies instead of

relying solely on the Central Government. There is therefore the need to

improve the Internal Revenue Mobilization in order to meet targets set.

Geographic Information System (GIS) and Information Technologies

(IT) have become effective tools for the administration of a decentralized

government and for the mobilization and management of resources all over

the world. They provide the framework for all forms of spatial data storage,

data retrieval, and analysis, display, reporting and modeling (Jensen 2002).

Survey of Information Technology Use for Municipal


Infrastructure Management

As municipalities increasingly rely on computer-based systems and

data management, information that was traditionally exchanged through

human communications can now be exchanged electronically through

computer-to-computer data exchange. This requires much more formal

specifications and agreements to govern these data exchanges (Zeb et al.,

2012). Computer-based information retrieval operates through the use of

software that can offer information services for an institution or


organization. It is powerful and convenient builder for simultaneous growth

in society and industries. An information service provides a way to

electronically access, retrieve, and transmit that information (Imus et al.,

2018).

Municipal Information Systems: Current Practices and Issues

Interesting and creative uses of IT in municipalities has been

under-reported as there has been a major emphasis on for-profit entities.

System integration, GIS, and other applications of IT create challenges and

opportunities that seem unique to local governments. With the new GASB

34 that mandates state and local government information reporting, smart

and creative IT application in critical. We discuss these points and our

observations from interviewing the IT managers from some local

governments (Olsen et al., 2010). As in business, leaders and management

in government recognize that investment in IT for the sake of technology is

not wise. Rather, they are concerned about acquiring systems that work

well with one another. Particularly in areas like law enforcement and

emergency services, integration of current stand-alone systems is a top

priority (Black 2008).

Management Information in Rural Area


Communication activities are mainly described as delivering,

deploying and improving relevant information presented to public.

Information submitted by information provider needs to be understood by

the public so that what information provider means can be accepted and

implemented. Recommended media is providing digital media

communication that is public information boards combined with web-based

applications as a means of announcing information managed by the

administrator, as well as the SMS gateway as a means of receiving feedback

and information requests from the public. The information can be delivered

in the form of information about education, health, agriculture, religious

activities (Salim 2013).

The indigenous languages should be used for radio and television

news to enable rural dwellers understand the message better since study

has shown that many rural people cannot read or write; that modern and

traditional information acquisition and dissemination channels should be

used by information agent working in the rural areas; that further study

should be carried out to discover the best acceptable channels to each

categories of rural people (Ifukor 2013).


CHAPTER III

TECHNICAL BACKGROUND

Technicality of the Study

The web-based Barangay Information System runs using a web

browser. The system requires a computer that has operating system that is

compatible with the Barangay Information System web page. Thus the

system requires internet connection to utilize the Google map for viewing

and geotagging of commodities in barangay. Moreover, it requires properly

trained users to avoid unorganized data, incorrect information and system

malfunction.

Details of the Technologies Used


Sublime Text 3 was used as the editor to perform and execute all the

necessary functions that was needed during the development of the system.

WAMP server was used for testing off-line preview of webpages to get idea

how the webpage looks and it allows the developer to used computer as a

local server. Google Chrome was also used as a web browser to load and run

the contents of a web based system.

How the System Works

Data gathering and registering new and old data was used to

developed a Web-Based Barangay Information System for Malita, Davao

Occidental. To access the system, every portal of the system has its own

unique username and password the barangay, municipal and administrator.

If the system was log-in as barangay, it can manage household, and

commodity data to be viewed in municipal web page. If the system was

log-in as municipality, it can populate the household, and population

information using a tabular form. In populating the commodity information

was done using a tabular form and graphical view. Lastly, if the system was

log in as administrator, it can manage all transaction done in the system.


Figure 1. Waterfall Model

The developers used Waterfall Model as shown in Figure 1 in

developing the system. First, the developers conducted interview to the

municipal and barangay personnel if there was any problems occurs in

information sharing between barangay and municipality. The developers

gathered data from the municipal personnel, and the said data was the

result during the conducted survey in the barangay, however, there were

times the evaluated data was incorrect.

The developers decided to design the system in a web-based

platform. Using a web-based system, transferring of data in a short period

of time was possible since it only needs an internet connection to access the

system. In implementing the system, the developers used the

Pre-processor Hypertext Protocol (PHP) as its development language,


Sublime Text as code editor and WAMP Server as Database Management

System (DBMS).

CHAPTER IV

METHODOLOGY

Research Locale

The system was conducted in the Municipality of Malita, Davao

Occidental. The geographical coordinates of the deployment and coverage

of the system are 6 °20’59.99” N latitude and 125 °31’59.99”E longitude.


Figure 2. Vicinity Map of Malita, Davao Occidental
Population of the Study

The population of the study was composed of various users,

specifically the barangay personnel, municipal personnel and administrator

to update the necessary information that the study needed. The barangay

personnel has the task to manage the data from the barangay including

resident’s profile. While the municipal personnel manages the data that was

given by the barangay to be viewed in the municipal web page.

Operational Feasibility

The administration, municipal personnel, barangay secretary,

support the project. The current system was effectively used, the users saw

the need for change for improvements of data gathering and evaluation to
provide efficient services in the Malita community. The new system requires

training for users to avoid incorrect information, and if some bugs occur

they would know how to fix it. The administration of Malita was prepared to

provide necessary resources for training current employees.

The involvement of users in planning the system from the start was

not attained due to the conflict of schedule of the users and the researchers,

yet the researchers were able to involve the users in the system. The

constituents of Malita can experience disturbance temporarily in a way

which they are involved in gathering data of household.

There are some legal issues that needs to be considered from the

National Privacy Commission, which is the Implementing Rules and

Regulations of Republic Act No. 10173, known as the Data Privacy Act of

2012, Section 2. Policy. These rules further enforce the Data Privacy Act and

adopt generally accepted international principles and standards for personal

data protection. To meet one of the objectives in this study it requires

personal data of the residents in Malita. The developers need to consider

the Data Privacy Act to ensure that personal data in information and

communication are secured and protected to avoid any mischievous acts.

Figure 3 shows the breakdown of function and processes into lower

level in the system. The diagram illustrates that the administrator has the
full access of the system. Were the barangay and municipality was under

the administrator as well as its functions.

Figure 3. Functional Decomposition Diagram

Technical Feasibility

The municipality have necessary equipment that can support the

system these are computers installed with browsers and internet

connection. To avoid improper information, the developers recommend


having a technical expert to maintain the functionality of the system. The

availability of required resources such as manpower, programmers, testers

and debuggers was insufficient since the administration of Malita was still

adapting the new technologies. Proper maintenance of hardware and

software was highly required to maintain the reliability of the system were it

could integrate other municipality information system to be more productive

either now or in the future.

Compatibility Checking

Compatibility checking was done by using the pre-installed browser

for the computers available in the municipal hall and different barangay’s in

Malita, Davao Occidental. The table 1 shows that the system was able to

run in different windows operating system. The developers also check that

the system was also able to execute at any internet browser since it was

developed under open source programming language. The developers

believed that the system can also run in any operating system as long as

web server is present.


Table 1. Result of compatibility checking

COMPUTER OS BROWSER
SYSTEM

PC LAPTOP 7 8 10 CHROME FIREFOX OPERA INTERNET


MINI EXPLORER

WEB-BASED
BARANGAY
INFORMATION
SYSTEM

Relevance of the Technology

The Barangay Information System was relevant to different

barangays as well as to the municipality of Malita, Davao Occidental. It

provides efficient information to municipality regarding population,

households and commodities of barangay. The municipal personnel no need

to travel into different barangay just to gather the information needed. It

also helps the community of Malita to maintain the productivity by

monitoring the quantity of commodities using a map to easily locate the

barangay. The system was relevant to the current trend in the technology
since it was developed in a web-based system.

Schedule Feasibility

The developers used schedule in making the system. It follows time

frame with different task to be completed. With the used of this chart, the

developers carefully analyse and determine the important tasks for the

system and future improvement and attainment its objectives.

Figure 4 shows the development time of the system from the

beginning of the data gathering by means of interviewing the target users

of the system to its submission period. With this instrument the developers

supervise time and can give intervention to improve the system. The data

gathering was done from June 2017 up to the first week of October 2017.

The database design was done from last week of September 2017 to

December 2017. System building was from November 2017 up to first week

of March 2018. Initial Graphical User Interface (GUI) done from February

2018 to March 2018, testing of the system from last week of March 2018 up

to first week of May 2018. The finalization of the system was done from

April 2018 to May 2018. The documentation of the study started December

2017 and it was successfully finalized on May 2018 as well as the


development of the system.

Legend:

Complete:
Incomplete:

Figure 4. Gantt Chart

Economic Feasibility

The economic feasibility was determined by identifying costs and

benefits associated with the system. The users can understood the financial

opportunities and risk of the project. Were the administration of Malita have

limited capital resources and multiple projects was competing for funds.

Cost and Benefit of the Project

The developers set the cost of the system aligned to the


expenditures during the development of the system. Table 2 shows the

development cost of the system which total amount of Php19,000.00. Table

3 shows the projected annual with a total of Php6,000.00 and the table 4

shows the projected annual gain a total of Php4,825.00.

Table 2. Development Cost


Personnel
QTY PARTICULAR AMOUNT
2 System’s Programmer/Builder ( 300Hrs @ 50/hr) Php15,000.00
Sub-total 15,000.00
Expenses
QTY PARTICULAR AMOUNT
2 Travel Expenses Php4,000.00
Sub-total 4,000.00
Total Development Cost
Php19,000.00

Table 3. Projected Annual Cost


Personnel
QTY PARTICULAR AMOUNT
1 System Programmer (Maintenance)(30days @ Php6,000.00
100/day)
Sub-Total 6,000.00
Total Projected Annual Cost Php6,000.00

Table 4. Projected Annual Gain


QTY PARTICULAR AMOUNT
25 Bond Paper (Short) (183/ream) Php4,575.00
50 Plastic Folder (Short) (5 each) 250.00
Sub-total Php4,825.00
ROI = [GAINS/ (TOTAL DEV. COST + PA COST)] * 100%
= [4,825/ (19,000+ 6,000)] * 100%
= [4,825/ 25,000] * 100%
= 0.193 * 100%
ROI = 19.3%

The computation of Return of Investment (ROI) formula resulted to

19.3%. Therefore, the developers strongly recommended that the client

should acquire the system since it is found beneficial for them. The ROI was

used to determine if the proposed system has the average rate of return

earned on the money invested in the system.

Data and Process Modelling

Figure 5 shows the data structure and designed. It describes the

structure of an information processing program or other process with in the

system. Input used to submit data to the computer to get processed

information and the output is the systems response upon the process.
Figure 5. Input, Process, and Output Diagram of the System
Figure 6 shows the flow of the system. The system lets

administrator input username and password if it’s registered direct to the

dashboard. In the dashboard it loads all the module and operations of

administrator in the system. The administrator has the authority to access

the entire operations of the system.

Figure 6. Administrator’s System Flow Chart


Figure 7 shows the Municipal Personnel flow of the system. The

system validates the username and password by comparing the input

username and password from the database, if it was verify, it check the user

privilege then if municipal personnel has found, it loads the Municipal

Personnel module and its operations within the system.


Figure 7. Municipal Personnel’s System Flow Chart
Figure 8 shows the Barangay Personnel flow of the system. The

system lets the barangay personnel input username and password, it

should be validated based on data from the database, it check the user

privilege then if barangay personnel has found, it loads the Barangay

Personnel module and the basic operation which are manage household

information, manage commodities information and print reports.

Figure 8. Barangay Personnel’s System Flow Chart


Figure 9 shows context diagram that defines the boundary of the

system, its setting and objects that interact with it. It shows the individual

that provides data into the system. The Barangay Information System

processed commodities and household information of the barangay then,

the system provide heat map of commodities which the data come from

barangay. The Municipality can populate the data that was registered into

the system.

Figure 9. Context Diagram of the System


Figure 10 shows the data flows inside the system. This diagram was

used to display the databases that can be found inside the system and the

information being saved and retrieved during the runtime process of the

system.

Figure 10. Data Flow Diagram of the System


Object Modelling

In understanding this system, figure 11 shows the use case diagram.

This diagram shows the relationship of administrator, barangay personnel

and municipal personnel actors of the system. It describes the flow of the

system in different users. It describes a sequence of actions of the system

that provides interaction to other actors of the system.

Figure 11. Use Case Diagram of the System


Figure 12 shows the relationship of different classes of the system.

This diagram determines the process of and functions that was relevant to

the system. Class diagram was used to describe the structure of the system

by showing its classes, attributes and operations. It was generated from the

Entity Relationship Diagram.

Figure 12. Class Diagram of the System


Figure 13 shows the collaboration of objects on a time sequence.

The developers use this diagram to construct sequential chart. First, the

system shows the login form then, the administrator provides username and

password, if correct the administrator dashboard will show.

Figure 13. Administrator’s Sequence Diagram of the System

Figure 14 shows the collaboration of objects in Municipal Personnel

time sequence in the system. It shows the operations of municipal personnel

within the system. The municipal personnel can populate the information of

the different barangays and provide reports.


Figure 14. Municipal Personnel Sequence Diagram of the System

Figure 15 shows the sequence of objects in Barangay Personnel on

the system. The system lets the barangay personnel input username and

password, if it was verify that already registered then it successfully login. It

loads the object sequentially done in the system.

Figure 15. Barangay Sequence Diagram of the System


Figure 16 shows the administrator activities of the system. It

describes the system in dynamic aspect. Activity diagram is also flowchart

that represents activity to another activity. The activities below described

administrator operation of the system.

Figure 16. Administrator Activity Diagram of the System

Figure 17 shows the Municipal Personnel activities of the system.

The municipal personnel start from login and the system verifies the

username and password if it was valid direct to dashboard and if not


redirect to registration. Under the dashboard shows the activities of the

municipal personnel in the system.

Figure 17. Municipal Personnel Activity Diagram of the System

Figure 18 shows the Barangay Personnel activities of the system.

From the login, the system validates the username and password. If it was

valid the dashboard load its activity which are manage household and

commodities, it also contains print reports.


Figure 18.Barangay Personnel Activity Diagram of the System

Data Design

The entity relationship diagram was used to show the connection

between various entity that was utilized and part of building this system.

Figure 19 shows that there is one to many relation of the entity users,

barangay, commodity, household and children. The system could have

many users, and the users could be different barangays. The barangay have

many households and different commodities, and one commodity could be


in different barangay.

Figure 19. Entity Relationship Diagram of the System

Data Dictionary

Table 5 display data dictionary, it is an incorporated repository of

data about in the barangay, commodity, crops, household, children, system

and user. It also displays the attribute name, contents, data type, format,

range, required, foreign key or primary key and foreign key reference table.
Table 5. Data Dictionary
TABLE ATTRIBUTE CONTENTS TYPE FORMAT REQUIRED PK FK
NAME NAME OR REFFERENCE
FK TABLE
Id Baranga int(11) Y P
barangay
y ID K
Name Baranga varcha Xxxxx Y
y Name r
Lat Baranga (255) Xxxxx Y
y int(11)
Long Latitude Xxxxx Y
IsVisible Baranga int(11) Xxxxx Y
y
Longitud
e
Id Children int(11) Y P
chlildre Id K
n Name Children varcha Xxxxx Y
Name r x
Bdate Children (255) Y
B-Date Varcha Xxxxx Y
parentId r x
(255) Xxxxx F
int(11) x K
Id Comm int(11) Y P
commodity ID K
Brgyid int(11) Xxxxx Y
Nofarmer Brgy. ID int(11) x Y F
No. of Xxxxx K
Cropid farmer int(11) x Y
Crop id
Unit varcha Xxxxx Y F
Comm r(255) x K
Qnty unit int(11) Y
Comm Xxxxx
datecreated quantity varcha x Y
Comm r(255)
date Xxxxx
x
Xxxxx
x
crop Id Crop id int(11) Y P
Name Crop varcha Xxxxx Y K
name r x
isvisible (255) Xxxxx Y
int(11) x
household
Id Househo int(11) Xxxxx Y P
ld id x K
Husband Husband varcha Y
name r Xxxxx
Hbdate Husband (255) x Y
B-date varcha
Hoccupati Husband r Xxxxx Y
on occupati (255) x
on Varcha Y
Spouse Spouse r Xxxxx
name (255) x Y
Sbdate Spouse Varcha
B -date r Xxxxx Y
Soccupati Spouse (255) x
on occupati Varcha Y
on r Xxxxx
Address address (255) x
varcha
r Xxxxx
(255) x
varcha
r Xxxxx
(255) x
System Id System int(11) Y P
Sitename id varcha Xxxxx Y K
System r x
Address name (255) Y
Address Varcha Xxxxx
Email r x Y
Email (255)
Mobile address Varcha Xxxxx Y
Cell r x
Telephone phone (255) Y
number Varcha Xxxxx
Fax Telephon r x Y
e (255)
Municipalit Number Varcha Xxxxx Y
y Fax r x
Number (255) Y
datecreate Municipa Varcha Xxxxx
d l Name r x
Date (255)
created Varcha Xxxxx
r x
(255)
Varcha Xxxxx
r x
(255)
user Id User id int(11) Y P
Name User varcha Xxxxx Y K
name r x
bio (255) Y
User bio Varcha Xxxxx
Address r x Y
User (255)
Username address Varcha Xxxxx Y
Usernam r x
Password e (255) Y
Varcha Xxxxx
Privilege User r x Y
passwor (255)
Datecreated d Varcha Xxxxx Y
User r x
Datemodif privilege (255) Y
ied Date Varcha Xxxxx
Isconfirm created r x Y
Isvisible Date (255) Y
brgyid modified Varcha xxxxx Y
Is r x F
confirm (255) K
Is visible Varcha Xxxxx
Brgy id r x
(255)
int(11) Xxxxx
int(11) x
int(11) Xxxxx
x
Xxxxx
x
Security

Using a case sensitive method in MySQL it traps font cases of the

input username and password during login, were it must be the same as

what was being registered. Eventough, municipal personnel can create

user, yet the administrator has the authority to review and manipulate the

users list if there was any malicious user being registered. Every barangay

personnel and municipal personnel has its unique username and password

to access the system. The security now a day was very important since

hacking and intrusion was spread all over the web. Having antivirus

protection was also important to protect computers from malicious

software’s and data lost.

Software Specification

Software Specification it refers to the software used in developing a

web-based Barangay Information System. It lays out the functionality of the

system and includes the interaction of user that the software must provide.

Table 6 shows the list of specific software being used in the system and its

specification.
Table 6. List of software used
NAME OF SOFTWARE SPECIFICATION
Operating System Windows 10 64-bit
WAMP Server Version 2.4
Code Editor Sublime Text Version 3
Web Browser Google Chrome
Version 66.0.3359.139
64-bit

Hardware Specification

Hardware specification refers to the system requirements where

electronic components are recommended for the development of the

system.

Table 7. List of hardware used


NAME OF HARDWARE SPECIFICATIONS
Desktop Computer

Internal Parts:

Central Processing Unit (CPU) 1.60GHz

Random Access Memory (RAM) 4.00 GB

Hard Disk Drive (HDD) 500 GB

Sound Card Built-in


External Parts:

Monitor 14 inches display LED

Keyboard Built-in

Mouse USB Type

Printer 3-in-1 inkjet printer

Ethernet Built-in

Programming Environment

PHP was used as the programming language of this system,

combined with an array of site management tools. Sublime texts were used

as the editor to perform and execute all the necessary functions that was

needed during the development of the system.

WAMP was used for web development and internal testing, but may

also be used to serve live websites. WAMP server was used for testing

off-line preview of webpages to get idea how the webpage looks and it

allows the developer to used computer as a local server.

Figure 20 models the physical deployment of artifacts on nodes. To

describe a website a deployment diagram would show what hardware


components (nodes) exist (e.g., a web server, an application server, and a

database server), what software components (artifacts) run on each node

(e.g., web application, database), and how the different pieces are

connected (e.g. MySQL).

Figure 20. Deployment diagram of the system

Test Plan

Functional Testing is a testing type which is performed to verify that

each functions, features, module of the system is working as per the given

requirements by the client. Functional test is performed to confirm that the

functionality of system is behaving as expected. Functional testing

generates an output based on the given inputs and determines if the system

is functioning correctly as per the specifications. Each functionality of the


system is tested by providing given set of inputs positive and negative

reactions of the users, and edge values in order to know the actual behavior

of the application and thereafter comparing with the expected results as per

the given specifications. Figure 21 shows the steps in performing a

functional testing.

Figure 21. Functional Testing of the system

The table below shows the testing plan of the system. Table 8

includes all the module and operations in the system. It was also evaluated

as functional or not functional.

Table 8. Test Plan


Form: Functional Not
Functional
Dashboard
Quick Registration
 User
 Commodity
 Crop
 Household
 Map
Household
 Save New Household
 Children
 Filter
 Print
 Map

Commodity
 Save New Commodity
 Edit Commodity
 Delete Commodity
 Filter
 Barangay
 Commodity
 Print
 Map
Population
 Search
 Overall Population
User
 Add User
 Edit User
 Delete User
Crop
 Add Crop
 Edit Crop
 Delete Crop
Barangay
 Add Barangay
 Edit Barangay
 Delete Barangay
System
 Update Information

Profile
 Update Profile
CHAPTER V

SUMMARY, CONCLUSION AND RECOMMENDATIONS

Summary

The study was conducted at Malita, Davao Occidental. The purpose

of Web-Based Barangay Information System to help the community of

Malita to maintain the productivity and efficient solutions from the local

government if there was any problem occurs in population, households and

commodities of every barangay. The developers used a waterfall method in

developing the system. It is necessary to knew what was the problem

occurs for them to evaluate the needed requirements for them able to

design the system, how to implementation and test the system. The

developers used PHP as the language for development, Sublime Text as the

codes editor, WAMP Server to create a local server and Google Chrome as a

web browser.

The project’s objectives was met, particularly, it could manage and

gathered household, population and commodities data in a short period of

time, and could now efficiently monitor the status of the community to

provide an immediate solution and establish geotagging of commodities for


barangays which will utilize Google Map Application Programming Interface

(API) for Malita, Davao Occidental, to easily find the commodities in which

available barangay using map.

Conclusion

Base on the result of the study, the following conclusions were

sought:

1. A module that captures or store barangay information has been

provided. Thus, there were two (2) ways in saving barangay

information through administrator and barangay personnel;

2. A module that populates barangay data was provided. The

municipal personnel and administrator can populate data being

save and can monitor its status; and

3. A module that geotagged commodities was provided. With

combination of barangay coordinates and commodities the

system can provide a placemark with indication of its details.


Recommendations

The study was recommended to improve the barangay portal,

that should include every sitio and purok. Furthermore, it was

recommended to determine the exact address of the residents and

categorize the population of every sitio within a barangay for further

information. It was also recommended that the printed reports must

contain header and footer, in order that the reports will be more presentable

and formal.
BIBLIOGRAPHY

Brosio, G. (2000). Decentralization in Africa. Africa Department,


International Monetary Fund., (p. 2).

Fosu, C., and Ashiagbor, G. (2012). GIS Application for Local


Government Revenue

Fjeldstad, O. H. (2005). Local Governance and Poverty Reduction in


Africa. Workshop on Local Governance and Poverty Alleviation in
Africa, African Development Bank. Tunis: Joint Africa Institute.

Imus, J.K., Magleo, E., and Olalia, R. Jr. (2016). Barangay


Management Information System (BMIS) for Cities and Municipalities
in the Philippines

Jensen, M. (2002). Information and Communication Technologies as


Tools for Improving Local Governance in Africa.

Olsen, D., Johnson, J., Hacking, M., and Forsgen, N. (2012).


Municipal Information Systems: Current Practices and Issues

Shah, A. (1998). Fostering Fiscally Responsive and Accountable


Governance: Lessons from Decentralisation. (pp. 83-96, in R.
Picciotto & E. Wiesner (eds) Evaluation and Development.

Zeb, J., Froese, T., and Vanier, D. (2012). Survey of Information


Technology Use for Municipal Infrastructure Management

Zeb, J., Froese, T., and Vanier, D. (2012). Infrastructure Management


Process Maturity Model: Development and Testing, in preparation,
Proceedings of the CIB W78-W102-2011. International Conference
– Sophia Antipolis, France.
APPENDICES

Appendix 1. Relevant Source Code

Barangay Module
<?php
class Barangay extends General{
public function newBrgy($n = array()){
$sql = "INSERT INTO barangay (name,lat,lng,isvisible) VALUES
('".$n[0]."','".$n[1]."','".$n[2]."','1') ";
parent::queries($sql);
}

public function updateBrgy($n = array()){


$sql = "UPDATE barangay SET name = '".$n[0]."',lat =
'".$n[1]."',lng = '".$n[2]."' WHERE id = '".$n[3]."' ";
parent::queries($sql);
}

public function deleteBrgy($n = array()){


$sql = "UPDATE barangay SET isvisible = '".$n[0]."' WHERE id =
'".$n[1]."' ";
parent::queries($sql);
}

public function getBrgyName($n){


$sql = "SELECT name FROM barangay WHERE id = '".$n."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getBrgyLat($n){


$sql = "SELECT lat FROM barangay WHERE id = '".$n."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}
public function getBrgyLng($n){
$sql = "SELECT lng FROM barangay WHERE id = '".$n."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function loadBrgys(){


$d = "";
$sql = "SELECT * FROM barangay WHERE isvisible = '1' ";
$query = parent::queries($sql);
while($row = $query->fetch_assoc()){
$d .= '
<tr>
<td>'.ucwords($row['name']).'</td>
<td>
<div class="pull-right">
<a
href="?page=barangay&action=edit&edit='.$row['id'].'" class="btn btn-sm
btn-primary" title="Edit"><i class="fa fa-edit"></i></a>
<a
href="?page=barangay&action=delete&delete='.$row['id'].'" class="btn
btn-sm btn-danger" title="Delete"><i class="fa fa-trash"></i></a>
</div>
</td>
</tr>
';
}
return $d;
}

public function loadBrgysAsCombo($brgyid = 0){


$d = "";
$sql = "SELECT * FROM barangay WHERE isvisible = '1' ";
$query = parent::queries($sql);
while($row = $query->fetch_assoc()){
if($brgyid == $row['id']){
$d .= '
<option value="'.$row['id'].'"
selected>'.ucwords($row['name']).'</option>
';
}else{
$d .= '
<option
value="'.$row['id'].'">'.ucwords($row['name']).'</option>
';
}
}
return $d;
}

public function BrgyCount(){


$sql = "SELECT COUNT(id) FROM barangay WHERE isvisible = '1' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function BrgyExist($n){


$sql = "SELECT COUNT(id) FROM barangay WHERE name =
'".$n."' AND isvisible = '1' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function BrgyListJson(){


$nj = "";
$j = '{"map"=[';
$sql = "SELECT id,name,lat,lng FROM barangay WHERE isvisible =
'1' ";
$query = parent::queries($sql);
while($row = $query->fetch_array()){
$j .=
'{id:'.$row[0].',name:'.$row[1].',lat:'.$row[2].',lng:'.$row[3].'},';
}
$nj = substr($j, count($j) -1, -1);

$j .= $nj;
$j .= ']}';

return $j;
}

public function BrgyListXML(){


global $system,$crop;
$xml = "<?xml version='1.0' ?>";
$xml .= '
<markers>
';

$ind=0;
$sql = "SELECT * FROM barangay WHERE isvisible = '1' ";
$query = parent::queries($sql);
while($row = $query->fetch_assoc()){
$xml .= '<marker
id = "'.$row['id'].'"
name = "Barangay '.ucwords($row['name']).'"
address = "'.ucwords($row['name']).',
'.$system->getMunicipality().', Davao Occidental"
commodity = "Commodities : ';

if($crop->getBrgyCommodityCount($row['id']) > 0){


$xml .= $crop->getBrgyCommodity($row['id']);
}else{
$xml .= 'n/a';
}

$xml .= '"
nofarmer = "Farmers : ';

if($crop->getBrgyNofarmerCount($row['id']) > 0){


$xml .= $crop->getBrgyNofarmer($row['id']);
}else{
$xml .= '0';
}

$xml .= '"
lat = "'.$row['lat'].'"
lng = "'.$row['lng'].'"
/>';
$ind = $ind + 1;
}

$xml .= '
</markers>';
return $xml;
}
}
?>

Person Module

<?php
class Person extends General{
public function newHousehold($h = array(),$s = array(),$address){
$sql = "INSERT INTO household
(husband,hbdate,hoccupation,spouse,sbdate,soccupation,address) VALUES
('".$h[0]."','".$h[1]."','".$h[2]."','".$s[0]."','".$s[1]."','".$s[2]."','".$address."
')";
parent::queries($sql);
}

public function updateHousehold($h = array(),$s = array(),$address,


$id){
$sql = "UPDATE household SET
husband='".$h[0]."',hbdate='".$h[1]."',hoccupation='".$h[2]."',spouse='".
$s[0]."',sbdate='".$s[1]."',soccupation='".$s[2]."',address = '".$address."'
WHERE id = '".$id."'";
parent::queries($sql);
}
public function householdCount($hname,$sname){
$sql = "SELECT COUNT(id) FROM household WHERE husband =
'".$hname."' AND spouse = '".$sname."' ";
$query = parent::queries($sql);
$row =$query->fetch_array();
return $row[0];
}

public function householdTotal(){


$sql = "SELECT COUNT(id) FROM household ";
$query = parent::queries($sql);
$row =$query->fetch_array();
return $row[0];
}

public function getHusbandName($id){


$sql = "SELECT husband FROM household WHERE id = '".$id."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getHusbandBdate($id){


$sql = "SELECT hbdate FROM household WHERE id = '".$id."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getHusbandOccupation($id){


$sql = "SELECT hoccupation FROM household WHERE id = '".$id."'
";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getSpouseName($id){


$sql = "SELECT spouse FROM household WHERE id = '".$id."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getSpouseBdate($id){


$sql = "SELECT sbdate FROM household WHERE id = '".$id."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getSpouseOccupation($id){


$sql = "SELECT soccupation FROM household WHERE id = '".$id."'
";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getHouseholdBrgy($id){


$sql = "SELECT address FROM household WHERE id = '".$id."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function loadHousehold($brgyid = 0){


$k = "";
if($brgyid == 0){
$sql = "SELECT * FROM household AS h INNER JOIN
barangay AS b ON h.address = b.id ";
}else{
$sql = "SELECT * FROM household AS h INNER JOIN
barangay AS b ON h.address = b.id WHERE h.address = '".$brgyid."' ";
}

$query = parent::queries($sql);
while($row = $query->fetch_assoc()){
$k .= '
<tr>
<td>'.$row['husband'].'</td>
<td>'.$row['hbdate'].'</td>
<td>'.$row['hoccupation'].'</td>
<td>'.$row['spouse'].'</td>
<td>'.$row['sbdate'].'</td>
<td>'.$row['soccupation'].'</td>
<td><small>'.ucwords($row['name']).'</small></td>
<td>'.$this->myChildCount($row['id']).'</td>
<td>
<div class="pull-right">
<a
href="?page=household&action=edit&edit='.$row['id'].'" class="btn
btn-sm btn-primary" title="Edit">
<i class="fa fa-edit"></i>
</a>
<a
href="?page=household&action=new&id='.$row['id'].'" class="btn btn-sm
btn-info" title="New child">
<i class="fa fa-child"></i>
</a>
<a
href="?page=household&action=view&id='.$row['id'].'" class="btn btn-sm
btn-info" title="View child">
<i class="fa fa-eye"></i>
</a>

</div>
</td>
</tr>
';
}
return $k;
}

public function newChild($v =array()){


$sql = "INSERT INTO children (name,bdate,parentid) VALUES
('".$v[0]."','".$v[1]."','".$v[2]."')";
parent::queries($sql);
}

public function updateChild($v = array() , $id){


$sql = "UPDATE children SET name = '".$v[0]."',bdate = '".$v[1]."'
WHERE id = '".$id."' ";
parent::queries($sql);
}

public function myChildCount($parentid){


$sql = "SELECT COUNT(id) FROM children WHERE parentid =
'".$parentid."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function myChildExist($name,$parentid){


$sql = "SELECT COUNT(id) FROM children WHERE name =
'".$name."' AND parentid = '".$parentid."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function loadChild($id){


$k = "";
$sql = "SELECT * FROM children WHERE parentid = '".$id."' ";
$query = parent::queries($sql);
while($row = $query->fetch_assoc()){
$k .= '
<tr>
<td>'.$row['name'].'</td>
<td>'.$row['bdate'].'</td>
<td>
<div class="pull-right">
<a
href="?page=household&action=view&id='.$id.'&sub=edit&childid='.$row
['id'].'" class="btn btn-sm btn-primary" title="Edit">
<i class="fa fa-edit"></i>
</a>
<a
href="?page=household&action=view&id='.$id.'&sub=delete&childid='.$r
ow['id'].'" class="btn btn-sm btn-danger" title="Delete">
<i class="fa fa-trash"></i>
</a>

</div>
</td>
</tr>
';
}
return $k;
}

public function deleteChild($childid){


$sql = "DELETE FROM children WHERE id = '".$childid."' ";
parent::queries($sql);
}

public function getChildName($id){


$sql = "SELECT name FROM children WHERE id = '".$id."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getChildBdate($id){


$sql = "SELECT bdate FROM children WHERE id = '".$id."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

}
System

<?php
class System extends General{
public function newSystem($n = array()){
$sql = "INSERT INTO system
(sitename,address,email,mobile,telephone,fax,municipality,datecreated)
VALUES
('".$n[0]."','".$n[1]."','".$n[2]."','".$n[3]."','".$n[4]."','".$n[5]."','".$n[6]."','"
.parent::days()."') ";
parent::queries($sql);
}

public function updateSystem($n = array()){


$sql = "UPDATE system SET sitename = '".$n[0]."',address =
'".$n[1]."',email = '".$n[2]."',mobile = '".$n[3]."',telephone = '".$n[4]."',fax
= '".$n[5]."',municipality = '".$n[6]."' ";
parent::queries($sql);
}

public function countSystem(){


$sql = "SELECT COUNT(id) FROM system";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getSitename(){


$sql = "SELECT sitename FROM system";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getAddress(){


$sql = "SELECT address FROM system";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getEmail(){


$sql = "SELECT email FROM system";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getMobile(){


$sql = "SELECT mobile FROM system";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getTelephone(){


$sql = "SELECT telephone FROM system";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getFax(){


$sql = "SELECT fax FROM system";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getMunicipality(){


$sql = "SELECT municipality FROM system";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}
}

?>

User

<?php
class User extends General{
public function newUser($i = array()){
$sql = "
INSERT INTO user

(name,bio,address,username,password,previledge,datecreated,datemo
dified,isconfirm,isvisible,brgy)
VALUES

('".$i[0]."','".$i[1]."','".$i[2]."','".$i[3]."','".$i[4]."','".$i[5]."','".parent::da
ys()."','".parent::days()."','1','1','".$i[6]."')
";
parent::queries($sql);
}

public function updateUser($i = array(), $id){


$sql = "
UPDATE user SET
name = '".$i[0]."',bio = '".$i[1]."',address =
'".$i[2]."',username = '".$i[3]."',password = '".$i[4]."',datemodified =
'".parent::days()."'
WHERE id = '".$id."'
";
parent::queries($sql);
}

public function deleteUser($i = array()){


$sql = "UPDATE user SET isvisible = '".$i[0]."' WHERE id =
'".$i[1]."' ";
parent::queries($sql);
}
public function getName($i){
$sql = "SELECT name FROM user WHERE id = '".$i."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getBio($i){


$sql = "SELECT bio FROM user WHERE id = '".$i."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getAddress($i){


$sql = "SELECT address FROM user WHERE id = '".$i."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getUsername($i){


$sql = "SELECT username FROM user WHERE id = '".$i."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getPassword($i){


$sql = "SELECT password FROM user WHERE id = '".$i."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getUserBrgy($i){


$sql = "SELECT brgy FROM user WHERE id = '".$i."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getPreviledge($i){


$sql = "SELECT previledge FROM user WHERE id = '".$i."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

private function setPreviledge($i){


if($i == 1){
return 'admin';
}else{
return 'user';
}
}

public function loadUsers(){


global $barangay;
$draw = "";
$sql = "SELECT * FROM user WHERE isvisible = '1' ";
$query = parent::queries($sql);
while($row = $query->fetch_assoc()){
$draw .= '
<tr>
<td>'.ucwords($row['name']).'</td>

<td>'.ucwords($barangay->getBrgyName($row['brgy'])).'</td>
<td>'.$row['previledge'].'</td>
<td>'.$row['datecreated'].'</td>
<td>
<div class="pull-right">
<a
href="?page=user&action=edit&edit='.$row['id'].'" class="btn btn-sm
btn-primary" title="Edit"><i class="fa fa-edit"></i></a>
<a
href="?page=user&action=delete&delete='.$row['id'].'" class="btn btn-sm
btn-danger" title="Delete"><i class="fa fa-trash"></i></a>
</div>
</td>
</tr>
';
}
return $draw;
}

public function UserCount(){


$sql = "SELECT COUNT(id) FROM user WHERE isvisible = '1' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function userExist($n){


$sql = "SELECT COUNT(id) FROM user WHERE name = '".$n."'
AND isvisible = '1' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function userNameExist($n){


$sql = "SELECT COUNT(id) FROM user WHERE username =
'".$n."' AND isvisible = '1' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function correctCredentials($n = array()){


$sql = "SELECT COUNT(id) FROM user WHERE username =
'".$n[0]."' AND password = '".$n[1]."' AND isvisible = '1' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}
public function getIDCredentials($n = array()){
$sql = "SELECT id FROM user WHERE username = '".$n[0]."' AND
password = '".$n[1]."' AND isvisible = '1' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

}
?>

Crop

<?php
class Crop extends General{
public function newCrop($n){
$sql = "INSERT INTO crop (name,isvisible) VALUES ('".$n."','1') ";
parent::queries($sql);
}

public function updateCrop($n = array()){


$sql = "UPDATE crop SET name = '".$n[0]."' WHERE id = '".$n[1]."'
";
parent::queries($sql);
}

public function deleteCrop($n = array()){


$sql = "UPDATE crop SET isvisible = '".$n[0]."' WHERE id =
'".$n[1]."' ";
parent::queries($sql);
}

public function getCropName($n){


$sql = "SELECT name FROM crop WHERE id = '".$n."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}
public function loadCrops(){
$d = "";
$sql = "SELECT * FROM crop WHERE isvisible = '1' ";
$query = parent::queries($sql);
while($row = $query->fetch_assoc()){
$d .= '
<tr>
<td>'.$row['name'].'</td>
<td>
<div class="pull-right">
<a
href="?page=crop&action=edit&edit='.$row['id'].'" class="btn btn-sm
btn-primary" title="Edit"><i class="fa fa-edit"></i></a>
<a
href="?page=crop&action=delete&delete='.$row['id'].'" class="btn btn-sm
btn-danger" title="Delete"><i class="fa fa-trash"></i></a>
</div>
</td>
</tr>
';
}
return $d;
}

public function cropCount(){


$sql = "SELECT COUNT(id) FROM crop WHERE isvisible = '1' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function cropExist($n){


$sql = "SELECT COUNT(id) FROM crop WHERE name = '".$n."' AND
isvisible = '1' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}
public function CropTableHeader($sql){
$k = "";
$query = parent::queries($sql);
while($row = $query->fetch_assoc()){
$k .= '
<th>'.ucwords($row['name']).'</th>
';
}
return $k;
}

public function CropListAsObject($id = 0){


$k = "";
$sql = "SELECT * FROM crop WHERE isvisible = '1' ";
$query = parent::queries($sql);
while($row = $query->fetch_assoc()){
if($id == $row['id']){
$k .= '<option value="'.$row['id'].'"
selected>'.ucwords($row['name']).'</option>';
}else{
$k .= '<option
value="'.$row['id'].'">'.ucwords($row['name']).'</option>';
}
}
return $k;
}

public function addCommodity($i = array()){


$sql = "INSERT INTO commodity
(brgyid,nofarmer,cropid,unit,qnty,datecreated) VALUES
('".$i[0]."','".$i[1]."','".$i[2]."','".$i[3]."','".$i[4]."','".$i[5]."')";
parent::queries($sql);
}

public function loadCommodity($brgyid = 0){


global $barangay;
$k = "";
if($brgyid == 0){
$sql = "SELECT * FROM commodity ";
}else{
$sql = "SELECT * FROM commodity WHERE brgyid = '".$brgyid."' ";
}
$query = parent::queries($sql);
while($row = $query->fetch_assoc()){
$k .= '
<tr>

<td>'.ucwords($barangay->getBrgyName($row['brgyid'])).'</td>
<td>'.$row['nofarmer'].'</td>

<td>'.ucwords($this->getCropName($row['cropid'])).'</td>
<td>'.$row['unit'].'</td>
<td>'.$row['qnty'].'</td>
<td>
<div class="pull-right">
<a
href="?page=commodity&action=edit&edit='.$row['id'].'" class="btn
btn-sm btn-primary" title="Edit">
<i class="fa fa-edit"></i>
</a>
<a
href="?page=commodity&action=delete&delete='.$row['id'].'" class="btn
btn-sm btn-danger" title="Delete">
<i class="fa fa-trash"></i>
</a>
</div>
</td>
</tr>
';
}
return $k;
}

public function deleteCommodity($id){


$sql = "DELETE FROM commodity WHERE id = '".$id."' ";
parent::queries($sql);
}
public function updateCommodity($i = array() , $id){
$sql = "UPDATE commodity SET brgyid = '".$i[0]."',nofarmer =
'".$i[1]."',cropid = '".$i[2]."',unit = '".$i[3]."',qnty = '".$i[4]."' WHERE id =
'".$id."' ";
parent::queries($sql);
}

public function getBrgyid($id){


$sql = "SELECT brgyid FROM commodity WHERE id = '".$id."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getNofarmer($id){


$sql = "SELECT nofarmer FROM commodity WHERE id = '".$id."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getCropid($id){


$sql = "SELECT cropid FROM commodity WHERE id = '".$id."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getUnit($id){


$sql = "SELECT unit FROM commodity WHERE id = '".$id."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

public function getQnty($id){


$sql = "SELECT qnty FROM commodity WHERE id = '".$id."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}
public function getBrgyCommodityCount($brgyid){
$sql = "SELECT count(id) FROM commodity WHERE brgyid =
'".$brgyid."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}
public function getBrgyNofarmerCount($brgyid){
$sql = "SELECT count(id) FROM commodity WHERE brgyid =
'".$brgyid."' AND nofarmer > 0 ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}
public function getBrgyCommodity($brgyid){
$comm = "";
$sql = "SELECT DISTINCT(cropid) FROM commodity WHERE brgyid =
'".$brgyid."' ";
$query = parent::queries($sql);
while($row = $query->fetch_array()){
$comm .= $this->getCropName($row[0]). ",";
}
$ncomm = substr($comm, count($comm) -1, -1);
$comm = $ncomm;
return $comm;
}
public function getBrgyNofarmer($brgyid){
$sql = "SELECT nofarmer FROM commodity WHERE brgyid =
'".$brgyid."' ";
$query = parent::queries($sql);
$row = $query->fetch_array();
return $row[0];
}

}
?>
APPENDIX B

Communication Letter
APPENDIX C

Evaluation Tool
APPENDIX D

Administrator User Guide

 Homepage
 Click Login to show login page

 Select operations from the menu bar


 Input username
 Scrolland password
down the page for quick registration
 Click Login
 Click new to add commodity
 Click filter type, to filter commodity by barangay or commodity
 For random search, input text in search text field
 Click edit icon, to edit commodity data
 Click delete icon, to delete commodity data
 Click print to print reports
 To open report as excel or pdf click excel or pdf, and to copy report click
copy
 To view
Click new more
to addsaved data of commodity click next
household
 Scroll
Click down
filter for to
type, commodity map viewor age
filter by barangay
 For random search, input text in search text field
 Click edit icon, to edit household data
 Click add child icon, to add and view icon to view child data
 Click print to print reports
 To open report as excel or pdf click excel or pdf, and to copy report click
copy
 To view more saved data of household click next
 Scroll down for household map view
  Click
Click newnew to add
to add crop user
 ForFor
 random
random search,
search, inputinput
texttext in search
in search texttext
fieldfield
  Click edit icon, to edit
Click edit icon, to edit crop user profile data
  Click
Click delete
delete icon,icon, to delete
to delete cropuser data
  Click
Click print
print to print
to print reports
reports
 To To
 openopen report
report as excel
as excel or pdf
or pdf clickclick excel
excel or pdf,
or pdf, andand to copy
to copy report
report clickclick
copycopy
 To view more saved data of household click next
 Click new to add crop
 For random search, input text in search text field
 Click edit icon, to edit crop data
 Click delete icon, to delete crop data
 Click print to print reports
 To open report as excel or pdf click excel or pdf, and to copy report click
copy
 To view more saved data of crop click next

 Click new to add barangay


 For random search, input text in search text field
 Click edit icon, to edit barangay data
 Click delete icon, to delete barangay data
 Click print to print reports
 To open report as excel or pdf click excel or pdf, and to copy report click
copy
 To view more saved data of barangay click next
 Fill up the field you want to update
 Click update information, to update

 Click new to add new page in homepage


 For random search, input text in search text field
 Click edit icon, to edit page information
 Click delete icon, to delete page
 Click published to published page, unpublished if not.

 Fill up the field you want to update


 Click update user, to update
APPENDIX E

Municipal Personnel User Guide

 Homepage
 Click Login to show login page

 Input username and password


 Click Login
 Select operations from the menu bar
 Scroll down the page for quick registration

 Fill up all fields with correct data


 Click save user, and save to add
 To search barangay, input barangay name in search text field
 Click print to print reports
 To open report as excel or pdf click excel or pdf, and to copy
report click copy
 To view more saved data of population click next
 Scroll down for population map view
 Click new to add user
 For random search, input text in search text field
 Click edit icon, to edit user profile data
 Click delete icon, to delete user data
 Click print to print reports
 To open report as excel or pdf click excel or pdf, and to copy
report click copy

 Fill up the field you want to update


 Click update user, to update
APPENDIX F

Barangay Personnel User Guide

 Homepage
 Click Login to show login page

 Input username and password


 Click Login
 Select operations from the menu bar
 Scroll down the page for quick registration

 Fill up all fields with correct data


 Click save commodity, and save household to add
 Click new to add commodity
 Click filter type, to filter commodity by barangay or commodity
 For random search, input text in search text field
 Click edit icon, to edit commodity data
 Click delete icon, to delete commodity data
 Click print to print reports
 To open report as excel or pdf click excel or pdf, and to copy
report click copy
 To view more saved data of commodity click next
 Scroll down for commodity map view
 Click new to add household
 Click filter type, to filter by barangay or age
 For random search, input text in search text field
 Click edit icon, to edit household data
 Click add child icon, to add and view icon to view child data
 Click print to print reports
 To open report as excel or pdf click excel or pdf, and to copy
report click copy
 To view more saved data of household click next
 Scroll down for household map view

 Fill up the field you want to update


 Click update user, to update
APPENDIX G

Grammarian’s Certification
CURRICULUM VITAE

Personal Data
Name : Myca Mae A. Aparici
Address : Malita, Davao Occidental
Date of Birth : May 15, 1998
Place of Birth : Digos, Davao del Sur
Sex : Female
Height : 5’2”
Weight : 58kls.
Status : Single
Religion : Catholic
Nationality : Filipino
Tribe : Bisaya
Parents
Mother : Leoncia A. Aparici
Father : Pablito E. Aparici

Educational Background
Elementary
School : Cogtong Elementary School
Year attended : 2004 – 2007
School : Mariano Peralta Elementary
School
Year attended : 2007 – 2010
Awards/Honors : Fifth Honorable Mention
Received
Secondary
School : Gen. Emilio Aguinaldo National
High School
Year attended : 2010 – 2014
College
Course : Bachelor of Science in
Information Technology
School : Southern Philippines
Agri-Business and Marine and
Aquatic School of Technology
(SPAMAST)
Year attended : 2014 – 2018
Work Experience
Agency : Inquirinity Corporation
Inclusive Dates : January 18, 2018- March 9, 2018
Position/Designation : On-the-Job Training

Affiliation
Name of Organization : InfoTech Society
Position : P.I.O
Inclusive Dates : 2015-2016
Position : Vice-Governor
Inclusive Dates : 2016-2017
Position : Sgt. @ Arms
Inclusive Dates : 2017-2018
CURRICULUM VITAE

Personal Data
Name : John Rey J. Ruelan
Address : Malita, Davao Occidental
Date of Birth : December 15, 1997
Place of Birth : Davao City
Sex : Male
Height : 5’6”
Weight : 73kls.
Status : Single
Religion : Catholic
Nationality : Filipino
Tribe : Bisaya
Parents
Mother : Nanette J. Ruelan
Father : Reynaldo M. Ruelan

Educational Background
Elementary
School : Quirino Elementary School
Year attended : 2004 – 2010
Secondary
School : SPAMAST-Laboratory High School
Year attended : 2010 – 2014
College
Course : Bachelor of Science in Information
Technology
School : Southern Philippines Agri-Business
and Marine and Aquatic School of
Technology (SPAMAST)
Year attended : 2014 – 2018

Work Experience
Agency : JDL Company
Inclusive Dates : January 14, 2018 - March 16, 2018
Position/Designation : On-the-Job Training
Affiliation
Name of Organization : InfoTech Society
Position : Member
Inclusive Dates : 2014-2018
Position : Business Manager
Inclusive Dates : 2015-2016

S-ar putea să vă placă și