Anda di halaman 1dari 152

ACKNOWLEDGEMENT

The proponents aim to show gratitude and thankfulness to the all individuals who show their love
and support to accomplish this capstone project. The Proponents will use this opportunity to thank the
following Individuals.

To Ms. Anna Cazandra P. Delos Reyes, our capstone adviser, for her very full support and
encouragement in our capstone project. And for her patience and giving us a suggestion for the
improvement of our capstone project.

To Mr. Dennis Y. Virtudazo, our technical adviser for his very best support and guidance
throughout the development process. And for very best knowledge to give us relevant idea and suggestion
to make this project possible.

To Mr. Howard Ronquillo, our grammarian, our statistician______________ for helping and
giving their time.

To our panelist Mr. Jerome Legaspi, MR Carlos Flores, and Ms. Valerie Simbol, for their
Suggestions, recommendations, and criticism which lead to the improvement of the project.

To our Parents, thank you for the very much support for emotional and financial needs. We will
not able to complete this project without your support. To their inspirational thoughts that give us strength
to be able to finish this project.

To our Classmates and Friends, for the Support and Encouragement.

This words are not enough to convey our deepest thank you and gratitude to all of you.

Rolly T. Tonelada
Arvin D. Urquico
Eljhei M. Mejia
Ma. Micaela S. Victoria
DEDICATION
We would like to dedicate this project to our Family, Friends, Teachers, and also to our Almighty
God, to our Family thank you for always being there for giving us moral and financial support, our
Friends thank you for always believing on us that the project will became successful also for their endless
support, our Teachers for always being there to gives us support, encouragement, and ideas to finish the
project.
Especially to our almighty god, for giving us wisdom, knowledge and strength. Thank you for the
blessing you’ve given on us. For always gives us motivation, courage and guidance to done this project.
Without him were nothing and all of this is useless.
TABLE OF CONTENTS
PAGE
TITLE…………………………………………………………………………………………………...i
APPROVAL SHEET…………………………………………………………………………………...ii
ACKNOWLEDGEMENT……………………………………………………………………………...iii
DEDICATION………………………………………………………………………………………….iv
TABLE OF CONTENTS………………………………………………………………………………..v
I. INTRODUCTION
The world nowadays is still improving in technology. Innovation and invention of technologies are the
key to increase the economic growth of a country. Some of the people are using technology to have a faster
work and to lessen the manpower or hardship of doing work. People invented and innovate system to have
a systematic process of analyzing data to have an accurate and efficient process.
Most of the people in Tarlac City does not have a regular job, while on the other hand some of the
people also have a permanent job. Work is one of the problem here in Philippines especially to those not
graduate. To solve this problem, the proponents propose a system WEB-BASED JOB FINDER with SMS
NOTIFICATION FOR TARLAC CITY that will be a website that provides to easily find a work especially
skilled worker or service provider at home, the assistance finder will contact the skilled worker through the
proposed website to communicate to the service provider and have easily transaction. The people who does
not have a stable work or job they simply go to their respective barangay, so in that way they can register
easily and quickly to access the proposed system of the proponents. For that a simple way, the people may
have find a work.
The proposed system was piloted to Barangay San Vicente near Provincial hospital. The Barangay San
Vicente was named in honor of Don Vicente Rigor who was the Gobernadorcillo of the town in 1898. It is
bounded in the east by the barrio of Canarem, in the north of San Agustin, by San Nicolas in the west and
by sta. Barbara in the south.
Francisco Rigor, Feliciano Inigo, Macario Patricio and Alejandro Briones. The inhabitants are Ilocanos.
Most of the people are Aglipayans, the prominent men in the Barrio Cirriaco Gelacio and Feliciano Inigo.
The first Teniente del barrio were Juan Briones, Agripino Sagun, Patricio Briones and Pio Rigor Because
of the nearness of San Vicente to the Canarem Lake, some of the family heads indulged in fishing and
farming is a prominent source of the people.
A. Project Context
The developed system was named web-based job finder with Sms notification for Barangay San
Vicente, Tarlac City is a website that provides an easily of finding skilled workers. The system was piloted
to Barangay San Vicente. The system will serve as a finder, while the assistance finder and service provider
is required to register in the website with the requirement of Barangay Clearance to prove that the service
provider has none criminal records. The assistance finder was the one who was looking for a skilled worker
that will worked for them wherein they can view the information of the skilled worker with their particular
skill category. The website can also send a confirmation to the assistance finder and skilled worker through
there notification and SMS notification for the faster transaction. The assistance finder(client) can evaluate
the skilled worker by giving one star up to five stars, in that way the next assistance finder who was looking
for a skilled worker can easily choose or compare to the other skilled worker and the Skilled Worker can
easily accept or choose an assistance finder if ever there are two assistance finder who’s pick the skilled
worker.
The website has a capability to notify the availability of the service provider. More importantly the
assistance finder can easily search a worker based on their skilled category.
B. Purpose and Description
The main purposed of the proposed system of the proponents was to give help to the assistance
finder to easily find for a skilled worker based on their choices, and for the skilled worker who’s looking
for a job by using the system. The system can give interaction between the assistance finder and Skilled
Worker to communicate well in order to give their exact needed information for their transaction. It will
also help for those people who does not have a work. The system gives interaction with the assistance finder
who is needed for skilled worker based on his ability to perform a task and to notify them if necessary. The
proponents conducted a research to give benefits and promote technological improvement.
C. Objectives
The main objective of this study is to design and develop a Web-Based job finder with SMS
notification for Brgy. San Vicente, Tarlac City with the following objectives.

1. To design and develop a web-based job finder with SMS notification for Tarlac City.
2. To develop a website with the following features.
2.1. Assistance module
2.2. Skilled Worker module
2.3. SMS notification
3. The system will evaluate by:
3.1 Skilled Worker and Assistance Finder
3.1.1 Graphical user interface
3.1.2 Ease of use
3.1.3 Functionality
3.2 IT Expert
3.3.1 Database design
3.3.2 security
3.3.3 Robustness

D. Scope and Limitations


The system will be piloted the Barangay San Vicente Tarlac City. The proposed system has the
capability to help skilled worker to find a job. The system has also the capability to verify the availability
of the Skilled Worker. The system includes assistance module, Skilled Worker module, and sms
notification.
The assistance finder includes the searching for a worker and has the capabilities in evaluating the
service provider who already work to the assistance finder by giving one star up to five stars and it will
display below the profile or skilled worker including their skill category and identification. In that way the
next assistance finder who was looking for a skilled worker it can easily compare the other skilled worker
who have the same skilled category.
The Skilled Worker the one who’s looking for a job it has capability to transact to the assistance finder,
also Skilled Worker can evaluate the assistance finder by rating them one star up to five star to help the
other skilled worker to know if the assistance finder who was looking for them is a good client.
The admin user the one who can update, delete, add and the one who’s responsible to serve the
registration, prevent a dummy account. It has the capabilities of sending confirmation to the users. It also
has the capabilities of issuing a report like an accomplish report for assistance finder and service provider.
The admin will be the Barangay Officials.
However, the system has the limitation it will not run if there’s no internet connection and if ever the
skilled worker is not resident in the Barangay. They need to come in Barangay. And bring their Barangay
Clearance or endorsement letter of the Barangay, valid id and get their validation.
I. REVIEW OF RELATED LITERATURE AND SYSTEMS
A. Related Literature

Foreign Literature

According to Vikram Kumar (2018), nowadays, virtual servers play a significant role in business
settings. These servers have the potential to secure all the servers to an effective cloud system. Though
virtual servers are highly acceptable to meet your needs within tight budget, there are lot questions in our
mind. We do not know whether these servers are much safe to your business. Although physical or
conventional servers have their issues, the virtual ones have also other challenges. There are major issues
with servers for most of the servers, the common security-measures are monitor network accessibility,
physical accessibility monitoring, very limited privileges over administration [1].
Similar with the mentioned article, the aim of the proponent’s is to provide an accurate, efficient
and secured server for the end user in the Barangay. San Vicente, Tarlac City as well as to provide a website
for them when they are finding or looking for a temporary or permanent job.
Many foreign students choose to do part-time work to help pay their tuition or living expenses.
Today, 75% of foreign students are engaged in some type of part-time work in Japan (Source: JASSO
survey 2013). However, under the status of residence of "College Student," which is given to foreign
students, they are originally allowed to reside in Japan for the purpose of studying at school, and it is not
permitted for foreign students to work for a paid job. Therefore, if anyone resides in Japan with the status
of "College Student" and still wishes to take a paid part-time job, he/she is required to obtain an official
permission called shikakugai katsudo kyoka (Permit to Engage in Activity other than that Permitted by the
Status of Residence Previously Granted) from the nearest regional immigration bureau. In such a case, the
students must observe the condition that such paid work will not interfere with their schoolwork, which is
their original purpose of residence in the country. As an exemption, no such permission is required for
activities as educational/research assistants who are paid and work based on a contract with a university or
a technical college to which an applying student belongs. (Note: For technical college students, only those
who are in the 4th and 5th grade or in advanced courses are eligible for this exemption) [2].
Same with the proposed system “Web-Based Job Finder” it would be beneficial for the people in
the Barangay to find their job through online.

According to LIU-YI (2014) Classroom teaching of English for new graduates' Job-Hunting should
from the points of values, information collection, resume writing and test-prep tricks, innovative teaching
methods, strengthen the theory education while provides simulation scene, practical training and the
cultivation of listening and speaking skills in the realistic modeling. Classroom teaching needs to combine
foreign teacher recruitment process, innovative application of a variety of teaching methods, pay attention
to the training of new graduate’s communication ability and comprehensive ability to use English in practice
[3].

The article mentioned above helps proponents to learn the importance of the study that help the
users to know what are the basic needs to qualify in finding a job.

Local Literature

Based on the article by Louella D. Desiderio (2012) entitled "business urged to use internet for
promoting their products and services as more consumers are going online to research before making
purchases. Companies should consider using online advertisements for the products and services they offer
as more and more people are using the internet to research goods they plan to buy before making the
purchase. It also states that in the Philippines, the study showed that around 70% of consumer first make
research of their purchase online even if they purchase offline [4].
The article mentioned, "Internet connection" proven the importance of having it and the
capabilities, accuracy, and power to deliver such information also its usage as a connectivity tool for the
users. Similar with the proposed system "web-based household finder for Barangay San Juan De Valdez
and Barangay San Vicente, Tarlac City" that the clients and service provider in the Barangay San Vicente
and San Juan De Valdez will use web-browser with internet connection to interaction with its correspond
user, based on their exact needs.
According to Jee Geronimo (2015), Manila Philippines - the internet may be a distraction to many
but one study shows most Filipinos believe that increasing usage actually has a good influence on education
[5].
In relation of the information, internet is one of the method in gathering data, because of search
engines and the clients and service provider can easily find information regarding to their needed
information to achieve their needs in terms of job or service provider who’s willing to work.
According to HU Ji-dong 2013 (School of Politics and Law, Fuyang Teachers College, Fuyang 236037
Anhui). With the vigorous development of networking mode of seeking jobs, students are exposed to more
and more risks. Ideological and political education with its unique features plays a great role in college
students' network job-hunting process; it is one of the effective strategies for coping with these risks.
Network job-hunting has a dual role for college students. The article comes up with some strategies for the
school and ideological and political educators as to how to help college students withstand risks in network
job application [6].
Similar with the article mentioned above, the proponents design and develop a website to online job
finder for the users to provide effective strategies for finding job through online.

B. Related Studies

Foreign Studies

A study conducted by Endsleigh (2015) indicated that our eight out of ten (77%) students are now
working part time to help fund to their studies. The study also showed that females who are working during
term time earn 36% less than males. 14% who were asked said they had full time jobs either during term
time, holidays or both. More than half (57%) of students who work part-time spend their additional income
on necessities- accommodation, food and household bills [7].
The proponents realized the importance of online job finder, it is useful because it can help so many
people in the barangay to get a temporary or permanent job through online.
According to the study of Mary Marden (2014), More than a year after contractor Edward Snowden
leaked documents about widespread government surveillance by the NSA, the cascade news stories about
revelations continue to register widely among the public. Some 43% of adults have heard "a lot" the
government collecting personal information about telephone calls, emails, and other online
communications as parts of effort to monitor terrorist activity, " and other 44% have heard " a little" just
5% of adults in our panel said they have heard "nothing at all" about these programs. [8].
Similar to the proposed system, they also collect the personal information of the applicant through
online registration. And this information can view by the client who need a manpower.
According to Darwish Abdulrahman Yousef (2016) the present study investigates the direct and
indirect relationships among job satisfaction, organizational commitment, and attitudes toward
organizational change and their dimensions. Results indicated that employees in the investigated
departments are highly satisfied with supervision and coworkers, whereas they are slightly satisfied with
work conditions and job security, but they have low satisfaction with pay and promotion facets of the job.
Results further demonstrated that employees in the investigated departments are remaining with their
current departments either because they want to do so, or because they have to do so, but not because they
feel they ought to do so [9].
In relation to the study mentioned above, the proponent’s realized the importance of having an
online and secured website.
Local Studies

According to Jeremy Magruder (2015) the proliferation of internet access has made it a well-
accepted tool for millions of job seekers, searching for both formal and informal jobs. At the forefront of
this surge, are job portals connecting prospective employees with potential employers. The popularity of
portals has grown significantly in the last 10 years responding to the evidently growing need to better link
the two groups. According to the Federation of Indian Chambers of Commerce and Industry employers
frequently complained about the difficulty of filling vacant positions despite pervasive unemployment
among semi-skilled laborers, and the glut of recent technical and vocational graduates. [10].
In relation to the article, website is one of the connectivity tool and provides services. Similar with
proposed system. A website for those people in the barangay encourages to use the website as their useful
tool to communicate with the other user to meet their common goal and to find a temporary or may be
permanent job.
According to martin Julius Perez and Mariel Templanza (2012), an exploratory study of the
specialized information centers, referred to as local studies centers, in three regions of the Philippines,
namely, Central Luzon, CALABARZON and MIMAROPA. It aims to identify and describe the nature,
practices and status of these centers and to explore their innovative and trans-formative role in the fields of
history, culture and heritage studies in the Philippines. It examines the impact of their programs, projects,
services, and activities on the study, development and promotion of these three fields. Some of the
outstanding features of local studies centers in the Philippines that were identified include: 1) they collect
materials pertaining to ethnic groups, and make the materials available and accessible to potential users,
mostly in one center; 2) their holdings include library materials, archives and museum arte facts; 3) they
conduct research and publish books, relating to history, culture and heritage of the localities they serve and
the Philippines. This paper may provide insights for the management (or future establishment) of local
studies centers not just in the Philippines, but also in other countries. This paper received the IFLA LIS
Student Paper Award 2012[11].
In relation to the study mentioned, the proposed system acts as an information center for both clients
and service provider and give benefit by giving such information about their exact needed information to
provide an accurate detail for their transaction.
According to Mary Grace C. Ventura and Rex P. Bringula (2013) the purpose of the study was to
develop an online recruitment software that would facilitate the fast and accurate selection of qualified
applicants. The Modified Waterfall Model was utilized in the development of the software. The developed
software was then evaluated by six groups of respondents to determine the effectiveness of the system in
terms of performance, reliability, security, and cost-effectiveness. Descriptive statistics revealed that the
software was effective. Analysis of variance showed that there was no significant difference in the
evaluation of the six groups on the effectiveness of the developed online recruitment system. This indicated
that the six groups of respondents had the same rating on the effectiveness of the software. It implies that
the software would perform its function effectively by selecting qualified applicants within a shorter period
of time. Thus, it was recommended that the system be adopted by the University. Recommendations to
improve the software were also offered. [12].

Similar with the studies mentioned above, the study gives to the proponent’s idea to conduct a research
about online jobs.
III. TECHNICAL BACKGROUND

Figure 1. Inventory of Existing ICT Resources


The Proponents visited the locale to capture the image of the inventory of existing ICT resources,
they have internet connection and computer desktop which can be very applicable to the propose system.
The admin can easily operate the system because they have the resources to operate it.

IV. METHODOLOGY, RESULTS AND DISCUSSION

A. Requirements Analysis
Methods of Gathering Data

Research Locale

The study was proposed for Barangay San Vicente, Tarlac City. This proposed system was approved
by their own respectively barangay Captain. Barangay San Vicente Tarlac City is one of the biggest
barangay in Tarlac City that’s why it is capable in handling the system.

Population of the Study

The users of the proposed system are the Skilled Worker, Assistance Finder, and administration. The
barangay Officials act as the admin of the proposed system and they are the responsible in managing the
system.
Data Gathering Technique

The proponent use’s different techniques to gathered relevant data and also to provide a solid
foundation of information. The different techniques in gathering data are the following:

Interview

It is a report, formal consultation, and type of question and answer method which the proponents used
to gather data or information about in their proposed system.

Observation

The proponents visited the Barangay San Juan De Valdez and San Vicente, Tarlac City to observed
the respondents there if how many people do not have a job and how the way they able to support their own
beloved family even they do not have a permanent job

Questionnaires

The proponents used questionnaires as a guide for them to know the problem and how to solve
it in their target locale. The proponents distributed some questionnaire to the respondents and barangay
officials some of them, to get more details or information about them.

Library

The Proponents conducted a research in the library in Tarlac State University, San Isidro Campus to
look for the studies related in the proposed system particularly the previous study of the graduates of Tarlac
State University and to get some idea to improve the proposed system of the proponents.

Internet

The proponents used Internet to gathered information that are related to the proposed system. Using
the internet, the proponent easily benchmarks some of the related websites. Which can be improve the
developing process.
Statistical Treatment

LIKERT’S SCALE

Intervals Rating Verbal Description

4.51 – 5.00 5 Seriously agree

3.15 – 4.50 4 Agree

2.51 – 3.50 3 Undecided

1.51 – 2.50 2 Disagree

1.0 – 1.50 1 Seriously Disagree

Table 1. Lickert’s Scale


This Table shows the scaling system that will used to evaluate the answer of the respondents
which is include the Intervals, Rating and Verbal from Seriously agree to Seriously disagree. This scale
used to compare the result of manual finding of skilled workers.

The proponents used the weighted mean formula.

Weighted mean:

x = ∑fx or x = ( 1 * f) (2 * f) (3 * f) (4 * f) (5*f)

n n
Where:
f = frequency x = weighted mean
n = no of respondents
or
x = weighted mean
f= frequency
n = no. of respondents
. Software Development Methodology

Figure 2. Agile Scrum Methodology


Figure 3. Illustrates the Agile Scrum Methodology, is an effective and efficient way of getting the
work done and has been useful in the development of the proposed system. The methodology uses different
steps in achieving the final deliverable output.

The proponent’s main objective is to design and develop a Web-Based Job Finder with SMS
Notification for Tarlac City. The proponents use this method because it can be divided into increments.
This increment is can be divided into four phases called sprints. This method had been an advantage to the
proponents to know early adjustment of the proposed system unlike discovering areas and bugs when
everything was set for delivery period.
Conceptual Framework

Input Evaluation Output


Process
Data Gathering IT Experts Web Based Job
Analysis, -Database
Library Finder with SMS
Planning, Design
Research Notification for
Survey Development -Security
Tarlac City
Interview Testing, and -Web Design
Internet Design User -
Graphical User
Interface
-Functionality
-Ease of Use

FEEDBACK

Figure 3. Conceptual Framework


Figure 3 Shows the conceptual framework used by the proponents to establish the proposed system.
The conceptual framework composed of Input, Process, and Output. Input is consisting of data gathering
wherein the proponents gather data that are related to the study. Process Phase consists the analysis of data,
planning stage where the proponents formulated a solution to the problem of the chosen locale, design of
the system, development, and testing. The proposed system is evaluated by the IT experts and User for the
feedback of the proposed system. After gathering the feedbacks, the proposed system goes back to the
gathering for the modification. Output phase consists the proposed system.
January February March April May June July August September October
Month
Week 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4

Title
Proposal
Screening
Introduction
Section 1-5

Section 6
Section 7

Title
Defense
Development
of Interface
Design
Development
of both users
login
Development
of Admin
login
Development
of Job Finder
function
Submission
of
Manuscript
Final
Defense
Once A Week Twice A Week Trice A Week More than 4 Times A Week

Table 1. Project Schedule

Table 1. Project Schedule illustrate the organized method of the proponents when the development
process started. And also shows how many times per week that the proponents do the activities, and when
the activities are planned or to be finished. And the proponents divided the activities to be able to completed
the project.
B. Requirements Documentation

Figure 4. Context Diagram


Figure 14 review the context diagram of the system. Admin user contains the Registration
Approval, Login account, and also can search an account and send a notification to the users. Assistance
Finder, contains Registration, login account, search worker, job order, and can rate the skilled worker, and
also it has the capabilities in Sending SMS notification to the skilled worker. Skilled Worker contains
Registration, login account, confirm job request coming from the assistance finder.

Figure 5 Data Flow Diagram Admin


Figure 5 illustrate the data flow diagram of the admin it contains login account for the admin by
their username and password, registration approval coming from the users, and also it has the capabilities
in sending notification to the both user.

Figure 6 Data Flow Diagram (Skilled Worker)


Figure 6 illustrate the data flow diagram of the Skilled Worker it contains Registration, login
account the by their username and password, and the one who accepting the job request coming from
assistance finder. And receive job ratings and SMS notification coming from the Assistance finder.

Figure 7 Data Flow Diagram (Assistance Finder)


Figure 7 illustrate the data flow diagram of the Assistance Finder it contains Registration, login account
the by their username and password, and the one who Requesting Service from the Skilled Worker. And
rate the Skilled Based on the service of the skilled worker. Assistance Finder also has the capabilities to
send SMS notification from the Skilled worker.

C. Design of Software

Sprint Sprint Backlog Estimated Time

Sprint 1  Home Page 3 Hours

 Registration Page 4 Hours

 Log In Page 4 Hours


 Admin Page 5 Hours

 SMS Notification 4 Hours

Table 2. Sprint Backlog


Table 2 shows the sprint backlog use by the proponents to be able to complete the project and to
improve the outcome of the activities it shows how much time that the proponents spent to do the task.

Figure 8. Homepage Version 1


Figure 8 shows the homepage version 1 Homepage is the main page where the Assistance finder
user can search the skilled worker by skill category.
Figure 9 Homepage Version 2
Figure 9 show that the proponents add a brief history about barangay San Vicente Tarlac City
including the mission and vision of the barangay.

Figure 10. Homepage Version 3


Figure 10 Homepage version 3 shows that proponents include the development team to homepage
it shows the picture of the proponents who designed and developed the system.

Figure 11. Assistance Finder and Skilled Worker Registration Page Version 1
Figure 11 shows the registration page where the assistance finder and skilled worker user can
register or create their own account to use the website. The proponents consult and the technical adviser
was satisfied with the output.

Figure 12. Assistance Finder Registration Page Version 1


Figure 12 shows the registration page of the Assistance Finder User version 1 wherein the
Assistance Finder User needs to fill-up all the requirement fields to create their own account and also upload
their ideal profile picture. The proponents consult and the technical adviser was satisfied with the output.

Figure 13. Skilled Worker User Registration Page Version 1


Figure 13 shows the registration page of the Skilled Worker User wherein the Skilled Worker User
can also need to fill-up all the requirement fields needed to create their own account also they can upload
their ideal image to make it their profile picture. The proponents consult and the technical adviser was
satisfied with the output.

Figure 14. Sign up Page Version 1


Figure 14 shows the User Login Page of the both user wherein the both of them can sign their own
account using their email and password to sign up. However, if the user doesn’t not have an account, then
they can register or create their account at the bottom of the user login. The proponents consult and the
technical adviser was satisfied with the output.

Figure 15. Admin Dashboard Version 1


Figure 15. shows all the account requests coming from the assistance finder users. The admin can
view the details of the assistance finder including the Barangay clearance to verify the correctness of entry
in that way the admin can decide to accept the requests or decline. and also shows the numbers of the
assistance finder and skilled worker users who registered the system. The proponents consult and the
technical adviser was satisfied with the output.
Figure 16. SMS Notification Page Version 1
Figure 16 shows the capability of the administrator to send an SMS Notification to the assistance
finder and skilled worker for some warnings and maintenance problem. The proponents consult and the
technical adviser was satisfied with the output.

D. Development and Testing


The proposed system will be operated by the Barangay Secretary of the Barangay San Vicente, the
system would be providing an easier and efficient way of finding temporarily or permanent job for the
Service provider or Skilled worker and also for the Assistance finder to easily search and find a Skilled
Worker or Service Provider by skill category.
The first objective of the proponents is to design and develop a website Web-Based Job Finder with
Sms Notification for Tarlac City.

Figure 17. Testing The Developed System


Figure 17 illustrate the testing conducted by the proponent in the locale to discussed if the objectives
of the system meets the requirements and the standard of the user. The proponents designed and developed
the website Web-Based Job Finder with Sms Notification for Tarlac City to solve the problem of being
unemployed of the citizens of Tarlac City. The system will help the job seeker’s to easily seek job
opportunities.
Graphical User Interface of the System (GUI)

Figure 18. Graphical User Interface (GUI)


E. Description of the Prototype

Figure 19. Homepage


Figure 19 shows the homepage version 1 Homepage is the main page where the Assistance finder
user can search the skilled worker by skill category.
Feedback: Our technical adviser was satisfied to homepage and End Users wants more Graphical design.

Figure 20. Assistance Finder and Skilled Worker Registration Page


Figure 20 shows the registration page where the assistance finder and skilled worker user can
register to the system wherein they need to create their own account and wait for the approval of
administrator to access the website.
Feedback: Our Technical Adviser, IT Experts, and the End Users was satisfied.

Figure 21. Sign up Page


Figure 21 shows the User Login Page of the both user wherein the both of them can sign their
own account using their email and password to sign up. However, if the user doesn’t not have an account,
then they can register or create their account at the bottom of the user login.
Feedback: Our Technical Adviser, IT Experts, and the End Users was satisfied.

Figure 22 Assistance Finder User Dashboard Page


Figure 22 shows the Assistance Finder User Dashboard. The users can update their profile by
uploading each of their photo’s also shows the assistance requests of the user and it has a search engine
located at right top of the page.
Feedback: Our Technical Adviser, IT Experts, and the End Users was satisfied.

Figure 23. Assistance Finder Request Page

Figure 23 shows the request form of the Assistance finder wherein the user can fill all the fields in
able to submit the request and send an SMS notification to skilled worker.

Feedback: Our Technical Adviser, IT Experts, and the End Users was satisfied.

Figure 24. Skilled Worker Dashboard Page


Figure 24 shows the Skilled Worker Dashboard. The user can update their profile and also able to
accept the Service Request of the Assistance Finder to be able to show the details of the Assistance Finder
including the Name, Sex, Address, Contact Number and Email Address and also some information about
the description the service request of the assistance finder including subject, duration, expected salary,
details, and request date.
Feedback: Our Technical Adviser, IT Experts, and the End Users was satisfied.

Figure 25 Assistance Finder Can Rate Skilled Worker


Figure 25 in this section, Assistance Finder can rate the Skilled Worker by one star up to five star.
The rate star acts as the service background of Skilled Worker. In that way the Assistance Finder can able
to easily compare the other one by looking at the rate.
Feedback: Our Technical Adviser, IT Experts, and the End Users was satisfied.

Figure 26 Rate the Assistance Finder


Figure 26 in this section, the Skilled Worker can also rate the Assistance Finder by giving one star
up to five star. The rate star acts as the service background of Assistance finder. In that way the skilled
worker can able to easily compare the other one by looking at the rate.
Feedback: Our Technical Adviser, IT Experts, and the End Users was satisfied.

Figure 27. Admin Dashboard


Figure 27 shows all the account requests coming from the assistance finder users. The admin can
view the details of the assistance finder including the Barangay clearance to verify the correctness of entry
in that way the admin can decide to accept the requests or decline. and also shows the numbers of the
assistance finder and skilled worker users who registered the system.
Feedback: Our Technical Adviser, IT Experts, and the End Users was satisfied.

Figure 28 Admin File Maintenance Page


Figure 28 Admin File Maintenance Page shows the access of admin to add skill list for the
registration of the skilled worker and also able delete skill lists. In the users button the admin can able to
add an admin operator.
Feedback: Our Technical Adviser, IT Experts, and the End Users was satisfied.

Figure 29 Message Assistance Finder Page


Figure 29 shows the capability of the administrator to send an SMS Notification to the
assistance finder and skilled worker for some warnings and maintenance problem.
Feedback: Our Technical Adviser, IT Experts, and the End Users was satisfied.
Figure 30. SMS Notification (coming from the Assistance Finder)
Figure 30 shows the SMS notification coming from the Assistance Finder to notice the skilled
worker that he/she has a service Request coming from Assistance Finder.\
Feedback: Our Technical Adviser, IT Experts, and the End Users was satisfied.

F. Software Evaluation
APPENDIX A
SOURCE CODE

Index <link rel="stylesheet" href="css/bootstrap-


