You are on page 1of 134

A

PROJECT REPORT
ON
“EMPLOYEE RECORD MANAGEMENT SYSTEM”

SUBMITTED IN THE PARTIAL FULFILLMENT OF THE


MASTER OF COMPUTER APPLICATIONS

AT

ARKA JAIN UNIVERSITY, JAMSHEDPUR, JHARKHAND

FACULTY GUIDE:
MR. ARVIND KUMAR PANDEY
(H.O.D, ARKA JAIN UNIVERSITY, JSR)

SUBMITTED BY:
PIYALI SUR
MCA [2017-2020]

1
ARKA JAIN UNIVERSITY, JAMSHEDPUR, JHARKHAND

MASTER OF COMPUTER APPLICATIONS

PROJECT TITLE:

EMPLOYEE RECORD MANAGEMENT


SYSTEM

PRESENTED BY:

PIYALI SUR

M.C.A (2017-20)

REGISTRATION NO.: AJU/170713

ROLL NO.: 005

UNDER THE GUIDANCE OF:

MR. ARVIND KUMAR PANDEY

HEAD OF DEPARTMENT (COMPUTER APPLICATIONS)

2
ARKA JAIN UNIVERSITY,
JAMSHEDPUR
A
PROJECT REPORT
ON
EMPLOYEE RECORD MANAGEMENT
SYSTEM
IN PARTIAL FULFILLMENT OF REQUIREMENT OF

MASTER OF COMPUTER APPLICATIONS


REGISTRATION NO.: AJU/170713

ROLL NO.: 005

BATCH 2017-20

GUIDED BY: PREPARED BY:

Mr. Arvind Pandey Piyali Sur

SUBMITTED TO
DEPARTMENT OF COMPUTER APPLICATIONS

ARKA JAIN UNIVERSITY, JAMSHEDPUR

3
TO WHOM IT MAY CONCERN

This is to certify that Piyali Sur has successfully completed his project report on “Employee

record management system” in partial fulfillment of requirement of Master of Computer

Application from Arka Jain University, Jamshedpur.

During this period we found Piyali Sur, sincere and hard working.

We wish him all the best in his future endeavors.

INTERNAL GUIDE HOD EXTERNAL GUIDE

(Mr.Arvind Pandey) (Mr. Arvind Pandey)

Dated: / /

Place: Jamshedpur

4
5
It is with great sense of satisfaction that I present my first real venture in practical computing
in the form of project work. This project was undertaken in partial fulfillment of the
requirement for the degree of “MASTER IN COMPUTER APPLICATIONS” of Arka Jain
University, Jamshedpur.

I wish to express my heartfelt thanks to all those who helped me in completing this Project. I
am grateful to Mr. Arvind Pandey, Head of Department (M.C.A), Arka Jain University,
Jamshedpur for his timely suggestion and encouragement with affectionate attribute that
helped me a lot to finish my project successfully.

Finally I want to thank to all my friends and teachers, who helped and co-operate me directly
or indirectly in the accomplishment of this project.

6
CONTENT

1) ABSTRACT

2) INTRODUCTION
 OBJECTIVES
 PROJECT SCOPE

3) REQUIREMENT AND ANALYSIS


 HARDWARE REQUIREMENT
 SOFTWARE REQUIREMENT

4) DFD
 LEVEL 1 DFD
 LEVEL 2 DFD

5) E-R DIAGRAM

6) SYSTEM DESIGN
 DATA DESIGN

7) SCREENSHOTS

8) CODING

9) SYSTEM TESTING AND IMPLEMENTATION

10) CONCLUSION

7
ABSTRACT

Employees are the backbone of any company therefore their management plays a major role in
deciding the success of an organization. Employees Management Software makes it easy for
the employer to keep track of all records. This software allows the administrator to edit
employees, add new employees. Each employee in the database is associated with a position can
be added and edited when need arises. You can check to see if there are duplicate
positions/employees in the database. Most of all, the employer can assign tasks to employees
and assess their progress in order to keep track of employee performance.A flexible and easy to
use Employee Management software solution for small and medium sized companies provides
modules for personnel information management thereby organization and companies are able to
manage the crucial organization asset people.. This system brings about an easy way of
maintaining the details of employees working in any organization.It is simple to understand and
can be used by anyone who is not even familiar with simple employees system. It is user friendly
and just asks the user to follow stepby step operations by giving easy to follow options. It is fast
and can perform many operations for a company.The goal of this project is to design and develop
an employee record management system to fill existing gaps in the electronic management
employees of Railway.
There was close study of the existing manual file based system that was in use, it was compared
to the proposed system. The prototype was developed using MySql database, PHP, CSS,
JavaScript and HTML.

8
CHAPTER 1: INTRODUCTION

1.1 SYSTEM DEVELOPMENT LIFE CYCLE


SDLC is a process followed for a software project, within a software organization. It consists of
a detailed plan describing how to develop, maintain, replace and alter or enhance specific
software. The life cycle defines a methodology for improving the quality of software and the
overall development process.

The following figure is a graphical representation of the various stages of a typical SDLC.

Stage 1: Planning and Requirement Analysis

Requirement analysis is the most important and fundamental stage in SDLC. It is performed by
the senior members of the team with inputs from the customer, the sales department, market
9
surveys and domain experts in the industry. This information is then used to plan the basic
project approach and to conduct product feasibility study in the economical, operational and
technical areas. Planning for the quality assurance requirements and identification of the risks
associated with the project is also done in the planning stage. The outcome of the technical
feasibility study is to define the various technical approaches that can be followed to implement
the project successfully with minimum risks.

Stage 2: Defining Requirements

Once the requirement analysis is done the next step is to clearly define and document the
product requirements and get them approved from the customer or the market analysts. This is
done through an SRS (Software Requirement Specification) document which consists of all
the product requirements to be designed and developed during the project life cycle.

Stage 3: Designing the Product Architecture

SRS is the reference for product architects to come out with the best architecture for the product
to be developed. Based on the requirements specified in SRS, usually more than one design
approach for the product architecture is proposed and documented in a DDS - Design Document
Specification.

This DDS is reviewed by all the important stakeholders and based on various parameters as risk
assessment, product robustness, design modularity, budget and time constraints, the best design
approach is selected for the product.

A design approach clearly defines all the architectural modules of the product along with its
communication and data flow representation with the external and third party modules (if any).
The internal design of all the modules of the proposed architecture should be clearly defined
with the minutest of the details in DDS.

Stage 4: Building or Developing the Product

In this stage of SDLC the actual development starts and the product is built. The programming
code is generated as per DDS during this stage. If the design is performed in a detailed and

10
organized manner, code generation can be accomplished without much hassle.

Developers must follow the coding guidelines defined by their organization and programming
tools like compilers, interpreters, debuggers, etc. are used to generate the code. Different high
level programming languages such as C, C++, Pascal, Java and PHP are used for coding. The
programming language is chosen with respect to the type of software being developed.

Stage 5: Testing the Product

This stage is usually a subset of all the stages as in the modern SDLC models, the testing
activities are mostly involved in all the stages of SDLC. However, this stage refers to the testing
only stage of the product where product defects are reported, tracked, fixed and retested, until
the product reaches the quality standards defined in the SRS.

Stage 6: Deployment in the Market and Maintenance

Once the product is tested and ready to be deployed it is released formally in the appropriate
market. Sometimes product deployment happens in stages as per the business strategy of that
organization. The product may first be released in a limited segment and tested in the real
business environment (UAT- User acceptance testing).

Then based on the feedback, the product may be released as it is or with suggested
enhancements in the targeting market segment. After the product is released in the market, its
maintenance is done for the existing customer base

11
1.2 OBJECTIVE
Employee Record Management system is a database which keeps the record of all the details
pertaining to employees in an organization.Organizations have always had to collect and use
personal information from and about employees to comply with tax and other laws, to administer
benefits, to operate their businesses.
The objective of the project is to improve and enhance the “Employee Record Management
system” module available in IDRBT’s intranet for deployment on virtualized server.

The same could not be migrated to the virtualized environment owing to incompatibility of the
existing code with the virtualized environment.

1.3 PROJECT SCOPE


The scope of the project is to store and access the database consisting of employee’s
personal details and the database can be shared with the concerned department to complete
joining formalities
We can also store and access the database consisting of program details

12
CHAPTER 2: REQUIREMENTS AND ANALYSIS
2.1. SOFTWARE AND HARDWARE SPECIFICATIONS

2.1.1 HARDWARE REQUIREMENTS:

Processor : Intel P-IV based system

Processor Speed : 2.0. GHz

RAM : 1GB

Hard Disk : 40GB to 80GB

2.1.2 SOFTWARE REQUIREMENTS:

Database : MySQL

Server : Apache

Frontend : HTML

Scripting language : Java Script

IDE : Sublime

Technology : PHP

13
2.2 CONCEPTUAL MODELS

2.2.1 DFD (Data Flow Diagram)

The entire system is projected with a physical diagram which specifics the actual storage
parameters that are physically necessary for any database to be stored on to the disk. The overall
systems existential idea is derived from this diagram.

 The relation upon the system is structure through a conceptual ER-Diagram, which not
only specifics the existential entities but also the standard relations through which the
system exists and the cardinalities that are necessary for the system state to continue.

 The content level DFD is provided to have an idea of the functional inputs and outputs
that are achieved through the system. The system depicts the input and output standards
at the high level of the systems existence.

A DFD does not show a sequence of steps. A DFD only shows what the different process in a
system is and what data flows between them.

14
The following are some DFD symbols used in the project

 A Circle represents a process that transforms incoming data flow into outgoing
data flows.

 A Square defines a source or destination of system data.

 An Arrow identifies data flow direction. It is the pipeline through which the
information flows.

15
2.2.1.1 RULES FOR DFD:

 Fix the scope of the system by means of context diagrams.

 Organize the DFD so that the main sequence of the actions reads left to right and top to

bottom.

 Identify all inputs and outputs.

 Identify and label each process internal to the system with rounded circles.

 A process is required for all the data transformation and transfers. Therefore, never

connect a data store to a data source or the destinations or another data store with just a

data flow arrow.

 Do not indicate hardware and ignore control information.

 Make sure the names of the processes accurately convey everything the process is done.

 There must not be unnamed process.

 Indicate external sources and destinations of the data, with squares.

 Number each occurrence of repeated external entities.

 Identify all data flows for each process step, except simple Record retrievals.

 Label data flow on each arrow.

 Use details flow on each arrow.

 Use the details flow arrow to indicate data movements.

 There can’t be unnamed data flow.

 A data flow can’t connect two external entities.

16
2.2.1.2 LEVELS OF DFD:

The complexity of the business system means that it is a responsible to represent the operations
of any system of single data flow diagram. At the top level, an Overview of the different systems
in an organization is shown by the way of context analysis diagram. When exploded into DFD
They are represented by:
 LEVEL-0 : SYSTEM INPUT/OUTPUT
 LEVEL-1:SUBSYSTEM LEVEL DATAFLOW FUNCTIONAL
 LEVEL-2: FILE LEVEL DETAIL DATA FLOW.
The input and output data shown should be consistent from one level to the next.

LEVEL-0: SYSTEM INPUT/OUTPUT LEVEL


A level-0 DFD describes the system-wide boundaries, dealing inputs to and outputs from
the system and major processes. This diagram is similar to the combined user-level context
diagram.

LEVEL-1: SUBSYSTEM LEVEL DATA FLOW


A level-1 DFD describes the next level of details within the system, detailing the data
flows between subsystems, which makeup the whole.

LEVEL-2: FILE LEVEL DETAIL DATA FLOW


All the projects are feasible given unlimited resources and infinite time. It is both necessary and
prudent to evaluate the feasibility of the project at the earliest possible time. Feasibility and the
risk analysis are pertained in many ways. If project risk is great.

17
First Level DFDs

2nd Level DFDs

1.1
Records
Records

