0% found this document useful (0 votes)
398 views79 pages

Mini Report PDF

This document is a project report on developing a Human Resource Management System. It was submitted by two students, Akash V.L and Jinse P George, for their BSc in Computer Science. The report describes building a web-based HRMS using PHP and SQL to manage employee records, attendance, projects, appointments and payroll more efficiently. Currently, these tasks are managed manually which is prone to errors. The new system aims to automate these processes to make them faster, more secure and reliable. It will help the organization better utilize resources and maintain accurate computerized records.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
398 views79 pages

Mini Report PDF

This document is a project report on developing a Human Resource Management System. It was submitted by two students, Akash V.L and Jinse P George, for their BSc in Computer Science. The report describes building a web-based HRMS using PHP and SQL to manage employee records, attendance, projects, appointments and payroll more efficiently. Currently, these tasks are managed manually which is prone to errors. The new system aims to automate these processes to make them faster, more secure and reliable. It will help the organization better utilize resources and maintain accurate computerized records.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 79

Human resource management system

PROJECT REPORT ON HUMAN RESOURCE

MANAGEMENT SYSTEM
Submitted for the partial fulfilment of the requirements for the award of the Degree of

BSc Computer Science

At

SCHOOL OF TECHNOLOGY AND APPLIED SCIENCES

KOTTAYAM, KERALA

By

Akash V.L & Jinse P George

Reg. No : 200021031177

Department of Computer Science

SCHOOL OF TECHNOLOGY AND APPLIED SCIENCES

CENTRE FOR PROFESSIONAL AND ADVANCED STUDIES

KOTTAYAM, KERALA

P a g e 1 | 79
Human resource management system

SCHOOL OF TECHNOLOGY AND APPLIED SCIENCES

CENTRE FOR PROFESSIONAL AND ADVANCED STUDIES

KOTTAYAM, KERALA

CERTIFICATE

This is to certify that the project entitled “Human Resource Management System" is
the bonafide record of work done by Akash V.L & Jinse P George, Reg. No : 200021031177
and submitted to the university for the partial fulfilment of the award of the Bachelors’ degree
in Computer Science during the academic year 2020-2023.

Place : KOTTAYAM

Date :

Jisha Mary George Asha Chandran Meenu Kochumon


Head of The Department Project Coordinator Project Guide

Examiner 1: Examiner: 2

P a g e 2 | 79
Human resource management system

SCHOOL OF TECHNOLOGY AND APPLIED SCIENCES

CENTRE FOR PROFESSIONAL AND ADVANCED STUDIES

KOTTAYAM, KERALA

DECLARATION

I Akash V.L , Jinse P George hereby declare that this mini project work entitled “House

Rental Management System” is the result of the original work done by me during the
period of study 2020-2023 at SCHOOL OF TECHNOLOGY AND APPLIED SCIENCES
PULLARIKKUNNU, KOTTAYAM. This project report is submitted for the partial
fulfilment of requirements for the award of Bachelor of Computer Application of
Mahatma Gandhi University.

Place: KOTTAYAM Akash V.L , Jinse P George

Date :

P a g e 3 | 79
Human resource management system

ACKNOWLEDGEMENT

Gratitude and gratefulness are a sublime feeling of heart which come to acknowledge
the heartfelt gratitude. Words prove to be small and sentences become feeble to bear the
burden to express their cooperation which makes our task much easier. However, I have made
an effort to express our overwhelming sense of gratitude of those who have made this task
possible.

Primarily I would thank God almighty for being able to complete this project with success.
Then I would thank my principal Dr. Bindu M.S for making our project success.

I am also thankful to Ms. Jisha Mary George, Head of Department of Computer Science for
rendering valuable help and for providing means and all facilities to carry out the project.

I am extremely thankful and pay my gratitude to Ms. Asha Chandran for valuable guidance
and support on completion of this project in its presently.

It gives pleasure to record our deep sense of gratitude to our guide Ms. Meenu kochmon for
her comfort encouragement, able supervision, constructive suggestion and everlasting
affection throughout the period of my work.

I am very grateful to Ms. Aswathy Krishna M for being a source of constant support and
help. We are grateful for your valuable presence for the completion of the project and for all
the helps that you have provided throughout.

It is my privilege and pleasure to express our heartfelt gratitude to all the staff members of
my department for lending a helping hand when needed.

Then I would like to thank my parents who have helped me with their valuable suggestions
and guidance, it has been helpful in various phases of the completion of the project.

I also take this opportunity to thank my classmates for their generous cooperation and support. I am
also thankful to the non-teaching staff for their helping hands

P a g e 4 | 79
Human resource management system

Acknowledgment

The paper titled “HUMAN RESOURCE MANAGEMENT SYSTEM” is basically concerned


with managing the Administrator of HUMAN RESOURCE Department in a company.
A Human Resource Management System (HRMS), refers to the systems and processes at
the intersection between human resource management (HRM) and information technology. It
merges HRM as a discipline and in particular its basic HR activities and processes with the
information technology field, whereas the programming of data processing systems evolved
into standardized routines and packages of enterprise resource planning (ERP) software.
The main objective of this paper is to reduce the effort of Administrator to keep the daily
events such as attendance, projects, works, appointments, etc.
Human Resource Management System, as described above, can lead to error free, secure,
reliable and fast management system. It can assist the user to concentrate on their other
activities rather to concentrate on the record keeping. Thus it will help organization in better
utilization of resources. The organization can maintain computerized records without
redundant entries. That means that one need not be distracted by information that is not
relevant, while being able to reach the information.
The aim is to automate its existing manual system by the help of computerized equipments
and full-fledged computer software, fulfilling their requirements, so that their valuable
data/information can be stored for a longer period with easy accessing and manipulation of
the same. Basically the project describes how to manage for good performance and better
services for the clients.
This paper deals with the process of identifying the employees, recording their attendance
hourly and calculating their effective payable hours or days. This paper should maintain the
records of each and every employee and their time spend in to company, which can be used
for performance appraisal. Based on that transfer, removal, promotion can be done.

P a g e 5 | 79
Human resource management system

CONTENTS

1.INTRODUCTION ------------------------------------------

INTRODUCTION

1.1 SOFTWARE INTRODUCTON

The purpose of human resource management System Project in Php is to provide


efficient management of the employees and the resources available. Schedule the jobs
for the employees, for giving them proper instructions. Calculate their salary by
analysing their attendance and leaves.

• Human resource management is a function in organizations designed to


maximize employee
• performance in service of their employer’s strategic objectives. HR is
primarily concerned with
• how people are managed within organizations, focusing on policies and
systems. HR
• departments and units in organizations are typically responsible for a number
of activities.

P a g e 6 | 79
Human resource management system

• Human resource management website that includes employee recruitment,


training and development,
• This web project is developed using php and SQL. The SQL database stores
various employee
• related data. A employee visiting the website can see various job scheduled,
team details, deadline

We are confident that this software package can be readily used by non-programming
personal avoiding human handled chance of error.

This project is used by two types of users:

I. Employee
II. HR manager

FRONTEND

PHP:

PHP is a general-purpose scripting language geared toward web development. It was


originally created by Danish-Canadian programmer Rasmus Lerdorf in 1993 and released in
1995. The PHP reference implementation is now produced by The PHP Group. PHP started
out as a small open source project that evolved as more and more people found out how
useful it was. PHP was originally an abbreviation of Personal Home Page, but it now stands
for the recursive initialism PHP: Hypertext Preprocessor.

PHP is a recursive acronym for "PHP: Hypertext Preprocessor" and is a widely-used, open
source scripting language.

• PHP is a server side scripting language that is embedded in HTML. It is used to


manage dynamic content, databases, session tracking, even build entire e-commerce
sites.

• PHP scripts are executed on the server and is free to download and use.
P a g e 7 | 79
Human resource management system

• It is integrated with a number of popular databases, including MySQL, PostgreSQL,


Oracle, Sybase, Informix, and Microsoft SQL Server.

• PHP is pleasingly zippy in its execution, especially when compiled as an Apache


module on the Unix side. The MySQL server, once started, executes even very
complex queries with huge result sets in record-setting time.

• PHP supports a large number of major protocols such as POP3, IMAP, and LDAP.
PHP4 added support for Java and distributed object architectures (COM and
CORBA), making n-tier development a possibility for the first time.

• PHP is forgiving: PHP language tries to be as forgiving as possible.

• PHP Syntax is C-Like.

XAAMP:

XAMPP is a free and open-source cross-platform web server solution stack


package developed by Apache Friends, consisting mainly of the Apache HTTP Server, Maria
DB database, and interpreters for scripts written in the PHP and Perl programming languages.

HTML:

HTML or Hyper Text Markup Language is the main markup language


