Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 111

INTRODUCTION OF THE PROJECT

The “EMPLOYEE MANAGEMENT SYSTEM” has been developed to override the


problems prevailing in the practicing manual system. This software is supported to eliminate
and, in some cases, reduce the hardships faced by this existing system. Moreover; this system
is designed for the particular need of the company to carry out operations in a smooth and
effective manner.

The application is reduced as much as possible to avoid errors while entering the data. It also
provides error message while entering invalid data. No formal knowledge is needed for the
user to use this system. Thus by this all it proves it is user-friendly.

Every organization, whether big or small, has human resource challenges to overcome. Every organization
has different employee management needs, therefore we design exclusive employee management systems
that are adapted to your managerial requirements. This is designed to assist in strategic planning, and will
help you ensure that your organization is equipped with the right level of human resources for your future
goals. Also, for those busy executive who are always on the go, our systems come with remote access
features, which will allow you to manage your workforce anytime, at all times. These systems will ultimately
allow you to better manage resources. One of the main features in employee management system is time
tracking for employees. Effective time tracking mechanism saves both time and money for the organization.

1
OBJECTIVE AND SCOPE OF PROJECT

The main objective of the Project on Employee Management System is to


manage the details of employee, salary, leaves, attendance, registration. It
manages all the information about employee, skills, registration, employee.
The project is totally built at administrative end and thus only the administrator
is guaranteed the access. The purpose of the project is to build an application
program to reduce the manual work for managing the employee, salary, skills,
leaves. It tracks all the details about the leaves, attendance, registration.
.

SCOPE OF “EMPLOYEE MANAGEMENT SYSTEM”

 In computer system the person has to fill the various forms & number
of copies of the forms can be easily generated at a time.
 In computer system, it is not necessary to create the manifest but we
can directly print it, which saves our time.
 To assist the staff in capturing the efforts spent on the irrespective working areas.
 To utilize resources in an efficient manner by increasing their
productivity through automation.
 The system generates types of information that can be used for various
purposes.
 It satisfy the user requirement and is easy to operate.

2
INTRODUCTION TO PHP

PHP is a general-purpose scripting language geared toward web development. It was originally
created by Danish-Canadian programmer Rasmus Lerdorf in 1993 and released in 1995 The
PHP reference implementation is now produced by The PHP Group. PHP was originally an
abbreviation of Personal Home Page, but it now stands for the recursive initialism PHP:
Hypertext Preprocessor.
PHP code is usually processed on a web server by a PHP interpreter implemented as a module,
a daemon or as a Common Gateway Interface (CGI) executable. On a web server, the result of
the interpreted and executed PHP code – which may be any type of data, such as
generated HTML or binary image data – would form the whole or part of an HTTP response.
Various web template systems, web content management systems, and web frameworks exist
which can be employed to orchestrate or facilitate the generation of that response. Additionally,
PHP can be used for many programming tasks outside the web context, such as
standalone graphical applications and robotic drone control. PHP code can also be
directly executed from the command line.
The standard PHP interpreter, powered by the Zend Engine, is free software released under
the PHP License. PHP has been widely ported and can be deployed on most web servers on a
variety of operating systems and platforms.
The PHP language evolved without a written formal specification or standard until 2014, with
the original implementation acting as the de facto standard which other implementations aimed
to follow. Since 2014, work has gone on to create a formal PHP specification.
W3Techs reports that, as of January 2023, "PHP is used by 77.8% of all the websites whose
server-side programming language we know." It also reports that only 8% of PHP users use
the currently supported 8.x versions. Most use unsupported PHP 7, more specifically 7.4, and
even PHP 5 has 23% of the use, also not supported with security updates, known to have
serious security vulnerabilities.
PHP can actually do anything related to server-side scripting or more popularly known as the
backend of a website. For example, PHP can receive data from forms, generate dynamic page
content, can work with databases, create sessions, send and receive cookies, send emails, etc.
There are also many hash functions available in PHP to encrypt users’ data which makes PHP
secure and reliable to be used as a server-side scripting language. So these are some of PHP’s
abilities that make it suitable to be used as a server-side scripting language.

3
Features of PHP

Performance:

PHP script is executed much faster than those scripts which are written in other languages such
as JSP and ASP. PHP uses its own memory, so the server workload and loading time is
automatically reduced, which results in faster processing speed and better performance.

Open Source:

PHP source code and software are freely available on the web. You can develop all the versions
of PHP according to your requirement without paying any cost. All its components are free to
download and use.

Familiarity with syntax:

PHP has easily understandable syntax. Programmers are comfortable coding with it.

4
Embedded:

PHP code can be easily embedded within HTML tags and script.

Platform Independent:

PHP is available for WINDOWS, MAC, LINUX & UNIX operating system. A PHP application
developed in one OS can be easily executed in other OS also.

Database Support:

PHP supports all the leading databases such as MySQL, SQLite, ODBC, etc.

Error Reporting -

PHP has predefined error reporting constants to generate an error notice or warning at runtime.
E.g., E_ERROR, E_WARNING, E_STRICT, E_PARSE.

Loosely Typed Language:

PHP allows us to use a variable without declaring its datatype. It will be taken automatically at
the time of execution based on the type of data it contains on its value.

Web servers Support:

PHP is compatible with almost all local servers used today like Apache, Netscape, Microsoft IIS,
etc.

Security:

PHP is a secure language to develop the website. It consists of multiple layers of security to
prevent threads and malicious attacks.

Control:

Different programming languages require long script or code, whereas PHP can do the same
work in a few lines of code. It has maximum control over the websites like you can make
changes easily whenever you want.

A Helpful PHP Community:

It has a large community of developers who regularly updates documentation, tutorials, online
help, and FAQs. Learning PHP from the communities is one of the significant benefits.

5
INTRODUCTION TO MYSQL

What is a Database?
A database is a separate application that stores a collection of data. Each database has one or
more distinct APIs for creating, accessing, managing, searching and replicating the data it holds.
Other kinds of data stores can also be used, such as files on the file system or large hash tables in
memory but data fetching and writing would not be so fast and easy with those type of systems.
Nowadays, we use relational database management systems (RDBMS) to store and manage huge
volume of data. This is called relational database because all the data is stored into different
tables and relations are established using primary keys or other keys known as Foreign Keys.
A Relational DataBase Management System (RDBMS) is a software that −
 Enables you to implement a database with tables, columns and indexes.
 Guarantees the Referential Integrity between rows of various tables.
 Updates the indexes automatically.
 Interprets an SQL query and combines information from various tables.

RDBMS Terminology
Before we proceed to explain the MySQL database system, let us revise a few definitions related
to the database.
 Database − A database is a collection of tables, with related data.
 Table − A table is a matrix with data. A table in a database looks like a simple
spreadsheet.
 Column − One column (data element) contains data of one and the same kind, for
example the column postcode.
 Row − A row (= tuple, entry or record) is a group of related data, for example the data of
one subscription.
 Redundancy − Storing data twice, redundantly to make the system faster.
 Primary Key − A primary key is unique. A key value can not occur twice in one table.
With a key, you can only find one row.
 Foreign Key − A foreign key is the linking pin between two tables.
 Compound Key − A compound key (composite key) is a key that consists of multiple
columns, because one column is not sufficiently unique.
 Index − An index in a database resembles an index at the back of a book.
 Referential Integrity − Referential Integrity makes sure that a foreign key value always
points to an existing row.

What is SQL
SQL is the core of a relational database which is used for accessing and managing the database.
By using SQL, you can add, update or delete rows of data, retrieve subsets of

6
information, modify databases and perform many actions. The different subsets of SQL are as
follows:

 DDL (Data Definition Language) – It allows you to perform various operations on the
database such as CREATE, ALTER and DELETE objects.
 DML (Data Manipulation Language) – It allows you to access and manipulate data. It
helps you to insert, update, delete and retrieve data from the database.
 DCL (Data Control Language) – It allows you to control access to the database. Example
– Grant or Revoke access permissions.
 TCL (Transaction Control Language) – It allows you to deal with the transaction of the
database. Example – Commit, Rollback, Savepoint, Set Transaction.

MySQL is a fast, easy-to-use RDBMS being used for many small and big businesses. MySQL is
developed, marketed and supported by MySQL AB, which is a Swedish company. MySQL is
becoming so popular because of many good reasons −
 MySQL is released under an open-source license. So you have nothing to pay to use it.
 MySQL is a very powerful program in its own right. It handles a large subset of
the functionality of the most expensive and powerful database packages.
 MySQL uses a standard form of the well-known SQL data language.
 MySQL works on many operating systems and with many languages including
PHP, PERL, C, C++, JAVA, etc.
 MySQL works very quickly and works well even with large data sets.
 MySQL is very friendly to PHP, the most appreciated language for web development.
 MySQL supports large databases, up to 50 million rows or more in a table. The default
file size limit for a table is 4GB, but you can increase this (if your operating system
can handle it) to a theoretical limit of 8 million terabytes (TB).
 MySQL is customizable. The open-source GPL license allows programmers to
modify the MySQL software to fit their own specific environments.

7
DEFINITION OF PROBLEMS

Manual handling of employee information poses a number of challenges. This is evident in procedures such
as leave management where an employee is required to fill in a form which may take several weeks or
months to be approved.
The use of paper work in handling some of these processes could lead to human error, papers may end up in
the wrong hands and not forgetting the fact that this is time consuming. A number of current systems lack
employee self-service meaning employees are not able to access and manage their personal information
directly without having to go through their HR departments or their managers.

Another challenge is that multi-national companies will have all the employee information stored at the
headquarters of the company making it difficult to access the employee information from remote places when
needed at short notice. The aforementioned problems can be tackled by designing and implementing a web-
based HR management system. This system will maintain employee information in a database by fully
privacy and authority access.

The project is aimed at setting up employee information system about the status of the employee, the
educational background and the work experience in order to help monitor the performance and achievement
of the employee.

8
SYSTEM ANALYSIS

 System analysis is a process of gathering and interpreting facts, diagnosing


problems and the information about the Employee Management System to
recommend improvements on the system.

 It is a problem solving activity that requires intensive communication


between the system users and system developers. System analysis or study is
an important phase of any system development process. The system is
studied to the minutest detail and analyzed.

 The system analyst plays the role of the interrogator and dwells deep into the
working of the present system.

 The system is viewed as a whole and the input to the system are identified.
The outputs from the organizations are traced to the various processes.
System analysis is concerned with becoming aware of the problem,
identifying the relevant and decisional variables, analyzing and synthesizing
the various factors and determining an optimal or at least a satisfactory
solution or program of action.

 A detailed study of the process must be made by various techniques like


interviews, questionnaires etc.

Defining the system requirements

During the fact-finding phase of the system, we gathered facts, figures and documents and came to grip
with the entire scope of the problem. After the fact-finding, the system requirements were defined as to what
were the system requirements.
These were then put forward to the management and the user. After the approval from them, we proceeded
to start the system design.

9
(E) Summary of the observations

 The existing system is computerized but requires a lot of entries.

 The reports are in printed from only.

 Voluminous space is required to store these documents.

 Security of extremely difficult.

 Retrieval of information is time consuming

 Compilation of various statistical reports is extremely difficult.

 Existing Computers are being used only for word processing Applications

10
SYSTEM REQUIREMENTS

HARDWARE:-

CPU:- P-III & higher.

Memory:- 1 GB ram & higher.

Hard Disk :- 128 GB & higher.

System Type :- 32 /64 bit Operating System.

Screen Resolution :- 1024*768 or higher.

SOFTWARE:-

Operating system :- Windows 7 or any above version.

Software used :– PHP ,HTML, CSS, JS(Front End)


MySql (Back End)

11
SYSTEM DESIGN AND CODING

INTRODUCTION:-

Software design sits at the technical kernel of the software engineering


Process and is applied regardless of the development paradigm and area of application. Design is
the first step in the development phase for any engineered product or system. The designer goal
is to produce a model or representation of an entity that will later be built. Beginning, once
system requirement have been specified and analyzed, system design is the first of the three
technical activities-designs, code and test that is required to build and verify software.

The important can be stated with a single word “quality”. Design is the place where quality is
fostered in software development. Design provides us with representation of software that can
access for quality.