Administrator Administrator

1.2
Employ
ee

fig. 01

18
fig. 02

2.2.2 ENTITY-RELATIONSHIP Diagrams

E-R (Entity-Relationship) Diagram is used to represents the relationship between entities in


the table.
The symbols used in E-R diagrams are:

19
1

1
N
N
N

N
N

20
Chapter 3: System Design

The data in the system has to be stored and retrieved from database. Designing the database is
part of system design. Data elements and data structures to be stored have been identified at
analysis stage. They are structured and put together to design the data storage and retrieval
system.

3.1 Data Design:


A database is a collection of interrelated data stored with minimum redundancy to serve many
users quickly and efficiently. The general objective is to make database access easy, quick,
inexpensive and flexible for the user. Relationships are established between the data items and
unnecessary data items are removed. Normalization is done to get an internal consistency of data
and to have minimum redundancy and maximum stability. This ensures minimizing data storage
required, minimizing chances of data inconsistencies and optimizing for updates. The MS Access
database has been chosen for developing the relevant databases.

Employee Record Management System (erms) contains 4MySQL tables :

tbladmin table Structure : This table store the login details of admin.

21
employeedetail table Structure : This table store the personal details of the employee.

empeducation table Structure : This table store the education details of the employee.

22
empexpireince table Structure : This table store the experience details of the employee.

23
Chapter 5: Results
5.1 Screenshot Of Project
Home

Login

24
Dashboard

My Experience

25
Edit My Experience

My Education

26
Edit My Education

My Profile

27
Change Password

Register An Account

28
Admin Dashboard

Login(Admin)

29
Admin Profile

Change Password

30
Employees details

Edit Employee profile

31
Edit Employee Education

Edit Employee Experience

32
5.2 Codings

1.home
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>ERMS | Home Page</title>
<!-- Custom fonts for this template-->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css"><link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,
700i,800,800i,900,900i" rel="stylesheet">
<!-- Custom styles for this template-->
<link href="css/sb-admin-2.min.css" rel="stylesheet">
</head>
<body id="page-top">
<!-- Page Wrapper -->
<div id="wrapper" >
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->

33
<div class="d-sm-flex align-items-center justify-content-between mb-4" style="margin-top:
2%">
<h1 class="h3 mb-0 text-gray-800">Employee Record Management System</h1>
</div>
<div class="row">
<!-- Earnings (Monthly) Card Example -->
<div class="col-xl-4 col-md-6 mb-4">
<div class="card border-left-primary shadow h-100 py-2">
<div class="card-body">
<div class="row no-gutters align-items-center">
<div class="col mr-2"><a href="loginerms.php">
<div class="text-xs font-weight-bold text-primary text-uppercase mb-1">User Signin</div>
</a>
</div>
<div class="col-auto">
<i class="fas fa-user fa-2x text-gray-300"></i>
</div>
</div>
</div>
</div>
<!-- Earnings (Monthly) Card Example -->
<div class="col-xl-4 col-md-6 mb-4">
<div class="card border-left-success shadow h-100 py-2">
<div class="card-body">
<div class="row no-gutters align-items-center">
<div class="col mr-2">
<a href="registererms.php">
<div class="text-xs font-weight-bold text-success text-uppercase mb-1">User Signup</div>
</a>
</div>
<div class="col-auto>

34
<i class="fas fa-user fa-2x text-gray-300"></i>
</div>
</div>
</div>
</div>
</div>
<!-- Earnings (Monthly) Card Example -->
<div class="col-xl-4 col-md-6 mb-4">
<div class="card border-left-info shadow h-100 py-2">
<div class="card-body">
<div class="row no-gutters align-items-center">
<div class="col mr-2">
<a href="admin/">
<div class="text-xs font-weight-bold text-info text-uppercase mb-1">Admin Login</div>
</a>

</div>

<div class="col-auto">

<i class="fas fa-user fa-2x text-gray-300"></i>

</div>

</div>

</div>

</div>

</div>

<!-- Pending Requests Card Example -->

</div>

</div>

35
<!-- /.container-fluid -->

</div>

<!-- End of Main Content -->

</div>

<!-- End of Content Wrapper -->

</div>

<!-- End of Page Wrapper -->

<!-- Scroll to Top Button-->

<a class="scroll-to-top rounded" href="#page-top">

<i class="fas fa-angle-up"></i>

</a>

<!-- Logout Modal-->

<div class="modal fade" id="logoutModal" tabindex="-1" role="dialog" aria-


labelledby="exampleModalLabel" aria-hidden="true">

<div class="modal-dialog" role="document">

<div class="modal-content">

<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Ready to Leave?</h5>
<button class="close" type="button" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">Select "Logout" below if you are ready to end your current
session.</div>

36
<div class="modal-footer">
<button class="btn btn-secondary" type="button" data-dismiss="modal">Cancel</button>
<a class="btn btn-primary" href="login.html">Logout</a>
</div>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="js/sb-admin-2.min.js"></script>
</body>
</html>

37
2. Login