for creating web pages and other information that can be displayed in a web browser.HTML
is written in the form of HTML elements consisting of tags enclosed in angle brackets (like
<html>), within the web page content. HTML tags most commonly come in pairs like <h1>
and </h1>, although some tags represent empty elements and so are unpaired, for
example:<img> The first tag in a pair is the start tag, and the second tag is the end tag (they
are also called opening tags and closing tags). In between these tags web designers can add
text, further tags, comments and other types of text-based content.

The purpose of a web browser is to read HTML documents and compose them into visible or
audible web pages. The browser does not display the HTML tags, but uses the tags to
interpret the content of the page.HTML elements form the building blocks of all websites.
HTML allows images and objects to be embedded and can be used to create interactive
forms. It provides a means to create structured documents by denoting structural semantics

P a g e 8 | 79
Human resource management system

for text such as headings, paragraphs, lists, links, quotes and other items. It can embed scripts
written in languages such as JavaScript which affect the behavior of HTML web pages.

CSS:

Cascading Style Sheets (CSS) is a style sheet language used fordescribing the
look and formatting of a document written in a markup language. While most often used to
style web pages and interfaces written in HTML and XHTML, the language can be applied to
any kind of XML document, including plain XML, SVG and XUL. CSS is a cornerstone
specification of the web and almost all web pages use CSS style sheets to describe their
presentation.CSS is designed primarily to enable the separation of document content from
document presentation, including elements such as the layout, colors, and fonts. This
separation can improve content accessibility, provide more flexibility and control in the
specification. of presentation characteristics, enable multiple pages to share formatting, and
reduce complexity and repetition in the structural content (such as by allowing for table less
web design).CSS can also allow the same markup page to be presented in different styles for
different rendering methods, such as on-screen, in print, by voice (when 14 read out by a
speechbased browser or screen reader) and on Braillebased, tactile devices. It can also be
used to allow the web page to display differently depending on the screen size or device on
which it is being viewed. While the author of a document typically links that document to a
CSS file, readers can use a different style sheet, perhaps one on their own computer, to
override the one the author has specified. However, if the author or the reader did not link the
document to a specific style sheet the default style of the browser will be applied.CSS
specifies a priority scheme to determine which style rules apply if more than one rule
matches against a particular element. In this so-called cascade, priorities or weights are
calculated and assigned to rules, so that the results are predictable.

JAVASCRIPT:

JavaScript (JS) is a dynamic computer programming language.


It is most commonly used as part of web browsers, whose implementations allow client-side
scripts to interact with the user, control the browser, communicate asynchronously, and alter

P a g e 9 | 79
Human resource management system

the document content that is displayed. It is also being used in serverside programming, game
development and the creation of desktop and mobile applications. JavaScript is a prototype-
based scripting language with dynamic typing and has first-class functions. Its syntax was
influenced by C. JavaScript copies many names and naming conventions from Java, but the
two languages are otherwise unrelated and have very different semantics. The key design
principles within JavaScript are taken from the Self and Scheme programming languages. It
is a multiparadigm language, supporting object-oriented, imperative, and functional
programming styles. The application of JavaScript to use outside of web pages— for
example, in PDF documents, site-specific browsers, and desktop widgets—is also significant.
Newer and faster JavaScript VMs and platforms built upon them (notably Node.js) have also
increased the popularity of JavaScript for server-side web applications. On the client side,
JavaScript was traditionally implemented as an interpreted language but just-in-time
compilation is now performed by recent (post-2012) browsers.

BACKEND :

MYSQL

MYSQL is an open-source relational database management system (RDBMS). Its name is a


combination of "My", the name of co-founder Michael Widenius' daughter, and "SQL", the
abbreviation for Structured Query Language. The MySQL development project has made its
source code available under the terms of the GNU General Public License, as well as under a
variety of proprietary agreements. MySQL was owned and sponsored by a single for-profit
firm, the Swedish company. MySQL AB, now owned by Oracle Corporation. For proprietary
use, several paid editions are available, and offer additional functionality.

P a g e 10 | 79
Human resource management system

2.SYSTEM ANALYSIS

2.1. SYSTEM STUDY

System study is in detailed analysis of various operations and their relationship within and
outside the system. It is the first step in.

2.1.1. Fact finding techniques


The specific methods analysts use for collecting data about requirements are called fact-
finding techniques. These include the interview, questionnaire, record inspection and observation

2.1.2 Record Review

Many kinds of records and reports can provide analysis with valuable information about users,
hospitals and vaccines. In record reviews, analysts examine information that has been recorded about
P a g e 11 | 79
Human resource management system

the system and users. Records include written policy manuals, regulations and standard operating
procedures used by most organization as a guide for managers and employees.

2.1.3 Observation

Observation allows analysts to gain information they can’t obtain by any other fact finding
method. Through observation, analysts can obtain first-hand information about how activities are
carried out. This method is most useful when analysts need to actually observe. How documents are
handled, how processes are carried out and whether specified steps actually followed.

2.1.4 About

The establishment and improvement of employee – management interacting system is


very important requirement, especially now when the communication technology is
developing rapidly. The proposed system of the project, develop a company – employee
interaction system for the better and efficient working of the company for the better output
and result. The main objective of the system is the easy interaction between the employee and
management of the company. Look after the welfare of the employees in the company. The
company officials could easily interact with their employees. Divide their job and give the
part of the job to each employees. Form team as per the requirement of the client and project.

2.2 EXISTING SYSTEM


In the existing system is a normal software

• The normal software has only the number of employees, their working hour, there
duty assigned etc.

• The system has many difficulties

• The salary pf calculation

• The total salary the company has to pay after calculating his lop, bonue etc.

• This type of calculation and payment of salary is not possible in the existing system

• The admin as to write the job scheduled for each employee.

• The employees has to search the file to find his job scheduled for that day and it is
not easy to find it if the company has large number of employees

P a g e 12 | 79
Human resource management system

• The cost will be higher

• If we want to edit the data we written, we have to rewrite the whole page

• Loss of data confidentiality anybody can access it

• The system is insecure

• The data integrity will be lost. There is a chance for the duplication of data

2.3 PROPOSED SYSTEM


Employees and management can communicate easily and efficiently

Key Features

• Easy communication
• Daily schedules
• Online meetings
• Centralized file storage system
• Employee can access the data anywhere using the software

• The calculation of salary

• Addition of pf and bonus in the salary

• Salary cutting lop

P a g e 13 | 79
Human resource management system

• Giving loans for the employee

• Cutting the loan amount from the employee each month

• Accurate attendance taking by the records from the identity card puncher

• If the punching is after the correct time lop is implemented

• Implements online meetings when ever requires

• Can give disciplinary notice

• Add to disciplinary list

• Add field visit

• Add new project and assign it to the employees

Admin - Features

Admin has overall control of the system. The main features of admin module are given
below.

▪ Login and Logout


▪ Dashboard Page
▪ Employees Management
▪ Leave Applications Management
▪ Update Password
▪ The admin can assign the job for each employee one by one without manipulating the
whole data
▪ The admin will provide a unique username and password for each employee
▪ We can schedule the weekly job for the employee
▪ The data entered by the admin can only be manipulated by the admin
▪ The database is divided into level.

Employee - Features

▪ Login and Logout

P a g e 14 | 79
Human resource management system

▪ Dashboard Page
▪ Create New Leave Application
▪ List and Manage Leave Application
▪ View daily job schedules
▪ Get necessary instruction from the officials at right time
▪ The password and username is provided by the admin

MODULES

This Human Resource Management System project has 2 modules


• Admin Panel
• Employee – Side

. These 2 sides of the site have different features and functionalities according to their user
roles.

Admin Panel

The Admin Panel is the side of the system where the system administrators are the only ones
who can access it. This is where the HR Department or Staff manages the list of employees of
the company. The system administrators are the ones who can accept or deny the leave
applications of the employees. Here, administrators can list, add, edit, and delete data on the
master list of Positions, Countries, States, and Cities.

Employee – Side

The Employee-Side is the side of the system that employees can only access. This side
allows the employees' to create new leave applications. After they create leave applications,
their pending, accepted, and denied applications are listed on the leave application page. On

P a g e 15 | 79
Human resource management system

the dashboard page, the logged-in employee can see his/her leave application summary which
is the total number of pending and accepted applications only.

Objective of the proposed system

• THE NEW SYSTEM CAN MAKE THE HR DEPARTMENT MORE EFFICIENT


AND EASIER TO WORK
• THE WORK LOAD IF THE HR DEPARTMENT CAN BE REDUCED
• THE TRANSPARANCY OF THE SYSTEM CAN BE INCREASED
• WE CAN CONTROL THE EMPLOYEES IN ALL MANNURS

