Está en la página 1de 102

EMPLOYEE LEAVE MANAGEMANT SYSTEM

A PROJECT ON

“EMPLOYEE LEAVE MANAGEMENT”

SUBMITTED BY

SHUBHAM AJAY AGRAHARI

UNDER THE GUIDANCE OF

PROF. SHWETA SATAO

BHARAT COLLEGE OF ARTS AND COMMERCE

BADLAPUR-421503

T.Y.B. Sc (COMPUTER SCIENCE)

UNIVERSITY OF MUMBAI

I
EMPLOYEE LEAVE MANAGEMANT SYSTEM

II
EMPLOYEE LEAVE MANAGEMANT SYSTEM

Sr.No. Sub Index Topic Page No.


1. Introduction
1.1 Overview of Project
1.2 Scope of Project
1.3 Technical Requirements
2. System Study and Analysis
2.1 Problem Definition
2.2 Feasibility Study
2.3 System Analysis
2.4 Current System
2.5 Proposed System
3. System Development
3.1 GANTT Chart
3.2 Event Table
3.3 Data Flow Diagram
3.4 Entity Relationship Diagram
3.5 Class diagram
3.6 Use Case Diagram
3.7 Activity Diagram
3.8 Sequence Diagram
3.9 Collaboration Diagrams
4. Table Structure
5. Source Code
6. Screen Layout
7. System Testing and Conclusion
8. Future Enhancements
9. Reference & Bibliography

III
EMPLOYEE LEAVE MANAGEMANT SYSTEM

ACKNOWLEDGEMENT

I the undersigned, have great pleasure in giving my sincere thanks to those who have
contributed their valuable time in helping me to achieve the success in my project work.
I would like to thank our in-charge Principal Miss. NEETU KAPOOR for her continuous
support.
I would like to express my sincere thanks to Prof.SWETA SATAO for her guidance and
constant encouragement, which made this project a success. As a Project Guide she helped
me with her valuable knowledge and timely guidance, cooperation, encouragement and
time spent for this project work.
I would also like to thanks our teaching staff for providing me sufficient information which
help me to complete my project successfully.
I would also like to thank my family members for their continuous support in completing
this project work. And last but not least, I wish to thank all my friends and well-wishers
who are directly or indirectly linked with the success of my project.

1
EMPLOYEE LEAVE MANAGEMANT SYSTEM

INTRODUCTION TO PROJECT

The Easy Leave is an Intranet based application that can be accessed throughout
the organization or a specified group/Dept. This system can be used to automate
the workflow of leave applications and their approvals. The periodic crediting of
leave is also automated. There are features like email notifications, cancellation of
leave, automatic approval of leave, report generators etc in this Tool.

The project has been planned to be having the view of distributed


architecture, with centralized storage of the database. The application for the
storage of the data has been planned. Using the constructs of MS-SQL Server and
all the user interfaces have been designed using the ASP.Net technologies. The
database connectivity is planned using the “SQL Connection” methodology. The
standards of security and data protective mechanism have been given a big choice
for proper usage. The application takes care of different modules and their
associated reports, which are produced as per the applicable strategies and
standards that are put forwarded by the administrative staff.

1.2. ORGANIZATION PROFILE

2
EMPLOYEE LEAVE MANAGEMANT SYSTEM

SOFTWARE SOLUTIONS

Software Solutions is an IT solution provider for a dynamic environment


where business and technology strategies converge. Their approach focuses on
new ways of business combining IT innovation and adoption while also leveraging
an organization’s current IT assets. Their work with large global corporations and
new products or services and to implement prudent business and technology
strategies in today’s environment.

XXX’S RANGE OF EXPERTISE INCLUDES:

 Software Development Services


 Engineering Services
 Systems Integration
 Customer Relationship Management
 Product Development
 Electronic Commerce
 Consulting
 IT Outsourcing
We apply technology with innovation and responsibility to achieve two broad
objectives:

 Effectively address the business issues our customers face today.


 Generate new opportunities that will help them stay ahead in the future.

THIS APPROACH RESTS ON:

 A strategy where we architect, integrate and manage technology services and


solutions - we call it AIM for success.
 A robust offshore development methodology and reduced demand on customer
resources.
 A focus on the use of reusable frameworks to provide cost and times benefits.
They combine the best people, processes and technology to achieve excellent
results - consistency. We offer customers the advantages of:

3
EMPLOYEE LEAVE MANAGEMANT SYSTEM

SPEED:

They understand the importance of timing, of getting there before the


competition. A rich portfolio of reusable, modular frameworks helps jump-start
projects. Tried and tested methodology ensures that we follow a predictable, low -
risk path to achieve results. Our track record is testimony to complex projects
delivered within and evens before schedule.

EXPERTISE:

Our teams combine cutting edge technology skills with rich domain expertise.
What’s equally important - they share a strong customer orientation that means
they actually start by listening to the customer. They’re focused on coming up with
solutions that serve customer requirements today and anticipate future needs.

A FULL SERVICE PORTFOLIO:

They offer customers the advantage of being able to Architect, integrate and
manage technology services. This means that they can rely on one, fully
accountable source instead of trying to integrate disparate multi vendor solutions.

SERVICES:

is providing it’s services to companies which are in the field of production,


quality control etc With their rich expertise and experience and information
technology they are in best position to provide software solutions to distinct
business requirements.

1.3. PURPOSE OF THE PROJECT

4
EMPLOYEE LEAVE MANAGEMANT SYSTEM

This project is aimed at developing a web based Leave Management Tool, which is
of importance to either an organization or a college. This is an Intranet based
application that can be accessed throughout the organization or a specified
group/Dept. This system can be used to automate the workflow of leave
applications and their approvals. The periodic crediting of leave is also automated.
There are features like email notifications, cancellation of leave, automatic approval
of leave, report generators etc in this Tool.

1.4. PROBLEM IN EXISTING SYSTEM

 Cannot Upload and Download the latest updates.


 No use of Web Services and Remoting.
 Risk of mismanagement and of data when the project is under development.
 Less Security.
 No proper coordination between different Applications and Users.
 Fewer Users - Friendly.

1.5. SOLUTION OF THESE PROBLEMS

The development of the new system contains the following activities, which try to
automate the entire process keeping in view of the database integration approach.

1. User friendliness is provided in the application with various controls.

2. The system makes the overall project management much easier and
flexible.

3. Readily upload the latest updates, allows user to download the alerts by
clicking the URL.

4. There is no risk of data mismanagement at any level while the project


development is under process.

5. It provides high level of security with different level of authentication.

5
EMPLOYEE LEAVE MANAGEMANT SYSTEM

After analyzing the requirements of the task to be performed, the next step is to
analyze the problem and understand its context. The first activity in the phase is
studying the existing system and other is to understand the requirements and
domain of the new system. Both the activities are equally important, but the first
activity serves as a basis of giving the functional specifications and then successful
design of the proposed system. Understanding the properties and requirements of a
new system is more difficult and requires creative thinking and understanding of
existing running system is also difficult, improper understanding of present system
can lead diversion from solution.

2.2. ANALYSIS MODEL


The model that is basically being followed is the WATER FALL MODEL, which
states that the phases are organized in a linear order. First of all the feasibility
study is done. Once that part is over the requirement analysis and project planning
begins. If system exists one and modification and addition of new module is
needed, analysis of present system can be used as basic model.

The design starts after the requirement analysis is complete and the coding
begins after the design is complete. Once the programming is completed, the
testing is done. In this model the sequence of activities performed in a software
development project are: -

 Requirement Analysis
 Project Planning

6
EMPLOYEE LEAVE MANAGEMANT SYSTEM

 System design
 Detail design
 Coding
 Unit testing
 System integration & testing

Here the linear ordering of these activities is critical. End of the phase and
the output of one phase is the input of other phase. The output of each phase is to
be consistent with the overall requirement of the system. Some of the qualities of
spiral model are also incorporated like after the people concerned with the project
review completion of each of the phase the work done.

WATER FALL MODEL was being chosen because all requirements were known
beforehand and the objective of our software development is the
computerization/automation of an already existing manual working system.

Changed
Requirements
Communicated
Requirements

Requirements
Requirements Specification
Engineering

Design
Specification
Design

Executable
Software
Programming Modules Maintenance

Integrated
Process Software
Integration Product

Delivered
Software
Product Product Delivery Product
Input Output

7
EMPLOYEE LEAVE MANAGEMANT SYSTEM

Fig 2.2: Water Fall Model

2.3. STUDY OF THE SYSTEM

GUI’S

In the flexibility of the uses the interface has been developed a graphics concept in
mind, associated through a browses interface. The GUI’S at the top level have been
categorized as

1. Administrative user interface

2. The operational or generic user interface

The administrative user interface concentrates on the consistent information that is


practically, part of the organizational activities and which needs proper
authentication for the data collection. The interfaces help the administrations with
all the transactional states like Data insertion, Data deletion and Date updation
along with the extensive data search capabilities.

The operational or generic user interface helps the users upon the system in
transactions through the existing data and required services. The operational user
interface also helps the ordinary users in managing their own information helps the
ordinary users in managing their own information in a customized manner as per
the assisted flexibilities.

NUMBER OF MODULES

8
EMPLOYEE LEAVE MANAGEMANT SYSTEM

The system after careful analysis has been identified to be presented with the
following modules:

The modules involved are:

 Administration
 Employee
 Search
 Report
 Authentication

Administrator:-

In this module the Administrator has the privileges to add all the Employees and
register them in the organization and check the information of the Employee and
check the status of the leave when they have taken and what type of leave they
have taken and search is done based on the employee and report is generated
based on employee.

Search:-

This module contain complete search like Leave search, Type of Leave, Employee
based on the leave and starting and ending day of leave.

Employee:-

In this module employee has the privileges to use his username and password for
login and he can see the request given by the customer and he can pass the
process to the Business Manager and maintain the record of the customers.

Reports:-

This module contains all the information about the reports generated by the
Employees based on the Performance and by the leave status.

9
EMPLOYEE LEAVE MANAGEMANT SYSTEM

Authentication:-

This module contains all the information about the authenticated user. User without
his username and password can’t enter into the login if he is only the authenticated
user then he can enter to his login.

PROJECT INSTRUCTIONS:

 Based on the given requirements, conceptualize the Solution Architecture. Choose the
domain of your interest otherwise develop the application for ultimatedotnet.com. Depict
the various architectural components, show interactions and connectedness and show
internal and external elements. Design the web services, web methods and database
infrastructure needed both and client and server.

 Provide an environment for upgradation of application for newer versions that are
available in the same domain as web service target.

PROPOSED SYSTEM
To debug the existing system, remove procedures those cause data redundancy,
make navigational sequence proper. To provide information about audits on
different level and also to reflect the current work status depending on
organization/auditor or date. To build strong password mechanism.

