0% found this document useful (0 votes)
3 views

Student Task Management System

The 'Student Task Management System' is a Python-based application designed to help students manage their academic and personal tasks through an intuitive interface. It allows users to create, update, and prioritize tasks while providing features like categorization, due dates, and progress tracking. The system aims to enhance productivity and time management for students, utilizing a MySQL backend and a user-friendly GUI.

Uploaded by

susiprema476
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Student Task Management System

The 'Student Task Management System' is a Python-based application designed to help students manage their academic and personal tasks through an intuitive interface. It allows users to create, update, and prioritize tasks while providing features like categorization, due dates, and progress tracking. The system aims to enhance productivity and time management for students, utilizing a MySQL backend and a user-friendly GUI.

Uploaded by

susiprema476
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 41

1.

SYNOPSIS

“Student Task Management System” is a Python-based application designed to help


students organize and manage their academic and personal tasks effectively. The system
offers an intuitive interface for students to create, update, track, and prioritize tasks, ensuring
they stay on top of their responsibilities and deadlines. Students can add tasks with details
such as title, description, category (e.g., academic, personal), and priority level. Each task
includes an optional due date, helping students stay on top of their schedule and prioritize
deadlines. Tasks can be marked as "Incomplete," "In Progress," or "Completed," providing an
overview of progress at a glance. The system includes a simple text-based or graphical user
interface (GUI) for ease of use, depending on the implementation scope. Tasks are stored
using a database or file system, ensuring information is retained between sessions. This
system aims to enhance productivity by providing a structured and efficient way for students
to handle their workload, ultimately promoting better time management and academic
success.

1
2. PROJECT PROFILE

2.1 PROJECT DESCRIPTION

The "Student Task Management System" software is user-friendly software. The


main objective of the system is which shows and to help students manage their tasks,
assignments, and deadlines efficiently. The Project Student Task Management System
includes
Only they can add data into the database. The data can be retrieved easily. To
provide a centralized platform for task tracking and scheduling. The interface is very user-
friendly. The data are well protected for personal use and makes the data processing very
fast. This project has been developed using Python language as a front end and back end as
MySQL and Frontend Framework as Tkinter

2.2 MODULE DESCRIPTION

The modules involved are:

 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

3.1 EXISTED SYSTEM

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.

3.2 PROPOSED SYSTEM

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

To be used efficiently, all computer software needs certain hardware components or


the other software resources to be present on a computer. These prerequisites are known as
(computer) system requirements and are often used as a guide as opposed to an absolute rule.
Most software defines two sets of system requirements: minimum and recommended .with
increasing demand for higher processing power and resources newer versions of software
system requirements tend to increase over time. Industry analysts suggest that is trend plays a
bigger power in driving upgrades to existing computer system than technological
advancements

4.1 HARDWARE REQUIREMENTS:

PROCESSOR : Intel Core i3

RAM : 64GB

HARD DISK : 500GB or more

KEYBOARD : Touch pad

4.2 SOFTWARE REQUIREMENTS:

OPERTING SYSTEM: WINDOWS 11

FRONT END : Python

BACK END : MySQL

WEB FRAMEWORK: Django

IDE : PyCharm

5
4.3 SOFTWARE

DESCRIPTION HTML INTRODUCTION:

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.

BASIC HTML CONCEPTS:

Elements, tags, and attributes

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:

This is a paragraph between opening <p> and closing </p> tags.

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:

❖ Cascading Style Sheets, fondly referred to as CSS, is a simple design language


intended to simplify the process of making web pages presentable.

❖ 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.

❖ Multiple Device Compatibility − Style sheets allow content to be optimized for

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:

❖ JavaScript often abbreviated as JS, is a high-level, interpreted programming


language. It is a language which is also characterized as dynamic, weakly typed,
prototype-based and multi-paradigm.

❖ 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.

❖ <field set>...</field set>

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 elements allow a variety of standard form controls to be implemented.

INPUT TYPES:

❖ type="checkbox"

❖ A check box: Can be checked or unchecked.


❖ type="radio"

❖ 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"

❖ A general-purpose button: The element <button> is preferred if possible (i.e. if the


client supports it) as it provides richer possibilities.

❖ type="submit"

❖ A submit button.

❖ type="image"

