Mini Report PDF
Mini Report PDF
MANAGEMENT SYSTEM
Submitted for the partial fulfilment of the requirements for the award of the Degree of
At
KOTTAYAM, KERALA
By
Reg. No : 200021031177
KOTTAYAM, KERALA
P a g e 1 | 79
Human resource management system
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 :
Examiner 1: Examiner: 2
P a g e 2 | 79
Human resource management system
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.
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
P a g e 5 | 79
Human resource management system
CONTENTS
1.INTRODUCTION ------------------------------------------
INTRODUCTION
P a g e 6 | 79
Human resource management system
We are confident that this software package can be readily used by non-programming
personal avoiding human handled chance of error.
I. Employee
II. HR manager
FRONTEND
PHP:
PHP is a recursive acronym for "PHP: Hypertext Preprocessor" and is a widely-used, open
source scripting language.
• PHP scripts are executed on the server and is free to download and use.
P a g e 7 | 79
Human resource management system
• 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.
XAAMP:
HTML:
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:
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
P a g e 10 | 79
Human resource management system
2.SYSTEM ANALYSIS
System study is in detailed analysis of various operations and their relationship within and
outside the system. It is the first step in.
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 normal software has only the number of employees, their working hour, there
duty assigned etc.
• 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 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
• If we want to edit the data we written, we have to rewrite the whole page
• The data integrity will be lost. There is a chance for the duplication of data
Key Features
• Easy communication
• Daily schedules
• Online meetings
• Centralized file storage system
• Employee can access the data anywhere using the software
P a g e 13 | 79
Human resource management system
• Accurate attendance taking by the records from the identity card puncher
Admin - Features
Admin has overall control of the system. The main features of admin module are given
below.
Employee - Features
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
. 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.
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
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 cost of hardware and software for the class application of the project.
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.
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.
MACHINE - PENTIUM 4
P a g e 18 | 79
Human resource management system
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.
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
• Multitasking
• Multiprocessing
• Platform independence
• Enhanced scalability
• Multi-user environment
• Communication
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.
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.
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.
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.
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.
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
• Decomposed data flow squares and circles can have same names. Choose meaningful
names for data flow.
DFD Symbols
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)
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 TASK
USER
VIEW DEADLINE
AFTER USER LOGIN
P a g e 29 | 79
Human resource management system
• 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
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
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.
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,
• 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
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.
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.
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.
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,
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.
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.
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
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
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
.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 © <?= 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;
//--system('ipconfig /all');
//--$findme = "Physical";
//Search the "Physical" | Find the position of Physical text
//--$pmac = strpos($mycom, $findme);
HOME PAGE
$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);
?>
<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-->
ADD LEAVE
<?php include('header.php');?>
<?php
include_once('controller/connect.php');
$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/
?>
<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
P a g e 56 | 79
Human resource management system
</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
$('#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
$CountryId = 0;
$StateId = 0;
$CityId = 0;
include_once('controller/connect.php');
$dbs = new database();
$db=$dbs->connection();
$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="vali-form-group">
<div class="col-md-4 control-label">
P a g e 61 | 79
Human resource management system
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>
P a g e 63 | 79
Human resource management system
</div>
<div class="clearfix"> </div>
P a g e 64 | 79
Human resource management system
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>
</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
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>
P a g e 70 | 79
Human resource management system
</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);
$.get("controller/getstatecity.php?Type=s&ci="+selectedcountry+"&ss="+selectedstateid,fu
nction(data,status){
$("#stateid").html(data);
});
statechange(selectedstateid);
}
function statechange(si)
{
$.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>
$('#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
APPLY LEAVE
P a g e 79 | 79