NEED FOR COMPUTERIZATION

10
EMPLOYEE LEAVE MANAGEMANT SYSTEM

We all know the importance of computerization. The world is moving ahead


at lightening speed and every one is running short of time. One always wants to get
the information and perform a task he/she/they desire(s) within a short period of
time and too with amount of efficiency and accuracy. The application areas for the
computerization have been selected on the basis of following factors:

 Minimizing the manual records kept at different locations.


 There will be more data integrity.
 Facilitating desired information display, very quickly, by retrieving information
from users.
 Facilitating various statistical information which helps in decision-making?
 To reduce manual efforts in activities that involved repetitive work.
 Updating and deletion of such a huge amount of data will become easier.

INPUT AND OUTPUT


The main inputs, outputs and major functions of the system are as follows
Inputs:
 Admin enters his or her user id and password.
 Employee enter his or her user id and password.
 Employee send request for Leave.
 Employee can check for status for Leave.
 Admin can edit the employee details and so on..
Outputs:
 Admin gets his homepage.
 Employee get his homepage.
 Employee leave request data will be stored in database..
 Displays leave Status.
 Admin view employee details.

11
EMPLOYEE LEAVE MANAGEMANT SYSTEM

HARDWARE CONFIGURATION

The section of hardware configuration is an important task related to the


software development insufficient random access memory may affect adversely on the
speed and efficiency of the entire system. The process should be powerful to handle the
entire operations. The hard disk should have sufficient capacity to store the file and
application.

Processor :Pentium IV and above

Processor speed : 1.4 GHz Onwards

System memory : 128 Mb minimum 256 Mb recommended

Cache size : 512 KB

RAM : 512 MB(Minimum)

Network card : Any card can provide a 100mbps speed

Network connection : UTP or Coaxile cable connection

Printer : Inkjet/Laser Color printer provides at least 1000 Dpi

12
EMPLOYEE LEAVE MANAGEMANT SYSTEM

Hard disk : 80Gb

Monitor : SVGA Color 15”

SOFTWARE CONFIGURATION
A major element in building a system is the section of compatible software since the
software in the market is experiencing in geometric progression. Selected software should
be acceptable by the firm and one user as well as it should be feasible for the system.This
document gives a detailed description of the software requirement specification. The study
of requirement specification is focused specially on the functioning of the system. It allow
the developer or analyst to understand the system, function to be carried out the
performance level to be obtained and corresponding interfaces to be established.

Front end tool : PHP,HTML

Backend : Microsoft SQL Server 2008

Operating system : Windows 2007/2008

13
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

PROCESS MODELS USED WITH JUSTIFICATION


ACCESS CONTROL FOR DATA WHICH REQUIRE USER AUTHENTICATION

The following commands specify access control identifiers and they are typically
used to authorize and authenticate the user (command codes are shown in
parentheses)

USER NAME (USER)

The user identification is that which is required by the server for access to its file
system. This command will normally be the first command transmitted by the
user after the control connections are made (some servers may require this).

PASSWORD (PASS)

This command must be immediately preceded by the user name command, and,
for some sites, completes the user's identification for access control. Since
password information is quite sensitive, it is desirable in general to "mask" it or
suppress type out.

14
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

Feasibility Study

Preliminary investigation examine project feasibility, the likelihood


the system will be useful to the organization. The main objective of the
feasibility study is to test the Technical, Operational and Economical
feasibility for adding new modules and debugging old running system. All
system is feasible if they are unlimited resources and infinite time. There
are aspects in the feasibility study portion of the preliminary
investigation:

 Technical Feasibility
 Operation Feasibility
 Economical Feasibility

3.1. Technical Feasibility

The technical issue usually raised during the feasibility stage of the
investigation includes the following:

 Does the necessary technology exist to do what is suggested?


 Do the proposed equipments have the technical capacity to hold the
data required to use the new system?
 Will the proposed system provide adequate response to inquiries,
regardless of the number or location of users?
 Can the system be upgraded if developed?
 Are there technical guarantees of accuracy, reliability, ease of access
and data security?

Earlier no system existed to cater to the needs of ‘Secure


Infrastructure Implementation System’. The current system developed is
technically feasible. It is a web based user interface. Thus it provides an
easy access to the users. The database’s purpose is to create, establish
and maintain a workflow among various entities in order to facilitate all
concerned users in their various capacities or roles. Permission to the

15
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

users would be granted based on the roles specified. Therefore, it


provides the technical guarantee of accuracy, reliability and security. The
software and hard requirements for the development of this project are
not many and are available as free as open source. The work for the
project is done with the current equipment and existing software
technology. Necessary bandwidth exists for providing a fast feedback to
the users irrespective of the number of users using the system.

3.2. Operational Feasibility

Proposed projects are beneficial only if they can be turned out into
information system. That will meet the organization’s operating
requirements. Operational feasibility aspects of the project are to be
taken as an important part of the project implementation. Some of the
important issues raised are to test the operational feasibility of a project
includes the following: -

 Is there sufficient support for the management from the users?


 Will the system be used and work properly if it is being developed and
implemented?
 Will there be any resistance from the user that will undermine the
possible application benefits?

This system is targeted to be in accordance with the above-


mentioned issues. Beforehand, the management issues and user
requirements have been taken into consideration. So there is no question
of resistance from the users that can undermine the possible application
benefits.

The well-planned design would ensure the optimal utilization of the


computer resources and would help in the improvement of performance
status.

3.3. Economic Feasibility

16
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

A system can be developed technically and that will be used if installed


must still be a good investment for the organization. In the economical
feasibility, the development cost in creating the system is evaluated
against the ultimate benefit derived from the new systems. Financial
benefits must equal or exceed the costs.

The system is economically feasible. It does not require any


addition hardware or software. Since the interface for this system is
developed using the existing resources and technologies. There is nominal
expenditure and economical feasibility for certain.

17
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

E – R DIAGRAMS

18
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

DATA FLOW DIAGRAMS

19
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

20
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

CLASS DIAGRAM

21
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

Login Activity:

User Registration Activity

22
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

SEQUENCE DIAGRAMS

Sequence Diagrams Represent the objects participating the interaction


horizontally and time vertically.

SEQUENCE DIAGRAM 1

Home Page Databas Admin Home Page


e
Admin Use URL

Press login
button

Validate if NO
If No Come Back to Home Page

If Yes Goes to its Home Page

Time

23
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

SEQUENCE DIAGRAM 2

Home Page Databas Employee Home


e Page

Employee

Use URL

Press login
button

Validate if NO

If No Come Back to Home Page

If Yes Goes to its Home Page


Time

24
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

SEQUENCE DIAGRAM FOR ADDING EMPLOYEE

Home Page Login Page Admin Home Page Add Employee Info Database Confirm Page

Admin
Use URL

Press Login Button

Validate If NOT
Come Back to Login Page

If Yes Goes to Admin Home Page

Click on Link for Add Employee Page

Press Button for Saving Data

if Validation NOT OK
Back to Add Employee Info Page

If OK Then go to Confirmation Page

25
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

Use case Model

SYSTEM NAME

Use case 1

Actor Actor

Use case 2

26
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

27
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

Index.php

<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(isset($_POST['signin']))
{
$uname=$_POST['username'];
$password=md5($_POST['password']);
$sql ="SELECT EmailId,Password,Status,id FROM tblemployees WHERE 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="Your account is Inactive. Please contact admin";
} else{
$_SESSION['emplogin']=$_POST['username'];
echo "<script type='text/javascript'> document.location = 'emp-changepassword.php';
</script>";
}}

