Payroll Management System Database Project
Payroll Management System Database Project
MANAGEMENT SYSTEM
1
CONTENTS
1. Abstract 1
2. Introduction 1
3. Purpose 1
4. Modules 2
5. Advantage 2
6. Disadvantage 2
7. Feasibility Study 3
8. Project Category: Web Based Application 4
9. Use Case Diagram 5
10. Sequence Diagram 6
11. Data Flow Diagram(DFD) 7
12. Entity Relationship Diagram 8
13. User Interface Snapshots 9-13
14. Database Tables 14-18
15. Sample Codes 19-30
16. Features of Employee Database and Payroll Management System 31
17. Future Scope Of this Work 31
18. Conclusion 31
19. Bibliography 32
2
Abstract:
“Employee Database And Payroll Management System” is designed to make the existing
manual system automatic with the help of computerised equipment and full-edged computer
software, fulfilling their requirements, so that their valuable data and information can be stored
for a longer period with easy access and manipulation of the same. The required software is
easily available and easy to work with. This web application can maintain and view
computerised records without getting redundant entries. The project describes how to manage
user data for good performance and provide better services for the client.
3
Introduction
The proposed project “Employee Database and Payroll Management System” has been
developed to overcome the problems faced in the practicing of manual system. This software is
built to eliminate and in some cases reduce the hardships faced by the existing system.
Moreover this system is designed for particular need of the company to carry out its
operations in a smooth and effective manner.
This web application is reduced as much as possible to avoid errors while entering data. It also
provides error message while entering invalid data. It is user-friendly as no formal knowledge is
required to use the system.
Human resource challenges are faced by every organization which has to be overcome by the
organization. Every organization has different employee and payroll management needs.
Therefore I have design exclusive Employee and payroll Management System that are adapted
to the organization’s Managerial Requirements.
4
Need for the study
The purpose of this document is to describe the functionality and specifications of the design
of a web application for Managing Employees and their payroll. The expected audiences of this
document are the developers and the admin of the web application. Now with the help of this
system the admin has the information on his finger tips and can easily prepare a good record
based on their requirements.
Finally, we can say that this system will not only automate the process but save the valuable
time of the manager or the admin, which can be well utilized buy his institute. This will be an
additional advantage and management of power based on their free time from his normal duty.
5
Modules:
Admin
The Admin gets logged in by valid username and password. Admin can add new Employee, add
new Department, add new Pay Grade for the employees. Admin can set the ‘from’ and ‘to’ date
worked by an employee in a department with specific pay grade. The Admin can generate an
automated monthly salary of an employee. The admin can view all the past records of any
recorded employee.
Advantages
It is cost effective as the user control the web application himself and does not go for
professional service.
It saves time as it speeds up every aspect of the employee database management and
payroll process with a range of automated features.
It is secure as the employee database and the payroll process is managed by the admin
in house rather than sending private information to a third party.
Validating procedures and checks restrict user from making mistakes.
The software is easy to use and is user friendly so no expertise is required.
The calculations are automated so no chance of error.
Disadvantages
It requires an internet connection.
It requires large database.
6
FEASIBILITY STUDY
After identifying the scope of the project, the feasibility study is needed to be carried out. It is
basically keeping the following points in mind.
Building the software for meeting the scope: This software has met the scope. As there is no
data involved in the system, processing on the file, and the behaviour of this project is already
identified and bundled in quantitative manner.
The processing of this software is very simple as it has been designed in php and it has
been well divided into several functions according to the need.
Technically feasible: This software is very much technically feasible. This software is very much
concerned with specifying equipment and the software will successfully satisfy almost all the
admin’s requirements. The technical need for this system may vary considerably but might
include:
a. The facility to produce output in a given time.
b.Response time under certain conditions.
c. Ability to process data at a particular speed.
Therefore, the basic input/output of data is identified. So, the project can easily be build up and
it will also be technically feasible.
State of Art: The project is very much within the state of art since the project is a WINDOWS
based; it uses very modern and common technique.
Beside it is very much modern and user friendly. It also works as middleware i.e. only in
between the user and the file. So, it is completely a state of art project.
Financially Feasible: The project is very much financially feasible. The implementation and
development cost of this software under the reach of any college.
Moreover, it requires some training for the use. So, training cost can be neglected and
the resources of this software are very much available. It also reduces the labour and extra cost
to be paid for labour. So indeed, it is financially feasible.
Resources: As motioned earlier that the resources are easily available and the cost of training is
almost negligible. Sometimes situations may arise when it may not be so much easy. For a
person completely unaware of using a computer system could result in a training cost or for a
very small organization the purchase of a computer, instalment of the system and other
charges may lead to a difficult matter.
7
Project Category: Web-Based Application
Available Technologies:
Tools Used:
Hardware Used:
8
Use Case Diagram:
9
Sequence Diagram;
Successfully logged in
10
DFD(Data Flow Diagram)
Level 0
Level 1
11
Entity Relationship Diagram(ERD)
12
Screenshots
Login Page:
13
Welcome Page:
14
Department Details Page:
15
Grade Details Page:
16
Employee Report Page:
17
Database Tables:
User Table Database Structure:
18
Grade Table Database Structure:
19
Employee Table Database Structure:
20
Employee Grade Details Table Database Structure:
21
emp_basic(int) Enter the amount of the basic.
22
SAMPLE CODES
Index.php
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<style>
input[type=text], input[type=password] {
width: 100%;
margin: 8px 0;
display: inline-block;
box-sizing: border-box;
button {
background-color: #4CAF50;
color: white;
margin: 8px 0;
border: none;
cursor: pointer;
23
width: 100%;
button:hover {
opacity: 0.8;
.cancelbtn {
width: auto;
background-color: #f44336;
.imgcontainer {
text-align: center;
position: relative;
img.avatar {
width: 40%;
border-radius: 50%;
.container {
padding: 16px;
span.psw {
float: right;
24
padding-top: 16px;
.modal {
*/ left: 0;
top: 0;
padding-top: 60px;
/* Modal Content/Box */
.modal-content {
background-color: #fefefe;
margin: 2% auto 10% auto; /* 5% from the top, 15% from the bottom and centered */
.close {
position: absolute;
right: 25px;
top: 0;
color: #000;
25
font-size: 35px;
font-weight: bold;
.close:hover,
.close:focus {
color: red;
cursor: pointer;
.animate {
@-webkit-keyframes animatezoom {
to {-webkit-transform: scale(1)}
@keyframes animatezoom {
to {transform: scale(1)}
/* Change styles for span and cancel button on extra small screens */
span.psw {
display: block;
float: none;
26
.cancelbtn {
width: 100%;
.button {
background-color: #000000;
color: #FFFFFF;
padding: 10px;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
margin:10px
.small-btn {
width: 50px;
height: 25px;
.medium-btn {
width: 70px;
height: 30px;
.big-btn {
width: 180px;
height: 40px;
</style>
<?php
include("header12.php");
27
include("dbconnect.php");
extract($_POST);
if(isset($submit))
if(mysql_num_rows($rs)<1)
$found="N";
else
$_SESSION[login]=$username;
header("Location: welcome.php");
?>
</head>
<body>
<center>
</br></br></br>
<br>
</center>
28
<div class="imgcontainer">
</div>
<div class="container">
<label for="uname"><b>Username</b></label>
<label for="psw"><b>Password</b></label>
<!-- <label>
</label>-->
</div>
</div>
</form>
</div>
29
<form class="modal-content animate" method="post" action="">
<div class="imgcontainer">
</div>
<div class="container">
</div>
</form>
</div>
<script>
it window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
</script>
30
Welcome.php
<?php
session_start();
include "header.php";
?>
<!doctype html>
<html>
<head>
<style>
.button {
background-color: #000000;
color: #FFFFFF;
padding: 10px;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
margin:10px
.small-btn {
width: 50px;
height: 25px;
.medium-btn {
width: 70px;
height: 30px;
.big-btn {
31
width: 250px;
height: 40px;
</style>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body class="bg">
<center>
<br>
</form>
<br>
<form action="dep_master.php">
</form>
<br>
<form action="grad_master.php">
</form>
<br>
<form action="emp_grad_detail.php">
</form>
32
<br>
<form action="salary_detail.php">
</form>
<br>
<form action="report.php">
</form>
</table>
</form>
</center>
</body>
</html>
emp_master.php
<?php
session_start();
include_once "header.php";
?>
<?php
include_once 'dbconnnect.php';
if(isset($_POST['submit']))
$file = rand(1000,100000)."-".$_FILES['file']['name'];
$file_loc = $_FILES['file']['tmp_name'];
$file_size = $_FILES['file']['size'];
//echo $file_size;
$file_type = $_FILES['file']['type'];
33
$folder="uploads/";
$new_size = $file_size/1024;
echo $new_size;
$new_file_name = strtolower($file);
$final_file=str_replace(' ','-',$new_file_name);
if(move_uploaded_file($file_loc,$folder.$final_file))
$_SESSION['final_file']=$final_file;
mysqli_query($connection,$sql);
?>
<script>
alert('successfully uploaded');
window.location.href='emp_master.php?success';
</script>
<?php
else
?>
34
Features of Employee database and payroll
management system:
Easy to use.
It is completely secure.
It is completely controlled by admin.
This system is easily compatible with most of the web browsers.
It is very interactive and saves time.
Reduces paper works.
Calculations are automated so it is highly accurate.
Admin can view all the records whenever necessary with ease.
Conclusion:
This project is built keeping in mind that it is to be used by only one user that is the admin. It is
built for use in small scale organization where the number of employees is limited. According to
the requested requirement the admin can add, manipulate, update and delete all employee data in
his organization. The admin can add new departments and delete them. The Admin can also
add predefined pay grades for the employees. The required records can be easily viewed by the
admin anytime time he wants in an instant. The payment of the employee is based on monthly
basis. Numerous validations implemented would enable the admin to enter accurate data. The
main objective of this framework is to save time, make the system cost effective and
management records efficiently.
35
Bibliography:
Websites:
www.atticinfo.com
www.tutorialspoint.com
www.youtube.com
36