Professional Documents
Culture Documents
Team1-EMPLOYEE DATABASE AND PAYROLL MANAGEMENT SYSTEM
Team1-EMPLOYEE DATABASE AND PAYROLL MANAGEMENT SYSTEM
SYSTEM
Project report submitted
in partial fulfillment of the requirement for the degree of
Bachelor of Technology
By
SCHOOL OF COMPUTING
OCTOBER 2020
CERTIFICATE
Signature of Supervisor:
Ms.Reshma.K
Computer Science and Engineering.
Vel Tech Rangarajan Dr.sagunthala
R&D Institue of Science and
Technology.
October,2020.
Declaration
I declare that this written submission represents my ideas in my own words and
where others' ideas or words have been included, I have adequately cited and
referenced the original sources. I also declare that I have adhered to all
principles of academic honesty and integrity and have not misrepresented or
fabricated or falsified any idea/data/fact/source in my submission. I understand
that any violation of the above will be cause for disciplinary action by the
Institute and can also evoke penal action from the sources which have thus not
been properly cited or from whom proper permission has not been taken when
needed.
(Signature)
(B.SAI MEGHANA)
(17UECS0134)
Date: _____________
(Signature)
(A.S.BINDHU MADHAVI)
(17UECS0025)
Date: _____________
(Signature)
(JAYANTI SAWAIYAN)
(17UECS0271)
Date: ____________
Approval Sheet
Examiners
Supervisor
Ms.Reshma. K
Asst.Proffesor
Department of CSE
Vel Tech Rangarajan Dr.Sagunthala
R&D Institute of science and Technology
Avadi, Chennai-600062
Dr.Srinivasa Rao,M.Tech.,Ph.D.,
Professor
Department of CSE,
Vel Tech Rangarajan Dr.Sagunthala
R&D Institute of science and Technology
Avadi, Chennai-600062
Date:
Place:
ABSTRACT
“Employee Database and Payroll Management System” is designed to
make the existing manual system automatic with the help of computerized
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 computerized records without getting redundant entries. The
project describes how to manage user data for good performance and
provide better services for the client.
LIST OF FIGURES
1. 1 Symbols Used in DFD……………….……….………….07
1.2 Context Level DFD……………….……….……………..08
1.3 DFD At 0 Level………………….……….………………08
1.4 DFD At 1.1 Level …………….……...………………….09
1.5 DFD At 1.2 Level …………….……...………………….09
1.6 DFD At 1.3 Level…………….……….………………….09
2. ER Diagram………………….…………………………….10
3.1 Login Page……………….………………………………15
3.2 Department Form 1…….……………………………...…16
3.3 Department Form 1…….………………………………...16
3.4 Exit Form………….……………………………………..17
3.5 Department Record Adding Page………………………..18
3.5 Designation Form………………………………………..18
3.7 Designation Exit Form…………………………………..19
3.8 Employee Personal Form………………………………..20
3.9 Employee Official Form…………...…………………....20
3.10 Search Form....................................................................21
3.11 Data Base Connection 1………………………………..23
3.12 Data Base Connection 2………………………………..24
3.13 Data Base Connection 1………………………………..24
TABLE OF CONTENTS
Abstract 1
List Of Figures 1
1.Introduction 2
1.1. Purpose 2
1.2. System overview 3
1.3. Problem statement 3
1.4. DFD modelling of problem 6
1.5. Goal & Vision 12
2. Requirement Specification 13
2.1 Dependencies 13
2.2 Performance Requirement 14
3.Design 15
3.1 Data Base Design 18
4.Coding 20
5.Testing 31
5.1 Testing Technique Used 31
5.2 Features 32
5.3 Future Scope 32
6.Conclusion 34
7.Reference 35
CHAPTER 1
INTRODUCTION
1.1 PURPOSE
DFD provides a logical method of the system and shows the flow
of data and the flow of logic involved.
The CFD shows the external entity action on the software is shown
here in CFD as a single process.
DFD AT 0 LEVEL:
Fig 2. ER Diagram
Cost-Saving Efficiency
Compliance
Payroll systems are also crucial for companies to ensure that they
are following laws and provide proof of compliance. For example,
at the end of the year a company will have to include payroll costs
in its taxes, and prove that it has made all the proper deductions
from employees' pay. Moreover, in the U.S. where health insurance
is often tied to employment, payroll systems can prove that an
employee has been contributing to his or her health plan and is
eligible for coverage.
Growth
REQUIREMENTS SPECIFICATION
Specific Requirements:
External interface requirements
User interfaces
The software provides good graphical interface to the user.
Hardware interfaces
Mouse
Keyboard
Printer
Hard disk- Ram with memory 256 MB or more
Software interfaces
Operating system: Windows XP/Vista or any main stream OS
Functional requirements
Languages: HTML, PHP, JavaScript
RDBMS: Online MySQL
Web Server: WAMP server
Development Platform: Adobe Dreamweaver
TOOLS USED:
Editor Used: Dreamweaver for PHP, WAMP, Server for MySQL
Operating System: Windows10
HARDWARE USED:
Processor: Intel Core i3
RAM: 2GB
Hard Disk: 1TB
2.1 DEPENDENCIES
All necessary hardware and software are available for
implementing and use of the tool. The proposed system would be
designed, developed and implemented based on the software
requirements specifications document. End users should have basic
knowledge of computer and we also assure that the users will be
given software training documentation and reference material.
The system is not required to save generated reports.
CHAPTER 4
CODING
Index.php:
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-
scale=1">
<style>
body {font-family: Arial, Helvetica, sans-serif;}
/* Full-width input fields */
input[type=text], input[type=password] {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
box-sizing: border-box;
}
/* Set a style for all buttons */
button {
background-color: #4CAF50;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 100%;
}
button:hover {
opacity: 0.8;
}
/* Extra styles for the cancel button */
.cancelbtn {
width: auto;
padding: 10px 18px;
background-color: #f44336;
}
/* Center the image and position the close button */
.imgcontainer {
text-align: center;
margin: 24px 0 12px 0;
position: relative;
}
img.avatar {
width: 40%;
border-radius: 50%;
}
.container {
padding: 16px;
}
span.psw {
float: right;
padding-top: 16px;
}
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
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 */
border: 1px solid #888;
width: 40%; /* Could be more or less, depending on screen size */
}
/* The Close Button (x) */
.close {
position: absolute;
right: 25px;
top: 0;
color: #000;
font-size: 35px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: red;
cursor: pointer;
}
/* Add Zoom Animation */
.animate {
-webkit-animation: animatezoom 0.6s;
animation: animatezoom 0.6s
}
@-webkit-keyframes animatezoom {
from {-webkit-transform: scale(0)}
to {-webkit-transform: scale(1)}
}
@keyframes animatezoom {
from {transform: scale(0)}
to {transform: scale(1)}
}
/* Change styles for span and cancel button on extra small screens
*/
@media screen and (max-width: 300px) {
span.psw {
display: block;
float: none;
}
.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");
include("dbconnect.php");
extract($_POST);
if(isset($submit))
{
$rs=mysql_query("select * from users where
username='$username' and password= MD5('$password')");
if(mysql_num_rows($rs)<1)
{
$found="N";
}
else
{
$_SESSION[login]=$username;
header("Location: welcome.php");
}
}
?>
</head>
<body>
<center>
</br></br></br>
<h1><strong>MY EMPLOYEE MANAGER</strong></h1>
<br>
<h1><STRONG>ADMINISTRATOR
LOGIN</STRONG></h1>
<button
onclick="document.getElementById('id01').style.display='block'"
class="button big-btn" style="width:10%; font-size :
20px;"><strong>Login</strong></button>
</center>
<div id="id01" class="modal">
<form class="modal-content animate" name="form1"
method="post" action="">
<div class="imgcontainer">
<span
onclick="document.getElementById('id01').style.display='none'"
class="close" title="Close Modal">×</span>
<img src="admin.png" alt="Avatar" class="avatar">
</div>
<div class="container">
<label for="uname"><b>Username</b></label>
<input type="text" placeholder="Enter Username"
name="username" id="username" required>
<label for="psw"><b>Password</b></label>
<input type="password" placeholder="Enter Password"
name="password" id="password" required>
<button type="submit" name="submit" id="submit"
value="Login">Login</button>
<!-- <label>
<input type="checkbox" checked="checked" name="remember">
Remember me
</label>-->
</div>
<div class="container" style="background-color:#f1f1f1">
<button type="button"
onclick="document.getElementById('id01').style.display='none'"
class="cancelbtn">Cancel</button>
<!--
<button
onclick="document.getElementById('id02').style.display='block'"
class="button big-btn" style="width:50%; font-size :
20px;"><strong>Forget Password</strong></button> -->
</div>
</form>
</div>
<div id="id02" class="modal">
<form class="modal-content animate" method="post" action="">
<div class="imgcontainer">
<span
onclick="document.getElementById('id02').style.display='none'"
class="close" title="Close Modal">×</span>
</div>
<div class="container">
<label for="uname"><b>Enter Your Email id</b></label>
<input type="text" placeholder="Enter Username"
name="username" id="username" required>
<input type="submit" name="submi" value="Submit">
</div>
</form>
</div>
<script>
// Get the modal
var modal = document.getElementById('id01');
var modal = document.getElementById('id02');
// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
</script>
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 {
width: 250px;
height: 40px;
}
</style>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body class="bg">
<center>
<br>
<form action="emp_master.php" align= "center">
<!--<div class="button big-btn">This is a big button</div>-->
<button type="submit" class="button big-btn"
value="emp_master" name="add" ><font size="3"><strong>Add
New
Employee</strong></font></button>
</form>
<br>
<form action="dep_master.php">
<button type="submit" class="button big-btn" value=""
name="add" ><font size="3"><strong>Add New
Department</strong></font></button>
</form>
<br>
<form action="grad_master.php">
<button type="submit" class="button big-btn" value="#"
name="add" ><font size="3"><strong>Add New
Grade</strong></font></button>
</form>
<br>
<form action="emp_grad_detail.php">
<button type="submit" class="button big-btn" value="#"
name="add" ><font size="3"><strong>Employee Grade
Details</strong></font></button>
</form>
<br>
<form action="salary_detail.php">
<button type="submit" class="button big-btn" value="#"
name="add" ><font size="3"><strong>Prepare Monthly
Salary</strong></font></button>
</form>
<br>
<form action="report.php">
<button type="submit" class="button big-btn" value="#"
name="add" ><font size="3"><strong>Generate
Report</strong></font></button>
</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']
$folder="uploads/";
// new file size in KB
$new_size = $file_size/1024;
echo $new_size;
// new file size in KB
// make file name in lower case
$new_file_name = strtolower($file);
// make file name in lower case
$final_file=str_replace(' ','-',$new_file_name);
if(move_uploaded_file($file_loc,$folder.$final_file))
{
$sql="INSERT INTO tbl_uploads(file,type,size)
VALUES('$final_file','$file_type','$new_size')";
$_SESSION['final_file']=$final_file;
mysqli_query($connection,$sql);
?>
<script>
alert('successfully uploaded');
window.location.href='emp_master.php?success';
</script>
<?php
}
else
{
?>
CHAPTER 5
TESTING
Software testing is a critical phase of software quality assurance. It
Indicates the ultimate review of specification, design and code
generation. Once source code has been generated, software must be
tested to uncover and correct maximum possible errors, before
being delivered. Testing emphasizes on a set of methods for the
creation of test cases that fulfill overall testing objectives.
The primary objectives of software testing are as follows:
1. Testing is a process of executing a program to find an error in it.
2. A good test case should have a high probability of finding an as
yet undiscovered error.
3. A test case will be considered successful if it uncovers an as-yet-
Undiscovered error.
1. UNIT TESTING:
Unit testing aims the verification effort on the smallest unit of soft-
ware design i.e., a software component or module. It uses
procedural design as a guide to test major control paths and
uncover errors within the module boundary. It is a White box
oriented and the step can be conducted in parallel for multiple
components. Unit testing is a dynamic method for verification,
where the program is actually compiled and executed. It is one of
the most widely used methods, and the coding phase is sometimes
called “coding and unit testing phase”. The goal of unit testing is to
test modules or “units”, not the whole software system. Unit testing
is most often done by the programmer himself/herself. The goal of
Unit testing is to isolate each part of the program and show that the
individual parts are correct. A unit test provides a strict, written
contract that the piece of code must satisfy. As a result, it affords
several benefits.
2. INTEGRATION TESTING:
3. VALIDATION TESTING:
5.2 FEATURES
CHAPTER 6
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.
CHAPTER 7
REFERENCES:
[1].http//www.ijetae.com/files/Volume4Issue4/IJETAE_0414_140.
[2]. Schmitt, Bob (10 October 2014). & quot; Collection
Management Systems". Retrieved 15 November 2015.
[3]. Carpinone, Elana C. (May 2010), Museum Collection
Management systems: One Size Does NOT Fit All, p. 26.Retrieved
5 December 2015.
[4]. http://www.tangedco.gov.in/linkpdf/Agri%20For m.pdf:The
pdf is a form to apply for agricultural loan. This gives us the idea
about attributes required in database“Agricultural loans”.
[5]. http://ceoharyana.nic.in/?module=pages&pageid=42: The
link tells us about the requirements for Voter ID Generation. This
information can be used to maintain the database.
[6]. A Java API for the description of large complex networks
under the object-oriented paradigm A. Ni~no1;y, C.Mu~noz-
Caro1, S. Reyes1 and M. Castillo1 1 SciCom Research Group.
Escuela Superior de Inform_atica de Ciudad Real,Universidad de
Castilla-La Mancha. Paseo de la Universidad 4. 13004 Ciudad
Real, Spain.
[7]. Compiling and Optimizing Java 8 Programs for GPUExecution
Kazuaki Ishizaki IBM Research– Tokyo,Akihiro Hayashi Rice
University ,Gita Koblents IBM Canada, Vivek Sarkar Rice
University.