else{

28
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

echo "<script>alert('Invalid Details');</script>";

?><!DOCTYPE html>
<html lang="en">
<head>

<!-- Title -->


<title>ELMS | Home Page</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-


scale=1.0, user-scalable=no"/>
<meta charset="UTF-8">
<meta name="description" content="Responsive Admin Dashboard Template" />
<meta name="keywords" content="admin,dashboard" />
<meta name="author" content="Steelcoders" />

<!-- Styles -->


<link type="text/css" rel="stylesheet"
href="assets/plugins/materialize/css/materialize.min.css"/>
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="assets/plugins/material-preloader/css/materialPreloader.min.css"
rel="stylesheet">

<!-- Theme Styles -->


<link href="assets/css/alpha.min.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/custom.css" rel="stylesheet" type="text/css"/>

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="http://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="http://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->

</head>
<body>
<div class="loader-bg"></div>
<div class="loader">
<div class="preloader-wrapper big active">
<div class="spinner-layer spinner-blue">
<div class="circle-clipper left">
<div class="circle"></div>
</div><div class="gap-patch">
<div class="circle"></div>
</div><div class="circle-clipper right">
<div class="circle"></div>
</div>

29
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

</div>
<div class="spinner-layer spinner-spinner-teal lighten-1">
<div class="circle-clipper left">
<div class="circle"></div>
</div><div class="gap-patch">
<div class="circle"></div>
</div><div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
<div class="spinner-layer spinner-yellow">
<div class="circle-clipper left">
<div class="circle"></div>
</div><div class="gap-patch">
<div class="circle"></div>
</div><div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
<div class="spinner-layer spinner-green">
<div class="circle-clipper left">
<div class="circle"></div>
</div><div class="gap-patch">
<div class="circle"></div>
</div><div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
</div>
</div>
<div class="mn-content fixed-sidebar">
<header class="mn-header navbar-fixed">
<nav class="cyan darken-1">
<div class="nav-wrapper row">
<section class="material-design-hamburger navigation-toggle">
<a href="#" data-activates="slide-out" class="button-collapse show-on-large
material-design-hamburger__icon">
<span class="material-design-hamburger__layer"></span>
</a>
</section>
<div class="header-title col s3">
<span class="chapter-title">ELMS | Employee Leave Management
System</span>
</div>

</form>

</div>
</nav>
</header>

30
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<aside id="slide-out" class="side-nav white fixed">


<div class="side-nav-wrapper">

<ul class="sidebar-menu collapsible collapsible-accordion" data-


collapsible="accordion" style="">
<li>&nbsp;</li>
<li class="no-padding"><a class="waves-effect waves-grey" href="index.php"><i
class="material-icons">account_box</i>Employe Login</a></li>
<li class="no-padding"><a class="waves-effect waves-grey" href="forgot-
password.php"><i class="material-icons">account_box</i>Emp Password Recovery</a></li>

<li class="no-padding"><a class="waves-effect waves-grey" href="admin/"><i


class="material-icons">account_box</i>Admin Login</a></li>

</ul>
<div class="footer">

</div>
</div>
</aside>
<main class="mn-inner">
<div class="row">
<div class="col s12">
<div class="page-title"><h4>Welcome to Employee Leave Management
System</h4></div>

<div class="col s12 m6 l8 offset-l2 offset-m3">


<div class="card white darken-1">

<div class="card-content ">


<span class="card-title" style="font-size:20px;">Employee Login</span>
<?php if($msg){?><div class="errorWrap"><strong>Error</strong> :
<?php echo htmlentities($msg); ?> </div><?php }?>
<div class="row">
<form class="col s12" name="signin" method="post">
<div class="input-field col s12">
<input id="username" type="text" name="username" class="validate"
autocomplete="off" required >
<label for="email">Email Id</label>
</div>
<div class="input-field col s12">
<input id="password" type="password" class="validate"
name="password" autocomplete="off" required>
<label for="password">Password</label>
</div>
<div class="col s12 right-align m-t-sm">

<input type="submit" name="signin" value="Sign in" class="waves-


effect waves-light btn teal">
</div>
</form>
</div>

31
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

</div>
</div>
</div>
</div>
</div>
</main>

</div>
<div class="left-sidebar-hover"></div>

<!-- Javascripts -->


<script src="assets/plugins/jquery/jquery-2.2.0.min.js"></script>
<script src="assets/plugins/materialize/js/materialize.min.js"></script>
<script src="assets/plugins/material-preloader/js/materialPreloader.min.js"></script>
<script src="assets/plugins/jquery-blockui/jquery.blockui.js"></script>
<script src="assets/js/alpha.min.js"></script>

</body>
</html>

32
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

Profile.php(user)

<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['emplogin'])==0)
{
header('location:index.php');
}
else{
$eid=$_SESSION['emplogin'];
if(isset($_POST['update']))
{

$fname=$_POST['firstName'];
$lname=$_POST['lastName'];
$gender=$_POST['gender'];
$dob=$_POST['dob'];
$department=$_POST['department'];
$address=$_POST['address'];
$city=$_POST['city'];
$country=$_POST['country'];
$mobileno=$_POST['mobileno'];
$sql="update tblemployees set
FirstName=:fname,LastName=:lname,Gender=:gender,Dob=:dob,Department=:department,Add
ress=:address,City=:city,Country=:country,Phonenumber=:mobileno where EmailId=:eid";
$query = $dbh->prepare($sql);
$query->bindParam(':fname',$fname,PDO::PARAM_STR);
$query->bindParam(':lname',$lname,PDO::PARAM_STR);
$query->bindParam(':gender',$gender,PDO::PARAM_STR);

33
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

$query->bindParam(':dob',$dob,PDO::PARAM_STR);
$query->bindParam(':department',$department,PDO::PARAM_STR);
$query->bindParam(':address',$address,PDO::PARAM_STR);
$query->bindParam(':city',$city,PDO::PARAM_STR);
$query->bindParam(':country',$country,PDO::PARAM_STR);
$query->bindParam(':mobileno',$mobileno,PDO::PARAM_STR);
$query->bindParam(':eid',$eid,PDO::PARAM_STR);
$query->execute();
$msg="Employee record updated Successfully";
}

?>

<!DOCTYPE html>
<html lang="en">
<head>

<!-- Title -->


<title>Admin | Update Employee</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-


scale=1.0, user-scalable=no"/>
<meta charset="UTF-8">
<meta name="description" content="Responsive Admin Dashboard Template" />
<meta name="keywords" content="admin,dashboard" />
<meta name="author" content="Steelcoders" />

<!-- Styles -->


<link type="text/css" rel="stylesheet"
href="assets/plugins/materialize/css/materialize.min.css"/>
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="assets/plugins/material-preloader/css/materialPreloader.min.css"
rel="stylesheet">
<link href="assets/css/alpha.min.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/custom.css" rel="stylesheet" type="text/css"/>
<style>
.errorWrap {
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #dd3d36;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
.succWrap{
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #5cb85c;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
</style>

34
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

</head>
<body>
<?php include('includes/header.php');?>

<?php include('includes/sidebar.php');?>
<main class="mn-inner">
<div class="row">
<div class="col s12">
<div class="page-title">Update employee</div>
</div>
<div class="col s12 m12 l12">
<div class="card">
<div class="card-content">
<form id="example-form" method="post" name="updatemp">
<div>
<h3>Update Employee Info</h3>
<?php if($error){?><div
class="errorWrap"><strong>ERROR</strong>:<?php echo htmlentities($error); ?>
</div><?php }
else if($msg){?><div class="succWrap"><strong>SUCCESS</strong> : <?php echo
htmlentities($msg); ?> </div><?php }?>
<section>
<div class="wizard-content">
<div class="row">
<div class="col m6">
<div class="row">
<?php
$eid=$_SESSION['emplogin'];
$sql = "SELECT * from tblemployees where EmailId=:eid";
$query = $dbh -> prepare($sql);
$query -> bindParam(':eid',$eid, PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<div class="input-field col s12">
<label for="empcode">Employee Code</label>
<input name="empcode" id="empcode" value="<?php echo htmlentities($result->EmpId);?>"
type="text" autocomplete="off" readonly required>
<span id="empid-availability" style="font-size:12px;"></span>
</div>

<div class="input-field col m6 s12">


<label for="firstName">First name</label>
<input id="firstName" name="firstName" value="<?php echo htmlentities($result-
>FirstName);?>" type="text" required>

35
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

</div>

<div class="input-field col m6 s12">


<label for="lastName">Last name </label>
<input id="lastName" name="lastName" value="<?php echo htmlentities($result-
>LastName);?>" type="text" autocomplete="off" required>
</div>

<div class="input-field col s12">


<label for="email">Email</label>
<input name="email" type="email" id="email" value="<?php echo htmlentities($result-
>EmailId);?>" readonly autocomplete="off" required>
<span id="emailid-availability" style="font-size:12px;"></span>
</div>

<div class="input-field col s12">


<label for="phone">Mobile number</label>
<input id="phone" name="mobileno" type="tel" value="<?php echo htmlentities($result-
>Phonenumber);?>" maxlength="10" autocomplete="off" required>
</div>

</div>
</div>

<div class="col m6">


<div class="row">
<div class="input-field col m6 s12">
<select name="gender" autocomplete="off">
<option value="<?php echo htmlentities($result->Gender);?>"><?php echo
htmlentities($result->Gender);?></option>
<option value="Male">Male</option>
<option value="Female">Female</option>
<option value="Other">Other</option>
</select>
</div>
<label for="birthdate">Date of Birth</label>
<div class="input-field col m6 s12">

<input id="birthdate" name="dob" class="datepicker" value="<?php echo htmlentities($result-


>Dob);?>" >
</div>

<div class="input-field col m6 s12">


<select name="department" autocomplete="off">
<option value="<?php echo htmlentities($result->Department);?>"><?php echo
htmlentities($result->Department);?></option>
<?php $sql = "SELECT DepartmentName from tbldepartments";
$query = $dbh -> prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)

36
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

{
foreach($results as $resultt)
{ ?>
<option value="<?php echo htmlentities($resultt->DepartmentName);?>"><?php echo
htmlentities($resultt->DepartmentName);?></option>
<?php }} ?>
</select>
</div>

<div class="input-field col m6 s12">


<label for="address">Address</label>
<input id="address" name="address" type="text" value="<?php echo htmlentities($result-
>Address);?>" autocomplete="off" required>
</div>

<div class="input-field col m6 s12">


<label for="city">City/Town</label>
<input id="city" name="city" type="text" value="<?php echo htmlentities($result->City);?>"
autocomplete="off" required>
</div>

<div class="input-field col m6 s12">


<label for="country">Country</label>
<input id="country" name="country" type="text" value="<?php echo htmlentities($result-
>Country);?>" autocomplete="off" required>
</div>

<?php }}?>

<div class="input-field col s12">


<button type="submit" name="update" id="update" class="waves-effect waves-light btn indigo
m-b-xs">UPDATE</button>

</div>

</div>
</div>
</div>
</div>
</section>

</section>
</div>
</form>
</div>
</div>
</div>
</div>
</main>
</div>
<div class="left-sidebar-hover"></div>

37
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<!-- Javascripts -->


<script src="assets/plugins/jquery/jquery-2.2.0.min.js"></script>
<script src="assets/plugins/materialize/js/materialize.min.js"></script>
<script src="assets/plugins/material-preloader/js/materialPreloader.min.js"></script>
<script src="assets/plugins/jquery-blockui/jquery.blockui.js"></script>
<script src="assets/js/alpha.min.js"></script>
<script src="assets/js/pages/form_elements.js"></script>

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

38
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

Change-password.php

<!DOCTYPE html>

<html lang="en">

<head>

<!-- Title -->

<title>Employee | Change Password</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,


user-scalable=no"/>

<meta charset="UTF-8">

<meta name="description" content="Responsive Admin Dashboard Template" />

<meta name="keywords" content="admin,dashboard" />

<meta name="author" content="Steelcoders" />

<!-- Styles -->

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


href="assets/plugins/materialize/css/materialize.min.css"/>

<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

<link href="assets/plugins/material-preloader/css/materialPreloader.min.css"

39
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

rel="stylesheet">

<link href="assets/css/alpha.min.css" rel="stylesheet" type="text/css"/>

<link href="assets/css/custom.css" rel="stylesheet" type="text/css"/>

<style>

