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.
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
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
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.
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
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
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
FEEDBACK
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 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
C. Design of Software
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 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.
F. Software Evaluation
APPENDIX A
SOURCE CODE
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>
<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>
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">
<tr>
<th class="col-
sm-2">Date Sent</th>
echo '</tr>';
}
</tr>
}
</thead>
else{
<tbody>
echo
'<tr>';
<?php
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">×</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(){
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>
</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> ?>
echo '</tr>';
echo '<td class="text-center">' .
printStars($value['skilledWorkerRating']) . }
'</td>';
}
else{
}
<th class="col-
?> sm-3">Subject</th>
<th class="col-
</tbody> sm-7">Message</th>
</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">
<div class="panel-body">
</div>
<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 = '';*/ }
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">
<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>';
</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> 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>
</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> '; }