Design is the only way that we can accurately translate a customer view into a finished software
product or system. Software design serves as a foundation for all the software engineering steps
that follow. Without a strong design we risk building an unstable system-one that will fall when
small changes are made; one that will be difficult to test one whose quality cannot be accessed
until the last stage.

During design progressive refinements of data structure, program structure and procedural
details are developed reviewed and documented. System design can be viewed from either a
technical or project management perspective.

INPUT DESIGN:

Input design is the process of converting user-oriented input to a computer based format. Input
design is a part of overall system design, which requires very careful attention. Often the
collection of input data is the most expensive part of the system. The main objectives of the input
design are …
1. Produce cost effective method of input.
2. Achieve highest possible level of accuracy.
3. Ensure that the input is acceptable to and understood by the staff.

Input Data:-

The goal of designing input data is to make enter easy, logical and free from errors as possible.
The entering data entry operators need to know the allocated space for each field; field sequence
12
and which must match with that in the source document. The format in which the data fields are
entered should be given in the input form . Here data entry is online; it makes use of processor
that accepts commands and data from the operator through a keyboard. The input required is
analyzed by the processor. It is then accepted or rejected. Input stages include the following
processes:
Data Recording
Data Transcription
Data Conversion
Data Verification
Data Control
Data Transmission
Data Correction
One of the aims of the system analyst must be to select data capture method and devices, which
reduce the number of stages so as to reduce both the changes of errors and the cost. Input types,
can be characterized as:
External
Internal
Operational
Computerized
Interactive
Input files can exist in document form before being input to the computer. Input design is rather
complex since it involves procedures for capturing data as well as inputting it to the computer.

OUTPUT DESIGN:

Outputs from computer systems are required primarily to communicate the results of processing
to users. They are also used to provide a permanent copy of these result for latter consultation
.Computer output is the most important and direct source of information to the users. Designing
computer output should proceed in an organized well throughout the manner. The right output
must be available for the people who find the system ease of use. The outputs have been defined
during the logical design stage. If not, they should defined at the beginning of the output
designing terms of types of output connect, format, response etc. Various types of outputs are:-
External outputs
Internal outputs
Operational outputs
Interactive outputs
Turn around outputs
All screens are informative and interactive in such a way that the user can full fill his
requirements through asking queries.

13
Database Design

Tables in Program

Admin:

14
tbldepartments:

tblEmployees:

15
Tblleaves:

16
tblLeavetype:

17
DATA FLOW DIAGRAM:

It is a graphical tool used to describe and analyze the flow of data though a system. It focuses on
the data flowing into the system between process of in & our of data stores.

DFD’s are of two types:


1. Physical DFD:-
The physical DFD is a model of current system & is use to ensure
that the current system has been clearly understood

2. Logical DFD:-
Logical DFD are the model of proposed system. They should clearly
show the requirements on which the new system should built.

Notation Used In DFD:-

There are four simple notations are used to complete DFD‘s


i) Data flow :-

ii) External entity : -

iii) Process :-

iv) Data store :-

18
DFD FOR THE SYSTEM

Level 0:

Employees
Admin

Attendence Employee Management System


leaves

Salary Departments

19
Level 1:

Registered Employee
admin can Login

h
tbl Employees Employee Detail
EE Add, delete

Leaves given to
Employee
tblleaves Employee
Management
System Employee’s
department where he
departments works

Employee’s reason
will be Maintained
tblleavetype

20
Employee leave
Level 2:

Tbl leavetype Tbl Employees

Admin

Employee Registeration
Employees details

Manages leave

Cancellation/updation

Employee
Department Confirmed

Registration Generate Add Employee


Details

Add Dept update Dept

21
ENTITY RELATIONSHIP DIAGRAM

Entity Relationship Diagram (ERD) can express overall logical structure of a database
graphically. The components of E-R Diagram are:
Entity:
Entity is a thing or object in a Real world that is Distinguishable from all other objects.

Relationship:
It is an association among several entities.

Weak Entity :

Weak entity is a entity that does not have any primary key.

Attributes:

A property or characteristic of an entity. Often shown as an oval or circle.

22
Emp Id Name Contact
ID Name
ShName

B
Employee Department
Has
ress s
Regd Date
untry Dept code
Username Creation Date

ADMIN
Managess Manage

Password

Id Leave Type ID Leavetype

Leaves Leave type


Has

toDate FromDate
Creationdate Description

Description

23
INPUT FORMS AND CODING
MODULE :-

LOGINFORM:-

Coding :-

<?php
session_start();
error_reporting(0);
include('includes/dbconn.php');
if(isset($_POST['signin']))
{
$uname=$_POST['username'];
$password=md5($_POST['password']);
$sql ="SELECT EmailId,Password,Status,id FROM tblemployees WHERE
24
EmailId=:uname and Password=:password";
$query= $dbh -> prepare($sql);
$query-> bindParam(':uname', $uname, PDO::PARAM_STR);
$query-> bindParam(':password', $password, PDO::PARAM_STR);
$query-> execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);

if($query->rowCount() > 0)
{
foreach ($results as $result) {
$status=$result->Status;
$_SESSION['eid']=$result->id;
}
if($status==0)
{
$msg="In-Active Account. Please contact your administrator!";
} else {
$_SESSION['emplogin']=$_POST['username'];
echo "<script type='text/javascript'> document.location = 'employees/leave.php';
</script>";
}
} else {
echo "<script>alert('Sorry, Invalid Details.');</script>";
}

?>

<!doctype html>
<html class="no-js" lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Employee Leave Management System</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/png" href="assets/images/icon/favicon.ico">
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/font-awesome.min.css">
<link rel="stylesheet" href="assets/css/themify-icons.css">
25
<link rel="stylesheet" href="assets/css/metisMenu.css">
<link rel="stylesheet" href="assets/css/owl.carousel.min.css">
<link rel="stylesheet" href="assets/css/slicknav.min.css">
<!-- amchart css -->
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css"
type="text/css" media="all" />
<!-- others css -->
<link rel="stylesheet" href="assets/css/typography.css">
<link rel="stylesheet" href="assets/css/default-css.css">
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="stylesheet" href="assets/css/responsive.css">
<!-- modernizr css -->
<script src="assets/js/vendor/modernizr-2.8.3.min.js"></script>
</head>

<body>
<!-- preloader area start -->
<div id="preloader">
<div class="loader"></div>
</div>
<!-- preloader area end -->
<!-- login area start -->
<div class="login-area login-s2">
<div class="container">
<div class="login-box ptb--100">
<form method="POST" name="signin">
<div class="login-form-head">
<h4>Employee Login Panel</h4>
<p>Employee Leave Management System</p>
<?php if($msg){?><div class="errorWrap"><strong>Error</strong> : <?php
echo htmlentities($msg); ?> </div><?php }?>
</div>
<div class="login-form-body">
<div class="form-gp">
<label for="exampleInputEmail1">Email address</label>
<input type="email" id="username" name="username" autocomplete="off"
required>
<i class="ti-email"></i>
<div class="text-danger"></div>
</div>
<div class="form-gp">
26
<label for="exampleInputPassword1">Password</label>
<input type="password" id="password" name="password"
autocomplete="off" required>
<i class="ti-lock"></i>
<div class="text-danger"></div>
</div>
<div class="row mb-4 rmber-area">
<div class="col-6">
<div class="custom-control custom-checkbox mr-sm-2">
<input type="checkbox" class="custom-control-input"
id="customControlAutosizing">
<label class="custom-control-label"
for="customControlAutosizing">Remember Me</label>
</div>
</div>
<div class="col-6 text-right">
<a href="password-recovery.php">Forgot Password?</a>
</div>
</div>
<div class="submit-btn-area">
<button id="form_submit" type="submit" name="signin">Login <i
class="ti-arrow-right"></i></button>
</div>
<div class="form-footer text-center mt-5">
<p class="text-muted"><a href="admin/index.php">Go to Admin
Panel</a></p>
</div>
</div>
</form>
</div>
</div>
</div>
<!-- login area end -->

<!-- jquery latest version -->


<script src="assets/js/vendor/jquery-2.2.4.min.js"></script>
<!-- bootstrap 4 js -->
<script src="assets/js/popper.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/owl.carousel.min.js"></script>
<script src="assets/js/metisMenu.min.js"></script>
27
<script src="assets/js/jquery.slimscroll.min.js"></script>
<script src="assets/js/jquery.slicknav.min.js"></script>
<!-- others plugins -->
<script src="assets/js/plugins.js"></script>
<script src="assets/js/scripts.js"></script>
</body>
</html>

Dashboard page :-

28
Coding :-