.errorWrap {

padding: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #dd3d36;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

.succWrap{

padding: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #5cb85c;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

</style>

</head>

<body>

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

<div class="loader">

<div class="preloader-wrapper big active">

40
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<div class="spinner-layer spinner-blue">

<div class="circle-clipper left">

<div class="circle"></div>

</div><div class="gap-patch">

<div class="circle"></div>

</div><div class="circle-clipper right">

<div class="circle"></div>

</div>

</div>

<div class="spinner-layer spinner-spinner-teal lighten-1">

<div class="circle-clipper left">

<div class="circle"></div>

</div><div class="gap-patch">

<div class="circle"></div>

</div><div class="circle-clipper right">

<div class="circle"></div>

</div>

</div>

<div class="spinner-layer spinner-yellow">

<div class="circle-clipper left">

<div class="circle"></div>

</div><div class="gap-patch">

<div class="circle"></div>

</div><div class="circle-clipper right">

<div class="circle"></div>

</div>

41
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

</div>

<div class="spinner-layer spinner-green">

<div class="circle-clipper left">

<div class="circle"></div>

</div><div class="gap-patch">

<div class="circle"></div>

</div><div class="circle-clipper right">

<div class="circle"></div>

</div>

</div>

</div>

</div>

<div class="mn-content fixed-sidebar">

<header class="mn-header navbar-fixed">

<nav class="cyan darken-1">

<div class="nav-wrapper row">

<section class="material-design-hamburger navigation-toggle">

<a href="#" data-activates="slide-out" class="button-collapse show-on-large material-design-


hamburger__icon">

<span class="material-design-hamburger__layer"></span>

</a>

</section>

<div class="header-title col s3">

<span class="chapter-title">ELMS | Admin</span>

</div>

</div>

42
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

</nav>

</header>

<aside id="slide-out" class="side-nav white fixed">

<div class="side-nav-wrapper">

<div class="sidebar-profile">

<div class="sidebar-profile-image">

<img src="assets/images/profile-image.png" class="circle" alt="">

</div>

<div class="sidebar-profile-info">

<p>Shubham kumar</p>

<span>EMP10806121</span>

</div>

</div>

<ul class="sidebar-menu collapsible collapsible-accordion" data-collapsible="accordion">

<li class="no-padding"><a class="waves-effect waves-grey" href="myprofile.php"><i


class="material-icons">account_box</i>My Profiles</a></li>

<li class="no-padding"><a class="waves-effect waves-grey" href="emp-


changepassword.php"><i class="material-icons">settings_input_svideo</i>Chnage
Password</a></li>

<li class="no-padding">

<a class="collapsible-header waves-effect waves-grey"><i class="material-


icons">apps</i>Leaves<i class="nav-drop-icon material-
icons">keyboard_arrow_right</i></a>

<div class="collapsible-body">

<ul>

<li><a href="apply-leave.php">Apply Leave</a></li>

<li><a href="leavehistory.php">Leave History</a></li>

</ul>

43
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

</div>

</li>

<li class="no-padding">

<a class="waves-effect waves-grey" href="logout.php"><i class="material-


icons">exit_to_app</i>Sign Out</a>

</li>

</ul>

<div class="footer">

<p class="copyright"><a href="#">XYZ Company </a>©</p>

</div>

</div>

</aside> <main class="mn-inner">

<div class="row">

<div class="col s12">

<div class="page-title">Change Pasword</div>

</div>

<div class="col s12 m12 l6">

<div class="card">

<div class="card-content">

<div class="row">

<form class="col s12" name="chngpwd" method="post">

<div class="row">

<div class="input-field col s12">

<input id="password" type="password" class="validate" autocomplete="off" name="password"


required>

<label for="password">Current Password</label>

44
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

</div>

<div class="input-field col s12">

<input id="password" type="password" name="newpassword" class="validate"


autocomplete="off" required>

<label for="password">New Password</label>

</div>

<div class="input-field col s12">

<input id="password" type="password" name="confirmpassword" class="validate"


autocomplete="off" required>

<label for="password">Confirm Password</label>

</div>

<div class="input-field col s12">

<button type="submit" name="change" class="waves-effect waves-light btn indigo m-b-xs"


onclick="return valid();">Change</button>

</div>

</div>

</form>

</div>

</div>

</div>

</div>

</div>

</main>

</div>

<div class="left-sidebar-hover"></div>

45
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<!-- Javascripts -->

<script src="assets/plugins/jquery/jquery-2.2.0.min.js"></script>

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

<script src="assets/plugins/material-preloader/js/materialPreloader.min.js"></script>

<script src="assets/plugins/jquery-blockui/jquery.blockui.js"></script>

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

<script src="assets/js/pages/form_elements.js"></script>

</body>

</html>

<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['emplogin'])==0)
{
header('location:index.php');
}
else{
// Code for change password
if(isset($_POST['change']))
{
$password=md5($_POST['password']);
$newpassword=md5($_POST['newpassword']);
$username=$_SESSION['emplogin'];
$sql ="SELECT Password FROM tblemployees WHERE EmailId=:username and
Password=:password";
$query= $dbh -> prepare($sql);
$query-> bindParam(':username', $username, PDO::PARAM_STR);
$query-> bindParam(':password', $password, PDO::PARAM_STR);
$query-> execute();
$results = $query -> fetchAll(PDO::FETCH_OBJ);
if($query -> rowCount() > 0)
{
$con="update tblemployees set Password=:newpassword where EmailId=:username";
$chngpwd1 = $dbh->prepare($con);
$chngpwd1-> bindParam(':username', $username, PDO::PARAM_STR);
$chngpwd1-> bindParam(':newpassword', $newpassword, PDO::PARAM_STR);
$chngpwd1->execute();
$msg="Your Password succesfully changed";
}
else {
$error="Your current password is wrong";
}
}

46
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

?>

<!DOCTYPE html>
<html lang="en">
<head>

<!-- Title -->


<title>Employee | Change Password</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-


scale=1.0, user-scalable=no"/>
<meta charset="UTF-8">
<meta name="description" content="Responsive Admin Dashboard Template" />
<meta name="keywords" content="admin,dashboard" />
<meta name="author" content="Steelcoders" />

<!-- Styles -->


<link type="text/css" rel="stylesheet"
href="assets/plugins/materialize/css/materialize.min.css"/>
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="assets/plugins/material-preloader/css/materialPreloader.min.css"
rel="stylesheet">
<link href="assets/css/alpha.min.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/custom.css" rel="stylesheet" type="text/css"/>
<style>
.errorWrap {
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #dd3d36;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
.succWrap{
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #5cb85c;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
</style>
</head>
<body>
<?php include('includes/header.php');?>

<?php include('includes/sidebar.php');?>
<main class="mn-inner">
<div class="row">
<div class="col s12">
<div class="page-title">Change Pasword</div>
</div>
<div class="col s12 m12 l6">
<div class="card">

47
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<div class="card-content">

<div class="row">
<form class="col s12" name="chngpwd" method="post">
<?php if($error){?><div
class="errorWrap"><strong>ERROR</strong>:<?php echo htmlentities($error); ?>
</div><?php }
else if($msg){?><div class="succWrap"><strong>SUCCESS</strong>:<?php echo
htmlentities($msg); ?> </div><?php }?>
<div class="row">
<div class="input-field col s12">
<input id="password" type="password" class="validate" autocomplete="off" name="password"
required>
<label for="password">Current Password</label>
</div>

<div class="input-field col s12">


<input id="password" type="password" name="newpassword" class="validate"
autocomplete="off" required>
<label for="password">New Password</label>
</div>

<div class="input-field col s12">


<input id="password" type="password" name="confirmpassword" class="validate"
autocomplete="off" required>
<label for="password">Confirm Password</label>
</div>

<div class="input-field col s12">


<button type="submit" name="change" class="waves-effect waves-light btn indigo m-b-xs"
onclick="return valid();">Change</button>

</div>

</div>

</form>
</div>
</div>
</div>

</div>

</div>
</main>

</div>
<div class="left-sidebar-hover"></div>

48
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<!-- Javascripts -->


<script src="assets/plugins/jquery/jquery-2.2.0.min.js"></script>
<script src="assets/plugins/materialize/js/materialize.min.js"></script>
<script src="assets/plugins/material-preloader/js/materialPreloader.min.js"></script>
<script src="assets/plugins/jquery-blockui/jquery.blockui.js"></script>
<script src="assets/js/alpha.min.js"></script>
<script src="assets/js/pages/form_elements.js"></script>

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

49
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

Apply-leave.php

<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['emplogin'])==0)
{
header('location:index.php');
}
else{
if(isset($_POST['apply']))
{
$empid=$_SESSION['eid'];
$leavetype=$_POST['leavetype'];
$fromdate=$_POST['fromdate'];
$todate=$_POST['todate'];
$description=$_POST['description'];
$status=0;
$isread=0;
if($fromdate > $todate){
$error=" ToDate should be greater than FromDate ";
}
$sql="INSERT INTO tblleaves(LeaveType,ToDate,FromDate,Description,Status,IsRead,empid)
VALUES(:leavetype,:fromdate,:todate,:description,:status,:isread,:empid)";
$query = $dbh->prepare($sql);
$query->bindParam(':leavetype',$leavetype,PDO::PARAM_STR);
$query->bindParam(':fromdate',$fromdate,PDO::PARAM_STR);
$query->bindParam(':todate',$todate,PDO::PARAM_STR);
$query->bindParam(':description',$description,PDO::PARAM_STR);
$query->bindParam(':status',$status,PDO::PARAM_STR);

50
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

$query->bindParam(':isread',$isread,PDO::PARAM_STR);
$query->bindParam(':empid',$empid,PDO::PARAM_STR);
$query->execute();
$lastInsertId = $dbh->lastInsertId();
if($lastInsertId)
{
$msg="Leave applied successfully";
}
else
{
$error="Something went wrong. Please try again";
}

?>

<!DOCTYPE html>
<html lang="en">
<head>

<!-- Title -->


<title>Employe | Apply Leave</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-


scale=1.0, user-scalable=no"/>
<meta charset="UTF-8">
<meta name="description" content="Responsive Admin Dashboard Template" />
<meta name="keywords" content="admin,dashboard" />
<meta name="author" content="Steelcoders" />

<!-- Styles -->


<link type="text/css" rel="stylesheet"
href="assets/plugins/materialize/css/materialize.min.css"/>
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="assets/plugins/material-preloader/css/materialPreloader.min.css"
rel="stylesheet">
<link href="assets/css/alpha.min.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/custom.css" rel="stylesheet" type="text/css"/>
<style>
.errorWrap {
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #dd3d36;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
.succWrap{
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #5cb85c;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

51
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);


}
</style>

</head>
<body>
<?php include('includes/header.php');?>

<?php include('includes/sidebar.php');?>
<main class="mn-inner">
<div class="row">
<div class="col s12">
<div class="page-title">Apply for Leave</div>
</div>
<div class="col s12 m12 l8">
<div class="card">
<div class="card-content">
<form id="example-form" method="post" name="addemp">
<div>
<h3>Apply for Leave</h3>
<section>
<div class="wizard-content">
<div class="row">
<div class="col m12">
<div class="row">
<?php if($error){?><div class="errorWrap"><strong>ERROR </strong>:<?php echo
htmlentities($error); ?> </div><?php }
else if($msg){?><div class="succWrap"><strong>SUCCESS</strong>:<?php echo
htmlentities($msg); ?> </div><?php }?>

<div class="input-field col s12">


<select name="leavetype" autocomplete="off">
<option value="">Select leave type...</option>
<?php $sql = "SELECT LeaveType from tblleavetype";
$query = $dbh -> prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<option value="<?php echo htmlentities($result->LeaveType);?>"><?php echo
htmlentities($result->LeaveType);?></option>
<?php }} ?>
</select>
</div>

<div class="input-field col m6 s12">


<label for="fromdate">From Date</label>

52
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<input placeholder="" id="mask1" name="fromdate" class="masked" type="text" data-


inputmask="'alias': 'date'" required>
</div>
<div class="input-field col m6 s12">
<label for="todate">To Date</label>
<input placeholder="" id="mask1" name="todate" class="masked" type="text" data-
inputmask="'alias': 'date'" required>
</div>
<div class="input-field col m12 s12">
<label for="birthdate">Description</label>

<textarea id="textarea1" name="description" class="materialize-textarea" length="500"


required></textarea>
</div>
</div>
<button type="submit" name="apply" id="apply" class="waves-effect waves-light btn indigo
m-b-xs">Apply</button>

</div>
</div>
</section>

</section>
</div>
</form>
</div>
</div>
</div>
</div>
</main>
</div>
<div class="left-sidebar-hover"></div>

<!-- Javascripts -->


<script src="assets/plugins/jquery/jquery-2.2.0.min.js"></script>
<script src="assets/plugins/materialize/js/materialize.min.js"></script>
<script src="assets/plugins/material-preloader/js/materialPreloader.min.js"></script>
<script src="assets/plugins/jquery-blockui/jquery.blockui.js"></script>
<script src="assets/js/alpha.min.js"></script>
<script src="assets/js/pages/form_elements.js"></script>
<script src="assets/js/pages/form-input-mask.js"></script>
<script src="assets/plugins/jquery-inputmask/jquery.inputmask.bundle.js"></script>
</body>
</html>
<?php } ?>

