0% found this document useful (0 votes)
17 views31 pages

Rdbms Pact

The document describes an employee database and payroll management system project. It includes modules, feasibility study, use case diagram, sequence diagram, data flow diagram, entity relationship diagram, database tables, sample codes, and features. The project aims to automate the existing manual employee and payroll processes using a computerized system.

Uploaded by

Gurdeep Sidhu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views31 pages

Rdbms Pact

The document describes an employee database and payroll management system project. It includes modules, feasibility study, use case diagram, sequence diagram, data flow diagram, entity relationship diagram, database tables, sample codes, and features. The project aims to automate the existing manual employee and payroll processes using a computerized system.

Uploaded by

Gurdeep Sidhu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 31

Employee database and payroll management system

GURU NANAK COLLEGE, BUDHLADA

SUBJECT :- RDBMS

PROJECT: EMPLOYEE DATABASE AND PAYROLL SYSTEM

SUBMITTED TO:- SUBMITTED BY:-


PROF. NITIKA RAMANDEEP KAUR
ROLL NO.:-86102
JASPREET KAUR
ROLL NO.:-86104
MCA1st
1
Page

1
Employee database and payroll management system

CONTENTS
TOPICS PAGE NO.
1. Abstract 3
2. Introduction 3
3. Modules 3
4. Feasibility Study 4
5. Use Case Diagram 5
6. Sequence Diagram 6
7. Data Flow Diagram (DFD) 7
8. Entity Relationship Diagram 8
9. User Interface Snapshots 9 to 13
10. Database Tables 14 to 17
11. Sample Codes 18 to 29
12. Features of Employee Database and 30
Payroll Management System
13. Future Scope Of this Work 30
14. Conclusion 31
15. Bibliography 31
2
Page

2
Employee database and payroll management system

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.

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.

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.
3
Page

3
Employee database and payroll management system

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.
4
Page

USE OF CASE DAIGRAM:-


4
Employee database and payroll management system

Sequence Diagram:-
5
Page

5
Employee database and payroll management system

DFD(Data Flow Diagram) :-


6
Page

6
Employee database and payroll management system

Level 0:-

Entity Relationship Diagram(ERD):-


7
Page

7
8 Employee database and payroll management system

SCREENSHOTS:-
Page

8
Employee database and payroll management system

LOGIN PAGE:-

WELCOME PAGE:-
9
Page

9
Employee database and payroll management system

Employee Details page:-


10
Page

10
Employee database and payroll management system

Department Details Page:-


11
Page

Grade Details Page:-


11
Employee database and payroll management system

Employee Salary Details page:-


12

Employee Report Page:-


Page

12
13 Employee database and payroll management system

Database Tables:
Page

User Table Database Structure:-


13
Employee database and payroll management system

Department Table Database Structure:-


14

Grade Table Database Structure:-


Page

14
15 Employee database and payroll management system

Employee Table Database Structure:-


Page

15
16 Employee database and payroll management system

Employee Grade Details Table Database Structure:-


Page

16
Employee database and payroll management system

Employee Salary Details Table Database Structure:-


17

Sample code:-
Page

17
Employee database and payroll management system

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%;
18

}
Page

18
Employee database and payroll management system

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;

}
19
Page

span.psw {

19
Employee database and payroll management system

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-
20

size: 35px;
Page

20
Employee database and payroll management system

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:

@media screen and (max-width:


21

300px) { span.psw { display:


Page

block; float: none;

21
Employee database and payroll management system

.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;

}
22
Page

22
Employee database and payroll management system

.big-btn {

width:

180px;

height:

40px;

</style> <?php

include("header12

.php");

include("dbconnec

t.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>
23

<body>

<center>
Page

</br></br></br>

23
Employee database and payroll management system

<h1><strong>MY EMPLOYEE MANAGER</strong></h1>

<br>

<h1><STRONG>ADMINISTRATOR &nbsp; 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">&times;</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>
24
Page

24
Employee database and payroll management system

<!-- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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">&times;</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
25

<?php
Page

25
Employee database and payroll management system

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;
26

}
Page

26
Employee database and payroll management system

.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">
27

<button type="submit" class="button big-btn" value="#" name="add" ><font


size="3"><strong>Employee Grade Details</strong></font></button>
Page

</form>

27
Employee database and payroll management system

<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'];
28

$file_loc = $_FILES['file']['tmp_name'];
Page

$file_size = $_FILES['file']['size'];

28
Employee database and payroll management system

//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>
29

<?php
Page

else

29
Employee database and payroll management system

?>

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.

Future scope of the work:

• The option to print the records In future.


• I intend to add a leave structure in the future.
• I would like to implement a regular backup mechanism to back up
the employee database to avoid disasters.
• The system can be developed in such a way that its existing features
can be modified to better versions.

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
30

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
Page

basis. Numerous validations implemented would enable the admin to enter

30
Employee database and payroll management system

accurate data. The main objective of this framework is to save time, make the
system cost effective and management records efficiently.

Bibliography:

Websites:
• www.w3schools.com
• www.tutorialspoint.com
• www.youtube.com
31
Page

31

You might also like