<?php
session_start();
error_reporting(0);
include('../includes/dbconn.php');
if(strlen($_SESSION['alogin'])==0){
header('location:index.php');
} else {
?>

<!doctype html>
<html class="no-js" lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Admin Panel - Employee Leave</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/png"
href="../assets/images/icon/favicon.ico">
<link rel="stylesheet" href="../assets/css/bootstrap.min.css">
<link rel="stylesheet" href="../assets/css/font-awesome.min.css">
<link rel="stylesheet" href="../assets/css/themify-icons.css">
<link rel="stylesheet" href="../assets/css/metisMenu.css">
<link rel="stylesheet" href="../assets/css/owl.carousel.min.css">
<link rel="stylesheet" href="../assets/css/slicknav.min.css">
<!-- amchart css -->
<link rel="stylesheet"
href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css"
media="all" />
<!-- others css -->
29
<link rel="stylesheet" href="../assets/css/typography.css">
<link rel="stylesheet" href="../assets/css/default-css.css">
<link rel="stylesheet" href="../assets/css/styles.css">
<link rel="stylesheet" href="../assets/css/responsive.css">
<!-- modernizr css -->
<script src="../assets/js/vendor/modernizr-2.8.3.min.js"></script>
</head>

<body>
<!-- preloader area start -->
<div id="preloader">
<div class="loader"></div>
</div>
<!-- preloader area end -->

<div class="page-container">
<!-- sidebar menu area start -->
<div class="sidebar-menu">
<div class="sidebar-header">
<div class="logo">
<a href="dashboard.php"><img src="../assets/images/icon/logo.png"
alt="logo"></a>
</div>
</div>
<div class="main-menu">
<div class="menu-inner">
<?php
$page='dashboard';
include '../includes/admin-sidebar.php';
?>
</div>
</div>
</div>
<!-- sidebar menu area end -->
<!-- main content area start -->
30
<div class="main-content">
<!-- header area start -->
<div class="header-area">
<div class="row align-items-center">
<!-- nav and search button -->
<div class="col-md-6 col-sm-8 clearfix">
<div class="nav-btn pull-left">
<span></span>
<span></span>
<span></span>
</div>

</div>
<!-- profile info & task notification -->
<div class="col-md-6 col-sm-4 clearfix">
<ul class="notification-area pull-right">
<li id="full-view"><i class="ti-fullscreen"></i></li>
<li id="full-view-exit"><i class="ti-zoom-out"></i></li>

<!-- Notification bell -->


<?php include '../includes/admin-notification.php'?>

</ul>
<!-- notification ends -->
</div>
</div>
</div>
<!-- header area end -->
<!-- page title area start -->
<div class="page-title-area">
<div class="row align-items-center">
<div class="col-sm-6">
<div class="breadcrumbs-area clearfix">
<h4 class="page-title pull-left">Dashboard</h4>
<ul class="breadcrumbs pull-left">
31
<li><a href="dashboard.php">Home</a></li>
<li><span>Admin's Dashboard</span></li>
</ul>
</div>
</div>
<div class="col-sm-6 clearfix">
<div class="user-profile pull-right">
<img class="avatar user-thumb" src="../assets/images/admin.png"
alt="avatar">
<h4 class="user-name dropdown-toggle" data-
toggle="dropdown">ADMIN <i class="fa fa-angle-down"></i></h4>
<div class="dropdown-menu">
<a class="dropdown-item" href="logout.php">Log Out</a>
</div>
</div>
</div>
</div>
</div>
<!-- page title area end -->
<div class="main-content-inner">
<!-- sales report area start -->
<div class="sales-report-area mt-5 mb-5">
<div class="row">
<div class="col-md-4">
<div class="single-report mb-xs-30">
<div class="s-report-inner pr--20 pt--30 mb-3">
<div class="icon"><i class="fa fa-briefcase"></i></div>
<div class="s-report-title d-flex justify-content-between">
<h4 class="header-title mb-0">Available Leave Types</h4>

</div>
<div class="d-flex justify-content-between pb-2">
<h1><?php include 'counters/leavetype-counter.php'?></h1>
<span>Leave Types</span>
</div>
32
</div>
<!-- <canvas id="coin_sales1" height="100"></canvas> -->
</div>
</div>
<div class="col-md-4">
<div class="single-report mb-xs-30">
<div class="s-report-inner pr--20 pt--30 mb-3">
<div class="icon"><i class="fa fa-users"></i></div>
<div class="s-report-title d-flex justify-content-between">
<h4 class="header-title mb-0">Registered Employees</h4>

</div>
<div class="d-flex justify-content-between pb-2">
<h1><?php include 'counters/emp-counter.php'?></h1>
<span>Active Employees</span>
</div>
</div>
<!-- <canvas id="coin_sales2" height="100"></canvas> -->
</div>
</div>
<div class="col-md-4">
<div class="single-report">
<div class="s-report-inner pr--20 pt--30 mb-3">
<div class="icon"><i class="fa fa-th-large"></i></div>
<div class="s-report-title d-flex justify-content-between">
<h4 class="header-title mb-0">Available Departments</h4>

</div>
<div class="d-flex justify-content-between pb-2">
<h1><?php include 'counters/dept-counter.php'?></h1>
<span>Employee Departments</span>
</div>
</div>
<!-- <canvas id="coin_sales3" height="100"></canvas> -->
</div>
33
</div>
</div>

<br>

<div class="row">
<div class="col-md-4">
<div class="single-report mb-xs-30">
<div class="s-report-inner pr--20 pt--30 mb-3">
<div class="icon"><i class="fa fa-spinner"></i></div>
<div class="s-report-title d-flex justify-content-between">
<h4 class="header-title mb-0">Pending Application</h4>

</div>
<div class="d-flex justify-content-between pb-2">
<h1><?php include
'counters/pendingapp-counter.php'?></h1>
<span>Pending</span>
</div>
</div>
<!-- <canvas id="coin_sales1" height="100"></canvas> -->
</div>
</div>
<div class="col-md-4">
<div class="single-report mb-xs-30">
<div class="s-report-inner pr--20 pt--30 mb-3">
<div class="icon"><i class="fa fa-times"></i></div>
<div class="s-report-title d-flex justify-content-between">
<h4 class="header-title mb-0">Declined Application</h4>

</div>
<div class="d-flex justify-content-between pb-2">
<h1><?php include
'counters/declineapp-counter.php'?></h1>
<span>Declined</span>
34
</div>
</div>
<!-- <canvas id="coin_sales2" height="100"></canvas> -->
</div>
</div>
<div class="col-md-4">
<div class="single-report">
<div class="s-report-inner pr--20 pt--30 mb-3">
<div class="icon"><i class="fa fa-check-square-o"></i></div>
<div class="s-report-title d-flex justify-content-between">
<h4 class="header-title mb-0">Approved Application</h4>

</div>
<div class="d-flex justify-content-between pb-2">
<h1><?php include 'counters/approvedapp-counter.php'?
></h1>
<span>Approved</span>
</div>
</div>
<!-- <canvas id="coin_sales3" height="100"></canvas> -->
</div>
</div>
</div>
</div>
<!-- sales report area end -->

<!-- row area start -->


<div class="row">

<!-- trading history area start -->


<div class="col-12">
<div class="card">
<div class="card-body">
<div class="d-sm-flex justify-content-
between align-items-center">
35
<!-- <h4 class="header-title">Employee Leave History</h4> --
>
<div class="trd-history-tabs">
<ul class="nav" role="tablist">
<li>
<a class="active" data-toggle="tab"
href="dashboard.php" role="tab">Recent List</a>
</li>
</ul>
</div>
<select class="custome-select border-0 pr-3">
<option selected>Last 24 Hours</option>

</select>
</div>
<!-- <h4 class="header-title"></h4> -->
<div class="single-table">
<div class="table-responsive">
<table class="table table-hover table-bordered table-
striped progress-table text-center">
<thead class="text-uppercase">

<tr>
<td>S.N</td>
<td>Employee ID</td>
<td width="120">Full Name</td>
<td>Leave Type</td>
<td>Applied On</td>
<td>Current Status</td>
<td></td>
</tr>
</thead>

<tbody>
<?php
36
$sql = "SELECT tblleaves.id as
lid,tblemployees.FirstName,tblemployees.LastName,tblemployees.EmpId,tblemploye
es.id,tblleaves.LeaveType,tblleaves.PostingDate,tblleaves.Status from tblleaves join
tblemployees on tblleaves.empid=tblemployees.id order by lid desc limit 7";
$query = $dbh -> prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0){
foreach($results as $result)
{
?>

<tr>
<td> <b><?php echo htmlentities($cnt);?></b></td>
<td><?php echo htmlentities($result->EmpId);?></td>
<td><a href="update-employee.php?empid=<?php echo
htmlentities($result->id);?>" target="_blank"><?php echo htmlentities($result-
>FirstName." ".$result->LastName);?></a></td>
<td><?php echo
htmlentities($result->LeaveType);?></td>
<td><?php echo
htmlentities($result->PostingDate);?></td>
<td><?php $stats=$result->Status;

if($stats==1){
?>
<span style="color: green">Approved <i class="fa fa-
check-square-o"></i></span>
<?php } if($stats==2) { ?>
<span style="color: red">Declined <i class="fa fa-
times"></i></span>
<?php } if($stats==0) { ?>
<span style="color: blue">Pending <i class="fa fa-
spinner"></i></span>
37
<?php } ?>

</td>

<td><a href="employeeLeave-details.php?leaveid=<?php
echo htmlentities($result->lid);?>" class="btn btn-secondary btn-sm">View
Details</a></td>
</tr>
<?php $cnt++;} }?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- trading history area end -->
</div>
<!-- row area end -->

</div>
<!-- row area start-->
</div>
<?php include '../includes/footer.php' ?>
<!-- footer area end-->
</div>
<!-- main content area end -->

</div>
<!-- jquery latest version -->
<script src="../assets/js/vendor/jquery-2.2.4.min.js"></script>
38
<!-- bootstrap 4 js -->
<script src="../assets/js/popper.min.js"></script>
<script src="../assets/js/bootstrap.min.js"></script>
<script src="../assets/js/owl.carousel.min.js"></script>
<script src="../assets/js/metisMenu.min.js"></script>
<script src="../assets/js/jquery.slimscroll.min.js"></script>
<script src="../assets/js/jquery.slicknav.min.js"></script>

<!-- start chart js -->


<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.min.js"></
script>
<!-- start highcharts js -->
<script src="https://code.highcharts.com/highcharts.js"></script>
<!-- start zingchart js -->
<script src="https://cdn.zingchart.com/zingchart.min.js"></script>
<script>
zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";
ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9",
"ee6b7db5b51705a13dc2339db3edaf6d"];
</script>
<!-- all line chart activation -->
<script src="assets/js/line-chart.js"></script>
<!-- all pie chart -->
<script src="assets/js/pie-chart.js"></script>

<!-- others plugins -->


<script src="../assets/js/plugins.js"></script>
<script src="../assets/js/scripts.js"></script>
</body>

</html>

<?php } ?>

39
Employee Management page:-

Coding :-

<?php

session_start();

error_reporting(0);

include('../includes/dbconn.php');