53
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

Leave-history.php

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

?>
<!DOCTYPE html>
<html lang="en">
<head>

<!-- Title -->


<title>Employee | Leave History</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-


scale=1.0, user-scalable=no"/>
<meta charset="UTF-8">
<meta name="description" content="Responsive Admin Dashboard Template" />

54
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<meta name="keywords" content="admin,dashboard" />


<meta name="author" content="Steelcoders" />

<!-- Styles -->


<link type="text/css" rel="stylesheet"
href="assets/plugins/materialize/css/materialize.min.css"/>
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="assets/plugins/material-preloader/css/materialPreloader.min.css"
rel="stylesheet">
<link href="assets/plugins/datatables/css/jquery.dataTables.min.css" rel="stylesheet">

<!-- Theme Styles -->


<link href="assets/css/alpha.min.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/custom.css" rel="stylesheet" type="text/css"/>
<style>
.errorWrap {
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #dd3d36;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
.succWrap{
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #5cb85c;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
</style>
</head>
<body>
<?php include('includes/header.php');?>

<?php include('includes/sidebar.php');?>
<main class="mn-inner">
<div class="row">
<div class="col s12">
<div class="page-title">Leave History</div>
</div>

<div class="col s12 m12 l12">


<div class="card">
<div class="card-content">
<span class="card-title">Leave History</span>
<?php if($msg){?><div class="succWrap"><strong>SUCCESS</strong> : <?php
echo htmlentities($msg); ?> </div><?php }?>
<table id="example" class="display responsive-table ">
<thead>
<tr>
<th>#</th>

55
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<th width="120">Leave Type</th>


<th>From</th>
<th>To</th>
<th>Description</th>
<th width="120">Posting Date</th>
<th width="200">Admin Remak</th>
<th>Status</th>
</tr>
</thead>

<tbody>
<?php
$eid=$_SESSION['eid'];
$sql = "SELECT
LeaveType,ToDate,FromDate,Description,PostingDate,AdminRemarkDate,AdminRemark,Status
from tblleaves where empid=:eid";
$query = $dbh -> prepare($sql);
$query->bindParam(':eid',$eid,PDO::PARAM_STR);
$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->LeaveType);?></td>
<td><?php echo htmlentities($result->ToDate);?></td>
<td><?php echo htmlentities($result->FromDate);?></td>
<td><?php echo htmlentities($result->Description);?></td>
<td><?php echo htmlentities($result->PostingDate);?></td>
<td><?php if($result->AdminRemark=="")
{
echo htmlentities('waiting for approval');
} else
{

echo htmlentities(($result->AdminRemark)." "."at"." ".$result->AdminRemarkDate);


}

?></td>
<td><?php $stats=$result->Status;
if($stats==1){
?>
<span style="color: green">Approved</span>
<?php } if($stats==2) { ?>
<span style="color: red">Not Approved</span>
<?php } if($stats==0) { ?>
<span style="color: blue">waiting for approval</span>
<?php } ?>

</td>

56
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

</tr>
<?php $cnt++;} }?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</main>

</div>
<div class="left-sidebar-hover"></div>

<!-- Javascripts -->


<script src="assets/plugins/jquery/jquery-2.2.0.min.js"></script>
<script src="assets/plugins/materialize/js/materialize.min.js"></script>
<script src="assets/plugins/material-preloader/js/materialPreloader.min.js"></script>
<script src="assets/plugins/jquery-blockui/jquery.blockui.js"></script>
<script src="assets/plugins/datatables/js/jquery.dataTables.min.js"></script>
<script src="assets/js/alpha.min.js"></script>
<script src="assets/js/pages/table-data.js"></script>

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

57
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

Admin dashboard.php

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

<!DOCTYPE html>
<html lang="en">
<head>

<!-- Title -->


<title>Admin | Dashboard</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-


scale=1.0, user-scalable=no"/>
<meta charset="UTF-8">
<meta name="description" content="Responsive Admin Dashboard Template" />
<meta name="keywords" content="admin,dashboard" />
<meta name="author" content="Steelcoders" />

<!-- Styles -->


<link type="text/css" rel="stylesheet"
href="../assets/plugins/materialize/css/materialize.min.css"/>
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="../assets/plugins/metrojs/MetroJs.min.css" rel="stylesheet">
<link href="../assets/plugins/weather-icons-master/css/weather-icons.min.css"
rel="stylesheet">

58
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<!-- Theme Styles -->


<link href="../assets/css/alpha.min.css" rel="stylesheet" type="text/css"/>
<link href="../assets/css/custom.css" rel="stylesheet" type="text/css"/>

</head>
<body>
<?php include('includes/header.php');?>

<?php include('includes/sidebar.php');?>

<main class="mn-inner">
<div class="middle-content">
<div class="row no-m-t no-m-b">
<div class="col s12 m12 l4">
<div class="card stats-card">
<div class="card-content">

<span class="card-title">Totle Regd Employee</span>


<span class="stats-counter">
<?php
$sql = "SELECT id from tblemployees";
$query = $dbh -> prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$empcount=$query->rowCount();
?>

<span class="counter"><?php echo


htmlentities($empcount);?></span></span>
</div>
<div id="sparkline-bar"></div>
</div>
</div>
<div class="col s12 m12 l4">
<div class="card stats-card">
<div class="card-content">

<span class="card-title">Listed Departments </span>


<?php
$sql = "SELECT id from tbldepartments";
$query = $dbh -> prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$dptcount=$query->rowCount();
?>
<span class="stats-counter"><span class="counter"><?php echo
htmlentities($dptcount);?></span></span>
</div>
<div id="sparkline-line"></div>
</div>
</div>
<div class="col s12 m12 l4">
<div class="card stats-card">

59
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<div class="card-content">
<span class="card-title">Listed leave Type</span>
<?php
$sql = "SELECT id from tblleavetype";
$query = $dbh -> prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$leavtypcount=$query->rowCount();
?>
<span class="stats-counter"><span class="counter"><?php echo
htmlentities($leavtypcount);?></span></span>

</div>
<div class="progress stats-card-progress">
<div class="determinate" style="width: 70%"></div>
</div>
</div>
</div>
</div>

<div class="row no-m-t no-m-b">


<div class="col s12 m12 l12">
<div class="card invoices-card">
<div class="card-content">

<span class="card-title">Latest Leave Applications</span>


<table id="example" class="display responsive-table ">
<thead>
<tr>
<th>#</th>
<th width="200">Employe Name</th>
<th width="120">Leave Type</th>

<th width="180">Posting Date</th>


<th>Status</th>
<th align="center">Action</th>
</tr>
</thead>

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

60
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<tr>
<td> <b><?php echo htmlentities($cnt);?></b></td>
<td><a href="editemployee.php?empid=<?php echo
htmlentities($result->id);?>" target="_blank"><?php echo htmlentities($result->FirstName."
".$result->LastName);?>(<?php echo htmlentities($result->EmpId);?>)</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</span>
<?php } if($stats==2) { ?>
<span style="color: red">Not Approved</span>
<?php } if($stats==0) { ?>
<span style="color: blue">waiting for approval</span>
<?php } ?>

</td>

<td>
<td><a href="leave-details.php?leaveid=<?php echo htmlentities($result->lid);?>"
class="waves-effect waves-light btn blue m-b-xs" > View Details</a></td>
</tr>
<?php $cnt++;} }?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>

</main>

</div>

<!-- Javascripts -->


<script src="../assets/plugins/jquery/jquery-2.2.0.min.js"></script>
<script src="../assets/plugins/materialize/js/materialize.min.js"></script>
<script src="../assets/plugins/material-preloader/js/materialPreloader.min.js"></script>
<script src="../assets/plugins/jquery-blockui/jquery.blockui.js"></script>
<script src="../assets/plugins/waypoints/jquery.waypoints.min.js"></script>
<script src="../assets/plugins/counter-up-master/jquery.counterup.min.js"></script>
<script src="../assets/plugins/jquery-sparkline/jquery.sparkline.min.js"></script>
<script src="../assets/plugins/chart.js/chart.min.js"></script>
<script src="../assets/plugins/flot/jquery.flot.min.js"></script>
<script src="../assets/plugins/flot/jquery.flot.time.min.js"></script>
<script src="../assets/plugins/flot/jquery.flot.symbol.min.js"></script>
<script src="../assets/plugins/flot/jquery.flot.resize.min.js"></script>
<script src="../assets/plugins/flot/jquery.flot.tooltip.min.js"></script>
<script src="../assets/plugins/curvedlines/curvedLines.js"></script>

61
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<script src="../assets/plugins/peity/jquery.peity.min.js"></script>
<script src="../assets/js/alpha.min.js"></script>
<script src="../assets/js/pages/dashboard.js"></script>

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

62
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

Manage-departement.php

