Web Based Employee Management System
Web Based Employee Management System
by
ELIUS ANSARI
i
This project titled “WEB BASED EMPLOYEE MANAGEMENT SYSTEM” submitted by
Elius Ansari, Roll No: 1014311021, Session: October/2014, has been accepted as satisfactory
in partial fulfilment of the requirements for the degree of Post Graduate Diploma in Information
and Communication Technology on 23 September, 2019.
Board of Examiners
ii
iii
Dedicated
To
My Parents and Family Members
iv
TABLE OF CONTENT
CHAPTER-I: INTRODUCTION
1.1 Introduction 01
1.2 Objectives with specific aims and possible outcome 01
1.2.1 Objectives with specific aims 01
1.2.2 Possible outcomes: 01
1.3 Organization of the Project Report 02
v
CHAPTER-III: SYSTEM DESIGN
vi
CHAPTER-IV: IMPLEMENTATION AND FINDINGS
4.1 Implementation 23
Approaches to project implementation:
4.2 23
4.3 Reports and Findings 24
4.4 Description of the developed software 24
4.4.1 HR CPanel 24
4.4.2 System Admin Control Panel 25
4.4.3 Employee Login Page 25
4.4.4 HR Dashboard 26
4.4.5 Employee Enrolment Form 26
4.4.6 Leave Settings 27
4.4.7 Leave Apply 27
4.5 Chapter Summary 28
CHAPTER-V: CONCLUSION
CHAPTER-IV: IMPLEMENTATION AND FINDINGS
5.1
4.1 Project Summary
Implementation 29
39
4.2 5.1.1
Input Strengths
and Outputof the Project 40
29
4.3 Reports
5.1.2 and Findings
Limitations 40
29
4.4 Description of the developed software 41
5.1.3 Challenges 29
4.5 Chapter Summery 44
5.2 Conclusion 30
5.3 Recommendation 30
5.4 Future Works 31
References 32
Appendix 33
vii
LIST OF FIGURES
viii
ABBREVIATION & KEY TERMS
ix
Acknowledgement
At first I would like to convey my gratitude to Almighty Allah for giving me the opportunity
to accomplish this project. I would like to thank my supervisor Dr. Md. Rubaiyat Hossain
Mondal, Associate Professor, Institute of Information and Communication Technology (IICT),
Bangladesh University of Engineering and Technology (BUET), Dhaka, Bangladesh. He has
assigned me an interesting and useful area, which has an extensive range of relevance in real
world. He has provided all sorts of support regarding the project work. Without his proper
guidance, advice, continual encouragement and active involvement in this process of this work,
it would have not been feasible.
I am indebted to all the teachers, officers and staffs of Information and Communication
Technology (IICT) for giving me their kind support and information during the study. I am
also grateful to my parents whose continuous support all over my life has brought me this far
in my career.
Finally, I tender special thanks to the Almighty that I have been successful in my effort to
complete the study.
x
Abstract
In developing or underdeveloped countries, many offices use 1 copy paper documents for
office management including employee management. This means a lot of file work, wastage
of money, space ect. This creates inefficiency in work too. For example, in order to for leave,
an employee has to collect the hard copy application form then fill it up and submit to the
human resources (HR) or administrative department. After being checked and approved, the
data of the application is usually entered into the attendance sheet and also into the job file of
the respective applicant. This process can be time consuming according to the HR policy of
any organization.
The attendance process also very time consuming as because manual entry has to done for
every employee for the daily attendance. There is also a chance of entering fake entry and data
manipulation which may cause misunderstanding and financial loose for the organization.
With the concept of digitalization, the papers and other documents can be made digital and the
flow of information can be done via online. This will make the management of employees
easier. The employees will aslo get benefit in their task such as leave application, attending
training, applying for no objection certificate (NOC) for passports, receiving task notification
through emails and SMS etc. Although there are many offices management software in many
countries, a number of offices still need such system. This project focuses on the development
of web based employee management system.
xi
xii
CHAPTER-I
Introduction
1.1 Introduction
In developing or underdeveloped countries, many offices use 1 copy paper documents for
office management including employee management [1-3]. This means a lot of file work,
wastage of money, space ect. This creates inefficiency in work too [4-6]. For example, in order
to for leave, an employee has to collect the hard copy application form then fill it up and submit
to the human resources (HR) or administrative department. After being checked and approved,
the data of the application is usually entered into the attendance sheet and also into the job file
of the respective applicant. This process can be time consuming according to the HR policy of
any organization.
The attendance process also very time consuming as because manual entry has to done for
every employee for the daily attendance. There is also a chance of entering fake entry and data
manipulation which may cause misunderstanding and financial loose for the organization.
With the concept of digitalization, the papers and other documents can be made digital and the
flow of information can be done via online. This will make the management of employees
easier. The employees will aslo get benefit in their task such as leave application, attending
training, applying for no objection certificate (NOC) for passports, receiving task notification
through emails and SMS etc. Although there are many offices management software in many
countries, a number of offices still need such system. This project focuses on the development
of web based employee management system.
Chapter 1 describes the objectives of the project. Chapter 2 describes about the system study
and requirement analysis. The system design and development is presented in Chapter 3. In
Chapter 4, a description is provided for the implementation of the system. Chapter 5 describes
project strength, limitations and challenges of the project, conclusion and recommendations for
future works of the system.
2
CHAPTER-II
System Study and Requirement Analysis
This project was developed following a number of stages including feasibility study, planning,
requirement analysis, process flow and implementation. These stages are described in the
following.
An employee management system is a useful tool for business owners, HR professionals, and
managers alike because it organizes and streamlines team management. These systems can
range from onboarding and payroll to performance and time off tracking, but should have the
essential HR features covered. The key is to find a system that not only works well for your
team, but one that also saves you time, headaches, and money.
A web-based employee management system helps you be more efficient with your time, and
reduces the time your team spends on repetitive, administrative tasks.
Having an employee management system in place means you can access all the essential
information about your team, projects, and clients from a single dashboard.
This centralized insight is what every good employee management system should offer. Plus,
you should also look for a system that provides:
3
2.2 Planning
2.3 Scope
It’s that part of the project planning which determines and documents what are the project
goals, deliverables, tasks, costs and deadlines. This way you can begin to define the boundaries
of your project and figure out what responsibilities you will task your team with, and the action
plan by which that work will be delivered and approved.
4. Email notification
5. Online Reports
4
2.4 Methodology
The methodology is where you describe how you will meet your project's objectives. In
methodology you demonstrate your project's feasibility by detailing your knowledge and
resources that will be drawn upon to complete the project. The following steps are followed to
develop the web based employee management system for any business organization.
1. First of all, requirement analysis has been done according the HR and Admin process
of any business organization. The 'software requirements specifications (SRS)' has
been prepared.
2. The data flow diagram (DFD) and entity relationship diagram (ERD) has been prepared.
After completing the database design, user interfaces/forms were designed for different
tasks such as online registration form, application status view for the employees.Next,
the web based software was developed using Hypertext Preprocessor (PHP) as the
dynamic scripting language. In the front end of the software, HyperText Markup
Language (HTML), jQuery and Cascading Style Sheets (CSS) were used. MySQL was
used as the database. In addition, fpdf library was used for generating printable reports.
3. After the development of the software, thorough testing was done with practical use
case scenarios.
5
2.5.3 Architecture of web Application:
The following architecture was followed for the proposed project.
(1) The Client Side- A client, i.e. the computer, laptop, mobile etc. which requests the
resources, through the internet with a user interface (typically a web browser) for presentation
purposes.
(2) The Admin Side- Admin is also a client, i.e. the computer, laptop, mobile etc. which
requests the resources, through the internet with a user interface (typically a web browser) for
creating, updating and deleting information.
(3) The Web Server- Almost all of the works of web application take place on the server. A
specific application, called a web server, is responsible for authentication, authorization and
secure communication channel with the browser. A relational-database server stores whatever
information the application requires.
(4) The Application Server/Middleware- The application server is also called middleware,
whose assignment it is to provide the requested resources, but by calling on another server.
PHP belongs to a class of languages known as middleware.
These languages work closely with the Web server to interpret the requests made from the
World Wide Web (WWW), process these requests, interact with other programs on the server
to fulfill the requests, and then pass the web server exactly what to serve to the client’s browser.
6
CHAPTER-III
System Design and Development
7
- Confirm Leave
- Search Leave Balance
- Search Leave History
- Change Password.
- Get Notification and feedback
- Get Different kinds of reports
System Admin User - Enter Department,
- Enter Designation,
- Enter Job Level,
- Enter Job Location,
- Enter Shift,
- Enter Bank;
- Register employees in Leave System.
- Assign ID and Password for Leave System
- Leave Settings
- Control, monitoring and supervision
8
3.3 System Architecture
The overall system architecture is shown below:
1
Add Employee
Get Resignation
6
7
Promotion
Get Promotion
WEB BASED EMPLOYEE MANAGEMENT SYSTEM
9 8
Add Attendance
14 Leave Apply
APACHE WEB SERVER
17
18 Form
Leave Confirmation
View Reports
24
9
25
MYSQL DATABASE
Add Department
Add Bank
10
3.4 Data Flow Diagram (DFD)
A DFD describes the movement of data between external entities and the processes and data
stores within the system. The elements required for the system and their changes are
represented by DFD.
11
3.5.3 Front End and Back End Design of the Proposed System
The web based software will be developed using PHP as the dynamic scripting language. In
the front end of the software, HTML, jQuery and CSS will be used. MySQL will be used as
the database in the back end. In addition, fpdf library will be used for generating printable
reports.
3.6 Database
Database systems are designed to manage large bodies of information. Defining structures for
storage of information and proving mechanisms for the manipulation of information are
included in management of data. In addition, the safety of the information stored must ensure
by the database system, despite system crashes attempts to unauthorized access. The system
must avoid possible anomalies result, if data are to be shared among several users.
A database management system (DBMS) is a collection of interrelated data and a set of
programs to access those data. The collection of data usually refers to the database, containing
information relevant to an enterprise. The primary goal of a database is to provide a way to
store and retrieve database information that is both convenient and efficient. [8]
12
relations with individual things. It can provide sharable, stable, and organized structure of
information requirements or knowledge for the domain context.
3.7.1 Concept of Information Modeling
The first step of information modeling is to precisely choose that part of reality, which is of
interest. This is known as Entity. Entity defines another parameter. Entities are atomic that they
are invisible. The parameters of entity are known as attributes. Attributes are known as
quantum of information, which describes the entity entirely.
The second step in information modeling is relationship among entities. It is the most important
in making sense of the entity and inter-entity relationship. The relationship is the information,
which links two entities. The relationship can be of four categories:
One-to-One (1:1) –One instance of the first entity can correspond to only one instance
of the second entity. It is known as binary relationship.
1:1
One-to-Many(1:M) – One instance of the first entity can correspond to more than
one of the second entity.
1:m
Many-to-One (M:1) – More than one instance of the first entity can corresponds
to the same one instance of the second entity
m:1
Many-to-Many (M:M) – More than one instance of the first entity can
correspond to more than one instance of the second entity.
m:m
13
Fig-3.5: Many-to-Many Relation
Data modeling is the process of creating a data model for the data to be stored in a Database.
This data model is a conceptual representation of
Data objects
The associations between different data objects
The rules.
Data modeling helps in the visual representation of data and enforces business rules, regulatory
compliances, and government policies on the data. Data Models ensure consistency in naming
conventions, default values, semantics, and security while ensuring quality of the data.
Data model emphasizes on what data is needed and how it should be organized instead of what
operations need to be performed on the data. Data Model is like architect's building plan which
helps to build a conceptual model and set the relationship between data items.
14
Object-Oriented Data Model
Object-Relational Data Model
Hierarchical Data Model
Network Data Model
dailyattendanceTable: This table contains five columns (attndsysid, employeeid, date, intime,
outtime)
Sl Field Type
1 attndsysid int(100)
2 employeeid int(100)
3 date varchar(100)
4 intime varchar(100)
5 outtime varchar(100)
15
degree Table: This table contains two columns (degreeid, degreename)
Sl Field Type
1 degreeid int(10)
2 degreename varchar(10)
Sl Field Type
1 departmentsysid int(10)
2 departmentcode varchar(10)
3 departmentname varchar(100)
Sl Field Type
1 designationsysid int(10)
2 designation varchar(10)
3 designationcode varchar(100)
16
employeeeducationalinfo Table: This table contains nine columns (empsysid, employeeid,
department, shift, joblevel, companydesignation, joblocation, reportingpersoneel, status)
Sl Field Type
1 holidayname varchar(30)
2 holidaydescription varchar(30)
3 days varchar(10)
Sl Field Type
1 holidayname varchar(30)
2 holidaydescription varchar(30)
3 days varchar(10)
17
joblevel Table: This table contains two columns (joblevelsysid, joblevelname)
Sl Field Type
1 joblevelsysid int(100)
2 joblevelname varchar(100)
Sl Field Type
1 joblocationsysid int(100)
2 joblocationcode varchar(100)
3 joblocationname varchar(100)
leaveapplyinfo Table: This table contains eleven columns (leaveid, leavetype, applicationdate,
fromdate, todate, numberofdays, userid, reportingid, hrid, username, status)
Sl Field Type
1 joblocationsysid int(100)
2 joblocationcode varchar(100)
3 joblocationname varchar(100)
18
userbasicinfo Table: This table contains twelve columns (userid, password, employecode,
username, department, gender, joblocation, reportingid, hrid, email, reportingemail, priviledge)
19
Explorer(IE) any side of the safer, flexible and reliable browsing
version software. experience with enhanced web privacy
features for all users. A freeware web
browser developed by Google is Google
Chrome. It used the WebKit layout engine
until version 27 and, with the exception of
its iOS releases, from version 28 and beyond
uses the WebKit fork Blink.
Web Server: Created by The web server WampServer is a Windows web
Wamp Server- Romain specified here is development environment. It allows us to
2.4.23 Bourdon required as the create web applications with Apache2, PHP
provider of the and a MySQL database. Alongside,
client software at PhpMyAdmin allows us to manage easily
the server site. our databases. A software stack denotes by
WampServer for the Microsoft Windows
operating system, created by Romain
Bourdon and consisting of the Apache web
server, OpenSSL for SSL support, MySQL
database and PHP programming language.
Web PHP Group. PHP is used for PHP is a mostly-used general-purpose
Development: server-side web scripting language that has improved object-
PHP-5.6.25 development PHP oriented capabilities especially suited for
generally runs on a web development and can be embedded into
web server which HTML
work with MySQL
database and
Apache server.
Name & Source Purpose Definition of the Interface
Version
Database: MySQL. Required as MySQL is the world's most popular and
MySQL-5.7.14 relational database powerful open source relational database
server. software, with over 100 million copies of its
software downloaded or distributed
throughout its history. With flexibility,
superior speed, reliability, and ease of use,
MySQL has become the preferred choice of
corporate IT managers because it eliminates
20
the major problems associated with
downtime, maintenance, administration and
support.
User Interface Macromedia The web Macromedia Dreamweaver is professional
Design: Inc. development tool HTML editor tool, enabling users to
Macromedia specified here is efficiently design, coding, develop and
Dreamweaver required for maintain standards websites and
8.0 designing and applications.
coding of the
software.
A test case for the testing of proposed software project is represented below:
Project Name: Web Based Employee Management System
Sample Test Case
Test Case ID: 0856 Test Designed By: Mr. X.
Test Priority: Medium Test Design Date: 10.09.2019
Module Name: System Login Screen Test Executed By: Mr. Y
Test Title: Verify Login with valid User_ID and Test Execution Date: 10.09.2019
Password
Description: Test the System Admin Login Page
21
3.12 Chapter Summery
This chapter described the whole process of the system. The design, development and testing
of the system is explained in details. Step by step analysis and designing technique of this
system is described. This chapter has also focused on the software testing process and the
relationship between the table.
22
CHAPTER-IV
Implementation and Findings
4.1 Implementation
Project implementation consists of carrying out the activities with the aim of delivering the
outputs and monitoring progress compared to the work plan. Monitoring can be defined as
control of the project implementation in order to keep the project on track and achieve the
end results of the project.
The implementation phase is where you and your project team actually do the project work to
produce the deliverables. The word “deliverable” means anything your project delivers. The
deliverables for your project include all of the products or services that you and your team are
performing for the client, customer, or sponsor, including all the project management
documents that you put together.
There are a variety of options that a project manager could consider when implementing a
solution. These implementation choices available to a project manager are:
Parallel implementation
Phased implementation
Crash implementation
Parallel implementation
Phased implementation
Sometimes trying to implement a solution all at once is not feasible because many clients have
essential operations that run during normal working hours and cannot afford the luxury of
having their entire operation close down for a lengthy period in time. This is why many clients
approve of a phased implementation approach, and the project team must ensure that the phased
implementation is possible. This approach involves implementing the solution to a certain
amount of users and then rolling them onto the new solution, while the rest of the users are
rolled out in a similar fashion until the entire solution is rolled out within the client
environment.
23
Crash implementation
Careful planning needs to take place when considering a crash (also known as full-blown)
implementation. It takes an incredible amount of planning and re-planning to ensure no
problems arise.
4.4.1 HR CPanel
Executive of HR and admin has to login into the system form this page. This page will
redirect the user to the Dashboard where the admin can perform his or her different
administrative operations.
Admin of this software can login into this system by this page. A system admin is the admin
of this software who can audit the software and can update the software.
General employees of the organization can login into the system to take their leave and other
information form the system by this login panel.
25
4.4.4 HR Dashboard
HR and Admin executive of the system will be redirected to this page after successful login.
From this page admin can perform his or her different types of administrative oprations.
26
4.4.6 Leave Settings
Admin of the system will use this page to set different types of option for the leave module.
Employees can apply their leave from this page. They can also view their leave reports.
27
4.5 Chapter Summary
This chapter has explained implementation of the project at the very beginning. Then it has
described probable input and output of the proposed system. Finally, most possible reports and
findings from the system have been elaborated.
28
CHAPTER-V
Conclusion and Recommendation
5.1.2 Limitations
Each and every system around the world has some limitations. The proposed system has some
limitations too. Some of the limitations are as follows:
Every organization has their own HR Policy and practice, so the designed system may
not cover all the requirements of any business organization.
5.1.3 Challenges
The major challenges to implement the proposed system are as follows:
Integration with attendance machine
Adaptability
Security and Support
Monitoring, Supervision, Control and Up gradation
Awareness, Training, etc.
29
5.2 Conclusion
With the concept of digitalization, the papers and other documents can be made digital and the
flow of information can be done via online. This will make the management of employees
easier. The employees will aslo get benefit in their task such as leave application, attending
training, applying for no objection certificate (NOC) for passports, receiving task notification
through emails and SMS etc. Although there are many offices management software in many
countries, a number of offices still need such system. This project focuses on the development
of web based employee management system.
The web based software has been developed using Hypertext Preprocessor (PHP) as the
dynamic scripting language. In the front end of the software, HyperText Markup Language
(HTML), jQuery and Cascading Style Sheets (CSS) have been used. MySQL has been used as
the database. In addition, fpdf library have been used for generating printable reports. This
system acts as an easy communication between food product manufacturers and food quality
certification authority. During the overall process, SMS and Email reply, notification and
feedback status create applicant gratification. The developed system is a user-friendly system
in many aspects
5.3 Recommendation
There are some important observations regarding the developed web based system for web
based employee management system The recommendations are stated below:
(i) Power and data backup for smooth performance.
(ii) Maintenance, supports and security issues
(iii) Java programming language can be used instead of PHP programming due to
its platform independency.
(iv) In this software, there is no way to reset password at the user end. So, Password
recovery can be added for better performance.
(v) This software is only tested for some medium scale scenarios. If anyone wants
to implement it in a large-scale, Oracle can be used instead of MySQL for better
performance.
30
5.4 Future Work
Possible future work related to the developed system are outlined below:
Mobile Apps Development
Integration with other existing system.
System up gradation based on user needs.
Technological Development
Implementation in broad scale to cover more HR and Admin practice in the
organization.
31
References
[1] Arthur. J.B., “Effects of human resources system or manufacturing performance and
turnover”, Academy of Management Journal, Vol. 37 no. 3, pp. 670-87, 1994.
[2] Basheer, M.K and Raghu, C.V, “Fingerprint Attendance System for Classroom needs”, in
proc. Indian Conference(INDICON), pp 433-438, 7-9 Dec.2012.
[3] Maciaszek, L., “Requirement Analysis and System Design, Addison Wesley”, 3rd edition,
2007.
[4] Walker. R., “Achieving The Paperless Office”, Efficient Technology Inc., 2009-08-07.
[5] Sellen, A, J., and Harper, R. H. R. “The myth of the paperless Office”. Cambridge,
Massachusettes: MIT Press, 2003.
[6] Kaliannan, M., Adjovu, S. N., “Effective Emploee Engagement and Organizational
Success: A Case Study”, Procedia-Social and Behavioral Sciences, Vol. 172, pp. 161-168,
2015.
[7] Khalifa, M,. and Verner, J.M., “Drivers for software development method usage,” in
IEEE Transactions on Engineering Management, Vol. 47, no 3, pp. 360-369, Aug,2000.
[10] https://www.investopedia.com/terms/f/feasibility-study.asp
[11] https://www.tutorialspoint.com/software_engineering/
software_project_management.htm
[12] https://www.projectmanager.com/blog/project-scope
[13] https://en.wikipedia.org/wiki/Information_model
[14] https://www.guru99.com/data-modelling-conceptual-logical.html
[15] https://pmtips.net/article/project-implementation-approaches
32
Appendix: Code Segment of the Developed Software
Dashboard
<?php
include ('emsmethod.php');
include ('emsconfig.php');
session_start();
if(!isset($_SESSION['adminusername']))
{
header('location:cpanel.php');
}
else{
$admininfo=$obj-
>GetAdminInfoByAdminUserId("emsadmin",$_SESSION['adminusername']);
if($admininfo==!0)
{
foreach($admininfo as $adminsingleinfo)
{
extract($adminsingleinfo);
}
//echo $adminname;
//echo $employeecode;
}
?>
<!---------------------------START HTML----------------------------------->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!----------------------START EXTARNAL LINK------------------------------->
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="bootstrap-3.2.0/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="bootstrap-3.2.0/dist/css/bootstrap-
theme.min.css">
<link rel="stylesheet" href="jquery-1.11.3.js">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css
">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></sc
ript>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"><
/script>
<link rel="stylesheet" href="bootstrap/css/bootstrap-responsive.css">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-
awesome.min.css" rel="stylesheet">
33
<!---------------------------END LINK------------------------------------->
<body>
<!-------------------START HTML------------------------------------------->
<!---------------------START PAGE CONTAINER------------------------------->
<div class="container-fluid">
<!--------------------Top Navigation Bar--------------------------------->
<div class="navbar">
<div class="navbar-inner" style="height:15px;" >
<ul class="nav" >
<li style="position:relative;bottom:15px;">
<b><H2>
&nb
sp;
&nb
sp;
</div>
</div>
<!-----------END Top Navigation Bar-------------------------------------->
<ul class="nav">
<a class="brand" href="#"><span class="glyphicon glyphicon-user"
style="color:blue;"></span></a>
<li class="active"><a href="#"><?php echo "Hi, Mr.".$adminname;
?></a></li>
<li><a href="#">Employee Code :<?php echo $employeecode; ?></a></li>
<a class="brand" href="dashboard.php"><span class="glyphicon
glyphicon-home" style="color:green;"></span></a>
<li><a href="#"><span class="glyphicon glyphicon-off"
style="color:red;"></a></li>
<ul>
</div>
</div>
<!-----------------------END OF USER INFO-------------------------------->
<!----------------------- START MAIN BODY-------------------------------->
<div class="row-fluid">
<!---------------START NAVIGATION---------------------------------------->
<div class="span4">
<div class="col-xs-10" style="background-color: gray; height:540px;
position:relative; bottom:60px;">
34
<div class="panel-group" id="accordion" style="position:relative;
top:30px;">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapse1"><B>SYSTEM MANAGER</B></a>
</h4>
</div>
<div id="collapse1" class="panel-collapse collapse in">
<ul>
<a href="adddepartment.php" style="text-decoration:none;
color:black;"><li>Department</li></a>
<a href="adddesignation.php" style="text-decoration:none;
color:black;"><li>Designation</li></a>
<a href="addjoblocation.php" style="text-decoration:none;
color:black;"><li>Location</li></a>
<a href="adddegree.php" style="text-decoration:none;
color:black;"><li>Degree</li></a>
<a href="addbank.php" style="text-decoration:none;
color:black;"><li>Bank</li></a>
<a href="addshift.php" style="text-decoration:none;
color:black;"><li>Shift</li></a>
<a href="addjoblevel.php" style="text-decoration:none;
color:black;"><li>Job Level</li></a>
</ul>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapse2"><B>EMPLOYEE MANAGEMENT</B></a>
</h4>
</div>
<div id="collapse2" class="panel-collapse collapse">
<ul>
<a href="addemployeeinfo.php" style="text-decoration:none;
color:black;"><li>Add Employe</li></a>
<a href="transfer.php" style="text-decoration:none;
color:black;"><li>Transfer</li></a>
<a href="resignation.php" style="text-decoration:none;
color:black;"><li>Resignation</li></a>
<a href="promotion.php" style="text-decoration:none;
color:black;"><li>Promotion</li></a>
</ul>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapse3"><B>ATTENDANCE MANAGEMENT</B></a>
</h4>
</div>
<div id="collapse3" class="panel-collapse collapse">
<ul>
<a href="dailyattendance.php" style="text-decoration:none;
color:black;"><li>Add Attendance</li></a>
35
<a href="uploadattendance.php" style="text-decoration:none;
color:black;"><li>Upload Attendance</li></a>
</ul>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapse4"><B>LEAVE MANAGEMENT</B></a>
</h4>
</div>
<div id="collapse4" class="panel-collapse collapse">
<ul>
<a href="leaveadminpanel.php" style="text-decoration:none;
color:black;"><li>Leave Settings</li></a>
<a href="loginpage.php" style="text-decoration:none;
color:black;"><li>Leave Apply</li></a>
</ul>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapse5"><B>REPORTS</B></a>
</h4>
</div>
<div id="collapse5" class="panel-collapse collapse">
<ul>
<a href="#" style="text-decoration:none; color:black;"><li>Employe
List</li></a>
<a href="#" style="text-decoration:none; color:black;"><li>Daily
Attendace Report</li></a>
<a href="#" style="text-decoration:none;
color:black;"><li>Leave Report</li></a>
<ul>
</div>
</div>
</div>
</div>
</div>
<!----------------------END NAVIGATION---------------------------------->
<!-----------------------START BODY------------------------------------->
<div class="span5">
<div class="col-xs-14" style="background-image:url('peopleicon.jpg');
background-repeat: no-repeat; height:540px; position: relative; bottom:
60px;">
</div>
</div>
<!--------------------END BODY------------------------------------------>
36
<iframe
src="https://calendar.google.com/calendar/embed?src=76qninj8g47ui49of3vp3b7
8gs%40group.calendar.google.com&ctz=Asia%2FDhaka" style="border: 0"
width="300" height="300" frameborder="0" scrolling="no" ></iframe>
<!-----------------END CALENDER---------------------------------------->
<!---------------------START MASSAGE---------------------------------->
<!---------------------------END MESSAGE------------------------------->
</div>
</div>
</div>
<!------------------------------END PAGE CONTAINER------------------------>
</body>
</html>
<!-------------------------END HTML--------------------------------------->
Class
<?php
class operation{
public $emsconn;
/*Below function (__construct) is being used for the connection*/
/*=======================================================================*/
public function __construct($host,$user,$pass,$db){
$this->emsconn=mysqli_connect($host,$user,$pass,$db);
if(mysqli_connect_errno()){
die('Connection Failed!!!');
}
else{
//echo"Connection established to EMS by
emsmethod.php";
}
37
}
/*=======================================================================*/
/*++++++++++++++++++END OF CONNECTION++++++++++++++++++++++++++++++++*/
{
$query=mysqli_query($this-
>emsconn,"SELECT*FROM $table WHERE adminusername=$adminusername");
$num=mysqli_num_rows($query);
if($num>0)
{
return
mysqli_fetch_all($query,MYSQLI_ASSOC);
}
else{
echo "No
data in database it ems method";
}
}
/*=======================================================================*/
/*++++++++++++++ End of Getting Admin info++++++++++++++++++++++++++++++*/
departmentcode='$departmentcode',
departmentname='$departmentname'
"
) ;
if(mysqli_affected_rows($this->emsconn)>0)
{
return
true;
}
else{
return
false;
}
/*=======================================================================*/
/*++++++++End of insertion department++++++++++++++++++++++++++++++++++*/
38
/********* Below Function used to insert designation *********************/
/*=======================================================================*/
public function
InsertDesignation($table,$designation,$designationcode)
{
designation='$designation',
designationcode='$designationcode'
");
if(mysqli_affected_rows($this->emsconn)>0)
{
return
true;
}
else{
return
false;
}
}
/*======================================================================*/
/*+++++++++++++End of insertion department+++++++++++++++++++++++++++++*/
joblocationcode='$joblocationcode',
joblocationname='$joblocationname'
");
if(mysqli_affected_rows($this->emsconn)>0)
{
return true;
}
else{return false;}
}
/*=======================================================================*/
/*++++++++++End of insertion department++++++++++++++++++++++++++++++++++*/
39
$firstname,
$lastname,
$gender,
$fathername,
$mothername,
$relegion,
$permanentaddress,
$presentaddress,
$email,
$phoneno,
$emmergencycontact,
$maritalstatus,
$bloodgroup,
$bank
)
{
nidno='$nidno',
firstname='$firstname',
lastname='$lastname',
gender='$gender',
fathername='$fathername',
mothername='$mothername',
relegion='$relegion',
permanentaddress='$permanentaddress',
presentaddress='$presentaddress',
email='$email',
phoneno='$phoneno',
40
emmergencycontact='$emmergencycontact',
maritalstatus='$maritalstatus',
bloodgroup='$bloodgroup',
bank='$bank';
") ;
if(mysqli_affected_rows($this->emsconn)>0)
{
return true;
}
else{
return false;
}
/*=======================================================================*/
/*+++++++++++++++++++End of insertion department++++++++++++++++++++++++*/
$num=mysqli_num_rows($query) ;
if($num>0)
{
return
mysqli_fetch_all($query,MYSQLI_ASSOC);
}
else{
echo "No data
in DB";
}
/*=======================================================================*/
/*+++++++++++++++++++End of insertion department+++++++++++++++++++++++++*/
41
{
degreename='$degreename'
");
if(mysqli_affected_rows($this->emsconn)>0)
{
return
true;
}
else{
return
false;
}
}
/*=======================================================================*/
/*+++++++++End of insertion degree+++++++++++++++++++++++++++++++++++*/
bankname='$bankname'
");
if(mysqli_affected_rows($this->emsconn)>0)
{
return
true;
}
else{
return
false;
}
}
/*=======================================================================*/
/*+++++++++++End of insertion degree+++++++++++++++++++++++++++++++++++++*/
/*** Below Function used to insert employee education and job experiances
********/
/*=======================================================================*/
public function
InsertEmployeeEducationAndJobExperiances($table,
$lastedudegree,
$obtainingyear,
$institution,
42
$lastcompany,
$servingperiod,
$designation,
$lastjoblocation
)
{
lastedudegree='$lastedudegree',
obtainingyear='$obtainingyear',
institutiuon='$institution',
lastcompany='$lastcompany',
servingperiod='$servingperiod',
designation='$designation',
lastjoblocation='$lastjoblocation';
") ;
if(mysqli_affected_rows($this->emsconn)>0)
{
return true;
}
else{
echo "not
running abcd---";
}
/*=======================================================================*/
/*+++++++End of insertion employee education and job experiances+++++++++*/
$department,
$companydesignation,
43
$joblocation,
$reportingpersonnel,
$shift,
$status,
$joblevel
)
{
employeeid='$employeeid',
department='$department',
companydesignation
='$companydesignation',
joblocation='$joblocation',
reportingpersoneel
='$reportingpersonnel',
shift ='$shift',
status='$status',
joblevel='$joblevel';
") ;
if(mysqli_affected_rows($this->emsconn)>0)
{
return true;
}
else{
echo "not
runnig-----";
}
/*=======================================================================*/
/*+++++++++++++++++++++End of insertion employee company info++++++++++++*/
44
public function InsertShiftInfo($table,
$shiftname,
$intime,
$outtime
)
{
shiftname='$shiftname',
intime='$intime',
outtime='$outtime'
") ;
if(mysqli_affected_rows($this->emsconn)>0)
{
return true;
}
else{
echo "not
runnig-----";
}
/*=======================================================================*/
/*+++++++++++++++++++End of insertion shift info+++++++++++++++++++++++++*/
)
{
joblevelname='$joblevelname'
45
") ;
if(mysqli_affected_rows($this->emsconn)>0)
{
return true;
}
else{
echo "not
runnig-----";
}
/*=======================================================================*/
/*+++++++++++++End of insertion shift info+++++++++++++++++++++++++++++++*/
public function
UpdateEmployeeDesignation($table,$employeeid,$newjoblevel,$newdesignation)
companydesignation='$newdesignation',
joblevel='$newjoblevel'
WHERE employeeid='$employeeid'
") ;
if(mysqli_affected_rows($this->emsconn)>0)
{
return true;
}
else{
echo "not
runnig-----";
}
/*=======================================================================*/
46
/*++++++++++End of insertion shift info++++++++++++++++++++++++++++++++++*/
public function
UpdateEmployeeLocation($table,$employeeid,$newlocation)
joblocation='$newlocation'
WHERE employeeid='$employeeid'
") ;
if(mysqli_affected_rows($this->emsconn)>0)
{
return true;
}
else{
echo "not
runnig-----";
}
/*=======================================================================*/
/*++++++++++End of insertion shift info++++++++++++++++++++++++++++++++++*/
public function
UpdateEmployeeStatus($table,$employeeid,$newstatus)
status='$newstatus'
WHERE employeeid='$employeeid'
") ;
if(mysqli_affected_rows($this->emsconn)>0)
{
47
return true;
}
else{
echo "not
runnig-----";
}
/*=======================================================================*/
/*+++++++End of insertion shift info+++++++++++++++++++++++++++++++++++++*/
employeeid='$employeeid',
date='$date',
intime='$intime',
outtime='$outtime'
") ;
if(mysqli_affected_rows($this->emsconn)>0)
{
return true;
}
else{
echo "not
runnig-----";
}
/*=======================================================================*/
/*+++++++++++++End of insertion Daily Attendance ++++++++++++++++++++++++*/
48
}
/*=======================================================================*/
/*++++ End of GetUserInfoByLoginId FUNCTION++++++++++++++++++++++++++++++*/
}
/*=======================================================================*/
/*************** END OF PasswordChanger ********************************/
$reportingemail,
49
$priviledge
)
{
$query=mysqli_query($this-
>emsconn,"INSERT INTO $table SET
userid='$userid',
password='$password',
employecode='$employecode',
username='$username',
department='$department',
gender='$gender',
joblocation='$joblocation',
reportingid='$reportingid',
hrid='$hrid',
email='$email',
reportingemail='$reportingemail',
priviledge='$priviledge'
");
if(mysqli_affected_rows($this-
>emsconn)>0){
return true;
}
else{
return false;
}
/*======================================================================*/
/******End of EnrollUser
Function**************/
$userid,
$totalleave,
$totalpriviledgeleave,
$totalsickleave,
$totalmaternityleave,
50
$usedleave,
$usedpriviledgeleave,
$usedsickleave,
$usedmaternityleave,
$availableleave,
$availablepriviledgeleave,
$availablesickleave,
$availablematernityleave
)
{
$query=mysqli_query($this-
>emsconn,"INSERT INTO $table SET
userid='$userid',
totalleave='$totalleave',
totalpriviledgeleave='$totalpriviledgeleave',
totalsickleave='$totalsickleave',
totalmaternityleave='$totalmaternityleave',
usedleave='$usedleave',
usedpriviledgeleave='$usedpriviledgeleave',
usedsickleave='$usedsickleave',
usedmaternityleave='$usedmaternityleave',
availableleave='$availableleave',
availablepriviledgeleave='$availablepriviledgeleave',
availablesickleave='$availablesickleave',
availablematernityleave='$availablematernityleave'
");
if(mysqli_affected_rows($this->emsconn)>0){
return true;
51
else{
return false;
}
}
public function HolidaySettings($table,$date,$description)
{
$query=mysqli_query($this->emsconn,"INSERT INTO $table
SET
date='$date',
description='$description'
");
if(mysqli_affected_rows($this->emsconn)>0)
{
return true;
}
else{
return false;
}
}
/******BELOW FUNCTION USED FOR ACCES THE FACTORY HOLDAY TABLE************/
/*=======================================================================*/
/*********BELOW FUNCTION USED FOR ACCES THE HEAD OFFICE HOLDAY TABLE******/
/*=======================================================================*/
52
public function InsertLeaveIntoleaveapplyinfo($table,
$leavetype,
$applicationdate,
$fromdate,
$todate,
$numberofdays,
$userid,
$reportingid,
$hrid,
$username
)
{
$query=mysqli_query($this-
>emsconn,"INSERT INTO $table SET
leavetype='$leavetype',
applicationdate='$applicationdate',
fromdate='$fromdate',
todate='$todate',
numberofdays='$numberofdays',
userid='$userid',
reportingid='$reportingid',
hrid='$hrid',
username='$username',
status='Open'
");
if(mysqli_affected_rows($this-
>emsconn)>0)
return true;
}
else{
return false;
}
53
/*+++++++++++++++++++ End of Data insertion into leaveapplyinfo++++++++++*/
/******** Below Function used to get user's leave info by LOGIN ID********/
/*=======================================================================*/
public function GetAppliedLeaveInfoByLoginId($table,$loginid){
$query=mysqli_query($this->emsconn,"SELECT*FROM $table
WHERE userid=$loginid AND status='Open'");
$num=mysqli_num_rows($query);
if($num>0){
return mysqli_fetch_all($query,MYSQLI_ASSOC);
}
else{
//echo"No data in database";
}
}
/*=======================================================================*/
/*+++++++++++++++++++++++ End of GetUserInfoByLoginId FUNCTION+++++++++*/
/***** Below Function used to get user's leave info by LOGIN ID *********/
/*=======================================================================*/
public function GetAppliedFinalLeaveInfoByLoginId($table,$loginid){
$query=mysqli_query($this->emsconn,"SELECT*FROM $table
WHERE userid=$loginid AND status='Applied'");
$num=mysqli_num_rows($query);
if($num>0){
return mysqli_fetch_all($query,MYSQLI_ASSOC);
}
else{
echo"No data in database";
}
}
/*=======================================================================*/
/*++++++++++++++++++++++++++ End of GetUserInfoByLoginId FUNCTION++++++++*/
/******** Below Function used to get user's leave info by LOGIN ID *******/
/*=======================================================================*/
public function GetAppliedLeaveInfoByReportingId($table,$reportingid){
$query=mysqli_query($this->emsconn,"SELECT*FROM $table
WHERE reportingid=$reportingid AND status='Applied'");
$num=mysqli_num_rows($query);
if($num>0){
return mysqli_fetch_all($query,MYSQLI_ASSOC);
}
else{
//echo"No data in database";
}
}
/*=======================================================================*/
/*++++++++++++++++++ End of GetUserInfoByLoginId FUNCTION++++++++++++++++*/
54
}
}
/*=======================================================================*/
/*++++++++ End of GetUserInfoByLoginId FUNCTION++++++++++++++++++++++++*/
/****** Below Function used to get Confiromed leave info by Leave ID ****/
/*=======================================================================*/
public function GetConfiromedLeaveInfoByLeaveId($table,$leaveid){
$query=mysqli_query($this->emsconn,"SELECT*FROM $table
WHERE leaveid=$leaveid AND status='Confirom'");
$num=mysqli_num_rows($query);
if($num>0){
return mysqli_fetch_all($query,MYSQLI_ASSOC);
}
else{
echo"No data in database";
}
}
/*=======================================================================*/
/*+++++++++++++++ End of GetUserInfoByLoginId FUNCTION++++++++++++++++++*/
/*=======================================================================*/
/*++++++++++++++++++++++++++ END OF FUNCTION TO DELETE LEAVE+++++++++++*/
$query=mysqli_query($this->emsconn,"UPDATE
leaveapplyinfo SET status='Applied' WHERE leaveid=$leaveid");
if(mysqli_affected_rows($this->emsconn)>0)
{
return true;
}
else{
return false;
}
/*=======================================================================*/
/*++++++++++++++++++++ END OF FUNCTION TO UPDATE LEAVE STATUS+++++++++++*/
55
$query=mysqli_query($this->emsconn,"UPDATE
leaveapplyinfo SET status='Approved' WHERE leaveid=$leaveid");
if(mysqli_affected_rows($this->emsconn)>0)
{
return true;
}
else{
return false;
}
/*=======================================================================*/
/*++++++++++++++++++++ END OF FUNCTION TO UPDATE LEAVE STATUS+++++++++++*/
$query=mysqli_query($this->emsconn,"UPDATE
leaveapplyinfo SET status='Reject' WHERE leaveid=$leaveid");
if(mysqli_affected_rows($this->emsconn)>0)
{
return true;
}
else{
return false;
}
/*=======================================================================*/
/*++++++++++++++++++++++++++ END OF FUNCTION TO UPDATE LEAVE STATUS+++++*/
$query=mysqli_query($this->emsconn,"UPDATE
leaveapplyinfo SET status='Confirom' WHERE leaveid=$leaveid");
if(mysqli_affected_rows($this->emsconn)>0)
{
return true;
}
else{
return false;
}
/*=======================================================================*/
/*++++++++++++ END OF FUNCTION TO UPDATE LEAVE STATUS++++++++++++++++++*/
56
if($num>0){
return mysqli_fetch_all($query,MYSQLI_ASSOC);
}
else{
echo"No data in Database";
}
}
/*=======================================================================*/
/*++++++++++++++++++ End of GetUserLeaveInfoByLoginId +++++++++++++++++*/
$updatedusedpl,
$updatedavailablepl,
$updatedusedleave,
$updatedavailableleave)
{
$query=mysqli_query($this->emsconn,"UPDATE $table
SET
usedpriviledgeleave=$updatedusedpl,
availablepriviledgeleave=$updatedavailablepl,
usedleave=$updatedusedleave,
availableleave=$updatedavailableleave
WHERE userid=$userid
");
if(mysqli_affected_rows($this->emsconn)>0)
{
return true;
}
else{
return false;
}
/*=======================================================================*/
/*+++++++ END OF FUNCTION TO UPDATE LEAVE TRANSACTION FOR PL+++++++++++++*/
$updatedusedsl,
$updatedavailablesl,
57
$updatedusedleave,
$updatedavailableleave)
{
$query=mysqli_query($this->emsconn,"UPDATE $table
SET
usedsickleave=$updatedusedsl,
availablesickleave=$updatedavailablesl,
usedleave=$updatedusedleave,
availableleave=$updatedavailableleave
WHERE userid=$userid
");
if(mysqli_affected_rows($this->emsconn)>0)
{
return true;
}
else{
return false;
}
/*=======================================================================*/
/*+++++++++++++ END OF FUNCTION TO UPDATE LEAVE TRANSACTION FOR SL+++++++*/
$updatedusedml,
$updatedavailableml,
$updatedusedleave,
$updatedavailableleave)
{
$query=mysqli_query($this->emsconn,"UPDATE $table
SET
usedmaternityleave=$updatedusedml,
availablematernityleave=$updatedavailableml,
usedleave=$updatedusedleave,
availableleave=$updatedavailableleave
58
WHERE userid=$userid
");
if(mysqli_affected_rows($this->emsconn)>0)
{
return true;
}
else{
return false;
}
/*====================================================================*/
/*+++++++ END OF FUNCTION TO UPDATE LEAVE TRANSACTION FOR ML+++++++++++++*/
$reportingemail,
$priviledge
)
{
$query=mysqli_query($this-
>emsconn,"INSERT INTO $table SET
userid='$userid',
password='$password',
employecode='$employecode',
username='$username',
department='$department',
gender='$gender',
joblocation='$joblocation',
reportingid='$reportingid',
hrid='$hrid',
email='$email',
59
reportingemail='$reportingemail',
priviledge='$priviledge'
");
if(mysqli_affected_rows($this-
>emsconn)>0){
return true;
}
else{
return false;
}
/*=======================================================================*/
/*++++++++++ End of Uploading to userbasicinfo ++++++++++++++++++++++++++*/
$totalleave,
$totalpriviledgeleave,
$totalsickleave,
$totalmaternityleave,
$usedleave,
$usedpriviledgeleave,
$usedsickleave,
$usedmaternityleave,
$availableleave,
$availablepriviledgeleave,
$availablesickleave,
$availablematernityleave
)
{
userid='$userid',
totalleave='$totalleave',
60
totalpriviledgeleave='$totalpriviledgeleave',
totalsickleave='$totalsickleave',
totalmaternityleave='$totalmaternityleave',
usedleave='$usedleave',
usedpriviledgeleave='$usedpriviledgeleave',
usedsickleave='$usedsickleave',
usedmaternityleave='$usedmaternityleave',
availableleave='$availableleave',
availablepriviledgeleave='$availablepriviledgeleave',
availablesickleave='$availablesickleave',
availablematernityleave='$availablematernityleave'
");
if(mysqli_affected_rows($this->emsconn)>0)
{
return true;
}
else{
return false;
}
/*=======================================================================*/
/*++++++++++ End of Uploading to userleaveinfo ++++++++++++++++++++++++++*/
$description
)
{
$query =
mysqli_query($this->emsconn,"INSERT INTO factoryholidayinfo SET
61
date='$date',
description='$description'
");
if(mysqli_affected_rows($this->emsconn)>0)
{
return true;
}
else{
return false;
/*=======================================================================*/
/*+++++++++++++++++++++++++ End of Uploading to userleaveinfo ++++++++++*/
$description
)
{
$query =
mysqli_query($this->emsconn,"INSERT INTO headofficeholidayinfo SET
date='$date',
description='$description'
");
if(mysqli_affected_rows($this->emsconn)>0)
{
return true;
}
else{
return false;
/*=======================================================================*/
/*++++++++++++++++++++++++++++++ End of Uploading to userleaveinfo ++++++*/
62
/*=======================================================================*/
/***Below Function used to get user's leave info by LOGIN ID for personal
report ***/
/*=======================================================================*/
public function
GetAppliedLeaveInfoByLoginIdForPersonalReport($table,$loginid){
$query=mysqli_query($this->emsconn,"SELECT*FROM $table
WHERE userid=$loginid AND status='Confirom'");
$num=mysqli_num_rows($query);
if($num>0){
return mysqli_fetch_all($query,MYSQLI_ASSOC);
}
else{
//echo"No data in database";
}
}
/*=======================================================================*/
/*++++ End of GetUserInfoByLoginId FUNCTION++++++++++++++++++++++++++++++*/
public function
GetUserAppledLeaveInfoByLeaveIdForUpdate($table,$leaveid){
63
$query=mysqli_query($this->emsconn,"SELECT*FROM $table
WHERE leaveid=$leaveid");
$num=mysqli_num_rows($query);
if($num>0){
return mysqli_fetch_all($query,MYSQLI_ASSOC);
}
else{
echo"No data in userleaveinfo table";
}
}
/*=======================================================================*/
/*+++++++++++++++++++++++ End of GetUserLeaveInfoByLeaveId ++++++++++++++*/
public function
UpdateLeave($table,$leavetype,$applicationdate,$fromdate,$todate,$numberofd
ays,$leaveid){
$query=mysqli_query($this->emsconn,"UPDATE $table SET
leavetype=$leavetype,
applicationdate=$applicationdate,
fromdate=$fromdate,
todate=$todate,
numberofdays=$numberofdays
WHERE leaveid=$leaveid
");
if(mysqli_affected_rows($this->emsconn)>0)
{
return true;
}
else{
return false;
}
64
/*=======================================================================*/
/*+++++++++++++END OF FACTORY LEAVE CALENDER+++++++++++++++++++++++++++++*/
if(mysqli_num_rows($query)>0)
{
return
mysqli_fetch_all($query,MYSQLI_ASSOC);
echo "ok";
}
else{
echo "not fetching
department table";
}
}
/*====================================================================*/
/*+++++++++++++++++++++++++END OF FETCHING DEPARTMENT+++++++++++++++++++*/
if(mysqli_num_rows($query)>0)
{
return
mysqli_fetch_all($query,MYSQLI_ASSOC);
}
else{
return false;
}
/*====================================================================*/
/*+++++++++++++++++++++++++END OF FETCHING JOB LEVEL++++++++++++*/
if(mysqli_num_rows($query)>0)
65
{
return
mysqli_fetch_all($query,MYSQLI_ASSOC);
}
else{
return false;
}
}
if(mysqli_num_rows($query)>0)
{
return
mysqli_fetch_all($query,MYSQLI_ASSOC);
}
else{
return false;
}
if(mysqli_num_rows($query)>0)
{
return
mysqli_fetch_all($query,MYSQLI_ASSOC);
}
else{
return false;
}
}
66
public function GetJobLocation($table)
{
$query=mysqli_query($this->emsconn,"SELECT*FROM $table");
if(mysqli_num_rows($query)>0)
{
return
mysqli_fetch_all($query,MYSQLI_ASSOC);
}
else
{
return false;
}
}
}
else{
return false;
}
}
else{
return false;
}
67
/*=====================================================================*/
}
$obj=new operation("localhost","root","","EMS");
?>
68