<?php theme.css">
session_start(); <link rel="stylesheet" href="css/style.css">
include_once("function/functions.php"); <!-- skin -->
<link rel="stylesheet" href="css/default.css">
$con = databaseConnection(); <!--
$searchCriteria = ''; =======================================
$_SESSION['searchfromlanding'] = FALSE; ================
Theme Name: Amoeba
if(isset($_POST['btnSearch'])){ Theme URL:
$searchCriteria = $_POST['txtSearch']; https://bootstrapmade.com/free-one-page-
$strSql = "SELECT * FROM tbl_skilledworker bootstrap-template-amoeba/
WHERE skills LIKE '%$searchCriteria%'"; Author: BootstrapMade
$rsSkilledWorker = getRecord($con, Author URL: https://bootstrapmade.com
$strSql);
} =======================================
?> ================ -->
<!DOCTYPE html> </head>
<head>
<!-- BASICS --> <body>
<meta charset="utf-8"> <section id="header"
<meta http-equiv="X-UA-Compatible" class="appear"></section>
content="IE=edge,chrome=1"> <div class="navbar navbar-fixed-top"
<title>Web Based Job Finder for Tarlac role="navigation" data-0="line-height:100px;
City</title> height:100px; background-
<meta name="description" content=""> color:rgba(0,0,0,0.3);" data-300="line-
<meta name="viewport" height:60px; height:60px; background-
content="width=device-width, initial- color:rgba(0,0,0,1);">
scale=1.0"> <div class="container">
<link rel="stylesheet" type="text/css" <div class="navbar-header">
href="css/isotope.css" media="screen" /> <button type="button" class="navbar-
<link rel="stylesheet" toggle" data-toggle="collapse" data-
href="js/fancybox/jquery.fancybox.css" target=".navbar-collapse">
type="text/css" media="screen" />
<link rel="stylesheet" <span class="fa fa-bars color-
href="css/bootstrap.css"> white"></span>
one who was looking for a skilled worker to
</button> work for them wherein they can view the
<h1><a class="navbar-brand" href="<?php information of the skilled worker with their
base_url(); ?>" data-0="line-height:90px;" particular skill category and years of
data-300="line-height:50px;">J<i class="fa fa- experience.</p>
search"></i>B Finder | Tarlac City</a></h1> </div>
</div> <hr>
<div class="navbar-collapse collapse"> </div>
<ul class="nav navbar-nav" data-
0="margin-top:20px;" data-300="margin- <div class="col-md-12">
top:5px;"> <form action="index.php"
<li class="active"><a href="<?php method="post" role="form">
base_url(); ?>">Home</a></li> <div id="custom-search-input">
<li><a href="#section- <div class="input-group col-md-12">
about">About</a></li> <input type="text"
<li><a href="#section- name="txtSearch" class="search-query form-
contact">Registration</a></li> control input-lg" placeholder="Search Skilled
<li><a href="login.php">Login</a></li> Worker by Skills..." value="<?php echo
</ul> $searchCriteria; ?>" />
</div> <span class="input-group-btn">
<!--/.navbar-collapse --> <button name="btnSearch"
</div> class="btn btn-primary btn-lg" type="submit">
</div> <span class="fa fa-
search"></span>
<section class="featured"> </button>
<div class="container"> </span>
<div class="row mar-bot40"> </div>
<div class="col-md-12"> </div>
<div class="align-center"> </form>
<i class="fa fa-globe fa-5x mar- </div>
bot20"></i>
<h2 class="slogan">Web Based Job <?php
Finder for Tarlac City</h2> if(isset($_POST['btnSearch'])){
<p>Web Based Job finder for Tarlac City echo '<div class="col-lg-12">';
is a website that provides an easily way of echo '<br><h2>Search Results:</h2>';
finding skilled workers. The sytem piloted by echo '<table class="table"
barangay San Vicente that will moderate the style="color: black; background-color:
Assistance finder and Skilled worker white;">';
transaction. The system will serve as the echo '<thead>';
finder, while rhe assistance finder and skilled echo '<tr>';
worker is required to register to the system echo '<th class="col-sm-
with the requirements of Barangay clearance 1">No.</th>';
to prove that the skilled worker has a none echo '<th class="col-sm-
criminal records. The assistance finder are the 4">Name</th>';
echo '<th class="col-sm- </section>
1">Sex</th>';
echo '<th class="col-sm- <!-- services -->
4">Address</th>'; <section id="section-services" class="section
echo '<th class="col-sm- pad-bot30 bg-white">
2">Options</th>'; <div class="container">
echo '</tr>';
echo '</thead>'; <div class="row mar-bot40">
echo '<tbody>'; <div class="col-lg-6">
<div class="align-center">
if(isset($rsSkilledWorker)){ <i class="fa fa-group fa-5x mar-
$recSkilledWorker = bot20"></i>
fetchRecord($rsSkilledWorker); <h4 class="text-bold">Mission</h4>
foreach ($recSkilledWorker as $key <p>To implement government programs
=> $value) { and deliver efficient services to its constituents
echo '<tr>'; socially, economically and spiritually for an
echo '<td>' . ($key + 1) . '</td>'; independent, progressive and peaceful
echo '<td>' . $value['lastname'] . community.</p>
', ' . $value['firstname'] . '</td>'; </div>
echo '<td>' . $value['sex'] . </div>
'</td>';
echo '<td>' . $value['address'] . <div class="col-lg-6">
'</td>'; <div class="align-center">
echo '<td><a href="skilled- <i class="fa fa-eye fa-5x mar-
worker-request-assistance.php?x=' . bot20"></i>
$value['skilledWorkerID'] . '" class="btn btn- <h4 class="text-bold">Vision</h4>
warning">Request Assistance</a></td>'; <p>Barangay San Vicente will be the
echo '</tr>'; city’s pride When it comes to progress and
} development, Upholding peace and order
} situation, carrying-out all mandates of good
else{ governance in the delivery of services to its
echo '<tr>'; constituents and for the community as a
echo '<td colspan="5">No whole.</p>
Record(s) Found!</td>'; </div>
echo '</tr>'; </div>
}
echo '</tbody>'; </div>
echo '</table>';
echo '</div>'; </div>
} </section>
?>
<section id="testimonials" class="section"
</div> data-stellar-background-ratio="0.5">
</div> <div class="container">
<div class="row"> <div class="col-md-offset-3 col-md-6">
<div class="col-lg-12"> <div class="section-header">
<div class="align-center"> <h2 class="section-heading animated"
<div class="testimonial pad-top40 pad- data-animation="bounceInUp">Development
bot40 clearfix"> Team</h2>
<h2>BRIEF HISTORY OF BARANGAY <p>We the Proponents developed this
SAN VICENTE</h2> Web Based Job Finder for Tarlac City to help an
<p assitance finder to look for a skilled
class="testimonial-p">The Barangay of San worker.</p>
Vicente was named in honor of Don Vicente </div>
Rigor who was the Gobernadorcillo of the </div>
town in 1898. It is bounded in the east by the </div>
barrio of Canarem, in the north of San Agustin,
by San Nicolas in the west and by Sta. Barbara <div class="row align-center mar-bot40">
in the south.</p> <div class="col-md-3">
<p <div class="team-member">
class="testimonial-p">Francisco Rigor, <figure class="member-photo"><img
Feliciano Inigo, Macario Patricio and Alejandro src="img/team/member1.jpg" alt=""
Briones. The inhabitants are Ilocanos. Most of /></figure>
the people are Aglipayans, the prominent men <div class="team-detail">
in the barrio Ciriaco Gelacio and Feliciano <h4>Rolly Tonelada</h4>
Inigo.</p> <span>Project Manager</span>
<p </div>
class="testimonial-p">The first Teniente del </div>
Barrio were Juan Briones, Agripino Sagun, </div>
Patricio Briones and Pio Rigor. Because of the <div class="col-md-3">
nearness of San Vicente to the Canarem Lake, <div class="team-member">
some of the family heads indulged in fishing <figure class="member-photo"><img
and farming is a prominent source of the src="img/team/member2.jpg" alt=""
people.</p> /></figure>
</div> <div class="team-detail">
</div> <h4>Eljhei Mejia</h4>
</div> <span>Web Developer</span>
</div>
</div> </div>
</div> </div>
</section> <div class="col-md-3">
<div class="team-member">
<!-- about the developers --> <figure class="member-photo"><img
<section id="section-about" class="section src="img/team/member3.jpg" alt=""
appear clearfix"> /></figure>
<div class="container"> <div class="team-detail">
<h4>Ma. Micaela Victoria</h4>
<div class="row mar-bot40"> <span>Web Designer</span>
</div>
</div> <!-- registration -->
</div> <section id="section-contact" class="section
<div class="col-md-3"> appear clearfix">
<div class="team-member"> <div class="container">
<figure class="member-photo"><img <div class="row mar-bot40">
src="img/team/member4.jpg" alt="" <div class="col-md-6">
/></figure> <div class="section-header">
<div class="team-detail"> <h2 class="section-heading animated"
<h4>Arvin Urquico</h4> data-animation="bounceInUp">Sign Up
<span>Database Designer</span> <small>(Assistance Finder)</small></h2>
</div> <p>Assistance finder is the one who
</div> looks for the a skilled worker to work and help
</div> them on a particular job or project.</p>
</div> <a href="registration-
assistancefinder.php" class="btn btn-lg btn-
</div> theme"">Register Now!</a>
</section> </div>
<!-- /about --> </div>
<!-- Divider for the Registration Module -->
<section id="parallax2" class="section" data- <div class="col-md-6">
stellar-background-ratio="0.5"> <div class="section-header">
<div class="container"> <h2 class="section-heading animated"
<div class="row"> data-animation="bounceInUp">Sign Up
<div class="col-lg-12"> <small>(Skilled Worker)</small></h2>
<div class="align-center"> <p>Skilled worker is the one who works
<div class="testimonial pad-top40 pad- and will provide its services to the requesting
bot40 clearfix"> assistance finder.</p>
<p class="testimonial-p">One of the <a href="registration-
Barangays in Victoria that is thickly populated, skilledworker.php" class="btn btn-lg btn-
Barangay San Vicente marked a total theme"">Register Now!</a>
population reaching up to 2,136 individuals or </div>
roughly 475 households in 2014 municipal </div>
population office estimates. A total of 190.55 </div>
hectares comprise the territory of San </div>
Vicente.</p> </section>
</div>
<section id="footer" class="section footer">
</div> <div class="container">
</div> <div class="row animated opacity mar-
bot20" data-andown="fadeIn" data-
</div> animation="animation">
</div> <div class="col-sm-12 align-center">
</section> <ul class="social-network social-circle">
<li><a href="#" class="icoFacebook" <script src="js/modernizr-2.6.2-respond-
title="Facebook"><i class="fa fa- 1.1.0.min.js"></script>
facebook"></i></a></li> <script src="js/jquery.js"></script>
<li><a href="#" class="icoTwitter" <script src="js/jquery.easing.1.3.js"></script>
title="Twitter"><i class="fa fa- <script src="js/bootstrap.min.js"></script>
twitter"></i></a></li> <script
<li><a href="#" class="icoGoogle" src="js/jquery.isotope.min.js"></script>
title="Google +"><i class="fa fa-google- <script
plus"></i></a></li> src="js/jquery.nicescroll.min.js"></script>
<li><a href="#" class="icoLinkedin" <script
title="Linkedin"><i class="fa fa- src="js/fancybox/jquery.fancybox.pack.js"></s
linkedin"></i></a></li> cript>
</ul> <script src="js/skrollr.min.js"></script>
</div> <script src="js/jquery.scrollTo.js"></script>
</div> <script src="js/jquery.localScroll.js"></script>
<script src="js/stellar.js"></script>
<div class="row align-center copyright"> <script src="js/jquery.appear.js"></script>
<div class="col-sm-12"> <script
<p>Copyright &copy;Web Based Job src="https://maps.googleapis.com/maps/api/j
Finder for Tarlac City <?php echo date("Y"); s?key=AIzaSyD8HeI8o-c1NppZA-
?></p> 92oYlXakhDPYR7XMY"></script>
<div class="credits"> <script src="js/main.js"></script>
<!-- <script
All the links in the footer should src="contactform/contactform.js"></script>
remain intact. </body>
You can delete the links only if you
purchased the pro version. </html>
Licensing information:
https://bootstrapmade.com/license/ Login
Purchase the pro version with working <?php
PHP/AJAX contact form: session_start();
https://bootstrapmade.com/buy/?theme=Am include_once("function/functions.php");
oeba $con = databaseConnection();
--> include_once("login-function.php");
</div>
</div> $err = '';
</div>
</div> if(isset($_POST['btnLogin'])){
$userType =
$_POST['cboSelectUserType'];
</section>
$emailAddress =
<a href="#header" class="scrollup"><i
$_POST['txtEmailAddress'];
class="fa fa-chevron-up"></i></a> $password = $_POST['txtPassword'];
$id = login($con, $userType,
$emailAddress, $password);
<link rel="stylesheet"
if(!isset($id)) href="js/fancybox/jquery.fancybox.css"
$err = '<b>- Login Credentials</b> type="text/css" media="screen" />
Invalid Email Address / Password!<br>'; <link rel="stylesheet"
else{ href="css/bootstrap.css">
if($id == 'PENDING') <link rel="stylesheet" href="css/bootstrap-
$err = '<b>- Login Credentials</b> theme.css">
Account Approval is still Pending.<br>'; <link rel="stylesheet" href="css/style.css">
else if($id == 'PENDING') <!-- skin -->
$err = '<b>- Login Credentials</b> <link rel="stylesheet"
Account has been Disabled by the href="css/default.css">
Administrator. For more information contact <!--
the Barangay Administrator.<br>'; ==================================
else{ =====================
$_SESSION['sessID'] = $id; Theme Name: Amoeba
Theme URL:
if($userType == 'Skilled Worker'){ https://bootstrapmade.com/free-one-page-
$_SESSION['sessType'] = 'Skilled bootstrap-template-amoeba/
Worker'; Author: BootstrapMade
header("location: backend/skilled- Author URL: https://bootstrapmade.com
worker/dashboard.php");
} ==================================
else{ ===================== -->
$_SESSION['sessType'] = 'Assistance </head>
Finder';
header("location: backend/assistance- <body style="height: 90vh !important;">
finder/dashboard.php"); <section id="header"
} class="appear"></section>
<div class="navbar navbar-fixed-top"
} role="navigation" data-0="line-
} height:100px; height:100px; background-
} color:rgba(0,0,0,0.3);" data-300="line-
?> height:60px; height:60px; background-
<!DOCTYPE html> color:rgba(0,0,0,1);">
<head> <div class="container">
<!-- BASICS --> <div class="navbar-header">
<meta charset="utf-8"> <button type="button" class="navbar-
<meta http-equiv="X-UA-Compatible" toggle" data-toggle="collapse" data-
content="IE=edge,chrome=1"> target=".navbar-collapse">
<title>Web Based Job Finder for Tarlac
City</title> <span class="fa fa-bars color-
<meta name="description" content=""> white"></span>
<meta name="viewport"
content="width=device-width, initial- </button>
scale=1.0"> <h1><a class="navbar-brand"
<link rel="stylesheet" type="text/css" href="<?php base_url(); ?>" data-0="line-
href="css/isotope.css" media="screen" /> height:90px;" data-300="line-
height:50px;">J<i class="fa fa- ?>
search"></i>B Finder | Tarlac City</a></h1>
</div> <form class="form-signin"
<div class="navbar-collapse collapse"> action="login.php" method="post">
<ul class="nav navbar-nav" data- <label
0="margin-top:20px;" data-300="margin- for="cboSelectUserType">Select User
top:5px;"> Type</label>
<li class="active"><a href="<?php <select name="cboSelectUserType"
base_url(); ?>">Home</a></li> id="cboSelectUserType" class="form-
<li><a href="#" data-toggle="modal" control">
data-target="#loginModal" data- <option value="Assistance Finder"
backdrop="static" data- selected>Assistance Finder</option>
keyboard="false">Login</a></li> <option value="Skilled
</ul> Worker">Skilled Worker</option>
</div> </select>
<!--/.navbar-collapse -->
</div> <hr>
</div>
<label for="inputEmail" class="sr-
<div style="min-height: 20px; background- only">Email address</label>
color: #fff;">&nbsp;</div> <input type="email"
name="txtEmailAddress" id="inputEmail"
<!-- services --> class="form-control" placeholder="Email
<section id="section-services" address" required autofocus>
class="section pad-bot30 bg-white">
<div class="container"> <label for="inputPassword"
class="sr-only">Password</label>
<div class="row"> <input type="password"
<div class="col-lg-12"> name="txtPassword" id="inputPassword"
<div class="align-center"> class="form-control"
<br> placeholder="Password" required>
<i class="fa fa-lock fa-5x"></i>
<h2 class="text-bold">User <button name="btnLogin" class="btn
Login</h2> btn-lg btn-theme btn-block"
</div> type="submit"><i class="fa fa-sign-in"></i>
</div> Sign in</button>
</div> </form>

<div class="row"> </div>


<div class="col-md-offset-2 col-md-8"> </div>
<?php </section>
if($err != '')
echo '<div class="alert alert- <section id="section-contact" class="section
danger"><button type="button" appear clearfix">
class="close" data-dismiss="alert"><span <div class="container">
aria-hidden="true">&times;</button>' . $err <div class="row mar-bot40">
. '</div>'; <div class="col-md-12">
<h3 class="text-center">Don't have an <ul class="social-network social-
account? Then register an account for circle">
free.</h3> <li><a href="#" class="icoFacebook"
<hr> title="Facebook"><i class="fa fa-
</div> facebook"></i></a></li>
<li><a href="#" class="icoTwitter"
<div class="col-md-6"> title="Twitter"><i class="fa fa-
<div class="section-header"> twitter"></i></a></li>
<h2 class="section-heading animated" <li><a href="#" class="icoGoogle"
data-animation="bounceInUp">Sign Up title="Google +"><i class="fa fa-google-
<small>(Assistance Finder)</small></h2> plus"></i></a></li>
<p>Neque porro quisquam est, qui <li><a href="#" class="icoLinkedin"
dolorem ipsum quia dolor sit amet title="Linkedin"><i class="fa fa-
consectetur, adipisci velit, sed quia non linkedin"></i></a></li>
numquam.</p> </ul>
<a href="registration- </div>
assistancefinder.php" class="btn btn-lg btn- </div>
theme"">Register Now!</a>
</div> <div class="row align-center copyright">
</div> <div class="col-sm-12">
<!-- Divider for the Registration Module <p>Copyright &copy;Web Based Job
--> Finder for Tarlac City <?php echo
<div class="col-md-6"> date("Y"); ?></p>
<div class="section-header"> <div class="credits">
<h2 class="section-heading animated" <!--
data-animation="bounceInUp">Sign Up All the links in the footer should
<small>(Skilled Worker)</small></h2> remain intact.
<p>Neque porro quisquam est, qui You can delete the links only if you
dolorem ipsum quia dolor sit amet purchased the pro version.
consectetur, adipisci velit, sed quia non Licensing information:
numquam.</p> https://bootstrapmade.com/license/
<a href="registration- Purchase the pro version with
skilledworker.php" class="btn btn-lg btn- working PHP/AJAX contact form:
theme"">Register Now!</a> https://bootstrapmade.com/buy/?theme=Amo
</div> eba
</div> -->
</div> </div>
</div> </div>
</section> </div>
</div>
<section id="footer" class="section footer">
<div class="container"> </section>
<div class="row animated opacity mar- <a href="#header" class="scrollup"><i
bot20" data-andown="fadeIn" data- class="fa fa-chevron-up"></i></a>
animation="animation">
<div class="col-sm-12 align-center"> <script src="js/modernizr-2.6.2-respond-
1.1.0.min.js"></script>
<script src="js/jquery.js"></script> $resultSet =
<script mysqli_query($con, $strSql);
src="js/jquery.easing.1.3.js"></script>
<script src="js/bootstrap.min.js"></script> if(isset($resultSet)){
<script $recLogin =
src="js/jquery.isotope.min.js"></script> fetchRecord($resultSet);
<script
src="js/jquery.nicescroll.min.js"></script>
<script if($recLogin[0]['registrationStatus']
src="js/fancybox/jquery.fancybox.pack.js">< == 'APPROVED'){
/script> if($userType
<script src="js/skrollr.min.js"></script> == 'Skilled Worker')
<script return
src="js/jquery.scrollTo.js"></script> $recLogin[0]['skilledWorkerID'];
<script else
src="js/jquery.localScroll.js"></script> return
<script src="js/stellar.js"></script> $recLogin[0]['assistanceFinderID'];
<script src="js/jquery.appear.js"></script> }
<script else
src="https://maps.googleapis.com/maps/api/js if($recLogin[0]['registrationStatus'] ==
?key=AIzaSyD8HeI8o-c1NppZA- 'PENDING')
92oYlXakhDPYR7XMY"></script> return
<script src="js/main.js"></script> 'PENDING';
<script elseif
src="contactform/contactform.js"></script> ($recLogin[0]['registrationStatus'] ==
</body> 'DISABLED')
return
</html> 'DISABLED';
}
Login-Function else
<?php return null;
function login($con, $userType, }
$emailAddress, $password){ ?>
Registration-Assistancefinder
if($userType == 'Skilled <?php
Worker') session_start();
$table = include_once("function/functions.php");
'tbl_skilledworker'; $con = databaseConnection();
else
$table = $err = '';
'tbl_assistancefinder'; $lastname = '';
$firstname = '';
$strSql = "SELECT * FROM $middlename = '';
$table WHERE emailAddress = $birthday = '';
'$emailAddress' AND password = '" . $sex = 'Male';
md5($password) . "'"; $address = '';
$contantNo = '';
$emailAddress = ''; $fileExtensions =
array("jpeg","jpg","png","doc","docx","pd
if(isset($_POST['btnRegister'])){ f");
$lastname = $_POST['txtLastname'];
$firstname = $_POST['txtFirstname']; if(in_array($file_ext,$fileExtensions) ===
$middlename = $_POST['txtMiddlename']; false){
$birthday = $_POST['dtpBirthday']; $err = "<b>- Photo</b> extension is
$sex = $_POST['cboSex']; not allowed, please choose a JPEG or PNG
$address = $_POST['txtAddress']; file.";
$contantNo = }
$_POST['txtContactNumber'];
$emailAddress = if($file_size > 5000000){
$_POST['txtEmailAddress']; if($err != '')
$password = $_POST['txtPassword']; $err = $err . '<br>';
$rePassword = $err = "<b>- Photo</b> File size must
$_POST['txtReTypePassword']; be 5 MB or below";
}
$strSql = "SELECT emailAddress FROM
tbl_assistancefinder WHERE emailAddress = if(empty($errors)==true)
'$emailAddress'";
if(checkExistingRecord($con, $strSql) > 0) move_uploaded_file($file_tmp,"uploads/assis
//check wether the email already exists tance_finder/" . $file_name);
$err = '<b>- Email Address</b> the Email }
Address is already Taken.<br>'; }

if($password != $rePassword) if($err == ''){


$err .= '<b>- Password</b> Inputted
Password did not match.<br>'; $strSql = "
INSERT INTO tbl_assistancefinder(
if($err == ''){ lastname,
firstname,
if(isset($_FILES['filBarangayClearnace'])){ middlename,
$file_name = birthday,
$_FILES['filBarangayClearnace']['name']; sex,
$file_size address,
=$_FILES['filBarangayClearnace']['size']; contactNo,
$file_tmp emailAddress,
=$_FILES['filBarangayClearnace']['tmp_na password,
me']; barangayClearance,
registrationStatus
$file_type=$_FILES['filBarangayClearnace'][ ) VALUES(
'type']; '$lastname',
'$firstname',
$file_ext=strtolower(end(explode('.',$_FILES '$middlename',
['filBarangayClearnace']['name']))); '$birthday',
'$sex',
'$address',
'$contantNo', Theme URL:
'$emailAddress', https://bootstrapmade.com/free-one-page-
'" . md5($password) . "', bootstrap-template-amoeba/
'$file_name', Author: BootstrapMade
'PENDING' Author URL: https://bootstrapmade.com
)";
==================================
mysqli_query($con, $strSql); ===================== -->
$_SESSION['sessID'] = </head>
mysqli_insert_id($con);
$_SESSION['sessType'] = 'Assistance <body>
Finder'; <section id="header"
header("location:confirm-recordsave- class="appear"></section>
assistancefinder.php"); <div class="navbar navbar-fixed-top"
} role="navigation" data-0="line-
} height:100px; height:100px; background-
?> color:rgba(0,0,0,0.3);" data-300="line-
height:60px; height:60px; background-
<!DOCTYPE html> color:rgba(0,0,0,1);">
<head> <div class="container">
<!-- BASICS --> <div class="navbar-header">
<meta charset="utf-8"> <button type="button" class="navbar-
<meta http-equiv="X-UA-Compatible" toggle" data-toggle="collapse" data-
content="IE=edge,chrome=1"> target=".navbar-collapse">
<title>Web Based Job Finder for Tarlac
City</title> <span class="fa fa-bars color-
<meta name="description" content=""> white"></span>
<meta name="viewport"
content="width=device-width, initial- </button>
scale=1.0"> <h1><a class="navbar-brand"
<link rel="stylesheet" type="text/css" href="<?php base_url(); ?>" data-0="line-
href="css/isotope.css" media="screen" /> height:90px;" data-300="line-
<link rel="stylesheet" height:50px;">J<i class="fa fa-
href="js/fancybox/jquery.fancybox.css" search"></i>B Finder | Tarlac City</a></h1>
type="text/css" media="screen" /> </div>
<link rel="stylesheet" <div class="navbar-collapse collapse">
href="css/bootstrap.css"> <ul class="nav navbar-nav" data-
<link rel="stylesheet" href="css/bootstrap- 0="margin-top:20px;" data-300="margin-
theme.css"> top:5px;">
<link rel="stylesheet" href="css/style.css"> <li class="active"><a href="<?php
<!-- skin --> base_url(); ?>">Home</a></li>
<link rel="stylesheet" <li><a
href="css/default.css"> href="login.php">Login</a></li>
<!-- </ul>
================================== </div>
===================== <!--/.navbar-collapse -->
Theme Name: Amoeba </div>
</div> <div class="col-sm-9">
<input type="text" class="form-
<div style="min-height: 100px; background- control" name="txtLastname"
color: #fff;">&nbsp;</div> id="lastname" placeholder="Last Name"
value="<?php echo $lastname; ?>"
<!-- services --> required>
<section id="section-services" </div>
class="section pad-bot30 bg-white"> </div>
<div class="container">
<div class="form-group">
<div class="row mar-bot40"> <label for="txtFirstname"
<div class="col-lg-12"> class="col-sm-3 control-label"><span
<div class="align-center"> class="font-red">*</span> First
<i class="fa fa-edit fa-5x mar- Name</label>
bot20"></i> <div class="col-sm-9">
<h2 class="text-bold">Assistance <input type="text" class="form-
Finder <small>(Account control" name="txtFirstname"
Registration)</small></h2> id="txtFirstname" placeholder="First
<p><b>Note: </b> All fields mark Name" value="<?php echo $firstname; ?>"
with <span class="font-red">*</span> is required>
required.</p> </div>
</div> </div>
</div>
</div> <div class="form-group">
<label for="txtMiddlename"
<div class="row"> class="col-sm-3 control-label">Middle
<div class="col-md-offset-2 col-md-8"> Name</label>
<div class="col-sm-9">
<?php <input type="text" class="form-
if($err != '') control" name="txtMiddlename"
echo '<div class="alert alert- id="txtMiddlename" placeholder="Middle
danger"><button type="button" Name" value="<?php echo $middlename;
class="close" data-dismiss="alert"><span ?>" >
aria-hidden="true">&times;</button>' . $err </div>
. '</div>'; </div>
?>
<div class="form-group">
<form class="form-horizontal" <label for="dtpBirthday"
action="registration-assistancefinder.php" class="col-sm-3 control-label"><span
method="post" enctype="multipart/form- class="font-red">*</span> Birthday</label>
data"> <div class="col-sm-9">
<input type="date" class="form-
<div class="form-group"> control" name="dtpBirthday"
<label for="txtLastname" id="dtpBirthday" placeholder="Birthday"
class="col-sm-3 control-label"><span style="padding-top: 0px;" value="<?php
class="font-red">*</span> Last Name echo $birthday; ?>" required>
</label> </div>
</div> <input type="text" class="form-
control" name="txtContactNumber"
<div class="form-group"> id="txtContactNumber" placeholder="11
<label for="cboSex" class="col-sm- digit Mobile Number / Phone Number"
3 control-label"><span class="font- pattern="^[0-9]{11}$" title="11-digit Mobile
red">*</span> Sex</label> Number" value="<?php echo $contactNo;
<div class="col-sm-9"> ?>" required>
<?php </div>
echo '<select class="form- </div>
control" name="cboSex" id="cboSex"
required>'; <div class="form-group">
if($sex == 'Male'){ <label for="txtEmailAddress"
echo '<option value="Male" class="col-sm-3 control-label"><span
selected>Male</option>'; class="font-red">*</span> Email
echo '<option Address</label>
value="Female">Female</option>'; <div class="col-sm-9">
} <input type="email" class="form-
else{ control" name="txtEmailAddress"
echo '<option id="txtEmailAddress" placeholder="Email
value="Male">Male</option>'; Address" value="<?php echo $emailAddress;
echo '<option value="Female" ?>" required>
selected>Female</option>'; </div>
} </div>
echo '</select>';
?> <div class="form-group">
</div> <label for="txtPassword"
</div> class="col-sm-3 control-label"><span
class="font-red">*</span> Password</label>
<div class="form-group"> <div class="col-sm-9">
<label for="txtAddress" class="col- <input type="password"
sm-3 control-label"><span class="font- class="form-control" name="txtPassword"
red">*</span> Address</label> id="txtPassword" placeholder="Password"
<div class="col-sm-9"> minlength="10" title="Password minimum
<textarea class="form-control" length is atleast 6 characters." required>
name="txtAddress" id="txtAddress" </div>
placeholder="Address" style="resize: </div>
vertical;" required><?php echo $address;
?></textarea> <div class="form-group">
</div> <label for="txtReTypePassword"
</div> class="col-sm-3 control-label"><span
class="font-red">*</span> Re-Type
<div class="form-group"> Password</label>
<label for="txtContactNumber" <div class="col-sm-9">
class="col-sm-3 control-label"><span <input type="password"
class="font-red">*</span> Contact class="form-control"
No</label> name="txtReTypePassword"
<div class="col-sm-9"> id="txtReTypePassword" placeholder="Re-
Type Password" minlength="10" <li><a href="#" class="icoTwitter"
title="Password minimum length is atleast 6 title="Twitter"><i class="fa fa-
characters." required> twitter"></i></a></li>
</div> <li><a href="#" class="icoGoogle"
</div> title="Google +"><i class="fa fa-google-
plus"></i></a></li>
<div class="form-group"> <li><a href="#" class="icoLinkedin"
<label for="filBarangayClearnace" title="Linkedin"><i class="fa fa-
class="col-sm-3 control-label"><span linkedin"></i></a></li>
class="font-red">*</span> Barangay </ul>
Clearance</label> </div>
<div class="col-sm-9"> </div>
<input type="file"
name="filBarangayClearnace" <div class="row align-center copyright">
id="filBarangayClearnace" style="height: <div class="col-sm-12">
40px;" required> <p>Copyright &copy;Web Based Job
</div> Finder for Tarlac City <?php echo
</div> date("Y"); ?></p>
<div class="credits">
<div class="form-group"> <!--
<div class="col-sm-offset-3 col-sm- All the links in the footer should
9"> remain intact.
<a href="<?php base_url(); ?>" You can delete the links only if you
class="btn btn-warning btn-lg">Cancel</a> purchased the pro version.
<button type="submit" Licensing information:
name="btnRegister" class="btn btn-theme https://bootstrapmade.com/license/
btn-lg">Register</button> Purchase the pro version with
</div> working PHP/AJAX contact form:
</div> https://bootstrapmade.com/buy/?theme=Amo
eba
</form> -->
</div> </div>
</div> </div>
</section> </div>
</div>
<section id="footer" class="section footer">
<div class="container"> </section>
<div class="row animated opacity mar- <a href="#header" class="scrollup"><i
bot20" data-andown="fadeIn" data- class="fa fa-chevron-up"></i></a>
animation="animation">
<div class="col-sm-12 align-center"> <script src="js/modernizr-2.6.2-respond-
<ul class="social-network social- 1.1.0.min.js"></script>
circle"> <script src="js/jquery.js"></script>
<li><a href="#" class="icoFacebook" <script
title="Facebook"><i class="fa fa- src="js/jquery.easing.1.3.js"></script>
facebook"></i></a></li> <script src="js/bootstrap.min.js"></script>
<script $address = $_POST['txtAddress'];
src="js/jquery.isotope.min.js"></script> $contantNo =
<script $_POST['txtContactNumber'];
src="js/jquery.nicescroll.min.js"></script> $emailAddress =
<script $_POST['txtEmailAddress'];
src="js/fancybox/jquery.fancybox.pack.js">< $password = $_POST['txtPassword'];
/script> $rePassword =
<script src="js/skrollr.min.js"></script> $_POST['txtReTypePassword'];
<script
src="js/jquery.scrollTo.js"></script> if(!isset($_POST['chkSkills']))
<script $err = '<b>- Skills</b> Skill field is
src="js/jquery.localScroll.js"></script> required! Select atleast 1 skill to
<script src="js/stellar.js"></script> continue.<br>';
<script src="js/jquery.appear.js"></script> else{
<script $arrSkills = $_POST['chkSkills'];
src="https://maps.googleapis.com/maps/api/js $skills = rtrim(implode(", ",
?key=AIzaSyD8HeI8o-c1NppZA- $arrSkills),",");
92oYlXakhDPYR7XMY"></script> }
<script src="js/main.js"></script>
<script $strSql = "SELECT emailAddress FROM
src="contactform/contactform.js"></script> tbl_skilledworker WHERE emailAddress =
</body> '$emailAddress'";
if(checkExistingRecord($con, $strSql) > 0)
</html> //check wether the email already exists
$err = '<b>- Email Address</b> the Email
Registration-skilledworker Address is already Taken.<br>';
<?php
session_start(); if($password != $rePassword)
include_once("function/functions.php"); $err .= '<b>- Password</b> Inputted
$con = databaseConnection(); Password did not match.<br>';

$err = ''; if($err == ''){


$lastname = '';
$firstname = ''; if(isset($_FILES['filBarangayClearnace'])){
$middlename = ''; $file_name =
$birthday = ''; $_FILES['filBarangayClearnace']['name'];
$sex = 'Male'; $file_size
$address = ''; =$_FILES['filBarangayClearnace']['size'];
$contantNo = ''; $file_tmp
$emailAddress = ''; =$_FILES['filBarangayClearnace']['tmp_na
me'];
if(isset($_POST['btnRegister'])){
$lastname = $_POST['txtLastname']; $file_type=$_FILES['filBarangayClearnace'][
$firstname = $_POST['txtFirstname']; 'type'];
$middlename = $_POST['txtMiddlename'];
$birthday = $_POST['dtpBirthday']; $file_ext=strtolower(end(explode('.',$_FILES
$sex = $_POST['cboSex']; ['filBarangayClearnace']['name'])));
'$sex',
$fileExtensions = '$address',
array("jpeg","jpg","png","doc","docx","pd '$contantNo',
f"); '$skills',
'$emailAddress',
if(in_array($file_ext,$fileExtensions) === '" . md5($password) . "',
false){ '$file_name',
$err = "<b>- Photo</b> extension is 'APPROVED'
not allowed, please choose a JPEG or PNG )";
file.";
} mysqli_query($con, $strSql);
$_SESSION['sessID'] =
if($file_size > 5000000){ mysqli_insert_id($con);
if($err != '') $_SESSION['sessType'] = 'Skilled
$err = $err . '<br>'; Worker';
$err = "<b>- Photo</b> File size must header("location:confirm-recordsave-
be 5 MB or below"; skilledworker.php");
} }
}
if(empty($errors)==true)
$strSql = "SELECT * FROM tbl_skilllist";
move_uploaded_file($file_tmp,"uploads/servi $rsSkillList = getRecord($con, $strSql);
ce_provider/" . $file_name); ?>
}
} <!DOCTYPE html>
<head>
if($err == ''){ <!-- BASICS -->
<meta charset="utf-8">
$strSql = " <meta http-equiv="X-UA-Compatible"
INSERT INTO tbl_skilledworker( content="IE=edge,chrome=1">
lastname, <title>Web Based Job Finder for Tarlac
firstname, City</title>
middlename, <meta name="description" content="">
birthday, <meta name="viewport"
sex, content="width=device-width, initial-
address, scale=1.0">
contactNo, <link rel="stylesheet" type="text/css"
skills, href="css/isotope.css" media="screen" />
emailAddress, <link rel="stylesheet"
password, href="js/fancybox/jquery.fancybox.css"
barangayClearance, type="text/css" media="screen" />
registrationStatus <link rel="stylesheet"
) VALUES( href="css/bootstrap.css">
'$lastname', <link rel="stylesheet" href="css/bootstrap-
'$firstname', theme.css">
'$middlename', <link rel="stylesheet" href="css/style.css">
'$birthday', <!-- skin -->
<link rel="stylesheet" <li><a
href="css/default.css"> href="login.php">Login</a></li>
<!-- </ul>
================================== </div>
===================== <!--/.navbar-collapse -->
Theme Name: Amoeba </div>
Theme URL: </div>
https://bootstrapmade.com/free-one-page-
bootstrap-template-amoeba/ <div style="min-height: 100px; background-
Author: BootstrapMade color: #fff;">&nbsp;</div>
Author URL: https://bootstrapmade.com
<!-- services -->
================================== <section id="section-services"
===================== --> class="section pad-bot30 bg-white">
</head> <div class="container">

<body> <div class="row mar-bot40">


<section id="header" <div class="col-lg-12">
class="appear"></section> <div class="align-center">
<div class="navbar navbar-fixed-top" <i class="fa fa-edit fa-5x mar-
role="navigation" data-0="line- bot20"></i>
height:100px; height:100px; background- <h2 class="text-bold">Skilled Worker
color:rgba(0,0,0,0.3);" data-300="line- <small>(Account Registration)</small></h2>
height:60px; height:60px; background- <p><b>Note: </b> All fields mark
color:rgba(0,0,0,1);"> with <span class="font-red">*</span> is
<div class="container"> required.</p>
<div class="navbar-header"> </div>
<button type="button" class="navbar- </div>
toggle" data-toggle="collapse" data- </div>
target=".navbar-collapse">
<div class="row">
<span class="fa fa-bars color- <div class="col-md-offset-2 col-md-8">
white"></span>
<?php
</button> if($err != '')
<h1><a class="navbar-brand" echo '<div class="alert alert-
href="<?php base_url(); ?>" data-0="line- danger"><button type="button"
height:90px;" data-300="line- class="close" data-dismiss="alert"><span
height:50px;">J<i class="fa fa- aria-hidden="true">&times;</button>' . $err
search"></i>B Finder | Tarlac City</a></h1> . '</div>';
</div> ?>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav" data- <form class="form-horizontal"
0="margin-top:20px;" data-300="margin- action="registration-skilledworker.php"
top:5px;"> method="post" enctype="multipart/form-
<li class="active"><a href="<?php data">
base_url(); ?>">Home</a></li> <div class="form-group">
<label for="txtLastname" id="dtpBirthday" placeholder="Birthday"
class="col-sm-3 control-label"><span style="padding-top: 0px;" value="<?php
class="font-red">*</span> Last Name echo $birthday; ?>" required>
</label> </div>
<div class="col-sm-9"> </div>
<input type="text" class="form-
control" name="txtLastname" <div class="form-group">
id="lastname" placeholder="Last Name" <label for="cboSex" class="col-sm-
value="<?php echo $lastname; ?>" 3 control-label"><span class="font-
required> red">*</span> Sex</label>
</div> <div class="col-sm-9">
</div> <?php
echo '<select class="form-
<div class="form-group"> control" name="cboSex" id="cboSex"
<label for="txtFirstname" required>';
class="col-sm-3 control-label"><span if($sex == 'Male'){
class="font-red">*</span> First echo '<option value="Male"
Name</label> selected>Male</option>';
<div class="col-sm-9"> echo '<option
<input type="text" class="form- value="Female">Female</option>';
control" name="txtFirstname" }
id="txtFirstname" placeholder="First else{
Name" value="<?php echo $firstname; ?>" echo '<option
required> value="Male">Male</option>';
</div> echo '<option value="Female"
</div> selected>Female</option>';
}
<div class="form-group"> echo '</select>';
<label for="txtMiddlename" ?>
class="col-sm-3 control-label">Middle </div>
Name</label> </div>
<div class="col-sm-9">
<input type="text" class="form- <div class="form-group">
control" name="txtMiddlename" <label for="txtAddress" class="col-
id="txtMiddlename" placeholder="Middle sm-3 control-label"><span class="font-
Name" value="<?php echo $middlename; red">*</span> Address</label>
?>" > <div class="col-sm-9">
</div> <textarea class="form-control"
</div> name="txtAddress" id="txtAddress"
placeholder="Address" style="resize:
<div class="form-group"> vertical;" required><?php echo $address;
<label for="dtpBirthday" ?></textarea>
class="col-sm-3 control-label"><span </div>
class="font-red">*</span> Birthday</label> </div>
<div class="col-sm-9">
<input type="date" class="form- <div class="form-group">
control" name="dtpBirthday"
<label for="txtContactNumber" <div class="col-sm-9">
class="col-sm-3 control-label"><span <input type="email" class="form-
class="font-red">*</span> Contact control" name="txtEmailAddress"
No</label> id="txtEmailAddress" placeholder="Email
<div class="col-sm-9"> Address" value="<?php echo $emailAddress;
<input type="text" class="form- ?>" required>
control" name="txtContactNumber" </div>
id="txtContactNumber" placeholder="11 </div>
digit Mobile Number / Phone Number"
pattern="^[0-9]{11}$" title="11-digit Mobile <div class="form-group">
Number" value="<?php echo $contactNo; <label for="txtPassword"
?>" required> class="col-sm-3 control-label"><span
</div> class="font-red">*</span> Password</label>
</div> <div class="col-sm-9">
<input type="password"
<div class="form-group"> class="form-control" name="txtPassword"
<label for="chkSkills" class="col- id="txtPassword" placeholder="Password"
sm-3 control-label"><span class="font- minlength="10" title="Password minimum
red">*</span> Skills</label> length is atleast 6 characters." required>
<div class="col-sm-9"> </div>
<?php </div>
if(isset($rsSkillList)){
$recSkillList = <div class="form-group">
fetchRecord($rsSkillList); <label for="txtReTypePassword"
foreach ($recSkillList as $key => class="col-sm-3 control-label"><span
$value) { class="font-red">*</span> Re-Type
echo '<label class="btn btn- Password</label>
default btn-checkbox">'; <div class="col-sm-9">
echo '<span class="fa fa- <input type="password"
square-o" data-icon-on="fa fa-check-square" class="form-control"
data-icon-off="fa fa-square-o"></span>'; name="txtReTypePassword"
echo '<input type="checkbox" id="txtReTypePassword" placeholder="Re-
name="chkSkills[]" value="'. $value['skill'] . Type Password" minlength="10"
'" style="display: none" title="Password minimum length is atleast 6
autocomplete="false"/> ' . $value['skill']; characters." required>
echo '</label><br>'; </div>
} </div>
}
?> <div class="form-group">
</div> <label for="filBarangayClearnace"
</div> class="col-sm-3 control-label"><span
class="font-red">*</span> Barangay
<div class="form-group"> Clearance</label>
<label for="txtEmailAddress" <div class="col-sm-9">
class="col-sm-3 control-label"><span <input type="file"
class="font-red">*</span> Email name="filBarangayClearnace"
Address</label>
id="filBarangayClearnace" style="height: <p>Copyright &copy;Web Based Job
40px;" required> Finder for Tarlac City <?php echo
</div> date("Y"); ?></p>
</div> <div class="credits">
<!--
<div class="form-group"> All the links in the footer should
<div class="col-sm-offset-3 col-sm- remain intact.
9"> You can delete the links only if you
<a href="<?php base_url(); ?>" purchased the pro version.
class="btn btn-warning btn-lg">Cancel</a> Licensing information:
<button type="submit" https://bootstrapmade.com/license/
name="btnRegister" class="btn btn-theme Purchase the pro version with
btn-lg">Register</button> working PHP/AJAX contact form:
</div> https://bootstrapmade.com/buy/?theme=Amo
</div> eba
-->
</form> </div>
</div> </div>
</div> </div>
</section> </div>

<section id="footer" class="section footer"> </section>


<div class="container"> <a href="#header" class="scrollup"><i
<div class="row animated opacity mar- class="fa fa-chevron-up"></i></a>
bot20" data-andown="fadeIn" data-
animation="animation"> <script src="js/modernizr-2.6.2-respond-
<div class="col-sm-12 align-center"> 1.1.0.min.js"></script>
<ul class="social-network social- <script src="js/jquery.js"></script>
circle"> <script
<li><a href="#" class="icoFacebook" src="js/jquery.easing.1.3.js"></script>
title="Facebook"><i class="fa fa- <script src="js/bootstrap.min.js"></script>
facebook"></i></a></li> <script
<li><a href="#" class="icoTwitter" src="js/jquery.isotope.min.js"></script>
title="Twitter"><i class="fa fa- <script
twitter"></i></a></li> src="js/jquery.nicescroll.min.js"></script>
<li><a href="#" class="icoGoogle" <script
title="Google +"><i class="fa fa-google- src="js/fancybox/jquery.fancybox.pack.js"><
plus"></i></a></li> /script>
<li><a href="#" class="icoLinkedin" <script src="js/skrollr.min.js"></script>
title="Linkedin"><i class="fa fa- <script
linkedin"></i></a></li> src="js/jquery.scrollTo.js"></script>
</ul> <script
</div> src="js/jquery.localScroll.js"></script>
</div> <script src="js/stellar.js"></script>
<script src="js/jquery.appear.js"></script>
<div class="row align-center copyright"> <script
<div class="col-sm-12"> src="https://maps.googleapis.com/maps/api/js
?key=AIzaSyD8HeI8o-c1NppZA- var $button = $input.closest('.btn');
92oYlXakhDPYR7XMY"></script> var $icon = $button.find('[data-icon-
<script src="js/main.js"></script> on]');
<script //$button.addClass('active');
src="contactform/contactform.js"></script> $input.prop('checked', true);
$icon.css('width',$icon.width());
<script type="text/javascript">
$(function() { $icon.removeAttr('class').addClass($icon.dat
$('body').on('click','.btn- a('icon-on'));
checkbox',function(e) { $input.trigger('change');
e.stopPropagation(); }
e.preventDefault();
var $checkbox = function unchecked($input) {
$(this).find(':input[type=checkbox]'); var $button = $input.closest('.btn');
if ($checkbox.length) { var $icon = $button.find('[data-icon-
var $icon = $(this).find('[data-icon- on]');
on]'); //$button.removeClass('active');
if ($checkbox.is(':checked')) { $input.prop('checked', false);
unchecked($checkbox); $icon.css('width',$icon.width());
} else {
checked($checkbox); $icon.removeAttr('class').addClass($icon.dat
} a('icon-off'));
return; $input.trigger('change');
} }
var $radio = </script>
$(this).find(':input[type=radio]'); </body>
if ($radio.length) {
var $group = $radio.closest('.btn- </html>
group');
Skilled-worker-request-assistance
$group.find(':input[type=radio]').not($radio). <?php
each(function(){ session_start();
unchecked($(this)); if(isset($_GET['x']))
}) $_SESSION['x'] = $_GET['x'];
var $icon = $(this).find('[data-icon-
on]'); $_SESSION['searchfromlanding'] =
if ($radio.is(':checked')) { TRUE;
unchecked($radio); header("location:login.php");
} else { ?>
checked($radio); SMS
} <?php
return; //trial code TR-RENMA880984_B7U77
} function
}); itexmo($number,$message,$apicode){
}); $url =
'https://www.itexmo.com/php_api/api.php';
function checked($input) {
$itexmo = array('1' => $number, '2' => SET
$message, '3' => $apicode); SQL_MODE="NO_AUTO_VALUE_ON_ZE
$param = array( RO";
'http' => array(
'header' => "Content-type:
application/x-www-form-urlencoded\r\n", /*!40101 SET
'method' => 'POST', @OLD_CHARACTER_SET_CLIENT=@@
'content' => CHARACTER_SET_CLIENT */;
http_build_query($itexmo), /*!40101 SET
), @OLD_CHARACTER_SET_RESULTS=@
); @CHARACTER_SET_RESULTS */;
$context = /*!40101 SET
stream_context_create($param); @OLD_COLLATION_CONNECTION=@@
return file_get_contents($url, false, COLLATION_CONNECTION */;
$context); /*!40101 SET NAMES utf8 */;
}
--
$result = itexmo("09090880984","Hello -- Database: `tarlaccityjobfinderdb`
World!","TR-RENMA880984_B7U77"); --
if ($result == ""){
echo "iTexMo: No response from -- --------------------------------------------------------
server!!!
Please check the METHOD used (CURL --
or CURL-LESS). If you are using CURL then -- Table structure for table
try CURL-LESS and vice versa. `tbl_assistancefinder`
Please CONTACT US for help. "; --
}
else if ($result == 0){ CREATE TABLE IF NOT EXISTS
echo "Message Sent!"; `tbl_assistancefinder` (
} `assistanceFinderID` int(9) NOT NULL
else AUTO_INCREMENT,
{ `lastname` varchar(50) NOT NULL,
echo "Error Num ". $result . " was `firstname` varchar(50) NOT NULL,
encountered!"; `middlename` varchar(50) NOT NULL,
} `birthday` date NOT NULL,
?> `sex` varchar(6) NOT NULL,
Tarlaccityjobfinderdb `address` varchar(255) NOT NULL,
-- phpMyAdmin SQL Dump `contactNo` varchar(11) NOT NULL,
-- version 3.2.0.1 `emailAddress` varchar(50) NOT NULL,
-- http://www.phpmyadmin.net `password` varchar(32) NOT NULL,
-- `barangayClearance` varchar(255) NOT
-- Host: localhost NULL,
-- Generation Time: Sep 02, 2018 at 04:43 `registrationStatus` varchar(50) NOT
AM NULL,
-- Server version: 5.1.36 PRIMARY KEY (`assistanceFinderID`)
-- PHP Version: 5.3.0 ) ENGINE=MyISAM DEFAULT
CHARSET=latin1 AUTO_INCREMENT=2 ;
--
--
-- Dumping data for table INSERT INTO `tbl_assistancerequest`
`tbl_assistancefinder` (`assistanceRequestID`, `assistanceFinderID`,
-- `skilledWorkerID`, `subject`, `duration`,
`expectedSalary`, `requestDetails`,
INSERT INTO `tbl_assistancefinder` `requestDate`, `requestStatus`,
(`assistanceFinderID`, `lastname`, `assistanceFinderRating`,
`firstname`, `middlename`, `birthday`, `sex`, `skilledWorkerRating`) VALUES
`address`, `contactNo`, `emailAddress`, (1, 1, 1, 'Bahay Kubo Project', 7, 3500.00,
`password`, `barangayClearance`, 'Need a carpenter to make a kubo at the back
`registrationStatus`) VALUES of my garden. Breakfast to Dinner will be
(1, 'Manaloto', 'Pepito', '', '1990-01-01', provided and additional 100 pesos per day
'Male', 'Manila', '09123456789', transportation allowance.', '2018-08-30',
'pepitomanaloto@email.com', 'Accepted', 3, 4);
'823da4223e46ec671a10ea13d7823534',
'26907982_10154831483571157_27008546928 -- --------------------------------------------------------
99999099_n.jpg', 'APPROVED');
--
-- -------------------------------------------------------- -- Table structure for table
`tbl_barangaymessage_assistancefinder`
-- --
-- Table structure for table
`tbl_assistancerequest` CREATE TABLE IF NOT EXISTS
-- `tbl_barangaymessage_assistancefinder` (
`messageID` int(9) NOT NULL
CREATE TABLE IF NOT EXISTS AUTO_INCREMENT,
`tbl_assistancerequest` ( `assistanceFinderID` int(9) NOT NULL,
`assistanceRequestID` int(9) NOT NULL `subject` varchar(255) NOT NULL,
AUTO_INCREMENT, `message` text NOT NULL,
`assistanceFinderID` int(9) NOT NULL, `dateSent` date NOT NULL,
`skilledWorkerID` int(9) NOT NULL, PRIMARY KEY (`messageID`)
`subject` varchar(255) NOT NULL, ) ENGINE=MyISAM DEFAULT
`duration` int(3) NOT NULL, CHARSET=latin1 AUTO_INCREMENT=2 ;
`expectedSalary` double(9,2) NOT NULL,
`requestDetails` text NOT NULL, --
`requestDate` date NOT NULL, -- Dumping data for table
`requestStatus` varchar(50) NOT NULL, `tbl_barangaymessage_assistancefinder`
`assistanceFinderRating` int(9) NOT NULL, --
`skilledWorkerRating` int(9) NOT NULL,
PRIMARY KEY (`assistanceRequestID`) INSERT INTO
) ENGINE=MyISAM DEFAULT `tbl_barangaymessage_assistancefinder`
CHARSET=latin1 AUTO_INCREMENT=2 ; (`messageID`, `assistanceFinderID`, `subject`,
`message`, `dateSent`) VALUES
-- (1, 1, 'Sample', 'Edi Wow', '2018-08-31');
-- Dumping data for table
`tbl_assistancerequest` -- --------------------------------------------------------
`contactNo` varchar(11) NOT NULL,
-- `skills` varchar(255) NOT NULL,
-- Table structure for table `emailAddress` varchar(50) NOT NULL,
`tbl_barangaymessage_skilledworker` `password` varchar(32) NOT NULL,
-- `barangayClearance` varchar(255) NOT
NULL,
CREATE TABLE IF NOT EXISTS `registrationStatus` varchar(50) NOT
`tbl_barangaymessage_skilledworker` ( NULL,
`messageID` int(9) NOT NULL PRIMARY KEY (`skilledWorkerID`)
AUTO_INCREMENT, ) ENGINE=MyISAM DEFAULT
`skilledWorkerID` int(9) NOT NULL, CHARSET=latin1 AUTO_INCREMENT=3 ;
`subject` varchar(255) NOT NULL,
`message` text NOT NULL, --
`dateSent` date NOT NULL, -- Dumping data for table `tbl_skilledworker`
PRIMARY KEY (`messageID`) --
) ENGINE=MyISAM DEFAULT
CHARSET=latin1 AUTO_INCREMENT=2 ; INSERT INTO `tbl_skilledworker`
(`skilledWorkerID`, `lastname`, `firstname`,
-- `middlename`, `birthday`, `sex`, `address`,
-- Dumping data for table `contactNo`, `skills`, `emailAddress`,
`tbl_barangaymessage_skilledworker` `password`, `barangayClearance`,
-- `registrationStatus`) VALUES
(1, 'Penduko', 'Pedro', '', '1990-02-02', 'Male',
INSERT INTO 'Manila', '09123456789', 'Carpenter, Baby
`tbl_barangaymessage_skilledworker` Sitter', 'pedropenduko@email.com',
(`messageID`, `skilledWorkerID`, `subject`, '823da4223e46ec671a10ea13d7823534',
`message`, `dateSent`) VALUES '31958933_2152779361431416_566777334499
(1, 1, 'Sample Again', 'The quick brown fox.', 7441536_n.jpg', 'APPROVED'),
'2018-08-31'); (2, 'Victoria', 'Micaela', '', '1995-03-03',
'Female', 'Tarlac', '09123456789', 'Baby
-- -------------------------------------------------------- Sitter', 'victoriamicaela@email.com',
'823da4223e46ec671a10ea13d7823534',
-- '31967975_2154242007951818_642285689087
-- Table structure for table 8787584_n.jpg', 'APPROVED');
`tbl_skilledworker`
-- -- --------------------------------------------------------

CREATE TABLE IF NOT EXISTS --


`tbl_skilledworker` ( -- Table structure for table `tbl_skilllist`
`skilledWorkerID` int(9) NOT NULL --
AUTO_INCREMENT,
`lastname` varchar(50) NOT NULL, CREATE TABLE IF NOT EXISTS
`firstname` varchar(50) NOT NULL, `tbl_skilllist` (
`middlename` varchar(50) NOT NULL, `skillListID` int(1) NOT NULL
`birthday` date NOT NULL, AUTO_INCREMENT,
`sex` varchar(6) NOT NULL, `skill` varchar(255) NOT NULL,
`address` varchar(255) NOT NULL, PRIMARY KEY (`skillListID`)
) ENGINE=MyISAM DEFAULT session_start();
CHARSET=latin1 AUTO_INCREMENT=3 ; include_once("../function/functions.php");
testByPass($_SESSION['userID']);
-- $con = databaseConnection();
-- Dumping data for table `tbl_skilllist`
-- $_SESSION['currentPage'] =
'changePassword';
INSERT INTO `tbl_skilllist` (`skillListID`, $_SESSION['currentNavigation'] = 'file
`skill`) VALUES maintenance';
(1, 'Carpenter'), $_SESSION['subNavigation'] = FALSE;
(2, 'Baby Sitter'); $_SESSION['subNavigationArrow'] =
FALSE;
-- -------------------------------------------------------- $err = '';
$arrStatus = array('Enabled', 'Disabled');
--
-- Table structure for table `tbl_users` if(isset($_POST['btnSave'])){
-- $currentPassword =
md5(md5($_POST['txtCurrentPassword']));
CREATE TABLE IF NOT EXISTS $newPassword =
`tbl_users` ( $_POST['txtNewPassword'];
`userID` int(9) NOT NULL $confirmPassword =
AUTO_INCREMENT, $_POST['txtConfirmPassword'];
`lastname` varchar(255) NOT NULL,
`firstname` varchar(255) NOT NULL, if($currentPassword !=
`username` varchar(255) NOT NULL, $_SESSION['currentPassword'])
`password` varchar(32) NOT NULL, $err = '<b>- Current Password</b> is
`userType` varchar(255) NOT NULL, incorrect!';
`status` varchar(255) NOT NULL, elseif($newPassword != $confirmPassword)
PRIMARY KEY (`userID`) $err = '<b>- Password</b> did not
) ENGINE=MyISAM DEFAULT match!';
CHARSET=latin1 AUTO_INCREMENT=3 ; else{
$strSql = "UPDATE tbl_users SET
-- password = '" . md5(md5($newPassword)) .
-- Dumping data for table `tbl_users` "' WHERE userID = " .
-- $_SESSION['userID'];
mysqli_query($con, $strSql);
INSERT INTO `tbl_users` (`userID`,
`lastname`, `firstname`, `username`, header("location:confirmRecordSave.php");
`password`, `userType`, `status`) VALUES }
(1, 'Dela Cruz', 'Juan', 'admin', }
'c3284d0f94606de1fd2af172aba15bf3',
'Administrator', 'Enabled'); if(isset($_GET['x']))
$_SESSION['x'] = $_GET['x'];
Admin
$strSql = "SELECT * FROM tbl_users
Changepassword WHERE userID = " . $_SESSION['userID'];
<?php $rsUsers = getRecord($con, $strSql);
if(isset($rsUsers)){ Password <span class="text-
$recUsers = fetchRecord($rsUsers); red">*</span></label></div>
foreach ($recUsers as $key => $value) { <div class="col-md-9"><input
$password = $value['password']; type="password" name="txtNewPassword"
$_SESSION['currentPassword'] = id="txtNewPassword" class="form-
$value['password']; control"></div>
} </div>
} </div>
include_once("header.php");
?> <div class="form-group">
<div class="content-wrapper py-3" <div class="row">
style="height:1200px;"> <div class="col-md-3 text-
<div class="container-fluid"> right"><label
<div class="row"> for="txtCurrentPassword">Confirm
<div class="col-md-12"> Password <span class="text-
<h2><i class="fa fa-cog fa-fw"></i> red">*</span></label></div>
Change Password</h2><hr> <div class="col-md-9"><input
<?php type="password"
if($err != '') name="txtConfirmPassword"
echo '<div class="alert alert- id="txtConfirmPassword" class="form-
danger">' . $err . '<button type="button" control"></div>
class="close" data- </div>
dismiss="alert">&times;</button></div>'; </div>
?>
</div> <div class="form-group">
<div class="col-md-10"> <div class="row">
<form method="post" <div class="col-md-12 text-right">
action="changePassword.php"> <button type="submit"
<div class="form-group"> name="btnSave" class="btn btn-primary
<div class="row"> btn-lg">
<div class="col-md-3 text- <i class="fa fa-save"></i>
right"><label Change Password
for="txtCurrentPassword">Current </button>
Password <span class="text- </div>
red">*</span></label></div> </div>
<div class="col-md-9"><input </div>
type="password" </form>
name="txtCurrentPassword" </div>
id="txtCurrentPassword" class="form-
control"></div> </div>
</div> </div>
</div> <!-- /.container-fluid -->
</div>
<div class="form-group"> <!-- /.content-wrapper -->
<div class="row">
<div class="col-md-3 text- <!-- Scroll to Top Button -->
right"><label for="txtNewPassword">New
<a class="scroll-to-top rounded" <?php
href="#page-top"> session_start();
<i class="fa fa-angle-up"></i> include_once("../function/functions.php");
</a> testByPass($_SESSION['userID']);
include_once("header.php");
<!-- Logout Modal --> ?>
<div class="modal fade" <div class="content-wrapper py-3"
id="exampleModal" tabindex="-1" style="height: 91vh;">
role="dialog" aria- <div class="container-fluid">
labelledby="exampleModalLabel" aria- <div class="row">
hidden="true"> <div clas="col-md-12">
<div class="modal-dialog" <div class="modal fade"
role="document"> id="modalRecordSave" tabindex="-1"
<div class="modal-content"> role="dialog" aria-
<div class="modal-header"> labelledby="myModalLabel" aria-
<h5 class="modal-title" hidden="true" data-backdrop="static"
id="exampleModalLabel">Ready to data-keyboard="false">
Leave?</h5> <div class="modal-dialog">
<button type="button" class="close" <div class="modal-content">
data-dismiss="modal" aria-label="Close"> <div class="modal-header">
<span aria- <h3 class="modal-title"
hidden="true">&times;</span> id="myModalLabel">Web Based Job Finder
</button> for Tarlac City</h3>
</div> </div>
<div class="modal-body"> <div class="modal-body text-
Select "Logout" below if you are center">
ready to end your current session. <h4><i class="fa fa-
</div> trash"></i> Record Successfully
<div class="modal-footer"> Removed!</h4>
<button type="button" class="btn </div>
btn-secondary" data- <div class="modal-footer">
dismiss="modal">Cancel</button> <a class="btn btn-success"
<a class="btn btn-primary" href="<?php echo
href="logout.php">Logout</a> $_SESSION['currentPage'] . '.php';
</div> ?>">Ok</a>
</div> </div>
</div> </div>
</div> <!-- /.modal-content -->
</div>
<script type="text/javascript"> <!-- /.modal-dialog -->
$(document).ready(function(){ </div>
$('[data-toggle="tooltip"]').tooltip(); </div>
}); </div>
</script> </div>
<?php include_once("footer.php"); ?> <!-- /.container-fluid -->
</div>
Confirmrecorddeltion <!-- /.content-wrapper -->
testByPass($_SESSION['userID']);
<!-- Scroll to Top Button --> include_once("header.php");
<a class="scroll-to-top rounded" ?>
href="#page-top"> <div class="content-wrapper py-3"
<i class="fa fa-angle-up"></i> style="height: 91vh;">
</a> <div class="container-fluid">
<div class="row">
<!-- Logout Modal --> <div clas="col-md-12">
<div class="modal fade" <div class="modal fade"
id="exampleModal" tabindex="-1" id="modalRecordSave" tabindex="-1"
role="dialog" aria- role="dialog" aria-
labelledby="exampleModalLabel" aria- labelledby="myModalLabel" aria-
hidden="true"> hidden="true" data-backdrop="static"
<div class="modal-dialog" data-keyboard="false">
role="document"> <div class="modal-dialog">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<h5 class="modal-title" <h3 class="modal-title"
id="exampleModalLabel">Ready to id="myModalLabel">Web Based Job Finder
Leave?</h5> for Tarlac City</h3>
<button type="button" class="close" </div>
data-dismiss="modal" aria-label="Close"> <div class="modal-body text-
<span aria- center">
hidden="true">&times;</span> <h4><i class="fa fa-
</button> save"></i> Record Successfully Saved!</h4>
</div> </div>
<div class="modal-body"> <div class="modal-footer">
Select "Logout" below if you are <a class="btn btn-success"
ready to end your current session. href="<?php echo
</div> $_SESSION['currentPage'] . '.php';
<div class="modal-footer"> ?>">Ok</a>
<button type="button" class="btn </div>
btn-secondary" data- </div>
dismiss="modal">Cancel</button> <!-- /.modal-content -->
<a class="btn btn-primary" </div>
href="logout.php">Logout</a> <!-- /.modal-dialog -->
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- /.container-fluid -->
<?php include_once("footer.php"); ?> </div>
<!-- /.content-wrapper -->
Confirmrecordsave
<?php <!-- Scroll to Top Button -->
session_start(); <a class="scroll-to-top rounded"
include_once("../function/functions.php"); href="#page-top">
<i class="fa fa-angle-up"></i> <div class="content-wrapper py-3"
</a> style="height: 91vh;">
<div class="container-fluid">
<!-- Logout Modal --> <div class="row">
<div class="modal fade" <div clas="col-md-12">
id="exampleModal" tabindex="-1" <div class="modal fade"
role="dialog" aria- id="modalRecordSave" tabindex="-1"
labelledby="exampleModalLabel" aria- role="dialog" aria-
hidden="true"> labelledby="myModalLabel" aria-
<div class="modal-dialog" hidden="true" data-backdrop="static"
role="document"> data-keyboard="false">
<div class="modal-content"> <div class="modal-dialog">
<div class="modal-header"> <div class="modal-content">
<h5 class="modal-title" <div class="modal-header">
id="exampleModalLabel">Ready to <h3 class="modal-title"
Leave?</h5> id="myModalLabel">Web Based Job Finder
<button type="button" class="close" for Tarlac City</h3>
data-dismiss="modal" aria-label="Close"> </div>
<span aria- <div class="modal-body text-
hidden="true">&times;</span> center">
</button> <h4><i class="fa fa-
</div> suitcase"></i> Registration Approval is
<div class="modal-body"> Successful!</h4>
Select "Logout" below if you are </div>
ready to end your current session. <div class="modal-footer">
</div> <a class="btn btn-success"
<div class="modal-footer"> href="<?php echo
<button type="button" class="btn $_SESSION['currentPage'] . '.php';
btn-secondary" data- ?>">Ok</a>
dismiss="modal">Cancel</button> </div>
<a class="btn btn-primary" </div>
href="logout.php">Logout</a> <!-- /.modal-content -->
</div> </div>
</div> <!-- /.modal-dialog -->
</div> </div>
</div> </div>
</div>
<?php include_once("footer.php"); ?> </div>
<!-- /.container-fluid -->
Comfirmregistrationapproval </div>
<?php <!-- /.content-wrapper -->
session_start();
include_once("../function/functions.php"); <!-- Scroll to Top Button -->
testByPass($_SESSION['userID']); <a class="scroll-to-top rounded"
include_once("header.php"); href="#page-top">
?> <i class="fa fa-angle-up"></i>
</a>
<div class="row">
<!-- Logout Modal --> <div clas="col-md-12">
<div class="modal fade" <div class="modal fade"
id="exampleModal" tabindex="-1" id="modalRecordSave" tabindex="-1"
role="dialog" aria- role="dialog" aria-
labelledby="exampleModalLabel" aria- labelledby="myModalLabel" aria-
hidden="true"> hidden="true" data-backdrop="static"
<div class="modal-dialog" data-keyboard="false">
role="document"> <div class="modal-dialog">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<h5 class="modal-title" <h3 class="modal-title"
id="exampleModalLabel">Ready to id="myModalLabel">Web Based Job Finder
Leave?</h5> for Tarlac City</h3>
<button type="button" class="close" </div>
data-dismiss="modal" aria-label="Close"> <div class="modal-body text-
<span aria- center">
hidden="true">&times;</span> <h4><i class="fa fa-
</button> refresh"></i> User Password reset is
</div> Successful!</h4>
<div class="modal-body"> </div>
Select "Logout" below if you are <div class="modal-footer">
ready to end your current session. <a class="btn btn-success"
</div> href="<?php echo
<div class="modal-footer"> $_SESSION['currentPage'] . '.php';
<button type="button" class="btn ?>">Ok</a>
btn-secondary" data- </div>
dismiss="modal">Cancel</button> </div>
<a class="btn btn-primary" <!-- /.modal-content -->
href="logout.php">Logout</a> </div>
</div> <!-- /.modal-dialog -->
</div> </div>
</div> </div>
</div> </div>
</div>
<?php include_once("footer.php"); ?> <!-- /.container-fluid -->
</div>
comfirmUserpasswordreset <!-- /.content-wrapper -->
<?php
session_start(); <!-- Scroll to Top Button -->
include_once("../function/functions.php"); <a class="scroll-to-top rounded"
testByPass($_SESSION['userID']); href="#page-top">
include_once("header.php"); <i class="fa fa-angle-up"></i>
?> </a>
<div class="content-wrapper py-3"
style="height: 91vh;"> <!-- Logout Modal -->
<div class="container-fluid">
<div class="modal fade"
id="exampleModal" tabindex="-1" $strSql = "SELECT assistanceFinderID
role="dialog" aria- FROM tbl_assistancefinder WHERE
labelledby="exampleModalLabel" aria- registrationStatus = 'PENDING'";
hidden="true"> $pendingRegistrations = countRecord($con,
<div class="modal-dialog" $strSql);
role="document">
<div class="modal-content"> $strSql = "SELECT assistanceFinderID
<div class="modal-header"> FROM tbl_assistancefinder WHERE
<h5 class="modal-title" registrationStatus = 'APPROVED'";
id="exampleModalLabel">Ready to $assistanceFinderCount =
Leave?</h5> countRecord($con, $strSql);
<button type="button" class="close"
data-dismiss="modal" aria-label="Close"> $strSql = "SELECT skilledWorkerID
<span aria- FROM tbl_skilledworker WHERE
hidden="true">&times;</span> registrationStatus = 'APPROVED'";
</button> $skilledWorkerCount = countRecord($con,
</div> $strSql);
<div class="modal-body">
Select "Logout" below if you are include_once("header.php");
ready to end your current session. ?>
</div>
<div class="modal-footer"> <div class="content-wrapper py-3"
<button type="button" class="btn style="height:1200px;">
btn-secondary" data- <div class="container-fluid">
dismiss="modal">Cancel</button> <div class="row">
<a class="btn btn-primary"
href="logout.php">Logout</a> <div class="col-xl-4 col-sm-4 mb-4">
</div> <div class="card text-white bg-
</div> primary o-hidden h-100">
</div> <div class="card-body">
</div> <div class="card-body-icon">
<i class="fa fa-fw fa-list"></i>
<?php include_once("footer.php"); ?> </div>
<div class="mr-5">
Dashboard <h2><?php echo
<?php $pendingRegistrations; ?> <small>New
session_start(); Assitance Finder Request(s)</small></h2>
include_once("../function/functions.php"); </div>
testByPass($_SESSION['userID']); </div>
$con = databaseConnection(); <a href="registrationApproval.php"
class="card-footer text-white clearfix small z-
$_SESSION['currentPage'] = 'dashboard'; 1">
$_SESSION['currentNavigation'] = ''; <span class="float-left">View
$_SESSION['subNavigation'] = FALSE; Details</span>
$_SESSION['subNavigationArrow'] = <span class="float-right">
FALSE; <i class="fa fa-angle-right"></i>
</span> </a>
</a>
</div> <!-- Logout Modal -->
</div> <div class="modal fade"
id="exampleModal" tabindex="-1"
<div class="col-xl-4 col-sm-4 mb-4"> role="dialog" aria-
<div class="card text-white bg-danger labelledby="exampleModalLabel" aria-
o-hidden h-100"> hidden="true">
<div class="card-body"> <div class="modal-dialog"
<div class="card-body-icon"> role="document">
<i class="fa fa-fw fa-suitcase"></i> <div class="modal-content">
</div> <div class="modal-header">
<div class="mr-5"> <h5 class="modal-title"
<h2><?php echo id="exampleModalLabel">Ready to
$assistanceFinderCount ?> <small>Current Leave?</h5>
Assistance Finder(s)</small></h2> <button type="button" class="close"
</div> data-dismiss="modal" aria-label="Close">
</div> <span aria-
</div> hidden="true">&times;</span>
</div> </button>
</div>
<div class="col-xl-4 col-sm-4 mb-4"> <div class="modal-body">
<div class="card text-white bg-success Select "Logout" below if you are
o-hidden h-100"> ready to end your current session.
<div class="card-body"> </div>
<div class="card-body-icon"> <div class="modal-footer">
<i class="fa fa-fw fa-users"></i> <button type="button" class="btn
</div> btn-secondary" data-
<div class="mr-5"> dismiss="modal">Cancel</button>
<h2><?php echo <a class="btn btn-primary"
$skilledWorkerCount ?> <small>Current href="logout.php">Logout</a>
Skilled Worker(s)</small></h2> </div>
</div> </div>
</div> </div>
</div> </div>
</div>
<?php include_once("footer.php"); ?>
</div>
</div> Footer
<!-- /.container-fluid --> <!-- Bootstrap core JavaScript -->
</div> <script
<!-- /.content-wrapper --> src="vendor/jquery/jquery.js"></script>
<script
<!-- Scroll to Top Button --> src="vendor/popper/popper.js"></script>
<a class="scroll-to-top rounded" <script
href="#page-top"> src="vendor/bootstrap/js/bootstrap.js"></scr
<i class="fa fa-angle-up"></i> ipt>
<!-- Plugin JavaScript --> <script type="text/javascript">
<script src="vendor/jquery- /*(($ => {
easing/jquery.easing.min.js"></script> $(() => {
<script $.prototype.fullscreen = function()
src="vendor/datatables/jquery.dataTables.js {
"></script> var $e = $(this);
<script if(!$e.hasClass('modal-fullscreen'))
src="vendor/datatables/dataTables.bootstrap return;
4.js"></script> bind($e);
<!-- Custom scripts for this template --> }
<script src="js/bootstrap-
datepicker.js"></script> function cssn($e, props) {
<script src="js/sb-admin.js"></script> let sum = 0;
props.forEach(p => {
sum +=
<script type="text/javascript"> parseInt($e.css(p).match(/\d+/)[0]);
$(document).ready(function(){ });
$('[data-toggle="tooltip"]').tooltip(); return sum;
}); }
</script> function g($e)
{
<script type="text/javascript"> return {
$(document).ready(function() { width: cssn($e, ['margin-left',
$("#assitance-finder-search").on("keyup 'margin-right', 'padding-left', 'padding-
click input", function () { right', 'border-left-width', 'border-right-
if (this.value.length > 0) { width']),
$("#assitance-finder-list height: cssn($e, ['margin-top',
li").hide().filter(function () { 'margin-bottom', 'padding-top', 'padding-
return bottom', 'border-top-width', 'border-bottom-
$(this).text().toLowerCase().indexOf($("#assit width']),
ance-finder-search").val().toLowerCase()) != };
-1; }
}).show(); function calc($e)
} {
else { const wh = $(window).height();
$("#assitance-finder-list li").show(); const ww = $(window).width();
} const $d = $e.find('.modal-dialog');
}); $d.css('width', 'initial');
}); $d.css('height', 'initial');
</script> $d.css('max-width', 'initial');
$d.css('margin', '5px');
<script type="text/javascript"> const d = g($d);
$(document).ready(function(){ const $h = $e.find('.modal-header');
$("#modalRecordSave").modal('show'); const $f = $e.find('.modal-footer');
}); const $b = $e.find('.modal-body');
</script> $b.css('overflow-y', 'scroll');
const bh = wh - $h.outerHeight() - //Make the container Div
$f.outerHeight() - ($b.outerHeight()- contenteditable
$b.height()) - d.height; $(this).attr("contenteditable", true);
$b.height(bh); //Select the image
} SelectText($(this).get(0));
function bind($e) //Execute copy Command
{ //Note: This will ONLY work directly
$e.on('show.bs.modal', e => { inside a click listenner
const $e = document.execCommand('copy');
$(e.currentTarget).css('visibility', 'hidden'); //Unselect the content
});
$e.on('shown.bs.modal', e => { window.getSelection().removeAllRanges();
calc($(e.currentTarget)); //Make the container Div uneditable
const $e = again
$(e.currentTarget).css('visibility', 'visible'); $(this).removeAttr("contenteditable");
}); //Success!!
} alert("image copied!");
$(window).resize(() => { });
calc($('.modal.modal-fullscreen.in')); </script>
});
bind($('.modal-fullscreen')); <script>
}); if (top.location != location) {
}))(jQuery);*/ top.location.href =
</script> document.location.href ;
}
<script> $(function(){
//Cross-browser function to select window.prettyPrint && prettyPrint();
content $('#dp1').datepicker({
function SelectText(element) { format: 'mm-dd-yyyy'
var doc = document; });
if (doc.body.createTextRange) { $('#dp2').datepicker();
var range = $('#dp3').datepicker();
document.body.createTextRange(); $('#dp3').datepicker();
$('#dpYears').datepicker();
range.moveToElementText(element); $('#dpMonths').datepicker();
range.select();
} else if (window.getSelection) { var startDate = new Date(2012,1,20);
var selection = var endDate = new Date(2012,1,25);
window.getSelection(); $('#dp4').datepicker()
var range = .on('changeDate', function(ev){
document.createRange(); if (ev.date.valueOf() >
range.selectNodeContents(element); endDate.valueOf()){
selection.removeAllRanges();
selection.addRange(range); $('#alert').show().find('strong').text('The start
} date can not be greater then the end date');
} } else {
$(".copyable").click(function (e) { $('#alert').hide();
startDate = new Date(ev.date); onRender: function(date) {
return date.valueOf() <=
$('#startDate').text($('#dp4').data('date')); checkin.date.valueOf() ? 'disabled' : '';
} }
$('#dp4').datepicker('hide'); }).on('changeDate', function(ev) {
}); checkout.hide();
$('#dp5').datepicker() }).data('datepicker');
.on('changeDate', function(ev){ });
if (ev.date.valueOf() < </script>
startDate.valueOf()){ </body>

$('#alert').show().find('strong').text('The end </html>


date can not be less then the start date');
} else { Header
$('#alert').hide(); <!DOCTYPE html>
endDate = new Date(ev.date); <html lang="en">
<head>
$('#endDate').text($('#dp5').data('date')); <meta charset="utf-8">
} <meta http-equiv="X-UA-Compatible"
$('#dp5').datepicker('hide'); content="IE=edge">
}); <meta name="viewport"
content="width=device-width, initial-scale=1,
// disabling dates shrink-to-fit=no">
var nowTemp = new Date(); <title>Web Based Job Finder for Tarlac
var now = new City</title>
Date(nowTemp.getFullYear(), <!-- Bootstrap core CSS -->
nowTemp.getMonth(), nowTemp.getDate(), 0, <link
0, 0, 0); href="vendor/bootstrap/css/bootstrap.css"
rel="stylesheet">
var checkin = $('#dpd1').datepicker({ <!-- Custom fonts for this template -->
onRender: function(date) { <link href="vendor/font-awesome/css/font-
return date.valueOf() < now.valueOf() awesome.css" rel="stylesheet"
? 'disabled' : ''; type="text/css">
} <!-- Plugin CSS -->
}).on('changeDate', function(ev) { <link
if (ev.date.valueOf() > href="vendor/datatables/dataTables.bootstra
checkout.date.valueOf()) { p4.css" rel="stylesheet">
var newDate = new Date(ev.date) <!-- Custom styles for this template -->
newDate.setDate(newDate.getDate() +
1); <link href="css/datepicker.css"
checkout.setValue(newDate); rel="stylesheet">
} <link href="css/sb-admin.css"
checkin.hide(); rel="stylesheet">
$('#dpd2')[0].focus(); <link href="css/styles.css"
}).data('datepicker'); rel="stylesheet">
</head>
var checkout = $('#dpd2').datepicker({
<body class="fixed-nav" id="page-top"> <i class="fa fa-fw fa-file"></i>
<!-- Navigation --> <span class="nav-link-text">
<nav class="navbar navbar-expand-lg File Maintenance</span>
navbar-dark bg-dark fixed-top" </a>
id="mainNav"> <ul class="sidenav-second-level <?php
<a class="navbar-brand" echo collapseSideNavigation('file
href="#">Barangay San Vicente Job Finder maintenance',
Portal | Backend</a> $_SESSION['currentNavigation'],
<button class="navbar-toggler navbar- $_SESSION['subNavigation']) ?>"
toggler-right" type="button" data- id="collapseFileMaintenance">
toggle="collapse" data- <li class="' . activeSideBar('skillList',
target="#navbarResponsive" aria- $_SESSION['currentPage']) . '"><a
controls="navbarResponsive" aria- href="skillList.php"><i class="fa fa-list fa-
expanded="false" aria-label="Toggle fw"></i> Skill List</a></li>
navigation"> <?php
<span class="navbar-toggler- if($_SESSION['userType'] ==
icon"></span> 'Administrator')
</button> echo '<li class="' .
<div class="collapse navbar-collapse" activeSideBar('users',
id="navbarResponsive"> $_SESSION['currentPage']) . '"><a
<ul class="navbar-nav navbar- href="users.php"><i class="fa fa-user fa-
sidenav"> fw"></i> Users</a></li>';
<li class="nav-item <?php echo ?>
activeSideBar('dashboard', </ul>
$_SESSION['currentPage']); ?>" data- </li>
toggle="tooltip" data-placement="right"
title="Dashboard"> <li class="nav-item <?php echo
<a class="nav-link" activeSideBar('registrationApproval',
href="dashboard.php"> $_SESSION['currentPage']); ?>" data-
<i class="fa fa-fw fa- toggle="tooltip" data-placement="right"
dashboard"></i> title="Registration Approval">
<span class="nav-link-text"> <a class="nav-link"
Dashboard</span> href="registrationApproval.php">
</a> <i class="fa fa-fw fa-thumbs-
</li> up"></i>
<span class="nav-link-text">
<li class="nav-item" data- Registration Approval</span>
toggle="tooltip" data-placement="right" </a>
title="FileMaintenance"> </li>
<a class="nav-link nav-link-collapse
<?php echo <li class="nav-item <?php echo
collapseSideNavigationArrow('file activeSideBar('messageAssistanceFinder',
maintenance', $_SESSION['currentPage']); ?>" data-
$_SESSION['currentNavigation'], toggle="tooltip" data-placement="right"
$_SESSION['subNavigationArrow']); ?>" title="Message Assistance Finder">
data-toggle="collapse" <a class="nav-link"
href="#collapseFileMaintenance"> href="messageAssistanceFinder.php">
<i class="fa fa-fw fa-suitcase"></i> Logout</a>
<span class="nav-link-text"> </li>
Message Assistance Finder</span> </ul>
</a> </div>
</li> </nav>

<li class="nav-item <?php echo Index


activeSideBar('messageSkilledWorker', <?php
$_SESSION['currentPage']); ?>" data- session_start();
toggle="tooltip" data-placement="right" include_once("../function/functions.ph
title="Message Service Provider"> p");
<a class="nav-link" $err = '';
href="messageSkilledWorker.php">
<i class="fa fa-fw fa-envelope"></i> if(isset($_POST['btnLogin'])){
<span class="nav-link-text"> $con = databaseConnection();
Message Skilled Worker</span> $username =
</a> $_POST['txtUsername'];
</li> $password =
$_POST['txtPassword'];
<li class="nav-item <?php echo $strSql = "SELECT * FROM
activeSideBar('changePassword', tbl_users WHERE username = '$username'
$_SESSION['currentPage']); ?>" data- AND password = '" . md5(md5($password)) .
toggle="tooltip" data-placement="right" "' AND status='Enabled'";
title="Change Password"> $rsUsers = getRecord($con,
<a class="nav-link" $strSql);
href="changePassword.php"> if(isset($rsUsers)){
<i class="fa fa-fw fa-cog"></i> $recUsers =
<span class="nav-link-text"> fetchRecord($rsUsers);
Change Password</span> foreach ($recUsers as
</a> $key => $value) {
</li>
</ul> $_SESSION['userID'] =
<ul class="navbar-nav sidenav- $value['userID'];
toggler">
<li class="nav-item"> $_SESSION['userLastname'] =
<a class="nav-link text-center" $value['lastname'];
id="sidenavToggler">
<i class="fa fa-fw fa-angle-left"></i> $_SESSION['userFirstname'] =
</a> $value['firstname'];
</li>
</ul> $_SESSION['userType'] =
<ul class="navbar-nav ml-auto"> $value['userType'];
<li class="nav-item">
<a class="nav-link" data- $_SESSION['currentPage'] =
toggle="modal" data- 'dashboard';
target="#exampleModal">
<i class="fa fa-fw fa-sign-out"></i> header("location:dashboard.php");
} <br><small class="red">(Barangay San
} Vicente
else Administrator)</small></h2></div><hr>
$err = 'Invalid <form
Username / Password'; class="form-signin" action="index.php"
method="post">
closeDatabaseConnection($con); <h2 class="form-
} signin-heading text-center"><i class="fa fa-
?> user"></i> Please sign in</h2>
<!DOCTYPE html> <input
<html lang="en"> type="text" name="txtUsername"
<head> class="form-control"
<meta charset="utf-8"> placeholder="Username" autofocus
<meta http-equiv="X-UA-Compatible" required>
content="IE=edge"> <input
<meta name="viewport" type="password" name="txtPassword"
content="width=device-width, initial-scale=1, class="form-control"
shrink-to-fit=no"> placeholder="Password" required>
<title>Web Based Job Finder for Tarlac <div
City</title> align="center">
<!-- Bootstrap core CSS --> <a class="btn
<link btn-lg btn-warning" href="<?php base_url();
href="vendor/bootstrap/css/bootstrap.css" ?>"><i class="fa fa-arrow-left"></i>
rel="stylesheet"> Cancel</a>
<link href="vendor/font-awesome/css/font- <button
awesome.css" rel="stylesheet" class="btn btn-lg btn-primary"
type="text/css"> type="submit" name="btnLogin"><i
<!-- Custom styles for this template --> class="fa fa-sign-in"></i> Sign in</button>
<link href="css/signin.css" </div>
rel="stylesheet"> </form>
<link href="css/styles.css" <?php
rel="stylesheet"> if($err != '')
echo
<script type="text/javascript"> '<div align="center"><div class="alert alert-
window.history.forward(); danger col-md-4">' . $err . '<button
function noBack(){ type="button" class="close" data-
window.history.forward(); } dismiss="alert">&times;</button></div></di
</script> v>';
</head> ?>
<body onload="noBack();" onpageshow="if </div>
(event.persisted) noBack();" onunload=""> </div>
<div class="container"> </div>
<div class="row"> <script
<div class="col-md-12"> src="vendor/jquery/jquery.js"></script>
<script
<div src="vendor/bootstrap/js/bootstrap.js"></scr
align="center"><h2>Job Finder | Tarlac City ipt>
<script src="js/sb-admin.js"></script> )
</body> VALUES(
</html>
$assistanceFinderID,
Logout '$subject',
<?php '$message',
session_start(); '" .
session_destroy(); date("Y-m-d") . "'
session_start(); )
header("location:/admin/"); ";
?> mysqli_query($con, $strSql);
MessageAssistanceFinder $contactNo = getMobileNumber($con,
<?php 'tbl_assistancefinder','assistanceFinderID',
session_start(); $assistanceFinderID);
include_once("../function/functions.php");
testByPass($_SESSION['userID']); $sms = itexmo($contactNo, $subject . ' - ' .
$con = databaseConnection(); $message . ' (from: Barangay Admin)');
if ($sms == ""){
$_SESSION['currentPage'] = echo "iTexMo: No response from
'messageAssistanceFinder'; server!!!
$_SESSION['currentNavigation'] = ''; Please check the METHOD used
$_SESSION['subNavigation'] = TRUE; (CURL or CURL-LESS). If you are using
$_SESSION['subNavigationArrow'] = CURL then try CURL-LESS and vice versa.
TRUE; Please CONTACT US for help. ";
$err = ''; }
$subject = ''; else if ($sms == 0)
$message = ''; echo "Message Sent!";
else
if(isset($_POST['btnSend'])){ echo "Error Num ". $sms . " was
$subject = $_POST['txtSubject']; encountered!";
$message = $_POST['txtMessage'];

if(!isset($_POST['radAssistanceFinder'])) header("location:confirmRecordSave.php");
$err = '<b>- Assistance Finder</b> is }
required!'; }
else{
$assistanceFinderID = $strSql = "SELECT assistanceFinderID,
$_POST['radAssistanceFinder']; lastname, firstname FROM
$strSql = " tbl_assistancefinder"; //get the list of
INSERT INTO assitance finder and load them on the datalist
tag
tbl_barangaymessage_assistancefinder( $rsAssistanceFinderList = getRecord($con,
$strSql);
assistanceFinderID,
subject, $strSql = "
message, SELECT
dateSent tbl_assistancefinder.lastname,
tbl_assistancefinder.firstname, </div>

tbl_barangaymessage_assistancefinder.* <div class="well" style="max-


FROM tbl_assistancefinder, height: 200px;overflow: auto;">
tbl_barangaymessage_assistancefinder <div class="checkbox">
WHERE <div id="assitance-finder-
tbl_assistancefinder.assistanceFinderID = list">
tbl_barangaymessage_assistancefinder.assista <?php
nceFinderID
"; if(isset($rsAssistanceFinderList)){
$rsMessageAssistanceFinder = $recAssistanceFinderList
getRecord($con, $strSql); = fetchRecord($rsAssistanceFinderList);
include_once("header.php"); foreach
?> ($recAssistanceFinderList as $key => $value)
<div class="content-wrapper py-3" {
style="height:1200px;"> echo '<li style="list-style-
<div class="container-fluid"> type:none;"><input type="radio"
<div class="row"> name="radAssistanceFinder" value="' .
<div class="col-md-12"> $value['assistanceFinderID'] . '"> <label>' .
<h2><i class="fa fa-suitcase fa- $value['lastname'] . ', ' . $value['firstname'] .
fw"></i> Send a new Message to Assistance '</label></li>';
Finder</h2><hr> }
<?php }
if($err != '') ?>
echo '<div class="alert alert- </div>
danger">' . $err . '<button type="button" </div>
class="close" data- </div>
dismiss="alert">&times;</button></div>'; </div>
?> </div>
</div> </div>
<div class="col-md-10">
<form method="post" <div class="form-group">
action="messageAssistanceFinder.php"> <div class="row">
<div class="form-group"> <div class="col-md-4 text-
<div class="row"> right"><label for="txtSubject">Enter
<div class="col-md-4 text- Subject <span class="text-
right"><label for="txtSubject">Enter / red">*</span></label></div>
Select Assistance Finder <span class="text- <div class="col-md-8"><input
red">*</span></label></div> type="text" name="txtSubject"
<div class="col-md-8"> id="txtSubject" class="form-control"
<div class="input-group"> value="<?php echo $subject; ?>"
<span class="input-group- placeholder="Enter Subject"
addon"><i class="fa fa-search"></i></span> required></div>
<input type="text" </div>
class="form-control" id="assitance-finder- </div>
search" placeholder="Search Assistance
Finder (start typing)"> <div class="form-group">
<div class="row"> <th class="col-md-
<div class="col-md-4 text- 2">Subject</th>
right"><label for="txtMessage">Enter <th class="col-md-
Message <span class="text- 5">Message</th>
red">*</span></label></div> <th class="col-md-
<div class="col-md-8"> 1">Date</th>
<textarea name="txtMessage" <th class="col-md-
id="txtMessage" class="form-control" 2">Option</th>
placeholder="Enter Message" </tr>
required><?php echo $message; </thead>
?></textarea> <tbody>
</div> <?php
</div>
</div> if(isset($rsMessageAssistanceFinder)){
$recMessageAssistanceFinder
<div class="form-group"> = fetchRecord($rsMessageAssistanceFinder);
<div class="row"> foreach
<div class="col-md-12 text-right"> ($recMessageAssistanceFinder as $key =>
<button type="submit" $value) {
name="btnSend" class="btn btn-primary echo '<tr>';
btn-lg"> echo '<td>' .
<i class="fa fa-envelope"></i> $value['lastname'] . ', ' . $value['firstname'] .
Send '</td>';
</button> echo '<td>' .
</div> $value['subject'] . '</td>';
</div> echo '<td>' .
</div> $value['message'] . '</td>';
</form> echo '<td>' .
</div> $value['dateSent'] . '</td>';
echo '<td class="text-
<div class="col-md-12"> center">';
<div class="card mb-3"> echo '<span data-
<div class="card-header"> toggle="tooltip" data-placement="left"
<i class="fa fa-suitcase"></i> title="Delete Message"><a
Message List(s) href="messageAssistanceFinder_delete.php?
</div> x=' . $value['messageID'] . '" class="btn btn-
danger" style="width:50px;"><i class="fa
<div class="card-body"> fa-trash"></i> </a></span>';
<div class="table-responsive"> echo '</td>';
<table class="table table- echo '</tr>';
bordered" width="100%" id="dataTable" }
cellspacing="0"> }
<thead> ?>
<tr> </tbody>
<th class="col-md- </table>
2">Assitance Finder</th> </div>
</div>
</div>
</div> <?php include_once("footer.php"); ?>
</div>
</div> MessageAssistanceFinder_Delete
<!-- /.container-fluid --> <?php
</div> session_start();
<!-- /.content-wrapper --> include_once("../function/functions.php");
testByPass($_SESSION['userID']);
<!-- Scroll to Top Button --> $con = databaseConnection();
<a class="scroll-to-top rounded"
href="#page-top"> $_SESSION['currentPage'] =
<i class="fa fa-angle-up"></i> 'messageAssistanceFinder';
</a> $_SESSION['currentNavigation'] = '';
$_SESSION['subNavigation'] = TRUE;
<!-- Logout Modal --> $_SESSION['subNavigationArrow'] =
<div class="modal fade" TRUE;
id="exampleModal" tabindex="-1" $err = '';
role="dialog" aria-
labelledby="exampleModalLabel" aria- if(isset($_POST['btnRemove'])){
hidden="true"> $strSql = "DELETE FROM
<div class="modal-dialog" tbl_barangaymessage_assistancefinder
role="document"> WHERE messageID = " . $_SESSION['x'];
<div class="modal-content"> mysqli_query($con, $strSql);
<div class="modal-header">
<h5 class="modal-title" header("location:confirmRecordDeletion.php
id="exampleModalLabel">Ready to ");
Leave?</h5> }
<button type="button" class="close"
data-dismiss="modal" aria-label="Close"> if(isset($_GET['x']))
<span aria- $_SESSION['x'] = $_GET['x'];
hidden="true">&times;</span>
</button> $strSql = "SELECT
</div> tbl_assistancefinder.lastname,
<div class="modal-body"> tbl_assistancefinder.firstname,
Select "Logout" below if you are
ready to end your current session. tbl_barangaymessage_assistancefinder.*
</div> FROM tbl_assistancefinder,
<div class="modal-footer"> tbl_barangaymessage_assistancefinder
<button type="button" class="btn WHERE
btn-secondary" data- tbl_assistancefinder.assistanceFinderID =
dismiss="modal">Cancel</button> tbl_barangaymessage_assistancefinder.assista
<a class="btn btn-primary" nceFinderID
href="logout.php">Logout</a> AND
</div> tbl_barangaymessage_assistancefinder.messa
</div> geID = " . $_SESSION['x'];
</div> $rsMessageAssistanceFinder =
</div> getRecord($con, $strSql);
if(isset($rsMessageAssistanceFinder)){ <button type="submit"
$recMessageAssistanceFinder = name="btnRemove" class="btn btn-danger
fetchRecord($rsMessageAssistanceFinder); btn-lg">
foreach ($recMessageAssistanceFinder as <i class="fa fa-trash"></i>
$key => $value) { Remove
$lastname = $value['lastname']; </button>
$firstname = $value['firstname']; </div>
$subject = $value['subject']; </div>
$message = $value['message']; </div>
} </form>
} </div>
<div class="col-md-12">
include_once("header.php"); <div class="well">
?> <?php
<div class="content-wrapper py-3" echo '<h4><b>Name:</b> ' .
style="height:1200px;"> $lastname . ' ' . $firstname . '</h4>';
<div class="container-fluid"> echo '<h4><b>Subject:</b> ' .
<div class="row"> $subject . '</h4>';
<div class="col-md-12"> echo '<h4><b>Message:</b> ' .
<h2><i class="fa fa-suitcase fa- $message . '</h4>';
fw"></i> Delete the Message</h2><hr> ?>
<?php </div>
if($err != '') </div>
echo '<div class="alert alert- </div>
danger">' . $err . '<button type="button" </div>
class="close" data- <!-- /.container-fluid -->
dismiss="alert">&times;</button></div>'; </div>
?> <!-- /.content-wrapper -->
</div>
<div class="col-md-12"> <!-- Scroll to Top Button -->
<form method="post" <a class="scroll-to-top rounded"
action="messageAssistanceFinder_delete.php href="#page-top">
"> <i class="fa fa-angle-up"></i>
<div class="form-group"> </a>
<div class="row">
<div class="col-md-12 text- <!-- Logout Modal -->
center"> <div class="modal fade"
<h4>Are you sure you want to id="exampleModal" tabindex="-1"
delete this message?</h4> role="dialog" aria-
</div> labelledby="exampleModalLabel" aria-
<div class="col-md-12 text- hidden="true">
center"> <div class="modal-dialog"
<a role="document">
href="messageAssistanceFinder.php" <div class="modal-content">
class="btn btn-warning btn-lg"><i class="fa <div class="modal-header">
fa-arrow-left"></i> Cancel / Go Back</a>
<h5 class="modal-title" $err = '';
id="exampleModalLabel">Ready to $subject = '';
Leave?</h5> $message = '';
<button type="button" class="close"
data-dismiss="modal" aria-label="Close"> if(isset($_POST['btnSend'])){
<span aria- $subject = $_POST['txtSubject'];
hidden="true">&times;</span> $message = $_POST['txtMessage'];
</button>
</div> if(!isset($_POST['radSkilledWorker']))
<div class="modal-body"> $err = '<b>- Skilled Worker</b> is
Select "Logout" below if you are required!';
ready to end your current session. else{
</div> $skilledWorkerID =
<div class="modal-footer"> $_POST['radSkilledWorker'];
<button type="button" class="btn
btn-secondary" data- $strSql = "
dismiss="modal">Cancel</button> INSERT INTO
<a class="btn btn-primary"
href="logout.php">Logout</a> tbl_barangaymessage_skilledworker(
</div>
</div> skilledWorkerID,
</div> subject,
</div> message,
dateSent
<script type="text/javascript"> )
$(document).ready(function(){ VALUES(
$('[data-toggle="tooltip"]').tooltip();
}); $skilledWorkerID,
</script> '$subject',
'$message',
'" .
date("Y-m-d") . "'
<?php include_once("footer.php"); ?> )
";
MessageSkilledWorker mysqli_query($con, $strSql);
<?php $contactNo = getMobileNumber($con,
session_start(); 'tbl_skilledworker','skilledWorkerID',
include_once("../function/functions.php"); $skilledWorkerID);
testByPass($_SESSION['userID']);
$con = databaseConnection(); $sms = itexmo($contactNo, $subject . ' - ' .
$message . ' (from: Barangay Admin)');
$_SESSION['currentPage'] = if ($sms == ""){
'messageSkilledWorker'; echo "iTexMo: No response from
$_SESSION['currentNavigation'] = ''; server!!!
$_SESSION['subNavigation'] = TRUE; Please check the METHOD used
$_SESSION['subNavigationArrow'] = (CURL or CURL-LESS). If you are using
TRUE; CURL then try CURL-LESS and vice versa.
Please CONTACT US for help. "; echo '<div class="alert alert-
} danger">' . $err . '<button type="button"
else if ($sms == 0) class="close" data-
echo "Message Sent!"; dismiss="alert">&times;</button></div>';
else ?>
echo "Error Num ". $sms . " was </div>
encountered!"; <div class="col-md-10">
<form method="post"
action="messageSkilledWorker.php">
header("location:confirmRecordSave.php"); <div class="form-group">
} <div class="row">
} <div class="col-md-4 text-
right"><label for="txtSubject">Enter /
$strSql = "SELECT skilledWorkerID, Select Skilled Worker <span class="text-
lastname, firstname FROM red">*</span></label></div>
tbl_skilledworker"; //get the list of Skilled <div class="col-md-8">
Worker and load them on the datalist tag <div class="input-group">
$rsSkilledWorkerList = getRecord($con, <span class="input-group-
$strSql); addon"><i class="fa fa-search"></i></span>
<input type="text"
$strSql = " class="form-control" id="assitance-finder-
SELECT search" placeholder="Search Skilled Worker
tbl_skilledworker.lastname, (start typing)">
tbl_skilledworker.firstname, </div>

tbl_barangaymessage_skilledworker.* <div class="well" style="max-


FROM tbl_skilledworker, height: 200px;overflow: auto;">
tbl_barangaymessage_skilledworker <div class="checkbox">
WHERE <div id="assitance-finder-
tbl_skilledworker.skilledWorkerID = list">
tbl_barangaymessage_skilledworker.skilled <?php
WorkerID
"; if(isset($rsSkilledWorkerList)){
$rsMessageSkilledWorker = $recSkilledWorkerList =
getRecord($con, $strSql); fetchRecord($rsSkilledWorkerList);
include_once("header.php"); foreach
?> ($recSkilledWorkerList as $key => $value) {
<div class="content-wrapper py-3" echo '<li style="list-style-
style="height:1200px;"> type:none;"><input type="radio"
<div class="container-fluid"> name="radSkilledWorker" value="' .
<div class="row"> $value['skilledWorkerID'] . '"> <label>' .
<div class="col-md-12"> $value['lastname'] . ', ' . $value['firstname'] .
<h2><i class="fa fa-envelope fa- '</label></li>';
fw"></i> Send a new message to a Skilled }
Worker</h2><hr> }
<?php ?>
if($err != '') </div>
</div> </div>
</div> </div>
</div> </form>
</div> </div>
</div>
<div class="col-md-12">
<div class="form-group"> <div class="card mb-3">
<div class="row"> <div class="card-header">
<div class="col-md-4 text- <i class="fa fa-envelope"></i>
right"><label for="txtSubject">Enter Message List(s)
Subject <span class="text- </div>
red">*</span></label></div>
<div class="col-md-8"><input <div class="card-body">
type="text" name="txtSubject" <div class="table-responsive">
id="txtSubject" class="form-control" <table class="table table-
value="<?php echo $subject; ?>" bordered" width="100%" id="dataTable"
placeholder="Enter Subject" cellspacing="0">
required></div> <thead>
</div> <tr>
</div> <th class="col-md-2">Skilled
Worker</th>
<div class="form-group"> <th class="col-md-
<div class="row"> 2">Subject</th>
<div class="col-md-4 text- <th class="col-md-
right"><label for="txtMessage">Enter 5">Message</th>
Message <span class="text- <th class="col-md-
red">*</span></label></div> 1">Date</th>
<div class="col-md-8"> <th class="col-md-
<textarea name="txtMessage" 2">Option</th>
id="txtMessage" class="form-control" </tr>
placeholder="Enter Message" </thead>
required><?php echo $message; <tbody>
?></textarea> <?php
</div>
</div> if(isset($rsMessageSkilledWorker)){
</div> $recMessageSkilledWorker =
fetchRecord($rsMessageSkilledWorker);
<div class="form-group"> foreach
<div class="row"> ($recMessageSkilledWorker as $key =>
<div class="col-md-12 text-right"> $value) {
<button type="submit" echo '<tr>';
name="btnSend" class="btn btn-primary echo '<td>' .
btn-lg"> $value['lastname'] . ', ' . $value['firstname'] .
<i class="fa fa-envelope"></i> '</td>';
Send echo '<td>' .
</button> $value['subject'] . '</td>';
</div>
echo '<td>' . <h5 class="modal-title"
$value['message'] . '</td>'; id="exampleModalLabel">Ready to
echo '<td>' . Leave?</h5>
$value['dateSent'] . '</td>'; <button type="button" class="close"
echo '<td class="text- data-dismiss="modal" aria-label="Close">
center">'; <span aria-
echo '<span data- hidden="true">&times;</span>
toggle="tooltip" data-placement="left" </button>
title="Delete Message"><a </div>
href="messageSkilledWorker_delete.php?x=' <div class="modal-body">
. $value['messageID'] . '" class="btn btn- Select "Logout" below if you are
danger" style="width:50px;"><i class="fa ready to end your current session.
fa-trash"></i> </a></span>'; </div>
echo '</td>'; <div class="modal-footer">
echo '</tr>'; <button type="button" class="btn
} btn-secondary" data-
} dismiss="modal">Cancel</button>
?> <a class="btn btn-primary"
</tbody> href="logout.php">Logout</a>
</table> </div>
</div> </div>
</div> </div>
</div> </div>
</div>
</div> <?php include_once("footer.php"); ?>
</div>
<!-- /.container-fluid --> MessageSkilledWorker_Delete
</div> <?php
<!-- /.content-wrapper --> session_start();
include_once("../function/functions.php");
<!-- Scroll to Top Button --> testByPass($_SESSION['userID']);
<a class="scroll-to-top rounded" $con = databaseConnection();
href="#page-top">
<i class="fa fa-angle-up"></i> $_SESSION['currentPage'] =
</a> 'messageSkilledWorker';
$_SESSION['currentNavigation'] = '';
<!-- Logout Modal --> $_SESSION['subNavigation'] = TRUE;
<div class="modal fade" $_SESSION['subNavigationArrow'] =
id="exampleModal" tabindex="-1" TRUE;
role="dialog" aria- $err = '';
labelledby="exampleModalLabel" aria-
hidden="true"> if(isset($_POST['btnRemove'])){
<div class="modal-dialog" $strSql = "DELETE FROM
role="document"> tbl_barangaymessage_skilledworker
<div class="modal-content"> WHERE messageID = " . $_SESSION['x'];
<div class="modal-header"> mysqli_query($con, $strSql);
echo '<div class="alert alert-
header("location:confirmRecordDeletion.php danger">' . $err . '<button type="button"
"); class="close" data-
} dismiss="alert">&times;</button></div>';
?>
if(isset($_GET['x'])) </div>
$_SESSION['x'] = $_GET['x']; <div class="col-md-12">
<form method="post"
$strSql = "SELECT action="messageSkilledWorker_delete.php">
tbl_skilledworker.lastname, <div class="form-group">
tbl_skilledworker.firstname, <div class="row">
<div class="col-md-12 text-
tbl_barangaymessage_skilledworker.* center">
FROM tbl_skilledworker, <h4>Are you sure you want to
tbl_barangaymessage_skilledworker delete this message?</h4>
WHERE </div>
tbl_skilledworker.skilledWorkerID = <div class="col-md-12 text-
tbl_barangaymessage_skilledworker.skilled center">
WorkerID <a
AND href="messageSkilledWorker.php"
tbl_barangaymessage_skilledworker.message class="btn btn-warning btn-lg"><i class="fa
ID = " . $_SESSION['x']; fa-arrow-left"></i> Cancel / Go Back</a>
$rsMessageAssistanceFinder = <button type="submit"
getRecord($con, $strSql); name="btnRemove" class="btn btn-danger
if(isset($rsMessageAssistanceFinder)){ btn-lg">
$recMessageAssistanceFinder = <i class="fa fa-trash"></i>
fetchRecord($rsMessageAssistanceFinder); Remove
foreach ($recMessageAssistanceFinder as </button>
$key => $value) { </div>
$lastname = $value['lastname']; </div>
$firstname = $value['firstname']; </div>
$subject = $value['subject']; </form>
$message = $value['message']; </div>
} <div class="col-md-12">
} <div class="well">
<?php
include_once("header.php"); echo '<h4><b>Name:</b> ' .
?> $lastname . ' ' . $firstname . '</h4>';
<div class="content-wrapper py-3" echo '<h4><b>Subject:</b> ' .
style="height:1200px;"> $subject . '</h4>';
<div class="container-fluid"> echo '<h4><b>Message:</b> ' .
<div class="row"> $message . '</h4>';
<div class="col-md-12"> ?>
<h2><i class="fa fa-envelope fa- </div>
fw"></i> Delete the Message</h2><hr> </div>
<?php </div>
if($err != '') </div>
<!-- /.container-fluid --> });
</div> </script>
<!-- /.content-wrapper -->

<!-- Scroll to Top Button -->


<a class="scroll-to-top rounded" <?php include_once("footer.php"); ?>
href="#page-top">
<i class="fa fa-angle-up"></i> Registrationapproval
</a> <?php
session_start();
<!-- Logout Modal --> include_once("../function/functions.php");
<div class="modal fade" testByPass($_SESSION['userID']);
id="exampleModal" tabindex="-1" $con = databaseConnection();
role="dialog" aria-
labelledby="exampleModalLabel" aria- $_SESSION['currentPage'] =
hidden="true"> 'registrationApproval';
<div class="modal-dialog" $_SESSION['currentNavigation'] = '';
role="document"> $_SESSION['subNavigation'] = TRUE;
<div class="modal-content"> $_SESSION['subNavigationArrow'] =
<div class="modal-header"> TRUE;
<h5 class="modal-title" $err = '';
id="exampleModalLabel">Ready to
Leave?</h5> $strSql = "SELECT * FROM
<button type="button" class="close" tbl_assistancefinder WHERE
data-dismiss="modal" aria-label="Close"> registrationStatus = 'PENDING'";
<span aria- $rsAssistanceFinder = getRecord($con,
hidden="true">&times;</span> $strSql);
</button> include_once("header.php");
</div> ?>
<div class="modal-body"> <div class="content-wrapper py-3"
Select "Logout" below if you are style="height:1200px;">
ready to end your current session. <div class="container-fluid">
</div> <div class="row">
<div class="modal-footer"> <div class="col-md-12">
<button type="button" class="btn <div class="card mb-3">
btn-secondary" data- <div class="card-header">
dismiss="modal">Cancel</button> <i class="fa fa-suitcase"></i>
<a class="btn btn-primary" Assistance Finder Lists
href="logout.php">Logout</a> </div>
</div>
</div> <div class="card-body">
</div> <div class="table-responsive">
</div> <table class="table table-
bordered" width="100%" id="dataTable"
<script type="text/javascript"> cellspacing="0">
$(document).ready(function(){ <thead>
$('[data-toggle="tooltip"]').tooltip(); <tr>
<th class="col-md- echo '<span data-
3">Name</th> toggle="tooltip" data-placement="left"
<th class="col-md-1">Sex</th> title="Delete Request"><a
<th class="col-md- href="registrationApproval_delete.php?x=' .
3">Address</th> $value['assistanceFinderID'] . '" class="btn
<th class="col-md-2">Contact btn-danger" style="width:40px;"><i
No</th> class="fa fa-trash"></i> </a></span>';
<th class="col-md- echo '</td>';
3">Options</th> echo '</tr>';
</tr> }
</thead> }
<tbody> ?>
<?php </tbody>
if(isset($rsAssistanceFinder)){ </table>
$recAssistanceFinder = </div>
fetchRecord($rsAssistanceFinder); </div>
foreach ($recAssistanceFinder </div>
as $key => $value) { </div>
echo '<tr>'; </div>
echo '<td>' . </div>
$value['lastname'] . ', ' . $value['firstname'] . <!-- /.container-fluid -->
'</td>'; </div>
echo '<td>' . $value['sex'] . <!-- /.content-wrapper -->
'</td>';
echo '<td>' . <!-- Scroll to Top Button -->
$value['address'] . '</td>'; <a class="scroll-to-top rounded"
echo '<td>' . href="#page-top">
$value['contactNo'] . '</td>'; <i class="fa fa-angle-up"></i>
echo '<td class="text- </a>
center">';
echo '<span data- <!-- Logout Modal -->
toggle="tooltip" data-placement="left" <div class="modal fade"
title="Approve Registration"><a id="exampleModal" tabindex="-1"
href="registrationApproval_approve.php?x= role="dialog" aria-
' . $value['assistanceFinderID'] . '" labelledby="exampleModalLabel" aria-
class="btn btn-primary" hidden="true">
style="width:40px;"><i class="fa fa-thumbs- <div class="modal-dialog"
up"></i> </a></span> '; role="document">
echo '<span data- <div class="modal-content">
toggle="tooltip" data-placement="left" <div class="modal-header">
title="View Barangay Clearance"><a <h5 class="modal-title"
href="../uploads/assistance_finder/' . id="exampleModalLabel">Ready to
$value['barangayClearance'] . '" class="btn Leave?</h5>
btn-success" style="width:40px;" <button type="button" class="close"
target="_blank"><i class="fa fa- data-dismiss="modal" aria-label="Close">
download"></i> </a></span> '; <span aria-
hidden="true">&times;</span>
</button> WHERE assistanceFinderID = " .
</div> $_SESSION['x'];
<div class="modal-body"> mysqli_query($con, $strSql);
Select "Logout" below if you are
ready to end your current session. //PHP MAIL FUNCTION HERE
</div> $to = $_POST['hdnEMail'];
<div class="modal-footer"> $subject = 'Web Based Job Finder for
<button type="button" class="btn Tarlac City Registration Approval';
btn-secondary" data- $message = 'Your Registration is now
dismiss="modal">Cancel</button> approved, you may now start using the
<a class="btn btn-primary" system by logging in your Email Address and
href="logout.php">Logout</a> password, thank you!';
</div> mail($to, $subject, $message);
</div>
</div>
</div> header("location:confirmRegistrationApprov
al.php");
<script type="text/javascript"> }
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip(); if(isset($_GET['x']))
}); $_SESSION['x'] = $_GET['x'];
</script>
$strSql = "SELECT * FROM
tbl_assistancefinder WHERE
assistanceFinderID = " . $_SESSION['x'];
<?php include_once("footer.php"); ?> $rsAssistanceFinder = getRecord($con,
$strSql);
if(isset($rsAssistanceFinder)){
Registrationaproval_aprove $recAssistanceFinder =
<?php fetchRecord($rsAssistanceFinder);
session_start(); foreach ($recAssistanceFinder as $key =>
include_once("../function/functions.php"); $value) {
testByPass($_SESSION['userID']); $lastname = $value['lastname'];
$con = databaseConnection(); $firstname = $value['firstname'];
$emailAddress = $value['emailAddress'];
$_SESSION['currentPage'] = }
'registrationApproval'; }
$_SESSION['currentNavigation'] = ''; include_once("header.php");
$_SESSION['subNavigation'] = TRUE; ?>
$_SESSION['subNavigationArrow'] = <div class="content-wrapper py-3"
TRUE; style="height:1200px;">
$err = ''; <div class="container-fluid">
<div class="row">
if(isset($_POST['btnApprove'])){ <div class="col-md-12">
$strSql = "UPDATE tbl_assistancefinder <h2><i class="fa fa-suitcase fa-
SET registrationStatus = 'APPROVED' fw"></i> Assistance Finder Registration
Approval</h2><hr>
</div> <a class="scroll-to-top rounded"
<div class="col-md-12"> href="#page-top">
<form method="post" <i class="fa fa-angle-up"></i>
action="registrationApproval_approve.php" </a>
>
<div class="form-group"> <!-- Logout Modal -->
<div class="row"> <div class="modal fade"
<div class="col-md-12 text- id="exampleModal" tabindex="-1"
center"> role="dialog" aria-
<h4>Are you sure you want to labelledby="exampleModalLabel" aria-
approve this registration?</h4> hidden="true">
<input type="hidden" <div class="modal-dialog"
name="hdnEMail" value="<?php echo role="document">
$emailAddress; ?>"> <div class="modal-content">
</div> <div class="modal-header">
<div class="col-md-12 text- <h5 class="modal-title"
center"> id="exampleModalLabel">Ready to
<a Leave?</h5>
href="registrationApproval.php" class="btn <button type="button" class="close"
btn-warning btn-lg"><i class="fa fa-arrow- data-dismiss="modal" aria-label="Close">
left"></i> Cancel / Go Back</a> <span aria-
<button type="submit" hidden="true">&times;</span>
name="btnApprove" class="btn btn-info </button>
btn-lg"> </div>
<i class="fa fa-thumbs-up"></i> <div class="modal-body">
Approve Registration Select "Logout" below if you are
</button> ready to end your current session.
</div> </div>
</div> <div class="modal-footer">
</div> <button type="button" class="btn
</form> btn-secondary" data-
</div> dismiss="modal">Cancel</button>
<div class="col-md-12"> <a class="btn btn-primary"
<div class="well"> href="logout.php">Logout</a>
<?php </div>
echo '<h4><b>Name:</b> ' . </div>
$lastname . ' ' . $firstname . '</h4>'; </div>
?> </div>
</div>
</div> <script type="text/javascript">
</div> $(document).ready(function(){
</div> $('[data-toggle="tooltip"]').tooltip();
<!-- /.container-fluid --> });
</div> </script>
<!-- /.content-wrapper -->
<?php include_once("footer.php"); ?>
<!-- Scroll to Top Button -->
registrationApproval_delete - Copy <div class="container-fluid">
<?php <div class="row">
session_start(); <div class="col-md-12">
include_once("../function/functions.php"); <h2><i class="fa fa-suitcase fa-
testByPass($_SESSION['userID']); fw"></i> Delete the Registration</h2><hr>
$con = databaseConnection(); <?php
if($err != '')
$_SESSION['currentPage'] = echo '<div class="alert alert-
'registrationApproval'; danger">' . $err . '<button type="button"
$_SESSION['currentNavigation'] = ''; class="close" data-
$_SESSION['subNavigation'] = TRUE; dismiss="alert">&times;</button></div>';
$_SESSION['subNavigationArrow'] = ?>
TRUE; </div>
$err = ''; <div class="col-md-12">
<form method="post"
if(isset($_POST['btnRemove'])){ action="registrationApproval_delete.php">
$strSql = "DELETE FROM <div class="form-group">
tbl_assistancefinder WHERE <div class="row">
assistanceFinderID = " . $_SESSION['x']; <div class="col-md-12 text-
mysqli_query($con, $strSql); center">
<h4>Are you sure you want to
header("location:confirmRecordDeletion.php remove this registration?</h4>
"); </div>
} <div class="col-md-12 text-
center">
if(isset($_GET['x'])) <a
$_SESSION['x'] = $_GET['x']; href="registrationApproval.php" class="btn
btn-warning btn-lg"><i class="fa fa-arrow-
$strSql = "SELECT * FROM left"></i> Cancel / Go Back</a>
tbl_assistancefinder WHERE <button type="submit"
assistanceFinderID = " . $_SESSION['x']; name="btnRemove" class="btn btn-danger
$rsAssistanceFinder = getRecord($con, btn-lg">
$strSql); <i class="fa fa-trash"></i>
if(isset($rsAssistanceFinder)){ Remove
$recAssistanceFinder = </button>
fetchRecord($rsAssistanceFinder); </div>
foreach ($recAssistanceFinder as $key => </div>
$value) { </div>
$lastname = $value['lastname']; </form>
$firstname = $value['firstname']; </div>
} <div class="col-md-12">
} <div class="well">
<?php
include_once("header.php"); echo '<h4><b>Name:</b> ' .
?> $lastname . ' ' . $firstname . '</h4>';
<div class="content-wrapper py-3" ?>
style="height:1200px;"> </div>
</div> <script type="text/javascript">
</div> $(document).ready(function(){
</div> $('[data-toggle="tooltip"]').tooltip();
<!-- /.container-fluid --> });
</div> </script>
<!-- /.content-wrapper -->

<!-- Scroll to Top Button -->


<a class="scroll-to-top rounded" <?php include_once("footer.php"); ?>
href="#page-top">
<i class="fa fa-angle-up"></i> registrationApproval_delete
</a> <?php
session_start();
<!-- Logout Modal --> include_once("../function/functions.php");
<div class="modal fade" testByPass($_SESSION['userID']);
id="exampleModal" tabindex="-1" $con = databaseConnection();
role="dialog" aria-
labelledby="exampleModalLabel" aria- $_SESSION['currentPage'] =
hidden="true"> 'registrationApproval';
<div class="modal-dialog" $_SESSION['currentNavigation'] = '';
role="document"> $_SESSION['subNavigation'] = TRUE;
<div class="modal-content"> $_SESSION['subNavigationArrow'] =
<div class="modal-header"> TRUE;
<h5 class="modal-title" $err = '';
id="exampleModalLabel">Ready to
Leave?</h5> if(isset($_POST['btnRemove'])){
<button type="button" class="close" $strSql = "DELETE FROM
data-dismiss="modal" aria-label="Close"> tbl_assistancefinder WHERE
<span aria- assistanceFinderID = " . $_SESSION['x'];
hidden="true">&times;</span> mysqli_query($con, $strSql);
</button>
</div> header("location:confirmRecordDeletion.php
<div class="modal-body"> ");
Select "Logout" below if you are }
ready to end your current session.
</div> if(isset($_GET['x']))
<div class="modal-footer"> $_SESSION['x'] = $_GET['x'];
<button type="button" class="btn
btn-secondary" data- $strSql = "SELECT * FROM
dismiss="modal">Cancel</button> tbl_assistancefinder WHERE
<a class="btn btn-primary" assistanceFinderID = " . $_SESSION['x'];
href="logout.php">Logout</a> $rsAssistanceFinder = getRecord($con,
</div> $strSql);
</div> if(isset($rsAssistanceFinder)){
</div> $recAssistanceFinder =
</div> fetchRecord($rsAssistanceFinder);
foreach ($recAssistanceFinder as $key => </div>
$value) { </div>
$lastname = $value['lastname']; </form>
$firstname = $value['firstname']; </div>
} <div class="col-md-12">
} <div class="well">
<?php
include_once("header.php"); echo '<h4><b>Name:</b> ' .
?> $lastname . ' ' . $firstname . '</h4>';
<div class="content-wrapper py-3" ?>
style="height:1200px;"> </div>
<div class="container-fluid"> </div>
<div class="row"> </div>
<div class="col-md-12"> </div>
<h2><i class="fa fa-suitcase fa- <!-- /.container-fluid -->
fw"></i> Delete the Registration</h2><hr> </div>
<?php <!-- /.content-wrapper -->
if($err != '')
echo '<div class="alert alert- <!-- Scroll to Top Button -->
danger">' . $err . '<button type="button" <a class="scroll-to-top rounded"
class="close" data- href="#page-top">
dismiss="alert">&times;</button></div>'; <i class="fa fa-angle-up"></i>
?> </a>
</div>
<div class="col-md-12"> <!-- Logout Modal -->
<form method="post" <div class="modal fade"
action="registrationApproval_delete.php"> id="exampleModal" tabindex="-1"
<div class="form-group"> role="dialog" aria-
<div class="row"> labelledby="exampleModalLabel" aria-
<div class="col-md-12 text- hidden="true">
center"> <div class="modal-dialog"
<h4>Are you sure you want to role="document">
remove this registration?</h4> <div class="modal-content">
</div> <div class="modal-header">
<div class="col-md-12 text- <h5 class="modal-title"
center"> id="exampleModalLabel">Ready to
<a Leave?</h5>
href="registrationApproval.php" class="btn <button type="button" class="close"
btn-warning btn-lg"><i class="fa fa-arrow- data-dismiss="modal" aria-label="Close">
left"></i> Cancel / Go Back</a> <span aria-
<button type="submit" hidden="true">&times;</span>
name="btnRemove" class="btn btn-danger </button>
btn-lg"> </div>
<i class="fa fa-trash"></i> <div class="modal-body">
Remove Select "Logout" below if you are
</button> ready to end your current session.
</div> </div>
<div class="modal-footer"> $strSql = "SELECT * FROM tbl_skilllist";
<button type="button" class="btn $rsSkillList = getRecord($con, $strSql);
btn-secondary" data- include_once("header.php");
dismiss="modal">Cancel</button> ?>
<a class="btn btn-primary" <div class="content-wrapper py-3"
href="logout.php">Logout</a> style="height:1200px;">
</div> <div class="container-fluid">
</div> <div class="row">
</div> <div class="col-md-12">
</div> <h2><i class="fa fa-list fa-fw"></i>
Add a new Skill</h2><hr>
<script type="text/javascript"> <?php
$(document).ready(function(){ if($err != '')
$('[data-toggle="tooltip"]').tooltip(); echo '<div class="alert alert-
}); danger">' . $err . '<button type="button"
</script> class="close" data-
dismiss="alert">&times;</button></div>';
?>
</div>
<?php include_once("footer.php"); ?> <div class="col-md-10">
<form method="post"
skillList action="skillList.php">
<?php <div class="form-group">
session_start(); <div class="row">
include_once("../function/functions.php"); <div class="col-md-3 text-
testByPass($_SESSION['userID']); right"><label for="txtSkill">Enter a Skill
$con = databaseConnection(); <span class="text-
red">*</span></label></div>
$_SESSION['currentPage'] = 'skillList'; <div class="col-md-9"><input
$_SESSION['currentNavigation'] = 'file type="text" name="txtSkill" id="txtSkill"
maintenance'; class="form-control" value="<?php echo
$_SESSION['subNavigation'] = TRUE; $skill; ?>" placeholder="Enter a Skill"
$_SESSION['subNavigationArrow'] = required></div>
TRUE; </div>
$err = ''; </div>
$skill = '';
<div class="form-group">
if(isset($_POST['btnSave'])){ <div class="row">
$skill = $_POST['txtSkill']; <div class="col-md-12 text-right">
<button type="submit"
$strSql = "INSERT INTO tbl_skilllist(skill) name="btnSave" class="btn btn-primary
VALUES('$skill')"; btn-lg">
mysqli_query($con, $strSql); <i class="fa fa-save"></i> Save
</button>
header("location:confirmRecordSave.php"); </div>
} </div>
</div>
</form> danger" style="width:50px;"><i class="fa
</div> fa-trash"></i> </a></span>';
echo '</td>';
<div class="col-md-12"> echo '</tr>';
<div class="card mb-3"> }
<div class="card-header"> }
<i class="fa fa-list"></i> ?>
Skill Lists </tbody>
</div> </table>
</div>
<div class="card-body"> </div>
<div class="table-responsive"> </div>
<table class="table table- </div>
bordered" width="100%" id="dataTable" </div>
cellspacing="0"> </div>
<thead> <!-- /.container-fluid -->
<tr> </div>
<th class="col-md- <!-- /.content-wrapper -->
8">Skill</th>
<th class="col-md- <!-- Scroll to Top Button -->
4">Options</th> <a class="scroll-to-top rounded"
</tr> href="#page-top">
</thead> <i class="fa fa-angle-up"></i>
<tbody> </a>
<?php
if(isset($rsSkillList)){ <!-- Logout Modal -->
$recSkillList = <div class="modal fade"
fetchRecord($rsSkillList); id="exampleModal" tabindex="-1"
foreach ($recSkillList as $key role="dialog" aria-
=> $value) { labelledby="exampleModalLabel" aria-
echo '<tr>'; hidden="true">
echo '<td>' . $value['skill'] . <div class="modal-dialog"
'</td>'; role="document">
echo '<td class="text- <div class="modal-content">
center">'; <div class="modal-header">
echo '<span data- <h5 class="modal-title"
toggle="tooltip" data-placement="left" id="exampleModalLabel">Ready to
title="Update Skill"><a Leave?</h5>
href="skillList_edit.php?x=' . <button type="button" class="close"
$value['skillListID'] . '" class="btn btn- data-dismiss="modal" aria-label="Close">
success" style="width:50px;"><i class="fa <span aria-
fa-edit"></i> </a></span> '; hidden="true">&times;</span>
echo '<span data- </button>
toggle="tooltip" data-placement="left" </div>
title="Remove Skill"><a <div class="modal-body">
href="skillList_delete.php?x=' . Select "Logout" below if you are
$value['skillListID'] . '" class="btn btn- ready to end your current session.
</div> $_SESSION['x'] = $_GET['x'];
<div class="modal-footer">
<button type="button" class="btn $strSql = "SELECT * FROM tbl_skilllist
btn-secondary" data- WHERE skillListID = " . $_SESSION['x'];
dismiss="modal">Cancel</button> $rsSkillList = getRecord($con, $strSql);
<a class="btn btn-primary" if(isset($rsSkillList)){
href="logout.php">Logout</a> $recSkillList = fetchRecord($rsSkillList);
</div> foreach ($recSkillList as $key => $value) {
</div> $skill = $value['skill'];
</div> }
</div> }

<script type="text/javascript"> include_once("header.php");


$(document).ready(function(){ ?>
$('[data-toggle="tooltip"]').tooltip(); <div class="content-wrapper py-3"
}); style="height:1200px;">
</script> <div class="container-fluid">
<div class="row">
<div class="col-md-12">
<h2><i class="fa fa-list fa-fw"></i>
<?php include_once("footer.php"); ?> Delete a Skill</h2><hr>
<?php
skillList_delete if($err != '')
<?php echo '<div class="alert alert-
session_start(); danger">' . $err . '<button type="button"
include_once("../function/functions.php"); class="close" data-
testByPass($_SESSION['userID']); dismiss="alert">&times;</button></div>';
$con = databaseConnection(); ?>
</div>
$_SESSION['currentPage'] = 'skillList'; <div class="col-md-12">
$_SESSION['currentNavigation'] = 'file <form method="post"
maintenance'; action="skillList_delete.php">
$_SESSION['subNavigation'] = TRUE; <div class="form-group">
$_SESSION['subNavigationArrow'] = <div class="row">
TRUE; <div class="col-md-12 text-
$err = ''; center">
<h4>Are you sure you want to
if(isset($_POST['btnRemove'])){ remove this skill?</h4>
$strSql = "DELETE FROM tbl_skilllist </div>
WHERE skillListID = " . $_SESSION['x']; <div class="col-md-12 text-
mysqli_query($con, $strSql); center">
<a href="skillList.php"
header("location:confirmRecordDeletion.php class="btn btn-warning btn-lg"><i class="fa
"); fa-arrow-left"></i> Cancel / Go Back</a>
} <button type="submit"
name="btnRemove" class="btn btn-danger
if(isset($_GET['x'])) btn-lg">
<i class="fa fa-trash"></i> <div class="modal-body">
Remove Select "Logout" below if you are
</button> ready to end your current session.
</div> </div>
</div> <div class="modal-footer">
</div> <button type="button" class="btn
</form> btn-secondary" data-
</div> dismiss="modal">Cancel</button>
<div class="col-md-12"> <a class="btn btn-primary"
<div class="well"> href="logout.php">Logout</a>
<?php </div>
echo '<h4><b>Skill:</b> ' . $skill . </div>
'</h4>'; </div>
?> </div>
</div>
</div> <script type="text/javascript">
</div> $(document).ready(function(){
</div> $('[data-toggle="tooltip"]').tooltip();
<!-- /.container-fluid --> });
</div> </script>
<!-- /.content-wrapper -->

<!-- Scroll to Top Button -->


<a class="scroll-to-top rounded" <?php include_once("footer.php"); ?>
href="#page-top">
<i class="fa fa-angle-up"></i> skillList_edit
</a> <?php
session_start();
<!-- Logout Modal --> include_once("../function/functions.php");
<div class="modal fade" testByPass($_SESSION['userID']);
id="exampleModal" tabindex="-1" $con = databaseConnection();
role="dialog" aria-
labelledby="exampleModalLabel" aria- $_SESSION['currentPage'] = 'skillList';
hidden="true"> $_SESSION['currentNavigation'] = 'file
<div class="modal-dialog" maintenance';
role="document"> $_SESSION['subNavigation'] = TRUE;
<div class="modal-content"> $_SESSION['subNavigationArrow'] =
<div class="modal-header"> TRUE;
<h5 class="modal-title" $err = '';
id="exampleModalLabel">Ready to
Leave?</h5> if(isset($_POST['btnSave'])){
<button type="button" class="close" $skill = $_POST['txtSkill'];
data-dismiss="modal" aria-label="Close">
<span aria- $strSql = "UPDATE tbl_skilllist SET skill
hidden="true">&times;</span> = '$skill' WHERE skillListID = " .
</button> $_SESSION['x'];
</div> mysqli_query($con, $strSql);
$skill; ?>" placeholder="Enter a Skill"
header("location:confirmRecordSave.php"); required></div>
} </div>
</div>
if(isset($_GET['x']))
$_SESSION['x'] = $_GET['x']; <div class="form-group">
<div class="row">
$strSql = "SELECT * FROM tbl_skilllist <div class="col-md-12 text-right">
WHERE skillListID = " . $_SESSION['x']; <a href="skillList.php"
$rsSkillList = getRecord($con, $strSql); class="btn btn-warning btn-lg"><i class="fa
if(isset($rsSkillList)){ fa-arrow-left"></i> Cancel / Go Back</a>
$recSkillList = fetchRecord($rsSkillList); <button type="submit"
foreach ($recSkillList as $key => $value) { name="btnSave" class="btn btn-primary
$skill = $value['skill']; btn-lg">
} <i class="fa fa-save"></i> Save
} </button>
</div>
include_once("header.php"); </div>
?> </div>
<div class="content-wrapper py-3" </form>
style="height:1200px;"> </div>
<div class="container-fluid"> </div>
<div class="row"> </div>
<div class="col-md-12"> <!-- /.container-fluid -->
<h2><i class="fa fa-list fa-fw"></i> </div>
Update a Skill</h2><hr> <!-- /.content-wrapper -->
<?php
if($err != '') <!-- Scroll to Top Button -->
echo '<div class="alert alert- <a class="scroll-to-top rounded"
danger">' . $err . '<button type="button" href="#page-top">
class="close" data- <i class="fa fa-angle-up"></i>
dismiss="alert">&times;</button></div>'; </a>
?>
</div> <!-- Logout Modal -->
<div class="col-md-10"> <div class="modal fade"
<form method="post" id="exampleModal" tabindex="-1"
action="skillList_edit.php"> role="dialog" aria-
<div class="form-group"> labelledby="exampleModalLabel" aria-
<div class="row"> hidden="true">
<div class="col-md-3 text- <div class="modal-dialog"
right"><label for="txtSkill">Enter a Skill role="document">
<span class="text- <div class="modal-content">
red">*</span></label></div> <div class="modal-header">
<div class="col-md-9"><input <h5 class="modal-title"
type="text" name="txtSkill" id="txtSkill" id="exampleModalLabel">Ready to
class="form-control" value="<?php echo Leave?</h5>
<button type="button" class="close" $_SESSION['subNavigation'] = TRUE;
data-dismiss="modal" aria-label="Close"> $_SESSION['subNavigationArrow'] =
<span aria- TRUE;
hidden="true">&times;</span> $err = '';
</button> $lastname = '';
</div> $firstname = '';
<div class="modal-body"> $username = '';
Select "Logout" below if you are $userType = '';
ready to end your current session. $status = 'active';
</div> $arrStatus = array('Enabled', 'Disabled');
<div class="modal-footer">
<button type="button" class="btn if(isset($_POST['btnSave'])){
btn-secondary" data- $lastname = $_POST['txtLastname'];
dismiss="modal">Cancel</button> $firstname = $_POST['txtFirstname'];
<a class="btn btn-primary" $username = $_POST['txtUsername'];
href="logout.php">Logout</a> $userType = $_POST['cboUserType'];
</div> $status = $_POST['cboUserStatus'];
</div>
</div> $strSql = "SELECT * FROM tbl_users
</div> WHERE username = '$username'"; //check
for duplicate PAGE NAME
<script type="text/javascript"> if(countRecord($strSql) > 0)
$(document).ready(function(){ $err = '<b>- Username</b> is already
$('[data-toggle="tooltip"]').tooltip(); existing!';
}); else{
</script> $strSql = "INSERT INTO
tbl_users(lastname, firstname, username,
password, userType, status)
VALUES('$lastname', '$firstname',
<?php include_once("footer.php"); ?> '$username','" . md5(md5('Pass1234')) . "',
'$userType', '$status')";
Users mysqli_query($con, $strSql);
<?php
session_start(); header("location:confirmRecordSave.php");
include_once("../function/functions.php"); }
testByPass($_SESSION['userID']); }

if($_SESSION['userType'] != $strSql = "SELECT * FROM tbl_users";


'Administrator') $rsUsers = getRecord($con, $strSql);
header("location:" .
$_SESSION['currentPage'] . ".php"); include_once("header.php");
?>
$con = databaseConnection(); <div class="content-wrapper py-3"
style="height:1200px;">
$_SESSION['currentPage'] = 'users'; <div class="container-fluid">
$_SESSION['currentNavigation'] = 'file <div class="row">
maintenance'; <div class="col-md-12">
<h2><i class="fa fa-user fa-fw"></i> <span class="text-
Add a new User</h2><hr> red">*</span></label></div>
<?php <div class="col-md-9"><input
if($err != '') type="text" name="txtUsername"
echo '<div class="alert alert- id="txtUsername" class="form-control"
danger">' . $err . '<button type="button" value="<?php echo $username; ?>"
class="close" data- required></div>
dismiss="alert">&times;</button></div>'; </div>
?> </div>
</div>
<div class="col-md-10"> <div class="form-group">
<form method="post" <div class="row">
action="users.php"> <div class="col-md-3 text-
<div class="form-group"> right"><label for="cboUserType">User
<div class="row"> Type <span class="text-
<div class="col-md-3 text- red">*</span></label></div>
right"><label for="txtLastname">Lastname <div class="col-md-9">
<span class="text- <select name="cboUserType"
red">*</span></label></div> class="form-control">
<div class="col-md-9"><input <option
type="text" name="txtLastname" value="Administrator">Administrator</opti
id="txtLastname" class="form-control" on>
value="<?php echo $lastname; ?>" <option value="Standard
pattern="^\D*$" title="Number is not User" selected>Standard User</option>
allowed!" required></div> </select>
</div> </div>
</div> </div>
</div>
<div class="form-group">
<div class="row"> <div class="form-group">
<div class="col-md-3 text- <div class="row">
right"><label for="txtFirstname">Firstname <div class="col-md-3 text-
<span class="text- right"><label for="cboUserStatus">User
red">*</span></label></div> Access <span class="text-
<div class="col-md-9"><input red">*</span></label></div>
type="text" name="txtFirstname" <div class="col-md-9">
id="txtFirstname" class="form-control" <select name="cboUserStatus"
value="<?php echo $firstname; ?>" class="form-control">
pattern="^\D*$" title="Number is not <?php
allowed!" required></div> foreach ($arrStatus as $key
</div> => $value) {
</div> if($value == $status)
echo '<option value="' .
<div class="form-group"> $value . '" selected>' . $value . '</option>';
<div class="row"> else
<div class="col-md-3 text- echo '<option value="' .
right"><label for="txtUsername">Username $value . '">' . $value . '</option>';
} <th class="col-md-
?> 4">Options</th>
</select> </tr>
</div> </thead>
</div> <tbody>
</div> <?php
if(isset($rsUsers)){
<div class="form-group"> $recUsers =
<div class="row"> fetchRecord($rsUsers);
<div class="col-md-12 text-right"> foreach ($recUsers as $key =>
<button type="submit" $value) {
name="btnSave" class="btn btn-primary echo '<tr>';
btn-lg"> echo '<td>' .
<i class="fa fa-save"></i> Save $value['lastname'] . ', ' . $value['firstname'] .
</button> '</td>';
</div> echo '<td>' .
</div> $value['username'] . '</td>';
</div> echo '<td>' .
</form> $value['userType'] . '</td>';
</div> echo '<td>' . $value['status']
. '</td>';
<div class="col-md-12"> echo '<td class="text-
<div class="well"><b>Note:</b> The center">';
Default Password is <b class="text- echo '<span data-
red">Pass1234</b></div> toggle="tooltip" data-placement="left"
<div class="card mb-3"> title="Reset Password"><a
<div class="card-header"> href="users_reset.php?x=' . $value['userID']
<i class="fa fa-user"></i> . '" class="btn btn-info"
User Lists style="width:50px;"><i class="fa fa-
</div> refresh"></i> </a></span> ';
echo '<span data-
<div class="card-body"> toggle="tooltip" data-placement="left"
<div class="table-responsive"> title="Update User Information"><a
<table class="table table- href="users_edit.php?x=' . $value['userID'] .
bordered" width="100%" id="dataTable" '" class="btn btn-success"
cellspacing="0"> style="width:50px;"><i class="fa fa-
<thead> edit"></i> </a></span> ';
<tr> echo '<span data-
<th class="col-md- toggle="tooltip" data-placement="left"
3">Name</th> title="Remove User Record"><a
<th class="col-md- href="users_delete.php?x=' . $value['userID']
2">Username</th> . '" class="btn btn-danger"
<th class="col-md-2">User style="width:50px;"><i class="fa fa-
Type</th> trash"></i> </a></span>';
<th class="col-md- echo '</td>';
1">Status</th> echo '</tr>';
}
} <a class="btn btn-primary"
?> href="logout.php">Logout</a>
</tbody> </div>
</table> </div>
</div> </div>
</div> </div>
</div>
</div> <script type="text/javascript">
</div> $(document).ready(function(){
</div> $('[data-toggle="tooltip"]').tooltip();
<!-- /.container-fluid --> });
</div> </script>
<!-- /.content-wrapper -->
<?php include_once("footer.php"); ?>
<!-- Scroll to Top Button -->
<a class="scroll-to-top rounded" users_delete
href="#page-top"> <?php
<i class="fa fa-angle-up"></i> session_start();
</a> include_once("../function/functions.php");
testByPass($_SESSION['userID']);
<!-- Logout Modal -->
<div class="modal fade" if($_SESSION['userType'] !=
id="exampleModal" tabindex="-1" 'Administrator')
role="dialog" aria- header("location:" .
labelledby="exampleModalLabel" aria- $_SESSION['currentPage'] . ".php");
hidden="true">
<div class="modal-dialog" $con = databaseConnection();
role="document">
<div class="modal-content"> $_SESSION['currentPage'] = 'users';
<div class="modal-header"> $_SESSION['currentNavigation'] = 'file
<h5 class="modal-title" maintenance';
id="exampleModalLabel">Ready to $_SESSION['subNavigation'] = TRUE;
Leave?</h5> $_SESSION['subNavigationArrow'] =
<button type="button" class="close" TRUE;
data-dismiss="modal" aria-label="Close"> $err = '';
<span aria-
hidden="true">&times;</span> if(isset($_POST['btnRemove'])){
</button> $strSql = "DELETE FROM tbl_users
</div> WHERE userID = " . $_SESSION['x'];
<div class="modal-body"> mysqli_query($con, $strSql);
Select "Logout" below if you are
ready to end your current session. header("location:confirmRecordDeletion.php
</div> ");
<div class="modal-footer"> }
<button type="button" class="btn
btn-secondary" data- if(isset($_GET['x']))
dismiss="modal">Cancel</button> $_SESSION['x'] = $_GET['x'];
<button type="submit"
$strSql = "SELECT * FROM tbl_users name="btnRemove" class="btn btn-danger
WHERE userID = " . $_SESSION['x']; btn-lg">
$rsUsers = getRecord($con, $strSql); <i class="fa fa-trash"></i>
if(isset($rsUsers)){ Remove
$recUsers = fetchRecord($rsUsers); </button>
foreach ($recUsers as $key => $value) { </div>
$lastname = $value['lastname']; </div>
$firstname = $value['firstname']; </div>
$username = $value['username']; </form>
$userType = $value['userType']; </div>
$status = $value['status']; <div class="col-md-12">
$_SESSION['currentUsername'] = <div class="well">
$value['username']; <?php
} echo '<h4><b>Name:</b> ' .
} $lastname . ' ' . $firstname . '</h4>';
include_once("header.php"); echo '<h4><b>Username:</b> ' .
?> $username . '</h4>';
<div class="content-wrapper py-3" echo '<h4><b>User Type:</b> ' .
style="height:1200px;"> $userType. '</h4>';
<div class="container-fluid"> ?>
</div>
<div class="row"> </div>
<div class="col-md-12"> <?php
<h2><i class="fa fa-user fa-fw"></i> }
Delete a User</h2><hr> else{
</div> echo '<div class="col-md-12">';
<?php echo 'You cannot remove this admin
if($_SESSION['x'] != 1){ user account!<br>';
?> echo '<a href="users.php"
<div class="col-md-12"> class="btn btn-warning btn-lg"><i class="fa
<form method="post" fa-arrow-left"></i> Go Back</a>';
action="users_delete.php"> echo '</div>';
<div class="form-group"> }
<div class="row"> ?>
<div class="col-md-12 text- </div>
center"> </div>
<h4>Are you sure you want to <!-- /.container-fluid -->
remove this user?</h4> </div>
</div> <!-- /.content-wrapper -->
<div class="col-md-12 text-
center"> <!-- Scroll to Top Button -->
<a href="users.php" class="btn <a class="scroll-to-top rounded"
btn-warning btn-lg"><i class="fa fa-arrow- href="#page-top">
left"></i> Cancel / Go Back</a> <i class="fa fa-angle-up"></i>
</a>
<!-- Logout Modal -->
<div class="modal fade" if($_SESSION['userType'] !=
id="exampleModal" tabindex="-1" 'Administrator')
role="dialog" aria- header("location:" .
labelledby="exampleModalLabel" aria- $_SESSION['currentPage'] . ".php");
hidden="true">
<div class="modal-dialog" $con = databaseConnection();
role="document">
<div class="modal-content"> $_SESSION['currentPage'] = 'users';
<div class="modal-header"> $_SESSION['currentNavigation'] = 'file
<h5 class="modal-title" maintenance';
id="exampleModalLabel">Ready to $_SESSION['subNavigation'] = TRUE;
Leave?</h5> $_SESSION['subNavigationArrow'] =
<button type="button" class="close" TRUE;
data-dismiss="modal" aria-label="Close"> $err = '';
<span aria- $arrUserType = array(
hidden="true">&times;</span> 'Administrator' => 'Administrator',
</button> 'Standard User' => 'Standard User'
</div> );
<div class="modal-body"> $arrStatus = array('Enabled', 'Disabled');
Select "Logout" below if you are
ready to end your current session. if(isset($_POST['btnSave'])){
</div> $lastname = $_POST['txtLastname'];
<div class="modal-footer"> $firstname = $_POST['txtFirstname'];
<button type="button" class="btn $username = $_POST['txtUsername'];
btn-secondary" data- $userType = $_POST['cboUserType'];
dismiss="modal">Cancel</button> $status = $_POST['cboUserStatus'];
<a class="btn btn-primary"
href="logout.php">Logout</a> if($_SESSION['currentUsername'] !=
</div> $username){ //if the user changes the current
</div> username
</div> $strSql = "SELECT * FROM tbl_users
</div> WHERE username = '$username'"; //check
for duplicate user
<script type="text/javascript"> if(countRecord($strSql) > 0)
$(document).ready(function(){ $err = '<b>- Username</b> is already
$('[data-toggle="tooltip"]').tooltip(); existing!';
}); else{
</script> $strSql = "UPDATE tbl_users SET
lastname = '$lastname', firstname =
<?php include_once("footer.php"); ?> '$firstname', username = '$username',
userType = '$userType', status = '$status'
users_edit WHERE userID = " . $_SESSION['x'];
<?php mysqli_query($con, $strSql);
session_start();
include_once("../function/functions.php"); header("location:confirmRecordSave.php");
testByPass($_SESSION['userID']); }
} </div>
else{ <div class="col-md-10">
$strSql = "UPDATE tbl_users SET <form method="post"
lastname = '$lastname', firstname = action="users_edit.php">
'$firstname', username = '$username', <div class="form-group">
userType = '$userType', status = '$status' <div class="row">
WHERE userID = " . $_SESSION['x']; <div class="col-md-3 text-
mysqli_query($con, $strSql); right"><label for="txtLastname">Lastname
<span class="text-
header("location:confirmRecordSave.php"); red">*</span></label></div>
} <div class="col-md-9"><input
} type="text" name="txtLastname"
id="txtLastname" class="form-control"
if(isset($_GET['x'])) value="<?php echo $lastname; ?>"
$_SESSION['x'] = $_GET['x']; pattern="^\D*$" title="Number is not
allowed!" required></div>
$strSql = "SELECT * FROM tbl_users </div>
WHERE userID = " . $_SESSION['x']; </div>
$rsUsers = getRecord($con, $strSql);
if(isset($rsUsers)){ <div class="form-group">
$recUsers = fetchRecord($rsUsers); <div class="row">
foreach ($recUsers as $key => $value) { <div class="col-md-3 text-
$lastname = $value['lastname']; right"><label for="txtFirstname">Firstname
$firstname = $value['firstname']; <span class="text-
$username = $value['username']; red">*</span></label></div>
$userType = $value['userType']; <div class="col-md-9"><input
$status = $value['status']; type="text" name="txtFirstname"
$_SESSION['currentUsername'] = id="txtFirstname" class="form-control"
$value['username']; value="<?php echo $firstname; ?>"
} pattern="^\D*$" title="Number is not
} allowed!" required></div>
include_once("header.php"); </div>
?> </div>
<div class="content-wrapper py-3"
style="height:1200px;"> <div class="form-group">
<div class="container-fluid"> <div class="row">
<div class="row"> <div class="col-md-3 text-
<div class="col-md-12"> right"><label for="txtUsername">Username
<h2><i class="fa fa-user fa-fw"></i> <span class="text-
Update a User</h2><hr> red">*</span></label></div>
<?php <div class="col-md-9"><input
if($err != '') type="text" name="txtUsername"
echo '<div class="alert alert- id="txtUsername" class="form-control"
danger">' . $err . '<button type="button" value="<?php echo $username; ?>"
class="close" data- required></div>
dismiss="alert">&times;</button></div>'; </div>
?> </div>
</div>
<div class="form-group"> </div>
<div class="row"> </div>
<div class="col-md-3 text-
right"><label for="cboUserType">User <div class="form-group">
Type <span class="text- <div class="row">
red">*</span></label></div> <div class="col-md-12 text-right">
<div class="col-md-9"> <a href="users.php" class="btn
<select name="cboUserType" btn-warning btn-lg"><i class="fa fa-arrow-
class="form-control"> left"></i> Cancel / Go Back</a>
<?php <button type="submit"
foreach ($arrUserType as name="btnSave" class="btn btn-primary
$key => $value) { btn-lg">
if($value == $userType) <i class="fa fa-save"></i> Save
echo '<option value="' . </button>
$value . '" selected>' . $value . '</option>'; </div>
else </div>
echo '<option value="' . </div>
$value . '">' . $value . '</option>'; </form>
} </div>
?>
</select> <div class="col-md-12">
</div> <div class="well"><b>Note:</b> The
</div> Default Password is <b class="text-
</div> red">Pass1234</b></div>
</div>
<div class="form-group"> </div>
<div class="row"> </div>
<div class="col-md-3 text- <!-- /.container-fluid -->
right"><label for="cboUserStatus">User </div>
Access <span class="text- <!-- /.content-wrapper -->
red">*</span></label></div>
<div class="col-md-9"> <!-- Scroll to Top Button -->
<select name="cboUserStatus" <a class="scroll-to-top rounded"
class="form-control"> href="#page-top">
<?php <i class="fa fa-angle-up"></i>
foreach ($arrStatus as $key </a>
=> $value) {
if($value == $status) <!-- Logout Modal -->
echo '<option value="' . <div class="modal fade"
$value . '" selected>' . $value . '</option>'; id="exampleModal" tabindex="-1"
else role="dialog" aria-
echo '<option value="' . labelledby="exampleModalLabel" aria-
$value . '">' . $value . '</option>'; hidden="true">
} <div class="modal-dialog"
?> role="document">
</select> <div class="modal-content">
<div class="modal-header"> $_SESSION['currentNavigation'] = 'file
<h5 class="modal-title" maintenance';
id="exampleModalLabel">Ready to $_SESSION['subNavigation'] = TRUE;
Leave?</h5> $_SESSION['subNavigationArrow'] =
<button type="button" class="close" TRUE;
data-dismiss="modal" aria-label="Close"> $err = '';
<span aria-
hidden="true">&times;</span> if(isset($_POST['btnReset'])){
</button> $strSql = "UPDATE tbl_users SET
</div> password = '" . md5('Pass1234') . "' WHERE
<div class="modal-body"> userID = " . $_SESSION['x'];
Select "Logout" below if you are mysqli_query($con, $strSql);
ready to end your current session.
</div> header("location:confirmUserPasswordReset.
<div class="modal-footer"> php");
<button type="button" class="btn }
btn-secondary" data-
dismiss="modal">Cancel</button> if(isset($_GET['x']))
<a class="btn btn-primary" $_SESSION['x'] = $_GET['x'];
href="logout.php">Logout</a>
</div> $strSql = "SELECT * FROM tbl_users
</div> WHERE userID = " . $_SESSION['x'];
</div> $rsUsers = getRecord($con, $strSql);
</div> if(isset($rsUsers)){
$recUsers = fetchRecord($rsUsers);
<script type="text/javascript"> foreach ($recUsers as $key => $value) {
$(document).ready(function(){ $lastname = $value['lastname'];
$('[data-toggle="tooltip"]').tooltip(); $firstname = $value['firstname'];
}); $username = $value['username'];
</script> $userType = $value['userType'];
$status = $value['status'];
<?php include_once("footer.php"); ?> $_SESSION['currentUsername'] =
$value['username'];
users_reset }
<?php }
session_start(); include_once("header.php");
include_once("../function/functions.php"); ?>
testByPass($_SESSION['userID']); <div class="content-wrapper py-3"
style="height:1200px;">
if($_SESSION['userType'] != <div class="container-fluid">
'Administrator') <div class="row">
header("location:" . <div class="col-md-12">
$_SESSION['currentPage'] . ".php"); <h2><i class="fa fa-user fa-fw"></i>
Reset User Password</h2><hr>
$con = databaseConnection(); </div>
<div class="col-md-12">
$_SESSION['currentPage'] = 'users';
<form method="post" </a>
action="users_reset.php">
<div class="form-group"> <!-- Logout Modal -->
<div class="row"> <div class="modal fade"
<div class="col-md-12 text- id="exampleModal" tabindex="-1"
center"> role="dialog" aria-
<h4>Are you sure you want to labelledby="exampleModalLabel" aria-
reset the password of this user?</h4> hidden="true">
</div> <div class="modal-dialog"
<div class="col-md-12 text- role="document">
center"> <div class="modal-content">
<a href="users.php" class="btn <div class="modal-header">
btn-warning btn-lg"><i class="fa fa-arrow- <h5 class="modal-title"
left"></i> Cancel / Go Back</a> id="exampleModalLabel">Ready to
<button type="submit" Leave?</h5>
name="btnReset" class="btn btn-info btn- <button type="button" class="close"
lg"> data-dismiss="modal" aria-label="Close">
<i class="fa fa-refresh"></i> <span aria-
Reset Password hidden="true">&times;</span>
</button> </button>
</div> </div>
</div> <div class="modal-body">
</div> Select "Logout" below if you are
</form> ready to end your current session.
</div> </div>
<div class="col-md-12"> <div class="modal-footer">
<div class="well"> <button type="button" class="btn
<?php btn-secondary" data-
echo '<h4><b>Name:</b> ' . dismiss="modal">Cancel</button>
$lastname . ' ' . $firstname . '</h4>'; <a class="btn btn-primary"
echo '<h4><b>Username:</b> ' . href="logout.php">Logout</a>
$username . '</h4>'; </div>
echo '<h4><b>User Type:</b> ' . </div>
$userType. '</h4>'; </div>
?> </div>
</div>
</div> <script type="text/javascript">
</div> $(document).ready(function(){
</div> $('[data-toggle="tooltip"]').tooltip();
<!-- /.container-fluid --> });
</div> </script>
<!-- /.content-wrapper -->
<?php include_once("footer.php"); ?>
<!-- Scroll to Top Button -->
<a class="scroll-to-top rounded" Backend Assistance-finder
href="#page-top"> Comfirm-record-delete
<i class="fa fa-angle-up"></i> <?php
session_start(); confirm-record-save
include_once("../../function/functions.php"); <?php
testByPass($_SESSION['sessID']); session_start();
$con = databaseConnection(); include_once("../../function/functions.php");
testByPass($_SESSION['sessID']);
include_once("header.php"); $con = databaseConnection();
?>
<div class="col-sm-9 col-sm-offset-3 col-lg- include_once("header.php");
10 col-lg-offset-2 main"> ?>
<div class="col-sm-9 col-sm-offset-3 col-lg-
<div class="row"> 10 col-lg-offset-2 main">
<div clas="col-md-12">
<div class="modal fade" <div class="row">
id="modalRecordSave" tabindex="-1" <div clas="col-md-12">
role="dialog" aria- <div class="modal fade"
labelledby="myModalLabel" aria- id="modalRecordSave" tabindex="-1"
hidden="true" data-backdrop="static" role="dialog" aria-
data-keyboard="false"> labelledby="myModalLabel" aria-
<div class="modal-dialog"> hidden="true" data-backdrop="static"
<div class="modal-content"> data-keyboard="false">
<div class="modal-header"> <div class="modal-dialog">
<h3 class="modal-title" <div class="modal-content">
id="myModalLabel">Web Based Job Finder <div class="modal-header">
for Tarlac City</h3> <h3 class="modal-title"
</div> id="myModalLabel">Web Based Job Finder
<div class="modal-body text- for Tarlac City</h3>
center"> </div>
<h4><i class="fa fa- <div class="modal-body text-
trash"></i> Record Successfully center">
Deleted!</h4> <h4><i class="fa fa-save"></i>
</div> Record Successfully Saved!</h4>
<div class="modal-footer"> </div>
<a class="btn btn-success" <div class="modal-footer">
href="<?php echo <a class="btn btn-success"
$_SESSION['currentPage'] . '.php'; href="<?php echo
?>">Ok</a> $_SESSION['currentPage'] . '.php';
</div> ?>">Ok</a>
</div> </div>
<!-- /.modal-content --> </div>
</div> <!-- /.modal-content -->
<!-- /.modal-dialog --> </div>
</div> <!-- /.modal-dialog -->
</div> </div>
</div> </div>
</div> </div>
</div>
<?php include_once("footer.php"); ?>
<?php include_once("footer.php"); ?> $assistanceRequestID =
$_POST['myHiddenField'];
Dashboard $strSql = "DELETE FROM
<?php tbl_assistancerequest WHERE
session_start(); assistanceRequestID =
include_once("../../function/functions. $assistanceRequestID";
php"); mysqli_query($con, $strSql);
testByPass($_SESSION['sessID']); header("location:confirm-record-
$con = databaseConnection(); delete.php");
}
if($_SESSION['searchfromlanding']
== TRUE) include_once("header.php");
header("location: skilled- ?>
worker-request-assistance.php");
<div class="col-sm-9 col-sm-offset-3
$_SESSION['currentPage'] = col-lg-10 col-lg-offset-2 main">
'dashboard'; <div class="row">
$_SESSION['currentNavigation'] = ''; <ol
class="breadcrumb">
<li><a
$strSql = " href="#">
SELECT <em
class="fa fa-home"></em>
tbl_skilledworker.lastname, </a></li>
<li
tbl_skilledworker.firstname, class="active">Dashboard</li>
tbl_assistancerequest.* </ol>
FROM tbl_skilledworker, </div><!--/.row-->
tbl_assistancerequest
WHERE <div class="row">
tbl_skilledworker.skilledWorkerID = <div class="col-lg-
tbl_assistancerequest.skilledWorkerID 12">
AND <h1
tbl_assistancerequest.assistanceFinderID = " class="page-header">Dashboard</h1>
. $_SESSION['sessID']; </div>
$rsAssistanceRequest = </div><!--/.row-->
getRecord($con, $strSql);
<div class="row">
$strSql = "SELECT * FROM <div class="col-lg-
tbl_barangaymessage_assistancefinder 12">
WHERE assistanceFinderID = " . <div
$_SESSION['sessID']; class="col-md-12">
$rsBarangayMessage = <div
getRecord($con, $strSql); class="panel panel-primary">

if(isset($_POST['btnYes'])){ <div class="panel-heading">


Assistance Request(s) </thead>

<span class="pull-right clickable <tbody>


panel-toggle"><em class="fa fa-toggle-
up"></em></span>
<?php
</div>

<div class="panel-body"> if(isset($rsAssistanceRequest)){

<table class="table table-bordered $recAssistanceRequest =


table-hover"> fetchRecord($rsAssistanceRequest);

<thead> foreach
($recAssistanceRequest as $key => $value) {
<tr>

echo '<tr>';
<th class="col-
sm-2">Skilled Worker</th>

<th class="col-
sm-2">Subject</th> echo '<td>' . $value['lastname'] . ', ' .
$value['firstname'] . '</td>';
<th class="col-
sm-1">Duration</th>
echo '<td>' . $value['subject'] .
<th class="col- '</td>';
sm-1">Salary</th>

echo '<td class="text-center">' .


<th class="col- $value['duration'] . ' day(s)</td>';
sm-1">Date</th>

<th class="col- echo '<td class="text-right">' .


sm-1">Status</th> number_format($value['expectedSalary'],2) .
'</td>';
<th class="col-
sm-2">Your Ratings</th>
echo '<td>' . $value['requestDate'] .
<th class="col- '</td>';
sm-2 text-center">Options</th>

</tr> echo '<td>' . $value['requestStatus'] .


'</td>';
echo '<td class="text-center">' . echo '</tr>';
printStars($value['assistanceFinderRating']) .
'</td>'; }

else{
echo '<td class="text-center">';
echo
'<tr>';
//echo '<span data-
toggle="tooltip" data-placement="left"
title="Rate Skilled Worker"><a echo '<td colspan="8">No Record(s)
href="skilled-worker-rate.php?x=' . Found!</td>';
$value['assistanceRequestID'] . '" class="btn
btn-success"><i class="fa fa-star"></i> echo
</a></span> '; '</tr>';

?>
echo '<span data-
toggle="tooltip" data-placement="left"
title="Rate Skilled Worker"><button </tbody>
type="button" class="btn btn-success"
onClick="change(\'id\',' . </table>
$value['assistanceRequestID'] . ')" data-
toggle="modal" data- </div>
target="#modalRatings"><i class="fa fa- </div>
star"></i></button></span> '; </div>

</div>
echo '<span data- </div><!--/.row-->
toggle="tooltip" data-placement="left"
title="Remove Request"><button <div class="row">
type="button" class="btn btn-danger" <div class="col-lg-
onClick="change(\'myHiddenField\',' . 12">
$value['assistanceRequestID'] . ')" data- <div
toggle="modal" data- class="col-md-12">
target="#modalRecordDelete"><i class="fa <div
fa-trash"></i></button></span> '; class="panel panel-warning">

<div class="panel-heading">
echo '</td>';
$recBarangayMessage =
Message(s) from the Barangay fetchRecord($rsBarangayMessage);
Administrator
foreach
<span class="pull-right clickable ($recBarangayMessage as $key => $value) {
panel-toggle"><em class="fa fa-toggle-
up"></em></span>
echo '<tr>';
</div>

<div class="panel-body">

<table class="table table-bordered


table-hover"> echo '<td>' . $value['subject'] .
'</td>';
<thead>

<tr>

echo '<td>' . $value['message'] .


<th class="col- '</td>';
sm-3">Subject</th>

<th class="col- echo '<td>' . $value['dateSent'] .


sm-7">Message</th> '</td>';

<th class="col-
sm-2">Date Sent</th>

echo '</tr>';

}
</tr>
}
</thead>
else{
<tbody>
echo
'<tr>';
<?php

echo '<td colspan="4">No Record(s)


if(isset($rsBarangayMessage)){ Found!</td>';

echo
'</tr>';
<input
} name="myHiddenField" type="hidden"
value="">
?> <input type="submit"
name="btnYes" value="Yes" class="btn btn-
success">
</tbody> </form>
</div>
</table> </div>
<!-- /.modal-content -->
</div> </div>
</div> <!-- /.modal-dialog -->
</div> </div>
</div>
</div> </div>
</div><!--/.row-->
<div class="row">
<div class="row"> <div clas="col-md-12">
<div clas="col-md-12"> <div class="modal fade"
<div class="modal fade" id="modalRatings" tabindex="-1"
id="modalRecordDelete" tabindex="-1" role="dialog" aria-
role="dialog" aria- labelledby="myModalLabel" aria-
labelledby="myModalLabel" aria- hidden="true" data-backdrop="static"
hidden="true" data-backdrop="static" data-keyboard="false">
data-keyboard="false"> <div class="modal-dialog">
<div class="modal-dialog"> <div class="modal-
<div class="modal- content">
content"> <div class="modal-
<div class="modal- header">
header"> <h3 class="modal-title"
<h3 class="modal-title" id="myModalLabel">Web Based Job Finder
id="myModalLabel">Web Based Job Finder for Tarlac City</h3>
for Tarlac City</h3> </div>
</div> <div class="modal-body
<div class="modal-body text-center">
text-center"> <div class="row">
<h4><i class="fa fa- <div
trash"></i> Are you sure you want to remove class="col-sm-12">
this Assistance Request?</h4> <h4><i
</div> class="fa fa-star"></i> Rate the skilled
<div class="modal- worker.</h4>
footer"> <hr>
<form method="post" </div>
action="dashboard.php"> </div>
<button
type="button" class="btn btn-primary" <div class="row">
data-dismiss="modal">Cancel</button>
<div
class="col-sm-12"> </div>
<div
class="rating"> <?php include_once("footer.php"); ?>

<?php edit-profile
<?php
for session_start();
($i=5; $i > 0; $i--) { include_once("../../function/functions.
php");
testByPass($_SESSION['sessID']);
$con = databaseConnection();
echo '<input type="radio"
name="star" id="star' . $i . '" value="' . $i . $_SESSION['currentPage'] =
'"><label for="star' . $i . '"></label>'; 'dashboard';
$_SESSION['currentNavigation'] = '';
}
$strSql = "SELECT * FROM
?> tbl_assistancefinder WHERE
assistanceFinderID = " .
$_SESSION['sessID'];
<input name="id" id="id" $rsAssistanceFinder =
type="hidden" value=""> getRecord($con, $strSql);
$err = '';
</div>
if(isset($rsAssistanceFinder)){
<div id="rating- $recAssistanceFinder =
success" align="center"></div> fetchRecord($rsAssistanceFinder);
</div> foreach ($recAssistanceFinder as $key
</div> => $value) {
$lastname =
</div> $value['lastname'];
<div class="modal- $firstname =
footer"> $value['firstname'];
$middlename =
<button $value['middlename'];
type="button" class="btn btn-primary" $birthday =
data-dismiss="modal">Close</button> $value['birthday'];
$sex = $value['sex'];
</div> $address = $value['address'];
</div> $contactNo =
<!-- /.modal-content --> $value['contactNo'];
</div> $photo = $value['photo'];
<!-- /.modal-dialog -->
</div> }
</div> }
</div>
if(isset($_POST['btnUpdate'])){
$lastname = if(empty($errors)==true)
$_POST['txtLastname'];
$firstname = move_uploaded_file($file_tmp,"assistance-
$_POST['txtFirstname']; finder-photos/" . $file_name_new);
$middlename =
$_POST['txtMiddlename']; /*if($err != '')
$birthday = $file_name_new = '';
$_POST['dtpBirthday']; */
$sex = $_POST['cboSex'];
$address = if($file_ext != ''){
$_POST['txtAddress']; $strSql = "
$contactNo =
$_POST['txtContactNumber']; UPDATE tbl_assistancefinder
SET
if(isset($_FILES['filPhoto'])){ photo = '$file_name_new'
$file_name =
$_FILES['filPhoto']['name']; WHERE assistanceFinderID = " .
$file_size $_SESSION['sessID'];
=$_FILES['filPhoto']['size'];
$file_tmp mysqli_query($con, $strSql);
=$_FILES['filPhoto']['tmp_name']; }
}
$file_type=$_FILES['filPhoto']['type'];

$file_ext=strtolower(end(explode('.',$_FILES
['filPhoto']['name']))); $strSql = "
$file_name_new =
$_SESSION['sessID'] . '.' . $file_ext; UPDATE tbl_assistancefinder
SET
$fileExtensions = lastname = '$lastname',
array("jpeg","jpg","png");
firstname = '$firstname',
middlename =
if(in_array($file_ext,$fileExtensions) === '$middlename',
false){ birthday =
$err = "<b>- Photo</b> '$birthday',
extension is not allowed, please choose a sex = '$sex',
JPEG or PNG file."; address =
} '$address',
contactNo =
if($file_size > 5000000){ '$contactNo'
if($err != '')
$err = $err . '<br>'; WHERE assistanceFinderID = " .
$err = "<b>- Photo</b> File $_SESSION['sessID'];
size must be 5 MB or below"; mysqli_query($con, $strSql);
}
header("location:confirm-record- method="post" enctype="multipart/form-
save.php"); data">
}
<div class="form-
include_once("header.php"); group">
?> <label
for="txtLastname" class="col-sm-3 control-
<div class="col-sm-9 col-sm-offset-3 label"><span class="font-red">*</span>
col-lg-10 col-lg-offset-2 main"> Last Name </label>
<div class="row"> <div class="col-sm-
<ol 9">
class="breadcrumb"> <input type="text"
<li><a class="form-control" name="txtLastname"
href="#"><em class="fa fa- id="lastname" placeholder="Last Name"
home"></em></a></li> value="<?php echo $lastname; ?>"
<li><a required>
href="dashboard.php">Dashboard</a></li> </div>
<li </div>
class="active">Edit Profile</li>
</ol> <div class="form-
</div><!--/.row--> group">
<label
<div class="row"> for="txtFirstname" class="col-sm-3 control-
<div class="col-lg- label"><span class="font-red">*</span>
12"> First Name</label>
<h1 <div class="col-sm-
class="page-header">Edit Profile</h1> 9">
</div> <input type="text"
</div><!--/.row--> class="form-control" name="txtFirstname"
id="txtFirstname" placeholder="First
<div class="row"> Name" value="<?php echo $firstname; ?>"
<div class="col-lg- required>
12"> </div>
<div </div>
class="col-md-12">
<?php <div class="form-
if($err != '') group">
echo '<div <label
class="alert alert-danger"><button for="txtMiddlename" class="col-sm-3
type="button" class="close" data- control-label">Middle Name</label>
dismiss="alert"><span aria- <div class="col-sm-
hidden="true">&times;</button>' . $err . 9">
'</div>'; <input type="text"
?> class="form-control"
name="txtMiddlename"
<form class="form- id="txtMiddlename" placeholder="Middle
horizontal" action="edit-profile.php"
Name" value="<?php echo $middlename; </div>
?>" > </div>
</div>
</div> <div class="form-
group">
<div class="form- <label
group"> for="txtAddress" class="col-sm-3 control-
<label label"><span class="font-red">*</span>
for="dtpBirthday" class="col-sm-3 control- Address</label>
label"><span class="font-red">*</span> <div class="col-sm-
Birthday</label> 9">
<div class="col-sm- <textarea
9"> class="form-control" name="txtAddress"
<input type="date" id="txtAddress" placeholder="Address"
class="form-control" name="dtpBirthday" style="resize: vertical;" required><?php
id="dtpBirthday" placeholder="Birthday" echo $address; ?></textarea>
style="padding-top: 0px;" value="<?php </div>
echo $birthday; ?>" required> </div>
</div>
</div> <div class="form-
group">
<div class="form- <label
group"> for="txtContactNumber" class="col-sm-3
<label for="cboSex" control-label"><span class="font-
class="col-sm-3 control-label"><span red">*</span> Contact No</label>
class="font-red">*</span> Sex</label> <div class="col-sm-
<div class="col-sm- 9">
9"> <input type="text"
<?php class="form-control"
echo '<select name="txtContactNumber"
class="form-control" name="cboSex" id="txtContactNumber" placeholder="11
id="cboSex" required>'; digit Mobile Number / Phone Number"
if($sex == pattern="^[0-9]{11}$" title="11-digit Mobile
'Male'){ Number" value="<?php echo $contactNo;
echo '<option ?>" required>
value="Male" selected>Male</option>'; </div>
echo '<option </div>
value="Female">Female</option>';
} <div class="form-
else{ group">
echo '<option <label
value="Male">Male</option>'; for="filPhoto" class="col-sm-3 control-
echo '<option label"> Photo</label>
value="Female" selected>Female</option>'; <div class="col-sm-
} 9">
echo '</select>';
?>
<input type="file" <script
name="filPhoto" id="filPhoto" src="../js/custom.js"></script>
style="height: 40px;">
</div> <script type="text/javascript">
</div> $(document).ready(function(){

<div class="form- $("#modalRecordSave").modal('show');


group"> });
<div class="col-sm-
offset-3 col-sm-9"> $(function () {
<a $('[data-
href="dashboard.php" class="btn btn- toggle="tooltip"]').tooltip();
danger btn-lg">Cancel</a> })
<button
type="submit" name="btnUpdate" $(function () {
class="btn btn-success btn- $('[data-
lg">Update</button> toggle="popover"]').popover();
</div> })
</div>
function change(element,
</form> value) {
</div>
document.getElementsByName(eleme
</div> nt)[0].value = value;
</div><!--/.row--> }
</script>
</div>
<script type="text/javascript">
<?php include_once("footer.php"); ?> $(document).ready(function()
{
Footer
$('input[name=star]').change(function(){
<script src="../js/jquery- var star = $(this).val();
1.11.1.min.js"></script>
<script var id = $('#id').val();
src="../js/bootstrap.min.js"></script>
<script $.ajax({
src="../js/chart.min.js"></script> url: "skilled-worker-
<script src="../js/chart- save-rating.php",
data.js"></script> method: "POST",
<script data: {star:star, id:id},
src="../js/easypiechart.js"></script> success: function() {
<script src="../js/easypiechart- $("#rating-
data.js"></script> success").append("<p>Rating
<script src="../js/bootstrap- Successful!</p>");
datepicker.js"></script> }
})
}); <html>
}); <head>
<meta charset="utf-8">
<meta name="viewport"
$('#modalRatings').on('hidden.bs.mo content="width=device-width, initial-
dal', function (e) { scale=1">
$(this) <title>Web Based Job Finder for
Tarlac City - Dashboard</title>
.find("input,textarea,select") <link href="../css/bootstrap.min.css"
.val('') rel="stylesheet">
.end() <link href="../css/font-
awesome.min.css" rel="stylesheet">
.find("input[type=checkbox], <link href="../css/datepicker3.css"
input[type=radio]") rel="stylesheet">
.prop("checked", "") <link href="../css/styles.css"
.end(); rel="stylesheet">
$( "#rating-success" <link href="../css/default.css"
).empty(); rel="stylesheet">
}) <link href="../css/ratings.css"
</script> rel="stylesheet">

</body> <!--Custom Font-->


</html> <link
href="https://fonts.googleapis.com/css?family
Header =Montserrat:300,300i,400,400i,500,500i,600,6
<?php 00i,700,700i" rel="stylesheet">
$strSql = "SELECT * FROM <!--[if lt IE 9]>
tbl_assistancefinder WHERE <script
assistanceFinderID = " . src="js/html5shiv.js"></script>
$_SESSION['sessID']; <script
$rsAssistanceFinder = src="js/respond.min.js"></script>
getRecord($con, $strSql); <![endif]-->
</head>
if(isset($rsAssistanceFinder)){ <body>
$recAssistanceFinder = <nav class="navbar navbar-custom
fetchRecord($rsAssistanceFinder); navbar-fixed-top" role="navigation">
foreach ($recAssistanceFinder as $key <div class="container-fluid">
=> $value) { <div class="navbar-
$userFirstname = header">
$value['firstname']; <button
$photo = $value['photo']; type="button" class="navbar-toggle
collapsed" data-toggle="collapse" data-
} target="#sidebar-collapse"><span class="sr-
} only">Toggle navigation</span>
?> <span
class="icon-bar"></span>
<!DOCTYPE html>
<span href="dashboard.php"><em class="fa fa-
class="icon-bar"></span> dashboard">&nbsp;</em>
<span Dashboard</a></li>
class="icon-bar"></span> <li class="<?php echo
</button> activeSideBar('skilled-worker-search',
<a $_SESSION['currentPage']); ?>"><a
class="navbar-brand" href="#"><span>Web href="skilled-worker-search.php"><em
Based Job Finder for Tarlac City </span> | class="fa fa-search">&nbsp;</em> Skilled
<?php echo $_SESSION['sessType']; ?></a> Worker Search</a></li>

</div> <!--<li class="parent


</div><!-- /.container-fluid --> "><a data-toggle="collapse" href="#sub-
</nav> item-1">
<div id="sidebar-collapse" <em class="fa
class="col-sm-3 col-lg-2 sidebar"> fa-navicon">&nbsp;</em> Multilevel <span
<div class="profile-sidebar"> data-toggle="collapse" href="#sub-item-1"
<div class="profile- class="icon pull-right"><em class="fa fa-
userpic"> plus"></em></span>
<img </a>
src="assistance-finder-photos/<?php echo <ul
$photo; ?>" class="img-responsive" class="children collapse" id="sub-item-1">
style="width:50px;" <li><a
onerror="this.src='http://placehold.it/50/30a5 class="" href="#">
ff/fff'"/>
<!--<img <span class="fa fa-arrow-
src="http://placehold.it/50/30a5ff/fff" right">&nbsp;</span> Sub Item 1
class="img-responsive" alt="">-->
</div> </a></li>
<div class="profile- <li><a
usertitle"> class="" href="#">
<div
class="profile-usertitle-name"><?php echo <span class="fa fa-arrow-
$userFirstname; ?></div> right">&nbsp;</span> Sub Item 2
<div
class="profile-usertitle-status"><a </a></li>
href="edit-profile.php">Edit <li><a
Profile</a></div> class="" href="#">
</div>
<div <span class="fa fa-arrow-
class="clear"></div> right">&nbsp;</span> Sub Item 3
</div>
<div class="divider"></div> </a></li>
</ul>
<ul class="nav menu"> </li>-->
<li class="<?php echo <li><a href="#"
activeSideBar('dashboard', class="nav-link" data-toggle="modal" data-
$_SESSION['currentPage']); ?>"><a
target="#exampleModal"><em class="fa fa- <?php
power-off">&nbsp;</em> Logout</a></li> session_start();
</ul> session_destroy();
</div><!--/.sidebar--> session_start();
include_once("../../function/functions.
<!-- Logout Modal --> php");
<div class="modal fade" header("location:" . get_base_url());
id="exampleModal" tabindex="-1" ?>
role="dialog" aria-
labelledby="exampleModalLabel" aria- skilled-worker-request-assistance
hidden="true"> <?php
<div class="modal-dialog" session_start();
role="document"> include_once("../../function/functions.
<div class="modal-content"> php");
<div class="modal-header"> testByPass($_SESSION['sessID']);
<h5 class="modal-title" $con = databaseConnection();
id="exampleModalLabel">Ready to $_SESSION['currentPage'] = 'skilled-
Leave?</h5> worker-search';
<button type="button" class="close" $_SESSION['currentNavigation'] = '';
data-dismiss="modal" aria-label="Close">
<span aria- if(isset($_POST['btnRequest'])){
hidden="true">&times;</span> $subject =
</button> $_POST['txtSubject'];
</div> $duration =
<div class="modal-body"> $_POST['txtDuration'];
Select "Logout" below if you are $salary =
ready to end your current session. $_POST['txtSalary'];
</div> $requestDetails =
<div class="modal-footer"> $_POST['txtRequestDetails'];
<button type="button" class="btn
btn-success" data- $strSql = "
dismiss="modal">Cancel</button>
<a class="btn btn-primary" INSERT INTO
href="logout.php">Logout</a>
</div> tbl_assistancerequest(
</div>
</div> assistanceFinderID,
</div>
skilledWorkerID,
Index
<?php subject,
include_once("../../function/functions.
php"); duration,
header("location:" . get_base_url());
?> expectedSalary,

Logout requestDetails,
echo "Message Sent!";
requestDate, else
echo "Error Num ". $sms . " was
requestStatus encountered!";
)
header("location:confirm-record-
VALUES( save.php");
}
" . $_SESSION['sessID'] . ",
if(isset($_GET['x']))
" . $_SESSION['x'] . ", $_SESSION['x'] = $_GET['x'];

'$subject', $_SESSION['searchfromlanding'] =
FALSE;
$duration,
$strSql = "SELECT * FROM
$salary, tbl_skilledworker WHERE skilledWorkerID
= " . $_SESSION['x'];
'$requestDetails', $rsSkilledWorker = getRecord($con,
$strSql);
'" . date("Y-m-d") . "',
if(isset($rsSkilledWorker)){
'Pending') $recSkilledWorker =
"; fetchRecord($rsSkilledWorker);
foreach ($recSkilledWorker as $key
=> $value) {
mysqli_query($con, $strSql); $lastname =
$contactNo = $value['lastname'];
getMobileNumber($con, $firstname =
'tbl_skilledworker','skilledWorkerID', $value['firstname'];
$_SESSION['x']); $sex = $value['sex'];
$address = $value['address'];
$sms = itexmo($contactNo, 'An $skills = $value['skills'];
assistance finder is asking for your service. }
Login to your account to check the details of }
the request.');
if ($sms == ""){ include_once("header.php");
echo "iTexMo: No ?>
response from server!!!
Please check the <div class="col-sm-9 col-sm-offset-3
METHOD used (CURL or CURL-LESS). If col-lg-10 col-lg-offset-2 main">
you are using CURL then try CURL-LESS <div class="row">
and vice versa. <ol
Please CONTACT US class="breadcrumb">
for help. "; <li><a
} href="#"><em class="fa fa-
else if ($sms == 0) home"></em></a></li>
<li><a </div><!--/.row-->
href="skilled-worker-search.php">Skilled
Worker Search</a></li> <div class="row">
<li
class="active">Request Assistance</li> <div class="col-md-
</ol> 12">
</div><!--/.row--> <div class="panel panel-
default">
<div class="row"> <div
<div class="col-md- class="panel-heading">
6">
<h1 Assistance Request Form <small
class="page-header">Skilled Worker style="font-size: 12px; float: right; color:
Search</h1> red;"><em>(<b>Note:</b> All fields are
</div> required)</em></small>
<div class="col-md- </div>
6"> <div
<br> class="panel-body">
<div
class="panel panel-primary">
<div <form class="form-horizontal"
class="panel-heading">Skilled Worker Basic action="skilled-worker-request-
Information:</div> assistance.php" method="post"
<div role="form">
class="panel-body">
<fieldset>
<ul>

<li><b>Name: </b> <?php echo <div class="form-group">


$lastname . ', ' . $firstname; ?></li>
<label class="col-md-4
<li><b>Sex: </b> <?php echo $sex; control-label"
?></li> for="txtSubject">Subject</label>

<li><b>Address: </b> <?php echo <div class="col-md-


$address; ?></li> 8">

<li><b>Skills: </b> <?php echo <input


$skills; ?></li> id="txtSubject" name="txtSubject"
type="text" placeholder="Enter request
</ul> subject here..." class="form-control"
required>
</div>
</div> </div>
</div>
</div>
<!-- Message body -->

<div class="form-group"> <div class="form-group">

<label class="col-md-4 <label class="col-md-4


control-label" for="txtDuration">Duration control-label"
of Service <br><small style="font-weight: for="txtRequestDetails">Request Details
lighter;"><em>(In <br><small style="font-weight:
days)</em></small></label> lighter;"><em>(Indicate here the details of
the service such as duties and responsibilities.
<div class="col-md- Inclusion of board and loging, free meals,
8"> transportation allowance and
etc.)</em></small></label>
<input
id="txtDuration" name="txtDuration" <div class="col-md-
type="number" placeholder="Enter number 8">
of days here..." class="form-control"
required> <textarea
class="form-control" id="txtRequestDetails"
</div> name="txtRequestDetails"
placeholder="Enter request details here..."
</div> rows="5" required></textarea>

</div>
<div class="form-group">
</div>
<label class="col-md-4
control-label" for="txtSalary">Expected
Salary <br><small style="font-weight:
lighter;"><em>(Throughout the duration of <!-- Form actions -->
service)</em></small></label>
<div class="form-group">
<div class="col-md-
8"> <div class="col-md-12
widget-right">
<input
id="txtSalary" name="txtSalary" <button
type="number" placeholder="Enter amount type="submit" name="btnRequest"
of salary here..." class="form-control" class="btn btn-success btn-md pull-
required> right">Submit Request</button>

</div> </div>

</div> </div>

</fieldset>
if(isset($_POST['btnSearch'])){
</form> $searchCriteria =
$_POST['txtSearch'];
</div> $strSql = "SELECT * FROM
</div> tbl_skilledworker WHERE skills LIKE
'%$searchCriteria%'";
</div> $rsSkilledWorker =
getRecord($con, $strSql);
</div> }
</div> ?>

<div class="col-sm-9 col-sm-offset-3


<?php include_once("footer.php"); ?> col-lg-10 col-lg-offset-2 main">
<div class="row">
skilled-worker-save-rating <ol
<?php class="breadcrumb">
session_start(); <li><a
include_once("../../function/functions. href="#">
php"); <em
testByPass($_SESSION['sessID']); class="fa fa-home"></em>
$con = databaseConnection(); </a></li>
<li
if(isset($_POST['star'])){ class="active">Skilled Worker Search</li>
$star = $_POST['star']; </ol>
$id = $_POST['id']; </div><!--/.row-->
mysqli_query($con,
"UPDATE tbl_assistancerequest SET <div class="row">
skilledWorkerRating = $star WHERE <div class="col-lg-
assistanceRequestID = $id"); 12">
} <h1
?> class="page-header">Skilled Worker
Search</h1>
skilled-worker-search </div>
<?php </div><!--/.row-->
session_start();
include_once("../../function/functions. <div class="row">
php");
testByPass($_SESSION['sessID']); <div class="col-md-
$con = databaseConnection(); 12">
$_SESSION['currentPage'] = 'skilled- <form action="skilled-worker-
worker-search'; search.php" method="post" role="form">
$_SESSION['currentNavigation'] = ''; <div id="custom-search-
input">
include_once("header.php"); <div class="input-group col-
md-12">
$searchCriteria = ''; <input type="text"
name="txtSearch" class="search-query
form-control input-lg" placeholder="Search
Skilled Worker by Skills..." value="<?php <tbody>
echo $searchCriteria; ?>" />
<span class="input-
group-btn"> <?php
<button
name="btnSearch" class="btn btn-primary if(isset($rsSkilledWorker)){
btn-lg" type="submit">
<span class="fa fa- $recSkilledWorker =
search"></span> fetchRecord($rsSkilledWorker);
</button>
</span> foreach ($recSkilledWorker
</div> as $key => $value) {
</div>
</form> echo '<tr>';
</div>
echo '<td>' .
</div> ($key + 1) . '</td>';

<div class="row"> echo '<td>' .


<div class="col-lg- $value['lastname'] . ', ' . $value['firstname'] .
12"> '</td>';
<h1
class="page-header">Search Results</h1> echo '<td>' .
<table $value['sex'] . '</td>';
class="table table-bordered table-hover">
echo '<td>' .
<thead> $value['address'] . '</td>';

<tr> echo '<td><a


href="skilled-worker-request-
assistance.php?x=' .
<th class="col-sm-1">No.</th> $value['skilledWorkerID'] . '" class="btn
btn-success">Request Assistance</a></td>';
<th class="col-sm-4">Name</th>
echo '</tr>';
<th class="col-sm-1">Sex</th>
}
<th class="col-sm-4">Address</th>
}
<th class="col-sm-2">Options</th>
else{
</tr>
echo '<tr>';
</thead>
echo '<td
colspan="5">No Record(s) Found!</td>';
?>
echo '</tr>'; <div class="col-sm-9 col-sm-offset-3 col-lg-
10 col-lg-offset-2 main">
}
<div class="row">
?> <div clas="col-md-12">
<div class="modal fade"
</tbody> id="modalRecordSave" tabindex="-1"
</table> role="dialog" aria-
</div> labelledby="myModalLabel" aria-
</div><!--/.row--> hidden="true" data-backdrop="static"
data-keyboard="false">
</div> <div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<?php include_once("footer.php"); ?> <h3 class="modal-title"
id="myModalLabel">Web Based Job Finder
for Tarlac City</h3>
Skilledworker-Backend </div>
<div class="modal-body text-
Assistance-finder-save-rating center">
<h4><i class="fa fa-
<?php
trash"></i> Record Successfully
session_start();
Deleted!</h4>
include_once("../../function/functions.
</div>
php");
<div class="modal-footer">
testByPass($_SESSION['sessID']);
<a class="btn btn-success"
$con = databaseConnection();
href="<?php echo
$_SESSION['currentPage'] . '.php';
if(isset($_POST['star'])){
?>">Ok</a>
$star = $_POST['star'];
</div>
$id = $_POST['id'];
</div>
mysqli_query($con,
<!-- /.modal-content -->
"UPDATE tbl_assistancerequest SET
</div>
assistanceFinderRating = $star WHERE
<!-- /.modal-dialog -->
assistanceRequestID = $id");
</div>
}
</div>
?>
</div>
</div>
Comfirm-record-delete
<?php <?php include_once("footer.php"); ?>
session_start();
include_once("../../function/functions.php");
Comfirm-record-save
testByPass($_SESSION['sessID']);
<?php
$con = databaseConnection();
session_start();
include_once("../../function/functions.php");
include_once("header.php");
testByPass($_SESSION['sessID']);
$con = databaseConnection(); include_once("../../function/functions.
php");
include_once("header.php"); testByPass($_SESSION['sessID']);
?> $con = databaseConnection();
<div class="col-sm-9 col-sm-offset-3 col-lg- $_SESSION['currentPage'] =
10 col-lg-offset-2 main"> 'dashboard';
$_SESSION['currentNavigation'] = '';
<div class="row">
<div clas="col-md-12"> $strSql = "
<div class="modal fade" SELECT
id="modalRecordSave" tabindex="-1"
role="dialog" aria- tbl_assistancefinder.lastname,
labelledby="myModalLabel" aria-
hidden="true" data-backdrop="static" tbl_assistancefinder.firstname,
data-keyboard="false"> tbl_assistancerequest.*
<div class="modal-dialog"> FROM tbl_assistancefinder,
<div class="modal-content"> tbl_assistancerequest
<div class="modal-header"> WHERE
<h3 class="modal-title" tbl_assistancefinder.assistanceFinderID =
id="myModalLabel">Web Based Job Finder tbl_assistancerequest.assistanceFinderID
for Tarlac City</h3> AND
</div> tbl_assistancerequest.skilledWorkerID = " .
<div class="modal-body text- $_SESSION['sessID'] . "
center"> AND
<h4><i class="fa fa-save"></i> tbl_assistancerequest.requestStatus
Record Successfully Saved!</h4> IN('Accepted','Finished')
</div> ";
<div class="modal-footer"> $rsAssistanceRequest =
<a class="btn btn-success" getRecord($con, $strSql);
href="<?php echo
$_SESSION['currentPage'] . '.php'; $strSql = "SELECT * FROM
?>">Ok</a> tbl_barangaymessage_skilledworker
</div> WHERE skilledWorkerID = " .
</div> $_SESSION['sessID'];
<!-- /.modal-content --> $rsBarangayMessage =
</div> getRecord($con, $strSql);
<!-- /.modal-dialog -->
</div> if(isset($_POST['btnYes'])){
</div> $assistanceRequestID =
</div> $_POST['myHiddenField'];
</div> $strSql = "DELETE FROM
tbl_assistancerequest WHERE
<?php include_once("footer.php"); ?> assistanceRequestID =
$assistanceRequestID";
Dashboard mysqli_query($con, $strSql);
<?php header("location:confirm-record-
session_start(); delete.php");
}
<table class="table table-bordered
include_once("header.php"); table-hover">
?>
<thead>
<div class="col-sm-9 col-sm-offset-3
col-lg-10 col-lg-offset-2 main"> <tr>
<div class="row">
<ol
class="breadcrumb"> <th class="col-
<li><a sm-2">Assistance Finder</th>
href="#"><em class="fa fa-
home"></em></a></li> <th class="col-
<li sm-2">Subject</th>
class="active">Dashboard</li>
</ol> <th class="col-
</div><!--/.row--> sm-1">Duration</th>

<div class="row"> <th class="col-


<div class="col-lg- sm-1">Salary</th>
12">
<h1
class="page-header">Dashboard</h1> <th class="col-
</div> sm-1">Date</th>
</div><!--/.row-->
<th class="col-
<div class="row"> sm-1">Status</th>
<div class="col-lg-
12"> <th class="col-
<div sm-2">Your Ratings</th>
class="col-md-12">
<div <th class="col-
class="panel panel-primary"> sm-2 text-center">Options</th>

<div class="panel-heading"> </tr>

Served Request(s) </thead>

<span class="pull-right clickable <tbody>


panel-toggle"><em class="fa fa-toggle-
up"></em></span>
<?php
</div>

<div class="panel-body"> if(isset($rsAssistanceRequest)){


$recAssistanceRequest = echo '<span data-
fetchRecord($rsAssistanceRequest); toggle="tooltip" data-placement="left"
title="View Request Details"><a
foreach href="service-request-details.php?x=' .
($recAssistanceRequest as $key => $value) { $value['assistanceRequestID'] . '" class="btn
btn-primary"><i class="fa fa-eye"></i>
</a></span> ';
echo '<tr>';

echo '<span data-


toggle="tooltip" data-placement="left"
title="Rate Assitance Finder"><button
echo '<td>' . $value['lastname'] . ', ' . type="button" class="btn btn-success"
$value['firstname'] . '</td>'; onClick="change(\'id\',' .
$value['assistanceRequestID'] . ')" data-
toggle="modal" data-
echo '<td>' . $value['subject'] . target="#modalRatings"><i class="fa fa-
'</td>'; star"></i></button></span> ';

echo '<td class="text-center">' .


$value['duration'] . ' day(s)</td>';
echo '<span data-
toggle="tooltip" data-placement="left"
echo '<td class="text-right">' . title="Remove Request"><button
number_format($value['expectedSalary'],2) . type="button" class="btn btn-danger"
'</td>'; onClick="change(\'myHiddenField\',' .
$value['assistanceRequestID'] . ')" class="btn
btn-primary btn-lg" data-toggle="modal"
echo '<td>' . $value['requestDate'] . data-target="#modalRecordDelete"><i
'</td>'; class="fa fa-trash"></i></button></span> ';

echo '<td>' . $value['requestStatus'] . echo '</td>';


'</td>';

echo '</tr>';
echo '<td class="text-center">' .
printStars($value['skilledWorkerRating']) . }
'</td>';
}

else{

echo '<td class="text-center">'; echo


'<tr>';
<table class="table table-bordered
echo '<td colspan="8">No Record(s) table-hover">
Found!</td>';
<thead>
echo
'</tr>'; <tr>

}
<th class="col-
?> sm-3">Subject</th>

<th class="col-
</tbody> sm-7">Message</th>

</table> <th class="col-


sm-2">Date Sent</th>
</div>
</div>
</div>

</div> </tr>
</div><!--/.row-->
</thead>
<div class="row">
<div class="col-lg- <tbody>
12">
<div
class="col-md-12"> <?php
<div
class="panel panel-warning">
if(isset($rsBarangayMessage)){
<div class="panel-heading">

Message(s) from the Barangay $recBarangayMessage =


Administrator fetchRecord($rsBarangayMessage);

<span class="pull-right clickable foreach


panel-toggle"><em class="fa fa-toggle- ($recBarangayMessage as $key => $value) {
up"></em></span>

</div> echo '<tr>';

<div class="panel-body">
</div>

echo '<td>' . $value['subject'] . </div>


'</td>'; </div><!--/.row-->

<div class="row">
<div clas="col-md-12">
<div class="modal fade"
echo '<td>' . $value['message'] . id="modalRecordDelete" tabindex="-1"
'</td>'; role="dialog" aria-
labelledby="myModalLabel" aria-
hidden="true" data-backdrop="static"
echo '<td>' . $value['dateSent'] . data-keyboard="false">
'</td>'; <div class="modal-dialog">
<div class="modal-
content">
<div class="modal-
header">
echo '</tr>'; <h3 class="modal-title"
id="myModalLabel">Web Based Job Finder
} for Tarlac City</h3>
</div>
} <div class="modal-body
text-center">
else{ <h4><i class="fa fa-
trash"></i> Are you sure you want to remove
echo this Assistance Request?</h4>
'<tr>'; </div>
<div class="modal-
footer">
echo '<td colspan="4">No Record(s) <form method="post"
Found!</td>'; action="dashboard.php">
<button
echo type="button" class="btn btn-primary"
'</tr>'; data-dismiss="modal">Cancel</button>
<input
} name="myHiddenField" type="hidden"
value="">
?> <input type="submit"
name="btnYes" value="Yes" class="btn btn-
success">
</tbody> </form>
</div>
</table> </div>
<!-- /.modal-content -->
</div> </div>
</div> <!-- /.modal-dialog -->
</div> name="star" id="star' . $i . '" value="' . $i .
</div> '"><label for="star' . $i . '"></label>';
</div>
}
<div class="row">
<div clas="col-md-12"> ?>
<div class="modal fade"
id="modalRatings" tabindex="-1"
role="dialog" aria- <input name="id" id="id"
labelledby="myModalLabel" aria- type="hidden" value="">
hidden="true" data-backdrop="static"
data-keyboard="false"> </div>
<div class="modal-dialog">
<div class="modal- <div id="rating-
content"> success" align="center"></div>
<div class="modal- </div>
header"> </div>
<h3 class="modal-title"
id="myModalLabel">Web Based Job Finder </div>
for Tarlac City</h3> <div class="modal-
</div> footer">
<div class="modal-body
text-center"> <button
<div class="row"> type="button" class="btn btn-primary"
<div data-dismiss="modal">Close</button>
class="col-sm-12">
<h4><i </div>
class="fa fa-star"></i> Rate the assistance </div>
finder.</h4> <!-- /.modal-content -->
<hr> </div>
</div> <!-- /.modal-dialog -->
</div> </div>
</div>
<div class="row"> </div>
<div
class="col-sm-12"> </div>
<div
class="rating"> <?php include_once("footer.php"); ?>

<?php Edit-profile
<?php
for session_start();
($i=5; $i > 0; $i--) { include_once("../../function/functions.
php");
testByPass($_SESSION['sessID']);
$con = databaseConnection();
echo '<input type="radio"
$_SESSION['currentPage'] = $middlename =
'dashboard'; $_POST['txtMiddlename'];
$_SESSION['currentNavigation'] = ''; $birthday =
$_POST['dtpBirthday'];
$strSql = "SELECT * FROM $sex = $_POST['cboSex'];
tbl_skilledworker WHERE skilledWorkerID $address =
= " . $_SESSION['sessID']; $_POST['txtAddress'];
$rsAssistanceFinder = $contactNo =
getRecord($con, $strSql); $_POST['txtContactNumber'];
$err = '';
$upErr = ''; if(!isset($_POST['chkSkills']))
$err = '<b>- Skills</b> Skill field
$strSql = "SELECT * FROM is required! Select atleast 1 skill to
tbl_skilllist"; continue.<br>';
$rsSkillList = getRecord($con, else{
$strSql); $arrSkills = $_POST['chkSkills'];
$skills = rtrim(implode(", ",
if(isset($rsAssistanceFinder)){ $arrSkills),",");
$recAssistanceFinder = }
fetchRecord($rsAssistanceFinder);
foreach ($recAssistanceFinder as $key if(isset($_FILES['filPhoto'])){
=> $value) { $file_name =
$lastname = $_FILES['filPhoto']['name'];
$value['lastname']; $file_size
$firstname = =$_FILES['filPhoto']['size'];
$value['firstname']; $file_tmp
$middlename = =$_FILES['filPhoto']['tmp_name'];
$value['middlename'];
$birthday = $file_type=$_FILES['filPhoto']['type'];
$value['birthday'];
$sex = $value['sex']; $file_ext=strtolower(end(explode('.',$_FILES
$address = $value['address']; ['filPhoto']['name'])));
$contactNo = $file_name_new =
$value['contactNo']; $_SESSION['sessID'] . '.' . $file_ext;
$arrSkills = explode(", ",
$value['skills']); $fileExtensions =
$photo = $value['photo']; array("jpeg","jpg","png");

}
} if(in_array($file_ext,$fileExtensions) ===
false){
if(isset($_POST['btnUpdate'])){ $upErr = "<b>- Photo</b>
$lastname = extension is not allowed, please choose a
$_POST['txtLastname']; JPEG or PNG file.";
$firstname = }
$_POST['txtFirstname'];
if($file_size > 5000000){
if($upErr != '') skills = '$skills'
$upErr = $upErr . '<br>';
$upErr = "<b>- Photo</b>
File size must be 5 MB or below"; WHERE skilledWorkerID = " .
} $_SESSION['sessID'];

if(empty($errors)==true) mysqli_query($con,
$strSql);
move_uploaded_file($file_tmp,"skilled- header("location:confirm-
worker-photos/" . $file_name_new); record-save.php");
}
/*if($upErr != '')
$file_name_new = '';*/ }

if($file_ext != ''){ include_once("header.php");


$strSql = " ?>

UPDATE tbl_skilledworker <div class="col-sm-9 col-sm-offset-3


SET col-lg-10 col-lg-offset-2 main">
photo = '$file_name_new' <div class="row">
<ol
WHERE skilledWorkerID = " . class="breadcrumb">
$_SESSION['sessID']; <li><a
href="#"><em class="fa fa-
mysqli_query($con, $strSql); home"></em></a></li>
} <li><a
href="dashboard.php">Dashboard</a></li>
} <li
class="active">Edit Profile</li>
if($err == ''){ </ol>
$strSql = " </div><!--/.row-->

UPDATE tbl_skilledworker <div class="row">


SET <div class="col-lg-
lastname = '$lastname', 12">
<h1
firstname = '$firstname', class="page-header">Edit Profile</h1>
middlename = </div>
'$middlename', </div><!--/.row-->
birthday =
'$birthday', <div class="row">
sex = '$sex', <div class="col-lg-
address = 12">
'$address', <div
contactNo = class="col-md-12">
'$contactNo', <?php
if($err != '') <div class="form-
echo '<div group">
class="alert alert-danger"><button <label
type="button" class="close" data- for="txtMiddlename" class="col-sm-3
dismiss="alert"><span aria- control-label">Middle Name</label>
hidden="true">&times;</button>' . $err . <div class="col-sm-
'</div>'; 9">
?> <input type="text"
class="form-control"
<form class="form- name="txtMiddlename"
horizontal" action="edit-profile.php" id="txtMiddlename" placeholder="Middle
method="post" enctype="multipart/form- Name" value="<?php echo $middlename;
data"> ?>" >
</div>
<div class="form- </div>
group">
<label <div class="form-
for="txtLastname" class="col-sm-3 control- group">
label"><span class="font-red">*</span> <label
Last Name </label> for="dtpBirthday" class="col-sm-3 control-
<div class="col-sm- label"><span class="font-red">*</span>
9"> Birthday</label>
<input type="text" <div class="col-sm-
class="form-control" name="txtLastname" 9">
id="lastname" placeholder="Last Name" <input type="date"
value="<?php echo $lastname; ?>" class="form-control" name="dtpBirthday"
required> id="dtpBirthday" placeholder="Birthday"
</div> style="padding-top: 0px;" value="<?php
</div> echo $birthday; ?>" required>
</div>
<div class="form- </div>
group">
<label <div class="form-
for="txtFirstname" class="col-sm-3 control- group">
label"><span class="font-red">*</span> <label for="cboSex"
First Name</label> class="col-sm-3 control-label"><span
<div class="col-sm- class="font-red">*</span> Sex</label>
9"> <div class="col-sm-
<input type="text" 9">
class="form-control" name="txtFirstname" <?php
id="txtFirstname" placeholder="First echo '<select
Name" value="<?php echo $firstname; ?>" class="form-control" name="cboSex"
required> id="cboSex" required>';
</div> if($sex ==
</div> 'Male'){
echo '<option
value="Male" selected>Male</option>';
echo '<option </div>
value="Female">Female</option>';
} <div class="form-
else{ group">
echo '<option <label
value="Male">Male</option>'; for="chkSkills" class="col-sm-3 control-
echo '<option label"><span class="font-red">*</span>
value="Female" selected>Female</option>'; Skills</label>
} <div class="col-sm-
echo '</select>'; 9">
?> <?php
</div>
</div> if(isset($rsSkillList)){
$recSkillList =
<div class="form- fetchRecord($rsSkillList);
group"> foreach
<label ($recSkillList as $key => $value) {
for="txtAddress" class="col-sm-3 control-
label"><span class="font-red">*</span> if(in_array($value['skill'], $arrSkills))
Address</label> echo '<label
<div class="col-sm- style="font-weight:normal;
9"> cursor:pointer;"><input type="checkbox"
<textarea name="chkSkills[]" value="'. $value['skill'] .
class="form-control" name="txtAddress" '" checked/> ' . $value['skill'] . '</label>';
id="txtAddress" placeholder="Address" else
style="resize: vertical;" required><?php echo '<label
echo $address; ?></textarea> style="font-weight:normal;
</div> cursor:pointer;"><input type="checkbox"
</div> name="chkSkills[]" value="'. $value['skill'] .
'"/> ' . $value['skill'] . '</label>';
<div class="form- echo '<br>';
group"> }
<label }
for="txtContactNumber" class="col-sm-3 ?>
control-label"><span class="font- </div>
red">*</span> Contact No</label> </div>
<div class="col-sm-
9"> <div class="form-
<input type="text" group">
class="form-control" <label
name="txtContactNumber" for="filPhoto" class="col-sm-3 control-
id="txtContactNumber" placeholder="11 label"> Photo</label>
digit Mobile Number / Phone Number" <div class="col-sm-
pattern="^[0-9]{11}$" title="11-digit Mobile 9">
Number" value="<?php echo $contactNo; <input type="file"
?>" required> name="filPhoto" id="filPhoto"
</div> style="height: 40px;">
</div> $(document).ready(function(){
</div>
$("#modalRecordSave").modal('show');
<div class="form- });
group">
<div class="col-sm- $(function () {
offset-3 col-sm-9"> $('[data-
<a toggle="tooltip"]').tooltip();
href="dashboard.php" class="btn btn- })
danger btn-lg">Cancel</a>
<button $(function () {
type="submit" name="btnUpdate" $('[data-
class="btn btn-success btn- toggle="popover"]').popover();
lg">Update</button> })
</div>
</div> function change(element,
value) {
</form>
</div> document.getElementsByName(eleme
nt)[0].value = value;
</div> }
</div><!--/.row--> </script>

</div> <script type="text/javascript">


$(document).ready(function()
<?php include_once("footer.php"); ?> {

Footer $('input[name=star]').change(function(){
var star = $(this).val();
<script src="../js/jquery-
1.11.1.min.js"></script> var id = $('#id').val();
<script
src="../js/bootstrap.min.js"></script> $.ajax({
<script url: "assistance-
src="../js/chart.min.js"></script> finder-save-rating.php",
<script src="../js/chart- method: "POST",
data.js"></script> data: {star:star, id:id},
<script success: function() {
src="../js/easypiechart.js"></script> $("#rating-
<script src="../js/easypiechart- success").append("<p>Rating
data.js"></script> Successful!</p>");
<script src="../js/bootstrap- }
datepicker.js"></script> })
<script });
src="../js/custom.js"></script> });

<script type="text/javascript">
<meta name="viewport"
$('#modalRatings').on('hidden.bs.mo content="width=device-width, initial-
dal', function (e) { scale=1">
$(this) <title>Web Based Job Finder for
Tarlac City - Dashboard</title>
.find("input,textarea,select") <link href="../css/bootstrap.min.css"
.val('') rel="stylesheet">
.end() <link href="../css/font-
awesome.min.css" rel="stylesheet">
.find("input[type=checkbox], <link href="../css/datepicker3.css"
input[type=radio]") rel="stylesheet">
.prop("checked", "") <link href="../css/styles.css"
.end(); rel="stylesheet">
$( "#rating-success" <link href="../css/default.css"
).empty(); rel="stylesheet">
}) <link href="../css/ratings.css"
</script> rel="stylesheet">

</body> <!--Custom Font-->


</html> <link
href="https://fonts.googleapis.com/css?family
Header =Montserrat:300,300i,400,400i,500,500i,600,6
<?php 00i,700,700i" rel="stylesheet">
$strSql = "SELECT * FROM <!--[if lt IE 9]>
tbl_skilledworker WHERE skilledWorkerID <script
= " . $_SESSION['sessID']; src="js/html5shiv.js"></script>
$rsSkilledWorker = getRecord($con, <script
$strSql); src="js/respond.min.js"></script>
<![endif]-->
if(isset($rsSkilledWorker)){ </head>
$recSkilledWorker = <body>
fetchRecord($rsSkilledWorker); <nav class="navbar navbar-custom
foreach ($recSkilledWorker as $key navbar-fixed-top" role="navigation">
=> $value) { <div class="container-fluid">
$userFirstname = <div class="navbar-
$value['firstname']; header">
$photo = $value['photo']; <button
type="button" class="navbar-toggle
} collapsed" data-toggle="collapse" data-
} target="#sidebar-collapse"><span class="sr-
?> only">Toggle navigation</span>
<span
<!DOCTYPE html> class="icon-bar"></span>
<html> <span
<head> class="icon-bar"></span>
<meta charset="utf-8"> <span
class="icon-bar"></span>
</button> fa-suitcase">&nbsp;</em> Service
<a Request</a></li>
class="navbar-brand" href="#"><span>Web
Based Job Finder for Tarlac City </span> | <!--<li class="parent
<?php echo $_SESSION['sessType']; ?></a> "><a data-toggle="collapse" href="#sub-
item-1">
</div> <em class="fa
</div><!-- /.container-fluid --> fa-navicon">&nbsp;</em> Multilevel <span
</nav> data-toggle="collapse" href="#sub-item-1"
<div id="sidebar-collapse" class="icon pull-right"><em class="fa fa-
class="col-sm-3 col-lg-2 sidebar"> plus"></em></span>
<div class="profile-sidebar"> </a>
<div class="profile- <ul
userpic"> class="children collapse" id="sub-item-1">
<img <li><a
src="skilled-worker-photos/<?php echo class="" href="#">
$photo; ?>" class="img-responsive"
style="width:50px;" <span class="fa fa-arrow-
onerror="this.src='http://placehold.it/50/30a5 right">&nbsp;</span> Sub Item 1
ff/fff'"/>
</div> </a></li>
<div class="profile- <li><a
usertitle"> class="" href="#">
<div
class="profile-usertitle-name"><?php echo <span class="fa fa-arrow-
$userFirstname; ?></div> right">&nbsp;</span> Sub Item 2
<div
class="profile-usertitle-status"><a </a></li>
href="edit-profile.php">Edit <li><a
Profile</a></div> class="" href="#">
</div>
<div <span class="fa fa-arrow-
class="clear"></div> right">&nbsp;</span> Sub Item 3
</div>
<div class="divider"></div> </a></li>
</ul>
<ul class="nav menu"> </li>-->
<li class="<?php echo <li><a href="#"
activeSideBar('dashboard', class="nav-link" data-toggle="modal" data-
$_SESSION['currentPage']); ?>"><a target="#exampleModal"><em class="fa fa-
href="dashboard.php"><em class="fa fa- power-off">&nbsp;</em> Logout</a></li>
dashboard">&nbsp;</em> </ul>
Dashboard</a></li> </div><!--/.sidebar-->
<li class="<?php echo
activeSideBar('service-request', <!-- Logout Modal -->
$_SESSION['currentPage']); ?>"><a <div class="modal fade"
href="service-request.php"><em class="fa id="exampleModal" tabindex="-1"
role="dialog" aria- ?>
labelledby="exampleModalLabel" aria-
hidden="true"> Service-request
<div class="modal-dialog" <?php
role="document"> session_start();
<div class="modal-content"> include_once("../../function/functions.
<div class="modal-header"> php");
<h5 class="modal-title" testByPass($_SESSION['sessID']);
id="exampleModalLabel">Ready to $con = databaseConnection();
Leave?</h5> $_SESSION['currentPage'] = 'service-
<button type="button" class="close" request';
data-dismiss="modal" aria-label="Close"> $_SESSION['currentNavigation'] = '';
<span aria-
hidden="true">&times;</span> $strSql = "
</button> SELECT
</div>
<div class="modal-body"> tbl_assistancefinder.lastname,
Select "Logout" below if you are
ready to end your current session. tbl_assistancefinder.firstname,
</div> tbl_assistancerequest.*
<div class="modal-footer"> FROM tbl_assistancefinder,
<button type="button" class="btn tbl_assistancerequest
btn-success" data- WHERE
dismiss="modal">Cancel</button> tbl_assistancefinder.assistanceFinderID =
<a class="btn btn-primary" tbl_assistancerequest.assistanceFinderID
href="logout.php">Logout</a> AND
</div> tbl_assistancerequest.skilledWorkerID = " .
</div> $_SESSION['sessID'] . "
</div> AND
</div> tbl_assistancerequest.requestStatus =
'Pending'
Index ";
<?php $rsAssistanceRequest =
include_once("../../function/functions. getRecord($con, $strSql);
php");
header("location:" . get_base_url()); include_once("header.php");
?> ?>

Logout <div class="col-sm-9 col-sm-offset-3


<?php col-lg-10 col-lg-offset-2 main">
session_start(); <div class="row">
session_destroy(); <ol
session_start(); class="breadcrumb">
include_once("../../function/functions. <li><a
php"); href="#"><em class="fa fa-
header("location:" . get_base_url()); home"></em></a></li>
<li
class="active">Service Request</li> <th class="col-
</ol> sm-1">Duration</th>
</div><!--/.row-->
<th class="col-
<div class="row"> sm-1">Salary</th>
<div class="col-lg-
12">
<h1 <th class="col-
class="page-header">Service Request</h1> sm-1">Date</th>
</div>
</div><!--/.row--> <th class="col-
sm-1">Status</th>
<div class="row">
<div class="col-lg-
12"> <th class="col-
<div sm-2 text-center">Options</th>
class="col-md-12">
<div </tr>
class="panel panel-primary">
</thead>
<div class="panel-heading">
<tbody>
Assistance Request(s)

<span class="pull-right clickable <?php


panel-toggle"><em class="fa fa-toggle-
up"></em></span>
if(isset($rsAssistanceRequest)){
</div>

<div class="panel-body"> $recAssistanceRequest =


fetchRecord($rsAssistanceRequest);

<table class="table table-bordered foreach


table-hover"> ($recAssistanceRequest as $key => $value) {

<thead>
echo '<tr>';
<tr>

<th class="col-
sm-3">Assistance Finder</th> echo '<td>' . $value['lastname'] . ', ' .
$value['firstname'] . '</td>';
<th class="col-
sm-3">Subject</th>
echo '<td>' . $value['subject'] .
'</td>'; echo
'<tr>';

echo '<td class="text-center">' .


$value['duration'] . ' day(s)</td>'; echo '<td colspan="7">No Record(s)
Found!</td>';

echo '<td class="text-right">' . echo


number_format($value['expectedSalary'],2) . '</tr>';
'</td>';
}

echo '<td>' . $value['requestDate'] . ?>


'</td>';

</tbody>
echo '<td>' . $value['requestStatus'] .
'</td>'; </table>

</div>
</div>
</div>
echo '<td class="text-center">';
</div>
</div><!--/.row-->
echo '<span data-
toggle="tooltip" data-placement="left" </div>
title="View Assistance Finder Bio"><a
href="service-request-information.php?x=' .
$value['assistanceRequestID'] . '" class="btn <?php include_once("footer.php"); ?>
btn-primary"><i class="fa fa-eye"></i> View
Info</a></span> '; Service-request-details
<?php
session_start();
echo '</td>'; include_once("../../function/functions.
php");
testByPass($_SESSION['sessID']);
echo '</tr>'; $con = databaseConnection();
$_SESSION['currentPage'] = 'service-
} request';
$_SESSION['currentNavigation'] = '';
}
if(isset($_GET['x']))
else{ $_SESSION['x'] = $_GET['x'];
$strSql = "SELECT * FROM }
tbl_assistancerequest WHERE
assistanceRequestID = " . $_SESSION['x']; include_once("header.php");
$rsAssistanceRequest = ?>
getRecord($con, $strSql);
<div class="col-sm-9 col-sm-offset-3
if(isset($rsAssistanceRequest)){ col-lg-10 col-lg-offset-2 main">
$recAssistanceRequest = <div class="row">
fetchRecord($rsAssistanceRequest); <ol
foreach ($recAssistanceRequest as class="breadcrumb">
$key => $value) { <li><a
$assistanceFinderID = href="#"><em class="fa fa-
$value['assistanceFinderID']; home"></em></a></li>
$subject = $value['subject']; <li><a
$duration = href="dashboard.php">Dashboard</a></li>
$value['duration']; <li
$expectedSalary = class="active">Service Request Details</li>
$value['expectedSalary']; </ol>
$requestDetails = </div><!--/.row-->
$value['requestDetails'];
$requestDate = <div class="row">
$value['requestDate']; <div class="col-lg-
} 12">
} <h1
class="page-header">Service Request
$strSql = "SELECT * FROM Information</h1>
tbl_assistancefinder WHERE </div>
assistanceFinderID = $assistanceFinderID"; <div class="col-md-
$rsAssistanceFinder = 6">
getRecord($con, $strSql); <div
class="panel panel-default">
if(isset($rsAssistanceFinder)){ <div
$recAssistanceFinder = class="panel-heading">Assistance Finder
fetchRecord($rsAssistanceFinder); Bio:</div>
foreach ($recAssistanceFinder as $key <div
=> $value) { class="panel-body">
$lastname =
$value['lastname']; <table class="table">
$firstname =
$value['firstname']; <tbody>
$sex = $value['sex'];
$address = $value['address']; <tr>
$contactNo =
$value['contactNo']; <td class="col-sm-3
$emailAddress = text-right text-bold" style="border-top:
$value['emailAddress']; 0px;">Name:</td>
}
<td class="col-sm-9" </tbody>
style="border-top: 0px;"><?php echo
$lastname . ', ' . $firstname; ?></td> </table>
</div>
</tr> </div>
</div>
<tr> <div class="col-md-
6">
<td class="text-right <div
text-bold">Sex:</td> class="panel panel-primary">
<div
<td><?php echo $sex; class="panel-heading">Service Request
?></td> Details:</div>
<div
</tr> class="panel-body">

<tr> <table class="table">

<td class="text-right <tbody>


text-bold">Address:</td>
<tr>
<td><?php echo
$address; ?></td> <td class="col-sm-4
text-right text-bold" style="border-top:
</tr> 0px;">Subject:</td>

<tr> <td class="col-sm-8"


style="border-top: 0px;"><?php echo
<td class="text-right $subject; ?></td>
text-bold">Contact No:</td>
</tr>
<td><?php echo
$contactNo; ?></td> <tr>

</tr> <td class="text-right


text-bold">Duration:</td>
<tr>
<td><?php echo
<td class="text-right $duration . ' day(s)'; ?></td>
text-bold">Email Address:</td>
</tr>
<td><?php echo
$emailAddress; ?></td> <tr>

</tr> <td class="text-right


text-bold">Expected Salary:</td>
$_SESSION['currentPage'] = 'service-
<td><?php echo request';
$expectedSalary; ?></td> $_SESSION['currentNavigation'] = '';

</tr> if(isset($_GET['x']))
$_SESSION['x'] = $_GET['x'];
<tr>
if(isset($_POST['btnAcceptYes'])){
<td class="text-right $strSql = "UPDATE
text-bold">Details:</td> tbl_assistancerequest SET requestStatus =
'Accepted' WHERE assistanceRequestID = "
<td><?php echo . $_SESSION['x'];
$requestDetails; ?></td> mysqli_query($con, $strSql);

</tr> $sms =
itexmo($_POST['hdnContactNo'], 'Good
<tr> news! The skilled worker accepted your
request. Login to your account to check for
<td class="text-right the details.');
text-bold">Reuest Date:</td> if ($sms == ""){
echo "iTexMo: No
<td><?php echo response from server!!!
$requestDate; ?></td> Please check the
METHOD used (CURL or CURL-LESS). If
</tr> you are using CURL then try CURL-LESS
and vice versa.
Please CONTACT US
</tbody> for help. ";
}
</table> else if ($sms == 0)
</div> echo "Message Sent!";
</div> else
</div> echo "Error Num ". $sms . " was
</div><!--/.row--> encountered!";

</div> header("location:confirm-record-
save.php");
}
<?php include_once("footer.php"); ?>
if(isset($_POST['btnDeclineYes'])){
Service-request-information $strSql = "UPDATE
<?php tbl_assistancerequest SET requestStatus =
session_start(); 'Declined' WHERE assistanceRequestID = " .
include_once("../../function/functions. $_SESSION['x'];
php"); mysqli_query($con, $strSql);
testByPass($_SESSION['sessID']);
$con = databaseConnection();
$sms = }
itexmo($_POST['hdnContactNo'], 'Sorry! }
The skilled worker did not accept your
request. Try to request from a different $strSql = "SELECT * FROM
skilled worker.'); tbl_assistancefinder WHERE
if ($sms == ""){ assistanceFinderID = $assistanceFinderID";
echo "iTexMo: No $rsAssistanceFinder =
response from server!!! getRecord($con, $strSql);
Please check the
METHOD used (CURL or CURL-LESS). If if(isset($rsAssistanceFinder)){
you are using CURL then try CURL-LESS $recAssistanceFinder =
and vice versa. fetchRecord($rsAssistanceFinder);
Please CONTACT US foreach ($recAssistanceFinder as $key
for help. "; => $value) {
} $lastname =
else if ($sms == 0) $value['lastname'];
echo "Message Sent!"; $firstname =
else $value['firstname'];
echo "Error Num ". $sms . " was $sex = $value['sex'];
encountered!"; $address = $value['address'];
$contactNo =
header("location:confirm-record- $value['contactNo'];
save.php"); $emailAddress =
} $value['emailAddress'];
}
$strSql = "SELECT * FROM }
tbl_assistancerequest WHERE
assistanceRequestID = " . $_SESSION['x']; include_once("header.php");
$rsAssistanceRequest = ?>
getRecord($con, $strSql);
<div class="col-sm-9 col-sm-offset-3
if(isset($rsAssistanceRequest)){ col-lg-10 col-lg-offset-2 main">
$recAssistanceRequest = <div class="row">
fetchRecord($rsAssistanceRequest); <ol
foreach ($recAssistanceRequest as class="breadcrumb">
$key => $value) { <li><a
$assistanceFinderID = href="#"><em class="fa fa-
$value['assistanceFinderID']; home"></em></a></li>
$subject = $value['subject']; <li><a
$duration = href="service-request.php">Service
$value['duration']; Request</a></li>
$expectedSalary = <li
$value['expectedSalary']; class="active">Service Request
$requestDetails = Information</li>
$value['requestDetails']; </ol>
$requestDate = </div><!--/.row-->
$value['requestDate'];
<div class="row">
<div class="col-lg- <td><?php echo
12"> $address; ?></td>
<h1
class="page-header">Service Request </tr>
Information</h1>
</div> <tr>
<div class="col-md-
6"> <td class="text-right
<div text-bold">Contact No:</td>
class="panel panel-default">
<div <td><?php echo
class="panel-heading">Assistance Finder $contactNo; ?></td>
Bio:</div>
<div </tr>
class="panel-body">
<tr>
<table class="table">
<td class="text-right
<tbody> text-bold">Email Address:</td>

<tr> <td><?php echo


$emailAddress; ?></td>
<td class="col-sm-3
text-right text-bold" style="border-top: </tr>
0px;">Name:</td>
</tbody>
<td class="col-sm-9"
style="border-top: 0px;"><?php echo </table>
$lastname . ', ' . $firstname; ?></td> </div>
</div>
</tr> </div>
<div class="col-md-
<tr> 6">
<div
<td class="text-right class="panel panel-primary">
text-bold">Sex:</td> <div
class="panel-heading">Service Request
<td><?php echo $sex; Details:</div>
?></td> <div
class="panel-body">
</tr>
<table class="table">
<tr>
<tbody>
<td class="text-right
text-bold">Address:</td> <tr>
<td class="col-sm-4 <td><?php echo
text-right text-bold" style="border-top: $requestDate; ?></td>
0px;">Subject:</td>
</tr>
<td class="col-sm-8"
style="border-top: 0px;"><?php echo <tr>
$subject; ?></td>
<td class="text-right
</tr> text-bold">&nbsp;</td>

<tr> <td>

<td class="text-right <a href="#"


text-bold">Duration:</td> class="btn btn-success" data-toggle="modal"
data-target="#modalAccept"><i class="fa fa-
<td><?php echo thumbs-up"></i> Accept</a>
$duration . ' day(s)'; ?></td>
<a href="#"
</tr> class="btn btn-danger" data-toggle="modal"
data-target="#modalDecline"><i class="fa
<tr> fa-thumbs-down"></i> Decline</a>

<td class="text-right </td>


text-bold">Expected Salary:</td>
</tr>
<td><?php echo
$expectedSalary; ?></td> </tbody>

</tr> </table>
</div>
<tr> </div>
</div>
<td class="text-right </div><!--/.row-->
text-bold">Details:</td>
<div class="row">
<td><?php echo <div clas="col-md-12">
$requestDetails; ?></td> <div class="modal fade"
id="modalAccept" tabindex="-1"
</tr> role="dialog" aria-
labelledby="myModalLabel" aria-
<tr> hidden="true" data-backdrop="static"
data-keyboard="false">
<td class="text-right <div class="modal-dialog">
text-bold">Reuest Date:</td> <div class="modal-
content">
<div class="modal- <h3 class="modal-title"
header"> id="myModalLabel">Web Based Job Finder
<h3 class="modal-title" for Tarlac City</h3>
id="myModalLabel">Web Based Job Finder </div>
for Tarlac City</h3> <div class="modal-body
</div> text-center">
<div class="modal-body <h4><i class="fa fa-
text-center"> thumbs-down"></i> Are you sure you want
<h4><i class="fa fa- to decline this Assistance Request?</h4>
thumbs-up"></i> Are you sure you want to </div>
accept this Assistance Request?</h4> <div class="modal-
</div> footer">
<div class="modal- <form method="post"
footer"> action="service-request-information.php">
<form method="post" <input
action="service-request-information.php"> type="hidden" name="hdnContactNo"
value="<?php echo $contactNo; ?>">
<input <button
type="hidden" name="hdnContactNo" type="button" class="btn btn-primary"
value="<?php echo $contactNo; ?>"> data-dismiss="modal">Cancel</button>
<button
type="button" class="btn btn-primary" <input type="submit"
data-dismiss="modal">Cancel</button> name="btnDeclineYes" value="Yes"
class="btn btn-success">
<input type="submit" </form>
name="btnAcceptYes" value="Yes" </div>
class="btn btn-success"> </div>
</form> <!-- /.modal-content -->
</div> </div>
</div> <!-- /.modal-dialog -->
<!-- /.modal-content --> </div>
</div> </div>
<!-- /.modal-dialog --> </div>
</div>
</div>
<div class="modal fade"
id="modalDecline" tabindex="-1"
role="dialog" aria- <?php include_once("footer.php"); ?>
labelledby="myModalLabel" aria-
hidden="true" data-backdrop="static" Function
data-keyboard="false"> Functions
<div class="modal-dialog"> <?php
<div class="modal- /* CONFIG */
content">
<div class="modal- function base_url(){ //this function
header"> sets the base URL of the website
echo get_base_url();
} function
collapseSideNavigationArrow($navigation,
function get_base_url(){ //this $currentNavigation, $collapse){
function sets the base URL of the website //collpased is arrow left
return 'http://localhost/'; //collpase is arrow down
} if(($navigation ==
$currentNavigation) && ($collapse ==
function TRUE))
testByPass($sessionVariable){ //security return 'collapse';
mechanism that validates if the user did not elseif(($navigation !=
undergo proper login $currentNavigation) && ($collapse ==
if(!isset($sessionVariable)) TRUE))
return 'collapsed';
header("location:http://localhost/"); else
} return 'collapsed';
}
function getDedicatedSMSNumber(){
//function that loads the dedicated mobile function
number for the barangay $con = collapseSideNavigation($navigation,
databaseConnection(); $currentNavigation, $collapse){
$strSql = "SELECT if(($collapse == TRUE) &&
smsNumber FROM ($navigation == $currentNavigation))
tbl_dedicatedsmsnumber"; return 'collapsed';
$rsSMSNumber = else
getRecord($con, $strSql); return 'collapse';
if(isset($rsSMSNumber)){ }
$recSMSNumber =
fetchRecord($rsSMSNumber); function customEcho($x, $length){
foreach ($recSMSNumber as if(strlen($x)<=$length)
$key => $value) echo $x;
$smsNumber = else{
$value['smsNumber']; $y=substr($x,0,$length) . '...';
} echo $y;
}
closeDatabaseConnection($con); }
return $smsNumber;
} function activeNavBar($page,
$currentPage){ //front end
function activeSideBar($page, if($page == $currentPage)
$currentPage){ //misc functions for the side return 'active';
bar else
if($page == $currentPage) return null;
return 'active'; }
else
return null;
} /* DATABASE */
function databaseConnection(){ else
return null;
$con = $mysqli = new }
mysqli("localhost", "root", "",
"tarlaccityjobfinderdb"); function checkExistingRecord($con,
return $con; $strSql){
} $resultSet =
mysqli_query($con, $strSql);
function if(isset($resultSet))
closeDatabaseConnection($con){ return
mysqli_close($con); mysqli_num_rows($resultSet);
} else
return 0;
function getRecord($con, $strSql){ }
$resultSet =
mysqli_query($con, $strSql); function getMobileNumber($con,
$table, $fieldId, $id){
if(mysqli_num_rows($resultSet) > 0) $resultSet = getRecord($con,
return $resultSet; "SELECT contactNo FROM $table WHERE
else $fieldId = " . $id);
return null; $recContactNo =
} fetchRecord($resultSet);
if(isset($recContactNo)){
function countRecord($con, $strSql){ foreach
$resultSet = ($recContactNo as $key => $value) {
mysqli_query($con, $strSql); $contactNo =
return $value['contactNo'];
mysqli_num_rows($resultSet); }
} return $contactNo;
}
function fetchRecord($resultSet){ else
return null;
if(mysqli_num_rows($resultSet) > 0){ }

$i = 0; /* MISC */
while($records =
mysqli_fetch_assoc($resultSet)){ function printStars($rating){
foreach $strStars = '';
($records as $key => $value) {
if($rating == 0){
$arrRecords[$i][$key] = $value; for($x=1; $x<6; $x++)
$strStars .= '<i
} class="fa fa-star gray-star"></i> ';
$i++;
} }
return $arrRecords; else{
} for($x=1; $x<6; $x++){
if($x <=
$rating) function base_url(){ //this function
sets the base URL of the website
$strStars .= '<i class="fa fa-star gold- echo get_base_url();
star"></i> '; }

else function get_base_url(){ //this


function sets the base URL of the website
$strStars .= '<i class="fa fa-star gray- return
star"></i> '; 'https://www.tarlacjobfinder.com';
} }
}
function
return $strStars; testByPass($sessionVariable){ //security
} mechanism that validates if the user did not
undergo proper login
/* SMS */ if(!isset($sessionVariable))
function itexmo($number,$message){
header("location:https://www.tarlacjo
$apicode = "ST- bfinder.com");
RENMA880984_9GS17"; }
$header = "Message From:
http://tarlacjobfinder.com\n\n"; function getDedicatedSMSNumber(){
$message = $header . //function that loads the dedicated mobile
$message; number for the barangay $con =
$url = databaseConnection();
'https://www.itexmo.com/php_api/api.php'; $strSql = "SELECT
$itexmo = array('1' => $number, '2' smsNumber FROM
=> $message, '3' => $apicode); tbl_dedicatedsmsnumber";
$param = array( $rsSMSNumber =
'http' => array( getRecord($con, $strSql);
'header' => "Content-type: if(isset($rsSMSNumber)){
application/x-www-form-urlencoded\r\n", $recSMSNumber =
'method' => 'POST', fetchRecord($rsSMSNumber);
'content' => foreach ($recSMSNumber as
http_build_query($itexmo), $key => $value)
), $smsNumber =
); $value['smsNumber'];
$context = }
stream_context_create($param);
return file_get_contents($url, false, closeDatabaseConnection($con);
$context); return $smsNumber;
} }
?>
Functions_online function activeSideBar($page,
<?php $currentPage){ //misc functions for the side
/* CONFIG */ bar
if($page == $currentPage) return null;
return 'active'; }
else
return null;
} /* DATABASE */
function databaseConnection(){
function
collapseSideNavigationArrow($navigation, $con = $mysqli = new
$currentNavigation, $collapse){ mysqli("localhost", "tarlacjo_admin",
//collpased is arrow left "Pass1234",
//collpase is arrow down "tarlacjo_tarlaccityjobfinderdb");
if(($navigation == return $con;
$currentNavigation) && ($collapse == }
TRUE))
return 'collapse'; function
elseif(($navigation != closeDatabaseConnection($con){
$currentNavigation) && ($collapse == mysqli_close($con);
TRUE)) }
return 'collapsed';
else function getRecord($con, $strSql){
return 'collapsed'; $resultSet =
} mysqli_query($con, $strSql);

function if(mysqli_num_rows($resultSet) > 0)


collapseSideNavigation($navigation, return $resultSet;
$currentNavigation, $collapse){ else
if(($collapse == TRUE) && return null;
($navigation == $currentNavigation)) }
return 'collapsed';
else function countRecord($con, $strSql){
return 'collapse'; $resultSet =
} mysqli_query($con, $strSql);
return
function customEcho($x, $length){ mysqli_num_rows($resultSet);
if(strlen($x)<=$length) }
echo $x;
else{ function fetchRecord($resultSet){
$y=substr($x,0,$length) . '...';
echo $y; if(mysqli_num_rows($resultSet) > 0){
}
} $i = 0;
while($records =
function activeNavBar($page, mysqli_fetch_assoc($resultSet)){
$currentPage){ //front end foreach
if($page == $currentPage) ($records as $key => $value) {
return 'active';
else $arrRecords[$i][$key] = $value;
$strStars .= '<i
} class="fa fa-star gray-star"></i> ';
$i++;
} }
return $arrRecords; else{
} for($x=1; $x<6; $x++){
else if($x <=
return null; $rating)
}
$strStars .= '<i class="fa fa-star gold-
function checkExistingRecord($con, star"></i> ';
$strSql){
$resultSet = else
mysqli_query($con, $strSql);
if(isset($resultSet)) $strStars .= '<i class="fa fa-star gray-
return star"></i> ';
mysqli_num_rows($resultSet); }
else }
return 0;
} return $strStars;
}
function getMobileNumber($con,
$table, $fieldId, $id){ /* SMS */
$resultSet = getRecord($con, function itexmo($number,$message){
"SELECT contactNo FROM $table WHERE
$fieldId = " . $id); $apicode = "ST-
$recContactNo = RENMA880984_9GS17";
fetchRecord($resultSet); $header = "Message From:
if(isset($recContactNo)){ http://tarlacjobfinder.com\n\n";
foreach $message = $header .
($recContactNo as $key => $value) { $message;
$contactNo = $url =
$value['contactNo']; 'https://www.itexmo.com/php_api/api.php';
} $itexmo = array('1' => $number, '2'
return $contactNo; => $message, '3' => $apicode);
} $param = array(
else 'http' => array(
return null; 'header' => "Content-type:
} application/x-www-form-urlencoded\r\n",
'method' => 'POST',
/* MISC */ 'content' =>
http_build_query($itexmo),
function printStars($rating){ ),
$strStars = ''; );
$context =
if($rating == 0){ stream_context_create($param);
for($x=1; $x<6; $x++)
return file_get_contents($url, false, }
$context); ?>

Anda mungkin juga menyukai