3. FEASIBILITY ANALYSIS
Feasibility analysis is a system proposal according to its workability, impact on the
organization, ability to meet client and user needs and efficient use of resources. It is
most necessary and prudent to evaluate the feasibility of the project at the earliest
possible time. The key considerations that are involved in the feasibility analysis are,

 Economic Feasibility

 Technical Feasibility

 Behavioural Feasibility

3.1 ECONOMIC FEASIBILITY

P a g e 16 | 79
Human resource management system

Economic analysis is the most frequently used method for evaluating the
effectiveness of the candidate system. More commonly known as cost/benefit analysis, the
procedure is to determine the benefits and savings that are expected from a candidate system;
otherwise further alterations will have to be made, if it is to have a chance of approved.

The proposed system is cost effective because of its experimental and user-friendly
interface. The user can directly view and change the record. The analysis raises financial or
economical question during the preliminary investigation to estimate the following:

• The benefits in the form of reduced costs or fewer costly errors.

• The cost if nothing changes.

• The cost to conduct a full systems investigation.

• The cost of hardware and software for the class application of the project.

3.2 TECHNICAL FEASIBILITY

This study is carried out to check the technical feasibility that is the technical
requirements of the system. Any system developed must not have a high demand on the
available technical resources. This will lead to high demand on the available technical
resources. The developed system must have a modest requirement as only minimal or null
changes are required for implementing this system. In National Défense Academy project
works in PYTHON and uses backend SQL Server. The technical possibility of proposed
system is as follows: The unit does process the hardware as well as related software for this
project.

The proposed system does not require much technical details.

• The proposed system does not require much technical details.

• The current manual working is not so much sufficient.

• It is just requiring window operating system.

3.3 BEHAVIOURAL FEASIBILITY

P a g e 17 | 79
Human resource management system

It centres on the reaction of the users. Since the system is user-friendly, user training is
an easy matter. Any one, with the basic knowledge of computer can operate the system. The
users need not have prior knowledge of PYTHON.

4. SOFTWARE & HARDWARE SPECIFICATIONS

4.1 HARDWARE SPECIFICATIONS

MACHINE - PENTIUM 4

MOTHER BOARD - AMD RYZEN 3

MEMORY - 4GB DDR4

HARD DISK - 1TB

P a g e 18 | 79
Human resource management system

MONITOR - 17" Colour Monitor

FR0NT END - PHP

4.2 SOFTWARE CONFIGURATION

BACK END - MySQL

SOFTWARE KIT - XAMPP SERVER

OPERATING SYSYEM - Microsoft Windows 11

4.3 PROGRAMMING ENVIRONMENT

An operating system is a collection of programs that control the operations of the purpose of
obtaining an effective performance. It acts as an interface between hardware and user programs. It
facilitates the execution of the programs. Operating system is software responsible for allocating
resources including memory, processor time, disk space and peripheral device such as printers,
modems and the monitor.

4.3.1 Operating System Features

Windows 11: Windows 11 is a computer operating system by Microsoft as part of its


Windows family of operating systems. It was known as Threshold when it was being
developed and announced at a press event on 30 September 2014. It came out for PCs on July
29, 2015. Beginning on that day, Windows 10 was available as a free upgrade for users
running Windows 7 and Windows 8.1 for one year.

Windows 11 is designed to provide a common, "universal" user interface for various


systems. These include desktop, laptop, and all-in-one PCs, tablet computers, smartphones,
and embedded systems such as the Xbox game console. Unlike earlier versions of Windows,
Windows 11 is regularly updated with new features based on user feedback, including before
it was first released. Microsoft releases updates every half a year, an example of the software
as a service principle. Each release has fourdigit. Build number (a type of version number),
P a g e 19 | 79
Human resource management system

the first two digits referring to the year of release, and the other two digits referring to the
month of release.

KERNEL FEATURES

The kernel is considered to be the heart of the operating system that provides services
to the programs running on the computer. It takes care of the hardware, software, network
resources, file systems and the remaining services.

• Security

• System fault tolerance

• Multitasking

• Multiprocessing

• Platform independence

• File system reliability

• File system security

• Flexible protocol support

• Support multi-client operating system

• Enhanced scalability

• Multi-user environment

• Communication

4.4 LANGUAGE FEATURES


As a programming language, the features of Php brought to the table are many. Some
of the most significant

features of Python are:

P a g e 20 | 79
Human resource management system

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

• Open Source:

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

• Familiarity with syntax:

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

• Embedded:

P a g e 21 | 79
Human resource management system

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

• Platform Independent:

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

• Database Support:

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

• Error Reporting -

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

• Loosely Typed Language:

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

• Web servers Support:

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

• Security:

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

• Control:

P a g e 22 | 79
Human resource management system

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

• A Helpful PHP Community:

It has a large community of developers who regularly updates documentation, tutorials,


online help, and FAQs. Learning PHP from the communities is one of the significant
benefits.

MySQL is a fast, easy-to-use RDBMS used for databases on many web sites. Speed
was the developers’ main focus from the beginning. In the interest of speed, they made the
decision to offer fewer features than their major competitors (for instance, Oracle and
Sybase). However, even though MySQL is less full featured than its commercial competitors,
it has all the features needed by the large majority of database developers. It’s easier to install
and use than its commercial competitors, and the difference in price is strongly in MySQL’s
favour.

• Open-source software: MySQL is available via the GNU GPL (General Public
License) for no charge.

Anyone who can meet the requirements of the GPL can use the software for free. If you’re
using MySQL as a database on a Web site (the subject of this book), you can use MySQL
for free, even if you’re making money with your Web site.
• Commercial license: MySQL is available with a commercial license for those who
prefer it to the GPL. If a developer wants to use MySQL as part of a new software
product and wants to sell the new product, rather than release it under the GPL, the
developer needs to purchase a commercial license. The fee is very reasonable.

Advantages of MySQL
MySQL is a popular database with Web developers. Its speed and small size make it
ideal for a Web site. Add to that the fact that its open source, which means free, and you have
the foundation of its popularity. Here is a rundown of some of its advantages:

• It’s fast. The main goal of the folks who developed MySQL was speed. Consequently,
the software was designed from the beginning with speed in mind
P a g e 23 | 79
Human resource management system

• It’s inexpensive. MySQL is free under the open-source GPL license, and the fee for a
commercial license is very reasonable.
• It’s easy to use. You can build and interact with a MySQL database by using a few
simple statements in the SQL language, which is the standard language for communicating
with RDBMSs.
• It can run on many operating systems. MySQL runs on a wide variety of operating
systems — Windows, Linux, Mac OS, most varieties of UNIX (including Solaris, AIX, and
DEC UNIX), FreeBSD, OS/2, Iris, and others
• Technical support is widely available. A large base of users provides free support via
mailing lists. The MySQL developers also participate in the email lists. You can also
purchase technical support from MySQL AB for a very small fee.

• It’s secure. MySQL’s flexible system of authorization allows some or all database
privileges (for example, the privilege to create a database or delete data) to specific users or
groups of users. Passwords are encrypted.

5. SYSTEM DESIGN

The most creative and challenging phase of system life cycle is system design. The
term design describes a final system and the process by which it is developed. It refers to the
technical specifications that will be applied in implementing the candidate system. The
elegant design achieves its objectives with minimum use of resources. The first step is to
determine how the output is to be produced and in what format. The input and the database
have to be designed to meet the requirements of proposed output.

5.1 DATA FLOW DIAGRAM

Larry Constantine first developed the DFD as a way of expressing system


requirements in a graphical form this led to module design. A dataflow diagram DFD also
known as a "bubble chart" is a graphical technique that depicts information and transforms
that are applied as data move from input to output. The DFD is used to represent increasing

P a g e 24 | 79
Human resource management system

information flow and functional details. A DFD consist of a series of bubbles joined by lines.
The bubbles represent data flows in the system.

A level-0 DFD is also called a fundamental system model represents the entire
software elements as a single bible with input and output indicated by incoming and outgoing
arrows respectively. Additional process and information flow parts are represented in the
next level, i.e., level 1 DFD. Each of the process represented at level 1 are sub functions of
overall system depicted in the context model. Any processes that are complex in level 1 level
will be further represented into sub functions in the next level, i.e., level 2. data flow
diagrams are a means of representing a system at any level of detail with a graphic network
of symbols showing data flows, data stores, data process and data stores. The purpose of data
flow diagram is to provide a semantic bridge between users and system developers. The
diagram is graphical, eliminating thousands of words, logical representations, modelling what
system does; hierarchical, showing systems at any level of details; and jargon less, allowing
user understanding and reviewing. The goal of data flow diagramming is to have a commonly
understood model of a system. The diagram is the basis of the structural analysis. Data flow
diagrams are supported by other techniques of structured system analysis data structured
diagram, data dictionaries and procedure representing techniques such as decision tables,
decision tree and structured English. Processes represent activities in which data is
manipulated by being retrieved or transformed in some way. A circle represents it. The
process will show the data transformation or change. Data coming into a process must be
“worked-on” or transformed in some way. Thus, all process may have an input and output.
Rules for constructing a Data Flow Diagram are