<?php
session_start();
error_reporting(0);
include('includes/config.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="Department record deleted";

?>
<!DOCTYPE html>
<html lang="en">
<head>

<!-- Title -->


<title>Admin | Manage Departments</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-


scale=1.0, user-scalable=no"/>
<meta charset="UTF-8">
<meta name="description" content="Responsive Admin Dashboard Template" />
<meta name="keywords" content="admin,dashboard" />
<meta name="author" content="Steelcoders" />

63
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<!-- Styles -->


<link type="text/css" rel="stylesheet"
href="../assets/plugins/materialize/css/materialize.min.css"/>
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="../assets/plugins/material-preloader/css/materialPreloader.min.css"
rel="stylesheet">
<link href="../assets/plugins/datatables/css/jquery.dataTables.min.css" rel="stylesheet">

<!-- Theme Styles -->


<link href="../assets/css/alpha.min.css" rel="stylesheet" type="text/css"/>
<link href="../assets/css/custom.css" rel="stylesheet" type="text/css"/>
<style>
.errorWrap {
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #dd3d36;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
.succWrap{
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #5cb85c;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
</style>
</head>
<body>
<?php include('includes/header.php');?>

<?php include('includes/sidebar.php');?>
<main class="mn-inner">
<div class="row">
<div class="col s12">
<div class="page-title">Manage Departments</div>
</div>
<div class="col s12 m12 l12">
<div class="card">
<div class="card-content">
<span class="card-title">Departments Info</span>
<?php if($msg){?><div class="succWrap"><strong>SUCCESS</strong> : <?php
echo htmlentities($msg); ?> </div><?php }?>
<table id="example" class="display responsive-table ">
<thead>
<tr>
<th>Sr no</th>
<th>Dept Name</th>
<th>Dept Short Name</th>
<th>Dept Code</th>
<th>Creation Date</th>

64
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<th>Action</th>
</tr>
</thead>

<tbody>
<?php $sql = "SELECT * from tbldepartments";
$query = $dbh -> prepare($sql);
$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->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="editdepartment.php?deptid=<?php echo
htmlentities($result->id);?>"><i class="material-icons">mode_edit</i></a><a
href="managedepartments.php?del=<?php echo htmlentities($result->id);?>" onclick="return
confirm('Do you want to delete');"> <i class="material-icons">delete_forever</i></a></td>
</tr>
<?php $cnt++;} }?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</main>

</div>
<div class="left-sidebar-hover"></div>

<!-- Javascripts -->


<script src="../assets/plugins/jquery/jquery-2.2.0.min.js"></script>
<script src="../assets/plugins/materialize/js/materialize.min.js"></script>
<script src="../assets/plugins/material-preloader/js/materialPreloader.min.js"></script>
<script src="../assets/plugins/jquery-blockui/jquery.blockui.js"></script>
<script src="../assets/plugins/datatables/js/jquery.dataTables.min.js"></script>
<script src="../assets/js/alpha.min.js"></script>
<script src="../assets/js/pages/table-data.js"></script>

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

65
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

Manage-leavetype.php

<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['alogin'])==0)
{
header('location:index.php');
}
else{
if(isset($_GET['del']))
{
$id=$_GET['del'];
$sql = "delete from tblleavetype WHERE id=:id";
$query = $dbh->prepare($sql);
$query -> bindParam(':id',$id, PDO::PARAM_STR);
$query -> execute();
$msg="Leave type record deleted";

}
?>
<!DOCTYPE html>
<html lang="en">
<head>

<!-- Title -->


<title>Admin | Manage Leave Type</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-


scale=1.0, user-scalable=no"/>
<meta charset="UTF-8">
<meta name="description" content="Responsive Admin Dashboard Template" />
<meta name="keywords" content="admin,dashboard" />

66
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<meta name="author" content="Steelcoders" />

<!-- Styles -->


<link type="text/css" rel="stylesheet"
href="../assets/plugins/materialize/css/materialize.min.css"/>
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="../assets/plugins/material-preloader/css/materialPreloader.min.css"
rel="stylesheet">
<link href="../assets/plugins/datatables/css/jquery.dataTables.min.css" rel="stylesheet">

<!-- Theme Styles -->


<link href="../assets/css/alpha.min.css" rel="stylesheet" type="text/css"/>
<link href="../assets/css/custom.css" rel="stylesheet" type="text/css"/>
<style>
.errorWrap {
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #dd3d36;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
.succWrap{
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #5cb85c;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
</style>
</head>
<body>
<?php include('includes/header.php');?>

<?php include('includes/sidebar.php');?>
<main class="mn-inner">
<div class="row">
<div class="col s12">
<div class="page-title">Manage Leave Type</div>
</div>

<div class="col s12 m12 l12">


<div class="card">
<div class="card-content">
<span class="card-title">Leave Type Info</span>
<?php if($msg){?><div class="succWrap"><strong>SUCCESS</strong> : <?php
echo htmlentities($msg); ?> </div><?php }?>
<table id="example" class="display responsive-table ">
<thead>
<tr>
<th>Sr no</th>
<th>Leave Type</th>

67
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<th>Description</th>
<th>Creation Date</th>
<th>Action</th>
</tr>
</thead>

<tbody>
<?php $sql = "SELECT * from tblleavetype";
$query = $dbh -> prepare($sql);
$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->LeaveType);?></td>
<td><?php echo htmlentities($result->Description);?></td>
<td><?php echo htmlentities($result->CreationDate);?></td>
<td><a href="editleavetype.php?lid=<?php echo htmlentities($result-
>id);?>"><i class="material-icons">mode_edit</i></a>
<a href="manageleavetype.php?del=<?php echo htmlentities($result-
>id);?>" onclick="return confirm('Do you want to delete');"> <i class="material-
icons">delete_forever</i></a> </td>
</tr>
<?php $cnt++;} }?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</main>

</div>
<div class="left-sidebar-hover"></div>

<!-- Javascripts -->


<script src="../assets/plugins/jquery/jquery-2.2.0.min.js"></script>
<script src="../assets/plugins/materialize/js/materialize.min.js"></script>
<script src="../assets/plugins/material-preloader/js/materialPreloader.min.js"></script>
<script src="../assets/plugins/jquery-blockui/jquery.blockui.js"></script>
<script src="../assets/plugins/datatables/js/jquery.dataTables.min.js"></script>
<script src="../assets/js/alpha.min.js"></script>
<script src="../assets/js/pages/table-data.js"></script>

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

68
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

Manage-employee.php

<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['alogin'])==0)
{
header('location:index.php');
}
else{
// code for Inactive employee
if(isset($_GET['inid']))
{
$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:manageemployee.php');
}

//code for active 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:manageemployee.php');

69
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

}
?>
<!DOCTYPE html>
<html lang="en">
<head>

<!-- Title -->


<title>Admin | Manage Employees</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-


scale=1.0, user-scalable=no"/>
<meta charset="UTF-8">
<meta name="description" content="Responsive Admin Dashboard Template" />
<meta name="keywords" content="admin,dashboard" />
<meta name="author" content="Steelcoders" />

<!-- Styles -->


<link type="text/css" rel="stylesheet"
href="../assets/plugins/materialize/css/materialize.min.css"/>
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="../assets/plugins/material-preloader/css/materialPreloader.min.css"
rel="stylesheet">
<link href="../assets/plugins/datatables/css/jquery.dataTables.min.css" rel="stylesheet">

<!-- Theme Styles -->


<link href="../assets/css/alpha.min.css" rel="stylesheet" type="text/css"/>
<link href="../assets/css/custom.css" rel="stylesheet" type="text/css"/>
<style>
.errorWrap {
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #dd3d36;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
.succWrap{
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #5cb85c;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
</style>
</head>
<body>
<?php include('includes/header.php');?>

<?php include('includes/sidebar.php');?>
<main class="mn-inner">
<div class="row">
<div class="col s12">

70
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<div class="page-title">Manage EmployesWWW</div>


</div>

<div class="col s12 m12 l12">


<div class="card">
<div class="card-content">
<span class="card-title">Employees Info</span>
<?php if($msg){?><div class="succWrap"><strong>SUCCESS</strong> : <?php
echo htmlentities($msg); ?> </div><?php }?>
<table id="example" class="display responsive-table ">
<thead>
<tr>
<th>Sr no</th>
<th>Emp Id</th>
<th>Full Name</th>
<th>Department</th>
<th>Status</th>
<th>Reg Date</th>
<th>Action</th>
</tr>
</thead>

<tbody>
<?php $sql = "SELECT EmpId,FirstName,LastName,Department,Status,RegDate,id from
tblemployees";
$query = $dbh -> prepare($sql);
$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->EmpId);?></td>
<td><?php echo htmlentities($result->FirstName);?>&nbsp;<?php echo
htmlentities($result->LastName);?></td>
<td><?php echo htmlentities($result->Department);?></td>
<td><?php $stats=$result->Status;
if($stats){
?>
<a class="waves-effect waves-green btn-flat m-b-xs">Active</a>
<?php } else { ?>
<a class="waves-effect waves-red btn-flat m-b-xs">Inactive</a>
<?php } ?>

</td>
<td><?php echo htmlentities($result->RegDate);?></td>
<td><a href="editemployee.php?empid=<?php echo htmlentities($result-
>id);?>"><i class="material-icons">mode_edit</i></a>
<?php if($result->Status==1)
{?>

71
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<a href="manageemployee.php?inid=<?php echo htmlentities($result->id);?>" onclick="return


confirm('Are you sure you want to inactive this Employe?');"" > <i class="material-icons"
title="Inactive">clear</i>
<?php } else {?>

<a href="manageemployee.php?id=<?php echo htmlentities($result-


>id);?>" onclick="return confirm('Are you sure you want to active this employee?');""><i
class="material-icons" title="Active">done</i>
<?php } ?> </td>
</tr>
<?php $cnt++;} }?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</main>

</div>
<div class="left-sidebar-hover"></div>

<!-- Javascripts -->


<script src="../assets/plugins/jquery/jquery-2.2.0.min.js"></script>
<script src="../assets/plugins/materialize/js/materialize.min.js"></script>
<script src="../assets/plugins/material-preloader/js/materialPreloader.min.js"></script>
<script src="../assets/plugins/jquery-blockui/jquery.blockui.js"></script>
<script src="../assets/plugins/datatables/js/jquery.dataTables.min.js"></script>
<script src="../assets/js/alpha.min.js"></script>
<script src="../assets/js/pages/table-data.js"></script>

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

72
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

Leave.php

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

?>
<!DOCTYPE html>
<html lang="en">
<head>

<!-- Title -->


<title>Admin | Total Leave </title>

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-


scale=1.0, user-scalable=no"/>
<meta charset="UTF-8">
<meta name="description" content="Responsive Admin Dashboard Template" />
<meta name="keywords" content="admin,dashboard" />
<meta name="author" content="Steelcoders" />

<!-- Styles -->


<link type="text/css" rel="stylesheet"
href="../assets/plugins/materialize/css/materialize.min.css"/>
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="../assets/plugins/material-preloader/css/materialPreloader.min.css"
rel="stylesheet">
<link href="../assets/plugins/datatables/css/jquery.dataTables.min.css" rel="stylesheet">

73
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<link href="../assets/plugins/google-code-prettify/prettify.css" rel="stylesheet"