if(strlen($_SESSION['alogin'])==0){

header('location:index.php');

} else {

//Inactive Employee

if(isset($_GET['inid']))

{
40
$id=$_GET['inid'];

$status=0;

$sql = "UPDATE tblemployees set Status=:status WHERE id=:id";

$query = $dbh->prepare($sql);

$query -> bindParam(':id',$id, PDO::PARAM_STR);

$query -> bindParam(':status',$status, PDO::PARAM_STR);

$query -> execute();

header('location:employees.php');

//Activated Employee

if(isset($_GET['id'])){

$id=$_GET['id'];

$status=1;

$sql = "UPDATE tblemployees set Status=:status WHERE id=:id";

$query = $dbh->prepare($sql);

$query -> bindParam(':id',$id, PDO::PARAM_STR);

$query -> bindParam(':status',$status, PDO::PARAM_STR);

$query -> execute();

header('location:employees.php');

?>

41
<!doctype html>

<html class="no-js" lang="en">

<head>

<meta charset="utf-8">

<meta http-equiv="x-ua-compatible" content="ie=edge">

<title>Admin Panel - Employee Leave</title>

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="shortcut icon" type="image/png"


href="../assets/images/icon/favicon.ico">

<link rel="stylesheet" href="../assets/css/bootstrap.min.css">

<link rel="stylesheet" href="../assets/css/font-awesome.min.css">

<link rel="stylesheet" href="../assets/css/themify-icons.css">

<link rel="stylesheet" href="../assets/css/metisMenu.css">

<link rel="stylesheet" href="../assets/css/owl.carousel.min.css">

<link rel="stylesheet" href="../assets/css/slicknav.min.css">

<!-- amchart css -->

<link rel="stylesheet"
href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css"
media="all" />

<!-- Start datatable css -->

<link rel="stylesheet" type="text/css"


href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.css">

<link rel="stylesheet" type="text/css"


href="https://cdn.datatables.net/1.10.18/css/dataTables.bootstrap4.min.css">

42
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/responsive/2.2.3/css/responsive.bootstrap.min.css">

<link rel="stylesheet" type="text/css"


href="https://cdn.datatables.net/responsive/2.2.3/css/responsive.jqueryui.min.css">

<!-- others css -->

<link rel="stylesheet" href="../assets/css/typography.css">

<link rel="stylesheet" href="../assets/css/default-css.css">

<link rel="stylesheet" href="../assets/css/styles.css">

<link rel="stylesheet" href="../assets/css/responsive.css">

<!-- modernizr css -->

<script src="../assets/js/vendor/modernizr-2.8.3.min.js"></script>

</head>

<body>

<!-- preloader area start -->

<div id="preloader">

<div class="loader"></div>

</div>

<!-- preloader area end -->

<div class="page-container">

<!-- sidebar menu area start -->

<div class="sidebar-menu">

<div class="sidebar-header">
43
<div class="logo">

<a href="dashboard.php"><img src="../assets/images/icon/logo.png"


alt="logo"></a>

</div>

</div>

<div class="main-menu">

<div class="menu-inner">

<?php

$page='employee';

include '../includes/admin-sidebar.php';

?>

</div>

</div>

</div>

<!-- sidebar menu area end -->

<!-- main content area start -->

<div class="main-content">

<!-- header area start -->

<div class="header-area">

<div class="row align-items-center">

<!-- nav and search button -->

<div class="col-md-6 col-sm-8 clearfix">

<div class="nav-btn pull-left">

<span></span>
44
<span></span>

<span></span>

</div>

</div>

<!-- profile info & task notification -->

<div class="col-md-6 col-sm-4 clearfix">

<ul class="notification-area pull-right">

<li id="full-view"><i class="ti-fullscreen"></i></li>

<li id="full-view-exit"><i class="ti-zoom-out"></i></li>

<!-- Notification bell -->

<?php include '../includes/admin-notification.php'?>

</ul>

</div>

</div>

</div>

<!-- header area end -->

<!-- page title area start -->

<div class="page-title-area">

<div class="row align-items-center">

<div class="col-sm-6">

45
<div class="breadcrumbs-area clearfix">

<h4 class="page-title pull-left">Employee Section</h4>

<ul class="breadcrumbs pull-left">

<li><a href="dashboard.php">Home</a></li>

<li><span>Employee Management</span></li>

</ul>

</div>

</div>

<div class="col-sm-6 clearfix">

<div class="user-profile pull-right">

<img class="avatar user-thumb" src="../assets/images/admin.png"


alt="avatar">

<h4 class="user-name dropdown-toggle" data-


toggle="dropdown">ADMIN <i class="fa fa-angle-down"></i></h4>

<div class="dropdown-menu">

<a class="dropdown-item" href="logout.php">Log Out</a>

</div>

</div>

</div>

</div>

</div>

<!-- page title area end -->

46
<div class="main-content-inner">

<!-- row area start -->

<div class="row">

<!-- Dark table start -->

<div class="col-12 mt-5">

<div class="card">

<?php if($error){?><div class="alert alert-danger alert-dismissible


fade show"><strong>Info: </strong><?php echo htmlentities($error); ?>

<button type="button" class="close" data-dismiss="alert" aria-


label="Close">

<span aria-hidden="true">&times;</span>

</button>

</div><?php }

else if($msg){?><div class="alert alert-success alert-dismissible


fade show"><strong>Info: </strong><?php echo htmlentities($msg); ?>

<button type="button" class="close" data-dismiss="alert" aria-


label="Close">

<span aria-hidden="true">&times;</span>

</button>

</div><?php }?>
47
<div class="card-body">

<div class="data-tables datatable-dark">

<center><a href="add-employee.php" class="btn btn-sm btn-


info">Add New Employee</a></center>

<table id="dataTable3" class="table table-hover table-striped


text-center">

<thead class="text-capitalize">

<tr>

<th>#</th>

<th>Name</th>

<th>Employe ID</th>

<th>Department</th>

<th>Joined On</th>

<th>Status</th>

<th></th>

</tr>

</thead>

<tbody>

<?php

$sql = "SELECT
EmpId,FirstName,LastName,Department,Status,RegDate,id from tblemployees";

$query = $dbh -> prepare($sql);

48
$query->execute();

$results=$query->fetchAll(PDO::FETCH_OBJ);

$cnt=1;

if($query->rowCount() > 0)

foreach($results as $result)

{ ?>

<tr>

<td> <?php echo htmlentities($cnt);?></td>

<td><?php echo htmlentities($result->FirstName);?


>&nbsp;<?php echo htmlentities($result->LastName);?></td>

<td><?php echo htmlentities($result->EmpId);?></td>

<td><?php echo
htmlentities($result->Department);?></td>

<td><?php echo htmlentities($result->RegDate);?></td>

<td><?php $stats=$result->Status;

if($stats){

?>

<span class="badge badge-pill badge-


success">Active</span>
49
<?php } else { ?>

<span class="badge badge-pill badge-


danger">Inactive</span>

<?php } ?>

</td>

<td><a href="update-employee.php?empid=<?php echo


htmlentities($result->id);?>"><i class="fa fa-edit" style="color:green"></i></a>

<?php if($result->Status==1)

{?>

<a href="employees.php?inid=<?php echo


htmlentities($result->id);?>" onclick="return confirm('Are you sure you want to
inactive this employee?');"" > <i class="fa fa-times-circle" style="color:red"
title="Inactive"></i>

<?php } else {?>

<a href="employees.php?id=<?php echo


htmlentities($result->id);?>" onclick="return confirm('Are you sure you want to
active this employee?');""><i class="fa fa-check" style="color:green"
title="Active"></i>

<?php } ?> </td>

</tr>

<?php $cnt++;} }?>

</tbody>

</table>
50
</div>

</div>

</div>

</div>

<!-- Dark table end -->

</div>

<!-- row area end -->

</div>

<!-- row area start-->

</div>

<?php include '../includes/footer.php' ?>

</div>

<!-- main content area end -->

<!-- footer area end-->

</div>

<!-- jquery latest version -->

<script src="../assets/js/vendor/jquery-2.2.4.min.js"></script>

<!-- bootstrap 4 js -->

<script src="../assets/js/popper.min.js"></script>

<script src="../assets/js/bootstrap.min.js"></script>
51
<script src="../assets/js/owl.carousel.min.js"></script>

<script src="../assets/js/metisMenu.min.js"></script>

<script src="../assets/js/jquery.slimscroll.min.js"></script>

<script src="../assets/js/jquery.slicknav.min.js"></script>

<!-- start chart js -->

<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.min.js"></
script>

<!-- start highcharts js -->

<script src="https://code.highcharts.com/highcharts.js"></script>

<!-- start zingchart js -->

<script src="https://cdn.zingchart.com/zingchart.min.js"></script>

<script>

zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";

ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9",
"ee6b7db5b51705a13dc2339db3edaf6d"];

</script>

<!-- all line chart activation -->

<script src="assets/js/line-chart.js"></script>

<!-- all pie chart -->

<script src="assets/js/pie-chart.js"></script>

<!-- Start datatable js -->

<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.js"></script>
52
<script src="https://cdn.datatables.net/1.10.18/js/jquery.dataTables.min.js"></
script>

<script src="https://cdn.datatables.net/1.10.18/js/dataTables.bootstrap4.min.js"></
script>

<script
src="https://cdn.datatables.net/responsive/2.2.3/js/dataTables.responsive.min.js"></
script>

<script
src="https://cdn.datatables.net/responsive/2.2.3/js/responsive.bootstrap.min.js"></
script>

<!-- others plugins -->

<script src="../assets/js/plugins.js"></script>

<script src="../assets/js/scripts.js"></script>

</body>

</html>

<?php } ?>

Department Section Page:-


53
Coding :-

<?php
session_start();
error_reporting(0);
include('../includes/dbconn.php');
if(strlen($_SESSION['alogin'])==0){
header('location:index.php');
} else {
if(isset($_GET['del']))
{
$id=$_GET['del'];
$sql = "DELETE from tbldepartments WHERE id=:id";
$query = $dbh->prepare($sql);
$query -> bindParam(':id',$id, PDO::PARAM_STR);
$query -> execute();
$msg="The selected department has been deleted";

?>

<!doctype html>
<html class="no-js" lang="en">
54
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Admin Panel - Employee Leave</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/png" href="../assets/images/icon/favicon.ico">
<link rel="stylesheet" href="../assets/css/bootstrap.min.css">
<link rel="stylesheet" href="../assets/css/font-awesome.min.css">
<link rel="stylesheet" href="../assets/css/themify-icons.css">
<link rel="stylesheet" href="../assets/css/metisMenu.css">
<link rel="stylesheet" href="../assets/css/owl.carousel.min.css">
<link rel="stylesheet" href="../assets/css/slicknav.min.css">
<!-- amchart css -->
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css"
type="text/css" media="all" />
<!-- Start datatable css -->
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.css">
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/1.10.18/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/responsive/2.2.3/css/responsive.bootstrap.min.css">
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/responsive/2.2.3/css/responsive.jqueryui.min.css">
<!-- others css -->
<link rel="stylesheet" href="../assets/css/typography.css">
<link rel="stylesheet" href="../assets/css/default-css.css">
<link rel="stylesheet" href="../assets/css/styles.css">
<link rel="stylesheet" href="../assets/css/responsive.css">
<!-- modernizr css -->
<script src="../assets/js/vendor/modernizr-2.8.3.min.js"></script>
</head>

<body>
<!-- preloader area start -->
<div id="preloader">
<div class="loader"></div>
</div>
<!-- preloader area end -->

55
<div class="page-container">
<!-- sidebar menu area start -->
<div class="sidebar-menu">
<div class="sidebar-header">
<div class="logo">
<a href="dashboard.php"><img src="../assets/images/icon/logo.png"
alt="logo"></a>
</div>
</div>
<div class="main-menu">
<div class="menu-inner">
<?php
$page='department';
include '../includes/admin-sidebar.php';
?>
</div>
</div>
</div>
<!-- sidebar menu area end -->
<!-- main content area start -->
<div class="main-content">
<!-- header area start -->
<div class="header-area">
<div class="row align-items-center">
<!-- nav and search button -->
<div class="col-md-6 col-sm-8 clearfix">
<div class="nav-btn pull-left">
<span></span>
<span></span>
<span></span>
</div>

</div>
<!-- profile info & task notification -->
<div class="col-md-6 col-sm-4 clearfix">
<ul class="notification-area pull-right">
<li id="full-view"><i class="ti-fullscreen"></i></li>
<li id="full-view-exit"><i class="ti-zoom-out"></i></li>

<!-- Notification bell -->


<?php include '../includes/admin-notification.php'?>
56
</ul>
</div>
</div>
</div>
<!-- header area end -->
<!-- page title area start -->
<div class="page-title-area">
<div class="row align-items-center">
<div class="col-sm-6">
<div class="breadcrumbs-area clearfix">
<h4 class="page-title pull-left">Department Section</h4>
<ul class="breadcrumbs pull-left">
<li><a href="dashboard.php">Home</a></li>
<li><span>Department Management</span></li>

</ul>
</div>
</div>

<div class="col-sm-6 clearfix">


<div class="user-profile pull-right">
<img class="avatar user-thumb" src="../assets/images/admin.png"
alt="avatar">
<h4 class="user-name dropdown-toggle" data-toggle="dropdown">ADMIN
<i class="fa fa-angle-down"></i></h4>
<div class="dropdown-menu">
<a class="dropdown-item" href="logout.php">Log Out</a>
</div>
</div>
</div>
</div>
</div>
<!-- page title area end -->
<div class="main-content-inner">

<!-- row area start -->


<div class="row">
<!-- Dark table start -->
<div class="col-12 mt-5">

57
<div class="card">

<?php if($error){?><div class="alert alert-danger alert-dismissible fade


show"><strong>Info: </strong><?php echo htmlentities($error); ?>
<button type="button" class="close" data-dismiss="alert" aria-
label="Close">
<span aria-hidden="true">&times;</span>
</button>

</div><?php }
else if($msg){?><div class="alert alert-success alert-dismissible fade
show"><strong>Info: </strong><?php echo htmlentities($msg); ?>
<button type="button" class="close" data-dismiss="alert" aria-
label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div><?php }?>

<div class="card-body">
<div class="data-tables datatable-dark">
<center><a href="add-department.php" class="btn btn-sm btn-info">Add
New Department</a></center>
<table id="dataTable3" class="table table-hover table-striped text-
center">
<thead class="text-capitalize">
<tr>
<th>#</th>
<th>Department</th>
<th>Shortform</th>
<th>Code</th>
<th>Created Date</th>

<th></th>
</tr>
</thead>
<tbody>
<?php $sql = "SELECT * from tbldepartments";
$query = $dbh -> prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
58
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<tr>
<td> <?php echo htmlentities($cnt);?></td>
<td><?php echo htmlentities($result->DepartmentName);?></td>
<td><?php echo htmlentities($result->DepartmentShortName);?
></td>
<td><?php echo htmlentities($result->DepartmentCode);?></td>
<td><?php echo htmlentities($result->CreationDate);?></td>
<td><a href="edit-department.php?deptid=<?php echo
htmlentities($result->id);?>"><i class="fa fa-edit" style="color:green"></i></a><a
href="department.php?del=<?php echo htmlentities($result->id);?>" onclick="return
confirm('Do you want to delete');"> <i class="fa fa-trash" style="color:red"></i></a></td>
</tr>
<?php $cnt++;} }?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- Dark table end -->

</div>
<!-- row area end -->

</div>
<!-- row area start-->
</div>
<?php include '../includes/footer.php' ?>
<!-- footer area end-->
</div>
<!-- main content area end -->

</div>
<!-- jquery latest version -->
<script src="../assets/js/vendor/jquery-2.2.4.min.js"></script>
<!-- bootstrap 4 js -->
<script src="../assets/js/popper.min.js"></script>
59
<script src="../assets/js/bootstrap.min.js"></script>
<script src="../assets/js/owl.carousel.min.js"></script>
<script src="../assets/js/metisMenu.min.js"></script>
<script src="../assets/js/jquery.slimscroll.min.js"></script>
<script src="../assets/js/jquery.slicknav.min.js"></script>

<!-- start chart js -->


<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.min.js"></script>
<!-- start highcharts js -->
<script src="https://code.highcharts.com/highcharts.js"></script>
<!-- start zingchart js -->
<script src="https://cdn.zingchart.com/zingchart.min.js"></script>
<script>
zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";
ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9",
"ee6b7db5b51705a13dc2339db3edaf6d"];
</script>
<!-- all line chart activation -->
<script src="assets/js/line-chart.js"></script>
<!-- all pie chart -->
<script src="assets/js/pie-chart.js"></script>

<!-- Start datatable js -->


<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.js"></script>
<script src="https://cdn.datatables.net/1.10.18/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.10.18/js/dataTables.bootstrap4.min.js"></script>
<script
src="https://cdn.datatables.net/responsive/2.2.3/js/dataTables.responsive.min.js"></script>
<script src="https://cdn.datatables.net/responsive/2.2.3/js/responsive.bootstrap.min.js"></
script>

<!-- others plugins -->


<script src="../assets/js/plugins.js"></script>
<script src="../assets/js/scripts.js"></script>
</body>

</html>

<?php } ?>

