Rdbms Pact
Rdbms Pact
SUBJECT :- RDBMS
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
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
Sequence Diagram:-
5
Page
5
Employee database and payroll management system
6
Employee database and payroll management system
Level 0:-
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
10
Employee database and payroll management system
12
13 Employee database and payroll management system
Database Tables:
Page
14
15 Employee database and payroll management system
15
16 Employee database and payroll management system
16
Employee database and payroll management system
Sample code:-
Page
17
Employee database and payroll management system
Index.php
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
Helvetica, sans-serif;}
input[type=text],
input[type=password] { width:
box-sizing: border-box;
buttons */ button
{ background-color:
#4CAF50; color:
pointer;
width: 100%;
18
}
Page
18
Employee database and payroll management system
button:hover {
opacity: 0.8;
.cancelbtn { width:
18px; background-
color: #f44336;
.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;
top: 60px;
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,
.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,
.animate {
@-webkit-keyframes
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 */
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))
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
<br>
</center>
<div class="imgcontainer">
</div>
<div class="container">
<label for="uname"><b>Username</b></label>
<label for="psw"><b>Password</b></label>
<!-- <label>
</label>-->
</div>
24
Employee database and payroll management system
</div>
</form>
</div>
<div class="imgcontainer">
</div>
<div class="container">
</div>
</form>
</div>
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>
<br>
<form action="dep_master.php">
</form>
<br>
<form action="grad_master.php">
</form>
<br>
<form action="emp_grad_detail.php">
27
</form>
27
Employee database and payroll management system
<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'];
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_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>
29
<?php
Page
else
29
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
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
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