type="text/css"/>
<!-- Theme Styles -->
<link href="../assets/css/alpha.min.css" rel="stylesheet" type="text/css"/>
<link href="../assets/css/custom.css" rel="stylesheet" type="text/css"/>
<style>
.errorWrap {
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #dd3d36;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
.succWrap{
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #5cb85c;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
</style>
</head>
<body>
<?php include('includes/header.php');?>

<?php include('includes/sidebar.php');?>
<main class="mn-inner">
<div class="row">
<div class="col s12">
<div class="page-title">Leave History</div>
</div>

<div class="col s12 m12 l12">


<div class="card">
<div class="card-content">
<span class="card-title">Leave History</span>
<?php if($msg){?><div class="succWrap"><strong>SUCCESS</strong> : <?php
echo htmlentities($msg); ?> </div><?php }?>
<table id="example" class="display responsive-table ">
<thead>
<tr>
<th>#</th>
<th width="200">Employe Name</th>
<th width="120">Leave Type</th>

<th width="180">Posting Date</th>


<th>Status</th>
<th align="center">Action</th>
</tr>
</thead>

74
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<tbody>
<?php $sql = "SELECT tblleaves.id as
lid,tblemployees.FirstName,tblemployees.LastName,tblemployees.EmpId,tblemployees.id,tbllea
ves.LeaveType,tblleaves.PostingDate,tblleaves.Status from tblleaves join tblemployees on
tblleaves.empid=tblemployees.id order by lid desc";
$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><a href="editemployee.php?empid=<?php echo
htmlentities($result->id);?>" target="_blank"><?php echo htmlentities($result->FirstName."
".$result->LastName);?>(<?php echo htmlentities($result->EmpId);?>)</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</span>
<?php } if($stats==2) { ?>
<span style="color: red">Not Approved</span>
<?php } if($stats==0) { ?>
<span style="color: blue">waiting for approval</span>
<?php } ?>

</td>

<td>
<td><a href="leave-details.php?leaveid=<?php echo htmlentities($result->lid);?>"
class="waves-effect waves-light btn blue m-b-xs" > View Details</a></td>
</tr>
<?php $cnt++;} }?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</main>

</div>
<div class="left-sidebar-hover"></div>

<!-- Javascripts -->


<script src="../assets/plugins/jquery/jquery-2.2.0.min.js"></script>
<script src="../assets/plugins/materialize/js/materialize.min.js"></script>

75
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<script src="../assets/plugins/material-preloader/js/materialPreloader.min.js"></script>
<script src="../assets/plugins/jquery-blockui/jquery.blockui.js"></script>
<script src="../assets/plugins/datatables/js/jquery.dataTables.min.js"></script>
<script src="../assets/js/alpha.min.js"></script>
<script src="../assets/js/pages/table-data.js"></script>
<script src="assets/js/pages/ui-modals.js"></script>
<script src="assets/plugins/google-code-prettify/prettify.js"></script>

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

76
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

Pending-leave.php

<!DOCTYPE html>

<html lang="en">

<head>

<!-- Title -->

<title>Admin | Approved Leave leaves </title>

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,


user-scalable=no"/>

<meta charset="UTF-8">

<meta name="description" content="Responsive Admin Dashboard Template" />

<meta name="keywords" content="admin,dashboard" />

<meta name="author" content="Steelcoders" />

<!-- Styles -->

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


href="../assets/plugins/materialize/css/materialize.min.css"/>

<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

<link href="../assets/plugins/material-preloader/css/materialPreloader.min.css"
rel="stylesheet">

<link href="../assets/plugins/datatables/css/jquery.dataTables.min.css" rel="stylesheet">

77
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<link href="../assets/plugins/google-code-prettify/prettify.css" rel="stylesheet"


type="text/css"/>

<!-- Theme Styles -->

<link href="../assets/css/alpha.min.css" rel="stylesheet" type="text/css"/>

<link href="../assets/css/custom.css" rel="stylesheet" type="text/css"/>

<style>