60
<?php
session_start();
error_reporting(0);
include('../includes/dbconn.php');
if(strlen($_SESSION['alogin'])==0){
header('location:index.php');
} else {
if(isset($_POST['add'])){

$deptname=$_POST['departmentname'];
$deptshortname=$_POST['departmentshortname'];
$deptcode=$_POST['deptcode'];
$sql="INSERT INTO
tbldepartments(DepartmentName,DepartmentCode,DepartmentShortName)
VALUES(:deptname,:deptcode,:deptshortname)";
$query = $dbh->prepare($sql);
$query->bindParam(':deptname',$deptname,PDO::PARAM_STR);
$query->bindParam(':deptcode',$deptcode,PDO::PARAM_STR);
$query->bindParam(':deptshortname',$deptshortname,PDO::PARAM_STR);
$query->execute();
$lastInsertId = $dbh->lastInsertId();

if($lastInsertId){
$msg="Department Created Successfully";
} else {
$error="Something went wrong. Please try again";
}

?>

<!doctype html>
<html class="no-js" lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Admin Panel - Employee Leave</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
61
<link rel="shortcut icon" type="image/png" href="../assets/images/icon/favicon.ico">
<link rel="stylesheet" href="../assets/css/bootstrap.min.css">
<link rel="stylesheet" href="../assets/css/font-awesome.min.css">
<link rel="stylesheet" href="../assets/css/themify-icons.css">
<link rel="stylesheet" href="../assets/css/metisMenu.css">
<link rel="stylesheet" href="../assets/css/owl.carousel.min.css">
<link rel="stylesheet" href="../assets/css/slicknav.min.css">
<!-- amchart css -->
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css"
type="text/css" media="all" />
<!-- Start datatable css -->
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.css">
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/1.10.18/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/responsive/2.2.3/css/responsive.bootstrap.min.css">
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/responsive/2.2.3/css/responsive.jqueryui.min.css">
<!-- others css -->
<link rel="stylesheet" href="../assets/css/typography.css">
<link rel="stylesheet" href="../assets/css/default-css.css">
<link rel="stylesheet" href="../assets/css/styles.css">
<link rel="stylesheet" href="../assets/css/responsive.css">
<!-- modernizr css -->
<script src="../assets/js/vendor/modernizr-2.8.3.min.js"></script>
</head>

<body>
<!-- preloader area start -->
<div id="preloader">
<div class="loader"></div>
</div>
<!-- preloader area end -->

<div class="page-container">
<!-- sidebar menu area start -->
<div class="sidebar-menu">
<div class="sidebar-header">
<div class="logo">
<a href="dashboard.php"><img src="../assets/images/icon/logo.png"
62
alt="logo"></a>
</div>
</div>
<div class="main-menu">
<div class="menu-inner">
<?php
$page='department';
include '../includes/admin-sidebar.php';
?>
</div>
</div>
</div>
<!-- sidebar menu area end -->
<!-- main content area start -->
<div class="main-content">
<!-- header area start -->
<div class="header-area">
<div class="row align-items-center">
<!-- nav and search button -->
<div class="col-md-6 col-sm-8 clearfix">
<div class="nav-btn pull-left">
<span></span>
<span></span>
<span></span>
</div>

</div>
<!-- profile info & task notification -->
<div class="col-md-6 col-sm-4 clearfix">
<ul class="notification-area pull-right">
<li id="full-view"><i class="ti-fullscreen"></i></li>
<li id="full-view-exit"><i class="ti-zoom-out"></i></li>

<!-- Notification bell -->


<?php include '../includes/admin-notification.php'?>

</ul>
</div>
</div>
</div>
<!-- header area end -->
63
<!-- page title area start -->
<div class="page-title-area">
<div class="row align-items-center">
<div class="col-sm-6">
<div class="breadcrumbs-area clearfix">
<h4 class="page-title pull-left">Department Section</h4>
<ul class="breadcrumbs pull-left">
<li><a href="department.php">Department</a></li>
<li><span>Add</span></li>

</ul>
</div>
</div>

<div class="col-sm-6 clearfix">


<div class="user-profile pull-right">
<img class="avatar user-thumb" src="../assets/images/admin.png"
alt="avatar">
<h4 class="user-name dropdown-toggle" data-toggle="dropdown">ADMIN
<i class="fa fa-angle-down"></i></h4>
<div class="dropdown-menu">
<a class="dropdown-item" href="logout.php">Log Out</a>
</div>
</div>
</div>
</div>
</div>
<!-- page title area end -->
<div class="main-content-inner">

<!-- row area start -->


<div class="row">
<!-- Dark table start -->
<div class="col-12 mt-5">

<div class="card">

<?php if($error){?><div class="alert alert-danger alert-dismissible fade


show"><strong>Info: </strong><?php echo htmlentities($error); ?>
<button type="button" class="close" data-dismiss="alert" aria-
64
label="Close">
<span aria-hidden="true">&times;</span>
</button>

</div><?php }
else if($msg){?><div class="alert alert-success alert-dismissible fade
show"><strong>Info: </strong><?php echo htmlentities($msg); ?>
<button type="button" class="close" data-dismiss="alert" aria-
label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div><?php }?>

<form method="POST">
<div class="card-body">

<p class="text-muted font-14 mb-4">Please fill up the form in order


to add new department</p>

<div class="form-group">
<label for="example-text-input" class="col-form-
label">Department Name</label>
<input class="form-control" name="departmentname" type="text"
required id="example-text-input" >
</div>

<div class="form-group">
<label for="example-text-input" class="col-form-
label">Shortform</label>
<input class="form-control" name="departmentshortname"
type="text" autocomplete="off" required id="example-text-input" >
</div>

<div class="form-group">
<label for="example-email-input" class="col-form-
label">Code</label>
<input class="form-control" name="deptcode" type="text"
autocomplete="off" required id="example-email-input" >
</div>

<button class="btn btn-primary" name="add" id="add"


type="submit">ADD</button>
65
</div>
</form>
</div>
</div>
<!-- Dark table end -->

</div>
<!-- row area end -->

</div>
<!-- row area start-->
</div>
<?php include '../includes/footer.php' ?>
<!-- footer area end-->
</div>
<!-- main content area end -->

</div>
<!-- jquery latest version -->
<script src="../assets/js/vendor/jquery-2.2.4.min.js"></script>
<!-- bootstrap 4 js -->
<script src="../assets/js/popper.min.js"></script>
<script src="../assets/js/bootstrap.min.js"></script>
<script src="../assets/js/owl.carousel.min.js"></script>
<script src="../assets/js/metisMenu.min.js"></script>
<script src="../assets/js/jquery.slimscroll.min.js"></script>
<script src="../assets/js/jquery.slicknav.min.js"></script>

<!-- start chart js -->


<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.min.js"></script>
<!-- start highcharts js -->
<script src="https://code.highcharts.com/highcharts.js"></script>
<!-- start zingchart js -->
<script src="https://cdn.zingchart.com/zingchart.min.js"></script>
<script>
zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";
ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9",
"ee6b7db5b51705a13dc2339db3edaf6d"];
</script>
<!-- all line chart activation -->
66
<script src="assets/js/line-chart.js"></script>
<!-- all pie chart -->
<script src="assets/js/pie-chart.js"></script>

<!-- Start datatable js -->


<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.js"></script>
<script src="https://cdn.datatables.net/1.10.18/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.10.18/js/dataTables.bootstrap4.min.js"></script>
<script
src="https://cdn.datatables.net/responsive/2.2.3/js/dataTables.responsive.min.js"></script>
<script src="https://cdn.datatables.net/responsive/2.2.3/js/responsive.bootstrap.min.js"></
script>

<!-- others plugins -->


<script src="../assets/js/plugins.js"></script>
<script src="../assets/js/scripts.js"></script>
</body>

</html>

<?php } ?>

67
Leave types Page:-

Coding :-
<?php
session_start();
error_reporting(0);
include('../includes/dbconn.php');
if(strlen($_SESSION['alogin'])==0){
header('location:index.php');
} else {
if(isset($_POST['add'])){
$leavetype=$_POST['leavetype'];
$description=$_POST['description'];
$sql="INSERT INTO tblleavetype(LeaveType,Description)
VALUES(:leavetype,:description)";
$query = $dbh->prepare($sql);
$query->bindParam(':leavetype',$leavetype,PDO::PARAM_STR);
$query->bindParam(':description',$description,PDO::PARAM_STR);
$query->execute();
$lastInsertId = $dbh->lastInsertId();

if($lastInsertId){
68
$msg="Leave type added Successfully";
} else {
$error="Something went wrong. Please try again";
}

?>

<!doctype html>
<html class="no-js" lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Admin Panel - Employee Leave</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/png" href="../assets/images/icon/favicon.ico">
<link rel="stylesheet" href="../assets/css/bootstrap.min.css">
<link rel="stylesheet" href="../assets/css/font-awesome.min.css">
<link rel="stylesheet" href="../assets/css/themify-icons.css">
<link rel="stylesheet" href="../assets/css/metisMenu.css">
<link rel="stylesheet" href="../assets/css/owl.carousel.min.css">
<link rel="stylesheet" href="../assets/css/slicknav.min.css">
<!-- amchart css -->
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css"
type="text/css" media="all" />
<!-- Start datatable css -->
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.css">
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/1.10.18/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/responsive/2.2.3/css/responsive.bootstrap.min.css">
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/responsive/2.2.3/css/responsive.jqueryui.min.css">
<!-- others css -->
<link rel="stylesheet" href="../assets/css/typography.css">
<link rel="stylesheet" href="../assets/css/default-css.css">
<link rel="stylesheet" href="../assets/css/styles.css">
<link rel="stylesheet" href="../assets/css/responsive.css">
69
<!-- modernizr css -->
<script src="../assets/js/vendor/modernizr-2.8.3.min.js"></script>
</head>

<body>
<!-- preloader area start -->
<div id="preloader">
<div class="loader"></div>
</div>
<!-- preloader area end -->
<div class="page-container">
<!-- sidebar menu area start -->
<div class="sidebar-menu">
<div class="sidebar-header">
<div class="logo">
<a href="dashboard.php"><img src="../assets/images/icon/logo.png"
alt="logo"></a>
</div>
</div>
<div class="main-menu">
<div class="menu-inner">
<?php
$page='leave';
include '../includes/admin-sidebar.php';
?>
</div>
</div>
</div>
<!-- sidebar menu area end -->
<!-- main content area start -->
<div class="main-content">
<!-- header area start -->
<div class="header-area">
<div class="row align-items-center">
<!-- nav and search button -->
<div class="col-md-6 col-sm-8 clearfix">
<div class="nav-btn pull-left">
<span></span>
<span></span>
<span></span>
70
</div>
</div>
<!-- profile info & task notification -->
<div class="col-md-6 col-sm-4 clearfix">
<ul class="notification-area pull-right">
<li id="full-view"><i class="ti-fullscreen"></i></li>
<li id="full-view-exit"><i class="ti-zoom-out"></i></li>

<!-- Notification bell -->


<?php include '../includes/admin-notification.php'?>

</ul>
</div>
</div>
</div>
<!-- header area end -->
<!-- page title area start -->
<div class="page-title-area">
<div class="row align-items-center">
<div class="col-sm-6">
<div class="breadcrumbs-area clearfix">
<h4 class="page-title pull-left">Leave Section</h4>
<ul class="breadcrumbs pull-left">
<li><a href="leave-section.php">Manage Type</a></li>
<li><span>Add</span></li>
</ul>
</div>
</div>
<div class="col-sm-6 clearfix">
<div class="user-profile pull-right">
<img class="avatar user-thumb" src="../assets/images/admin.png"
alt="avatar">
<h4 class="user-name dropdown-toggle" data-toggle="dropdown">ADMIN
<i class="fa fa-angle-down"></i></h4>
<div class="dropdown-menu">
<a class="dropdown-item" href="logout.php">Log Out</a>
</div>
</div>
</div>
71
</div>
</div>
<!-- page title area end -->
<div class="main-content-inner">

<!-- row area start -->


<div class="row">
<!-- Dark table start -->
<div class="col-12 mt-5">
<div class="card">

<?php if($error){?><div class="alert alert-danger alert-dismissible fade


show"><strong>Info: </strong><?php echo htmlentities($error); ?>
<button type="button" class="close" data-dismiss="alert" aria-
label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div><?php }
else if($msg){?><div class="alert alert-success alert-dismissible fade
show"><strong>Info: </strong><?php echo htmlentities($msg); ?>
<button type="button" class="close" data-dismiss="alert" aria-
label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div><?php }?>

<form method="POST">
<div class="card-body">
<p class="text-muted font-14 mb-4">Please fill up the form in order
to add new leave type</p>

<div class="form-group">
<label for="example-text-input" class="col-form-label">Leave
Type</label>
<input class="form-control" name="leavetype" type="text"
required id="example-text-input" required>
</div>
72
<div class="form-group">
<label for="example-text-input" class="col-form-label">Short
Description</label>
<input class="form-control" name="description" type="text"
autocomplete="off" required id="example-text-input" required>
</div>

<button class="btn btn-primary" name="add" id="add"


type="submit">ADD</button>
</div>
</form>
</div>
</div>
<!-- Dark table end -->
</div>
<!-- row area end -->
</div>
<!-- row area start-->
</div>
<?php include '../includes/footer.php' ?>
<!-- footer area end-->
</div>
<!-- main content area end -->

</div>
<!-- jquery latest version -->
<script src="../assets/js/vendor/jquery-2.2.4.min.js"></script>
<!-- bootstrap 4 js -->
<script src="../assets/js/popper.min.js"></script>
<script src="../assets/js/bootstrap.min.js"></script>
<script src="../assets/js/owl.carousel.min.js"></script>
<script src="../assets/js/metisMenu.min.js"></script>
<script src="../assets/js/jquery.slimscroll.min.js"></script>
<script src="../assets/js/jquery.slicknav.min.js"></script>

73
<!-- start chart js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.min.js"></script>
<!-- start highcharts js -->
<script src="https://code.highcharts.com/highcharts.js"></script>
<!-- start zingchart js -->
<script src="https://cdn.zingchart.com/zingchart.min.js"></script>
<script>
zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";
ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9",
"ee6b7db5b51705a13dc2339db3edaf6d"];
</script>
<!-- all line chart activation -->
<script src="assets/js/line-chart.js"></script>
<!-- all pie chart -->
<script src="assets/js/pie-chart.js"></script>

<!-- Start datatable js -->


<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.js"></script>
<script src="https://cdn.datatables.net/1.10.18/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.10.18/js/dataTables.bootstrap4.min.js"></script>
<script
src="https://cdn.datatables.net/responsive/2.2.3/js/dataTables.responsive.min.js"></script>
<script src="https://cdn.datatables.net/responsive/2.2.3/js/responsive.bootstrap.min.js"></
script>
<!-- others plugins -->
<script src="../assets/js/plugins.js"></script>
<script src="../assets/js/scripts.js"></script>
</body>

</html>

<?php } ?>

