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

PMS

yes

Uploaded by

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

PMS

yes

Uploaded by

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

PROJECT REPORT

Submitted to Alagappa University inpartial fulfillment of the requirements for the


Award ofthedegreein

Submittedby

(REG.NO:2021128040)
& (REG.NO:20211280
12)

UndertheGuidanceof

(HeadandAssistantProfessor,Departmentofcomputerscience)

1
UGC2(f)&12(B)Approved&Accreditedwith‘B’GradebyNAAC

(Affiliated To Alagappa University, Karaikudi)

This is to certify that the project work entitled

"Payrollmanagementsystem " done byA.VINOTHKMAR (REG NO:

(2021128040) & A.BASUL ASKAF (REGNO:


2021128012)inpartialoftheawardofthedegreeinBachelorofComputerscience
,AlagappaUniversity,Karaikudi.

Thisproject has beensubmitted for Viva-Voce examination isheld at Syed


HameedhaArts & Science College, Kilakarai on

2
Weherebydeclarethattheworkentitled“PAYROLL
MANAGEMENTSYSTEM”is the project report of the original done by an during
the project priced December 2023- March 2024 this project work submitted
to ALAGAPPA UNIVERSITY, KARAIKUDI in partial fulfillment of the degree of
Bachelor of computer science during the academic year 2021- 2024.

Wefurtherdeclarethatthisprojectworkhasnotpreviouslyformedthebasisf
or
theawardofanydegree,diploma,associatesship,fellowshiporanyothersimilartitl
es and it represents wholly our independent work.

(REG.NO:2021128040)
&

(REG.NO:2021129028)

3
First of all, we would like to thank the ALMIGHTY GOD for giving us
the
strengthwisdomforcompletingtheprojectsuccessfully.Nextwethankourbelov
ed parent for their love, encourage and continuous support.
We wish to express our deep sense of gratitude to our Principal Dr.
S.RAJASEKAR M.Sc., M.Phil., Ph.D., for giving us an opportunity to do this
project with fullest spirit.
We express our sincere thanks to Mr.K.KASI KUMAR
MCA.,M.Phil.,NET Head and Assistant Professor, Department Of computer
science, who encourage us with his constant support and guidance
throughoutthe course ofstudy.
We take this opportunity to express our grateful thanks to our
internal guide Mrs. BRABHAVATHI MCA.,M.Phil. for his encouragement and
valuable guidance in completing this project timely and successfully.
We have great pleasure in giving our thankful words to Other Staff
Members who have shared for their ideas to produce a valuable project.
We convey our great pleasure in thanking all the rest of teaching
and non- teaching staff members for their kind co-operation.
Last but not least, we thank our friend who helped us in every
situation and gave us their valuable suggestionthroughout this course of
study.

4
.

5
6
ThisabstractpresentsacomprehensivePayrollManagementSystem(PMS)focusin
gon
employeemanagement,attendancetracking,salaryprocessing,payheadmanage
ment, and holiday listing.

ThePMSstreamlinesemployeedatamanagementbycentralizinginformationrelat
edto
attendancerecords,salarydetails,andpayheads.Itincorporatesanintuitiveinterfa
ce for easy employee access, allowing them to view and update personal
information, submittime-offrequests,andaccesssalary-relatedinformation.

Attendance trackingis automated through integrationwith biometricsystems,


ensuring accuracyand reliability. This automation facilitates precise
calculation of attendance-based components in payroll processing.

Salary processing within the PMS is efficient and error-free, leveraging


automation to calculate salaries based
Pay heads, including bonuses, incentives, and deductions, are easily
managed and customizable
within the system. Administrators can define and adjust pay heads according
to organizationalpolicies and regulatory requirements.
Additionally, the PMS includes a feature to list holidays, enabling
administrators to maintainanup-to-datecalendarofcompany-
wideandregionalholidays.
By integrating these functionalities, the PMS enhances payroll accuracy,
reduces administrativeburden, and ensures compliance with labor
regulations. Overall, the system facilitates streamlined payroll processes,
contributing to organizational efficiency and employee satisfaction.

7
8
S.NO CONTENTS PAGENO

1. INTRODUCTION
1.1IntroductionAboutproject
1.2Modulesandmodulesdescription
SYSTEMANALYSIS
2.1FeasibilityStudy
2.2ExistingSystem
2.
2.3ProposedSystem
SYSTEMSPECIFICATION
3.1HardwareSpecification
3.2SystemSpecification
3.
3.2.1SoftwareDescription
SYSTEMDESIGN
4.1Architectural Design
4.1.1SystemFlowDiagram
4.1.2DataFlowDiagram
4. 4.2DetailedDesign
4.2.1DatabaseDesign
SYSTEMIMPLEMENTATION
5. 5.1InputDesign
5.2OutputDesign

6. TESTING
6.1UnitTesting
6.2IntegrationTesting
7. FUTUREENHANCEMENT
8. CONCLUSION
APPENDIX
9. 9.1SampleCoding
9.2ScreenLayout
10. BIBLIOGRAPHY

9
10
AdminLogin

LOGINPAGE

Adminpage

 Attendance

 Employeedetails

 Salary

 Payheads

 Listholiday

 Leavemanagement

11
WelcometotheprojectdocumentforthePayrollManagementSystem(PMS)project.
In today'sfast-
pacedbusinesslandscape,efficientmanagementofpayrollprocessesis
crucialfororganizationalsuccess.ThePayrollManagementSystemprojectaimsto
addressthechallengesassociatedwithmanualpayrollprocessingbydevelopinga
comprehensivesoftwaresolutionthatautomatesandstreamlinespayroll-
relatedtasks.
Background:Payrollmanagementinvolvesvariouscomplextasks,includingsalary
calculation,taxdeductions,attendancetracking,andcompliancemanagement.Tr
aditional methods of payroll processing often lead to errors, delays, and
compliance issues, posing significant challenges for organizations.
Objectives: The primary objective of the Payroll Management System project
is to design, develop, and implement a user-friendly software solution that
automates key payroll tasks and enhances the overall payroll management
process.
Scope:ThescopeofthePayrollManagementSystemprojectencompassesthedesi
gn, development, testing, and deployment of a comprehensive software
solution. The system will include modules for employee management,
attendance tracking, salary processing, tax calculation, pay head
management, and reporting.
ProjectApproach:Theprojectwillfollowastructuredapproach,includingrequirem
ents
gathering,systemdesign,development,testing,deployment,andtraining.Collab
oration
betweenstakeholders,includingHRpersonnel,financeteams,andITprofessionals
,will be essential throughout the project lifecycle to ensure alignment with
organizational goals and objectives.

: Centralized database for managing employee


information, including personal details, employment history,
andsalarystructures.
1. : Integration with biometric systems or time-tracking
software to accurately record employee attendance and streamline
12
attendance-based payroll calculations.
2. : Automation of salary calculation based on attendance
records, pay structures, and predefined pay heads, ensuring timely and
accurate disbursal of salaries.
3. : Automated tax calculations and
deductions in
accordancewithprevailingtaxlawsandregulations,minimizingtheriskoferrorsan
d

13
non-compliance.
4. : Customizable pay heads for bonuses, incentives,
allowances,anddeductions,allowingorganizationstoadaptthesystemtotheirspe
cific payroll policies.
5. : Feature to maintain a comprehensive list of
company- wide and regional holidays, facilitating scheduling and payroll
processing adjustments accordingly.

14
Purpose:Thismoduleservesastheentrypointforadministratorstoaccessthe
system. It ensuressecure access controland management capabilities.

Features:

Authentication:Secureloginforauthorizedadministrators.

Authorization:Role-basedaccesscontrol torestrictorgrantspecificprivileges.User

Management: Abilityto add, modify, or remove user accounts.

This module allows for the storage and management of comprehensive

employee information such aspersonal details, contact information,

employment history, salary details, and more.

Features may include the ability to add, edit, and delete employee records,

as well as functionalities for categorizing employees, assigning roles, and

managing employee documents.

This module enables the management of holidays and other non-working

days for the organization.

Features may include the ability to maintain a centralized holiday calendar,

add or remove holidays, define holiday policies, and view upcoming holidays .

15
This module facilitates the configuration and management of various pay

components or pay heads such as basic salary, allowances, deductions,

bonuses, and taxes.

Features may include defining pay head types, specifying calculation

methods, setting up formulas, and assigning pay heads to employees.

This module allows for the recording and monitoring of employee attendance
data, includingclock-in/outtimes,leaverequests,andattendancesummaries.
Features may include manual attendance entry, integration with biometric
devices or attendance tracking systems, leave management functionalities,
and generating attendance reports.
:

Thismoduleautomatestheprocessofgeneratingsalaryslipsorpayslipsforemployeesbas
ed on their attendance, pay heads, and other relevant factors.
Features may include customizable payslip templates, automatic calculation of
earnings and deductions, support for multiple pay periods (e.g., monthly, bi-weekly),
and the ability to generate, view, and distribute salary slips electronically.

16
17
In the modern business landscape, the effective management of
human resources is integral to the success and sustainability of any
organization. A crucial aspect of this management is the accurate and
efficient processing of employee compensation, encompassing various
elements such as attendance tracking, holiday management, pay heads
configuration, employee details management, and leave management.
Recognizing the significance of optimizing these processes, [Company
Name] endeavors to explore the feasibility of implementing a
comprehensive Payroll Management System (PMS)..

Estimate the costs associated with developing, implementing, and maintaining


a Payroll ManagementSystem.Conductacost-
benefitanalysistodeterminethepotentialreturnon investment (ROI) and cost
savings associated with the proposed PMS.Explore funding options and
budgetary considerations for the PMS project.

.EvaluatethetechnicalfeasibilityofimplementinganewPayrollManagementSyste
m. Assess compatibility with existing IT infrastructure and systems.
Determinethetechnicalrequirements,resources,andpotentialchallengesassociatedw
ith PMS implementation.

18
Assess the readiness of [Company Name] to adopt and

integrate newPayroll Management System into its

operations.Identify potential operational challenges and

constraints, including organizational structure, workflow

processes, and employee training needs.

Developaplanforchangemanagementanduseradoptionto facilitate a

smooth transition to the new PMS.

Identify potential risks and uncertainties associated with implementing a


Payroll Management System with modules covering holiday management,
attendance tracking, pay heads configuration, employee details
management, and leave administration.
Assess the impact of these risks on project timelines, budgets, and business
operations, and develop strategies to mitigate them.

The Exiting System in the Payroll Management System for Attendance and
Leave Management ensures that employee departures are managed
accurately and efficiently with regard to attendance and leave balances. By
following the outlined procedures, the company maintains compliance with
employment regulations and ensures a smooth transition for departing
employees.

This proposed system is designed to streamline various aspects of


payroll management, including holiday listing, pay heads, salary processing,
attendance tracking, employee details management, and leave
management..

19
Automated calculation of salaries based on configured pay heads.Flexible
payment
optionsincludingdirectdepositandchecks.Detailedsalaryreportsfortransparenc
yand

20
compliance.

Employeeattendancetrackingsystem.Real-timemonitoringofemployee
attendance.Integrate with payroll for accurate calculation of wages.

Centralized database for storing comprehensive employee


details.Customizable
employeeprofilesincludingpersonalinformation,jobdetails,andcontactinform

ation. Role-based access control to manage data confidentiality.

Comprehensive leave management system.Tracking of different types of


leave
includingvacation,sickleave,andmaternity/paternityleave.Employeeself-
service portal for leave requests and approvals.

Streamlined registration processes reduce waiting times and improve the


overall efficiency ofpatient management.

ThePMSsystemminimizesdataentryerrors,ensuringtheaccuracyofpatientrecords.

Theproposedsystemisexpectedtosignificantlyreduceovercrowdinginwaitingareas
byoptimizing the registration and appointment processes.

Transitioningtoelectronicpatientrecordsimprovestheaccessibility,accuracy,and
overallmanagement of patient information.

Reducedwaitingtimes,efficientprocesses,andenhanceddataaccuracy contribute to
highersatisfaction levels among both patients and hospital staff.

21
22
 ProcessorSpeed:2.00GHz.
 RAM:4GB.
 HardDiskDrive:500GB.
 FloppyDiskDrive:1.44MB.
 Monitor:“14.1”inches.
 Mouse:Logitech.

 Operatingsystem:Windows10.
 CodingLanguage:PHP.
 IDE:VisualStudioCode.
 Database:MySQL.
 WebServer:Apache2.
 ScriptingLanguage:HTML,JavaScript.
 Frontenddesign:CSS,Bootstrap.

23
— HTML, short for Hyper Text Markup Language, is the standard
markup language used to create web pages and web applications. It
provides a set of tags or elements that define the structure and content of a
web page. HTML documents consist of a series of nested elementsthat
define the different parts of the page such as headings, paragraphs, images,
links, forms, andmore.

— It is used for checking User information before sending to


server JavaScriptisascriptinglanguagemostoftenusedforclient-
sidewebdevelopment,Itis adynamic,weaklytyped,prototype-
basedlanguagewithfirst-classfunctions,Currently, “JavaScript” is an
implementation ofthe ECMA Script standard.

— Php is a technology that lets you mix regular, static HTML with
dynamically- generatedHTML. Many Web pages that are builtby CGI
programs are mostly static, with the dynamic part limited to a few small
locations. But most CGI variations, including servlets, make you generate the
entire page via your program, even though most of it is always the same.

-
Apacheisawebcontainer,orapplicationserverdevelopedatthe Apache Software
Foundation (ASF) adds tools for configuration and management but can
alsobe configured by editing configuration files that are normally XML-
formatted. Apache includes its own internal HTTP server.

24
HTML(HypertextMark-UpLanguage)iswhatisknownasa"mark-
uplanguage” whose role is to prepare written documents using formatting
tags. The tags indicate howthedocument is presented and how it links to
other documents,HTMLisalso used forreading documents on the Internet
from differentcomputers, thanks to the HTTP protocol, which allows users to
remotely access documents stored at a specific address on the network,
called a URL. The World Wide Web (WWW for short), or simply the Web, is
the worldwide network formed by all the documents (called "web pages™)
which are connected to one another by hyperlinks, Web pages are usually
organized
aroundamainpage,whichactsasahubforbrowsingotherpageswithhyperlinks.Thi
s group of web pages joined by hyperlinks and centered around a main page
is called a website.

The Web is composed of web pages stored on web servers, which are
machines that areconstantly connected to the Internet and which provide
the pages that users request. Every web page, and more generally any
online resource, such as
images,video,music,andanimation,isassociatedwithauniqueaddresscalledaUR
L. The key element for viewing web pages is the browser, a software
program which sends requests to web servers, then processes the resulting
data and displays the informationas intended, based on instructions inthe
HTML page.

ThemostcommonlyusedbrowsersontheInternetinclude:

o MozillaFirefox

o MicrosoftInternetExplorer

o NetscapeNavigator

o Safari

25
It is important to understand that HTML is a standard, composed of
recommendations published by an international consortium: the World Wide
Web Consortium (W3C). The official specifications of HTML describe the
language's “instructions” but not how to follow them (the way they are
translated by computer programs), so that web pages can be viewed
regardless of what the user's operating system or computer architecture
may be.

Nevertheless, as detailed as these specifications are, there is still


some room for interpretation on the browsers’ part, which explains why the
same page might be displayed differently from one web browser to another,

What's more, some software publishers add proprietary HTML


instructions,
whicharenotfoundintheW3C'sspecifications.Forthisreason,webpagescontainin
g such instructions may be displayed just fine in one browser, vet be
completely or partially unreadable in others. This is why web pages should
follow the W3C's recommendations so that as many people as possible can
view them.

HTML was designed by Tim Berners-Lee, at the time a researcher at


CERN,
beginningin1989.HeofficiallyannouncedthecreationoftheWebonUsenetinAugu
st
1991.However,itwasn'tuntil1993thatHTMLwasconsideredadvancedenoughtoc
all it a language (HTML wasthen symbolically christened HTML 1.0). The web
browser used back then was named NCSA Mosaic.

RFC 1866, dated November 19935, represented the first official


version of HTML, called HTML 2.0. After the brief appearance of HTML 3.0,
which was never officially released, HTML 3.2 became the official standard
on January 14, 1997. The most significant changes wo HTML 3.2 were the
standardization of tables, as well as
26
manyfeaturesrelatingtothepresentationofwebpages.OnDecember18,1997,HT
ML
4.0 was released. Version 4.0 of HTML was notable for standardizing style
sheets and frames. HTML version 4.01, which came out on December 24,
1999, made several minor modifications to HTML 4.0.

27
A CSS (cascadingstyle sheets) file allows you to separate your web
sites
HTMLcontentfromit’sstyle.AsalwaysyouuseyourHTMLfiletoarrangethecontent,
but all of the presentation (fonts, colors, background, borders, text
formatting, link effects & so on...) are accomplished within aCSS. At this
point you have some choices of how to use the CSS, either internallyor
externally.

Bootstrap is a popular front-end web development framework that


helps developers build responsive and mobile-first websites quickly and
easily. It was developedbyTwitterandisnowanopen-
sourceprojectmaintainedbyacommunityof
developers.Bootstrapprovidesacollectionofpre-
designedHTML,CSS,andJavaScript
componentsthatdeveloperscanusetocreatemodernandvisuallyappealingwebsi
tes without having to start from scratch.

Bootstrap includes a wide range of features that make it a popular


choice for web developers. One of the key features is its responsive design.
Bootstrap's grid system allows developers to create responsive websites that
can adapt to different
screensizesanddevices,suchassmartphones,tablets,anddesktops.Thismeanst
hat
websitesbuiltwithBootstrapwilllookgreatonanydevice,anduserscaneasilyacces
s content and navigate through the website.

Another important feature of Bootstrap is its extensive library of pre-


designed components. Bootstrap provides a wide range of pre-built HTML,
CSS, and JavaScript components that developers can use to add interactive
elements to their websites.
Thesecomponentsincludeforms,buttons,navigationmenus,modals,alerts,and
more. By using these pre-designed components, developers can save time
28
and effort in designing and coding their websites.

Bootstrap also includes a range of customization options that allow


developers to customize the look and feel of their websites. The framework
provides a variety of themes and styles that developers can use to
customize the appearance of their
websites.TheycanalsocustomizetheCSSandJavaScriptcodetoaddtheirownstyle
s

29
andfunctionality.

Another benefit of using Bootstrap is its compatibility with different


browsers and devices. Bootstrap is designed to work with all modern
browsers, including Chrome, Firefox,

30
Safari, and Internet Explorer. It also supports a wide range of devices, from
desktops and laptopsto smartphones and tablets.

Bootstrap is also designed to be easy to use, even for developers who


are new to web development. Its intuitive and well-documented APIs make it
easy for developers to understand how the framework works and how to use
its components. Bootstrap also provides a range of tutorials and resources
that help developers get started quickly and easily.

One of the challenges of using Bootstrap is its size. Because it includes


a large number ofcomponents and features, Bootstrap can be relatively
large and may slow downtheloadingtime ofwebsites.However, developers
cancustomizetheframework to include only the components and
featurestheyneed, which can help reduce its size and improve performance.

Another challenge of using Bootstrap is its design limitations. Because


Bootstrapprovidespre-
designedcomponents,developersmayfinditdifficulttocreate truly unique and
innovative designs. However, the framework does provide a range of
customizationoptions, anddevelopers can use their own CSS and JavaScript
code to add their own unique styles and functionality.

JavaScript is a lightweight, cross-platform, and interpreted compiled


programminglanguagewhichisalsoknownasthescriptinglanguageforwebpages
.It iswell-knownforthedevelopmentofwebpages,manynon-
browserenvironmentsalso use it. JavaScript can be used for Client-side
developments as well as Serverside developments. JavaScript is both
imperative and declarative type of language.
JavaScriptcontainsastandardlibraryofobjects,likeArray,
Date,andMath,andacore set of language elements like operators, control
structures, and statements.

It supplies objects to control a browser and its Document Object Model


(DOM). Like if client-side extensions allow an application to place elements
on an HTML form and respond to user events such as mouse clicks, form

31
input, and page navigation. Usefullibrariesfortheclient-sideareAngularJS,
ReactJS, VueJSandso manyothers.

32
ItsuppliesobjectsrelevanttorunningJavaScriptonaserver.Likeiftheserver- side

33
extensions allow an application to communicate with a database, and
provide continuity of information from one invocation to another of
theapplication, or perform file manipulations on a server. The useful
framework which is the most famous these days is node.js.

In this type of language we are mostly concern about how itis to be


done. It
simplycontroltheflowofcomputation.Theproceduralprogrammingapproach,obj
ect, oriented approach comes under this like async await we are thinking
what it is to be done further after async call.

In this type of language we are concern about how it is to be done,


basically here logical computation require. Here main goal is to describe the
desired result without direct dictation on how to get it like arrow function do.

PHP (Hypertext Preprocessor) is a popular server-side scripting language


designedforwebdevelopment.Itwasoriginallycreatedin1994byRasmusLerdorfa
sa set of Common Gateway Interface (CGI) scripts to track visits to his
personal website. Overtime,itevolvedintoafull-
fledgedprogramminglanguagewithalargecommunity of developers and a
wide range of applications. Today, PHP is one of the most widely used
languages for building web applications.

OneoftheprimaryreasonsforPHP'spopularityisitssimplicityandeaseofuse.It
is a scripting language, which means that it is interpreted at runtime rather
than compiled like C or Java. This makes it easy to learn and quick to get
started with. PHP scripts can be embedded directly into HTML pages, which
makes it easy to mix dynamic content with static HTML markup. PHP also
supports a wide range of database systems, including MySQL, PostgreSQL,
Oracle, and Microsoft SQL Server, makingitapopularchoiceforbuildingdata-
drivenwebapplications.

PHP is an opensource language, which means that it is free to use and


distribute.
34
Itisalsohighlycustomizable,withalargeandactivecommunityofdeveloperscreati
ng extensionsandadd-
onsthatextenditsfunctionality.ThePHPcommunityisknownfor

35
being friendly and supportive, with manyonline resources available to help
developers learn and troubleshoot their

36
code.

One of the key features of PHP is its ability to generate dynamic web
pages. This means that PHP scripts can interact with databases, file systems,
and other web services to generate custom content for each user. For
example, a PHP script could pull data from a database and display
itonawebpage inreal-time, orit couldgenerate personalized content based on
auser's preferences or location. This makes PHP a powerfultool for building
complex web applications,such as e-commerce sites, social networks, and
content management systems.

Another benefit of PHP is its cross-platform compatibility. PHP scripts can


run on a wide range of operating systems, including Windows, Linux, and
macOS. This makes iteasy to deploy PHP applications to a variety of web
servers and hosting providers. Additionally, PHP is compatible with a wide
range of web servers, including Apache, Nginx, and Microsoft IIS.

PHP is also known for its performance and scalability. Because it is a


compiled language, itcan be optimized for speed and efficiency. PHP also
supports caching and other performance- enhancing techniques that can
help to reduce server load and improve response times. This makes it a
popular choice for building high-traffic web applications that require fast,
reliable performance.

OneofthedownsidesofPHPisthatitcanbepronetosecurityvulnerabilitiesifnot
used correctly. Because PHP scripts are interpreted at runtime, they can be
vulnerable toattacks such as SQL injectionand cross-site scripting (XSS).

However, there are many best practices and security measures that
developers can use to help protect their PHP applications fromthese types
ofattacks.

Despitethesechallenges,PHPremainsoneofthemostwidelyusedandversati
le web development languages in the world. It has a large and active
community of developers who continue to innovate and improve the
language, making it an exciting and dynamic platform for building web
applications. Some of the most popular websites and web applicationsin the
world, including Facebook, Wikipedia, and WordPress, are built using PHP,
making it a proven and trusted platform for building reliable, scalable, and
dynamic web applications.

37
PHPisaserver-sidescriptinglanguage,whichisusedtodesignthedynamic
webapplications with MySQL database.

o Ithandlesdynamiccontent, databaseaswellassessiontrackingforthewebsite.

o Youcancreatesessions inPHP.

o Itcanaccesscookiesvariableandalsosetcookies.

o Ithelpstoencryptthedataandapplyvalidation.

o PHPsupportsseveralprotocols suchasHTTP, POP3, SNMP, LDAP, IMAP,


and manymore.

o UsingPHPlanguage,youcancontroltheusertoaccesssomepagesofyourwebsite.

o AsPHPiseasytoinstallandsetup,thisisthemainreasonwhyPHPis
thebestlanguage to learn.

o PHP can handle the forms, such as - collect the data fromusers using
forms,
saveitintothedatabase,andreturnusefulinformationtotheuser.Forexamp
le- Registration form.

MySQL is an open source relational database management system


(RDBMS) that is widely used for web-based applications. It was created in
199by Swedish developers Michael Widenius and David Axmark, and is now
owned by Oracle Corporation. MySQL is one of the most popular database
systems in the world, with a large and active community of developers and
users.

MySQL is known for its flexibility, scalability, and performance. It is


widely used for web-based applications because of its ability to handle large
amounts of data and its support for high-traffic websites. MySQL is also
known for its ease of use, with a simple andintuitive syntaxthat makes it
easyfor developers to learnand use.

38
One of the key features of MySQL is its support for the SQL (Structured
Query Language)standard.SQLisalanguagethatisusedtointeractwithrelational

39
databases,allowingdeveloperstoretrieve,insert,update,anddeletedata.MySQL
supports a wide range of SQL

40
commands, making iteasyfordeveloperstoworkwiththedatabaseandmanipulatedata.

Another important feature of MySQL is its support formultiple users and


concurrent access. MySQL can handle multiple users accessing the database
simultaneously,allowingforhighavailabilityandscalability.Italsosupportsavariet
yof authentication mechanisms, including username and password, SSL
certificates, and Kerberos authentication.

MySQL is also known for its high performance and scalability. It is


designed to handle large amounts of data, with the ability to handle millions
of rows and hundreds of thousands of transactions per second. MySQL can
also be optimized for performance, with features such as querycaching and
indexing.

One of the benefits of using MySQL is its flexibility. It can be used with a
wide range of programming languages, including PHP, Python, Ruby, and
Java. It also supports a variety of platforms, including Windows, Linux, and
macOS. MySQL can be used for a variety of applications, including web-
based applications, content management systems, and e-commerce sites.

MySQL is an open source database system, which means that it is free to


use and distribute.Thishashelped to drive its popularity, with a large and
active community of
developersanduserscontributingtoitsdevelopmentandsupport.MySQLisalsohig
hly customizable, with a wide range of plugins and extensions available to
extend its functionality.

One of the challenges of using MySQL is its management and


administration. MySQL
requiressometechnicalexpertisetosetupandmaintain,includingtaskssuch as
database design, backup and recovery, and performance tuning. However,
there are
manyresourcesavailabletohelpdevelopersandadministratorslearnandtroubles
hoot MySQL, including documentation, online forums, and user groups.

Another challenge of using MySQL is its security. Because it is widely


used and popular, MySQL isatargetfor securitythreats such as SQL
injectionattacks andbrute force attacks. However, there are many best
practices and security measures that developersand administrators can take
to help protect their MySQL databases, such

41
asusingstrongpasswords,restrictingaccess,andregularlyapplyingsecurityupda
tes.
Despite these challenges, MySQL remains one of the most popular and
widely used database systems in the world. It is a powerful and flexible tool
for managing largeamountsofdata,andisaprovenplatformforbuildingweb-
basedapplications

42
andsystems.Whetheryouareadeveloperlookingtobuildanewwebapplication,or
an administrator looking to manage an existing database, MySQL offers a
reliable and scalable platform for your needs.

43
MySQL is a fast, easy-to-use RDBMS being used for many small and big
businesses. MySQL is developed,marketed and supported by MySQL AB, which is a
Swedish company.
MySQLisbecomingsopopularbecauseofmanygoodreasons

o MySQLisreleasedunderanopen-sourcelicense.Soyouhavenothingtopaytouseit.

o MySQL is a very powerful program in its own right. It handles a large


subset of the functionalityofthe most expensive and powerfuldatabase
packages.

o MySQLusesastandardformofthewell-knownSQLdatalanguage.

o MySQL works on many operating systems and with many languages


including PHP, PERL, C, C++, JAVA, etc.

o MySQLworksveryquicklyandworkswellevenwithlargedatasets.

o MySQLisveryfriendlytoPHP,themostappreciatedlanguageforwebdevelopment.

o MySQL supports large databases, up to 50 million rows or more in a


table. The default file size limit for a table is 4GB, but you can increase
this (if your operating system can handle it) to atheoreticallimit of8
millionterabytes (TB).

o MySQL is customizable. The open-source GPL license allows


programmers to modify the MySQL software to fit their own specific
environments.

XAMPP is an open source software package that provides a complete


web development environment. It includes Apache web server, MySQL
database, PHP
scriptinglanguage,andPerlprogramminglanguage.XAMPPisapowerfultoolforwe
b developers and is widely used for building webapplications and websites.
XAMPP stands for X (cross-platform), Apache, MySQL, PHP, and Perl. It
44
was created by the Apache Friends organization and was originally intended
for use on
Windows,buthassincebeenportedtoLinuxandmacOSaswell.XAMPPisdesignedt
o be easy to install and use, and provides a convenient and comprehensive
way to develop web applications.

45
One ofthe keyfeatures of XAMPPis its cross-platform
compatibility.XAMPPcan be installed on Windows, Linux, and macOS, making
it a versatile tool for web developers. It also provides a consistent
development environment across different platforms, making it easier to
develop and test applications on multiple operating systems.

Another important feature of XAMPP is its integration of Apache, MySQL,


PHP, and Perl.These technologies are commonly used in web development,
and XAMPP provides a complete and integrated package for developing and
testing web
applications.XAMPPalsoincludesotherusefultoolsandutilities,suchasphpMyAd
min (aweb-basedinterfacefor managingMySQL databases) and
FileZilla(anFTP client).

XAMPPisalsoknownforitseaseofuse.Itcanbeinstalledandconfiguredquickly
and easily, even by developers with limited technical expertise.
XAMPPincludes a control panel that allows users to start and stop the
Apache web server and MySQL database, and to configureother settings and
options.

One of the benefits of using XAMPP is its flexibility. It can be used for a
variety of web development tasks, including developing and testing
websites, building web applications, and creating content management
systems. XAMPP is also highly customizable, with a wide rangeof plugins and
extensions available to extend its functionality.

AnotherbenefitofXAMPPisitscompatibilitywithpopularwebdevelopmentto
ols and frameworks. XAMPP works well with popular content management
systems such as WordPress,Joomla, and Drupal, as well as with popular PHP
frameworks such as Laravel and CodeIgniter. This makes XAMPP a versatile
tool for web developers who use a variety of technologies and frameworks.

One of the challenges of using XAMPP is its security. XAMPP is not


intended for production use and is not designed to be secure out of the box.
Developers using XAMPP should take care to configure it properly and apply
appropriate security measures, such as using strong passwords, restricting
access, and keeping the softwareup-to-datewithsecuritypatchesandupdates.

Another challenge of using XAMPP is its performance. Because it


includes multiple components, XAMPPcan consume significant system

46
resources and maynot perform aswell as other dedicatedwebserver software
packages.However, XAMPPis
designedfordevelopmentandtestingpurposes,andperformancemaynotbea

47
primaryconcerninthosecontexts.

Despite these challenges, XAMPP remains a popular and widely used


web
developmenttool.Itprovidesaconvenientandcomprehensivewaytodevelopandt
est web applications, and

48
is a powerful tool for web developers of all levels of expertise. Whether you
are a beginner learning to develop websites or an experienced developer
building complex web applications, XAMPP offers a versatile and flexible
platform for your needs.

As definedearlier, XAMPPis usedto symbolize the classificationof


solutions for different technologies. It provides a base for testing of projects
based on different technologies through a personal server. XAMPP is an
abbreviated form of each alphabet representing each of its major
components. This collection of software contains a web server named
, a database management system named and scripting/
programming languages such as and X denotes Cross-
platform,whichmeansthatitcanworkondifferentplatforms suchasWindows,
Linux, and macOS.

Many other components are alsopart of this collection of software and


are explained below.

Different local systems have different configurations of


operating systemsinstalledinit.Thecomponentofcross-
platformhasbeenincludedtoincrease the utility and audience for this package
of Apache distributions. It supports various platforms suchas packages of
Windows, Linus, and MAC OS.

ItisanHTTPacross-platformwebserver.Itisusedworldwidefordelivering
web content. The server application has made free for installation and used
for the community of developers under the aegis of Apache Software
Foundation. The remote serverofApachedeliverstherequestedfiles,
images,andotherdocumentstotheuser.

Originally, MySQL DBMS was a part of XAMPP, but now it has been
replacedby MariaDB. It is one of the most widely used relational DBMS,
developed by MySQL. It offersonline services of data storage, manipulation,
retrieval, arrangement, and deletion.
It is the backend scripting language primarily used for web
development. PHP allows users to create dynamic websites and applications.
49
It can be installed on every platform and supports a variety of database
management systems. It was implemented using C language. PHPstands for
Hypertext Processor. It is said to be
derivedfromPersonalHomePagetools,whichexplainsitssimplicityandfunctionali
ty.

50
It isa combinationoftwohigh-leveldynamic languages, namelyPerl5 andPerl6.
Perl

51
canbeappliedforfindingsolutionsforproblemsbasedonsystemadministration,w
eb development, and networking. Perl allows its users to program dynamic
web applications. It is very flexible and robust.

It is atool used for dealing with MariaDB.Its version4.0.4 is


currently beingused in XAMPP. Administration ofDBMS is its main role.

Itistheopen-sourceimplementationoftheSecureSocketLayerProtocol
and Transport Layer Protocol. Presently version0.9.8 is a part ofXAMPP.

It is a panel that helps to operate and regulate upon


other components of the XAMPP. Version 3.2.1 is the most recent update. A
detailed description ofthe controlpanelwill be done inthe next sectionofthe
tutorial.

It is a Web Analytics software solution used for User logs and


provide details about the usage.

Itisamailtransportsystem,anditslatestversionis4.62.It isamail
server, whichhelps to manage the mails across the web.

Version7.0.42iscurrentlybeingusedinXAMPP.Itisaservlet basedon
JAVA toprovide JAVA functionalities.

It is a File Transfer ProtocolServer, which supports and


eases the transferoperations performed on files. Itsrecently updated
version is 0.9.41.

52
XAMPPissupportedinthreefileformats:

o . - It is an extension used to denote executable files making it


accessible to
installbecauseanexecutablefilecanrunonacomputerasanynormalprogra
m.

o - This extension is used to denote compressed files that


support multiple data compression and encryption algorithms. It is
more favored by a formalist, althoughit requires working with more
complex files.

o - This extension supports lossless compression of files. A Zipped file


may contain multiple compressed files. The is mainly
used for compression offiles supported by this format. The .ZIP files are
quite tricky to install as compared to
.EXE.

Thus .EXE is the most straightforward format to install, while the other two formats
are quitecomplicated and complex to install.

53
54
55
A graphical tool used to describe and analyze the moment of data
through a system manual or automated including the process, stores of
data, and delays in the system. Data Flow Diagrams are the central tool and
the basis from which other components are developed. The transformation
of data from input to output, through processes, may be described logically
and independently of the physical components associated with the system.
The DFD is alsoknown as a data flow graph or a bubble chart.

The top-level diagram is often called a “context diagram”. Itcontains a


single process, but it plays a very important role in studying the current
system. The context diagram defines thesystem that will be studied in the
sense that it determines the
boundaries.Anythingthatisnotinsidetheprocessidentifiedinthecontextdiagram
will not be part of the system study. It represents the entire software
element as a single bubble with input and output data indicated by incoming
and outgoing arrows respectively.

DataFlowDiagramsareoftwotypesasfollows:

(a)PhysicalDFD

(b)LogicalDFD

Structured analysis states that the current system should be first


understand
correctly.ThephysicalDFDisthemodelofthecurrentsystemandisusedtoensur

56
e
thatthecurrentsystemhasbeenclearlyunderstood.PhysicalDFDsshowsactual

57
devices,departments,andpeopleetc.,involvedinthecurrentsystem.

58
Logical DFDs are the model of the proposed system. They clearly
should show the requirements on which the new system should be built.
Later during designactivitythisis takenasthebasis for
drawingthesystem’sstructurecharts.

TheBasicNotationusedtocreateaDFD’sareasfollows:

Datamoveinaspecificdirectionfromanorigintoadestination.

People,procedures,ordevicesthatuseorproduce(Transfor

m) Data.The physical component is not identified.

Externalsourcesordestinationofdata,whichmaybePeople,programs,
organizations or other entities.

59
HeredataarestoredorreferencedbyaprocessintheSystem

Design is the first step in moving from problem domain to the solution
domain. Design isessentially the bridge between requirements
specification and the final solution.

The goal of design process is to produce a model or representation


of a system, whichcan be used later to build that system. The produced
model is called the “Design of the System”. It is a plan for a solution for
the system

60
61
62
5
52
53
54
Inputdesignistheprocessofconvertingauser-orienteddescriptionoftheinputs
to acomputer based business systeminto a program-oriented specification.

Theobjectivesintheinputdesign:

 Toproduceacost-effectivemethodofinput

 Toachieveahighestpossiblelevelofaccuracy.

 Toensurethatinputisacceptabletoandunderstoodbytheuserstaff.

Severalactivities have to be carried out as a part ofthe overall input


process. They
includ
e

 DataRecording-Collectionofdataatitssource.

 DataDescription-Transferofdatatoaninputform

 DataConversion-Conversionoftheinputdatatoacomputer
acceptablemedium

 Data Verification-Checkingtheconversion

 Data Control - Checking the accuracy and controlling the flow


of data to thecomputer

 DataTransmission-Transmissionortransferringthedatatothecomputer.

 DataValidation-Checkingtheinputdatabyprogramwhenitenters
thecomputer system.

55
 DataCorrection-Correctiontheerrorsthatarefoundatanyearlystages

The output design is an ongoing activity almost from the beginning of


the project, and follows the principles of form design. Effects and well define
an output design improves the relationship of system and the user, thus
facilitating decision- making. A major form of output in a hard copy from the
printer, however soft copies available.

TheTypesofoutputusedinthesystemare:

 Internaloutputs:Whosedestinationis
withintheorganizationand is the user'smain interface with
the computer.

 Interactiveoutputs:Whichinvolvestheuserincommunicatingdire
ctly with thecomputer.

 Externaloutputs:Whosedestinationisoutsidetheorganization
and whichrequire special attentionsince theyproject the
image ofthe organization.

The database design is a must for any developed especially more for
the data
storeprojects,sincethechattingmethodinvolvesstoringthemessageinhetablean
d producedtothesender and receiver, proper handling of the table is a must.
In the
project,admintableisdesignedtobeuniqueinacceptingtheusernameandtheleng
th of the username and password should be greater than zero.

56
57
Thecompletionofasystemisachievedonlyafterithasbeenthoroughlyteste
d. Though this gives a feel the project is completed, there cannot be any
project without going through this stage. Though the programmer may have
taken many precautions not to commit any mistakes that crop up during the
execution stage. Hence in this
stageitisdecidedwhethertheprojectcanundergotherealtimeenvironmentexecu
tion without any break downs, therefore a package can be rejected evenat
this stage.

The testing phaseinvolves the testing of the developed system using


various kinds of data. An elaborated testing of data is prepared and a system
is tested using the test data. While testing, errors are noted and corrections
remade, the corrections are also noted for future use.

Testing is a set of activities that can be planned in advance and


conducted
systematically.Theproposedsystemistestedinparallelwiththesoftwarethatcons
ists of its own phases of analysis, implementation, testing and maintenance.
Following are the tests conducted on the system.

Duringtheimplementationofthesystemeachmoduleofthesystemwastest
ed separately to uncover errors within its boundaries. User interface was
used as a guide in the process.

 A module is composed of various programs related to


that module. Module testing is done to check the module functionality

58
and interaction between units within a module. It checks the
functionality of each
programwithrelationtootherprogramswithinthesamemodule.Itthentests

59
theoverallfunctionalityofeach module.

60
Integration testing is a systematic technique for constructing the
program structure while conducting tests to uncover errors associated
with interfacing. The objectiveistotakeunit-
testedmoduleandbuildaprogramstructurethat hasbeen dictated by design.

 The software has been tested with the realistic


data givenby the client and produced fruitful results. The client
satisfying all the
requirementsspecifiedbythemhasalsodevelopedthesoftwarewithintheti
me limitation specified. Ademonstration has been given to the client
and the end- user giving all the operational features.

61
62
Enhancements in a payroll management system can significantly
improve efficiency,accuracy, and user experience. Here are some
future enhancement ideas:

: Allow seamless integration with HR systems


to
automaticallyfetchemployeedata,suchasnewhires,terminations,promoti
ons,
andsalarychanges,reducingmanualdataentryandensuringdataconsisten
cy.

: Implement advanced reporting tools


and analyticsdashboards to provide insights into payroll trends, cost
analysis, overtime patterns, and compliance metrics. This can help in
strategic decision- making and optimizing payroll processes.

: Develop a self-service portal where


employees canaccess theirpaystubs,tax
forms,benefitsinformation,andupdatepersonal details, reducing the
administrative burden on HR and improving employee satisfaction.

:Createamobileapplicationorresponsivewebinterface
to allow employees and managers to access payroll-related information
and performtaskson-the-go,enhancingaccessibilityandconvenience.

: Integrate automated compliance


updates to ensure that payroll calculations and tax deductions remain

63
compliant with the latest regulations and tax laws, reducing the risk of
penalties and errors.

64
Offerflexiblepaymentoptionssuchasdirectdeposi
t, paper checks, prepaid cards, and mobile wallets to accommodate
diverse employee preferences and improve payment efficiency.

: Implement artificial intelligence algorithms to


analyze payroll data, identify patterns, detect anomalies, and provide
proactive recommendations for cost-saving measures, fraud detection,
and process optimization.

: Extend support for multi-


country payroll processing and multiple currencies to accommodate
global operations and ensure compliance with international
regulations.

: Strengthen security measures with


features like multi-facto authentication, data encryption, role-based
access controls, and regular security audits to safeguard sensitive
payroll information from unauthorized access and cyber threats.

:Utilizepredictiveanalyticstoforecastfuturepayrollexpens
es based on historical data, seasonal trends, and workforce changes,
enabling better budget planning and resource allocation.

:Integrateachatbotorvirtualassistanttoprovideimmedi
ate support and answers to common payroll-related queries from
employees and managers, improving user experience and reducing
support overhead.

65
66
In conclusion, the Payroll Management System (PMS) project presents a
comprehensivesolutiontailoredtoaddresstheintricaterequirementsofmodernp
ayroll administration. Through the integration of modules dedicated to
attendance tracking, salary management, employee data management,
holiday listing, and pay heads, the PMS offers a cohesive platform to
streamline payroll processes and enhance organizational efficiency.
The Attendance module ensures accurate recording and monitoring of
employee attendance, leveraging advanced biometric or time-tracking
systems to facilitate precise payroll calculations based on actual work hours.
This module not only minimizes errors but also promotes transparency and
accountability in workforce management.
TheSalaryManagementmoduleautomatessalarycalculation,allowanceanddedu
ction management, and bonus processing, ensuring timely and accurate
disbursement of
employeewages.Bycustomizingpaycomponentsbasedonorganizationalpolicies
and employee contracts, the system accommodates diverse compensation
structures and enhances payroll accuracy.
The Employee module serves as a centralized repository for storing and
managing employee information, streamlining HR processes and facilitating
efficient workforce management. From personal details to employment
history, this module provides comprehensive insights into employee profiles,
enabling administrators to make informed decisions.
TheListHolidaymoduleoffersaconvenientwaytomaintainacomprehensivecalen
dar of company-wide and regional holidays. By facilitating scheduling
adjustments and payroll processing based on holiday data, this module
ensures compliance with regulatory requirements and promotes workforce
productivity.
The Pay Heads module allows for the customization and management of
various pay components, including allowances, deductions, bonuses, and
incentives. By defining and configuring pay heads according to
organizational policies, administrators can tailor the payroll system to meet
specificbusiness needs and regulatorystandards.

67
68
<?php require_once(dirname( FILE
).'/config.php'); if
( isset($_SESSION['Admin_ID']) &&
$_SESSION['Login_Type'] == 'admin' ) {
header('location:'.BASE_URL.'attendanc
e/');
}
if(isset($_SESSION['Admin_ID'])&&
$_SESSION['Login_Type'] == 'emp' ) {
header('location:'.BASE_URL.'profile
/');
}?>

<!DOCTYPEhtml>
<html>
<head>
<metacharset="utf-8">
<metahttp-equiv="X-UA-
Compatible"content="IE=edge">
<meta content="width=device-width, initial-
scale=1, maximum-scale=1, user-scalable=no"
name="viewport">

<title>Login-Payroll</title>

69
<linkrel="stylesheet"href="<?phpechoBASE_URL;
?>bootstrap/css/bootstrap.min.css">
<linkrel="stylesheet"href="<?phpechoBASE_URL;

70
?>dist/css/
AdminLTE.css">
<linkrel="stylesheet"href="<?phpechoBASE_URL;
?>dist/css/skins/_all-skins.min.css">

<!--[ifltIE9]>
<script
src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"
></script>
<script
src="https://oss.maxcdn.com/respond/1.4.2/respond.min.j
s"></ script>
<![endif]-->
</head>

<bodyclass="hold-transitionlogin-page">
<divclass="login-box">
<divclass="login-logo">
<ahref="<?phpechoBASE_URL;?>"><b>Payroll</
b> Management</a>

</div>
<divclass="login-box-body">
<pclass="login-box-msg">Pleaselogintostartyour
session</p>
<formmethod="POST"role="form"data-
toggle="validator"id="login-form">
71
<divclass="form-grouphas-feedback">
<inputtype="text"class="form-
control"id="code"name="code"placeholder="AdminCode
"required/>
<spanclass="glyphiconglyphicon-user
form- control-feedback"></span>
</div>
<divclass="form-grouphas-feedback">
<inputtype="password"class="form-
control"id="password"name="password"placeholder="P
assword" required />
<spanclass="glyphiconglyphicon-lock
form- control-feedback"></span>
</div>
<button type="submit" class="btn btn-
success btn- block btn-flat">Login</button>
</form>
</div>
</div>

<scriptsrc="<?phpechoBASE_URL;
?>plugins/jQuery/jquery-2.2.3.min.js"></script>
<scriptsrc="<?phpechoBASE_URL;
?>bootstrap/js/bootstrap.min.js"></script>
<scriptsrc="<?phpechoBASE_URL;?>plugins/
bootstrap- notify/bootstrap-notify.min.js"></script>

72
<scriptsrc="<?phpechoBASE_URL;?>plugins/jquery-

73
validator/validator.min.js"></script>
<scriptsrc="<?phpechoBASE_URL;?>plugins/
bootstrap- notify/bootstrap-notify.min.js"></script>
<scriptsrc="<?phpechoBASE_URL;
?>dist/js/app.min.js"></script>
<scripttype="text/javascript">varbaseurl='<?phpecho
BASE_URL; ?>';</script>
<scriptsrc="<?phpechoBASE_URL;
?>dist/js/script.js?rand=<?phpechorand();?>"></script>
</body>
</html>
<?php require_once(dirname( FILE
).'/config.php'); if ( !
isset($_SESSION['Admin_ID']) ||
!isset($_SESSION['Login_Type']) ) {
header('location:'.BASE_URL);
}?>

<!DOCTYPEhtml>
<html>
<head>
<metacharset="utf-8">
<meta http-equiv="X-UA-
Compatible"content="IE=edge">
<meta content="width=device-width, initial-
scale=1, maximum-scale=1, user-scalable=no"

74
name="viewport">

75
<title>Leaves-Payroll</title>

<linkrel="stylesheet"href="<?phpechoBASE_URL;
?>bootstrap/css/bootstrap.min.css">
<link
rel="stylesheet"href="https://cdnjs.cloudfla
re.com/ajax/libs/font-
awesome/4.5.0/css/font-
awesome.min.css">
<linkrel="stylesheet"href="<?phpechoBASE_URL;
?>plugins/datatables/dataTables.bootstrap.css">
<linkrel="stylesheet"href="<?phpechoBASE_URL;
?>plugins/datatables/
jquery.dataTables_themeroller.css">
<linkrel="stylesheet"href="<?phpechoBASE_URL;
?>dist/css/
AdminLTE.css">
<linkrel="stylesheet"href="<?phpechoBASE_URL;
?>plugins/datepicker/
datepicker3.css">
<linkrel="stylesheet"href="<?phpechoBASE_URL;
?>dist/css/skins/_all-skins.min.css">

<!--[ifltIE9]>
<script
src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"
></script>
76
<script
src="https://oss.maxcdn.com/respond/1.4.2/respond.min.j
s"></ script>
<![endif]-->

77
</head>
<bodyclass="hold-transitionskin-bluesidebar-mini">
<divclass="wrapper">

<?php require_once(dirname(
FILE ).
'/partials/topnav.php'); ?>

<?php require_once(dirname(
FILE ).
'/partials/sidenav.php'); ?>

<divclass="content-wrapper">
<sectionclass="content-header">
<h1>Leaves</h1>
<olclass="breadcrumb">
<li><ahref="<?phpechoBASE_URL;
?>"><iclass="fafa-dashboard"></i>Home</a></li>
<liclass="active">Leaves</li>
</ol>
</section>

<sectionclass="content">
<divclass="row">
<?phpif($_SESSION['Login_Type']
=='admin')
{?>
78
<divcla
ss="col
-xs-
12">
<divcl
ass="
box">

79
<divclass="box-
header">

<h3class="box
-title">AllLeaves</
h3>
</div>
<divclass="box-

body">
<table
id="allleaves"class="tabletable-borderedtable-stripe">
<thead>
<tr>

<th>#</th>

<th>EMPCODE</th>

<th>SUBJECT</th>

<th>DATES</th>

<th>MESSAGE</th>

<th>TYPE</th>

<th>STATUS</th>

80
<th>ACTIONS</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
<?php}else{ ?>
<divclass="col-lg-4">
<divclass="box">
<divclass="box-
header">

<h3class="box
-title">ApplyforLeave</
h3>
</div>
<divclass="box-

body">
<form
method="post" role="form" data-toggle="validator"
id="leave- form">
<div
class="form-group">

<labelfor="leave_subject">LeaveSubject</label>

<inputtype="text"class="form-control"name="leave_subject"
81
id="leave_subject"require
d/>
</div>
<div

class="form-group">

<labelfor="leave_dates">LeaveDates(MM/DD/YYYY)</label>

<inputtype="text"class="form-
controlmultidatepicker"name="leave_dates" id="leave_dates"
required />

<smallclass="text-
muted">Youcanselectmultipledates separated by
comma.</small>
</div>
<div
class="form-group">

<labelfor="leave_message">LeaveMessage</
label>

<textarea class="form-control"
name="leave_message"id="leave_message" rows="10"
required></textarea>
class="form-
group">

82
</div>
<labelfor="leave_type">LeaveType</
<div
label>

83
<selectclass="form-
control"name="leave_type"id="leave_type"required>

<optionvalue="">Pleasemakeachoice</option>

<option value="Casual Leave">Casual Leave</option>

<optionvalue="EarnedLeave">Privileged/Earned
Leave</option>

<optionvalue="SickLeave">Medical/SickLeave</option>

<optionvalue="Maternity Leave">MaternityLeave</option>

<optionvalue="LeaveWithoutPay">LeaveWithoutPay</
option>

</select>
</div>
<div
class="form-
group">

<buttontype="submit"class="btnbtn-primary">Applyfor
Leave</button>
</div>
</form>
84
</div>

85
</div>
</div>
<divclass="col-lg-8">
<divclass="box">
<divclass="box-
header">
<h3class="box
-title">MyLeaves</
h3>
</div>
<divclass="box-

body">
<table
id="myleaves"class="tabletable-borderedtable-stripe">
<thead>
<tr>

<th>#</th>

<th>SUBJECT</th>

<th>DATES</th>

<th>MESSAGE</th>

<th>TYPE</th>

86
<th>STATUS</
th>
</tr>
</thead>
</table>
</div>
</div>
</div>
<?php}?>
</div>
</
section>
</div>

<footerclass="main-footer">
<strong>&copy; <?php echo date("Y");?>
Payroll
ManagementSystem|</strong>DevelopedBySurajitPram
anik
</footer>
</div>

<scriptsrc="<?phpechoBASE_URL;
?>plugins/jQuery/jquery-2.2.3.min.js"></script>
<scriptsrc="<?phpechoBASE_URL;
?>bootstrap/js/bootstrap.min.js"></script>
<scriptsrc="<?phpechoBASE_URL;

87
?>plugins/datatables/jquery.dataTables.min.js"></script>
<scriptsrc="<?phpechoBASE_URL;
?>plugins/datatables/dataTables.bootstrap.min.js"></script>

88
<scriptsrc="<?phpechoBASE_URL;?>plugins/jquery-
validator/validator.min.js"></script>
<scriptsrc="<?phpechoBASE_URL;
?>plugins/bootstrap-notify/bootstrap-notify.min.js"></script>
<scriptsrc="<?phpechoBASE_URL;
?>plugins/datepicker/bootstrap-datepicker.js"></script>
<scriptsrc="<?phpechoBASE_URL;
?>dist/js/app.min.js"></script>
<scripttype="text/javascript">varbaseurl='<?
phpecho BASE_URL; ?>';</script>
<scriptsrc="<?phpechoBASE_URL;
?>dist/js/script.js?rand=<?phpechorand();?>"></script>
</body>
</html>
<?phprequire_once(dirname( FILE ).'/config.php');
if(!isset($_SESSION['Admin_ID'])||$_SESSION['Login_Type']
!='admin'){
header('location:' .BASE_URL);
}?>

<!DOCTYPEhtml>
<html>
<head>
<metacharset="utf-8">
<meta http-equiv="X-UA-
Compatible"content="IE=edge">
89
<meta content="width=device-width, initial-
scale=1, maximum-scale=1, user-scalable=no"
name="viewport">

<title>PayHeads-Payroll</title>

<linkrel="stylesheet"href="<?phpechoBASE_URL;
?>bootstrap/css/bootstrap.min.css">
<link
rel="stylesheet"href="https://cdnjs.cloudfla
re.com/ajax/libs/font-
awesome/4.5.0/css/font-
awesome.min.css">
<linkrel="stylesheet"href="<?phpechoBASE_URL;
?>plugins/datatables/dataTables.bootstrap.css">
<linkrel="stylesheet"href="<?phpechoBASE_URL;
?>plugins/datatables/
jquery.dataTables_themeroller.css">
<linkrel="stylesheet"href="<?phpechoBASE_URL;
?>dist/css/
AdminLTE.css">
<linkrel="stylesheet"href="<?phpechoBASE_URL;
?>dist/css/skins/_all-skins.min.css">

<!--[ifltIE9]>
<script
src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"
90
></script>
<script
src="https://oss.maxcdn.com/respond/1.4.2/respond.min.j
s"></ script>

91
<![endif]-->
</head>
<bodyclass="hold-transitionskin-bluesidebar-mini">
<divclass="wrapper">

<?php require_once(dirname(
FILE ).
'/partials/topnav.php'); ?>

<?php require_once(dirname(
FILE ).
'/partials/sidenav.php'); ?>

<divclass="content-wrapper">
<sectionclass="content-header">
<h1>Pay Heads</h1>
<olclass="breadcrumb">
<li><ahref="<?phpechoBASE_URL;
?>"><iclass="fafa-dashboard"></i>Home</a></li>
<liclass="active">PayHeads</li>
</ol>
</section>

<sectionclass="content">
<divclass="row">
<divclass="col-xs-12">

92
<divclass="box">
<divclass="box-header">

93
<h3class="box-
title">ListofPayHeads</
h3>
<button
type="button" class="btn btn-xs btn-primary pull-right" data-
toggle="modal"data-target="#PayheadsModal">

<iclass="fafa-
plus"></
i>AddPayHead
</button>
</div>
<divclass="box-body">
<divclass="table-

responsiove">
<table
id="payheads"class="tabletable-borderedtable-striped">
<thead>
<tr>

<thclass="text-center">#</th>

<th>HEADNAME</th>

<th>DESCRIPTION</th>

<thclass="text-center">HEADTYPE</th>

94
<thclass="text-center">ACTIONS</th>

95
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
</section>
</div>

<divclass="modalfadein"id="PayheadsM
odal" tabindex="-1">
<divclass="modal-dialog">
<divclass="modal-content">
<divclass="modal-header">
<buttontype="butt
on"class="close"data-dismiss="modal"aria-
label="Close">
<spanaria-
hidden="true">&times;</
span>
</button>
<h4class="modal-title">Pay

Heads</h4>
</div>
<formmethod="POST"role="f
96
orm" data-toggle="validator"id="payhead-form">

97
<divclass="modal-body">
<divclass="form-group">
<lab
elfor="payhead_name">Pay Head
Name</label>
<input
type="text"class="form-
control"id="payhead_name"name="payhead_name"plac
eholder="Pay Head Name" required />
</div>
<divclass="form-group">
<label
for="payhead_desc">PayHeadDescription</label>
<textarea
class="form-
control"id="payhead_desc"name="payhead_desc"place
holder="Pay Head Description" required></textarea>
</div>
<divclass="form-group">
<labelfor="payhead_type">Pay
HeadType:</label>
<selectclass="form-control"
id="payhead_type"name="payhead_type"required>
<optionvalue="">---SelectPay
HeadType---</option>
<option

98
value="earnings">Earnings</option>
<optio
n
value="deductions">Deductions</o
ption>

99
</select>
</div>
</div>
<divclass="modal-footer">
<inputtype="hidden"
name="payhead_id"id="payhead_id"/>
<buttontype="submit"
name="submit" class="btn btn-primary">Save Pay
Head</button>
</div>
</form>
</div>
</div>
</div>

<footerclass="main-footer">
<strong>&copy; <?php echo date("Y");?>
Payroll
ManagementSystem|</strong>DevelopedBySurajitPram
anik
</footer>
</div>

<scriptsrc="<?phpechoBASE_URL;
?>plugins/jQuery/jquery-2.2.3.min.js"></script>
<scriptsrc="<?phpechoBASE_URL;

10
0
?>bootstrap/js/bootstrap.min.js"></script>
<scriptsrc="<?phpechoBASE_URL;

10
1
?>plugins/datatables/jquery.dataTables.min.js"></script>
<scriptsrc="<?phpechoBASE_URL;
?>plugins/datatables/dataTables.bootstrap.min.js"></script>
<scriptsrc="<?phpechoBASE_URL;?>plugins/jquery-
validator/validator.min.js"></script>
<scriptsrc="<?phpechoBASE_URL;
?>plugins/bootstrap-notify/bootstrap-notify.min.js"></script>
<scriptsrc="<?phpechoBASE_URL;
?>dist/js/app.min.js"></script>
<scripttype="text/javascript">varbaseurl='<?
phpecho BASE_URL; ?>';</script>
<scriptsrc="<?phpechoBASE_URL;
?>dist/js/script.js?rand=<?phpechorand();?>"></script>
</body>/html>

10
2
10
3
10
4
10
5
10
6
10
7
10
8
10
9
11
0
 www.google.com
 www.w3schools.com
 www.tutorialspoint.com
 www.stackoverflow.com
 www.github.com
 www.sourcecoder.com
 www.dotnettutorials.com

11
1

You might also like