• Arrows should not cross each other.

• Squares, circles and files must bear names

• Decomposed data flow squares and circles can have same names. Choose meaningful
names for data flow.

DFD Symbols

A Square defines a source (originator) or destination of system data

P a g e 25 | 79
Human resource management system

OR

An arrow identifies data flow of data in motion. It is pipeline through which information
flows.

A circle or bubble represents a process that transforms incoming data flows into outgoing
data flows

Level 0

LOGIN REQUEST
LOGIN REQUEST
ADMIN SYSYEM USER
RESPONCE RESPONCE

P a g e 26 | 79
Human resource management system

LEVEL 1 (ADMIN)

ADMIN AFTER LOGIN

P a g e 27 | 79
Human resource management system

LEVEL 2

ASSIGN PROJECT

ASSIGN TASK

ASSIGN FIELD
SCHEDULE
JOB

DEAD LINE

P a g e 28 | 79
Human resource management system

LEVEL 1 (USER)

VIEW JOB SCHEDULE

VIEW TASK
USER

VIEW DEADLINE
AFTER USER LOGIN

P a g e 29 | 79
Human resource management system

5.2 DATABASE DESIGN


The overall objectives in the development of database technology have been to
treat data as an organizational resource and as an integrated whole Database Management
System allow the data to be protected and organized separately from other resources. If
Database Management System can provide centralized access to the data from the
Programs, it is possible to treat the data as separate resource. The objectives of Database design
are,

• Data integration
• Data abstraction
• Data independence

Several degrees of normalization have to be applied during the process of table design. The
major aim of the process of normalization is to reduce data redundancy and prevent losing data
integrity. Redundancy refers to unwanted and unnecessary repetition of data.

Data integrity has to be converted at all levels. For normalization can create problems
related to storage and retrieval of data. During the process of normalization, dependencies can
be identified which cause serious problems during deletion and updating. Normalization also
helps in simplifying the structure of tables.

The theme behind a database is to handle the information as an integrated whole thus
making access to information easy, quick, inexpensive and flexible for the users. The entire
package depends on how the data is maintained in the system. Each table has been designed
with a perfect vision. Minor tables have been created which through takes much space facilities
for the purpose of querying fast and accurately. The tables used in this project are described
below.

P a g e 30 | 79
Human resource management system

5.2.1 TABLES

EMPLOYEE

P a g e 31 | 79
Human resource management system

EMPLOYEE

P a g e 32 | 79
Human resource management system

LEAVE DETAILS AND REQUEST

ATTENDANCE

P a g e 33 | 79
Human resource management system

SALARY DETAILS

PROJECT DETAILS

P a g e 34 | 79
Human resource management system

5.3 USER INTERFACE DESIGN

I/O design forms one of the major aspects of any system design. It requires much
careful attention towards the user side. It defines the interface between user and system.
Carefully designed input and output define how effective the system is.

5.3.1 Input Design

Input design converts user-oriented inputs to computer-based formats, which requires


careful attention. The collection of input data is the most expensive part of the system in terms
of the equipment used and the number of people involved. In input design, data is accepted for
computer processing and input to the system is done through mapping via a map support or
links. Inaccurate input data is the most common cause of errors in data processing. The input
screens need to be designed more carefully and logically. A set of menus is provided which
help for better application navigation. While entering data in the input forms, proper validation
checks are done and messages will be generated by the system if incorrect data has been
entered.

5.3.2 Output Design

Outputs are the most important and useful information to the user and to the department.
Intelligent output designs will improve systems relationships with the user and help much in
decision-making. Outputs are also used to provide a permanent hard copy of the results for
later use. The forms used in the system are shown in the appendix.

P a g e 35 | 79
Human resource management system

6. TESTING
Software testing is in critical element of the software development cycle. The testing is
essential for ensuring the quality of the software developed and represents the ultimate view of
specification, design and code generation. Software testing is designed as the process by which one
detects the defects in the software. Testing begins at the module level and work towards the integration
of entire computers-based system.

A good test case is one that has a high probability of finding an as-yet undiscovered error. A
successful test is one such uncovers of finds such errors. If testing is conducted successfully, it will
uncover the errors in the software. It also demonstrates that software functions are being performed
according to specification and also behavioural and performance requirements are satisfied. For this,
test plans have to be prepared. The implementation of a computer system requires that test data have to
be prepared and that the element’s is being tested in a planned and efficient manner. Nothing is complete
without testing as it is vital success of the system

Testing objectives

There are several rules that can serve as testing objectives. They are,

• Testing is a process of executing a program and finding a BUG.

• A good test case is one that has a high probability of finding an undiscovered error

A successful test is one that uncovers an undiscovered errorIf testing is conducted successfully
according to the objectives as stated above, it would uncover errors in the software. Also testing
demonstrates that software functions appear to the working according to the specification that
performance requirements appear to have been met.
If testing is conducted successfully according to the objectives as stated above, it would uncover
errors in the software. Also testing demonstrates that software functions appear to the working
according to the specification that performance requirements appear to have been met. The four stages
of testing are.

• Unit testing

• Integrated testing

• System testing

• Validation testing

P a g e 36 | 79
Human resource management system

6.1 UNIT TESTING

This testing strategy considers the concept of unit changes. The focus on the algorithmic details of a
module

and the data flow across the module interface. Each module in ‘Find a Service Nearby’ is considered
as separate unit. The input given and output generated by each module is studied separately. Every
possibility of input that can be supplied is considered.
Unit testing focuses verification effort on the smallest unit of software designs the module. To
check whether each module in the software works properly so that it gives desired outputs to the given
inputs. All validations and Conditions are tested in the module level in the test. Control paths are tested
to ensure the information properly flows into, out of the program under test. Boundary condition is
tested to ensure that the module operates at boundaries, establishes that it restricts processing. All
independent paths through the control structure ensure that all statements in a module have been
executed at least once. In conclusion, all errors handling paths are tested.

6.2 INTEGRATION TESTING

This testing strategy combines all the modules involved in the system. After the independent
modules are tested, dependent modules that use the independent modules are tested. This sequence of
testing layers of dependent module continues until the entire system is constructed. Through each
program works individually, they should work after linking them together. This is also referred to as
interfacing. Data may be lost across interface and one module can have an adverse effect on another.
Subroutines, after linking, may not do the desired function expected by the main routine. Integrated
testing is a systematic technique for constructing program structure while at same time, conducting test
to uncover errors associated with the interface. In the testing, the programs are constructed and tested
in small segments.

6.3 FINAL SYSTEM TESTING

This is a final step in testing. In this, the entire system was tested as a whole with all forms,
code, module and class modules. This form of testing is popularly Known as Black Box testing or
system testing. Black Box testing methods focus on the functional requirement of the software. That is,
Black Box testing enable the software engineer to derive set of input condition that will fully exercise
all functional requirements for a program. Black Box testing attempt to find errors in the following
categories; incorrect missing function, interface errors. Error in data structure or external data base
access, performance errors and initialization errors and termination errors. In this system, Black Box

P a g e 37 | 79
Human resource management system

testing has been successfully handled any mistakes found are rectified and found running successfully.
The test input data was given to the system and got desired output.

6.4 VALIDATION TESTING

Validation testing is the process of ensuring if the tested and developed software satisfies the
client /user needs. The business requirement logic or scenarios have to be tested in detail. All the critical
functionalities of an application must be tested here.

As a tester, it is always important to know how to verify the business logic or scenarios that are given
to you. One such method that helps in detail evaluation of the functionalities is the Validation Process.
Whenever you are asked to perform a validation test, it takes a great responsibility as you need to test
all the critical business requirements based on the user needs.

There should not be even a single miss on the requirements asked by the user. Hence a keen knowledge
on validation testing is much important. Test data should be prepared carefully since the data only
determine the efficiency and accuracy of the system. Artificial data are prepared solely for the purpose
of every program validates the input data.

7. SYSTEM IMPLEMENTATION
An import aspect of system analyst’s job is to make sure that the new design is
implemented to established standard. Implementation is used here to mean the process of

P a g e 38 | 79
Human resource management system

converting a new or a reversed system design into operational one. There are three types of
implementations,

1. Implementation of a computer system to replace a manual system. The problems


encountered are converting files, training users, creating accurate and verifying print
outs for integrity.
2. Implementation of a new computer system to replace the existing one.

3. Implementation of modified application to replace an existing or, using the same


computer. This type of conversion is relatively easy to handle.

7.1 CONVERSION

Conversion means changing from one system to another. The objective is to put the
system into operation while holding costs, risks and personal irritation to a minimum. It
involves
• Creating computer compatible files.