<?php
session_start();
error_reporting(0);
include('../includes/dbconn.php');

if(strlen($_SESSION['alogin'])==0){
header('location:index.php');
74
} else {
if(isset($_POST['update'])){
$lid=intval($_GET['lid']);
$leavetype=$_POST['leavetype'];
$description=$_POST['description'];
$sql="UPDATE tblleavetype set LeaveType=:leavetype,Description=:description where
id=:lid";
$query = $dbh->prepare($sql);
$query->bindParam(':leavetype',$leavetype,PDO::PARAM_STR);
$query->bindParam(':description',$description,PDO::PARAM_STR);
$query->bindParam(':lid',$lid,PDO::PARAM_STR);
$query->execute();

$msg="Leave type updated successfully";

?>

<!doctype html>
<html class="no-js" lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Admin Panel - Employee Leave</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/png" href="../assets/images/icon/favicon.ico">
<link rel="stylesheet" href="../assets/css/bootstrap.min.css">
<link rel="stylesheet" href="../assets/css/font-awesome.min.css">
<link rel="stylesheet" href="../assets/css/themify-icons.css">
<link rel="stylesheet" href="../assets/css/metisMenu.css">
<link rel="stylesheet" href="../assets/css/owl.carousel.min.css">
<link rel="stylesheet" href="../assets/css/slicknav.min.css">
<!-- amchart css -->
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css"
type="text/css" media="all" />
<!-- Start datatable css -->
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.css">
75
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/1.10.18/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/responsive/2.2.3/css/responsive.bootstrap.min.css">
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/responsive/2.2.3/css/responsive.jqueryui.min.css">
<!-- others css -->
<link rel="stylesheet" href="../assets/css/typography.css">
<link rel="stylesheet" href="../assets/css/default-css.css">
<link rel="stylesheet" href="../assets/css/styles.css">
<link rel="stylesheet" href="../assets/css/responsive.css">
<!-- modernizr css -->
<script src="../assets/js/vendor/modernizr-2.8.3.min.js"></script>
</head>

<body>
<!-- preloader area start -->
<div id="preloader">
<div class="loader"></div>
</div>
<!-- preloader area end -->
<div class="page-container">
<!-- sidebar menu area start -->
<div class="sidebar-menu">
<div class="sidebar-header">
<div class="logo">
<a href="dashboard.php"><img src="../assets/images/icon/logo.png"
alt="logo"></a>
</div>
</div>
<div class="main-menu">
<div class="menu-inner">
<?php
$page='leave';
include '../includes/admin-sidebar.php';
?>
</div>
</div>
</div>
<!-- sidebar menu area end -->
76
<!-- main content area start -->
<div class="main-content">
<!-- header area start -->
<div class="header-area">
<div class="row align-items-center">
<!-- nav and search button -->
<div class="col-md-6 col-sm-8 clearfix">
<div class="nav-btn pull-left">
<span></span>
<span></span>
<span></span>
</div>
</div>
<!-- profile info & task notification -->
<div class="col-md-6 col-sm-4 clearfix">
<ul class="notification-area pull-right">
<li id="full-view"><i class="ti-fullscreen"></i></li>
<li id="full-view-exit"><i class="ti-zoom-out"></i></li>

<!-- Notification bell -->


<?php include '../includes/admin-notification.php'?>

</ul>
</div>
</div>
</div>
<!-- header area end -->
<!-- page title area start -->
<div class="page-title-area">
<div class="row align-items-center">
<div class="col-sm-6">
<div class="breadcrumbs-area clearfix">
<h4 class="page-title pull-left">Leave Section</h4>
<ul class="breadcrumbs pull-left">
<li><a href="leave-section.php">Leave</a></li>
<li><span>Edit</span></li>
</ul>
</div>
</div>
77
<div class="col-sm-6 clearfix">
<div class="user-profile pull-right">
<img class="avatar user-thumb" src="../assets/images/admin.png"
alt="avatar">
<h4 class="user-name dropdown-toggle" data-toggle="dropdown">ADMIN
<i class="fa fa-angle-down"></i></h4>
<div class="dropdown-menu">
<a class="dropdown-item" href="logout.php">Log Out</a>
</div>
</div>
</div>
</div>
</div>
<!-- page title area end -->
<div class="main-content-inner">

<!-- row area start -->


<div class="row">
<!-- Dark table start -->
<div class="col-12 mt-5">
<div class="card">

<?php if($error){?><div class="alert alert-danger alert-dismissible fade


show"><strong>Info: </strong><?php echo htmlentities($error); ?>
<button type="button" class="close" data-dismiss="alert" aria-
label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div><?php }
else if($msg){?><div class="alert alert-success alert-dismissible fade
show"><strong>Info: </strong><?php echo htmlentities($msg); ?>
<button type="button" class="close" data-dismiss="alert" aria-
label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div><?php }?>

<form method="POST">
78
<div class="card-body">
<p class="text-muted font-14 mb-4">Please make changes on the
form below in order to update leave type</p>

<?php
$lid=intval($_GET['lid']);
$sql = "SELECT * from tblleavetype where id=:lid";
$query = $dbh -> prepare($sql);
$query->bindParam(':lid',$lid,PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>

<div class="form-group">
<label for="example-text-input" class="col-form-label">Leave
Type</label>
<input class="form-control" name="leavetype" type="text"
required id="example-text-input" value="<?php echo htmlentities($result->LeaveType);?>"
required>
</div>

<div class="form-group">
<label for="example-text-input" class="col-form-label">Short
Description</label>
<input class="form-control" name="description" type="text"
autocomplete="off" required id="example-text-input" value="<?php echo
htmlentities($result->Description);?>" required>
</div>

<?php }
}?>

<button class="btn btn-primary" name="update" id="update"


type="submit">MAKE CHANGES</button>

79
</div>
</form>
</div>
</div>
<!-- Dark table end -->
</div>
<!-- row area end -->
</div>
<!-- row area start-->
</div>
<?php include '../includes/footer.php' ?>
<!-- footer area end-->
</div>
<!-- main content area end -->

</div>
<!-- jquery latest version -->
<script src="../assets/js/vendor/jquery-2.2.4.min.js"></script>
<!-- bootstrap 4 js -->
<script src="../assets/js/popper.min.js"></script>
<script src="../assets/js/bootstrap.min.js"></script>
<script src="../assets/js/owl.carousel.min.js"></script>
<script src="../assets/js/metisMenu.min.js"></script>
<script src="../assets/js/jquery.slimscroll.min.js"></script>
<script src="../assets/js/jquery.slicknav.min.js"></script>

<!-- start chart js -->


<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.min.js"></script>
<!-- start highcharts js -->
<script src="https://code.highcharts.com/highcharts.js"></script>
<!-- start zingchart js -->
<script src="https://cdn.zingchart.com/zingchart.min.js"></script>
<script>
zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";
ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9",
"ee6b7db5b51705a13dc2339db3edaf6d"];
</script>
<!-- all line chart activation -->
80
<script src="assets/js/line-chart.js"></script>
<!-- all pie chart -->
<script src="assets/js/pie-chart.js"></script>

<!-- Start datatable js -->


<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.js"></script>
<script src="https://cdn.datatables.net/1.10.18/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.10.18/js/dataTables.bootstrap4.min.js"></script>
<script
src="https://cdn.datatables.net/responsive/2.2.3/js/dataTables.responsive.min.js"></script>
<script src="https://cdn.datatables.net/responsive/2.2.3/js/responsive.bootstrap.min.js"></
script>
<!-- others plugins -->
<script src="../assets/js/plugins.js"></script>
<script src="../assets/js/scripts.js"></script>
</body>

</html>

<?php } ?>

Manage Leave page:-

81
Coding :-

