Student Task Management System
Student Task Management System
SYNOPSIS
1
2. PROJECT PROFILE
Admin
Teacher
Student
Subject
Course
ADMINISTRATION
In the module Admin Manages Students accounts and ensures secure access to the system.
He has the privileges to Allows new Students to create accounts by providing their name,
email, and password. And also enables existing Students to log in using their email and
password. Provides options to reset forgotten passwords via email verification.
TEACHER
In this is the core module where teacher can manage and access the Students tasks. Allows to
fill the staff information such as student id, roll no, email id, gender, class and date of joined
and manage those staff information
STUDENT
2
In this the module ,the Students can submit the task that can be assigned by the teachers and also
indicate the completion status and also view the student information which is given in the student tasks
SUBJECT:
3
3. SYSTEM ANALYSIS
In the existing system, students manage their academic tasks using Manual methods
such as Writing tasks in notebooks or planners and Using mobile notes apps, reminders, or
spreadsheets. Some universities provide learning management systems (LMS) with task
tracking, but they lack flexibility. In the existing system, in the Task organization ,there is a
lack of structured task categorization and Limited or no sharing of tasks with peers.
In the new proposed system all the data is being maintained into the server as
well regular update will also take place. It also offering students an easy way to organize
assignments, set reminders, track progress, and collaborate with peers. In Task organization
there is Categorization of tasks by priority, subject, and deadline. and Task-sharing with
peers, group work support. Automated push notifications & email reminders.
4
4. SYSTEM REQUIREMENT
RAM : 64GB
IDE : PyCharm
5
4.3 SOFTWARE
CONCEPTS:
HTML element is a main structural unit of a web page. HTML tags are used to define
HTML elements, and attributes provide additional information about these elements.
HTML TAGS: HTML,an acronym for Hyper Text Markup Language, is a primary markup
language for creating websites. It consists of a series of codes used to structure
texts,images,and other content to be displayed in a browser.
HTML tags are used to structure website content (text, hyperlinks, images, media, etc.). Tags
are not displayed in the browsers; they only “instruct” browsers how to show the content of
the web page.
❖ There are over 100 tags in HTML, and we can find them in our HTML tutorial.
❖ HTML tags are written in angle brackets (e.g., <HTML>).
Most of HTML tags come in pairs, like <p></p> tags. The first tag in a pair called the start
(opening) tag, and the second tag is the end (closing) tag. The information is written between
opening and closing tags.
However, there are unpaired or empty tags, which only have opening tag. (for ex.
<img/>).
Let’s consider an example.
If we need to define a paragraph (which is an element) we should use <p>tag. The content of
the paragraph we should write between Example:
HTML ATTRIBUTUTEs
❖ HTML at, tributes are added to an HTML element to provide additional information
about it. For exampleif we define an image with <img/> tag, we can use src, height,
width attributes to provide information about its source, height, width
6
correspondingly.
7
❖ HTML at, tributes are added to an HTML element to provide additional information
about it. For exampleif we define an image with <img/> tag, we can use src, height,
width attributes to provide information about its source, height, width
correspondingly.
❖ <h1> is the most important and <h6> least important tags.
❖ The <p> element contains paragraphs of the text. The content is written between <p>
and </p> tags.
CSS:
❖ CSS handles the look and feel part of a web page. Using CSS, we can control the
color of the text, the style of fonts, the spacing between paragraphs, how columns are
sized and laid out, what background images or colors are used, la wet designs, and
variations in display for different devices and screen sizes as well as a variety of other
effects.
❖ CSS is easy to learn and understand but it provides powerful control over the
presentation of an HTML document. Most commonly, CSS is combined with the
markup languages HTML or XHTML.
ADVANTAGES OF CSS:
❖ CSS saves time − We can write CSS once and then reuse same sheet in multiple
HTML pages. We can define a style for each HTML element and apply it to as many
Web pages as we want.
❖ Pages load faster − If we are using CSS, we do not need to write HTML tag
attributes every time. Just write one CSS rule of a tag and apply it to all the
occurrences of that tag. So, less code means faster download times.
❖ Easy maintenance − To make a global change, simply change the style, and all
elements in all the web pages will be updated automatically.
❖ Superior styles to HTML − CSS has a much wider array of attributes than HTML,
so we can give a far better look to were HTML page in comparison to HTML
attributes.
8
more than one type of device. By using the same HTML document, different
versions of a
9
website can be presented for handheld devices such as PD As and cell phones or for
printing.
❖ Global web standards − Now HTML attributes are being deprecated and it is being
recommended to use CSS. So, it’s a good idea to start using CSS in all the HTML
pages to make them compatible to future browsers.
JAVA SCRIPT:
❖ Alongside HTML and CSS, JavaScript is one of the three core technologies of the
World Wide Web. JavaScript enables interactive web pages and thus is an essential
part of web applications. The vast majority of websites use it, and all major web
browsers have a dedicated JavaScript engine to execute it.
FORMS:
These elements can be combined into a form or in some instances used separately as
user-interface controls; in the document, they can be simple HTML or used in conjunction
with Scripts. HTML markup specifies the elements that make up a form, and the method by
which it will be submitted. However, some form of scripts (server-side, client-side, or both)
must be used to process the user’s input once it is submitted.
❖ <form action="url">...</form>
Creates a form. The form element specifies and operates the overall action of a form
area, using the required action attribute.
❖ <button>...</button>
A generic form button which can contain a range of other elements to create complex
buttons.
A container for adding structure to forms. For example, a series of related controls
can be grouped within a field-set, which can then have a legend added in order to
identify their function.
10
❖ <input>
INPUT TYPES:
❖ type="checkbox"
❖ A radio button: If multiple radio buttons are given the same name, the user will
only be able to select one of them from this group.
❖ type="button"
❖ type="submit"
❖ A submit button.
❖ type="image"
❖ An image button: The image URL may be specified with the src attribute.
❖ type="reset"
❖ type="text"
❖ A one-line text input field: The size attribute specifies the default width of the input
in character-widths. max-length sets the maximum number of characters the user can
enter (which may be greater than size).
❖ type="password"
❖ A variation of text. The difference is that text typed in this field is masked —
characters are displayed as an asterisk, a dot or another replacement. It should be
noted, however, that the password is still submitted to the server as clear text, so an
underlying secure transport layer like HTTPS is needed if confidentiality is a
concern.
❖ type="file"
11
❖ A file select field (for uploading files to a server).
❖ type="hidden"
❖ hidden inputs are not visible in the rendered page, but allow a designer to maintain a
copy of data that needs to be submitted to the server as part of the form. This may,
for example, be data that this web user entered or selected on a previous form that
needs to be processed in conjunction with the current form.
❖ <label for="id">...</label>
❖ Creates a label for a form input (e.g. radio button) . Clicking on the label fires a click
on the matching input.
❖ <legend>...</legend>
❖ <option value="x">
❖ <select name="xyz">...</select>
❖ Creates a selection list, from which the user can select a single option. May be
rendered as a drop-down list.
❖ A multiple-line text area, the size of which is specified by cols (where a col is a one-
character width of text) and rows HTML attributes. The content of this element is
restricted to plain text, which appears in the text area as default text when the page is
loaded.
TABLES
❖ The format of HTML Tables was proposed in the HTML 3.0 Drafts and the later
RFC 1942 HTML Tables.
❖ <table>...</table>
12
❖ Identifies a table . Several HTML attributes are possible in HTML Transitional,
but most of these are invalid in HTML Strict and can be replaced with style sheets.
The summary attribute is however informally required for accessibility purposes,
though its usage is not simple.
❖ <tr>...</tr>
❖ <th>...</th>
❖ A table header cell; contents are conventionally displayed bold and centered. An
aural user agent may use a louder voice for these items.
❖ <td>...</td>
❖ <colgroup>...</colgroup>
❖ <col> or <col/>
❖ <caption>...</caption>
❖ <thead>...</thead>
❖ Specifies the header part of a table. This section may be repeated by the user agent
if the table is split across pages (in printing or other paged media).
❖ <tbody>...</tbody>
❖ <tfoot>...</tfoot>
❖ Specifies the footer part of a table. Like <thead>, this section may be repeated by
the user agent if the table is split across pages (in printing or other paged media).
INTRODUCTION TO PYTHON:
13
INTRODUCTION TO PYTHON:
Python is popular programming language. It was created by Guido Van Rossum, and released
in 1991. It is used for
❖ Web development(Server-site),
❖ Software Development
❖ Mathematics.
❖ System Scripting.
❖ Python works on different platforms(Windows, Mac, Linux, Rasperry Pi, etc)
❖ Python has simple syntax similar to the English Language
❖ Python has syntax that allows developers to write programs with fever lines than some
other Programming languages.
❖ Python runs on an interpreter system that code can be very quick.
14
What is a PHYTHON?
❖ PHP file can contain text, HTM, CSS, java script, and PHP code
❖ PHP/code are executed on the server, and the result is returned to the brower as
plained HTML
❖ PHP file extension “PHP”
What can PHP DO?
Why PHP?
15
The PHP Hypertext preprocessor (PHP) is a programming language that allows web
Developers to create dynamic content that interacts with databases. PHP is basically used for
❖ PHP perform system function i.e. from files on a system it can create, open, read
write, and Close them.
❖ PHP can handle forms i.e. gather data from files, save data to a file, through email you
send data, return data to the user.
❖ You add, delete and modify element within your database through PHP.
❖ Access cookies variable and set cookies. Using PHP, you can to access some page of
your
❖ Website.
❖ It can encrypt data.
Characteristics of PHP
Five important characteristics make PHP’s practical nature possible
Simplicity
Efficiency
Security
Flexibility
Familiarity
BASIC PHP SYNTAX
A PHP scripting block always start with <? PHP and ends with?> A PHP scripting
block can be played anywhere in documents. On server with short and enabled you can start a
scripting block <? However, for Maximum compatibility we recommend that you see the
standard from. <? PHP rather than shorthand form
16
PHP has set of predefined variable called user global which will start by-(underscore). some
of the examlpe are $_POST, $_GET, $COOKIES, $_SESSION,$_SERVER and etc.so,any
variable except user global, that start with_(underscore) will cause an error. PHP
programming structure include variable; that is the name of the variable can be changed
Dynamically. This language contain access monitoring capability to create logs of the
summary of recent Accesses. And then, it include several magic method that begin with
character which will be defined and Called at appropriate instance. For example_clone( ) will
be called, when the clone keyword is Used. Predefined error reporting constants are available
to generate the waring or error notice. For example, when E_STRICT is enable. A warning
about deprecated method will be generated. PHP supports extended regular expression that
leads extensive pattern matching with Remarkable speed. Since PHP is a single inheritance
language the parent class methods can be derived from only One directly inherited sub class.
But, the implementation of traits concept, reduce gap over this Limitation and allow to reuse
required method in several classes.
MYSQL
MYSQL is a database server
MYSQL is ideal for both small and large application
MYSQL supports standard SQL
MYSQL compiles on a number of platform
MYSQL is free to download and use
Introduction to MY-SQL
MYSQL, the most popular open source SQL database management system, is
developed, Distributed, and supported by MYSQL AB. MYSQL AB is a commercial
company, founded by the MYSQL developers. It is a second generation open source
company that unties open source values methodology with a successful business model.
MYSQL, the most popular open source SQL database, Is developed and provided by
MYSQL AB, a commercial company which its income from providing services around the
MYSQL database. The MYSQL software delivers a very fast, multi-threaded, multi-user and
robust SQL database server intended for mission-critical, heavy-load production system as well
as for embedding into mass-deployed software.
MYSQL is a relational database. In a relational database, data is stored as a collection
of field called a row. Like field, rows are in turn collectively stored as a table. Table are
17
stored collectively in a database. One MYSQL server can store multiple databases, and have
users who have rights to each database.
SQL code
The code for creating such as database in SQL (Structured Query Language) is a simple
Query: (Without the ‘’single quotes around around the database name)
MYSQL>CREATE DATABASE ’DATABASE_NAME’;
After a database has been created, you have to tell MYSQL that to make it the active database
before you start running further queries on it. You this as follow
MYSQL>YSE’DATABASE_NAME’;
A table resides inside a database. Table contain rows, which are made up of a collection of
common fields or columns. Here is a sample output for a SELECT*query
MYSQL>SELCET*FROM’BOOKS’;
Creating a Table
18
Specifies a column group in a table.
<col> or <col/>
Specifies a column in a table.
<caption>...</caption> Specifies a caption for a table.
<thead>...</thead>
Specifies the header part of a table. This section may be repeated by the user agent if
the table is split across pages (in printing or other paged media).
<tbody>...</tbody>
Specifies a body of data for the table. <tfoot>...</tfoot>
Specifies the footer part of a table. Like <thead>, this section may be repeated by the
user agent if the table is split across pages (in printing or other paged media).
19
5. SYSTEM DESIGN
Employee Admin
Listed Department
Total Leave
Listed Leave
Type
Approve Leave
Total Leave
NewLeaveApplication
Approved Leave
20
5.2 DATA FLOW DIAGRAM
EMPLOYEE LOGIN
Level 0
Employee
Employee Login
module
Level 1
Login My Profile
Employee
Total Leave
Approve Leave
Employee module
New Leave
Application
21
ADMIN MODULE
LEVEL 0
Login Admin
Admin
module
LEVEL 1
Listed
Department
Listed Leave
Type
Approved Leave
New Leave
Application
22
5.3 DATA DICTIONARY
1. Employee
1. id INT(11)
2. DepartmentName Text
3. DepartmentShortName Text
4. DepartmentCode Text
5. CreationDate Text
2. Admin
1. Id INT(11)
2. Username Text
3. Password Text
4. UpdationDate Text
23
6. SYSTEM IMPLEMENTATION
Implementation is the stage in the project where the theoretical design is turned into a
working system. The most critical stage is achieving a successful system and in giving
confidence on the new system for the users, what it will work efficient and effectively. It
involves careful planning, investing of the current system, and its constraints on
implementation, design of methods to achieve the changeover methods.
The implementation process begins with preparing a plan for the implementation of the
system. According to this plan, the activities are to be carried out in these plans; discussion
has been made regarding the equipment, resources and how to test activities.
The coding step translates a detail design representation into a programming language
realization. Programming languages are vehicles for communication between human and
computers programming language characteristics and coding style can profoundly affect
software quality and maintainability. The coding is done with the following characteristics in
mind.
The user should be very careful while implementing a project to ensure what they have
planned is properly implemented. The user should not change the purpose of project while
implementing. The user should not go in a roundabout way to achieve a solution; it should be
direct, crisp and clear and up to the point.
24
7. SYSTEM TESTING
System testing can be stated the process of validating and verifying that a computer
program/application/product: Meets the requirements that guides design and developments, v
Works as expected. Can be implemented with the same characteristics, and satisfies the needs
of stakeholders.
The primary purpose of testing is to detect software failures so that defects may be
discovered and corrected. The scope of software testing often includes examination of code
as well as execution of that code in various environments and condition as well as examining
the aspects of code: does it do what it is supposed to do and do what it needs to do.
UNIT TESTING
Unit testing comprises the set of tests performed by an individual programmer prior to
integration of the unit into large system.
Unit testing can be performed from the bottom up starting with the smallest and lowest level
modules and proceeding one at a time. For each module in a bottom-up testing, a short
program executes the module and provides the needed data.
VALIDATION TESTING
Validation testing can be defined in many ways, but a simple definition is that can be
reasonably expected by the customer. After validation test has been conducted, one of two
possible conditions exists.
The functions or performance characteristics confirm to specification and are accepted.
A deviation from specification is uncovered and a deficiency list is created.
Proposed system under consideration has been tested by using validation testing and
found to be working satisfactorily.
25
For example, in this project validation testing is performed against user module. This
module is tested with the following valid and invalid inputs for the field staff id.
White box testing, sometimes called glass-box testing is a test case design method that
uses the control structure of the procedural design to derive test cases. Using white box
testing methods, the software engineer can derive test cases that
Guarantee that all independent paths with in a module have been exercised at least once.
Exercise all logical decisions on their true and false sides.
Execute all loops at their boundaries and with in their operational bounds and
Exercise internal data structure to assure their validity.
For example in this project white box testing is performed against patient module.
Without entering text if we apply it displays the message “First add record then save it” else
it should be saved.
A functional test case involves exercising the code with nominal input values for which the
expected results are known as well as boundary values.
PERFORMANCE TEST
Performance testing determines the amount of execution time spent in various parts of the
unit, program throughput, and response time and device utilization by the program unit.
INTEGRATION TESTING
Integration testing is any type of software testing that seeks to verify the interfaces between
components against a software design. Software component may be integrated in an iterative
way or all together (“big bang”). Normally the former is considered a better practice since it
allows interface issues to be localized more quickly and fixed.
26
Integration testing works to expose defects in the interface and interaction between integrated
components (modules). Progressively large groups of tested software components
corresponding to elements of the architectural design are integrated and tested until the
software work as a system.
27
8. CONCLUSION
The Student Task Management System provides a structured approach to task handling, improving student
productivity and academic performance. Its user-friendly interface, reminder system, and collaboration tools
make it a valuable resource for students.
28
9. APPENDIX
Login
29
Admin
30
31
9.2. APPENDIX B - SAMPLE CODING
<?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 = 'dashboard.php'; </script>";
}}
else{
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" />
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- Styles -->
<link type="text/css" rel="stylesheet"
href="assets/plugins/materialize/css/materialize.min.css"/>
<link href="assets/css/materialdesign.css" rel="stylesheet">
32
<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"/>
</head>
<body background=''https://www.google.com/search?
sca_esv=c89ee36245fe1c26&q=employee+lea
ve+management+system+project+in+php&tbm=isch&source=lnms&prmd=ivsnbmtz&sa=X
&ved=2ahUKEwih_cnVzMiEAxWoxTgGHQ4DChcQ0pQJegQIDBAB#imgrc=9ycnmQZip
NdzCM">
<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>
</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>
33
</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>
</form>
</div>
</nav>
</header>
<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> </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">
<p class="copyright">ELMS ©</p>
</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">
34
<?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">
</div>
<div class="left-sidebar-hover"></div>
DASHBOARD>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>
</head>
<body>
<?php include('includes/header.php');?>
<?php include('includes/sidebar.php');?>
36
<main class="mn-inner">
<div class="">
<div class="row no-m-t no-m-b">
<a href="leavehistory.php" target="blank">
<div class="col s12 m12 l4">
<div class="card stats-card">
<div class="card-content">
<span class="card-title">Total Leaves</span>
<?php $eid=$_SESSION['eid'];
$sql = "SELECT id from tblleaves where empid ='$eid'";
$query = $dbh -> prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$totalleaves=$query->rowCount();
?>
<span class="stats-counter"><span class="counter"><?php echo
htmlentities($totalleaves);?></span></span>
</div>
<div class="progress stats-card-progress">
<div class="success" style="width: 70%"></div>
</div>
</div>
</div></a>
</div>
<div class="progress stats-card-progress">
<div class="success" style="width: 70%"></div>
</div>
</div>
</div></a>
<a href="leavehistory.php" target="blank">
<div class="col s12 m12 l4">
<div class="card stats-card">
37
<div class="card-content">
<span class="card-title">New Leaves Applications</span>
<?php
$sql = "SELECT id from tblleaves where Status=0 and empid ='$eid'";
$query = $dbh -> prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$approvedleaves=$query->rowCount();
?>
<span class="stats-counter"><span class="counter"><?php echo
htmlentities($approvedleaves);?></span></span>
</div>
<div class="progress stats-card-progress">
<div class="success" style="width: 70%"></div>
</div>
</div>
</div></a>
<div class="row no-m-t no-m-b">
<div class="col s15 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>
<?php $sql ="SELECT tblleaves.id as
lid,tblemployees.FirstName,tblemployees.LastName,tblemployees.EmpId,tblemployees.id,tbl
leaves.LeaveType,tblleaves.PostingDate,tblleaves.Status from tblleaves join tblemployees on
tblleaves.empid=tblemployees.id where tblleaves.empid='$eid' 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)
{
?>
<tr>
<td> <b><?php echo htmlentities($cnt);?></b></td>
38
<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>
?>
39
10. FUTURE ENHANCEMENT
In future our project can be developed to the mobile access. In this project we developed
website in future. We develop our project to all types of employees. This employees can be
applying for the leave mobile phone also and upload medical certificate and other documents.
Check employees current position status automatic alert will be information provide user who
by leave approval. Integrating the AI system capabilities can help to automate the leave
management processes, such as leave request processing, workflow approval, and employee
leave tracking. With the increasing use of AI in different domains, it is likely to enable the
online leave management system
40
11. REFERENCE
The following website and book was referred during the preparation of this project.
Books
2. PHP & MySQL Novice to Ninja” Tom Butler & Kevin Yank”, Latest Edition – Sixth
Edition, Publisher – SitePoint.
3. Head First PHP & MySQL “ Lynn Beighley & Michael Morrison”, Latest Edition –
First Edition Publisher –“O’Reilly”
4. PHP: A Beginner’s Guide” Vikram Vaswani,” Latest Edition – First Edition, Publisher
– McGraw-Hill Education
5. PHP In Action: Objects, Design, Agility Daginn Reiersol, Chris Shiflett, and Marcus
Baker, Latest Edition – 1st Edition Publisher – Manning Publications
PHP
www.php/(S(pdfrohu0ajmwt445fanvj2r3))/learn/data-access/
www.w3schools.com/php /default.php
www.411 php /home/sites
www.cristiandarie.ro/php -tutorial/
www.php -tutorials.com/basics/first-website/
MYSQL
1. www.functionx.com/mysql/
2. www.technet.microsoft.com/en-us/library/mysql69620.php
3. www.msdn.microsoft.com/en-us/library/ms169620(mysql).php
4. www.softwaretrainingtutorials.com/mysql-2005.php
41