Professional Documents
Culture Documents
PROJECT REPORT
ON
“EMPLOYEE RECORD MANAGEMENT SYSTEM”
AT
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
PROJECT TITLE:
PRESENTED BY:
PIYALI SUR
M.C.A (2017-20)
2
ARKA JAIN UNIVERSITY,
JAMSHEDPUR
A
PROJECT REPORT
ON
EMPLOYEE RECORD MANAGEMENT
SYSTEM
IN PARTIAL FULFILLMENT OF REQUIREMENT OF
BATCH 2017-20
SUBMITTED TO
DEPARTMENT OF COMPUTER APPLICATIONS
3
TO WHOM IT MAY CONCERN
This is to certify that Piyali Sur has successfully completed his project report on “Employee
During this period we found Piyali Sur, sincere and hard working.
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
4) DFD
LEVEL 1 DFD
LEVEL 2 DFD
5) E-R DIAGRAM
6) SYSTEM DESIGN
DATA DESIGN
7) SCREENSHOTS
8) CODING
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
The following figure is a graphical representation of the various stages of a typical SDLC.
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.
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.
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.
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.
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.
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.
12
CHAPTER 2: REQUIREMENTS AND ANALYSIS
2.1. SOFTWARE AND HARDWARE SPECIFICATIONS
RAM : 1GB
Database : MySQL
Server : Apache
Frontend : HTML
IDE : Sublime
Technology : PHP
13
2.2 CONCEPTUAL MODELS
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.
An Arrow identifies data flow direction. It is the pipeline through which the
information flows.
15
2.2.1.1 RULES FOR DFD:
Organize the DFD so that the main sequence of the actions reads left to right and top to
bottom.
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
Make sure the names of the processes accurately convey everything the process is done.
Identify all data flows for each process step, except simple Record retrievals.
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.
17
First Level DFDs
1.1
Records
Records
Administrator Administrator
1.2
Employ
ee
fig. 01
18
fig. 02
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.
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
31
Edit Employee Education
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">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
35
<!-- /.container-fluid -->
</div>
</div>
</div>
</a>
<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 } ?>
<?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 } ?>
<?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
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