<?php
session_start();
error_reporting(0);
include('../includes/dbconn.php');
if(strlen($_SESSION['alogin'])==0){
header('location:index.php');
} else {
?>

<!doctype html>
<html class="no-js" lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Admin Panel - Employee Leave</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/png" href="../assets/images/icon/favicon.ico">
<link rel="stylesheet" href="../assets/css/bootstrap.min.css">
<link rel="stylesheet" href="../assets/css/font-awesome.min.css">
<link rel="stylesheet" href="../assets/css/themify-icons.css">
<link rel="stylesheet" href="../assets/css/metisMenu.css">
<link rel="stylesheet" href="../assets/css/owl.carousel.min.css">
<link rel="stylesheet" href="../assets/css/slicknav.min.css">
<!-- amchart css -->
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css"
type="text/css" media="all" />
<!-- Start datatable css -->
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.css">
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/1.10.18/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/responsive/2.2.3/css/responsive.bootstrap.min.css">
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/responsive/2.2.3/css/responsive.jqueryui.min.css">
<!-- others css -->
<link rel="stylesheet" href="../assets/css/typography.css">
82
<link rel="stylesheet" href="../assets/css/default-css.css">
<link rel="stylesheet" href="../assets/css/styles.css">
<link rel="stylesheet" href="../assets/css/responsive.css">
<!-- modernizr css -->
<script src="../assets/js/vendor/modernizr-2.8.3.min.js"></script>
</head>

<body>
<!-- preloader area start -->
<div id="preloader">
<div class="loader"></div>
</div>
<!-- preloader area end -->

<div class="page-container">
<!-- sidebar menu area start -->
<div class="sidebar-menu">
<div class="sidebar-header">
<div class="logo">
<a href="dashboard.php"><img src="../assets/images/icon/logo.png"
alt="logo"></a>
</div>
</div>
<div class="main-menu">
<div class="menu-inner">
<?php
$page='manage-leave';
include '../includes/admin-sidebar.php';
?>
</div>
</div>
</div>
<!-- sidebar menu area end -->
<!-- main content area start -->
<div class="main-content">
<!-- header area start -->
<div class="header-area">
<div class="row align-items-center">
<!-- nav and search button -->
<div class="col-md-6 col-sm-8 clearfix">
83
<div class="nav-btn pull-left">
<span></span>
<span></span>
<span></span>
</div>

</div>
<!-- profile info & task notification -->
<div class="col-md-6 col-sm-4 clearfix">
<ul class="notification-area pull-right">
<li id="full-view"><i class="ti-fullscreen"></i></li>
<li id="full-view-exit"><i class="ti-zoom-out"></i></li>

<!-- Notification bell -->


<?php include '../includes/admin-notification.php'?>

</ul>
</div>
</div>
</div>
<!-- header area end -->
<!-- page title area start -->
<div class="page-title-area">
<div class="row align-items-center">
<div class="col-sm-6">
<div class="breadcrumbs-area clearfix">
<h4 class="page-title pull-left">Pending Leaves</h4>
<ul class="breadcrumbs pull-left">
<li><a href="dashboard.php">Home</a></li>
<li><span>Pending List</span></li>

</ul>
</div>
</div>

<div class="col-sm-6 clearfix">


<div class="user-profile pull-right">
<img class="avatar user-thumb" src="../assets/images/admin.png"
alt="avatar">
<h4 class="user-name dropdown-toggle" data-toggle="dropdown">ADMIN
<i class="fa fa-angle-down"></i></h4>
84
<div class="dropdown-menu">
<a class="dropdown-item" href="logout.php">Log Out</a>
</div>
</div>
</div>
</div>
</div>
<!-- page title area end -->
<div class="main-content-inner">

<!-- row area start -->


<div class="row">

<!-- trading history area start -->

<div class="col-12 mt-5">


<div class="card">
<div class="card-body">
<!-- <h4 class="header-title"></h4> -->
<div class="single-table">
<div class="table-responsive">
<table class="table table-hover table-striped table-bordered
progress-table text-center">
<thead class="text-uppercase">

<tr>
<td>S.N</td>
<td>Employee ID</td>
<td width="120">Full Name</td>
<td>Leave Type</td>
<td>Applied On</td>
<td>Current Status</td>
<td></td>
</tr>
</thead>

<tbody>
<?php
$status=0;
85
$sql = "SELECT tblleaves.id as
lid,tblemployees.FirstName,tblemployees.LastName,tblemployees.EmpId,tblemployees.id,tbl
leaves.LeaveType,tblleaves.PostingDate,tblleaves.Status from tblleaves join tblemployees on
tblleaves.empid=tblemployees.id where tblleaves.Status=:status order by lid desc";
$query = $dbh -> prepare($sql);
$query->bindParam(':status',$status,PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{
?>

<tr>
<td> <b><?php echo htmlentities($cnt);?></b></td>
<td><?php echo htmlentities($result->EmpId);?></td>
<td><a href="update-employee.php?empid=<?php echo
htmlentities($result->id);?>" target="_blank"><?php echo htmlentities($result->FirstName."
".$result->LastName);?></a></td>
<td><?php echo htmlentities($result->LeaveType);?></td>
<td><?php echo htmlentities($result->PostingDate);?></td>
<td><?php $stats=$result->Status;
if($stats==1){
?>
<span style="color: green">Approved <i class="fa fa-thumbs-
o-up"></i></span>
<?php } if($stats==2) { ?>
<span style="color: red">Declined <i class="fa fa-thumbs-o-
down"></i></span>
<?php } if($stats==0) { ?>
<span style="color: blue">Pending <i class="fa
fa-spinner"></i></span>
<?php } ?>

</td>

86
<td><a href="employeeLeave-details.php?leaveid=<?php echo
htmlentities($result->lid);?>" class="btn btn-secondary btn-sm" > View Details</a></td>
</tr>
<?php $cnt++;} }?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>

<!-- trading history area end -->

</div>
<!-- row area end -->

</div>
<!-- row area start-->
</div>
<?php include '../includes/footer.php' ?>
<!-- footer area end-->
</div>
<!-- main content area end -->

</div>
<!-- jquery latest version -->
<script src="../assets/js/vendor/jquery-2.2.4.min.js"></script>
<!-- bootstrap 4 js -->
<script src="../assets/js/popper.min.js"></script>
<script src="../assets/js/bootstrap.min.js"></script>
<script src="../assets/js/owl.carousel.min.js"></script>
<script src="../assets/js/metisMenu.min.js"></script>
<script src="../assets/js/jquery.slimscroll.min.js"></script>
<script src="../assets/js/jquery.slicknav.min.js"></script>

<!-- start chart js -->


<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.min.js"></script>
<!-- start highcharts js -->
87
<script src="https://code.highcharts.com/highcharts.js"></script>
<!-- start zingchart js -->
<script src="https://cdn.zingchart.com/zingchart.min.js"></script>
<script>
zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";
ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9",
"ee6b7db5b51705a13dc2339db3edaf6d"];
</script>
<!-- all line chart activation -->
<script src="assets/js/line-chart.js"></script>
<!-- all pie chart -->
<script src="assets/js/pie-chart.js"></script>

<!-- Start datatable js -->


<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.js"></script>
<script src="https://cdn.datatables.net/1.10.18/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.10.18/js/dataTables.bootstrap4.min.js"></script>
<script
src="https://cdn.datatables.net/responsive/2.2.3/js/dataTables.responsive.min.js"></script>
<script src="https://cdn.datatables.net/responsive/2.2.3/js/responsive.bootstrap.min.js"></
script>

<!-- others plugins -->


<script src="../assets/js/plugins.js"></script>
<script src="../assets/js/scripts.js"></script>
</body>

</html>

<?php } ?>

<?php
session_start();
error_reporting(0);
include('../includes/dbconn.php');
if(strlen($_SESSION['alogin'])==0){
header('location:index.php');
} else {

?>
88
<!doctype html>
<html class="no-js" lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Admin Panel - Employee Leave</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/png" href="../assets/images/icon/favicon.ico">
<link rel="stylesheet" href="../assets/css/bootstrap.min.css">
<link rel="stylesheet" href="../assets/css/font-awesome.min.css">
<link rel="stylesheet" href="../assets/css/themify-icons.css">
<link rel="stylesheet" href="../assets/css/metisMenu.css">
<link rel="stylesheet" href="../assets/css/owl.carousel.min.css">
<link rel="stylesheet" href="../assets/css/slicknav.min.css">
<!-- amchart css -->
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css"
type="text/css" media="all" />
<!-- Start datatable css -->
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.css">
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/1.10.18/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/responsive/2.2.3/css/responsive.bootstrap.min.css">
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/responsive/2.2.3/css/responsive.jqueryui.min.css">
<!-- others css -->
<link rel="stylesheet" href="../assets/css/typography.css">
<link rel="stylesheet" href="../assets/css/default-css.css">
<link rel="stylesheet" href="../assets/css/styles.css">
<link rel="stylesheet" href="../assets/css/responsive.css">
<!-- modernizr css -->
<script src="../assets/js/vendor/modernizr-2.8.3.min.js"></script>
</head>

<body>
<!-- preloader area start -->
<div id="preloader">
89
<div class="loader"></div>
</div>
<!-- preloader area end -->

<div class="page-container">
<!-- sidebar menu area start -->
<div class="sidebar-menu">
<div class="sidebar-header">
<div class="logo">
<a href="dashboard.php"><img src="../assets/images/icon/logo.png"
alt="logo"></a>
</div>
</div>
<div class="main-menu">
<div class="menu-inner">
<?php
$page='manage-leave';
include '../includes/admin-sidebar.php';
?>
</div>
</div>
</div>
<!-- sidebar menu area end -->
<!-- main content area start -->
<div class="main-content">
<!-- header area start -->
<div class="header-area">
<div class="row align-items-center">
<!-- nav and search button -->
<div class="col-md-6 col-sm-8 clearfix">
<div class="nav-btn pull-left">
<span></span>
<span></span>
<span></span>
</div>

</div>
<!-- profile info & task notification -->
<div class="col-md-6 col-sm-4 clearfix">
<ul class="notification-area pull-right">
<li id="full-view"><i class="ti-fullscreen"></i></li>
90
<li id="full-view-exit"><i class="ti-zoom-out"></i></li>

<!-- Notification bell -->


<?php include '../includes/admin-notification.php'?>

</ul>
</div>
</div>
</div>
<!-- header area end -->
<!-- page title area start -->
<div class="page-title-area">
<div class="row align-items-center">
<div class="col-sm-6">
<div class="breadcrumbs-area clearfix">
<h4 class="page-title pull-left">Declined Leaves</h4>
<ul class="breadcrumbs pull-left">
<li><a href="dashboard.php">Home</a></li>
<li><span>Declined List</span></li>

</ul>
</div>
</div>

<div class="col-sm-6 clearfix">


<div class="user-profile pull-right">
<img class="avatar user-thumb" src="../assets/images/admin.png"
alt="avatar">
<h4 class="user-name dropdown-toggle" data-toggle="dropdown">ADMIN
<i class="fa fa-angle-down"></i></h4>
<div class="dropdown-menu">
<a class="dropdown-item" href="logout.php">Log Out</a>
</div>
</div>
</div>
</div>
</div>
<!-- page title area end -->
<div class="main-content-inner">

91
<!-- row area start -->
<div class="row">

<!-- trading history area start -->

<div class="col-12 mt-5">


<div class="card">

<?php if($error){?><div class="alert alert-danger alert-dismissible


fade show"><strong>Info: </strong><?php echo htmlentities($error); ?>
<button type="button" class="close" data-dismiss="alert" aria-
label="Close">
<span aria-hidden="true">&times;</span>
</button>

</div><?php }
else if($msg){?><div class="alert alert-success alert-dismissible fade
show"><strong>Info: </strong><?php echo htmlentities($msg); ?>
<button type="button" class="close" data-dismiss="alert" aria-
label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div><?php }?>

<div class="card-body">
<!-- <h4 class="header-title"></h4> -->
<div class="single-table">
<div class="table-responsive">
<table class="table table-hover table-striped table-bordered
progress-table text-center">
<thead class="text-uppercase">

<tr>
<td>S.N</td>
<td>Employee ID</td>
<td width="120">Full Name</td>
<td>Leave Type</td>
<td>Applied On</td>
<td>Current Status</td>
<td></td>
92
</tr>
</thead>

<tbody>
<?php
$status=2;
$sql = "SELECT tblleaves.id as
lid,tblemployees.FirstName,tblemployees.LastName,tblemployees.EmpId,tblemployees.id,tbl
leaves.LeaveType,tblleaves.PostingDate,tblleaves.Status from tblleaves join tblemployees on
tblleaves.empid=tblemployees.id where tblleaves.Status=:status order by lid desc";
$query = $dbh -> prepare($sql);
$query->bindParam(':status',$status,PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0){
foreach($results as $result)
{
?>

<tr>
<td> <b><?php echo htmlentities($cnt);?></b></td>
<td><?php echo htmlentities($result->EmpId);?></td>
<td><a href="update-employee.php?empid=<?php echo
htmlentities($result->id);?>" target="_blank"><?php echo htmlentities($result->FirstName."
".$result->LastName);?></a></td>
<td><?php echo htmlentities($result->LeaveType);?></td>
<td><?php echo htmlentities($result->PostingDate);?></td>
<td><?php $stats=$result->Status;

if($stats==1){
?>
<span style="color: green">Approved <i class="fa fa-check-
square-o"></i></span>
<?php } if($stats==2) { ?>
<span style="color: red">Declined <i class="fa
fa-times"></i></span>
<?php } if($stats==0) { ?>
<span style="color: blue">Pending <i class="fa
fa-spinner"></i></span>
93
<?php } ?>

</td>

<td><a href="employeeLeave-details.php?leaveid=<?php echo


htmlentities($result->lid);?>" class="btn btn-secondary btn-sm">View Details</a></td>
</tr>
<?php $cnt++;} }?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>

<!-- trading history area end -->

</div>
<!-- row area end -->

</div>
<!-- row area start-->
</div>
<?php include '../includes/footer.php' ?>
<!-- footer area end-->
</div>
<!-- main content area end -->

</div>
<!-- jquery latest version -->
<script src="../assets/js/vendor/jquery-2.2.4.min.js"></script>
<!-- bootstrap 4 js -->
<script src="../assets/js/popper.min.js"></script>
<script src="../assets/js/bootstrap.min.js"></script>
<script src="../assets/js/owl.carousel.min.js"></script>
<script src="../assets/js/metisMenu.min.js"></script>
94
<script src="../assets/js/jquery.slimscroll.min.js"></script>
<script src="../assets/js/jquery.slicknav.min.js"></script>

<!-- start chart js -->


<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.min.js"></script>
<!-- start highcharts js -->
<script src="https://code.highcharts.com/highcharts.js"></script>
<!-- start zingchart js -->
<script src="https://cdn.zingchart.com/zingchart.min.js"></script>
<script>
zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";
ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9",
"ee6b7db5b51705a13dc2339db3edaf6d"];
</script>
<!-- all line chart activation -->
<script src="assets/js/line-chart.js"></script>
<!-- all pie chart -->
<script src="assets/js/pie-chart.js"></script>

