Design and Implementation of A Computer Based Payroll System
Design and Implementation of A Computer Based Payroll System
BY
JULY 2018
1
CERTIFICATION
I hereby declare that the work presented herein was done by me and not by a third party. Should
I be convicted of having cheated in this work, I shall accept the verdict of the university.
________________________________________________________________
2
APPROVAL
________________________________________________________________
MRS NJIDEKA C. EKENE-OKAFOR DATE
(SUPERVISOR)
________________________ ______________
DR (MRS) M. N. AGU DATE
(HEAD OF DEPARTMENT)
3
DEDICATION
This project is dedicated to God Almighty, trusting in His ability to see this grow
beyond just a project work to being improved and established; to every promising
individual and organization that believe and work towards giving ourselves and
others a better computer experience and also to computer science students in
Godfrey Okoye University and beyond, trusting that this will serve as an
educational resource and inspiration causing subsequent development and
innovation.
4
ACKNOWLEDGEMENTS
5
various ways whose works/products formed parts of my information source and
data resources.
6
ABSTRACT
This project work ‘Design and implementation of computer based payroll system’ is aimed at
creating a computer based payroll system. payroll is a critical operation for every organization
to pay employee accurately their salary and enrollments on time. The idea of taking control of
employees pay calculations are quite tedious if done manually and require more effort and time
mainly for big organizations. Hence if this process is automated, it would be of great benefit as
it would require less time to calculate the salary of the employees. The software for payroll
management system service on the cloud is provided as a solution in this paper. This system
provides multiple user data access. Each user like employee or HR or admin can login into the
software by writing username and password which are allocated to them from the company It
involves keeping track of hours worked and is capable of keeping a record of employee data
including their pay, allowances, deductions and taxes on monthly bases so that fresh definitions
are reflected from the month onwards, which leaves all the past data intact. The proposed
payroll system is advantageous as it provides a user friendly environment and also increases
security and minimizes human calculation errors. Also, the aim is to automate its existing
manual system by the help of computerized equipments and full-fledged computer software,
fulfilling their requirements, so that their valuable data/information can be stored for a longer
period with easy accessing and manipulation of the same. Basically the project describes how
to manage for good performance and better services for the clients. The model driven
development is adopted because the (MDD) methodology is suitable for the payroll
management system. The design and functions of the computer based payroll system were
implemented with Hyper-text Pre-processor (PHP), Cascading Style Sheet (CSS) and Hyper-
text Mark-up Language (HTML). This study was carried out to first of all to eliminate a manual
payroll system and bringing up a web based payroll system that allows a dedicated payroll
software. A manual system can result in payroll errors and is usually a slow, laborious process.
Web based systems offers a number of advantages, including increased accuracy and speed.
7
TABLE OF CONTENTS
Title Page i
Certification Page ii
Approval Page iii
Dedication Page iv
Acknowledgements Page v
Abstract Page - vi
Table of Contents vii
CHAPTER 1: INTRODUCTION
1.0 Background of the Study 1-2
1.1 Statement of the Problem 3-4
1.2 Objective of the Study 4
1.3 Significance of the Project 4
CHAPTER 2: LITERATURE REVIEW
2.0 Introduction 5
2.1 Theoretical Background 5-12
2.2 Review of Related Literature 12-18
CHAPTER THREE: SYSTEM ANALYSIS AND DESIGN
3.0 Introduction 19-20
3.1 Description of the Existing System 20-21
3.2 Analysis of the Proposed System 24-25
3.3 Design of the Proposed System 33-35
3.4 System Architecture 35-36
CHAPTER FOUR: SYSTEM IMPLEMENTATION
8
4.0 Introduction 40
4.1Choice of Development Environment 40-45
4.2Implementation Architecture 46-47
4.3 Software Testing 48
4.4 Documentation 48-49
4.5 User Manual 49-50
4.6 Source code listing 50
CHAPTER FIVE: SUMMARYAND CONCLUSION
5.0 Summary of Findings 51
5.1 Conclusion 52
5.2 Recommendation 53
REFERENCES 53
APPENDIX A
9
LIST OF FIGURES
Fig 2.1 Sample of phpmyadmin 12
Fig 3.0 Use case diagram 28
Fig 3.1 Activity diagram of employee 29
Fig 3.2 Activity diagram of admin 30
Fig 3.3 Sequence diagram of admin 31
Fig 3.4 UML sequence diagram of the web based payroll system 32
Fig 3.5 Login form 35
Fig 3.6 Index page 35
Fig 3.7 Input Salary Rate 36
Fig 3.8 Salary Rate Changed 36
Fig 3.9 Deduction 37
Fig 3.10 Deduction update 37
Fig 3.11 Add Employee 38
Fig 3.12 Overtime 38
Fig 3.13 Employee page 39
Fig 4.1 PhpMyadmin 43
Fig 4.2 Xampp server 46
Fig 4.3 Implementation architecture 47
Fig 4.4 Admin login flowchart 48
10
LIST OF TABLES
11
CHAPTER ONE:
1.0 INTRODUCTION
A payroll system is software which organizes and arranges all the tasks of
employee payment and the filing of employee taxes. These tasks may include
keeping tracking of hours, calculating wages, withholding taxes and deductions,
Net pay, Payroll software plays several roles for the user, the employees and the
company, such as: giving you supper easy ways to manage employee calendar (e.g,
deduction, and overtime), gives you latest tax updates you when by notifying you
12
when the updates arrive, allows you to quickly and easily generate payslips for all
your employees, serves as a reminder. Payroll also makes deductions from
employees wages for taxes, wage garnishment, health and life insurance, spending
accounts and retirement investments. Payroll works with your accounting
department to ensure that wage deductions and other payroll expenses are paid and
properly reported.
In an organization, there are several departments and each department has a payroll
section to manage its payroll activities. Each section has to perform necessary
personnel operations like data collection and preparation, entry, updates,
monitoring and reporting of data. Many of these existing practices and procedures
need to be reassessed at this time of changing needs, changing demands of
employees and changing technologies So an organization needs an integrated web
based payroll system that would integrate personnel and pay- roll related data
collection, processing in individual departments and payroll audit in a more
efficient and streamlined way. With this computer based payroll system, payroll
section would be able to keep a record of employees including their personnel data,
pay band, allowances, deductions, savings and taxes etc.. Net pay of each
employee is calculated by using the information about his allowances and
deductions. All these complex calculations have been incorporated herein. Many
optional allowances and deductions for the employees are added by specifying the
corresponding details. The individual pay slips and deduction vouchers are printed
out as a receipt. Pay bands, grade pay, allowances, deductions and tax information
are updated if there is an amendment in salary structure.
A payroll is a list of the employees and the payments due to each employee for a
specific pay period. A pay period is the amount of time over which an employee is
13
paid. Most businesses use weekly, biweekly (every two weeks), semimonthly
(twice a month), or monthly pay periods.
The payroll is a major expense for most companies. To ensure accurate records,
most business set up a payroll system for recording and reporting employee
earning information.
Payroll is an application that lends itself well to the computer because of its
repetitive procedures and calculation. A Web based payroll system can perform the
same basic function as those performed manually by payroll clerk. The important
differences are the computer’s speed, accuracy, reliability, and ability to easily
generate reports. In a web based payroll system, the computer stores data such as
an employee’s name, address, social security number, marital status, number of
withholding allowances, pay rate and voluntary deductions. At the end of each pay
period, the operator enters all payroll transaction data, such as regular and overtime
hours for each employee and deduction into the computer. The computer calculates
all withholding taxes and other deductions and accumulates and updates the
earnings and withholdings.
1.2 Statement of Problem
14
2. Difficulty in handling personnel records and inaccessibility of information when
needed
3. Overpayment/Underpayment of salaries
4. Delay in payment of staff salaries because too much time is spent in preparation
of the payroll.
5. The use of paper to keep pay details about each employee which results in too
much paper work.
1.3. Objective of Study
The objectives of this study is to design a computer based payroll system for an
organization.
The purpose of this study is to have a better service for the employee and
less error for their payroll system.
15
The study will aid in reducing errors, fraud, increase speed and also aid
growth in organizations if successfully implemented. Manual payroll systems in
organizations will be totally eliminated with this Web based system in place.
CHAPTER TWO:
LITERATURE REVIEW
2.0 Introduction
This chapter summarizes the evaluation of the literature relevant to the web based
payroll system. The purpose of this project web based payroll system is to
eradicate the manual payroll system and bring up the web based payroll for
employee record accuracy and easy calculating of basic salary and allowance of
staff. This tends to change the manual system totally.
This project was built with web technologies which are HTML, CSS, PHP, and
wamp server, where relational database was integrated (MySQL and
(PhpMyAdmin) having Apache as the engine controller.
Every html tag in the web document has a function it does on the web browser,
For example:
<html>
<head>
16
<title>Computer based payroll system</title>
</head>
<body bg color =”blue”>
<h2 align=“center” > Computer based payroll system<br>
/><br/>by<br/><br/>Onyia Solomon chiedozie</h2>
</body>
</html>
This will display a title web based payroll system at the top of the web page and
the main page; Computer based payroll system by Onyia Solomon chiedozie, A
form was designed to collect the data from user which involves: employee no,
surname, first name, middle name, etc which when entered and submitted with the
submit button that sends the data to a browser, and into the relational database to
hold the data.
HTML is the major tag, which forms the visual website that is used to create forms
and specify a location onto which a particular portion is mapped inside a web page
Example
<div class="container">
<section id="content">
<form action="" method="post">
<h1>Login Form</h1>
<div>
<input name=username type="text" placeholder="Enter Username" required>
<!-- <input type="text" placeholder="Username" required=""
id="username" /> -->
</div>
<div>
17
<input name=password type="password" placeholder="Enter Password"
required>
<!-- <input type="password" placeholder="Password" required=""
id="password" /> -->
</div>
<div>
<input type="submit" value="Log in" />
<!-- <a href="index.php">Back to Home</a> -->
<!-- <a href="">Forgot password?</a> -->
</div>
</form><!-- form -->
</section><!-- content -->
</div><!-- container -->
The html and php complete login codes
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<script>
<!--
var ScrollMsg= "Computer based Payroll Management System - "
var CharacterPosition=0;
18
function StartScrolling() {
document.title=ScrollMsg.substring(CharacterPosition,ScrollMsg.length)+
ScrollMsg.substring(0, CharacterPosition);
CharacterPosition++;
window.setTimeout("StartScrolling()",150); }
StartScrolling();
// -->
</script>
</head>
<?php
require('db.php');
session_start();
if (isset($_POST['username']))
$username = $_POST['username'];
19
$password = $_POST['password'];
$username = stripslashes($username);
$username = mysqli_real_escape_string($username);
$password = stripslashes($password);
$password = mysqli_real_escape_string($password);
$rows = mysqli_num_rows($result);
if($rows==1)
{
$_SESSION['username'] = $username;
header("Location: index.php");
}
else
{
?>
<script>
window.location.href='login.php';
</script>
20
<?php
else
?>
<br><br><br><br><br><br><br><br>
<div class="container">
<section id="content">
<h1>Login Form</h1>
<div>
</div>
<div>
21
</div
<div>
</div>
<?php } ?>
</body>
</html>
The HTML tag above when previewed on the browser appears on the screen as
follows
Username
Password
Submit
The division (Div) positions and held every site layout. Cascading style
22
Sheets 3 (CSS3) is a style sheet language used for describing the look and
formatting of a document written in a markup language.
PHP is a server side scripting language created in 1995 and designed for web
development, but also used as a general purpose programming language. PHP
code were used to send the collected data from the user to MySQL relational
database. PHP runs on numerous varying platforms including Windows, Linux,
Unix, Mac OS X, and so on. PHP is compatible with almost any modern server.
Such as apache, IIS. And more PHP supports a wide range of database.
Fig. 1 phpMyAdmin
The importance of this review is to make known of some other research made in
relevance to the project topic. Many researchers have made some findings on how
this problem can be solved and achieve the objective of the topic. Nowadays, many
payroll system implemented in different companies here in the Nigeria because
23
payroll system is one of the most important in establishing a business firms on how
you provide the right and appropriate benefits for the employees in the company.
Business firms must operate within the boundaries of laws and government
regulations, Laws have been developed not only to protect consumers but also to
promote competition among business and industries. Over Half a century on, it’s
fair to say that payroll is now one of the most commonly automated business
operations; and certainly the most frequently the most used HR Solution that
maintaining payroll record is one of the most important financial tasks in any
business.
24
for the manager decision making. With this idea, the proponents conducted a study
for the development of software that can minimize data redundancy, inconsistency,
and manipulation. Employees can view their current pay and review their
information from the database. And with updating of the reports that can be viewed
through the internet, the manager can view the recent activities within the proposed
system.
25
an application that enables users to create and store Employee Records. This
application also provides a facility which enables an administrator or an employee
to generate a Pay slip. This application is helpful to the organization as it maintains
data of employees related to that organization. PHP is used to create this
application as it is a platform independent language and can be used on a
standalone machine as well as on a distributed network. Furthermore applications
developed in php can be extended to Internet based applications. Thus php was
chosen to do the front end task to design this application.
It can be easily handled by the person who has basic knowledge of computer
because it provides a user friendly environment, its hardware and software
configuration is not very expensive.
26
According to a blogged article in blastasia.com (2007), says that “a web based
payroll system is designed to help human resource professional as well as finance
and accounting personnel to manage employee compensation, deductions,
allowances, and benefits in an organization.
Also related study of Amrit Kadam ( Aug 13, 2014) are include the study entitled
College Payroll System & Taxation the purpose of this study is to aim of
developing Employee Payroll Management is to provide an easy way not only to
automate all functionalities involved managing leaves and Payroll for the
employees of College, but also to provide full functional reports to management of
College with the details about usage of leave facility & even deduction of income
tax & related taxes can be done by this system. Payroll system is the heart of any
Human Resource System of an organization. The solution has to take care of the
calculation of salary as per rules of the College, income tax calculation and various
deductions to be done from the salary including statutory deductions like Income
tax and provident fund deductions. It has to generate pay-slip, cheque summary
and MIS reports. It is understood that we are tired of managing thousand of odd
papers, payslips, payroll reports, and salary details and so on. Imagine that we have
a payroll processing system which will generate our pay slips and payroll reports
within seconds. We can help others automated your payroll system by developing a
customized payroll application that suits your specific requirements.
27
Automatic import of employee hours with the optional Time & Attendance module
or other third party time clock systems.
Supports an unlimited number of employees, user defined pay groups, pay types,
deductions and benefits.
Report payroll taxes for multiple federal tax IDs Regular federal, state, and EIC tax
table updates.
Additional user defined tax tables to meet additional unique tax requirements
Multiple state/province capable
Timecard and payroll review to edit and confirm payroll information prior to
printing checks or posting payroll
Flexible direct deposit and electronic bank transactions allow multiple payment
options and export file generation. Links with the Enterprise IQ
Workforce modules to help maintain and track accruals such as vacation, paid
holidays and sick days.
Extensive built-in payroll reports help track wage, benefit and tax history
Enhanced security allows access rights to be granted to specific pay groups
Supports customization to meet your unique payroll requirements.
29
CHAPTER THREE:
3.0 Introduction
In this chapter, the analysis and choice of method used in this research work, will
be analyzed from the existing system and design. It includes specific methods
Which were used in order to achieve the aim of the research work, particular
requirements for implementation of the project and clear explanation of reasons
why such method were used for design and implementation of the system, also
included is a brief description of the current system of computer based payroll
system.
METHODOLOGY
31
3.1 Description of the Existing System
There is inadequate security, especially for your most private information, if you
process your employees’ payroll on a spreadsheet could easily result in data loss or
corruption
The use of spreadsheets to process payroll will result in the quick accumulation of
multiple sheets and files as you need different documents for employee
information, payroll, leave, claims and other data. In contrast, an automated payroll
32
system will store all your records in one place and the different processes can be
seamlessly integrated with one another, saving time and effort.
3.Tendency of errors
When approvals aren’t granted in time, payments end up being delayed, causing
significant rework with out of cycle payments and creating frustrations among
employees.
A big benefit of a modern cloud based system is its ability to redirect workflow,
put auto escalations in place and enable approvers to log in remotely to approve.
It’s a simple fact that manual payroll processes suck up time and are rife with
inefficiencies.
Switching to the cloud significantly reduces the time your payroll team is spending
on unnecessary admin and data entry, freeing them up to perform other business
functions, while switching from paper to digital payslip distribution reduces waste
and provides further savings.
33
A self-service model in which staff can access their payslips, update their details
and apply for leave remotely and without the need for a paper trail reduces the
admin burden even further - all of which should have a positive effect on your
bottom line.
Manual payroll functions are typically owned and understood by one or just a
handful of people.
But newsflash: we don’t live in an ideal world. The reality is that things get
missed, forgotten, overlooked - and by the time they’re discovered, the damage has
already been done.
While there are some who believe that storing highly sensitive data remotely is a
security risk, the truth is that your data is far more vulnerable and open to misuse
in a manual system.
Modern cloud payroll systems offer the highest security standards available, which
means your data is stored on secure servers while still giving you the added
34
convenience of remote access and all the benefits that brings - such as online and
smart phone time sheeting, approvals and payslip access.
When you run payroll yourself, you have to make sure you use updated tax rates.
It’s easy to use out-of-date rates. Taxes are constantly being changed.
If you do run payroll by hand, you need to check constantly for tax rate updates.
Missing one update will cause you to withhold and remit the wrong amounts.
Using incorrect employment tax rates can result in penalties.
In an organization, there are many departments and each department has a payroll
section to manage its payroll activities. Each section has to perform necessary
operations like data collection and preparation, entry, updates, monitoring and
reporting of data. Many of these existing practices and procedures need to be
reassessed at this time of changing needs, changing demands of employees and
changing technologies. With this payroll system, payroll section would be able to
keep a record of employees including their personnel data, pay slips, allowances,
deductions, leave, savings and taxes etc.. Net pay of each employee is calculated
by his allowances and deductions mentioned according to the company rules. The
individual pay slips are printed out as a receipt if employee wants to get a print out
Pay bands, grade pay, allowances , deductions and tax information are updated if
there is any amendment in salary structure. The computer based payroll application
is a web based design.
35
Web based payroll system enables you to store unlimited data while managing the
data as well. Accounting software processes data and creates reports much faster
than manual systems. Web based payroll Minimum errors as automatic or
computerized calculations are done. Expenses associated with accounting software
include training and program maintenance. Expenses can add up fast with costs for
printers, paper, ink and other supplies Productivity is higher than manual payroll as
employees get their salary early as calculations are done on regular basis. No paper
work is required as data is stored in the database. So, it is less bulky. It is more
efficient than the manual payroll. A manual payroll means that you will be
required to hire a team of professionals who will do every accounting and payroll
task by hand, a web based one will be operating automatically to keep track of
employee performance, attendance, and bonus data. With a payroll system. All
your puches and swipes can be directly stored on the system. It can even separate
regular work hours from overtime, calculate different numerations, and deduct
taxes. This leaves no room for error, which can’t be said the same for manual
payroll system, which is prone to miscalculations and mistakes. From basic
documentation of each employee’s performance, attendance, pay, to monthly
deductions, these systems save lots of time and money. A web based payroll
system can even generate annual/quarterly wage reports, tax, deduction reports,
payroll reports, direct deposit options, and paychecks processing. Payroll systems
even make it easier to organize essential payroll information. All of your records
can be accessed and organized easily and you don’t have to deal with the piles of
folders and papers to find what you are looking for. One of the best things about
using payroll systems is that there is no need for business to buy expensive
hardware. This can prove to be of great use for small organizations that want to
grow and take advantage of the same features large enterprises use.
36
Cost- The cost of a web based payroll depends on your organization and the type
of software you need. For many organizations, the payroll software may be
integrated with other business applications that also handle management and
accounting functions. Smaller businesses can invest in off-the-shelf, low-end
software designed only for a few functions, such as payroll, invoicing and financial
reporting. Mid-market software typically serves organizations that must comply
with national accounting standards. High-end payroll software may be part of a
larger enterprise resource planning software package that can be tailored to the
needs of the particular company.
Time-keeping Transportation
Hourly workers are paid according to hours worked during the pay period. The
employer uses a time-keeping system to track hours and pay hourly employees
accordingly. It is critical, therefore, that each employee’s time is computed
accurately. Many employers use a time clock to track work hours. A manual
payroll system requires computing the time clock data by hand; this increases the
likelihood of mistakes.
The automated time-keeping system allows the employer to import time clock data
into payroll software. Specifically, the employee uses a swipe card or badge, or the
handprint or fingerprint method, to clock in and out. Once the entries are
transported into the payroll software, the software computes the time worked. All
the payroll staff member has to do is ensure the time is transported appropriately
and make the necessary edits.
Payment Calculation
37
The computer based payroll system uses payroll software to compute all wages.
Payroll software, such as QuickBooks, PenSoft, Z-Pay, Ultipro and Sage Peachtree
calculate gross-to-net earnings based on the data the payroll representative inputs.
Therefore, the result depends on the accuracy of the input. Thus, if a terminated
employee is due severance pay but the payroll representative neglects to make the
entry, the system will not pay it. Typically, the system is reliable so long as the
entries are correct.
The automated system performs all types of payments: hourly, overtime, double-
time, salaries, commissions, bonuses, pay raises, retroactive pay, wage deductions,
auto payments and tuition reimbursements. Notably, the automated system
eliminates manual pay check writing. The system automatically generates pay
checks and stubs and enables direct deposit.
Deduction Calculation
Salary and wage deductions are a necessary part of payroll processing. The
employer must take mandatory withholding from employee pay checks, including
federal income tax, Social Security tax, Medicare tax and usually state income tax.
These taxes can be time-consuming and perplexing to compute manually. A
number of rules are attached to withholding tax calculations. With an automated
payroll system, the software has the tax rates hard-coded in the system. It
calculates the withholding tax for each employee based on the withholding
conditions data input. This reduces the likelihood of payroll tax errors, which can
result in fees from the IRS and the state taxation agency.
38
The use case diagram of the proposed system shows all the actors that must play in
their respective roles in order for the proposed system to function according to its
standard design specification. A user case is an activity, operation or function
which an actor of the proposed computer based payroll system will have to
perform within its designated class and sub system. The major actors of the system
include the employee and Admin.
Maintain employee
details
Administrator
Maintain salary
details
Report generation
39
View salary details
The activity diagram in (fig 3 and 3.1) shows the representation of the activities in
employee’s end and administrator’s end. The activity diagram used geometric
symbols and arrows to represent the implementation of the Computer based payroll
system.
Employee
login
Employee verification
Suppose 40
d user?
No
Yes
Logout
Login
Invalid
Valid
Log out 41
Fig. 3.2: Activity diagram of admin
42
Login page Forget password Verification Database Authenticate page
Admin
Save/update
payroll
Manage payroll
List/Delete List/delete
Salary Employee
Manage employee
Details
system
The database is designed with Mysql. The following are the tables in the database.
44
Table 3.2: Deductions Table
46
3.3 Input design
47
Fig. 3.5: Login form
49
Fig. 3.9: Deduction
50
Fig. 3.11: Add Employee
51
Fig. 3.13: Employe page
52
CHAPTER FOUR:
SYSTEM IMPLEMENTATION
4.0 Introduction
The system was implemented using HTML as the front end, PHP as the server side
programming tool, Apache as the middleware and MySQL database as the
backend.
The development tools are the necessary requirement tools used during the design
to enable us achieve the system design. The listed packages was used because of
their features, accessibility and effectiveness.
Notepad++
MySQL Database Server- MySQL is a popular choice of database for use in web
applications, and is a central component of the widely used LAMP open source
53
web applications software stack LAMP is an acronym for Linux, Apache, MySQL,
Perl/PHP/Python/JSP. The MySQL Database powers the most demanding Web, E-
commerce and Online Transaction Processing (OLTP) applications. It is fully
integrated transaction safe ACID compliant database with full commit rollback,
crash recovery and row level locking capabilities. MySQL delivers the ease of use,
scalability and performance that has made MySQL the world’s most popular open
source database.
phpMyadmin-
PHP- PHP is a script language and interpreter that is freely available and used
primarily on Linux Web servers. PHP, originally derived from Personal Home
Page Tools, now stands for PHP: Hypertext Preprocessor which the PHP FAQ
describes as a "recursive acronym." PHP executes on the server, while a
comparable alternative, JavaScript, executes on the client. PHP is an alternative to
Microsoft's Active Server Page (ASP) technology. As with ASP, the PHP script is
embedded within a Web page along with its HTML. Before the page is sent to a
54
user that has requested it, the Web server calls PHP to interpret and perform the
operations called for in the PHP script.
<!DOCTYPE html>
<html>
<body>
<?php
echo "My first PHP script!";
?>
</body>
</html>
An HTML page that includes a PHP script is typically given a file name suffix of
".php" ".php7," or ".html". Like ASP, PHP can be thought of as "dynamic HTML
pages," since content will vary based on the results of interpreting the script.
Below is an example of HTML used to define a basic webpage with a title and a
single paragraph of text.
<!doctype html>
<html>
<head>
55
<title>computer based payroll</title>
</head>
<body>
<p>This is an example of a paragraph in HTML.</p>
</body>
</html>
The first line defines what type of contents the document contains. "<!doctype
html>" means the page is written in HTML5. Properly formatted HTML pages
should include <html>, <head>, and <body> tags, which are all included in the
example above. The page title, metadata, and links to referenced files are placed
between the <head> tags. The actual contents of the page go between the <body>
tags.
The web has gone through many changes over the past few decades, but HTML
has always been the fundamental language used to develop webpages.
Interestingly, while websites have become more advanced and Interactive, HTML
has actually gotten simpler. If you compare the source of an HTML5 page with a
similar page written in HTML 4.01 or XHTML 1.0, the HTML5 page would
probably contain less code. This is because modern HTML relies on cascading
style sheets or JavaScript to format nearly all the elements within a page.
56
HTML pages are fine for displaying static content, e.g. a simple image or text.
However, most pages nowadays are rarely static. Many of today’s pages have
menus, forms, slideshows and even images that provide user interaction. Javascript
is the language employed by web developers to provide such interaction. Since
JavaScript works with HTML pages, a developer needs to know HTML to harness
this scripting language’s full potential. While there are other languages that can be
used for scripting on the Web, in practice it is essentially all Javascript.
There are two ways to use JavaScript in an HTML file. The first one involves
embedding all the JavaScript code in the HTML code, while the second method
makes use of a separate JavaScript file that’s called from within a Script element,
i.e., enclosed by Script tags. JavaScript files are identified by the .js extension.
Although JavaScript is mostly used to interact with HTML objects, it can also be
made to interact with other non-HTML objects such as browser plugins, CSS
(Cascading Style Sheets) properties, the current date, or the browser itself. To write
JavaScript code, all you need is a basic text editor like Notepad in Windows, Gimp
in Linux, or BBEdit. Some text editors, like BBEdit feature syntax highlighting for
JavaScript. This will allow you easily identify elements of JavaScript code. The
latest versions of Internet Explorer, Firefox, and Opera all support JavaScript.
Xamp server-
57
Fig. 4.1 Xamp server
58
4.2 IMPLEMENTATION ARCHITECTURE
Home
Login
Admin Employee
Employee payroll
management Employee profile
Personal
details
Update profile
View salary
Deduction
updating
mmmmSalary updating Overtime rate
Change password
View payment
status/history
Netpay
59
4.2.1 Admin Login Diagram of the proposed system
This is a login activity diagram of the computer based payroll system, which shows
the flows of login activity, where admin will be able to login using their username
and password. After login user can manage all the operations on the Employee,
Salary, payments, etc. The diagram below helps demonstrate how the login page
works in a computer based payroll management system. The user will not be able
to access the employee, salary and payments pages without verifying their identity.
Admin is
registered
Admin
Login ID and
Invalid login
Check
password
Login
End Functionalities
according to
Fig. 4.3: Admin Login Diagram of the proposed system
60
4.3 SOFTWARE TESTING
During the development of the system, the application undergoes two phases of
testing firstly, testing done during development phase. This testing includes
* Syntax error testing: this method of testing is used to used to check all the syntax
errors during the software development
*Compatibility testing: the testing is used to determine whether all the languages
used during the programming were well integrated with each other.
*Logically testing: this is the argument involved during the programming. This
will check whether the argument is accepted by the system or not.
Secondly, testing them by running the software on realistic form. This testing
includes
* Running the application in its fullness using a local server each as wamp server,
Xamp server, lamp server and so on that have local host which is using Apache as
engine and MYSQL as the database
*Browser testing: this testing is used to test the appearance and shape of the
software on the browser. This testing also replaces system testing in desktop
application.
4.4 DOCUMENTATION
This system was built with basic HTML tags, PHP, CSS and MySQL language,
they are all open source program that allows modification to take place in future.
HTML: This is an acronym for Hyper Text Makeup Language. It is a language for
describing the web pages. Html form elements are elements that allow the user to
enter information (like text fields, text area fields, drop-down menus) in a form
61
CSS: CSS (Cascading Style Sheets) properties, the current date, or the browser
itself. To write JavaScript code, all you need is a basic text editor like Notepad in
Windows, Gimp in Linux, or BBEdit. Some text editors, like BBEdit feature
syntax highlighting for JavaScript. This will allow you easily identify elements of
JavaScript code. The latest versions of Internet Explorer, Firefox, and Opera all
support JavaScript.
PHP: PHP- PHP is a script language and interpreter that is freely available and
used primarily on Linux Web servers. PHP, originally derived from Personal
Home Page Tools, now stands for PHP: Hypertext Preprocessor which the PHP
FAQ describes as a "recursive acronym." PHP executes on the server, while a
comparable alternative, JavaScript, executes on the client. PHP is an alternative to
Microsoft's Active Server Page (ASP) technology. As with ASP, the PHP script is
embedded within a Web page along with its HTML. Before the page is sent to a
user that has requested it, the Web server calls PHP to interpret and perform the
operations called for in the PHP script.
MySQL: This is my serial query language. It uses a standard form of well known
SQL data language. Different data types were used in this project. It was used
alongside with PHP to create and submit forms used in the software.
63
CHAPTER 5:
SUMMARY AND CONCLUSION
SUMMARY
Computer based payroll system enables you to store unlimited data while
managing the data as well. Accounting software processes data and creates reports
much faster than manual systems. Web based payroll Minimum errors as
automatic or computerized calculations are done. Expenses associated with
accounting software include training and program maintenance. Expenses can add
up fast with costs for printers, pa per, ink and other supplies Productivity is higher
than manual payroll as employees get their salary early as calculations are done on
regular basis. No paper work is required as data is stored in the database. So, it is
less bulky. It is more efficient than the manual payroll.
CONCLUSION
This computer based Payroll system is accessible on the internet and calculates,
maintains and records the payroll information of employees.
Update existing employees pay, view reports. The system is user friendly.
Whenever there is an error in entering data, it immediately shows an error. The
application is equipped with tools for updating salary records, deductions, net pay,
64
add new allowances, leave appraisal or request deduction and savings and many
other features that are easy to be operated by users. The system has also provision
for full salary history including all payroll elements and changes that have been
implemented. The prototype web based payroll system is complete in it self and
ready to be implemented but changes and growth in requirements will be a reality
on every software project so there is need to timely update them. The same applies
to this payroll system.
RECOMMENDATIONS
Based on the previous chapter discussions, there are some weaknesses in the web
based payroll system and some recommendations are needed to be able to
overcome the weaknesses. Hopefully, these recommendations can be useful.
3. Finally, I recommend that companies that use a web based payroll system should
have a good HR management and also a good Admin that will manage and update
the system always and accurately.
65
REFERENCES
[9] www.slideshare.net/SavioAberneithie/payroll-management-system-
complete-report.
66
APPENDIX A
SOURCECODE INDEX PAGE
<?php
include("auth.php"); //include auth.php file on all secure pages
include("add_employee.php");
?>
<?php
$select_db = mysqli_select_db('payroll');
if (!$select_db)
{
die("Database Selection Failed" . mysqli_error());
}
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<script>
<!--
var ScrollMsg= "Payroll Management System - "
var CharacterPosition=0;
function StartScrolling() {
document.title=ScrollMsg.substring(CharacterPosition,ScrollMsg.length)+
ScrollMsg.substring(0, CharacterPosition);
CharacterPosition++;
if(CharacterPosition > ScrollMsg.length) CharacterPosition=0;
window.setTimeout("StartScrolling()",150); }
StartScrolling();
// -->
</script>
68
<link href="assets/must.png" rel="shortcut icon">
<link href="assets/css/justified-nav.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="masthead">
<h3>
<b>Computer based Payroll System</b>
<a data-toggle="modal" href="#colins" class="pull-right"><b><?php echo
$_SESSION['username']; ?></b></a>
</h3>
<nav>
<ul class="nav nav-justified">
<li><a href="home_employee.php">Employee</a></li>
<li><a href="home_deductions.php">Deduction/s</a></li>
<li><a href="home_salary.php">Income</a></li>
</ul>
</nav>
</div><br>
70
<!-- this modal is for my Colins -->
<div class="modal fade" id="colins" role="dialog">
<div class="modal-dialog modal-sm">
</div>
</body>
</html>
72
73