• Training the operating staff.

7.2 USER TRAINING


The analyst must have clear idea about the user’s capacity and requirement. A well-
designed system may fail because of the way are operated and used. So, the user must be trained
before using the new system and the quality of the training must be high

7.3 SYSTEM SECURITY AND BACKUP

The implementation phase is the rollout of the production version of the system to the client
community. This involves tasks like backing up the existing system, data conversions
producing user documentation.

7.3.1 Security
Security is an essential part of the increased scale of computerization and the development of
the system like sensitive area.

P a g e 39 | 79
Human resource management system

7.3.2 Back up

Backups for hardware, the data and the system are inevitable factor to be considered.
Data backup represents insurance against actual loss of data due to equipment malfunction,
program failure or accident. Hence data can be providing on hard disk or on floppy disk.

7.4 DOCUMENTING THE SYSTEM

After the jobs of testing were completed the whole system as well documented in clear,
Understandable and simple language. This was to ensure that if any updating has to be
performed in the future the users would not face any difficulties in performing tasks. An
acceptance was made to attain maximum perfection in documentation the software in a simple,
precise and self-explanatory manner.

The analyst must have clear idea about the user’s capacity and requirement. A well-designed
system may fail because of the way are operated and used. So, the user must be trained before
using the new system and the quality of the training must be high documentations deal with the
system development with maximum clarity Each and every process is explained in details. The
various tables used by the system with their fields are provided. Different types of programs
denoting various activities of the system are included. The testing methods adopted also from
a part of the document. The outputs generated by the system constitute another part.

P a g e 40 | 79
Human resource management system

8. FUTURE SCOPE THE PROJECT

Personnel aspect-This is concerned with manpower planning,


recruitment, selection, placement, transfer, promotion, training and
development, layoff and retrenchment, remuneration, incentives,
productivity etc.

Welfare aspect-It deals with working conditions and amenities such as


canteens and lunch rooms, housing, transport, medical assistance,
education, health and safety, recreation facilities, etc.

Industrial relations aspect-This covers union-management relations,


joint consultation, collective bargaining, grievance and disciplinary
procedures, settlement of disputes, etc.

9. CONCLUSION
Due to this Human Resource Management System(HRMS) lots of work which was done
Manually by the HR and PMO team will be automated. From now on the HR team does not
have to maintain an excel sheet(Leave Tracker) for the leaves of all employees. Employees
can apply and the DM can approve/reject leaves from HRMS itself and track the leave status.
Using the Bulk change module HR and PMO can directly change the grade, designation,
department and etc. of many employees in bulk. Most crucial thing is that HRMS is operated
and maintained by Crest itself, So it can save money on outsourcing the software and the
company can make all required changes according to their needs. Using the feature of filter
under employee directory HR and PMO team can filter out employees data they require based
on skills, previous experience and various other parameters.

P a g e 41 | 79
Human resource management system

10.BIBLIOGRAPHY

REFERENCES

o Binu M.B, Amaladevi V.C, “Web Programming Using PHP”, 2019.


o 2. HarvardX CS50W, “CS50's Web Programming with Python and
JavaScript”.
WEBSITES
• https://www.w3schools.com/
• https://getbootstrap.com/
• https://www.geeksforgeeks.org/
• https://mdbootstrap.com/
• https://courses.edx.org

P a g e 42 | 79
Human resource management system

APPENDIX
SOURCE CODES & SCREENSHOTS

PROGRAM CODE

LOGIN PAGE

<?php
$result ="";
if(isset($_GET['msg']))
{
$result=$_GET['msg'];
}
?>