❖ An image button: The image URL may be specified with the src attribute.

❖ type="reset"

❖ A reset button for resetting the form to default values.

❖ 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>

❖ A legend (caption) for a field set.

❖ <option value="x">

❖ Creates an item in a select list.

❖ <opt group>...</opt group>

❖ Identifies a group of options in a select list.

❖ <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.

❖ <text area rows="8">...</text area>

❖ 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>

❖ Contains a row of cells in a table.

❖ <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>

❖ A table data cell.

❖ <colgroup>...</colgroup>

❖ 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).

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?

❖ PHP can generate dynamic page content


❖ PHP can create, open, read, write, delete, and close file on server
❖ PHP can collect from data
❖ PHP can sent and receive cookies
❖ PHP can add, delete, modify data in your database
❖ PHP can be used to control user-access
❖ PHP can encrypt data
With PHP you are not limited to output HTML. you can also output any text, such as
HTML and XML.

Why PHP?

❖ PHP runs on various platform (Windows, Linux, Mac OS X, etc.)


❖ PHP is compatible with almost servers used today(Apache, IIS,)
❖ PHP Supports a wide range of databases.
❖ PHP is easy to learn and runs efficiently on the server side.

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

developing web based software applications.

Common uses on PHP

❖ 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

UNIQUE FEATURES OF PHP


In PHP, there is no need to specify a data type for variable declaration. Rather, it can
be determined at the time of execution depends on the value of the variable. So that, PHP is
called Loosely typed language.PHP provided cross-platform compatibility, unlike some other
server side scripting language.

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’;

Using the database

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

The SQL code creating a table is as follow:

MYSQL>CREATE TABLE ‘table_name’(‘field1’ type NOT NULL|NULL


DEFAULT’default_

 Contains a row of cells in a table. <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>
A table data cell.
TABLES
The format of HTML Tables was proposed in the HTML 3.0 Drafts and the later RFC 1942 HTML
Tables.
 <table>...</table>
 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
 <colgroup>...</colgroup>

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

5.1 STRUCTURE CHART

EMPLOYEE LEAVE MANAGEMENT SYSTEM

Employee Admin

My Profile Total Regd


Employee

Listed Department
Total Leave

Listed Leave
Type
Approve Leave

Total Leave

NewLeaveApplication
Approved Leave

New Leave Application

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

Admin Login Total Regd


Employee

Listed
Department

Listed Leave
Type

Total Leave Admin


Module

Approved Leave

New Leave
Application

22
5.3 DATA DICTIONARY
1. Employee

S.No Field Name Data Type

1. id INT(11)

2. DepartmentName Text

3. DepartmentShortName Text

4. DepartmentCode Text

5. CreationDate Text

2. Admin

S.No Field Name Data Type

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.

 Ease of design to code translation.


 Code efficiency.
 Memory efficiency.
 Maintainability.

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 is an investigation conducted to provide stakeholders with information about


the quality of the product or service under the test. Software testing can also provide an
objective, independence view of the software to allow the business to appreciate and
understand the risk of software implementation. Test techniques includes, but are not limited
to the process of executing a program or application with the intent of finding software bugs
(errors or other defects).

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

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.

BLACK BOX TESTING


This method treats the coded module as a black box. The module runs with inputs that
are likely to cause errors. Then the output is checked to see if any error occurred. This
method cannot be used to test all errors, because some errors may depend on the code or
algorithm used to implement the module.
FUNCTIONAL TEST

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

9.1. APPENDIX A -SAMPLE SCREENSHOT


Home

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>&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">
<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">

<div class="card-content ">


<span class="card-title" style="font-size:20px;">Employee
Login</span>

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">

<input type="submit" name="signin" value="Sign


in" class="waves-effect waves-light btn teal">
</div>
</form>
</div>
</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/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>
<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>
35
</body>
</html>

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>

<!-- Title -->


<title>Employee | 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="
" />

<!-- 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">

<!-- 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');?>
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>

<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">Approved Leaves</span>
<?php
$sql = "SELECT id from tblleaves where Status=1 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>
<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

1. The Joy of PHP Programming: A Beginner’s Guide to Programming Interactive Web


Applications with PHP and MySQL” Alan Forbes”,

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

You might also like