Professional Documents
Culture Documents
7.report Updated
7.report Updated
CHAPTER 1: Introduction
1.1 I NTRODUCTION TO PROJECT
There are a lot of traditional tools that help keep track of the different vacation
requests and leave applications in any management. One of the disadvantages with
using old tools are that they are ineffective and just eat away at the productivity and
efficiency of work that is done. They also demand too much of manual intervention
and are hence, not entirely reliable.
A leave management system optimizes and automates the entire process thus
increasing productivity, accuracy and reliability. It is also robust enough to
seamlessly handle all the stages involved in a leave management process
-application, approval/rejection, filing leaves, managing leave balance, and analysis.
1.3 OBJECTIVE
This project aims to do the following:
• To automate the existing leave management in educational institutes.
• To decrease the paperwork and enable the process with efficient, Reliable
record maintenance by using centralized database, thereby reducing the chance of
data loss.
• To provide for an automated leave Management system that intelligently
adapts to manage the leaves and allows the faculty and students to apply for the
leaves with replacement of heavy workload.
1
LEAVE MANAGEMENT SYSTEM
2
LEAVE MANAGEMENT SYSTEM
CHAPTER 3: IMPLEMENTATION
3.1 FLOWCHART
Login:
3
LEAVE MANAGEMENT SYSTEM
Student Module:
4
LEAVE MANAGEMENT SYSTEM
Faculty Module:
5
LEAVE MANAGEMENT SYSTEM
Admin Module:
6
LEAVE MANAGEMENT SYSTEM
Faculty Module: Faculty logs into his interface and can check for:
a. Check new application request
b. Check his leave details
c. Apply for leave application
d. Accepts/rejects leave application of the students
HOD module: Hod logs into his interface and check for:
a. Check new Faculty request
b. Accepts/request leave application of the faculty
7
LEAVE MANAGEMENT SYSTEM
3.3 Program/Pseudocode
indexStud.php:
<?php
session_start();
if (isset($_SESSION['uname'])) {
$uid = $_SESSION['uid'];
include("connect.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" href="assets/images/favicon.ic
o" type="image/x-icon">
<link rel="stylesheet" href="assets/fonts/fonta
wesome/css/fontawesome-all.min.css">
<link rel="stylesheet" href="assets/plugins/ani
mation/css/animate.min.css">
<link rel="stylesheet" href="assets/css/style.cs
s">
<link rel="stylesheet" href="assets/css/user-
style.css">
</head>
<body>
<header class="navbar pcoded-header navbar-expand-lg
navbar-light" style="margin-
left:0px;width: calc(100% - 0px)">
8
LEAVE MANAGEMENT SYSTEM
<div class="inner-content">
<?php
<label for="fromDate">From-Date</label>
<input type="date" class="form-control"
name="fromDate" id="fromDate" required>
</div>
<div class="form-group">
<label for="toDate">To-Date</label>
<input type="date" class="form-control"
name="toDate" id="toDate" required>
$(document).ready(function() {
11
LEAVE MANAGEMENT SYSTEM
$
('.count').html(data.unseen_notification);
}
}
});
}
$('#res1').html(data.output);
</script>
</body>
</html>
<?php
} else {
echo '<script>window.location.href = "./login.html&
quot;;</script>';
}
?>
req_dis.php
<?php
session_start();
if (isset($_SESSION['uname']))
{
$uid = $_SESSION['uid'];
$uname = $_SESSION['uname'];
include('connect.php');
$output = '';
$output .= '<tbody>';
$output1 = '';
$output1 .= '<tbody>';
if ($_SESSION['desig'] != 'hod') {
13
LEAVE MANAGEMENT SYSTEM
<td>
<h6 class="mb-1">' .
$row["subjectOfLeave"] . '</h6>
<p class="m-0" style="max-
width:500px;margin: auto;">' . $row["reason"
] . '</p>
</td>
14
LEAVE MANAGEMENT SYSTEM
<td>
<h6 class="text-muted"><i
class="fas fa-circle text-c-green f-10 m-r-
15"></i>' . $row["fromDate"] . '&
lt;/h6><h6 class="text-muted"><i
class="fas fa-circle text-c-red f-10 m-r-
15"></i>' . $row["toDate"] . '</
h6>
</td>
<td><form id=' . $row["application_id"
;] . '>';
if ($row['leaveStatus'] == 1) {
$output .= '<button class="label theme-bg
text-white f-
15 " id=' . $acpid . ' value=' . $acpid . ' nam
e="accpt" disabled disabled >Accepted</button><
;/a>
</li></form>'; }
if ($row['leaveStatus'] == -1) {
$output .= '<button class="label theme-bg2
text-white f-
15 " id=' . $rejid . ' value=' . $rejid . ' name
="reject" disabled >Rejected</button></a>
</li></form>';
} if ($row['leaveStatus'] == 0) {
$output .= '<button class="label theme-bg
text-white f-15 leave-
button" id=' . $acpid . ' value=' . $acpid . ' n
ame="accpt" >Accept</button></a>';
15
LEAVE MANAGEMENT SYSTEM
</td>
</tr></tbody>';
}
$query = "SELECT * FROM leaveapplication where user_id=
'".$uid."' ORDER BY application_id DE
SC";
$result = mysqli_query($connect, $query);
if (mysqli_num_rows($result) > 0) {
while ($row = mysqli_fetch_array($result)) {
$output1 .= '<tr class="unread">
<td><img class="rounded-circle"
style="width:40px;"
16
LEAVE MANAGEMENT SYSTEM
src="assets/images/user/avatar-1.jpg"
alt="activity-user"></td>
<td> <h6 class="mb-1">' .
$row["subjectOfLeave"] . '</h6>
<p class="m-0" style="max-
width:500px;margin: auto;">' . $row["reason"
] . '</p>
</td> <td>
<h6 class="text-muted"><i
class="fas fa-circle text-c-green f-10 m-r-
15"></i>' . $row["fromDate"] . '&
lt;/h6><h6 class="text-muted"><i
class="fas fa-circle text-c-red f-10 m-r-
15"></i>' . $row["toDate"] . '</
h6>
</td>
<td> <button type="button" class="label l
abel-info text-white f-15" data-toggle="modal" data-
target="#myModal" id='.$row['application_id&#
39;].' onClick="detail_show(this.id)">INFO</but
ton></td>
<td>'; if ($row['leaveStatus'] == 1)
{
$output1 .= '<button class="label theme-bg
text-white f-
15" disabled >Accepted</button></a>
</li></form>';
}
17
LEAVE MANAGEMENT SYSTEM
if ($row['leaveStatus'] == -1) {
$output1 .= '<button class="label theme-bg2
text-white f-
15" disabled >Rejected</button></a>
</li></form>';
}
if ($_SESSION['desig'] == 'hod') {
$query = "SELECT * FROM leaveapplication where hodStat
us=1 ORDER BY application_id DESC";
$result = mysqli_query($connect, $query);
if (mysqli_num_rows($result) > 0) {
while ($row = mysqli_fetch_array($result)) {
$query1 = "SELECT name from `user`,`leaveapplication
` WHERE user.user_id = '".$row['user
_id']."'"; $result1 = mysqli_query($con
nect, $query1);
$s = mysqli_fetch_array($result1);
$name = $s['name'];
$rejid = 'rej' . $row["application_id"];
$acpid = "acp" . $row["application_id"
];
$output .= '<tr class="unread">
<td><img class="rounded-circle"
style="width:40px;"
src="assets/images/user/avatar-1.jpg"
alt="activity-
user"><br>'.$name.'</td>
<td>
18
LEAVE MANAGEMENT SYSTEM
<h6 class="mb-1">' .
$row["subjectOfLeave"] . '</h6>
<p class="m-0" style="max-
width:500px;margin: auto;">' . $row["reason"
] . '</p>
</td> <td> <h6 class="text-
muted"><i
class="fas fa-circle text-c-green f-10 m-r-
15"></i>' . $row["fromDate"] . '&
lt;/h6><h6 class="text-muted"><i
class="fas fa-circle text-c-red f-10 m-r-
15"></i>' . $row["toDate"] . '</
h6>
</td> <td> <button type="button" cla
ss="label label-info text-white f-15" data-
toggle="modal" data-
target="#myModal" id='.$row['application_id&#
39;].' onClick="detail_show(this.id)">INFO</but
ton></td>
<td><form id=' . $row["application_id"
;] . '>';
if ($row['leaveStatus'] == 1) {
$output .= '<button class="label theme-bg
text-white f-
15 " id=' . $acpid . ' value=' . $acpid . ' nam
e="accpt" disabled disabled >Accepted</button><
;/a>
</li></form>';
19
LEAVE MANAGEMENT SYSTEM
}
if ($row['leaveStatus'] == -1) {
$output .= '<button class="label theme-bg2
text-white f-
15 " id=' . $rejid . ' value=' . $rejid . ' name
="reject" disabled >Rejected</button></a>
</li></form>';
}
if ($row['leaveStatus'] == 0) {
$output .= '<button class="label theme-bg
text-white f-15 leave-
button" id=' . $acpid . ' value=' . $acpid . ' n
ame="accpt" >Accept</button></a>';
</td>
</tr></tbody>';
}
}
$data = array(
'output' => $output,
'output1' => $output1, );
echo json_encode($data);
}
?>
21
LEAVE MANAGEMENT SYSTEM
22
LEAVE MANAGEMENT SYSTEM
23
LEAVE MANAGEMENT SYSTEM
24
LEAVE MANAGEMENT SYSTEM
FUTURE SCOPE:
Every employees individual leave record can be tabulated in a pie chart format to
ascertain his/her performance during the working session.
The summarised data generated by this system can be further provided to different
departments, for example, to calculate the fine for shortage of attendance, to
deduct from the salaries of the faculties.
25