Professional Documents
Culture Documents
Chapter-1: Employee Management System
Chapter-1: Employee Management System
Chapter-1
Introduction
Database is a collection of related data and data is a collection of facts and figures that can
be processed to produce information. A database management system stores data in such a way that it
becomes easier to retrieve, manipulate, and produce information.
Problem statement:
1. This software is built to eliminate and, in some cases, reduce the hardships faced by the manual
system.
2. Less retrieval time of project details from vast data.
3. This system will maintain employee information in database by fully privacy and authority access.
4. This project is aimed at setting up employee information through a password protected which is
easy to monitor the achievement’s and performance of the employee in the company.
5. This software allows the administrator to edit employees, add new employees as well as evaluate
an employee’s performance.
6. Every organization, whether big or small, has human resource challenges to overcome. Every
organization has different employee management needs, therefore we design exclusive Employee
Management System that are adopted to your managerial requirements.
Chapter-2
Figure.2.2 ER Diagram
Tools/Environment Used
The OS helps you to communicate with the computer without knowing how to speak the
computer's language. It is not possible for the user to use any computer or mobile device without having an
operating system.
Figure 3.1.1 OS
The term PHP is an acronym for PHP: Hypertext Preprocessor. PHP is a server-side scripting
language designed specifically for web development. PHP can actually do anything related to server-side
scripting or more popularly known as the backend of a website. For example, PHP can receive data from
forms, generate dynamic page content, can work with databases, create sessions, send and receive
cookies, send emails etc.
CSS: Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a
document written in a markup language like HTML. CSS is a cornerstone technology of the World Wide
Web, alongside HTML and JavaScript. CSS is designed to enable the separation of presentation and
content, including layout, colors, and fonts. This separation can improve content accessibility, provide
more flexibility and control in the specification of presentation characteristics, enable multiple web pages
to share formatting by specifying the relevant CSS in a separate .css file, and reduce complexity and
repetition in the structural content.
Apache is a popular open-source, cross-platform web server that is, by the numbers, the most
popular web server in existence.
SYSTEM IMPLEMENTATION
4.1 MODULES DESCRIPTION:
1. HOME
INPUT:
OUTPUT:
By selecting a buttons in the index page we can enter into specific module.
DESCRIPTION:
Frontend is designed using HTML, CSS. Index page consists of buttons with name. On selecting
the button, we can enter into the new page of specified module.
SOURCE CODE:
<!DOCTYPE html>
<html>
<head><title>CUB Tech</title>
<style>
body
background-image: url('temp1.jpg');
.flip-box {
background-color: transparent;
width: 100%;
height: 200px;
perspective: 1000px;
.flip-box-inner {
position: relative;
width: 100%;
height: 100%;
text-align: center;
transform-style: preserve-3d;
.flip-box:hover .flip-box-inner {
transform: rotateX(180deg);
.flip-box-front, .flip-box-back {
position: absolute;
width: 100%;
height: 100%;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
.flip-box-front {
background-color: #bbb;
color: black;
background-color: white;
color: black;
transform: rotateX(180deg);
</style></head>
<body>
<header>
<div class="divider"></div>
<div id="divimg"></div>
<h1>Vision</h1><h3>To be the company for our clients in our global markets, for all our bussiness,driven
by entrepreneurial spirit, cutting edge technology and execution excellence.</h3></div>
<div class="flip-box-back">
</center>
<h1 style="font-family: 'Lobster', cursive; font-weight: 200; font-size: 50px; margin-top: 100px; text-align:
center;">CUB Tech</h1>
</body>
</html>
styleindex.css
@import url('https://fonts.googleapis.com/css?family=Lobster');
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700');
body{
margin: 0px;
header{
background: black;
color: white;
height: 50px;}
header h1{
display: inline;
font-weight: 400;
font-size: 32px;
float: left;
margin-top: 0px;
margin-right: 10px;
nav ul {
display: inline;
padding: 0px;
float: right;
nav ul li{
display: inline-block;
list-style-type: none;
color: white;
float: left;
margin-left: 12px;
nav ul li a{
color: white;
nav ul ul{
display: none;
position: absolute;
#navli ul li ul:hovar{
visibility: visible;
display: block;
#navli{
.homered{
background-color: red;
.divider{
background-color: red;
height: 5px;
.homeblack:hover{
background-color: blue;
background-repeat: no-repeat;
background-size: cover;
background-image: : url('../images/back.jpg');
#registration{
text-align: center;
background-color: #F0FFFF;
height: 100%;
width: auto;
background-position: center;
#textField{
padding: 5px;
border-radius: 5px;
#gender{
#sub{
background-color: #0c6996;
.table-emp{
padding: 5px;
text-align: center;
background-color: #4CAF50;
.table-emp tr th {
background-color: #4CAF50;
color: white;
.simple-form1{
margin-left: 10px;
text-align: center;
background-color: #F0FFFF;
background-position: center;
.leavetable{
#textField{
.info{
.h2{
2.ABOUT US
INPUT:
OUTPUT:
DESCRIPTION:
Frontend is designed using HTML, CSS. It shows the information about the members
SOURCE CODE:
<!DOCTYPE html>
<html>
<nav><h1>CUB Tech</h1>
<ul id="navli">
<div class="divider"></div>
</body>
</html>
style.css
@import url('https://fonts.googleapis.com/css?family=Lobster');
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700');
body{
margin: 0px;
header{
background: black;
color: white;
height: 50px;
header h1{
display: inline;
float: left;
nav ul {
display: inline;
padding: 0px;
float: right;
nav ul li{
display: inline-block;
list-style-type: none;
color: white;
float: left;
margin-left: 12px;
nav ul li a{
color: white;
text-decoration: none;
nav ul ul{
display: none;
position: absolute;
#navli ul li ul:hovar{
visibility: visible;
display: block;
#navli{
.homered{
background-color: red;
.divider{
background-color: red;
height: 5px;
background-color: blue;
#divimg{
background-repeat: no-repeat;
background-size: cover;
background-image: : url('../images/back.jpg');
#registration{
text-align: center;
background-color: #F0FFFF;
background-position: center;
#textField{
padding: 5px;
border-radius: 5px;
#gender{
#sub{
padding: 5px;
background-color: #0c6996;
.table-emp{
padding: 5px;
text-align: center;
background-color: #4CAF50;
.table-emp tr th {
background-color: #4CAF50;
color: white;
.simple-form1{
margin-left: 10px;
text-align: center;
background-color: #F0FFFF;
.leavetable{
#textField{
.info{
.h2{
img {
border-radius: 50%;
3. CONTACT
INPUT:
This page consists information about place, phone number and email of the company.
OUTPUT:
DESCRIPTION:
SOURCE CODE:
<!DOCTYPE html>
<html>
</head>
<body><header>
<nav><h1>CUB Tech</h1>
<ul id="navli">
<div class="divider"></div>
4 LOGIN
i. EMPLOYEE LOGIN
INPUT:
This page consists Employee login page. Employee need to enter the registered email id and a
password for logging.
OUTPUT:
Entered email id and password will be checked. If password or email id is incorrect it throws a
message that invalid email or password. If the email and password is entered correctly then it takes to
Employee Account.
DESCRIPTION:
Frontend designed using HTML and CSS. Frontend and backend are connected by using PHP. This page
consists of form in which we should enter registered email id and password. After entering hit the login
button. If password or the registered mail id is incorrect it throws a display message at the top invalid
email/ password and returns back to employee login page again.
SOURCE CODE:
<!DOCTYPE html>
<html>
<body>
<header>
<ul id="navli">
<div class="loginbox">
<h1>Login Here</h1>
<p>Email</p>
<p>Password</p>
</body>
</html>
@import url('https://fonts.googleapis.com/css?family=Lobster');
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700');
body{
margin: 0px;
header{
height: 50px;
header h1{
display: inline;
float: left;
nav ul {
display: inline;
nav ul li{
display: inline-block;
list-style-type: none;
margin-left: 12px;
nav ul li a{
color: white;
text-decoration: none;
nav ul ul{
display: none;
position: absolute;
#navli ul li ul:hovar{
visibility: visible;
display: block;
.homered{
background-color: red;
.divider{
background-color: red;
height: 5px;
.homeblack:hover{
background-color: blue;
table {
margin: 0px;
border-collapse: collapse;
width: 100%;
th, td {
text-align: center;
padding: 8px;
tr:hover {background-color:#76D7C4;}
th {
background-color: #4CAF50;
color: white;
.p-t-20 {
padding-top: 20px;
.btn {
line-height: 40px;
display: inline-block;
padding: 0 25px;
cursor: pointer;
color: #fff;
font-size: 14px;
font-weight: 700;
.btn--radius {
-webkit-border-radius: 3px;
border-radius: 3px;
.btn--green {
background: #57b846;
a. EMPLOYEE PANEL
1.HOME:
INPUT:
This page includes the information about the employee who logged in using their login id and
password
OUTPUT:
This page displays the information about the logged in employee with their login id and password
DISCRIPTION:
This page displays the information about the logged in employee with their login id and password. This
page also displays the information about Due projects, Salary and leave status of the employee.
SOURCE CODE:
<?php
require_once ('process/dbh.php');
$employeen = mysqli_fetch_array($result1);
$empName = ($employeen['firstName']);
$sql1 = "SELECT `pname`, `duedate` FROM `project` WHERE eid = $id and status = 'Due'";
?>
<html>
<head>
</head>
<body><header>
</ul></nav></header>
<table><tr>
<?php
echo "<td>".$employee1['pname']."</td>";
echo "<td>".$employee1['duedate']."</td>"; }
?>
</table>
<table> <tr>
<?php
echo "<td>".$employee['base']."</td>";
echo "<td>".$employee['total']."</td>"; }
?>
</table>
<table> <tr>
<?php
echo "<tr>";
echo "<td>".$employee['start']."</td>";
echo "<td>".$employee['end']."</td>";
echo "<td>".$interval->days."</td>";
echo "<td>".$employee['reason']."</td>";
echo "<td>".$employee['status']."</td>";
?>
</table>
<br><br><br><br><br>
</div></h2></div>
</body>
</html>
2.MY PROFILE
INPUT:
OUTPUT:
This page will display the filled information of the employee and also has a update button for updation.
DISCRIPTION:
This page will display the information of the employee and also as a update button for updating a
details if any of the details entered are incorrect. If any of the information is incorrected edited with help of
update info button. When a update info button is pressed it takes to a new web page in which we can edit
the information of email id ,contact and address.In a new webpage we also see a change password button
by which we can change the password. After updating the details then the user need to press the submit
button. After pressing the submit button a new message will be displayed that successfully updated and
returns back to My profile page.
<?php
require_once ('process/dbh.php');
//echo "$sql";
$degree = $res['degree'];
}}
?>
<html>
</head>
<body> <header>
$id?>"">HOME</a></li>
<div class="divider"></div>
</div></div></div>
</div> </div>
<p>Gender</p>
<p>Contact Number</p>
<p>Address</p>
</div><div class="input-group"><p>Degree</p>
</div>
<div class="input-group">
<p>Total Salary</p>
</body>
</html>
UPDATE
<?php
require_once ('process/dbh.php');
//echo "$sql";
if(isset($_POST['update'])
window.alert('Succesfully Updated')
window.location.href='myprofile.php?id=$id ';
</SCRIPT>"); }
?>
<?php
while($res = mysqli_fetch_assoc($result)){
$firstname = $res['firstName'];
// $salary = $res['salary'];
}}
?>
<html>
</head>
<body><header><nav><h1>CUB Tech</h1>
<ul id="navli">
</header>
<div class="divider"></div>
</html>
Change password:
<?php
require_once ('process/dbh.php');
//echo "$sql";
if(isset($_POST['update']))
$id = $_POST['id'];
$old = $_POST['oldpass'];
$new = $_POST['newpass'];
if($old == $employee['password']){
window.alert('Password Updated')
window.location.href='myprofile.php?id=$id';</SCRIPT>"); }
else{
window.location.href='javascript:history.go(-1)'; </SCRIPT>"); }
<!-- <?php
if($result){
while($res = mysqli_fetch_assoc($result)){
}}
?> -->
<html><head>
<body> <header>
<nav><h1>CUB Tech</h1>
<ul id="navli">
</header>
<div class="divider"></div>
</div> </div>
</div></div> </div>
</body>
</html>
3.MY PROJECTS:
INPUT:
This page displays the projects that are assigned to the employee and also see a submit option.
OUTPUT:
This page displays the projects that are assigned to the employee and also see a submit option.
DISCRIPTION:
This page displays the projects that are assigned to the employee and also see a submit option
which need to be clicked after completing the project work so that the status of the project will be changed
from pending to completed.
SOURCE CODE:
<?php
require_once ('process/dbh.php');
?>
<html>
</nav> </header>
<?php
echo "<td>".$employee['status']."</td>";
?>
</table> </body></html>
4.APPLY LEAVE
INPUT:
This page has a form in which the employee need to fill the reason and also a leave date.
OUTPUT:
This page display the leave form. The employee need to fill the form if the employee need leave
and it also displays the leave record of an employee.
DISCRIPTION:
This page display the leave form. The employee need to fill the form if the employee need leave
and it also displays the leave record of an employee. When the leave form is filled and submitted then the
page will be redirected to a Home page of a Employee Panel.
SOURCE CODE:
<?php
require_once ('process/dbh.php');
$employee = mysqli_fetch_array($result);
$empName = ($employee['firstName']);
//echo "$id";
?>
<html>
<head>
<body bgcolor="#F0FFFF">
<div class="divider"></div>
<div class="input-group">
<p>End Date</p>
<div class="input-group">
<div class="p-t-20">
DEPT.OF COMPUTER SCIENCE & ENGINEERING, SCE, BANGALORE Page 44 of 78
Employee Management System
<button class="btn btn--radius btn--green" type="submit">Submit</button>
</div></form></div></div></div></div>
echo "<td>".$employee['status']."</td>"; }
?> </table>
</body>
</html>
5.LOGOUT
INPUT:
OUTPUT:
This button logout from employee panel and return back to Login page
This button logouts from the employee panel and takes you to the login page .
b. ADMIN LOGIN
INPUT:
This page consists form in which we need to enter the email id and password for logging in to the
Admin page.
OUTPUT:
This page consists form in which we need to enter the email id and password for logging in to the
Admin page and need to be pressed login page.
DISCRIPTION:
This page consists form in which we need to enter the email id and password for logging in to the
Admin page and need to be pressed login button. After logging into the Admin Panel. Their will be a
employee lead board at a home page and it also consist Add Employee, View Employee, Assign Project,
Project Status ,Salary Table, Employee Leave and a Logout option.
SOURCE CODE:
<!DOCTYPE html>
<html>
<ul id="navli">
<p>Email</p>
</div>
</body>
</html>
1.HOME
DISCRIPTION:
Display Welcome message for the Admin and also display vision mission of the company
SOURCE CODE:
<html>
<style>
.flip-box {
background-color: transparent;
perspective: 1000px;
.flip-box-inner {
text-align: center;
transform-style: preserve-3d;
.flip-box:hover .flip-box-inner {
transform: rotateX(180deg);
.flip-box-front, .flip-box-back {
height: 100%;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
.flip-box-front {
background-color: #bbb;
color: black;
.flip-box-back {
background-color: white;
color: black;
transform: rotateX(180deg);
</style>
<nav><h1>CUB Tech</h1>
<center><ul id="navli">
<hr><center>
<h1>Vision</h1>
<h3>To be the company for our clients in our global markets, for all our bussiness,driven by
entrepreneurial spirit, cutting edge technology and execution excellence.</h3></div>
<div class="flip-box-back"><h1>Mission</h1>
<h3>We will deliver relaiable,high-quality solutions for global infrastructure, always ensuring that
integrity, safety and sustainability are at the heart of everything we do</h3></div> </div></center></div>
</body>
</html>
2.ADD EMPLOYEE
INPUT:
This page consist the form of employee registration which need to be filled by the Admin.
This page consist the form of employee registration which need to be filled by the Admin and it
also consists a Submit button.
DISCRIPTION:
This page consist the form of employee registration which need to be filled by the Admin and it
also consists a Submit button. Every Data need to be filled by the Admin with the help of employee. After
filling the details Submit button need to be pressed so that the entered employee details will be updated in
the database. If any of the fields are not filled then it throws a message that please fill out this field.
SOURCE CODE:
<!DOCTYPE html>
<html><head>
</head>
<body> <header><nav>
<h1>CUBTech</h1>
</nav></header><div class="divider"></div>
</div></div>
</div></div></div>
<div class="input-group">
<option value="Other">Other</option></select>
<div class="select-dropdown"></div></div></div></div></div>
<div class="input-group">
<div class="input-group">
<div class="input-group">
<div class="input-group">
<div class="input-group">
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/select2/select2.min.js"></script>
<script src="vendor/datepicker/moment.min.js"></script>
<script src="vendor/datepicker/daterangepicker.js"></script>
3.VIEW EMPLOYEE
INPUT:
OUTPUT:
DISCRIPTION:
This will display the employee’s working in a company and also the details about an employee.We
can also edit the employee details in this by clicking on edit, it will take you to a new page their you
can update or enter the correct information, this can be done by employee also and also from the
Admin panel.Admin can also delete the employee. If a employee Id isdeleted then ,if a deleted
employee tries to login with the email id and password it will give a message that invalid
email/password because the employee data will be deleted from the database.
SOURCE CODE:
<?php
require_once ('process/dbh.php');
//echo "$sql";
?>
<html>
<head>
<body><header><nav>
<h1>CUB Tech</h1>
DEPT.OF COMPUTER SCIENCE & ENGINEERING, SCE, BANGALORE Page 53 of 78
Employee Management System
<ul id="navli">
<div class="divider"></div>
<table><tr>
<?php
echo "<tr>";
echo "<td>".$employee['id']."</td>";
echo "<td>".$employee['degree']."</td>";
?> </table>
</body>
</html>
4.ASSING PROJECT
INPUT:
This page consist a form which has Employee ID, project name and a date.
OUTPUT:
This page displays the project assigning form which need to be filled by the Admin.
DISCRIPTION:
This page displays the project assigning form which need to be filled by the Admin. Admin need to
know the Employee Id to assign a project to a employee. If entered employee Id is incorrect then it throws
a message that project cannot be assigned and returns back to a project assigning page.Amin need to fill the
employee id ,project name and date.After filling the correct details Admin need to enter the Assign button
then the work will be assigned to a employee and employee can see the assigned work in their Employee
Panel.
SOURCE CODE:
<!DOCTYPE html>
<html>
<head>
</head>
<body><header><nav><h1>CUB Tech</h1>
</header><div class="divider"></div>
<div class="input-group">
<div class="input-group">
<script src="vendor/datepicker/moment.min.js"></script>
<script src="vendor/datepicker/daterangepicker.js"></script>
</body>
</html>
5. PROJECT STATUS
INPUT:
OUTPUT:
This Module will display the project status which is assigned by the Admin to the employee
DESCRIPTION:
This page displays the status of the project which is assigned by the Admin to the Employee.It also
display the employee name ,employee ,project due date and submission date, and also the status of the
project.It also consist a mark option.If a Admin click on the mark option it goes to a new page and a form
will be displayed.The form consist Name of an employee and details about the project, here the Admin can
Assign a mark for the submitted project.If a Admin need to give a mark for the project that has been
completed by the employee ,admin need to enter the mark and click a Assign Mark button.
<?php
require_once ('process/dbh.php');
//echo "$sql";
?>
<html>
<?php
echo "<tr>";
echo "<td>".$employee['status']."</td>";
?>
</table>
</body>
</html>
6.SALARY TABLE
INPUT:
OUTPUT:
DESCRIPTION:
This page consists the information about the employee salary and bonus of the employee.
SOURCE CODE:
<?php
require_once ('process/dbh.php');
//echo "$sql";
?>
<html>
</head>
<body>
</tr>
echo "<tr>";
echo "<td>".$employee['id']."</td>";
?>
</table>
</body>
</html>
7.EMPLOYEE LEAVE
INPUT:
OUTPUT:
This module displayed the employee leave form which need to accepted/ rejected by the Admin.
DESCRIPTION:
This page displays the employee leave information, when employee has been applied for leave with
the reason.Admin need to approve or cancel the leave request by click approve or cancel button.
SOURCE CODE:
<?php
require_once ('process/dbh.php');
//echo "$sql";
?>
<html>
</head>
<body>
</tr>
<?php
$interval = $date1->diff($date2);
$interval = $date1->diff($date2);
echo "<td>".$employee['status']."</td>";
?>
</table>
</div></body>
</html>
8.LOGOUT
INPUT:
OUTPUT:
DESCRIPTION:
This button helps the Admin to logout from the Admin Panel. After clicking logout button the user
will be taken to a login page again.
SOURCE CODE:
<!DOCTYPE html>
<html>
<body><header>
<nav><h1>CUB Tech</h1>
<ul id="navli">
</nav>
</header>
</body>
</html>
Chapter-5
1.HOME:
2.ABOUT US:
3.CONTACT:
4.LOGIN:
6.1 CONCLUSION
The “Employee Management System” provides better functionality for the management
to be more efficient and reduce manual paperwork in order to automate all possible tasks. It has
been developed in PHP, HTML and CSS keeping in mind the specification of the system. For
designing the system, PHP is being used as the front end in phpMyAdmin Environment.
Overall, the project teaches us the essential skills like:
Understanding the database handling and query processing.
Implement, analyse and evaluate the project developed for an application.
Demonstrate the working of different concepts of DBMS.