.errorWrap {

padding: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #dd3d36;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

.succWrap{

padding: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #5cb85c;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

</style>

</head>

<body>

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

78
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<div class="loader">

<div class="preloader-wrapper big active">

<div class="spinner-layer spinner-blue">

<div class="circle-clipper left">

<div class="circle"></div>

</div><div class="gap-patch">

<div class="circle"></div>

</div><div class="circle-clipper right">

<div class="circle"></div>

</div>

</div>

<div class="spinner-layer spinner-spinner-teal lighten-1">

<div class="circle-clipper left">

<div class="circle"></div>

</div><div class="gap-patch">

<div class="circle"></div>

</div><div class="circle-clipper right">

<div class="circle"></div>

</div>

</div>

<div class="spinner-layer spinner-yellow">

<div class="circle-clipper left">

<div class="circle"></div>

</div><div class="gap-patch">

<div class="circle"></div>

</div><div class="circle-clipper right">

79
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<div class="circle"></div>

</div>

</div>

<div class="spinner-layer spinner-green">

<div class="circle-clipper left">

<div class="circle"></div>

</div><div class="gap-patch">

<div class="circle"></div>

</div><div class="circle-clipper right">

<div class="circle"></div>

</div>

</div>

</div>

</div>

<div class="mn-content fixed-sidebar">

<header class="mn-header navbar-fixed">

<nav class="cyan darken-1">

<div class="nav-wrapper row">

<section class="material-design-hamburger navigation-toggle">

<a href="#" data-activates="slide-out" class="button-collapse show-on-large material-design-


hamburger__icon">

<span class="material-design-hamburger__layer"></span>

</a>

</section>

<div class="header-title col s3">

<span class="chapter-title">ELMS | Admin</span>

80
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

</div>

<ul class="right col s9 m3 nav-right-menu">

<li class="hide-on-small-and-down"><a href="javascript:void(0)" data-activates="dropdown1"


class="dropdown-button dropdown-right show-on-large"><i class="material-
icons">notifications_none</i>

<span class="badge">0</span></a></li>

<li class="hide-on-med-and-up"><a href="javascript:void(0)" class="search-toggle"><i


class="material-icons">search</i></a></li>

</ul>

<ul id="dropdown1" class="dropdown-content notifications-dropdown">

<li class="notificatoins-dropdown-container">

<ul>

<li class="notification-drop-title">Notifications</li>

</ul>

</div>

</nav>

</header>

<aside id="slide-out" class="side-nav white fixed">

<div class="side-nav-wrapper">

<div class="sidebar-profile">

<div class="sidebar-profile-image">

<img src="../assets/images/profile-image.png" class="circle" alt="">

</div>

<div class="sidebar-profile-info">

<p>Admin</p>

</div>

81
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

</div>

<ul class="sidebar-menu collapsible collapsible-accordion" data-collapsible="accordion">

<li class="no-padding"><a class="waves-effect waves-grey" href="dashboard.php"><i


class="material-icons">settings_input_svideo</i>Dashboard</a></li>

<li class="no-padding">

<a class="collapsible-header waves-effect waves-grey"><i class="material-


icons">apps</i>Department<i class="nav-drop-icon material-
icons">keyboard_arrow_right</i></a>

<div class="collapsible-body">

<ul>

<li><a href="adddepartment.php">Add Department</a></li>

<li><a href="managedepartments.php">Manage Department</a></li>

</ul>

</div>

</li>

<li class="no-padding">

<a class="collapsible-header waves-effect waves-grey"><i class="material-


icons">code</i>Leave Type<i class="nav-drop-icon material-
icons">keyboard_arrow_right</i></a>

<div class="collapsible-body">

<ul>

<li><a href="addleavetype.php">Add Leave Type</a></li>

<li><a href="manageleavetype.php">Manage Leave Type</a></li>

</ul>

</div>

</li>

<li class="no-padding">

<a class="collapsible-header waves-effect waves-grey"><i class="material-


icons">account_box</i>Employees<i class="nav-drop-icon material-

82
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

icons">keyboard_arrow_right</i></a>

<div class="collapsible-body">

<ul>

<li><a href="addemployee.php">Add Employee</a></li>

<li><a href="manageemployee.php">Manage Employee</a></li>

</ul>

</div>

</li>

<li class="no-padding">

<a class="collapsible-header waves-effect waves-grey"><i class="material-


icons">desktop_windows</i>Leave Management<i class="nav-drop-icon material-
icons">keyboard_arrow_right</i></a>

<div class="collapsible-body">

<ul>

<li><a href="leaves.php">All Leaves </a></li>

<li><a href="pending-leavehistory.php">Pending Leaves </a></li>

<li><a href="approvedleave-history.php">Approved Leaves</a></li>

<li><a href="notapproved-leaves.php">Not Approved Leaves</a></li>

</ul>

</div>

</li>

<li class="no-padding">

<a class="waves-effect waves-grey" href="logout.php"><i class="material-


icons">exit_to_app</i>Sign Out</a>

</li>

</ul>

83
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<div class="footer">

<p class="copyright"><a href="#/">XYZ Company </a>©</p>

</div>

</div>

</aside> <main class="mn-inner">

<div class="row">

<div class="col s12">

<div class="page-title">Pending Leave History</div>

</div>

<div class="col s12 m12 l12">

<div class="card">

<div class="card-content">

<span class="card-title">Leave History</span>

<table id="example" class="display responsive-table ">

<thead>

<tr>

<th>#</th>

<th width="200">Employe Name</th>

<th width="120">Leave Type</th>

<th width="180">Posting Date</th>

<th>Status</th>

<th align="center">Action</th>

</tr>

</thead>

<tbody>

84
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<tr>

<td> <b>1</b></td>

<td><a href="editemployee.php?empid=2" target="_blank">shubham


agrahari(DEMP2132)</a></td>

<td>Medical Leave test</td>

<td>2017-12-02 23:56:01</td>

<td> <span style="color: blue">waiting for approval</span>

</td>

<td>

<td><a href="leave-details.php?leaveid=9" class="waves-effect waves-light btn blue m-b-xs" >


View Details</a></td>

</tr>

</tbody>

</table>

</div>

</div>

</div>

</div>

</main>

</div>

<div class="left-sidebar-hover"></div>

<!-- Javascripts -->

<script src="../assets/plugins/jquery/jquery-2.2.0.min.js"></script>

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

<script src="../assets/plugins/material-preloader/js/materialPreloader.min.js"></script>

<script src="../assets/plugins/jquery-blockui/jquery.blockui.js"></script>

85
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<script src="../assets/plugins/datatables/js/jquery.dataTables.min.js"></script>

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

<script src="../assets/js/pages/table-data.js"></script>

<script src="assets/js/pages/ui-modals.js"></script>

<script src="assets/plugins/google-code-prettify/prettify.js"></script>

</body>

</html>

86
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

..

<!DOCTYPE html>

<html lang="en">

<head>

<!-- Title -->

<title>Admin | Approved Leaves </title>

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,


user-scalable=no"/>

<meta charset="UTF-8">

<meta name="description" content="Responsive Admin Dashboard Template" />

<meta name="keywords" content="admin,dashboard" />

<meta name="author" content="Steelcoders" />

<!-- Styles -->

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


href="../assets/plugins/materialize/css/materialize.min.css"/>

<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

<link href="../assets/plugins/material-preloader/css/materialPreloader.min.css"
rel="stylesheet">

<link href="../assets/plugins/datatables/css/jquery.dataTables.min.css" rel="stylesheet">

<link href="../assets/plugins/google-code-prettify/prettify.css" rel="stylesheet"


type="text/css"/>

<!-- Theme Styles -->

<link href="../assets/css/alpha.min.css" rel="stylesheet" type="text/css"/>

<link href="../assets/css/custom.css" rel="stylesheet" type="text/css"/>

<style>

.errorWrap {

padding: 10px;

87
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #dd3d36;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

.succWrap{

padding: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #5cb85c;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

</style>

</head>

<body>

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

<div class="loader">

<div class="preloader-wrapper big active">

<div class="spinner-layer spinner-blue">

<div class="circle-clipper left">

<div class="circle"></div>

</div><div class="gap-patch">

<div class="circle"></div>

</div><div class="circle-clipper right">

88
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<div class="circle"></div>

</div>

</div>

<div class="spinner-layer spinner-spinner-teal lighten-1">

<div class="circle-clipper left">

<div class="circle"></div>

</div><div class="gap-patch">

<div class="circle"></div>

</div><div class="circle-clipper right">

<div class="circle"></div>

</div>

</div>

<div class="spinner-layer spinner-yellow">

<div class="circle-clipper left">

<div class="circle"></div>

</div><div class="gap-patch">

<div class="circle"></div>

</div><div class="circle-clipper right">

<div class="circle"></div>

</div>

</div>

<div class="spinner-layer spinner-green">

<div class="circle-clipper left">

<div class="circle"></div>

</div><div class="gap-patch">

<div class="circle"></div>

89
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

</div><div class="circle-clipper right">

<div class="circle"></div>

</div>

</div>

</div>

</div>

<div class="mn-content fixed-sidebar">

<header class="mn-header navbar-fixed">

<nav class="cyan darken-1">

<div class="nav-wrapper row">

<section class="material-design-hamburger navigation-toggle">

<a href="#" data-activates="slide-out" class="button-collapse show-on-large material-design-


hamburger__icon">

<span class="material-design-hamburger__layer"></span>

</a>

</section>

<div class="header-title col s3">

<span class="chapter-title">ELMS | Admin</span>

</div>

<ul class="right col s9 m3 nav-right-menu">

<li class="hide-on-small-and-down"><a href="javascript:void(0)" data-activates="dropdown1"


class="dropdown-button dropdown-right show-on-large"><i class="material-
icons">notifications_none</i>

<span class="badge">0</span></a></li>

<li class="hide-on-med-and-up"><a href="javascript:void(0)" class="search-toggle"><i


class="material-icons">search</i></a></li>

</ul>

90
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<ul id="dropdown1" class="dropdown-content notifications-dropdown">

<li class="notificatoins-dropdown-container">

<ul>

<li class="notification-drop-title">Notifications</li>

</ul>

</div>

</nav>

</header>

<aside id="slide-out" class="side-nav white fixed">

<div class="side-nav-wrapper">

<div class="sidebar-profile">

<div class="sidebar-profile-image">

<img src="../assets/images/profile-image.png" class="circle" alt="">

</div>

<div class="sidebar-profile-info">

<p>Admin</p>

</div>

</div>

<ul class="sidebar-menu collapsible collapsible-accordion" data-collapsible="accordion">

<li class="no-padding"><a class="waves-effect waves-grey" href="dashboard.php"><i


class="material-icons">settings_input_svideo</i>Dashboard</a></li>

<li class="no-padding">

<a class="collapsible-header waves-effect waves-grey"><i class="material-


icons">apps</i>Department<i class="nav-drop-icon material-
icons">keyboard_arrow_right</i></a>

<div class="collapsible-body">

<ul>

91
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<li><a href="adddepartment.php">Add Department</a></li>

<li><a href="managedepartments.php">Manage Department</a></li>

</ul>

</div>

</li>

<li class="no-padding">

<a class="collapsible-header waves-effect waves-grey"><i class="material-


icons">code</i>Leave Type<i class="nav-drop-icon material-
icons">keyboard_arrow_right</i></a>

<div class="collapsible-body">

<ul>

<li><a href="addleavetype.php">Add Leave Type</a></li>

<li><a href="manageleavetype.php">Manage Leave Type</a></li>

</ul>

</div>

</li>

<li class="no-padding">

<a class="collapsible-header waves-effect waves-grey"><i class="material-


icons">account_box</i>Employees<i class="nav-drop-icon material-
icons">keyboard_arrow_right</i></a>

<div class="collapsible-body">

<ul>

<li><a href="addemployee.php">Add Employee</a></li>

<li><a href="manageemployee.php">Manage Employee</a></li>

</ul>

</div>

</li>

<li class="no-padding">

92
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<a class="collapsible-header waves-effect waves-grey"><i class="material-


icons">desktop_windows</i>Leave Management<i class="nav-drop-icon material-
icons">keyboard_arrow_right</i></a>

<div class="collapsible-body">

<ul>

<li><a href="leaves.php">All Leaves </a></li>

<li><a href="pending-leavehistory.php">Pending Leaves </a></li>

<li><a href="approvedleave-history.php">Approved Leaves</a></li>

<li><a href="notapproved-leaves.php">Not Approved Leaves</a></li>

</ul>

</div>

</li>

<li class="no-padding">

<a class="waves-effect waves-grey" href="logout.php"><i class="material-


icons">exit_to_app</i>Sign Out</a>

</li>

</ul>

<div class="footer">

<p class="copyright"><a href="#/">XYZ Company </a>©</p>

</div>

</div>

</aside> <main class="mn-inner">

<div class="row">

<div class="col s12">

<div class="page-title">Approved Leave History</div>

</div>

93
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<div class="col s12 m12 l12">

<div class="card">

<div class="card-content">

<span class="card-title">Approved Leave History</span>

<table id="example" class="display responsive-table ">

<thead>

<tr>

<th>#</th>

<th width="200">Employe Name</th>

<th width="120">Leave Type</th>

<th width="180">Posting Date</th>

<th>Status</th>

<th align="center">Action</th>

</tr>

</thead>

<tbody>

<tr>

<td> <b>1</b></td>

<td><a href="editemployee.php?empid=1" target="_blank">shubham


agrahari(EMP10806121)</a></td>

<td>Restricted Holiday(RH)</td>

<td>2017-12-03 13:59:07</td>

<td> <span style="color: green">Approved</span>

</td>

<td>

<td><a href="leave-details.php?leaveid=10" class="waves-effect waves-light btn blue m-b-xs" >

94
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

View Details</a></td>

</tr>

<tr>

<td> <b>2</b></td>

<td><a href="editemployee.php?empid=1" target="_blank">shubham


agrahari(EMP10806121)</a></td>

<td>Medical Leave test</td>

<td>2017-11-20 16:44:14</td>

<td> <span style="color: green">Approved</span>

</td>

<td>

<td><a href="leave-details.php?leaveid=8" class="waves-effect waves-light btn blue m-b-xs" >


View Details</a></td>

</tr>

</tbody>

</table>

</div>

</div>

</div>

</div>

</main>

</div>

<div class="left-sidebar-hover"></div>

<!-- Javascripts -->

<script src="../assets/plugins/jquery/jquery-2.2.0.min.js"></script>

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

95
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

<script src="../assets/plugins/material-preloader/js/materialPreloader.min.js"></script>

<script src="../assets/plugins/jquery-blockui/jquery.blockui.js"></script>

<script src="../assets/plugins/datatables/js/jquery.dataTables.min.js"></script>

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

<script src="../assets/js/pages/table-data.js"></script>

<script src="assets/js/pages/ui-modals.js"></script>

<script src="assets/plugins/google-code-prettify/prettify.js"></script>

</body>

</html>

CONCLUSION

It has been a great pleasure for me to work on this exciting and


challenging project. This project proved good for me as it provided
practical knowledge of not only programming in ASP.NET and VB.NET web
based application and no some extent Windows Application and SQL
Server, but also about all handling procedure related with “PROJECT
NAME”. It also provides knowledge about the latest technology used in
developing web enabled application and client server technology that will
be great demand in future. This will provide better opportunities and
guidance in future in developing projects independently.

96
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

BENEFITS:

The project is identified by the merits of the system offered to the user.
The merits of this project are as follows: -

 It’s a web-enabled project.


 This project offers user to enter the data through simple and
interactive forms. This is very helpful for the client to enter the desired
information through so much simplicity.
 The user is mainly more concerned about the validity of the data,
whatever he is entering. There are checks on every stages of any new
creation, data entry or updation so that the user cannot enter the
invalid data, which can create problems at later date.
 Sometimes the user finds in the later stages of using project that he
needs to update some of the information that he entered earlier. There
are options for him by which he can update the records. Moreover
there is restriction for his that he cannot change the primary data field.
This keeps the validity of the data to longer extent.
 User is provided the option of monitoring the records he entered
earlier. He can see the desired records with the variety of options
provided by him.
 From every part of the project the user is provided with the links
through framing so that he can go from one option of the project to
other as per the requirement. This is bound to be simple and very
friendly as per the user is concerned. That is, we can sat that the
project is user friendly which is one of the primary concerns of any
good project.
 Data storage and retrieval will become faster and easier to maintain
because data is stored in a systematic manner and in a single
database.
 Decision making process would be greatly enhanced because of faster
processing of information since data collection from information
available on computer takes much less time then manual system.

97
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

 Allocating of sample results becomes much faster because at a time


the user can see the records of last years.
 Easier and faster data transfer through latest technology associated
with the computer and communication.
 Through these features it will increase the efficiency, accuracy and
transparency,

LIMITATIONS:

 The size of the database increases day-by-day, increasing the load on


the database back up and data maintenance activity.
 Training for simple computer operations is necessary for the users
working on the system.

FUTURE IMPROVEMENT

 This System being web-based and an undertaking of Cyber Security


Division, needs to be thoroughly tested to find out any security gaps.

 A console for the data centre may be made available to allow the
personnel to monitor on the sites which were cleared for hosting during a
particular period.

 Moreover, it is just a beginning; further the system may be utilized in


various other types of auditing operation viz. Network auditing or similar
process/workflow based applications...

98
EMPLOYEE LEAVE MANAGEMANT
SYSTEM

BIBLIOGRAPHY

 FOR DEPLOYMENT AND PACKING ON SERVER


www.developer.com

www.15seconds.com

 FOR SQL
www.msdn.microsoft.com

99

También podría gustarte