php-project-report 123
php-project-report 123
MICROPROJECT REPORT
ON
Employee Database And Payroll Management System
GUIDED BY:-
Mrs. Rupali Bankar
SUBMISSION
1
This is to declare this Micro Project report has been written by us. No Part of the
report is plagiarized from other sources. All information included from other
sources has been duly acknowledged. We aware that if any part of the report is
found to be plagiarized. We will take full responsibility for it.
Guided By :-
Mrs. Rupali bankar
HOD Name :-
Mrs. Priyanka Singh
index
TOPICS page no.
1. Abstract 5
2. Introduction 5
3. Purpose 6
4. Modules 7
5. Advantage 7
6. Disadvantage 8
7. Feasibility Study 8
8. Project Category: Web Based Application 9
9. Use Case Diagram 10
10. Sequence Diagram 11
11. Data Flow Diagram(DFD) 12
12. Entity Relationship Diagram 13-
13. User Interface Snapshots
14. Database Tables 20-24
15. Sample Codes 24-40
16. Features of Employee Database and Payroll 40
Management System
17. Future Scope Of this Work 40
18. Conclusion 40
19. References 41
3
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.
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.
Purpose
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
lOMoARcPSD|5413635
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.
FEASIBILITY STUDY
6
lOMoARcPSD|54136359
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.
Available Technologies:
Tools Used:
Hardware Used:
8
lOMoARcPSD|54136359
lOMoARcPSD|5413635
Sequence Diagram;
Successfully logged in
10
lOMoARcPSD|54136359
Level 0
Level 1
lOMoARcPSD|5413635
12
lOMoARcPSD|54136359
Screenshots
Login Page:
lOMoARcPSD|5413635
Welcome Page:
14
lOMoARcPSD|54136359
16
lOMoARcPSD|54136359
18
lOMoARcPSD|54136359
Database Tables:
User Table Database Structure:
user_id(int) – Primary Key Id for the user.
20
lOMoARcPSD|54136359
22
lOMoARcPSD|54136359
SAMPLE CODES
Index.php
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
sans-serif;}
24
lOMoARcPSD|54136359
input[type=text],
input[type=password] { width:
box-sizing: border-box;
buttons */ button
{ background-color:
width: 100%;
button:hover
{ opacity: 0.8;
.cancelbtn { width:
18px; background-
color: #f44336;
.imgcontainer
{ text-align: center;
0; position:
relative;
img.avatar
{ width: 40%;
border-radius:
50%;
.container
{ padding:
16px;
span.psw {
float: right;
padding-top: 16px;
on top */
26
lOMoARcPSD|54136359
60px;
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 */
.close
{ position:
absolute;
right: 25px;
top: 0; color:
#000; font-
size: 35px;
font-weight:
bold;
.close:hover, .cl
ose:focus
{ color: red;
cursor: pointer;
.animate {
@-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 */
.cancelbtn {
width: 100%;
.button { background-
border-radius: 10px;
-moz-border-radius: 10px; -
webkit-border-radius: 10px;
margin:10px
28
lOMoARcPSD|54136359
.small-btn {
width: 50px;
height: 25px;
.medium-btn {
width: 70px;
height: 30px;
.big-btn {
width: 180px;
height: 40px;
</style> <?php
include("header12.p
hp");
include("dbconnect.p
hp");
extract($_POST);
if(isset($submit))
if(mysql_num_rows($rs)<1)
{
$found="N";
else
{
$_SESSION[login]=$username;
header("Location: welcome.php");
lOMoARcPSD|5413635
?>
</head>
<body>
<center>
</br></br></br>
<br>
</center>
<div class="imgcontainer">
</div>
<div class="container">
<label for="uname"><b>Username</b></label>
<label for="psw"><b>Password</b></label>
<!-- <label>
30
lOMoARcPSD|54136359
</label>-->
</div>
</div>
</form>
</div>
<div class="imgcontainer">
</div>
<div class="container">
</div>
lOMoARcPSD|5413635
</form>
</div>
document.getElementById('id01'); var
modal =
document.getElementById('id02');
</script>
Welcome.php
<?php
session_start();
include
"header.php"; ?>
<!doctype html>
<html>
<head>
<style> .button
{ background-color:
#000000; color:
border-radius: 10px;
32
lOMoARcPSD|54136359
-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>
<br>
<form action="dep_master.php">
</form>
<br>
<form action="grad_master.php">
</form>
<br>
<form action="emp_grad_detail.php">
</f
34
lOMoARcPSD|54136359
<br>
<form action="salary_detail.php">
<button type="submit"
class="button size="3"><strong>Prepare Monthly
value="#" name="add"
Salary</strong></font></button>
big-btn"
</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'];
$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
?>
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.
references:
Websites:
• www.w3schools.com
• www.tutorialspoint.com
• www.youtube.com
37