<!-- Start datatable js -->


<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.js"></script>
<script src="https://cdn.datatables.net/1.10.18/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.10.18/js/dataTables.bootstrap4.min.js"></script>
<script
src="https://cdn.datatables.net/responsive/2.2.3/js/dataTables.responsive.min.js"></script>
<script src="https://cdn.datatables.net/responsive/2.2.3/js/responsive.bootstrap.min.js"></
script>

<!-- others plugins -->


<script src="../assets/js/plugins.js"></script>
<script src="../assets/js/scripts.js"></script>
</body>

</html>

<?php } ?>

Manage Users page:-

95
Coding :-

<?php
session_start();
error_reporting(0);
include('../includes/dbconn.php');
if(strlen($_SESSION['alogin'])==0){
header('location:index.php');
} else {
if(isset($_GET['del']))
{
$id=$_GET['del'];
$sql = "DELETE from admin WHERE id=:id";
$query = $dbh->prepare($sql);
$query -> bindParam(':id',$id, PDO::PARAM_STR);
$query -> execute();
$msg="The selected admin account has been deleted";

?>

<!doctype html>
<html class="no-js" lang="en">

<head>
96
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Admin Panel - Employee Leave</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/png" href="../assets/images/icon/favicon.ico">
<link rel="stylesheet" href="../assets/css/bootstrap.min.css">
<link rel="stylesheet" href="../assets/css/font-awesome.min.css">
<link rel="stylesheet" href="../assets/css/themify-icons.css">
<link rel="stylesheet" href="../assets/css/metisMenu.css">
<link rel="stylesheet" href="../assets/css/owl.carousel.min.css">
<link rel="stylesheet" href="../assets/css/slicknav.min.css">
<!-- amchart css -->
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css"
type="text/css" media="all" />
<!-- Start datatable css -->
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.css">
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/1.10.18/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/responsive/2.2.3/css/responsive.bootstrap.min.css">
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/responsive/2.2.3/css/responsive.jqueryui.min.css">
<!-- others css -->
<link rel="stylesheet" href="../assets/css/typography.css">
<link rel="stylesheet" href="../assets/css/default-css.css">
<link rel="stylesheet" href="../assets/css/styles.css">
<link rel="stylesheet" href="../assets/css/responsive.css">
<!-- modernizr css -->
<script src="../assets/js/vendor/modernizr-2.8.3.min.js"></script>
</head>

<body>
<!-- preloader area start -->
<div id="preloader">
<div class="loader"></div>
</div>
<!-- preloader area end -->
<div class="page-container">
<!-- sidebar menu area start -->
97
<div class="sidebar-menu">
<div class="sidebar-header">
<div class="logo">
<a href="dashboard.php"><img src="../assets/images/icon/logo.png"
alt="logo"></a>
</div>
</div>
<div class="main-menu">
<div class="menu-inner">
<?php
$page='manage-admin';
include '../includes/admin-sidebar.php';
?>
</div>
</div>
</div>
<!-- sidebar menu area end -->
<!-- main content area start -->
<div class="main-content">
<!-- header area start -->
<div class="header-area">
<div class="row align-items-center">
<!-- nav and search button -->
<div class="col-md-6 col-sm-8 clearfix">
<div class="nav-btn pull-left">
<span></span>
<span></span>
<span></span>
</div>
</div>
<!-- profile info & task notification -->
<div class="col-md-6 col-sm-4 clearfix">
<ul class="notification-area pull-right">
<li id="full-view"><i class="ti-fullscreen"></i></li>
<li id="full-view-exit"><i class="ti-zoom-out"></i></li>

<!-- Notification bell -->


<?php include '../includes/admin-notification.php'?>

</ul>
98
</div>
</div>
</div>
<!-- header area end -->
<!-- page title area start -->
<div class="page-title-area">
<div class="row align-items-center">
<div class="col-sm-6">
<div class="breadcrumbs-area clearfix">
<h4 class="page-title pull-left">Admin Section</h4>
<ul class="breadcrumbs pull-left">
<li><a href="dashboard.php">Home</a></li>
<li><span>Manage Admin</span></li>
</ul>
</div>
</div>
<div class="col-sm-6 clearfix">
<div class="user-profile pull-right">
<img class="avatar user-thumb" src="../assets/images/admin.png"
alt="avatar">
<h4 class="user-name dropdown-toggle" data-toggle="dropdown">ADMIN
<i class="fa fa-angle-down"></i></h4>
<div class="dropdown-menu">
<a class="dropdown-item" href="logout.php">Log Out</a>
</div>
</div>
</div>
</div>
</div>
<!-- page title area end -->
<div class="main-content-inner">

<!-- row area start -->


<div class="row">
<!-- Dark table start -->
<div class="col-12 mt-5">
<div class="card">

99
<?php if($error){?><div class="alert alert-danger alert-dismissible fade
show"><strong>Info: </strong><?php echo htmlentities($error); ?>
<button type="button" class="close" data-dismiss="alert" aria-
label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div><?php }
else if($msg){?><div class="alert alert-success alert-dismissible fade
show"><strong>Info: </strong><?php echo htmlentities($msg); ?>
<button type="button" class="close" data-dismiss="alert" aria-
label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div><?php }?>

<div class="card-body">
<div class="data-tables datatable-dark">
<center><a href="add-admin.php" class="btn btn-sm btn-info">Add New
Administrator</a></center>
<table id="dataTable3" class="table table-striped table-hover text-
center">
<thead class="text-capitalize">
<tr>
<th>#</th>
<th>Name</th>
<th>Usermame</th>
<th>Email ID</th>
<th>Account Created On</th>
<th></th>

</tr>
</thead>
<tbody>
<?php $sql = "SELECT * from admin";
$query = $dbh -> prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
10
0
{
foreach($results as $result)
{ ?>
<tr>
<td> <?php echo htmlentities($cnt);?></td>
<td><?php echo htmlentities($result->fullname);?></td>
<td><?php echo htmlentities($result->UserName);?></td>
<td><?php echo htmlentities($result->email);?></td>
<td><?php echo htmlentities($result->updationDate);?></td>

<td><a href="manage-admin.php?del=<?php echo


htmlentities($result->id);?>" onclick="return confirm('Do you want to delete');"> <i class="fa
fa-trash" style="color:red"></i></a></td>
</tr>
<?php $cnt++;} }?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- Dark table end -->
</div>
<!-- row area end -->
</div>
<!-- row area start-->
</div>
<?php include '../includes/footer.php' ?>
<!-- footer area end-->
</div>
<!-- main content area end -->

</div>
<!-- jquery latest version -->
<script src="../assets/js/vendor/jquery-2.2.4.min.js"></script>
<!-- bootstrap 4 js -->
<script src="../assets/js/popper.min.js"></script>
<script src="../assets/js/bootstrap.min.js"></script>
10
1
<script src="../assets/js/owl.carousel.min.js"></script>
<script src="../assets/js/metisMenu.min.js"></script>
<script src="../assets/js/jquery.slimscroll.min.js"></script>
<script src="../assets/js/jquery.slicknav.min.js"></script>

<!-- start chart js -->


<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.min.js"></script>
<!-- start highcharts js -->
<script src="https://code.highcharts.com/highcharts.js"></script>
<!-- start zingchart js -->
<script src="https://cdn.zingchart.com/zingchart.min.js"></script>
<script>
zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";
ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9",
"ee6b7db5b51705a13dc2339db3edaf6d"];
</script>
<!-- all line chart activation -->
<script src="assets/js/line-chart.js"></script>
<!-- all pie chart -->
<script src="assets/js/pie-chart.js"></script>

<!-- Start datatable js -->


<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.js"></script>
<script src="https://cdn.datatables.net/1.10.18/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.10.18/js/dataTables.bootstrap4.min.js"></script>
<script
src="https://cdn.datatables.net/responsive/2.2.3/js/dataTables.responsive.min.js"></script>
<script src="https://cdn.datatables.net/responsive/2.2.3/js/responsive.bootstrap.min.js"></
script>
<!-- others plugins -->
<script src="../assets/js/plugins.js"></script>
<script src="../assets/js/scripts.js"></script>
</body>

</html>

<?php } ?>

10
2
OUTPUT FORM

LOGIN page:-

Dashboard page:

10
3
Add Employee page :-

10
4
Department Management Page:-

Leave Types Page:-

10
5
Manages Employees Leave’s

10
6
Leave HISTORY:-

Manage ADMIN Page:-

10
7
CONCLUSION

Our project is only a humble venture to satisfy the needs to manage their
project work. Several user friendly coding have also adopted. This package
shall prove to be a powerful package in satisfying all the requirements of the
school. The objective of software planning is to provide a frame work that
enables the manger to make reasonable estimates made within a limited time
frame at the beginning of the software project and should be updated regularly
as the project progresses.

10
8
LIMITATIONS

Considerable efforts have made the software easy to operate even for the people not related
to the field of computers but it is acknowledged that a layman may find it a bit problematic
at the first instance. The user is provided help at each step for his convenience in working
with the software.

List of limitations which is available in the Employee Management System:

 For a limited number of employees, the installation process is quite short. However, if the
number is huge, the cost of hiring an IT specialist to manage the system is likely.

 The installation process is relatively quick for a small group of personnel. However, if the
number is large, the cost of engaging an IT specialist to manage the system will almost
certainly be high.

 The cost of a leave management system is low; nevertheless, the changeover from paper-
based attendance may require minimal time and resources, which may be adisappointment
for small businesses.

Increased competition among service providers, on the other hand, may result in lower-
cost , higher-quality software .

10
9
BIBLOGRAPHY

The Bibliography contains reference to all the documents that were referred for the creation and
successful completion of the project. It contains the names of the referred software engineering
documents, visual basic technical and standards.

1. http://Sourcecodester.com
2. https://docs.microsoft.com
3. www.buzzapp.tech
4. www.codeproject.com
5. www.youtube.com
6. www.connectionstrings.com

11
0
11
1

You might also like