<!DOCTYPE HTML>
<html>
<head>
<title>Login Page - HRM</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Pooled Responsive web template, Bootstrap Web
Templates, Flat Web Templates, Android Compatible web template,
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG,
SonyEricsson, Motorola web design" />
<script type="application/x-javascript"> addEventListener("load", function() {
setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />

P a g e 43 | 79
Human resource management system

<!-- Custom CSS -->


<link href="css/style.css" rel='stylesheet' type='text/css' />
<link rel="stylesheet" href="css/morris.css" type="text/css"/>
<!-- Graph CSS -->
<link href="css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" href="css/jquery-ui.css">
<!-- jQuery -->
<script src="js/jquery-2.1.4.min.js"></script>
<!-- //jQuery -->
<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400'
rel='stylesheet' type='text/css'/>
<link href='//fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet'
type='text/css'>
<!-- lined-icons -->
<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />
<!-- //lined-icons -->
<style>
html{
min-height: calc(100%);
width:calc(100%);
}
body, .main-wthree{
width:calc(100%);
min-height: 100vh;
}
.main-wthree{
padding-bottom:2em;
display:flex;
flex-direction: column;
align-items:center;
justify-content:center;
}
P a g e 44 | 79
Human resource management system

.footer{
width:100%;
position:fixed;
bottom:0;
left:0
}
.sin-w3-agile{
padding:0;
}
.login{
background-color: #010101;
background-image: linear-gradient(160deg, #010101 0%, #4e6865 100%);
}
.login-w3 {
width: 100%;
float: unset;
text-align: center;
}
.main-wthree input[type="submit"]:hover {
background: #3e5250;
}
</style>
</head>
<body>
<div class="main-wthree">
<div class="container">
<h1 class="text-center text-white">Human Resource Management
System</h1>
<div class="sin-w3-agile">
<h2>Login In</h2>
<form action="controller/login.php" method="post">
<div class="email">
P a g e 45 | 79
Human resource management system

<span class="email">Email:</span>
<input type="Email" name="name" class="name"
placeholder="Enter Email Address">
<div class="clearfix"></div>
</div>
<div class="password-agileits">
<span class="username">Password: <i class="fa fa-
eye-slash" aria-hidden="false" style="padding-left: 20px;"
onclick="passwordeyes(this);"></i></span>
<input type="password" name="password" id="Psw"
class="password" placeholder="Enter Password">
<div class="clearfix"></div>
</div>
<h4 style="color: #F1C40F;"><?php echo $result; ?></h4>

<div class="login-w3">
<input type="submit" name="submit" class="login"
value="Sign In">
</div>
<div class="clearfix"></div>
<h5 class="text-center"><a href="./user" class="text-white"
>Login as an Employee</a></h5>
<div class="clearfix"></div>
</form>
<!-- <div class="back">
<a href="index.php">Back to home</a>
</div> -->
<div class="footer">
<p>Human Resource Managemant System. All
Rights Reserved &copy; <?= date("Y") ?> </p>
</div>
</div>

P a g e 46 | 79
Human resource management system

</div>
</div>
<script>
function passwordeyes(_this) {
var x = document.getElementById("Psw").type;
if(x=="password"){
document.getElementById("Psw").type="text";
_this.setAttribute('class', "fa fa-eye")
}else{
document.getElementById("Psw").type="password";
_this.setAttribute('class', "fa fa-eye-slash")
}
}
</script>
</body>
</html>

<?php
/*current computer name get */
//$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
//echo $hostname;

/check to which op system/


/*if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
echo 'This is a server using Windows!';
} else {
echo 'This is a server not using Windows!';
}*/

/get to mac Address in windows system/


//--ob_start();
//Get the ipconfig details using system commond
P a g e 47 | 79
Human resource management system

//--system('ipconfig /all');

// Capture the output into a variable


//--$mycom=ob_get_contents();
// Clean (erase) the output buffer
//--ob_clean();

//--$findme = "Physical";
//Search the "Physical" | Find the position of Physical text
//--$pmac = strpos($mycom, $findme);

// Get Physical Address


//--$mac=substr($mycom,($pmac+36),17);
//Display Mac Address
//--echo $mac;

/* End mac system code*/

/* get current computer mac address */


//echo substr(exec('getmac'),0,17);

//echo substr("<br>40-8D-5C-B1-B7-7D \Device\Tcpip_{BF6495D7-04E6-4599-


99B0-FA6656B57D35}", 0,17)
?>

HOME PAGE

<?php include('header.php'); ?>


<?php
include_once('controller/connect.php');

$dbs = new database();


P a g e 48 | 79
Human resource management system

$db=$dbs->connection();
$TotalEmp =mysqli_query($db,"select count(EmployeeId) as emp from employee where
RoleId !='1' ");
$TotalEmploId = mysqli_fetch_assoc($TotalEmp);
$pandingleave = mysqli_query($db,"select count(LeaveStatus) as pleave from leavedetails
where LeaveStatus='Pending'");
$tpandingleave = mysqli_fetch_assoc($pandingleave);
?>

<ol class="breadcrumb" style="margin: 10px 0px ! important;">


<li class="breadcrumb-item" title="Home"><a href="index.php">Home</a></li>
</ol>
<!--four-grids here-->
<div class="row" style="">
<div class="col-lg-6 col-md-6 col-sm-12">
<div class="panel panel-default bg-light dash-
summary">
<div class="panel-body">
<a href="employeeview.php">
<div class="icon">
<i
class="glyphicon glyphicon-user" aria-hidden="true"></i>
</div>
<div class="four-text">

<h3>Employee</h3>
<h4><?php
echo(isset($TotalEmploId['emp']))?$TotalEmploId['emp']:"";?></h4>
</div>
</a>
</div>
</div>

P a g e 49 | 79
Human resource management system

</div>
<div class="col-lg-6 col-md-6 col-sm-12">
<div class="panel panel-default bg-light dash-
summary">
<div class="panel-body">
<a href="leaverequest.php">
<div class="icon">
<i
class="glyphicon glyphicon-list-alt" aria-hidden="true"></i>
</div>
<div class="four-text">
<h3>Leave
Request</h3>
<h4><?php
echo(isset($tpandingleave['pleave']))?$tpandingleave['pleave']:"";?></h4>
</div>
</a>
</div>
</div>
</div>
<!-- <div class="col-md-3 four-grid">
<div class="four-w3ls">
<div class="icon">
<i class="glyphicon glyphicon-
folder-open" aria-hidden="true"></i>
</div>
<div class="four-text">
<h3>Projects</h3>
<h4>12,430</h4>

</div>

P a g e 50 | 79
Human resource management system

</div>
</div> -->
<!-- <div class="col-md-3 four-grid">
<div class="four-wthree">
<div class="icon">
<i class="glyphicon glyphicon-
briefcase" aria-hidden="true"></i>
</div>
<div class="four-text">
<h3>Old Projects</h3>
<h4>14,430</h4>

</div>

</div>
</div> -->
<div class="clearfix"></div>
</div>
<!--//four-grids here-->

<?php include('footer.php'); ?>

ADD LEAVE

<?php include('header.php');?>
<?php
include_once('controller/connect.php');

$dbs = new database();


$db=$dbs->connection();
P a g e 51 | 79
Human resource management system

$empid = $_SESSION['User']['EmployeeId'];
$sql = mysqli_query($db,"select * from type_of_leave ");
$leavedetails = mysqli_query($db,"select * from leavedetails where EmpId='$empid' ");

if(isset($_POST['Apply']))
{
$leave = $_POST['leavestatus'];
$reason = $_POST['reason'];
$startdate = $_POST['startdate'];
$enddate = $_POST['enddate'];
$leavestatus = "Pending";
/date formate/
$date = str_replace('/', '-', $startdate);
$startd = date('Y-m-d', strtotime($date));
$datee = str_replace('/', '-', $enddate);
$endd = date('Y-m-d', strtotime($datee));
/end date formate/

mysqli_query($db,"insert into leavedetails


values(null,'$empid','$leave','$reason','$startd','$endd','$leavestatus')");
echo "<script>window.location='addleave.php';</script>";
}

?>
<ol class="breadcrumb" style="margin: 10px 0px ! important;">
<li class="breadcrumb-item"><a href="Home.php">Home</a><i class="fa fa-angle-
right"></i>Leave<i class="fa fa-angle-right"></i>Add Leave</li>
</ol>
<form method="POST">
<div class="container-fluid" style="margin-bottom: 30px;margin-top: 10px; background:
white;">
P a g e 52 | 79
Human resource management system

<div class="row">
<h2 style="color: #1abc9c;">Apply Leave</h2><hr>
<div class="col-md-5 control-label">
<label class="control-label">Type Leave</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-sun-o" aria-hidden="true"></i>
</span>
<select name="leavestatus" title="Select Leave" style="text-transform: capitalize; "
required>
<option value="">-- Select leave --</option>
<?php while($row = mysqli_fetch_assoc($sql)) { ?>
<option value="<?php echo $row['LeaveId']; ?>"><?php echo
$row['Type_of_Name'];?></option>
<?php } ?>
</select>
</div>
</div>
<div class="clearfix"> </div>
</div>
<div class="row">
<div class="col-md-5 control-label">
<label class="control-label">Reason</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-pencil" aria-hidden="true"></i>
</span>
<input type="text" name="reason" class="form-control" required="">
</div>
</div>
<div class="clearfix"> </div>
</div>
P a g e 53 | 79
Human resource management system

<div class="row">
<div class="col-md-5 control-label">
<label class="control-label">Start Date</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-calendar" aria-hidden="true"></i>
</span>
<input type="text" id="StartDate" title="Select First Date" name="startdate"
class="form-control" required="" onkeyup="if (/\D/g.test(this.value)) this.value =
this.value.replace(/\D/g,'')">
</div>
</div>
<div class="clearfix"> </div>
</div>

<div class="row">
<div class="col-md-5 control-label">
<label class="control-label">End Date</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-calendar" aria-hidden="true"></i>
</span>
<input type="text" id="EndDate" name="enddate" title="Select End Date"
class="form-control" required="" onkeyup="if (/\D/g.test(this.value)) this.value =
this.value.replace(/\D/g,'')">
</div>
</div>
<div class="clearfix"> </div>
</div>

<div class="row">
<div class="col-md-3 form-group">
P a g e 54 | 79
Human resource management system

<button type="submit" name="Apply" title="Apply" class="btn btn-


primary">Apply</button>
<button type="reset" class="btn btn-default" title="Reset">Reset</button>
</div>
<div class="clearfix"> </div>
</div>
</div>

<div class="validation-form" style="margin-bottom: 30px;margin-top: -10px; background:


white; ">
<h2>View Leave</h2>
<div class="row" style="color: white; margin-right: 0; margin-left: 0;">
<div style="background: red;" class="col-md-1 control-label">
<h5>ID</h5>
</div>
<div style="background: red;" class="col-md-2 control-label">
<h5>Leave Status</h5>
</div>
<div style="background: red; " class="col-md-2 control-label">
<h5>Reason</h5>
</div>
<div style="background: red;" class="col-md-2 control-label">
<h5>Start Date</h5>
</div>
<div style="background: red;" class="col-md-2 control-label">
<h5>End Date</h5>
</div>
<div style="background: red;" class="col-md-1 control-label">
<h5>Status</h5>
</div>
P a g e 55 | 79
Human resource management system

<div style="background: red; text-align: center;" class="col-md-2 control-label">


<h5>Action</h5>
</div>
</div>
<?php $i=1; while($rom = mysqli_fetch_assoc($leavedetails)) {
$typeid = $rom['TypesLeaveId'];
$typename = mysqli_query($db,"select * from type_of_leave where LeaveId='$typeid'
");
$typen = mysqli_fetch_assoc($typename); ?>
<div class="row" style="margin-right: 0; margin-top: 10px; margin-left: 0;">

<div class="col-md-1" ><?php $i=$i; echo $i; $i++;?></div>


<div class="col-md-2"><?php echo
ucfirst((isset($typen['Type_of_Name']))?$typen['Type_of_Name']:""); ?></div>
<div class="col-md-2" ><?php echo(isset($rom['Reason']))?$rom['Reason']:"";
?></div>
<div class="col-md-2"><?php echo(isset($rom['StateDate']))?$rom['StateDate']:"";
?></div>
<div class="col-md-2"><?php echo(isset($rom['EndDate']))?$rom['EndDate']:"";
?></div>
<div class="col-md-1"><?php
echo(isset($rom['LeaveStatus']))?$rom['LeaveStatus']:""; ?></div>

<?php if($rom['LeaveStatus'] == "Pending") {?>


<div class="col-md-2" style="text-align: center;"><a onclick="history.go(0)"
title="Refresh"><i class="la fa fa-refresh" style="color: #050100;" aria-
hidden="true"></i></a></div>
<?php } else if($rom['LeaveStatus'] == "Accept"){ ?>
<div class="col-md-2" style="text-align: center;"><a title="Accept"><i class="fa fa-
check" aria-hidden="true"> </i></a></div>
<?php } else {?>

P a g e 56 | 79
Human resource management system

<div class="col-md-2" style="text-align: center;"><a title="Denied"><i class="fa fa-


times" style="color:#E83114;" aria-hidden="true"> </i></a></div>
<?php } ?>
</div><hr>
<?php }?>
</div>

</form>
<!--Font Awesome spin icon it code-->
<script>
$(".la").mouseover(function (e)
{
$(this).removeClass('fa fa-refresh')
$(this).addClass('fa fa-refresh fa-spin')
}).mouseout(function (e)
{
$(this).removeClass('fa fa-refresh fa-spin')
$(this).addClass('fa fa-refresh')
})
</script>
<!--Font Awesome code End-->
<?php include('footer.php'); ?>

<script type="text/javascript">

$('#EndDate').datetimepicker({
yearOffset:0,
lang:'ch',
timepicker:false,
format:'d/m/Y',
formatDate:'Y/m/d',
P a g e 57 | 79
Human resource management system

minDate:'2015/01/01', // yesterday is minimum date


maxDate:'2030/01/01' // and tommorow is maximum date calendar
});

$('#StartDate').datetimepicker({
yearOffset:0,
lang:'ch',
timepicker:false,
format:'d/m/Y',
formatDate:'Y/m/d',
minDate:'2015/01/01', // yesterday is minimum date
maxDate:'2030/01/01' // and tommorow is maximum date calendar
});

</script>

ADD EMPLOYEE

<?php include('header.php'); ?>


<?php

$CountryId = 0;
$StateId = 0;
$CityId = 0;

include_once('controller/connect.php');
$dbs = new database();
$db=$dbs->connection();

//$cityn = mysqli_query($db,"select * from city ORDER BY Name");


//$staten = mysqli_query($db,"select * from state ORDER BY Name");
$countryn = mysqli_query($db,"select * from country ORDER BY Name");
P a g e 58 | 79
Human resource management system

$gendern = mysqli_query($db,"select * from gender ORDER BY Name");


$rolen = mysqli_query($db,"select * from role ORDER BY Name");
$statusn = mysqli_query($db,"select * from status ORDER BY Name");
$maritaln = mysqli_query($db,"select * from maritalstatus ORDER BY Name");
$positionn = mysqli_query($db,"select * from position ORDER BY Name");

$result ="";
$id="";
if(isset($_GET['msg']))
{
$result=$_GET['msg'];
}
else if(isset($_GET['id']))
{
$id=$_GET['id'];
}
else if (isset($_GET['empid']))
{
$empid = $_GET['empid'];
$editempid = mysqli_query($db,"SELECT e.*,ss.StateId,cc.CountryId FROM employee e
join city c on e.CityId=c.CityId join state ss on c.StateId=ss.StateId join country cc on
cc.CountryId=ss.CountryId where EmpId='$empid'");
$editemp = mysqli_fetch_assoc($editempid);
$CountryId = $editemp["CountryId"];
$StateId = $editemp['StateId'];
$CityId = $editemp['CityId'];
}
?>
<ol class="breadcrumb" style="margin: 10px 0px ! important;">
<li class="breadcrumb-item"><a href="Home.php">Home</a><i class="fa fa-angle-
right"></i>Employee<i class="fa fa-angle-right"></i> Employee Add</li>
</ol>
P a g e 59 | 79
Human resource management system

<!--grid-->
<div class="validation-system" style="margin-top: 0;">

<div class="validation-form">
<!---->
<form method="POST" action="controller/employee.php?empedit=<?php echo
isset($_GET['empid']) ? $_GET['empid'] : ''; ?>" enctype="multipart/form-data">
<?php
if($result)
{
echo '<h4 style="color: #FF0000;">'.$result.'</h4>';
}
else
{
echo '<h4 style="color: #008000;">'.$id.'</h4>';
}
?>
<div class="vali-form-group">
<div class="col-md-4 control-label">
<label class="control-label">Employee ID*</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-user" aria-hidden="true"></i>
</span>
<input type="text" name="empid" title="Employee ID" value="<?php
echo(isset($editemp["EmployeeId"]))?$editemp["EmployeeId"]:""; ?>" class="form-
control" placeholder="Employee ID" required="">
</div>
</div>

<div class="col-md-4 control-label">


P a g e 60 | 79
Human resource management system

<label class="control-label">Profile Image*</label>


<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-picture-o" aria-hidden="true"></i>
</span>
<input type="file" name="pfimg" title="Profile Image" class="form-control"
name="fileupload" >
</div>
</div>

<div class="col-md-4 control-label">


<label class="control-label">Gender*</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-male" aria-hidden="true"></i>
</span>
<select name="gender" title="Gender" required="" style="padding: 5px 5px; text-
transform: capitalize;"">
<option value="">-- Select Gender --</option>
<?php while($rw = mysqli_fetch_assoc($gendern)){ ?>
<option value="<?php echo $rw["GenderId"]; ?>" <?php
if(isset($editemp["Gender"]) && $editemp["Gender"]==$rw["GenderId"]){ echo
"Selected"; }?>> <?php echo $rw["Name"]; ?> </option>
<?php } ?>
</select>
</div>
</div>
</div>
<div class="clearfix"> </div>

<div class="vali-form-group">
<div class="col-md-4 control-label">
P a g e 61 | 79
Human resource management system

<label class="control-label">First Name*</label>


<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-user" aria-hidden="true"></i>
</span>
<input type="text" name="fname" title="First Name" value="<?php
echo(isset($editemp["FirstName"]))?$editemp["FirstName"]:""; ?>" class="form-control"
placeholder="First Name" required="">
</div>
</div>

<div class="col-md-4 control-label">


<label class="control-label">Middel Name*</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-user" aria-hidden="true"></i>
</span>
<input type="text" name="mname" title="Middel Name" value="<?php
echo(isset($editemp["MiddleName"]))?$editemp["MiddleName"]:""; ?>" class="form-
control" placeholder="Middel Name" required="">
</div>
</div>

<div class="col-md-4 control-label">


<label class="control-label">Last Name*</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-user" aria-hidden="true"></i>
</span>
<input type="text" name="lname" title="Last Name" value="<?php
echo(isset($editemp["LastName"]))?$editemp["LastName"]:""; ?>" class="form-control"
placeholder="Last Name" required="">

P a g e 62 | 79
Human resource management system

</div>
</div>
<div class="clearfix"> </div>
</div>

<div class="vali-form-group">
<div class="col-md-4 control-label">
<label class="control-label">Birth Date*</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-calendar" aria-hidden="true"></i>
</span>
<input type="text" id="Birthdate" title="Birth Date" name="bdate"
placeholder="Birth Date" onkeyup="if (/\D/g.test(this.value)) this.value =
this.value.replace(/\D/g,'')" value="<?php
echo(isset($editemp["Birthdate"]))?$editemp["Birthdate"]:""; ?>" class="form-control"
required="">
</div>
</div>

<div class="col-md-4 control-label">


<label class="control-label">Marital*</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-user" aria-hidden="true"></i>
</span>
<select name="marital" title="Marital" required="" style="text-transform:
capitalize;">
<option value="">-- Select Marital --</option>
<?php while($rw = mysqli_fetch_assoc($maritaln)){ ?>

P a g e 63 | 79
Human resource management system

<option value="<?php echo $rw["MaritalId"]; ?>" <?php


if(isset($editemp["MaritalStatus"]) && $editemp["MaritalStatus"]==$rw["MaritalId"]){
echo "Selected"; }?>> <?php echo $rw["Name"]; ?> </option>
<?php } ?>
</select>
</div>
</div>

<div class="col-md-4 control-label">


<label class="control-label">Mobile Number*</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-mobile" aria-hidden="true"></i>
</span>
<input type="text" name="mnumber" title="Mobile Number" value="<?php
echo(isset($editemp["Mobile"]))?$editemp["Mobile"]:""; ?>" class="form-control"
placeholder="Mobile Number" min="10" maxlength="10" onkeyup="if
(/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" required="">
</div>
</div>

</div>
<div class="clearfix"> </div>

<div class="col-md-12 control-label">


<label class="control-label">Address 1*</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-pencil " aria-hidden="true"></i>
</span>

P a g e 64 | 79
Human resource management system

<input type="text" name="address1" title="Address 1" value="<?php


echo(isset($editemp["Address1"]))?$editemp["Address1"]:""; ?>" class="form-control"
placeholder="Address Line 1" required="">
</div>
</div>
<div class="clearfix"> </div>

<div class="col-md-12 control-label">


<label class="control-label">Address 2*</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-pencil " aria-hidden="true"></i>
</span>

<input type="text" name="address2" title="Address 2" value="<?php


echo(isset($editemp["Address2"]))?$editemp["Address2"]:""; ?>" class="form-control"
placeholder="Address Line 2" required="">
</div>
</div>
<div class="clearfix"> </div>
<div class="col-md-12 control-label">
<label class="control-label">Address 3</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-pencil " aria-hidden="true"></i>
</span>
<input type="text" name="address3" title="Address 3" value="<?php
echo(isset($editemp["Address3"]))?$editemp["Address3"]:""; ?>" class="form-control"
placeholder="Address Line 3">
</div>
</div>
<div class="clearfix"> </div>

P a g e 65 | 79
Human resource management system

<div class="vali-form-group">
<div class="col-md-3 control-label">
<label class="control-label">Country*</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-globe" aria-hidden="true"></i>
</span>
<select name="country" id="contryid" title="Country" required=""
onchange="contrychange()" style="text-transform: capitalize;">
<option value="">-- Select Country --</option>
<?php while($rw = mysqli_fetch_assoc($countryn)){ ?>
<option value="<?php echo $rw["CountryId"]; ?>" <?php
if(isset($editemp["CountryId"]) && $editemp["CountryId"]==$rw["CountryId"]){ echo
"Selected"; }?>> <?php echo $rw["Name"]; ?> </option>
<?php } ?>
</select>
</div>
</div>

<div class="col-md-3 control-label">


<label class="control-label">State*</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-map-marker" aria-hidden="true"></i>
</span>
<select name="state" id="stateid" title="State" onchange="statechange()"
required="" style="text-transform: capitalize;">
<option value="">-- Select State --</option>
</select>
P a g e 66 | 79
Human resource management system

</div>
</div>

<div class="col-md-3 control-label">


<label class="control-label">City*</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-map-marker" aria-hidden="true"></i>
</span>
<select name="city" id="cityid" title="City" required="" style="text-transform:
capitalize;">
<option value="">-- Select City --</option>
</select>
</div>
</div>
<div class="clearfix"> </div>
</div>

<div class="vali-form-group">
<div class="col-md-3 control-label">
<label class="control-label">Join Date*</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-calendar" aria-hidden="true"></i>
</span>
<input type="text" id="JoinDate" title="Join Date" name="joindate"
placeholder="Join Date" value="<?php
echo(isset($editemp["JoinDate"]))?$editemp["JoinDate"]:""; ?>" class="form-control"
required="" onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')">
</div>
</div>

P a g e 67 | 79
Human resource management system

<div class="col-md-3 control-label">


<label class="control-label">Leave Date</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-calendar" aria-hidden="true"></i>
</span>
<input type="text" id="LeaveDate" title="Leave Date" name="leavedate"
placeholder="Leave Date" value="<?php
echo(isset($editemp["LeaveDate"]))?$editemp["LeaveDate"]:""; ?>" class="form-control"
onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')">
</div>
</div>

<div class="col-md-3 control-label">


<label class="control-label">Status</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-map-marker" aria-hidden="true"></i>
</span>
<select name="status" title="Status" required="" style="text-transform:
capitalize;">
<option value="">-- Select Status --</option>
<?php while($rw = mysqli_fetch_assoc($statusn)){ ?>
<option value="<?php echo $rw["StatusId"]; ?>" <?php
if(isset($editemp["StatusId"]) && $editemp["StatusId"]==$rw["StatusId"]){ echo
"Selected"; }?>> <?php echo $rw["Name"]; ?> </option>
<?php } ?>
</select>
</div>
</div>

<div class="col-md-3 control-label">

P a g e 68 | 79
Human resource management system

<label class="control-label">Role*</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-user" aria-hidden="true"></i>
</span>
<select name="role" required="" title="Role" style="text-transform: capitalize;" >
<option value="">-- Select Role --</option>
<?php while($rw = mysqli_fetch_assoc($rolen)){ ?>
<option value="<?php echo $rw["RoleId"]; ?>" <?php
if(isset($editemp["RoleId"]) && $editemp["RoleId"]==$rw["RoleId"]){ echo "Selected";
}?>> <?php echo $rw["Name"]; ?> </option>
<?php } ?>
</select>
</div>
</div>
<div class="clearfix"> </div>
</div>

<div class="vali-form-group">
<div class="col-md-3 control-label">
<label class="control-label">Position*</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-language" aria-hidden="true"></i>
</span>
<select name="position" title="Position" style="text-transform: capitalize;"
required="">
<option value="">-- Select Position --</option>
<?php while($rw = mysqli_fetch_assoc($positionn)){ ?>
<option value="<?php echo $rw["PositinId"]; ?>" <?php
if(isset($editemp["PositionId"]) && $editemp["PositionId"]==$rw["PositinId"]){ echo
"Selected"; }?>> <?php echo $rw["Name"]; ?> </option>
P a g e 69 | 79
Human resource management system

<?php } ?>
</select>
</div>
</div>

<div class="col-md-3 control-label">


<label class="control-label">Email*</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-envelope" aria-hidden="true"></i>
</span>
<input type="email" name="email" title="Email" value="<?php
echo(isset($editemp["Email"]))?$editemp["Email"]:""; ?>" class="form-control"
placeholder="Email Address" required="">
</div>
</div>

<div class="col-md-3 control-label">


<label class="control-label">Password*</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-pencil" aria-hidden="true"></i>
</span>
<input type="password" id="Psw" title="Password" value="<?php
echo(isset($editemp["Password"]))?$editemp["Password"]:""; ?>" name="password"
placeholder="Password " class="form-control" required="">
<span class="input-group-addon">
<a><i class='fa fa-eye' aria-hidden='false' onclick="passwordeyes()"></i></a>
</span>
</div>
</div>

P a g e 70 | 79
Human resource management system

<div class="clearfix"> </div>


</div>
<div class="col-md-12 form-group">
<button type="submit" name="submit" class="btn btn-primary">Submit</button>
<button type="reset" class="btn btn-default">Reset</button>
<input type="text" name="imagefilename" hidden="" value="<?php
echo(isset($editemp['ImageName']))?$editemp['ImageName']:''; ?>">
</div>
<div class="clearfix"> </div>
</form>
<!---->
</div>
</div>
<script>
function passwordeyes() {
var x = document.getElementById("Psw").type;
if(x=="password")
document.getElementById("Psw").type="text";
else
document.getElementById("Psw").type="password";
}

</script>
<script>
var OneStepBack;
function nmac(val,e){
if(e.keyCode!=8)
{
if(val.length==2)
document.getElementById("mac").value = val+"-";
if(val.length==5)
document.getElementById("mac").value = val+"-";
P a g e 71 | 79
Human resource management system

if(val.length==8)
document.getElementById("mac").value = val+"-";
if(val.length==11)
document.getElementById("mac").value = val+"-";
if(val.length==14)
{
document.getElementById("mac").value = val+"-";
}
}
}

function nmac1(val,e){
if(e.keyCode==32){
return false;
}

if(e.keyCode!=8){

if(val.length==2)
document.getElementById("mac").value = val+"-";
if(val.length==5)
document.getElementById("mac").value = val+"-";
if(val.length==8)
document.getElementById("mac").value = val+"-";
if(val.length==11)
document.getElementById("mac").value = val+"-";
if(val.length==14){
document.getElementById("mac").value = val+"-";
}

if(val.length==17){
return false;
P a g e 72 | 79
Human resource management system

}
}
}
</script>
<script>
contrychange();
function contrychange()
{
var selectedstateid = "<?php echo $StateId; ?>";
var selectedstateid = parseInt(selectedstateid);

var selectedcountry = $('#contryid').val();

$.get("controller/getstatecity.php?Type=s&ci="+selectedcountry+"&ss="+selectedstateid,fu
nction(data,status){
$("#stateid").html(data);
});
statechange(selectedstateid);
}
function statechange(si)
{

var selectedstate = $('#stateid').val();


if(si!=undefined)
selectedstate=si;

var selectedcityid = "<?php echo $CityId; ?>";


selectedcityid = parseInt(selectedcityid);

$.get("controller/getstatecity.php?Type=c&si="+selectedstate+"&sc="+selectedcityid,functi
on(data,status){
P a g e 73 | 79
Human resource management system

$("#cityid").html(data);
});
}
</script>

<script>

var birthdate = $('#Birthdate').val();


var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1;
var yy = today.getFullYear();
var tdate = yy+"/"+mm+"/"+dd;

$('#Birthdate').datetimepicker({
yearOffset:0,
lang:'ch',
timepicker:false,
format:'Y/m/d',
formatDate:'Y/m/d',
//minDate:'-1980/01/01', // yesterday is minimum date
maxDate: tdate // and tommorow is maximum date calendar
});

$('#JoinDate').datetimepicker({
yearOffset:0,
lang:'ch',
timepicker:false,
format:'Y/m/d',
formatDate:'Y/m/d',
//minDate:'-1980/01/01', // yesterday is minimum date
//maxDate: tdate // and tommorow is maximum date calendar
P a g e 74 | 79
Human resource management system

});

$('#LeaveDate').datetimepicker({
yearOffset:0,
lang:'ch',
timepicker:false,
format:'Y/m/d',
formatDate:'Y/m/d',
//minDate:'-1980/01/01', // yesterday is minimum date
//maxDate: tdate // and tommorow is maximum date calendar
});

</script>
<?php include('footer.php'); ?>

P a g e 75 | 79
Human resource management system

SCREENSHOTS

HOME PAGE

EMPLOYEE VIEW

P a g e 76 | 79
Human resource management system

ADD EMPLOYEE

LEAVE REQUEST

P a g e 77 | 79
Human resource management system

VIEW PROFILE

EMPLOYEE LOGIN

P a g e 78 | 79
Human resource management system

EMPLOYEE HOME PAGE

APPLY LEAVE

P a g e 79 | 79

You might also like