<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if(isset($_POST['login']))
{
$Email=$_POST['Email'];
$Password=$_POST['Password'];
$query=mysqli_query($con,"select ID from employeedetail where EmpEmail='$Email'&&
EmpPassword='$Password' ");
$ret=mysqli_fetch_array($query);
if($ret>0){
$_SESSION['uid']=$ret['ID'];
header('location:welcome.php');
}
else{
$msg="Invalid Details.";
}
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="Employee Record management System in php and mysql">
<meta name="description" content="Employee Record management System in php and mysql">

38
<meta name="author" content="Sarita Pandey">
<title>ERMS Employee Login</title>
<!-- Custom fonts for this template-->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,
700i,800,800i,900,900i" rel="stylesheet">
<!-- Custom styles for this template-->
<link href="css/sb-admin-2.min.css" rel="stylesheet">
</head>
<body class="bg-gradient-primary">
<div class="container">
<h3 align="center" style="color: black; padding-top: 2%">Employee Record Managment
System</h3>
<!-- Outer Row -->
<div class="row justify-content-center">
<div class="col-xl-10 col-lg-12 col-md-9">
<div class="card o-hidden border-0 shadow-lg my-5">
<div class="card-body p-0">
<!-- Nested Row within Card Body -->
<div class="row">
<div class="col-lg-6 d-none d-lg-block bg-login-image"></div>
<div class="col-lg-6">
<div class="p-5">
<div class="text-center">
<h1 class="h4 text-gray-900 mb-4">Welcome Back!</h1>
</div>
<p style="font-size:16px; color:red" align="center">
<?php if($msg){
echo $msg;
} ?></p>

39
<form class="user" method="post" action="">
<div class="form-group">
<input type="email" class="form-control form-control-user" id="Email" name="Email" aria-
describedby="emailHelp" placeholder="Enter Email Address..." required="true">
</div>
<div class="form-group">
<input type="password" class="form-control form-control-user" id="Password"
name="Password" placeholder="Password" required="true">
</div>
<p><input type="submit" class="btn btn-primary btn-user btn-block" name="login"
value="login"></p>
<hr>
</form>
<hr>
<div class="text-center">
<a class="small" href="forgetpassword.php">Forgot Password?</a>
</div>
<div class="text-center">
<a class="small" href="registererms.php">Create an Account!</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>

40
<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="js/sb-admin-2.min.js"></script>
</body>
</html>

2.DASHBOARD

<?php
session_start();
include('includes/dbconnection.php');
if(strlen($_SESSION['uid']==0)){
header('location:logout.php');
}
else {
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Welcome to ERMS</title>
<!-- Custom fonts for this template-->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,

41
700i,800,800i,900,900i" rel="stylesheet">
<!-- Custom styles for this template-->
<link href="css/sb-admin-2.min.css" rel="stylesheet">
</head>
<body id="page-top">
<!-- Page Wrapper -->
<div id="wrapper">
<!-- Sidebar -->
<?php include_once('includes/sidebar.php');?>
<!-- End of Sidebar -->
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Topbar -->
<?php include_once('includes/header.php');?>
<!-- End of Topbar -->
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<h1 class="h3 mb-0 text-gray-800">Employee Record Management System</h1>
</div>
<!-- Content Row -->
<div class="row">
<div class="col-xl-3 col-md-6 mb-4"></div>
<!-- Earnings (Monthly) Card Example -->
<div class="col-xl-6 col-md-6 mb-4">
<div class="card border-left-primary shadow h-100 py-2">
<div class="card-body">
<div class="row no-gutters align-items-center">

42
<div class="col mr-2">
<div class="text-xs font-weight-bold text-primary text-uppercase mb-1">Welcome Back to
ERMS !</div>
<?php
$empid=$_SESSION['uid'];
$ret=mysqli_query($con,"select EmpFname,EmpLname from employeedetail where
ID='$empid'");
$row=mysqli_fetch_array($ret);
$fname=$row['EmpFname'];
$lname=$row['EmpLname'];
?>
<div class="h5 mb-0 font-weight-bold text-gray-800"><?php echo $fname." ".$lname; ?></div>
</div>
<div class="col-auto">
<i class="fas fa-user fa-2x text-gray-300"></i>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Content Row -->
</div>
</div>
</div>
<!-- /.container-fluid -->
</div>
<!-- End of Main Content -->
<!-- Footer -->
<?php include_once('includes/footer.php');?>
<!-- End of Footer -->

43
</div>
<!-- End of Content Wrapper -->
</div>
<!-- End of Page Wrapper -->
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
<i class="fas fa-angle-up"></i>
</a>
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="js/sb-admin-2.min.js"></script>
<!-- Page level plugins -->
<script src="vendor/chart.js/Chart.min.js"></script>
<!-- Page level custom scripts -->
<script src="js/demo/chart-area-demo.js"></script>
<script src="js/demo/chart-pie-demo.js"></script>
</body>
</html>
</html>
<?php
}
?>

44
3.My experience

<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
//error_reporting(0);
if (strlen($_SESSION['uid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$eid=$_SESSION['uid'];
$emp1name=$_POST['emp1name'];
$emp1des=$_POST['emp1des'];
$emp1ctc=$_POST['emp1ctc'];
$emp1wd=$_POST['emp1workduration'];
$emp2name=$_POST['emp2name'];
$emp2des=$_POST['emp2des'];
$emp2ctc=$_POST['emp2ctc'];
$emp2wd=$_POST['emp2workduration'];
$emp3name=$_POST['emp3name'];
$emp3des=$_POST['emp3des'];
$emp3ctc=$_POST['emp3ctc'];
$emp3wd=$_POST['emp3workduration'];
$query=mysqli_query($con, "insert into empexpireince ( EmpID,Employer1Name,
Employer1Designation, Employer1CTC, Employer1WorkDuration, Employer2Name,
Employer2Designation, Employer2CTC, Employer2WorkDuration, Employer3Name,
Employer3Designation, Employer3CTC, Employer3WorkDuration) value('$eid','$emp1name',
'$emp1des', '$emp1ctc', '$emp1wd', '$emp2name', '$emp2des', '$emp2ctc', '$emp2wd',

45
'$emp3name', '$emp3des', '$emp3ctc', '$emp3wd' )");
if ($query) {
$msg="Your Expirence data has been submitted succeesfully.";
}
Else
{
$msg="Something Went Wrong. Please try again.";
}
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>My Experience</title>
<!-- Custom fonts for this template-->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,
700i,800,800i,900,900i" rel="stylesheet">
<!-- Custom styles for this template-->
<link href="css/sb-admin-2.min.css" rel="stylesheet">
</head>
<body id="page-top">
<!-- Page Wrapper -->

46
<div id="wrapper">
<!-- Sidebar -->
<?php include_once('includes/sidebar.php')?>
<!-- End of Sidebar -->
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Topbar -->
<?php include_once('includes/header.php')?>
<!-- End of Topbar -->
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<h1 class="h3 mb-4 text-gray-800">My Experience</h1>
<p style="font-size:16px; color:red" align="center"><?php if($msg){
echo $msg;
} ?></p>
<?php
$empid=$_SESSION['uid'];
$query=mysqli_query($con,"select * from empexpireince where EmpID=$empid");
$row=mysqli_fetch_array($query);
if($row>0)
{
?>
<p style="font-size:16px; color:red" align="center">Your Experience details already added.
Now you can only edit the record. </p>
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
<tr>
<th>First Employer Name</th>
<td><?php echo $row['Employer1Name'];?></td>

47
</tr>
<tr>
<th>First Employer Designation</th>
<td><?php echo $row['Employer1Designation'];?></td>
</tr>
<tr>
<th>First Employer CTC</th>
<td><?php echo $row['Employer1CTC'];?></td>
</tr>
<tr>
<th>First Employer Work Duration</th>
<td><?php echo $row['Employer1WorkDuration'];?></td>
</tr>
<tr>
<th>Second Employer Name</th>
<td><?php echo $row['Employer2Name'];?></td>
</tr>
<tr>
<th>Second Employer Designation</th>
<td><?php echo $row['Employer2Designation'];?></td>
</tr>
<tr>
<th>Second Employer CTC</th>
<td><?php echo $row['Employer2CTC'];?></td>
</tr>
<tr>
<th>Second Employer Work Duration</th>
<td><?php echo $row['Employer2WorkDuration'];?></td>
</tr>
<tr>
<th>Third Employer Name</th>

48
<td><?php echo $row['Employer3Name'];?></td>
</tr>
<tr>
<th>Third Employer Designation</th>
<td><?php echo $row['Employer3Designation'];?></td>
</tr>
<tr>
<th>Third Employer CTC</th>
<td><?php echo $row['Employer3CTC'];?></td>
</tr>
<tr>
<th>Third Employer Work Duration</th>
<td><?php echo $row['Employer3WorkDuration'];?></td>
</tr>
</table>
<?php } else {?>
<form class="user" method="post" action="">
<div class="row">
<div class="col-4 mb-3">Employer1 Name</div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="emp1name" name="emp1name" aria-describedby="emailHelp" value=""></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer1 Designation </div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="emp1des" name="emp1des" aria-describedby="emailHelp" value=""></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer1 CTC </div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="emp1ctc" name="emp1ctc" aria-

49
describedby="emailHelp" value=""></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer1 WorkDuration</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="emp1workduration"
name="emp1workduration" aria-describedby="emailHelp" value="">
</div></div>
<div class="row">
<div class="col-4 mb-3">Employer2 Name</div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="emp2name" name="emp2name" aria-describedby="emailHelp" value=""></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer2 Designation </div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="emp2des" name="emp2des" aria-describedby="emailHelp" value=""></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer2 CTC </div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="emp2ctc" name="emp2ctc" aria-
describedby="emailHelp" value=""></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer2 WorkDuration</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="emp2workduration"
name="emp2workduration" aria-describedby="emailHelp" value="">
</div></div>
<div class="row">

50
<div class="col-4 mb-3">Employer3 Name</div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="emp3name" name="emp3name" aria-describedby="emailHelp" value=""></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer3 Designation </div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="emp3des" name="emp3des" aria-describedby="emailHelp" value=""></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer3 CTC </div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="emp3ctc" name="emp3ctc" aria-
describedby="emailHelp" value=""></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer3 WorkDuration</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="emp3workduration"
name="emp3workduration" aria-describedby="emailHelp" value="">
</div></div>
<div class="row" style="margin-top:4%">
<div class="col-4"></div>
<div class="col-4">
<input type="submit" name="submit" value="submit" class="btn btn-primary btn-user btn-
block">
</div>
</div>
</form>
<?php } ?>
</div>

51
<!-- /.container-fluid -->
</div>
<!-- End of Main Content -->
<!-- Footer -->
<?php include_once('includes/footer.php');?>
<!-- End of Footer -->
</div>
<!-- End of Content Wrapper -->
</div>
<!-- End of Page Wrapper -->
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
<i class="fas fa-angle-up"></i>
</a>
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="js/sb-admin-2.min.js"></script>
<script type="text/javascript">
$(".jDate").datepicker({
format: 'yyyy-mm-dd',
autoclose: true
}).datepicker("update", "10/10/2016");
</script>
<script src="vendor/datatables/jquery.dataTables.min.js"></script>
<script src="vendor/datatables/dataTables.bootstrap4.min.js"></script>
<!-- Page level custom scripts -->
<script src="js/demo/datatables-demo.js"></script>

52
</body>
</html>
<?php } ?>

5.Edit My Experience

<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
//error_reporting(0);
if (strlen($_SESSION['uid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$eid=$_SESSION['uid'];
$emp1name=$_POST['emp1name'];
$emp1des=$_POST['emp1des'];
$emp1ctc=$_POST['emp1ctc'];
$emp1wd=$_POST['emp1workduration'];
$emp2name=$_POST['emp2name'];
$emp2des=$_POST['emp2des'];
$emp2ctc=$_POST['emp2ctc'];
$emp2wd=$_POST['emp2workduration'];
$emp3name=$_POST['emp3name'];
$emp3des=$_POST['emp3des'];
$emp3ctc=$_POST['emp3ctc'];
$emp3wd=$_POST['emp3workduration'];
$query=mysqli_query($con, "update empexpireince set Employer1Name='$emp1name',
Employer1Designation ='$emp1des', Employer1CTC ='$emp1ctc',

53
Employer1WorkDuration='$emp1wd', Employer2Name='$emp2name', Employer2Designation
='$emp2des', Employer2CTC ='$emp2ctc', Employer2WorkDuration='$emp2wd',
Employer3Name='$emp3name', Employer3Designation ='$emp3des', Employer3CTC
='$emp3ctc', Employer3WorkDuration='$emp3wd' where EmpID='$eid'");
if ($query) {
$msg="Your Expirence has been updated.";
}
else
{
$msg="Something Went Wrong. Please try again.";
}
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Edit My Expirence</title>
<!-- Custom fonts for this template-->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,
700i,800,800i,900,900i" rel="stylesheet">
<!-- Custom styles for this template-->
<link href="css/sb-admin-2.min.css" rel="stylesheet">

54
</head>
<body id="page-top">
<!-- Page Wrapper -->
<div id="wrapper">
<!-- Sidebar -->
<?php include_once('includes/sidebar.php')?>
<!-- End of Sidebar -->
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Topbar -->
<?php include_once('includes/header.php')?>
<!-- End of Topbar -->
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<h1 class="h3 mb-4 text-gray-800">Edit My Experience</h1>
<p style="font-size:16px; color:red" align="center"><?php if($msg){
echo $msg;
} ?></p>
<form class="user" method="post" action="">
<?php
$empid=$_SESSION['uid'];
$ret=mysqli_query($con,"select * from empexpireince where EmpID='$empid'");
$num=mysqli_num_rows($ret);
if($num>0){
$cnt=1;
while ($row=mysqli_fetch_array($ret)) {
?>
<div class="row">

55
<div class="col-4 mb-3">Employer1 Name</div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="emp1name" name="emp1name" aria-describedby="emailHelp" value="<?php echo
$row['Employer1Name'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer1 Designation </div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="emp1des" name="emp1des" aria-describedby="emailHelp" value="<?php echo
$row['Employer1Designation'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer1 CTC </div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="emp1ctc" name="emp1ctc" aria-
describedby="emailHelp" value="<?php echo $row['Employer1CTC'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer1 WorkDuration</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="emp1workduration"
name="emp1workduration" aria-describedby="emailHelp" value="<?php echo
$row['Employer1WorkDuration'];?>">
</div></div>
<div class="row">
<div class="col-4 mb-3">Employer2 Name</div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="emp2name" name="emp2name" aria-describedby="emailHelp" value="<?php echo
$row['Employer2Name'];?>"></div>
</div>
<div class="row">

56
<div class="col-4 mb-3">Employer2 Designation </div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="emp2des" name="emp2des" aria-describedby="emailHelp" value="<?php echo
$row['Employer2Designation'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer2 CTC </div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="emp2ctc" name="emp2ctc" aria-
describedby="emailHelp" value="<?php echo $row['Employer2CTC'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer2 WorkDuration</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="emp2workduration"
name="emp2workduration" aria-describedby="emailHelp" value="<?php echo
$row['Employer2WorkDuration'];?>">
</div></div>
<div class="row">
<div class="col-4 mb-3">Employer3 Name</div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="emp3name" name="emp3name" aria-describedby="emailHelp" value="<?php echo
$row['Employer3Name'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer3 Designation </div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="emp3des" name="emp3des" aria-describedby="emailHelp" value="<?php echo
$row['Employer3Designation'];?>"></div>
</div>
<div class="row">

57
<div class="col-4 mb-3">Employer3 CTC </div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="emp3ctc" name="emp3ctc" aria-
describedby="emailHelp" value="<?php echo $row['Employer3CTC'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer3 WorkDuration</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="emp3workduration"
name="emp3workduration" aria-describedby="emailHelp" value="<?php echo
$row['Employer3WorkDuration'];?>">
</div></div>
<?php } ?>
<div class="row" style="margin-top:4%">
<div class="col-4"></div>
<div class="col-4">
<input type="submit" name="submit" value="Update" class="btn btn-primary btn-user btn-
block">
</div>
</div>
</form>
<?php } else {?>
<div class="row" style="margin-top:4%">
<div class="col-12" style="font-size:18px; color:red;">First Add your experience details after
that you can edit experience details.</div>
</div>
<?php } ?>
</div>
<!-- /.container-fluid -->
</div>
<!-- End of Main Content -->

58
<!-- Footer -->
<?php include_once('includes/footer.php');?>
<!-- End of Footer -->
</div>
<!-- End of Content Wrapper -->
</div>
<!-- End of Page Wrapper -->
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
<i class="fas fa-angle-up"></i>
</a>
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="js/sb-admin-2.min.js"></script>
<script type="text/javascript">
$(".jDate").datepicker({
format: 'yyyy-mm-dd',
autoclose: true
}).datepicker("update", "10/10/2016");
</script>
</body>
</html>
<?php } ?>

59
6.My Education

<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
//error_reporting(0);
if (strlen($_SESSION['uid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$eid=$_SESSION['uid'];
$coursepg=$_POST['coursepg'];
$schoolclgpg=$_POST['schoolclgpg'];
$yoppg=$_POST['yoppg'];
$pipg=$_POST['pipg'];
$coursegra=$_POST['coursegra'];
$schoolclggra=$_POST['schoolclggra'];
$yopgra=$_POST['yopgra'];
$pigra=$_POST['pigra'];
$coursessc=$_POST['coursessc'];
$schoolclgssc=$_POST['schoolclgssc'];
$yopssc=$_POST['yopssc'];
$pissc=$_POST['pissc'];
$coursehsc=$_POST['coursehsc'];
$schoolclghsc=$_POST['schoolclghsc'];
$yophsc=$_POST['yophsc'];
$pihsc=$_POST['pihsc']; $query=mysqli_query($con, "insert into empeducation(
EmpID,CoursePG, SchoolCollegePG, YearPassingPG, PercentagePG, CourseGra,
SchoolCollegeGra, YearPassingGra, PercentageGra, CourseSSC, SchoolCollegeSSC,

60
YearPassingSSC, PercentageSSC, CourseHSC, SchoolCollegeHSC, YearPassingHSC,
PercentageHSC) value('$eid','$coursepg', '$schoolclgpg', '$yoppg', '$pipg', '$coursegra',
'$schoolclggra', '$yopgra', '$pigra', '$coursessc', '$schoolclgssc', '$yopssc', '$pissc', '$coursehsc',
'$schoolclghsc', '$yophsc', '$pihsc' )");
if ($query) {
$msg="Your Education data has been submitted succeesfully.";
}
else
{
$msg="Something Went Wrong. Please try again.";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>My Education</title>
<!-- Custom fonts for this template-->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,
700i,800,800i,900,900i" rel="stylesheet">
<link href="vendor/datatables/dataTables.bootstrap4.min.css" rel="stylesheet">
<!-- Custom styles for this template-->
<link href="css/sb-admin-2.min.css" rel="stylesheet">
</head>

61
<body id="page-top">
<!-- Page Wrapper -->
<div id="wrapper">
<!-- Sidebar -->
<?php include_once('includes/sidebar.php')?>
<!-- End of Sidebar -->
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Topbar -->
<?php include_once('includes/header.php')?>
<!-- End of Topbar -->
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<h1 class="h3 mb-4 text-gray-800">My Education</h1>
<p style="font-size:16px; color:red" align="center"><?php if($msg){
echo $msg;
} ?></p>
<?php
$empid=$_SESSION['uid'];
$query=mysqli_query($con,"select * from empeducation where EmpID=$empid");
$row=mysqli_fetch_array($query);
if($row>0)
{
?>
<p style="font-size:16px; color:red" align="center">Your Education details already added. Now
you can only edit the record. </p>
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
<tr>

62
<th>Post Graduate Course Name</th>
<td><?php echo $row['CoursePG'];?></td>
</tr>
<tr>
<th>Post Graduate School/College</th>
<td><?php echo $row['SchoolCollegePG'];?></td>
</tr>
<tr>
<th>Year of Passing in PG</th>
<td><?php echo $row['YearPassingPG'];?></td>
</tr>
<tr>
<th>Percent in PG</th>
<td><?php echo $row['PercentagePG'];?></td>
</tr>
<tr>
<th>Graduation Course Name</th>
<td><?php echo $row['CourseGra'];?></td>
</tr>
<tr>
<th>Graduate School/College</th>
<td><?php echo $row['SchoolCollegeGra'];?></td>
</tr>
<tr>
<th>Year of Passing in Graduation</th>
<td><?php echo $row['YearPassingGra'];?></td>
</tr>
<tr>
<th>Percent in Graduation</th>
<td><?php echo $row['PercentageGra'];?></td>
</tr>

63
<th>SSC Course Name</th>
<td><?php echo $row['CourseSSC'];?></td>
</tr>
<tr>
<th>SSC School/College</th>
<td><?php echo $row['SchoolCollegeSSC'];?></td>
</tr>
<tr>
<th>Year of Passing in SSC</th>
<td><?php echo $row['YearPassingSSC'];?></td>
</tr>
<tr>
<th>Percent in SSC</th>
<td><?php echo $row['PercentageSSC'];?></td>
</tr>
<th>HSC Course Name</th>
<td><?php echo $row['CourseHSC'];?></td>
</tr>
<tr>
<th>HSC School/College</th>
<td><?php echo $row['SchoolCollegeHSC'];?></td>
</tr>
<tr>
<th>Year of Passing in HSC</th>
<td><?php echo $row['YearPassingHSC'];?></td>
</tr>
<tr>
<th>Percent in HSC</th>
<td><?php echo $row['PercentageHSC'];?></td>
</tr>
</table>

64
<?php } else {?>
<form class="user" method="post" action="">
<div class="row">
<div class="col-4 mb-3">Course Post Graduation</div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="coursepg" name="coursepg" aria-describedby="emailHelp" value=""></div>
</div>
<div class="row">
<div class="col-4 mb-3">School/College Post Graduation </div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="schoolclgpg" name="schoolclgpg" aria-describedby="emailHelp" value=""></div>
</div>
<div class="row">
<div class="col-4 mb-3">Year of Passing Post Graduation </div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="yoppg" name="yoppg" aria-
describedby="emailHelp" value=""></div>
</div>
<div class="row">
<div class="col-4 mb-3">Percentage in PG</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="pipg" name="pipg" aria-
describedby="emailHelp" value="">
</div></div>
<div class="row">
<div class="col-4 mb-3">Course Graduation</div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="coursegra" name="coursegra" aria-describedby="emailHelp" value=""
required="true"></div>
</div>
<div class="row">

65
<div class="col-4 mb-3">School/College Graduation </div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="schoolclggra" name="schoolclggra" aria-describedby="emailHelp" value=""
required="true"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Year of Passing Graduation </div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="yopgra" name="yopgra" aria-
describedby="emailHelp" value="" required="true"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Percentage in Graduation</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="pigra" name="pigra" aria-
describedby="emailHelp" value="" required="true">
</div></div>
<div class="row">
<div class="col-4 mb-3">Course SSC</div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="coursessc" name="coursessc" aria-describedby="emailHelp" value=""
required="true"></div>
</div>
<div class="row">
<div class="col-4 mb-3">School/College SSC </div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="schoolclgssc" name="schoolclgssc" aria-describedby="emailHelp" value=""
required="true"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Year of Passing SSC </div>

66
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="yopssc" name="yopssc" aria-
describedby="emailHelp" value="" required="true"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Percentage in SSC</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="pissc" name="pissc" aria-
describedby="emailHelp" value="" required="true">
</div></div>
<div class="row">
<div class="col-4 mb-3">Course HSC</div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="coursehsc" name="coursehsc" aria-describedby="emailHelp" value=""
required="true"></div>
</div>
<div class="row">
<div class="col-4 mb-3">School/College HSC </div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="schoolclghsc" name="schoolclghsc" aria-describedby="emailHelp" value=""
required="true"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Year of Passing HSC </div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="yophsc" name="yophsc" aria-
describedby="emailHelp" value="" required="true"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Percentage in HSC</div>
<div class="col-8 mb-3">

67
<input type="text" class="form-control form-control-user" id="pihsc" name="pihsc" aria-
describedby="emailHelp" value="" required="true">
</div></div>
<div class="row" style="margin-top:4%">
<div class="col-4"></div>
<div class="col-4">
<input type="submit" name="submit" value="submit" class="btn btn-primary btn-user btn-
block">
</div>
</div>
</form>
<?php } ?
</div>
<!-- /.container-fluid -->
</div>
<!-- End of Main Content -->
<!-- Footer -->
<?php include_once('includes/footer.php');?>
<!-- End of Footer -->
</div>
<!-- End of Content Wrapper -->
</div>
<!-- End of Page Wrapper -->
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
<i class="fas fa-angle-up"></i>
</a>
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->

68
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Page level plugins -->
<script src="vendor/datatables/jquery.dataTables.min.js"></script>
<script src="vendor/datatables/dataTables.bootstrap4.min.js"></script>
<!-- Page level custom scripts -->
<script src="js/demo/datatables-demo.js"></script>
<!-- Custom scripts for all pages-->
<script src="js/sb-admin-2.min.js"></script>
<script type="text/javascript">
$(".jDate").datepicker({
format: 'yyyy-mm-dd',
autoclose: true
}).datepicker("update", "10/10/2016");
</script>
</body>
</html>
<?php } ?>

69
7.Edit My Education

<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
//error_reporting(0);
if (strlen($_SESSION['uid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$eid=$_SESSION['uid'];
$coursepg=$_POST['coursepg'];
$schoolclgpg=$_POST['schoolclgpg'];
$yoppg=$_POST['yoppg'];
$pipg=$_POST['pipg'];
$coursegra=$_POST['coursegra'];
$schoolclggra=$_POST['schoolclggra'];
$yopgra=$_POST['yopgra'];
$pigra=$_POST['pigra'];
$coursessc=$_POST['coursessc'];
$schoolclgssc=$_POST['schoolclgssc'];
$yopssc=$_POST['yopssc'];
$pissc=$_POST['pissc'];
$coursehsc=$_POST['coursehsc'];
$schoolclghsc=$_POST['schoolclghsc'];
$yophsc=$_POST['yophsc'];
$pihsc=$_POST['pihsc'];
$query=mysqli_query($con, "update empeducation set CoursePG='$coursepg',
SchoolCollegePG='$schoolclgpg', YearPassingPG='$yoppg', PercentagePG= '$pipg',

70
CourseGra='$coursegra', SchoolCollegeGra='$schoolclggra', YearPassingGra= '$yopgra',
PercentageGra='$pigra', CourseSSC='$coursessc', SchoolCollegeSSC='$schoolclgssc',
YearPassingSSC= '$yopssc', PercentageSSC= '$pissc', CourseHSC='$coursehsc',
SchoolCollegeHSC='$schoolclghsc', YearPassingHSC='$yophsc', PercentageHSC='$pihsc'
where EmpID='$eid'");
if ($query) {
$msg="Your Education data has been updated succeesfully.";
}
else
{
$msg="Something Went Wrong. Please try again.";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Edit My Education</title>
<!-- Custom fonts for this template-->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,
700i,800,800i,900,900i" rel="stylesheet">
<!-- Custom styles for this template-->
<link href="css/sb-admin-2.min.css" rel="stylesheet">
</head>

71
<body id="page-top">
<!-- Page Wrapper -->
<div id="wrapper">
<!-- Sidebar -->
<?php include_once('includes/sidebar.php')?>
<!-- End of Sidebar -->
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Topbar -->
<?php include_once('includes/header.php')?>
<!-- End of Topbar -->
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<h1 class="h3 mb-4 text-gray-800">Edit My Education</h1>
<p style="font-size:16px; color:red" align="center"><?php if($msg){
echo $msg;
} ?></p>
<form class="user" method="post" action="">
<?php
$cid=$_SESSION['uid'];
$ret=mysqli_query($con,"select * from empeducation where EmpID='$cid'");
$num=mysqli_num_rows($ret);
if($num>0){
$cnt=1;
while ($row=mysqli_fetch_array($ret)) {
?>
<div class="row">
<div class="col-4 mb-3">Course Post Graduation</div>

72
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="coursepg" name="coursepg" aria-describedby="emailHelp" value="<?php echo
$row['CoursePG'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">School/College Post Graduation </div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="schoolclgpg" name="schoolclgpg" aria-describedby="emailHelp" value="<?php echo
$row['SchoolCollegePG'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Year of Passing Post Graduation </div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="yoppg" name="yoppg" aria-
describedby="emailHelp" value="<?php echo $row['YearPassingPG'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Percentage in PG</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="pipg" name="pipg" aria-
describedby="emailHelp" value="<?php echo $row['PercentagePG'];?>">
</div></div>
<div class="row">
<div class="col-4 mb-3">Course Graduation</div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="coursegra" name="coursegra" aria-describedby="emailHelp" required="true" value="<?php
echo $row['CourseGra'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">School/College Graduation </div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"

73
id="schoolclggra" name="schoolclggra" aria-describedby="emailHelp" required="true"
value="<?php echo $row['SchoolCollegeGra'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Year of Passing Graduation </div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="yopgra" name="yopgra" aria-
describedby="emailHelp" required="true" value="<?php echo
$row['YearPassingGra'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Percentage in Graduation</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="pigra" name="pigra" aria-
describedby="emailHelp" required="true" value="<?php echo $row['PercentageGra'];?>">
</div></div>
<div class="row">
<div class="col-4 mb-3">Course SSC</div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="coursessc" name="coursessc" aria-describedby="emailHelp" required="true" value="<?php
echo $row['CourseSSC'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">School/College SSC </div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="schoolclgssc" name="schoolclgssc" aria-describedby="emailHelp" required="true"
value="<?php echo $row['SchoolCollegeSSC'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Year of Passing SSC </div>
<div class="col-8 mb-3">

74
<input type="text" class="form-control form-control-user" id="yopssc" name="yopssc" aria-
describedby="emailHelp" required="true" value="<?php echo
$row['YearPassingSSC'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Percentage in SSC</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="pissc" name="pissc" aria-
describedby="emailHelp" required="true" value="<?php echo $row['PercentageSSC'];?>">
</div></div>
<div class="row">
<div class="col-4 mb-3">Course HSC</div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="coursehsc" name="coursehsc" aria-describedby="emailHelp" required="true" value="<?php
echo $row['CourseHSC'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">School/College HSC </div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="schoolclghsc" name="schoolclghsc" aria-describedby="emailHelp" required="true"
value="<?php echo $row['SchoolCollegeHSC'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Year of Passing HSC </div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="yophsc" name="yophsc" aria-
describedby="emailHelp" required="true" value="<?php echo
$row['YearPassingHSC'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Percentage in HSC</div>

75
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="pihsc" name="pihsc" aria-
describedby="emailHelp" required="true" value="<?php echo $row['PercentageHSC'];?>">
</div></div>
<?php } ?>
<div class="row" style="margin-top:4%">
<div class="col-4"></div>
<div class="col-4">
<input type="submit" name="submit" value="update" class="btn btn-primary btn-user btn-
block">
</div>
</div>
</form>
<?php } else {?>
<div class="row" style="margin-top:4%">
<div class="col-12" style="font-size:18px; color:red;">First Add your education details after that
you can edit education details.</div>
</div>
<?php } ?>
</div>
<!-- /.container-fluid -->
</div>
<!-- End of Main Content -->
<!-- Footer -->
<?php include_once('includes/footer.php');?>
<!-- End of Footer -->
</div>
<!-- End of Content Wrapper -->
</div>
<!-- End of Page Wrapper -->
<!-- Scroll to Top Button-->

76
<a class="scroll-to-top rounded" href="#page-top">
<i class="fas fa-angle-up"></i>
</a>
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="js/sb-admin-2.min.js"></script>
<script type="text/javascript">
$(".jDate").datepicker({
format: 'yyyy-mm-dd',
autoclose: true
}).datepicker("update", "10/10/2016");
</script>
</body>
</html>
<?php } ?>

77
8.My Profile

<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
//error_reporting(0);
if (strlen($_SESSION['uid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$eid=$_SESSION['uid'];
$FName=$_POST['FirstName'];
$LName=$_POST['LastName'];
$empcode=$_POST['EmpCode'];
$EmpDept=$_POST['EmpDept'];
$EmpDesignation=$_POST['EmpDesignation'];
$EmpContactNo=$_POST['EmpContactNo'];
$gender=$_POST['gender'];
$empjdate=$_POST['EmpJoingdate'];
$query=mysqli_query($con, "update employeedetail set EmpFname='$FName',
EmpLName='$LName', EmpCode='$empcode', EmpDept='$EmpDept',
EmpDesignation='$EmpDesignation', EmpContactNo='$EmpContactNo',
EmpGender='$gender',EmpJoingdate='$empjdate' where ID='$eid'");
if ($query) {
$msg="Your profile has been updated.";
}
else
{
$msg="Something Went Wrong. Please try again.";

78
}
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>My Profile</title>
<!-- Custom fonts for this template-->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,
700i,800,800i,900,900i" rel="stylesheet">
<!-- Custom styles for this template-->
<link href="css/sb-admin-2.min.css" rel="stylesheet">
</head>
<body id="page-top">
<!-- Page Wrapper -->
<div id="wrapper">
<!-- Sidebar -->
<?php include_once('includes/sidebar.php')?>
<!-- End of Sidebar -->
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">

79
<!-- Topbar -->
<?php include_once('includes/header.php')?>
<!-- End of Topbar -->
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<h1 class="h3 mb-4 text-gray-800">My Profile</h1>
<p style="font-size:16px; color:red" align="center"><?php if($msg){
echo $msg;
} ?></p>
<form class="user" method="post" action="">
<?php
$eid=$_SESSION['uid'];
$ret=mysqli_query($con,"select * from employeedetail where ID='$eid'");
$cnt=1;
while ($row=mysqli_fetch_array($ret)) {
?>
<div class="row">
<div class="col-4 mb-3">First Name</div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="FirstName" name="FirstName" aria-describedby="emailHelp" required="true"
value="<?php echo $row['EmpFname'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Last Name </div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="LastName" name="LastName" aria-describedby="emailHelp" required="true"
value="<?php echo $row['EmpLName'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employee Code </div>

80
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="EmpCode" name="EmpCode"
aria-describedby="emailHelp" required="true" value="<?php echo
$row['EmpCode'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employee Dept</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="EmpDept" name="EmpDept"
aria-describedby="emailHelp" required="true" value="<?php echo $row['EmpDept'];?>">
</div></div>
<div class="row">
<div class="col-4 mb-3">Employee Desigantion</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="EmpDesignation"
name="EmpDesignation" aria-describedby="emailHelp" required="true" value="<?php echo
$row['EmpDesignation'];?>">
</div></div>
<div class="row">
<div class="col-4 mb-3">Employee Contact No.</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="EmpContactNo"
name="EmpContactNo" aria-describedby="emailHelp" required="true" value="<?php echo
$row['EmpContactNo'];?>">
</div></div>
<div class="row">
<div class="col-4 mb-3">Email</div>
<div class="col-8 mb-3">
<input type="email" class="form-control form-control-user" id="Email" name="Email" aria-
describedby="emailHelp" placeholder="Enter Email Address..." required="true" value="<?php
echo $row['EmpEmail'];?>" readonly="true">

81
</div></div>
<div class="row">
<div class="col-4 mb-3">Employee Joing Date(yyyy-mm-dd)</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" value="<?php echo
$row['EmpJoingdate'];?>" id="jDate" name="EmpJoingdate" aria-describedby="emailHelp">
</div></div>
<div class="row">
<div class="col-4 mb-3">Gender</div>
<div class="col-4 mb-3">
<?php if($row['EmpGender']=="Male")
{?>
<input type="radio" id="gender" name="gender" value="Male" checked="true">Male
<input type="radio" name="gender" value="Female">Female
<?php } else if($row['EmpGender']=="Female") {?>
<input type="radio" id="gender" name="gender" value="Male" >Male
<input type="radio" name="gender" value="Female" checked="true">Female
<?php } else { ?>
<input type="radio" id="gender" name="gender" value="Male" >Male
<input type="radio" name="gender" value="Female">Female
<?php } ?>
</div></div>
<?php } ?>
<div class="row" style="margin-top:4%">
<div class="col-4"></div>
<div class="col-4">
<input type="submit" name="submit" value="Update" class="btn btn-primary btn-user btn-
block">
</div>
</div>
</form>

82
</div>
<!-- /.container-fluid -->
</div>
<!-- End of Main Content -->
<!-- Footer -->
<?php include_once('includes/footer.php');?>
<!-- End of Footer -->
</div>
<!-- End of Content Wrapper -->
</div>
<!-- End of Page Wrapper -->
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
<i class="fas fa-angle-up"></i>
</a>
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="js/sb-admin-2.min.js"></script>
<script type="text/javascript">
$(".jDate").datepicker({
format: 'yyyy-mm-dd',
autoclose: true
}).datepicker("update", "10/10/2016");
</script>
</body>
</html>
<?php } ?>

83
9.Change Password

<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
//error_reporting(0);
if (strlen($_SESSION['uid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$empid=$_SESSION['uid'];
$cpassword=$_POST['currentpassword'];
$newpassword=$_POST['newpassword'];
$query=mysqli_query($con,"select ID from employeedetail where ID='$empid' and
EmpPassword='$cpassword'");
$row=mysqli_fetch_array($query);
if($row>0){
$ret=mysqli_query($con,"update employeedetail set EmpPassword='$newpassword' where
ID='$empid'");
$msg= "Your password successully changed";
} else {
$msg="Your current password is wrong";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">

84
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Change Password</title>
<!-- Custom fonts for this template-->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,
700i,800,800i,900,900i" rel="stylesheet">
<!-- Custom styles for this template-->
<link href="css/sb-admin-2.min.css" rel="stylesheet">
<script type="text/javascript">
function checkpass()
{
if(document.changepassword.newpassword.value!=document.changepassword.confirmpassword.
value)
{
alert('New Password and Confirm Password field does not match');
document.changepassword.confirmpassword();
return false;
}
return true;
}
</script>
</head>
<body id="page-top">
<!-- Page Wrapper -->
<div id="wrapper">
<!-- Sidebar -->
<?php include_once('includes/sidebar.php')?>

85
<!-- End of Sidebar -->
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Topbar -->
<?php include_once('includes/header.php')?>
<!-- End of Topbar -->
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<h1 class="h3 mb-4 text-gray-800">Change Password</h1>
<p style="font-size:16px; color:red" align="center"><?php if($msg){
echo $msg;
} ?></p>
<form name="changepassword" class="user" method="post" onsubmit="return checkpass();">
<?php
$cid=$_SESSION['uid'];
$ret=mysqli_query($con,"select * from employeedetail where ID='$cid'");
$cnt=1;
while ($row=mysqli_fetch_array($ret)) {
?>
<div class="row">
<div class="col-4 mb-3">Current Password</div>
<div class="col-8 mb-3"><input type="Password" class="form-control form-control-user"
id="Password" name="currentpassword" value="" required="true"></div>
</div>
<div class="row">
<div class="col-4 mb-3">New Password </div>
<div class="col-8 mb-3"><input type="Password" class="form-control form-control-user"
id="newpassword" name="newpassword" value="" required="true"></div>

86
</div>
<div class="row">
<div class="col-4 mb-3">Confirm Password </div>
<div class="col-8 mb-3">
<input type="Password" class="form-control form-control-user" id="confirmpassword"
name="confirmpassword" value="" required="true"></div>
</div>
<?php } ?>
<div class="row" style="margin-top:4%">
<div class="col-4"></div>
<div class="col-4">
<input type="submit" name="submit" value="Change" class="btn btn-primary btn-user btn-
block">
</div>
</div>
</form>
</div>
<!-- /.container-fluid -->
</div>
<!-- End of Main Content -->
<!-- Footer -->
<?php include_once('includes/footer.php');?>
<!-- End of Footer -->
</div>
<!-- End of Content Wrapper -->
</div>
<!-- End of Page Wrapper -->
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
<i class="fas fa-angle-up"></i>
</a>

87
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="js/sb-admin-2.min.js"></script>
<script type="text/javascript">
$(".jDate").datepicker({
format: 'yyyy-mm-dd',
autoclose: true
}).datepicker("update", "10/10/2016");
</script>
</body>
</html>
<?php } ?>

88
10.Register An Account

<?php
include('includes/dbconnection.php');
error_reporting(0);
if(isset($_POST['submit']))
{
$FName=$_POST['FirstName'];
$LName=$_POST['LastName'];
$empcode=$_POST['empcode'];
$Email=$_POST['Email'];
$Password=$_POST['Password'];
//$RPassword=$_POST['RepeatPassword'];
$ret=mysqli_query($con, "select EmpEmail from employeedetail where
EmpEmail='$Email'");
$result=mysqli_fetch_array($ret);
if($result>0){
$msg="This email already associated with another account";
}
else{
$query=mysqli_query($con, "insert into employeedetail(EmpFname, EmpLName, EmpCode,
EmpEmail, EmpPassword) value('$FName', '$LName', '$empcode', '$Email', '$Password' )");
if ($query) {
$msg="You have successfully registered";
}
else
{
$msg="Something Went Wrong. Please try again";
}
}
}

89
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Employee Record Managment System</title>
<!-- Custom fonts for this template-->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,
700i,800,800i,900,900i" rel="stylesheet">
<!-- Custom styles for this template-->
<link href="css/sb-admin-2.min.css" rel="stylesheet">
<script type="text/javascript">
function checkpass()
{
if(document.register.Password.value!=document.register.RepeatPassword.value)
{
alert('New Password and Confirm Password field does not match');
document.register.RepeatPassword();
return false;
}
return true;
}
</script>
</head>
<body class="bg-gradient-primary">

90
<div class="container">
<h3 align="center" style="color: black; padding-top: 1%">Employee Record Managment
System</h3>
<div class="card o-hidden border-0 shadow-lg my-5">
<div class="card-body p-0">
<!-- Nested Row within Card Body -->
<div class="row">
<div class="col-lg-5 d-none d-lg-block bg-register-image"></div>
<div class="col-lg-7">
<div class="p-5">
<div class="text-center">
<h1 class="h4 text-gray-900 mb-4">Create an Account!</h1>
</div>
<p style="font-size:16px; color:red" align="center"><?php if($msg){
echo $msg;
} ?></p>
<form class="user" name="register" method="post" onsubmit="return checkpass();">
<div class="form-group row">
<div class="col-sm-6 mb-3 mb-sm-0">
<input type="text" class="form-control form-control-user" id="FirstName" name="FirstName"
placeholder="First Name" pattern="[A-Za-z]+" required="true">
</div>
<div class="col-sm-6">
<input type="text" class="form-control form-control-user" id="LastName" name="LastName"
placeholder="Last Name" pattern="[A-Za-z]+" required="true">
</div>
</div>
<div class="form-group">
<input type="text" class="form-control form-control-user" id="empcode" name="empcode"
placeholder="Enter your Employee Code" pattern="[0-9]+" required="true">
</div>

91
<div class="form-group">
<input type="email" class="form-control form-control-user" id="Email" name="Email"
placeholder="Email Address" required="true">
</div>
<div class="form-group row">
<div class="col-sm-6 mb-3 mb-sm-0">
<input type="password" class="form-control form-control-user" id="Password"
name="Password" placeholder="Password" required="true">
</div>
<div class="col-sm-6">
<input type="password" class="form-control form-control-user" id="RepeatPassword"
name="RepeatPassword" placeholder="Repeat Password" required="true">
</div>
</div>
<input type="submit" name="submit" value="Register Account" class="btn btn-primary btn-user
btn-block">
</form>
<hr>
<div class="text-center">
<a class="small" href="loginerms.php">Already have an account? Login!</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->

92
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="js/sb-admin-2.min.js"></script>
</body>
</html>

11.Admin Dashboard

<?php
session_start();
include('includes/dbconnection.php');
if(strlen($_SESSION['aid']==0)){
header('location:logout.php');
}
else {
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Welcome to Employee Rocord Management System </title>
<!-- Custom fonts for this template-->
<link href="../vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,
700i,800,800i,900,900i" rel="stylesheet">
<!-- Custom styles for this template-->

93
<link href="../css/sb-admin-2.min.css" rel="stylesheet">
</head>
<body id="page-top">
<!-- Page Wrapper -->
<div id="wrapper">
<!-- Sidebar -->
<?php include_once('includes/sidebar.php');?>
<!-- End of Sidebar -->
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Topbar -->
<?php include_once('includes/header.php');?>
<!-- End of Topbar -->
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<h1 class="h3 mb-0 text-gray-800">Employee Record Management System</h1>
</div>
<!-- Content Row -->
<div class="row">
<div class="col-xl-3 col-md-6 mb-4"></div>
<!-- Earnings (Monthly) Card Example -->
<div class="col-xl-6 col-md-6 mb-4">
<div class="card border-left-primary shadow h-100 py-2">
<div class="card-body">
<div class="row no-gutters align-items-center">
<div class="col mr-2">
<div class="text-xs font-weight-bold text-primary text-uppercase mb-1">Welcome Back to

94
ERMS !</div>
<?php
$adminid=$_SESSION['aid'];
$ret=mysqli_query($con,"select AdminName from tbladmin where ID='$adminid'");
$row=mysqli_fetch_array($ret);
$name=$row['AdminName'];
?>
<div class="h5 mb-0 font-weight-bold text-gray-800"><?php echo $name; ?></div>
</div>
<div class="col-auto">
<i class="fas fa-user fa-2x text-gray-300"></i>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Content Row -->
</div>
</div>
</div>
<!-- /.container-fluid -->
</div>
<!-- End of Main Content -->
<!-- Footer -->
<?php include_once('includes/footer.php');?>
<!-- End of Footer -->
</div>
<!-- End of Content Wrapper -->
</div>
<!-- End of Page Wrapper -->

95
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
<i class="fas fa-angle-up"></i>
</a>
<!-- Bootstrap core JavaScript-->
<script src="../vendor/jquery/jquery.min.js"></script>
<script src="../vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="../vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="../js/sb-admin-2.min.js"></script>
<!-- Page level plugins -->
<script src="../vendor/chart.js/Chart.min.js"></script>
<!-- Page level custom scripts -->
<script src="../js/demo/chart-area-demo.js"></script>
<script src="../js/demo/chart-pie-demo.js"></script>
</body>
</html>
</html>
<?php
}
?>

96
12.Login(Admin)

<?php
session_start();
include('includes/dbconnection.php');
if(isset($_POST['login']))
{
$uname=$_POST['username'];
$Password=$_POST['Password'];
$query=mysqli_query($con,"select ID from tbladmin where AdminuserName='$uname' &&
Password='$Password' ");
$ret=mysqli_fetch_array($query);
if($ret>0){
$_SESSION['aid']=$ret['ID'];
header('location:welcome.php');
}
else{
echo "Invalid Details";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="Employee Record management System in php and mysql">
<meta name="description" content="Employee Record management System in php and mysql">
<meta name="author" content="Sarita Pandey">
<title>ERMS Admin Login</title>
<!-- Custom fonts for this template-->

97
<link href="../vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,
700i,800,800i,900,900i" rel="stylesheet">
<!-- Custom styles for this template-->
<link href="../css/sb-admin-2.min.css" rel="stylesheet">
</head>
<body class="bg-gradient-primary">
<div class="container">
<h3 align="center" style="color: black; padding-top: 2%">Employee Record Managment
System</h3>
<!-- Outer Row -->
<div class="row justify-content-center">
<div class="col-xl-10 col-lg-12 col-md-9">
<div class="card o-hidden border-0 shadow-lg my-5">
<div class="card-body p-0">
<!-- Nested Row within Card Body -->
<div class="row">
<div class="col-lg-6 d-none d-lg-block bg-login-image"></div>
<div class="col-lg-6">
<div class="p-5">
<div class="text-center">
<h1 class="h4 text-gray-900 mb-4">Admin login!</h1>
</div>
<form class="user" method="post" action="">
<div class="form-group">
<input type="test" class="form-control form-control-user" id="username" name="username"
aria-describedby="emailHelp" required="true" placeholder="Enter username ...">
</div>
<div class="form-group">
<input type="password" class="form-control form-control-user" id="Password"

98
name="Password" placeholder="Password" required="true">
</div>
<p><input type="submit" class="btn btn-primary btn-user btn-block" name="login"
value="login"></p>
<hr>
</form>
<hr>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript-->
<script src="../vendor/jquery/jquery.min.js"></script>
<script src="../vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="../vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="../js/sb-admin-2.min.js"></script>
</body>
</html>

99
13.Admin Profile

<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
//error_reporting(0);
if (strlen($_SESSION['aid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$adminid=$_SESSION['aid'];
$AName=$_POST['AdminName'];
$query=mysqli_query($con, "update tbladmin set AdminName ='$AName' where
ID='$adminid'");
if ($query) {
$msg="Admin profile has been updated.";
}
else
{
$msg="Something Went Wrong. Please try again.";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

100
<meta name="description" content="">
<meta name="author" content="">
<title>Admin Profile</title>
<!-- Custom fonts for this template-->
<link href="../vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,
700i,800,800i,900,900i" rel="stylesheet">
<!-- Custom styles for this template-->
<link href="../css/sb-admin-2.min.css" rel="stylesheet">
</head>
<body id="page-top">
<!-- Page Wrapper -->
<div id="wrapper">
<!-- Sidebar -->
<?php include_once('includes/sidebar.php')?>
<!-- End of Sidebar -->
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Topbar -->
<?php include_once('includes/header.php')?>
<!-- End of Topbar -->
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<h1 class="h3 mb-4 text-gray-800">Admin Profile</h1>
<p style="font-size:16px; color:red" align="center"><?php if($msg){
echo $msg;
} ?></p>

101
<form class="user" method="post" action="">
<?php
$adminid=$_SESSION['aid'];
$ret=mysqli_query($con,"select * from tbladmin where ID='$adminid'");
$cnt=1;
while ($row=mysqli_fetch_array($ret)) {
?>
<div class="row">
<div class="col-4 mb-3">Admin Name</div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="AdminName" name="AdminName" aria-describedby="emailHelp" required="true"
value="<?php echo $row['AdminName'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">User Name </div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
readonly="true" id="UserName" name="UserName" aria-describedby="emailHelp"
value="<?php echo $row['AdminuserName'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Admin Registration Date(yyyy-mm-dd)</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" readonly="true" value="<?php echo
$row['AdminRegdate'];?>" id="AdminRegdate" name="AdminRegdate" aria-
describedby="emailHelp" >
</div></div>
<?php } ?>
<div class="row" style="margin-top:4%">
<div class="col-4"></div>
<div class="col-4">
<input type="submit" name="submit" value="Update" class="btn btn-primary btn-user btn-

102
block">
</div>
</div>
</form>
</div>
<!-- /.container-fluid -->
</div>
<!-- End of Main Content -->
</div>
<!-- End of Content Wrapper -->
</div>
<!-- End of Page Wrapper -->
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
<i class="fas fa-angle-up"></i>
</a>
<!-- Bootstrap core JavaScript-->
<script src="../vendor/jquery/jquery.min.js"></script>
<script src="../vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="../vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="js/sb-admin-2.min.js"></script>
<script type="text/javascript">
$(".jDate").datepicker({
format: 'yyyy-mm-dd',
autoclose: true
}).datepicker("update", "10/10/2016");
</script>
</body>
</html>

103
<?php } ?>

14.Change Password

<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
//error_reporting(0);
if (strlen($_SESSION['aid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$adminid=$_SESSION['aid'];
$cpassword=$_POST['currentpassword'];
$newpassword=$_POST['newpassword'];
$query=mysqli_query($con,"select ID from tbladmin where ID='$adminid' and
Password='$cpassword'");
$row=mysqli_fetch_array($query);
if($row>0){
$ret=mysqli_query($con,"update tbladmin set Password='$newpassword' where
ID='$adminid'");
$msg= "Your password successully changed";
} else {
$msg="Your current password is wrong";
}
}
?>
<!DOCTYPE html>

104
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Change Password</title>
<!-- Custom fonts for this template-->
<link href="../vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,
700i,800,800i,900,900i" rel="stylesheet">
<!-- Custom styles for this template-->
<link href="../css/sb-admin-2.min.css" rel="stylesheet">
<script type="text/javascript">
function checkpass()
{
if(document.changepassword.newpassword.value!=document.changepassword.confirmpassword.
value)
{
alert('New Password and Confirm Password field does not match');
document.changepassword.confirmpassword();
return false;
}
return true;
}
</script>
</head>
<body id="page-top">
<!-- Page Wrapper -->

105
<div id="wrapper">
<!-- Sidebar -->
<?php include_once('includes/sidebar.php')?>
<!-- End of Sidebar -->
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Topbar -->
<?php include_once('includes/header.php')?>
<!-- End of Topbar -->
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<h1 class="h3 mb-4 text-gray-800">Change Password</h1>
<p style="font-size:16px; color:red" align="center"><?php if($msg){
echo $msg;
} ?></p>
<form name="changepassword" class="user" method="post" onsubmit="return checkpass();">
<?php
$adminid=$_SESSION['aid'];
$ret=mysqli_query($con,"select * from tbladmin where ID='$adminid'");
$cnt=1;
while ($row=mysqli_fetch_array($ret)) {
?>
<div class="row">
<div class="col-4 mb-3">Current Password</div>
<div class="col-8 mb-3"><input type="Password" class="form-control form-control-user"
id="Password" name="currentpassword" value="" required="true"></div>
</div>
<div class="row">

106
<div class="col-4 mb-3">New Password </div>
<div class="col-8 mb-3"><input type="Password" class="form-control form-control-user"
id="newpassword" name="newpassword" value="" required="true"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Confirm Password </div>
<div class="col-8 mb-3">
<input type="Password" class="form-control form-control-user" id="confirmpassword"
name="confirmpassword" value="" required="true"></div>
</div>
<?php } ?>
<div class="row" style="margin-top:4%">
<div class="col-4"></div>
<div class="col-4">
<input type="submit" name="submit" value="Change" class="btn btn-primary btn-user btn-
block">
</div>
</div>
</form>
</div>
<!-- /.container-fluid -->
</div>
<!-- End of Main Content -->
</div>
<!-- End of Content Wrapper -->
</div>
<!-- End of Page Wrapper -->
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
<i class="fas fa-angle-up"></i>
</a>

107
<!-- Bootstrap core JavaScript-->
<script src="../vendor/jquery/jquery.min.js"></script>
<script src="../vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="js/sb-admin-2.min.js"></script>
<script type="text/javascript">
$(".jDate").datepicker({
format: 'yyyy-mm-dd',
autoclose: true
}).datepicker("update", "10/10/2016");
</script>
</body>
</html>
<?php } ?>

15.Employees details

<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
//error_reporting(0);
if (strlen($_SESSION['aid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$eid=$_SESSION['uid'];

108
$emp1name=$_POST['emp1name'];
$emp1des=$_POST['emp1des'];
$emp1ctc=$_POST['emp1ctc'];
$emp1wd=$_POST['emp1workduration'];
$emp2name=$_POST['emp2name'];
$emp2des=$_POST['emp2des'];
$emp2ctc=$_POST['emp2ctc'];
$emp2wd=$_POST['emp2workduration'];
$emp3name=$_POST['emp3name'];
$emp3des=$_POST['emp3des'];
$emp3ctc=$_POST['emp3ctc'];
$emp3wd=$_POST['emp3workduration'];
$query=mysqli_query($con, "insert into empexpireince ( EmpID,Employer1Name,
Employer1Designation, Employer1CTC, Employer1WorkDuration, Employer2Name,
Employer2Designation, Employer2CTC, Employer2WorkDuration, Employer3Name,
Employer3Designation, Employer3CTC, Employer3WorkDuration) value('$eid','$emp1name',
'$emp1des', '$emp1ctc', '$emp1wd', '$emp2name', '$emp2des', '$emp2ctc', '$emp2wd',
'$emp3name', '$emp3des', '$emp3ctc', '$emp3wd' )");
if ($query) {
$msg="Your Expirence data has been submitted succeesfully.";
}
else
{
$msg="Something Went Wrong. Please try again.";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">

109
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Employees Details</title>
<!-- Custom fonts for this template-->
<link href="../vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,
700i,800,800i,900,900i" rel="stylesheet">
<!-- Custom styles for this template-->
<link href="../css/sb-admin-2.min.css" rel="stylesheet">
</head>
<body id="page-top">
<!-- Page Wrapper -->
<div id="wrapper">
<!-- Sidebar -->
<?php include_once('includes/sidebar.php')?>
<!-- End of Sidebar -->
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Topbar -->
<?php include_once('includes/header.php')?>
<!-- End of Topbar -->
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<h1 class="h3 mb-4 text-gray-800">Employees Details</h1>
<p style="font-size:16px; color:red" align="center"><?php if($msg){

110
echo $msg;
} ?></p>
<div class="table-responsive">
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
<tr>
<th>S no.</th>
<th>Emp Code</th>
<th>Emp First Name</th>
<th>Emp Last Name</th>
<th>Emp Email</th>
<th>Emp Contact no</th>
<th>Emp Joining Date</th>
<th>Action</th>
</tr>
<?php
$ret=mysqli_query($con,"select * from employeedetail");
$cnt=1;
while ($row=mysqli_fetch_array($ret)) {
?>
<tr>
<td><?php echo $cnt;?></td>
<td><?php echo $row['EmpCode'];?></td>
<td><?php echo $row['EmpFname'];?></td>
<td><?php echo $row['EmpLName'];?></td>
<td><?php echo $row['EmpEmail'];?></td>
<td><?php echo $row['EmpContactNo'];?></td>
<td><?php echo $row['EmpJoingdate'];?></td>
<td><a href="editempprofile.php?editid=<?php echo $row['ID'];?>">Edit Profile Details</a> |
<a href="editempeducation.php?editid=<?php echo $row['ID'];?>">Edit Education Details</a> |
<a href="editempexp.php?editid=<?php echo $row['ID'];?>">Edit Experience Details</a>
</td>

111
</tr>
<?php
$cnt=$cnt+1;
}?>
</table>
</div>
</div>
<!-- /.container-fluid -->
</div>
<!-- End of Main Content -->
</div>
<!-- End of Content Wrapper -->
</div>
<!-- End of Page Wrapper -->
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
<i class="fas fa-angle-up"></i>
</a>
<!-- Bootstrap core JavaScript-->
<script src="../vendor/jquery/jquery.min.js"></script>
<script src="../vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="../vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="../js/sb-admin-2.min.js"></script>
<!-- Page level plugins -->
<script src="../vendor/datatables/jquery.dataTables.min.js"></script>
<script src="../vendor/datatables/dataTables.bootstrap4.min.js"></script>
<!-- Page level custom scripts -->
<script src="../js/demo/datatables-demo.js"></script>
</body>

112
</html>
<?php } ?>

16.Edit Employee profile

<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
//error_reporting(0);
if (strlen($_SESSION['aid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$eid=$_GET['editid'];
$FName=$_POST['FirstName'];
$LName=$_POST['LastName'];
$empcode=$_POST['EmpCode'];
$EmpDept=$_POST['EmpDept'];
$EmpDesignation=$_POST['EmpDesignation'];
$EmpContactNo=$_POST['EmpContactNo'];
$gender=$_POST['gender'];
$empjdate=$_POST['EmpJoingdate'];
$query=mysqli_query($con, "update employeedetail set EmpFname='$FName',
EmpLName='$LName', EmpCode='$empcode', EmpDept='$EmpDept',
EmpDesignation='$EmpDesignation', EmpContactNo='$EmpContactNo',
EmpGender='$gender',EmpJoingdate='$empjdate' where ID='$eid'");
if ($query) {
$msg="Employee profile has been updated.";

113
}
else
{
$msg="Something Went Wrong. Please try again.";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Edit Employee Profile</title>
<!-- Custom fonts for this template-->
<link href="../vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,
700i,800,800i,900,900i" rel="stylesheet">
<!-- Custom styles for this template-->
<link href="../css/sb-admin-2.min.css" rel="stylesheet">
</head>
<body id="page-top">
<!-- Page Wrapper -->
<div id="wrapper">
<!-- Sidebar -->
<?php include_once('includes/sidebar.php')?>
<!-- End of Sidebar -->
<!-- Content Wrapper -->

114
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Topbar -->
<?php include_once('includes/header.php')?>
<!-- End of Topbar -->
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<h1 class="h3 mb-4 text-gray-800">Edit Employee Profile</h1>
<p style="font-size:16px; color:red" align="center"><?php if($msg){
echo $msg;
} ?></p>
<form class="user" method="post" action="">
<?php
$aid=$_GET['editid'];
$ret=mysqli_query($con,"select * from employeedetail where ID='$aid'");
$cnt=1;
while ($row=mysqli_fetch_array($ret)) {
?>
<div class="row">
<div class="col-4 mb-3">First Name</div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="FirstName" name="FirstName" aria-describedby="emailHelp" value="<?php echo
$row['EmpFname'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Last Name </div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="LastName" name="LastName" aria-describedby="emailHelp" value="<?php echo
$row['EmpLName'];?>"></div>

115
</div>
<div class="row">
<div class="col-4 mb-3">Employee Code </div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="EmpCode" name="EmpCode"
aria-describedby="emailHelp" value="<?php echo $row['EmpCode'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employee Dept</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="EmpDept" name="EmpDept"
aria-describedby="emailHelp" value="<?php echo $row['EmpDept'];?>">
</div></div>
<div class="row">
<div class="col-4 mb-3">Employee Desigantion</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="EmpDesignation"
name="EmpDesignation" aria-describedby="emailHelp" value="<?php echo
$row['EmpDesignation'];?>">
</div></div>
<div class="row">
<div class="col-4 mb-3">Employee Contact No.</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="EmpContactNo"
name="EmpContactNo" aria-describedby="emailHelp" value="<?php echo
$row['EmpContactNo'];?>">
</div></div>
<div class="row">
<div class="col-4 mb-3">Email</div>
<div class="col-8 mb-3">
<input type="email" class="form-control form-control-user" id="Email" name="Email" aria-

116
describedby="emailHelp" placeholder="Enter Email Address..." value="<?php echo
$row['EmpEmail'];?>" readonly="true">
</div></div>
<div class="row">
<div class="col-4 mb-3">Employee Joing Date(yyyy-mm-dd)</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" value="<?php echo
$row['EmpJoingdate'];?>" id="jDate" name="EmpJoingdate" aria-describedby="emailHelp">
</div></div>
<div class="row">
<div class="col-4 mb-3">Gender</div>
<div class="col-4 mb-3">
<?php if($row['EmpGender']=="Male")
{?>
<input type="radio" id="gender" name="gender" value="Male" checked="true">Male
<input type="radio" name="gender" value="Female">Female
<?php } else {?>
<input type="radio" id="gender" name="gender" value="Male" >Male
<input type="radio" name="gender" value="Female" checked="true">Female
<?php }?>
</div></div>
<?php } ?>
<div class="row" style="margin-top:4%">
<div class="col-4"></div>
<div class="col-4">
<input type="submit" name="submit" value="Update" class="btn btn-primary btn-user btn-
block">
</div>
</div>
</form>
</div>

117
<!-- /.container-fluid -->
</div>
<!-- End of Main Content -->
</div>
<!-- End of Content Wrapper -->
</div>
<!-- End of Page Wrapper -->
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
<i class="fas fa-angle-up"></i>
</a>
<!-- Bootstrap core JavaScript-->
<script src="../vendor/jquery/jquery.min.js"></script>
<script src="../vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="../vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="../js/sb-admin-2.min.js"></script>
<script type="text/javascript">
$(".jDate").datepicker({
format: 'yyyy-mm-dd',
autoclose: true
}).datepicker("update", "10/10/2016");
</script>
</body>
</html>
<?php } ?>

118
17.Edit Employee Education

<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
//error_reporting(0);
if (strlen($_SESSION['aid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$eid=$_GET['editid'];
$coursepg=$_POST['coursepg'];
$schoolclgpg=$_POST['schoolclgpg'];
$yoppg=$_POST['yoppg'];
$pipg=$_POST['pipg'];
$coursegra=$_POST['coursegra'];
$schoolclggra=$_POST['schoolclggra'];
$yopgra=$_POST['yopgra'];
$pigra=$_POST['pigra'];
$coursessc=$_POST['coursessc'];
$schoolclgssc=$_POST['schoolclgssc'];
$yopssc=$_POST['yopssc'];
$pissc=$_POST['pissc'];
$coursehsc=$_POST['coursehsc'];
$schoolclghsc=$_POST['schoolclghsc'];
$yophsc=$_POST['yophsc'];
$pihsc=$_POST['pihsc'];
$query=mysqli_query($con, "update empeducation set CoursePG='$coursepg',
SchoolCollegePG='$schoolclgpg', YearPassingPG='$yoppg', PercentagePG= '$pipg',

119
CourseGra='$coursegra', SchoolCollegeGra='$schoolclggra', YearPassingGra= '$yopgra',
PercentageGra='$pigra', CourseSSC='$coursessc', SchoolCollegeSSC='$schoolclgssc',
YearPassingSSC= '$yopssc', PercentageSSC= '$pissc', CourseHSC='$coursehsc',
SchoolCollegeHSC='$schoolclghsc', YearPassingHSC='$yophsc', PercentageHSC='$pihsc'
where EmpID='$eid'");
if ($query) {
$msg="Employee Education data has been updated succeesfully.";
}
else
{
$msg="Something Went Wrong. Please try again.";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Edit Employee Education</title>
<!-- Custom fonts for this template-->
<link href="../vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,
700i,800,800i,900,900i" rel="stylesheet">
<!-- Custom styles for this template-->
<link href="../css/sb-admin-2.min.css" rel="stylesheet">
</head>

120
<body id="page-top">
<!-- Page Wrapper -->
<div id="wrapper">
<!-- Sidebar -->
<?php include_once('includes/sidebar.php')?>
<!-- End of Sidebar -->
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Topbar -->
<?php include_once('includes/header.php')?>
<!-- End of Topbar -->
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<h1 class="h3 mb-4 text-gray-800">Edit Employee Education</h1>
<p style="font-size:16px; color:red" align="center"><?php if($msg){
echo $msg;
} ?></p>
<form class="user" method="post" action="">
<?php
$aid=$_GET['editid'];
$ret=mysqli_query($con,"select * from empeducation where EmpID='$aid'");
$cnt=1;
while ($row=mysqli_fetch_array($ret)) {
?>
<div class="row">
<div class="col-4 mb-3">Course Post Graduation</div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="coursepg" name="coursepg" aria-describedby="emailHelp" value="<?php echo

121
$row['CoursePG'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">School/College Post Graduation </div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="schoolclgpg" name="schoolclgpg" aria-describedby="emailHelp" value="<?php echo
$row['SchoolCollegePG'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Year of Passing Post Graduation </div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="yoppg" name="yoppg" aria-
describedby="emailHelp" value="<?php echo $row['YearPassingPG'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Percentage in PG</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="pipg" name="pipg" aria-
describedby="emailHelp" value="<?php echo $row['PercentagePG'];?>">
</div></div>
<div class="row">
<div class="col-4 mb-3">Course Graduation</div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="coursegra" name="coursegra" aria-describedby="emailHelp" value="<?php echo
$row['CourseGra'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">School/College Graduation </div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="schoolclggra" name="schoolclggra" aria-describedby="emailHelp" value="<?php echo
$row['SchoolCollegeGra'];?>"></div>

122
</div>
<div class="row">
<div class="col-4 mb-3">Year of Passing Graduation </div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="yopgra" name="yopgra" aria-
describedby="emailHelp" value="<?php echo $row['YearPassingGra'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Percentage in Graduation</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="pigra" name="pigra" aria-
describedby="emailHelp" value="<?php echo $row['PercentageGra'];?>">
</div></div>
<div class="row">
<div class="col-4 mb-3">Course SSC</div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="coursessc" name="coursessc" aria-describedby="emailHelp" value="<?php echo
$row['CourseSSC'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">School/College SSC </div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="schoolclgssc" name="schoolclgssc" aria-describedby="emailHelp" value="<?php echo
$row['SchoolCollegeSSC'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Year of Passing SSC </div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="yopssc" name="yopssc" aria-
describedby="emailHelp" value="<?php echo $row['YearPassingSSC'];?>"></div>
</div>

123
<div class="row">
<div class="col-4 mb-3">Percentage in SSC</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="pissc" name="pissc" aria-
describedby="emailHelp" value="<?php echo $row['PercentageSSC'];?>">
</div></div>
<div class="row">
<div class="col-4 mb-3">Course HSC</div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="coursehsc" name="coursehsc" aria-describedby="emailHelp" value="<?php echo
$row['CourseHSC'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">School/College HSC </div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="schoolclghsc" name="schoolclghsc" aria-describedby="emailHelp" value="<?php echo
$row['SchoolCollegeHSC'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Year of Passing HSC </div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="yophsc" name="yophsc" aria-
describedby="emailHelp" value="<?php echo $row['YearPassingHSC'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Percentage in HSC</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="pihsc" name="pihsc" aria-
describedby="emailHelp" value="<?php echo $row['PercentageHSC'];?>">
</div></div>
<?php } ?>

124
<div class="row" style="margin-top:4%">
<div class="col-4"></div>
<div class="col-4">
<input type="submit" name="submit" value="update" class="btn btn-primary btn-user btn-
block">
</div>
</div>
</form>
</div>
<!-- /.container-fluid -->
</div>
<!-- End of Main Content -->
</div>
<!-- End of Content Wrapper -->
</div>
<!-- End of Page Wrapper -->
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
<i class="fas fa-angle-up"></i>
</a>
<!-- Bootstrap core JavaScript-->
<script src="../vendor/jquery/jquery.min.js"></script>
<script src="../vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="../vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="../js/sb-admin-2.min.js"></script>
<script type="text/javascript">
$(".jDate").datepicker({
format: 'yyyy-mm-dd',
autoclose: true

125
}).datepicker("update", "10/10/2016");
</script>
</body>
</html>
<?php } ?>

18.Edit Employee Experience

<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
//error_reporting(0);
if (strlen($_SESSION['aid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$eid=$_GET['editid'];
$emp1name=$_POST['emp1name'];
$emp1des=$_POST['emp1des'];
$emp1ctc=$_POST['emp1ctc'];
$emp1wd=$_POST['emp1workduration'];
$emp2name=$_POST['emp2name'];
$emp2des=$_POST['emp2des'];
$emp2ctc=$_POST['emp2ctc'];
$emp2wd=$_POST['emp2workduration'];
$emp3name=$_POST['emp3name'];
$emp3des=$_POST['emp3des'];
$emp3ctc=$_POST['emp3ctc'];

126
$emp3wd=$_POST['emp3workduration'];
$query=mysqli_query($con, "update empexpireince set Employer1Name='$emp1name',
Employer1Designation ='$emp1des', Employer1CTC ='$emp1ctc',
Employer1WorkDuration='$emp1wd', Employer2Name='$emp2name', Employer2Designation
='$emp2des', Employer2CTC ='$emp2ctc', Employer2WorkDuration='$emp2wd',
Employer3Name='$emp3name', Employer3Designation ='$emp3des', Employer3CTC
='$emp3ctc', Employer3WorkDuration='$emp3wd' where EmpID='$eid'");
if ($query) {
$msg="Employee Expirence has been updated.";
}
else
{
$msg="Something Went Wrong. Please try again.";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Edit Employee Expirence</title>
<!-- Custom fonts for this template-->
<link href="../vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,
700i,800,800i,900,900i" rel="stylesheet">
<!-- Custom styles for this template-->

127
<link href="../css/sb-admin-2.min.css" rel="stylesheet">
</head>
<body id="page-top">
<!-- Page Wrapper -->
<div id="wrapper">
<!-- Sidebar -->
<?php include_once('includes/sidebar.php')?>
<!-- End of Sidebar -->
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Topbar -->
<?php include_once('includes/header.php')?>
<!-- End of Topbar -->
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<h1 class="h3 mb-4 text-gray-800">Edit Employee Expirence</h1>
<p style="font-size:16px; color:red" align="center"><?php if($msg){
echo $msg;
} ?></p>
<form class="user" method="post" action="">
<?php
$aid=$_GET['editid'];
$ret=mysqli_query($con,"select * from empexpireince where EmpID='$aid'");
$cnt=1;
while ($row=mysqli_fetch_array($ret)) {
?>
<div class="row">
<div class="col-4 mb-3">Employer1 Name</div>

128
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="emp1name" name="emp1name" aria-describedby="emailHelp" value="<?php echo
$row['Employer1Name'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer1 Designation </div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="emp1des" name="emp1des" aria-describedby="emailHelp" value="<?php echo
$row['Employer1Designation'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer1 CTC </div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="emp1ctc" name="emp1ctc" aria-
describedby="emailHelp" value="<?php echo $row['Employer1CTC'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer1 WorkDuration</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="emp1workduration"
name="emp1workduration" aria-describedby="emailHelp" value="<?php echo
$row['Employer1WorkDuration'];?>">
</div></div>
<div class="row">
<div class="col-4 mb-3">Employer2 Name</div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="emp2name" name="emp2name" aria-describedby="emailHelp" value="<?php echo
$row['Employer2Name'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer2 Designation </div>

129
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="emp2des" name="emp2des" aria-describedby="emailHelp" value="<?php echo
$row['Employer2Designation'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer2 CTC </div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="emp2ctc" name="emp2ctc" aria-
describedby="emailHelp" value="<?php echo $row['Employer2CTC'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer2 WorkDuration</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="emp2workduration"
name="emp2workduration" aria-describedby="emailHelp" value="<?php echo
$row['Employer1WorkDuration'];?>">
</div></div>
<div class="row">
<div class="col-4 mb-3">Employer3 Name</div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="emp3name" name="emp3name" aria-describedby="emailHelp" value="<?php echo
$row['Employer3Name'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer3 Designation </div>
<div class="col-8 mb-3"><input type="text" class="form-control form-control-user"
id="emp3des" name="emp3des" aria-describedby="emailHelp" value="<?php echo
$row['Employer3Designation'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer3 CTC </div>

130
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="emp3ctc" name="emp3ctc" aria-
describedby="emailHelp" value="<?php echo $row['Employer3CTC'];?>"></div>
</div>
<div class="row">
<div class="col-4 mb-3">Employer3 WorkDuration</div>
<div class="col-8 mb-3">
<input type="text" class="form-control form-control-user" id="emp3workduration"
name="emp3workduration" aria-describedby="emailHelp" value="<?php echo
$row['Employer3WorkDuration'];?>">
</div></div>
<?php } ?>
<div class="row" style="margin-top:4%">
<div class="col-4"></div>
<div class="col-4">
<input type="submit" name="submit" value="Update" class="btn btn-primary btn-user btn-
block">
</div>
</div>
</form>
</div>
<!-- /.container-fluid -->
</div>
<!-- End of Main Content -->
</div>
<!-- End of Content Wrapper -->
</div>
<!-- End of Page Wrapper -->
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
<i class="fas fa-angle-up"></i>

131
</a>
<!-- Bootstrap core JavaScript-->
<script src="../vendor/jquery/jquery.min.js"></script>
<script src="../vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="../vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="../js/sb-admin-2.min.js"></script>
<script type="text/javascript">
$(".jDate").datepicker({
format: 'yyyy-mm-dd',
autoclose: true
}).datepicker("update", "10/10/2016");
</script>
</body></html><?php }

132
CHAPTER 4: IMPLEMENTATION & TESTING
4.1 SOFTWARE TESTING TECHNIQUES:
Software testing is a critical element of software quality assurance and represents the ultimate
review of specification, designing and coding.

TESTING OBJECTIVES:
1. Testing is process of executing a program with the intent of finding an error.
2. A good test case design is one that has a probability of finding an as yet undiscovered
error.
3. A successful test is one that uncovers an as yet undiscovered error.
These above objectives imply a dramatic change in view port.
Testing cannot show the absence of defects, it can only show that software errors are present.
There are three types of testing strategies
1. Unit test
2. Integration test
3. Performance test

Unit Testing:Unit testing focuses verification efforts on the smallest unit of software design
module. The unit test is always white box oriented. The tests that occur as part of unit testing are
testing the module interface, examining the local data structures, testing the boundary conditions,
execution all the independent paths and testing error-handling pat

Integration Testing: Integration testing is a systematic technique or construction the program


structure while at the same time conducting tests to uncover errors associated with interfacing.
Scope of testing summarizes the specific functional, performance, and internal design
characteristics that are to be tested. It employs top-down testing and bottom-up testing methods
for this case.

Performance Testing: Timing for both read and update transactions should be gathered to
determine whether system functions are being performed in an acceptable timeframe.

133
CHAPTER 7: CONCLUSIONS

The project titled as Employee Record Management System was deeply studied and analyzed
to design the code and implement. It was done under the guidance of the experienced project
guide. All the current requirements and possibilities have been taken care during the project time.

Employee record management system is used for daily operations in any organization to
maintain or access employee related information for internal administration purposes.

134

You might also like