Академический Документы
Профессиональный Документы
Культура Документы
Guided By:
Mrs. Shradhanjali Rout (Asst. Professor)
Submitted By:
Dhiraj Kumar (1001230038)
Shiwendu Shah (1001230066)
Prince Roshan (1001230053)
Md. SafakatAlli (1001230047)
Siddharth Kumar (1001230069)
DECLARATION
We hereby certify that the the project entitled Payroll Information System by Dhiraj Kumar
(1001230038), Prince Roshan (1001230053), Shiwendu Shah (1001230066), Md. SafakatAlli
(1001230047), Siddharth Kumar (1001230069) in partial fulfilment of requirements for the
award of degree of B.Tech. (Computer Science and Engineering) submitted in the
Department of Computer Science &Engineering at SYNERGY INSTITUTE OF
ENGINEERING & TECHNOLOGY, DHENKANAL under BIJU PATNAIK UNIVERSITY
OF TECHNOLOGY, ROURKELA is an authentic record of our own work carried out under
the supervision of Shradhanjali Rout (Asst. Professor). The matter presented has not been
submitted by me in any other University / Institute for the award of B.Tech. Degree.
Dhiraj Kumar
Shiwendu Shah
Prince
Roshan
(1001230038)
(1001230066)
(1001230053)
Siddharth Kumar
(1001230069)
Md. SafakatAlli
(1001230047)
This is to certify that the above statement made by the candidate is correct to the best of my
knowledge.
Guides Signature
HOD Signature
(Computer Science & Engineering
Department)
ACKNOWLEDGEMENT
It is a matter of great pleasure for us to submit this project on Payroll Information system
We express our deep sense of gratitude and indebtedness to our guide Mrs.Shradhanjali Rout,
for consistently providing us valuable encouragement, helpful suggestion, moral support and
affection. In spite of his extremely busy schedules, she was always available to share with me
his deep insights, wide knowledge and extensive experience. Her advices have value lasting
much beyond this project. We consider it a blessing to be associated with him.
Our sincere thanks to Prof. Biswajit Tripathy, Head of the Department, S.I.E.T, Dhenkanal,
for granting permission to use the facilities available in the institute for this study.
We also express our thankfulness to the encouragement from faculty and staff members of
Computer Science Engineering Department for their continuous encouragement and
suggestions.
Last, but not least, we thank all those who have directly or indirectly assisted us for
completion of this project.
Signature
ABSTRACT
Project title: Payroll Information System
This is a small scale project for payroll system .The basic idea is that the manager of
the company maintains the details about the employees, the designation and salary. It consists
of employee details, payroll system, status and exits. The manager can enter the name and
employee ID and get the salary details of that particular employee. In payroll system we can
calculate the net salary of the employee based on input.The Payroll processing is critical to
businesses and other organizations because of the significant amounts of money involved in
employee remuneration and the complexity of the legal requirements. This is a small scale
project for payroll processing. The basic idea is that the manager of the company maintains
the information such as companys name, its branches all over. The employee details maintain
the employee ID, Name along with personal information. The total salary details determine
the net pay of the employee. This pay roll processing involves with two types of users.
EMPLOYEE
ADMINISTRATOR
In the Employee details module various details like employee ID, Name, Designation,
Basic pay are obtained from the user. In the Display module the total database is displayed. In
the salary Details module, the individual database is displayed which shows the PF, DA,
HRA and Net salary of the particular employee. By using the Modify module we can modify
and update the employee personal details on the database stored.The Payroll Information
System is based on the salary activity for each company staff depending on their attendance.
The first activity is based on saving the employees details where each employee will be given
a unique Employee ID.so that any employee can check their salary after deducting different
taxes.
CONTENTS
Chapter 1
Chapter2
Chapter 3
Chapter 4
Chapter5
Chapter 6
Chapter 7
Introduction
10
Feasibility Study
11
11
11
12
12
13
4.1Hardware Requirements
13
13
14
14
17
UML Diagram
18
18
21
22
27
Methodology
29
7.1 Coding
7.1.1 .html Codes
29
66
168
Chapter 8
Testing
174
9.1 Fundamental And Objective
174
175
175
175
176
176
Chapter 9
177
Chapter 10
Maintenance
178
Chapter 11
Conclusion
179
Chapter 12
Bibliography
180
1.INTRODUCTION
Payroll information system is an application that enables Admin to create and store employee
salary records. This application also helps to generate pay slip to employees. This application
is helpful to departments of the organization which maintains data of employees related to an
organization.
The Payroll processing is critical to businesses and other organizations because of the
significant amounts of money involved in employee remuneration and the complexity of the
legal requirements. This is a small scale project for payroll processing. The basic idea is that
the manager of the company maintains the information such as companys name, its branches
all over. The employee details maintain the employee ID, Name along with personal
information. The total salary details determine the net pay of the employee. This pay roll
processing involves with two types of users.
USER
ADMINISTRATOR
USERS ROLE:
The users can login/logout the database. He/She can view his/her personal details, monthly
pay details, and company details. The user can just view the information whereas he/she
could not make changes in the database.
ADMINISTRATOR ROLE:
The administrator plays a vital role in the payroll system. The administrator controls the
entire database. The net salary calculations are calculated by the administrator itself. The
main role of the administrator is to safeguard the database.
The Payroll Information System is based on the salary activity for each company staff
depending on their attendance. The first activity is based on saving the employees details
where each employee will be given a unique Employee ID.so that any employee can check
their salary after deducting different taxes. Admin has the authority to add employee details.
And he also has the right to edit or delete employee information to/from the list. Admin
provides a unique username and password for each employee through which he can login and
check salary. All the informations are being saved in the database.
Modules:
Account Configuration:
Employee: When a new employee joins the company, his record is saved in the database.
Salary Calculation: Here salary is calculated for each employee based on their attendances
and different taxes. As soon as the salary is paid to an employee, a salary slip will be
generated.
Salary Report: Here the user can look through the salary given to an employee for a
particular month and year.
Registration: As soon as the employee joins the company, the admin provides unique user
Display: A user can view information regarding employees working in that company, post,
and other information.
Logout: This module allows the user to Logout the application. Further operations cannot be
performed after user exits.
An employer uses a payroll system to process its payroll. Consequently, payroll cannot be
processed without a payroll system. A payroll system allows the employer to pay employees
on time and accurately, plus comply with other statutory regulations.
Small companies, for example, can use QuickBooks; medium-sized companies can use
Ultimate Software and enterprises with more complex payroll requirements can use Condata.
If the employer chooses the external system, it can, for example, choose an online payroll
service provider with the ability to manage employee payroll accounts and print payroll
reports online. If the employer offers employees direct deposit, it should forward bank
account information including account and routing numbers to the payroll service provider.
Project Objective:
The objective of the Payroll Information System is to provide a system which manages
the Payroll activity i.e. the salary paid for each employee in a company depending upon their
attendance and their different tax policies of the company, its calculation which is very huge.
The users will consume less amount of time when compared to manual paper work through
the automated system. The system will take care of all the payroll activities like managing
each employees attendance, the number of leaves taken by that particular employee and the
different type of taxes calculation in a very quick manner and it avoids
Data storing is easier. Paper work will be reduced and the company staffs spend more time on
monitoring the progress. The system is user friendly and easy to use. All the important datas
will be stored in the database and it avoids any miscalculation.
Project Scope:
The supplementary specification applies to payroll processing. This specification defines the
non-functional requirement of the system such as
Functionality:
Since it stand alone application, a single user may use it at a time.
Reliability:
The system is available at 24 hours a day, seven days a week.
Performance:
The performance depends on hardware specification.
3.FEASIBILITY STUDY
Feasibility study is an evaluation of the proposed system regarding its workability, impact on
the organization, ability to meet the user needs and effective use of resources. Thus when a
new application is proposed it normally goes through a feasibility study before it is approved
for development. Feasibility and risk analysis are related in many ways.
During the
feasibility analysis, this project has been discussed below under the topics:
This system also benefits the users as they do not have to download anything on their
terminals increasing their efficiency and ease of use.
2.3Economic Feasibility
The Salary Information System as a very low development Cost. The low cost is
attributed to the usage of the existing resources of the organization. As the website is
very user friendly and easy to use, there is no need to provide special training to the
users of the website, thus saving valuable time and money
Communications Interfaces:Communications interfaces can be provided through e-mail, web browser, network server
communications protocols, electronic forms, and so on.
Process: A new employee can be added into the system and admin can update his
details.
Output: The employee can be credited salary based upon his details.
Employees module:
1.Test case: Login
Input: ID, Password.
Process: Click on the login link. If Employee enters ID and password correct it goes
to the other page otherwise displays the same page with an error message.
Output: Displays the Information to be viewed by an employee.
Output: The salary slip of an employee for the specified month and year can be
viewed.
System login: For employee to login it requires the valid login and password before
granting further access.
Data encryption: The payroll system encrypts all information before writing it into the
database.
Maximum login attempts: This system allows the maximum of three consecutive
attempts.
Transaction recordings: This system shall keep a record of all failure login attempts
with user login, terminal login and time.
Maintainability:
Problem reduction: The major problem in the payroll system shall be either resolve in
two hours maintenance window.
Automatic backups: The payroll system shall perform automatic backups once per
batch.
Portability:
The payroll system is provided to different users provided they meet the specified
requirements.
Reliability: Users expect the payroll system to be reliable, a common non-functional requirement for
most systems. Information entered yesterday in the system should be there today. Accuracy is
part of the sense of reliability -- payroll checks and reports must be mathematically correct,
including calculations involving cents.
6.UML DIAGRAM
6.1USECASE
The payroll use cases in our system are:
1 .Login
2.Registration
3. Add employee
4. Update employee details
5.Update password
6. Delete employee
7. Calculate salary
8. View Pay slip
9.Update salary
10.Inbox
11.Report
12Logout
Actors involved
1.Admin
2. Employee
Use case name: LoginThe user enters the username and password and chooses if the user is employee or
administrator. If entered details are valid, the users account becomes available. If it is
invalid, an appropriate message is displayed to the user.
Use-case name: Add employee
Only the manager has access to this use-case. The manager has to provide the details of the
employee to create an account for a new employee. If the employee added already exits an
appropriate message is displayed.
6.2. Classes
The class diagram is a graphical representation of all the classes used in the system and their
operations, attributes and relationships. The payroll system makes use of the following
classes
1. login
2. Employee personal details
3. Employee salary
1) Salary transaction
It consists of two attributes and two operations. The attributes are username and password.
The operations used are login () and logout ().
3) Employee salary
It is used to store the salary details of the employee such as basic pay, house rent allowance,
dearness allowance, provident fund and insurance. The operations available are calculate net
salary (), view salarydetails (), update salary details () and deduce fine () operations available
are calculate net salary (), view salary details (), update salary details () and deduce fine ().
Class diagram
Sequence diagram
6.3.1Admin login
6.3.5update details:-
6.4. Activity diagram:The activity diagram focuses on representing various activities or every chunk of processing
and their of activation. An activity is the state with an internal action and one or more
outgoing transition which automatically follow the termination of the internal activity. This is
carried out during the initial stages of requirement analysis and specification. This diagram is
very helpful in understanding the complex processing activities involving the roles played by
many components. Here we have shown the details about the working and the activities that
are done in our project. Each and every step is shown here
7.METHODOLOGY
7.1CODING
7.1.1
.html codes
Main.html
<html><head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p> </p>
<p><img src="banner.jpg" width="750" height="150"></p>
<p><font color="#0000FF"><b>PAYROLL</b></font><b><img src="bar.JPG"
width="766" height="32"></b><br></p>
<p><font color="#0000FF">We offer:<br>
Weekly, Monthly & yearly calculations<br>
Source deduction calculation<br>
Record of Employment</font></p>
<p><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version
=4,0,2,0" width="105" height="33">
<param name="BASE" value=".">
<param name=movie value="button13.swf">
<param name=quality value=high>
<param name="BGCOLOR" value="">
<embed src="button13.swf" quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?
function validateForm()
{
var x=document.forms["form1"]["t1"].value;
if (x==null || x=="")
{
alert("Enter valid user ID");
return false;
}
var y=document.forms["form1"]["t2"].value;
if (y==null || y=="")
{
alert("Enter valid password");
return false;
}}
</script></head>
<body bgcolor="#FFFFFF" text="#000000" onload='document.form1.t1.focus()'>
<h1><font color="#FFFFFF"><img src="pids.jpg" width="605" height="135"></font></h1>
<form name="form1" method="post" onsubmit="return validateForm()" action="login.jsp">
<p><a href="main.html">BACK</a></p>
<table width="32%" border="0">
<tr bgcolor="#0033FF">
<td colspan="2" bgcolor="#FFFF00">
<div align="center"><b><font color="#0000FF">ADMIN LOGIN!!!!!!!
</font></b></div></td></tr>
<tr bgcolor="#0066CC"><td>
<div align="left"><font face="Courier New, Courier, mono"><b></b></font></div>
</td><td><b><font color="#333333">
</body></html>
Compose notice.html
<html><head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript"><!-function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4))
{
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);
// --></script></head>
<body bgcolor="#FFFFFF" text="#000000" alink="yellow" vlink="white">
<form name="form1" method="post" action="compose_notice.jsp">
<div id="Layer1" style="position:absolute; width:414px; height:462px; z-index:1; left:
199px; top: 76px">
<table width="32%" border="1"><tr bgcolor="#0066FF"><td colspan="2"> </td>
</tr><tr>
<td colspan="2" bgcolor="#FFFF00"><div align="center"><b><font face="Courier New,
Courier, mono" size="5" color="#0000FF">POST NOTICE</font></b></div>
</td></tr>
<tr><td width="38%"><b><font face="Courier New, Courier, mono">TO</font></b></td>
<td width="62%"><b><font face="Courier New, Courier, mono"><input type="text"
name="t" size="40"></font></b></td></tr>
<tr>
</script>
</head>
input
{
font-family: verdana;
font-size: 11px;
border: #B1B1B1 1px solid;
background-color: #EEEEEE;
}
.txtSmall
{
font-family: verdana;
font-size: 9px;
font-weight: normal;
color: #000000;
}
</style>
<style>
h1{filter:shadow;
color:blue;
width:1000px;
}
</style>
<script language="javascript">
function fnSetDateFormat(oDateFormat)
{
oDateFormat['FullYear'];
//Example = 2007
oDateFormat['Year'];
//Example = 07
oDateFormat['FullMonthName'];
//Example = January
oDateFormat['MonthName'];
//Example = Jan
oDateFormat['Month'];
oDateFormat['Date'];
//Example = 01
//Example = 01
oDateFormat['FullDay'];
//Example = Sunday
oDateFormat['Day'];
//Example = Sun
oDateFormat['Hours'];
//Example = 01
oDateFormat['Minutes'];
//Example = 01
oDateFormat['Seconds'];
//Example = 01
var sDateString;
return sDateString;
}
</script>
</head>
MAIL</font></b></div>
</td>
</tr>
<tr>
<td width="38%"><b><font face="Courier New, Courier, mono">TO</font></b></td>
<td width="62%"><b><font face="Courier New, Courier, mono">
<input type="text" name="t" size="40">
</font></b></td>
</tr>
<tr>
<td width="38%" height="26"><b><font face="Courier New, Courier,
mono">DATE</font></b></td>
<td width="62%" height="26"><b><font face="Courier New, Courier, mono">
<input type=text name='dt' id='txtCalendarFourth' class='inputBoxStyle' readonly size="30">
<img src='cal.gif' onMouseOver="fnInitCalendar(this, 'txtCalendarFourth',
'style=calendar_blue.css,instance=single')" align='absmiddle' width="14" height="18" >
</font></b></td>
</tr>
<tr>
<td width="38%"><b><font face="Courier New, Courier,
mono">SUBJECT</font></b></td>
<td width="62%"><b><font face="Courier New, Courier, mono">
<input type="text" name="sub" size="40">
</font></b></td>
</tr>
<tr>
<td width="38%"><b><font face="Courier New, Courier,
mono">MESSAGE</font></b></td>
<td width="62%"><b><font face="Courier New, Courier, mono">
</html>
Emp login.html
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
window.history.forward(1);
</script>
<script language="JavaScript">
<!-function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4))
{
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);
// -->
</script>
<script>
function validateForm()
{
var x=document.forms["form1"]["t1"].value;
if (x==null || x=="")
{
}
</script>
</head>
<td>
<div align="left"><font face="Courier New, Courier, mono"><b></b></font></div>
</td>
<td><b><font color="#333333">
<input type="hidden" name="r1" value="Employee">
</font></b></td>
</tr>
<tr bgcolor="#0066CC">
<td>
<div align="left"><font face="Courier New, Courier, mono"><b><font
color="#FFFFFF">LOGIN
ID</font></b></font></div>
</td>
<td><b><font color="#333333">
<input type="text" name="t1">
</font></b></td>
</tr>
<tr bgcolor="#0066CC">
<td>
<div align="left"><font face="Courier New, Courier, mono"><b><font
color="#FFFFFF">PASSWORD</font></b></font></div>
</td>
<td><b><font color="#333333">
<input type="password" name="t2">
</font></b></td>
</tr>
<tr bgcolor="#0066CC">
<td> </td>
<td><b><font color="#333333">
<input type="submit" name="Submit" value="LOGIN">
<input type="reset" name="Submit2" value="RESET">
</font></b></td>
</tr>
<tr bgcolor="#0033FF">
<td colspan="2" bgcolor="#FFFF00"> </td>
</tr>
</table>
<p> </p>
<p> </p>
</form>
<h1> </h1>
<h1> </h1>
</body>
</html>
Emp monthly salary report.html
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<tr bgcolor="#0000FF">
<td colspan="2"><b><font color="#FFFF00"> MONTHLY SALARY
REPORT</font></b></td>
</tr>
<tr>
<td width="26%">SELECT EMP TYPE</td>
<td width="74%">
<select name="ec">
<option>CAT-A</option>
<option>CAT-B</option>
<option>CAT-C</option>
</select>
</td>
</tr>
<tr>
<td width="26%">SELECT MONTH & YEAR</td>
<td width="74%">
<select name="mn">
<option>JAN</option>
<option>FEB</option>
<option>MARCH</option>
<option>APRIL</option>
<option>MAY</option>
<option>JUNE</option>
<option>JULY</option>
<option>AUG</option>
<option>SEPT</option>
<option>OCT</option>
<option>NOV</option>
<option>DEC</option>
</select>
<select name="yr">
<option>2013</option>
<option>2014</option>
<option>2015</option>
<option>2016</option>
<option>2017</option>
<option>2018</option>
<option>2019</option>
<option>2020</option>
</select>
</td>
</tr>
<tr>
<td width="26%"> </td>
<td width="74%">
<input type="submit" name="Submit" value="REPORT">
</td>
</tr>
<tr>
<td colspan="2" bgcolor="#0000FF"> </td>
</tr>
</table>
</form>
</body>
</html>
Emp payslip.html
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<option>AUG</option>
<option>SEPT</option>
<option>OCT</option>
<option>NOV</option>
<option>DEC</option>
</select>
<select name="yr">
<option>2013</option>
<option>2014</option>
<option>2015</option>
<option>2016</option>
<option>2017</option>
<option>2018</option>
<option>2019</option>
<option>2020</option>
</select>
</td>
</tr>
<tr bgcolor="#FFFF00">
<td width="26%"> </td>
<td width="74%">
<input type="submit" name="Submit" value=" PAYSLIP">
</td>
</tr>
</table>
</form>
</body>
</html>
Index.html
<html>
<script language="JavaScript">
<!-function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4))
{
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);
// -->
</script>
<frameset rows="25%,*" border="0">
<frame src="bann.html" name="top1">
<frameset cols="18%,71%" border="0">
<frame src="menu1.html" name="menu1">
<frame src="main.html" name="main">
</frameset>
</frameset>
<noframes>
</noframes>
</html>
Monthly salary.html
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<option>FEB</option>
<option>MARCH</option>
<option>APRIL</option>
<option>MAY</option>
<option>JUNE</option>
<option>JULY</option>
<option>AUG</option>
<option>SEPT</option>
<option>OCT</option>
<option>NOV</option>
<option>DEC</option>
</select>
<select name="yr">
<option>2013</option>
<option>2014</option>
<option>2015</option>
<option>2016</option>
<option>2017</option>
<option>2018</option>
<option>2019</option>
<option>2020</option>
</select>
</td>
</tr>
<tr>
<td width="26%"> </td>
<td width="74%">
<option>CAT-B</option>
<option>CAT-C</option>
</select>
</td>
</tr>
<tr>
<td width="26%">SELECT MONTH & YEAR</td>
<td width="74%">
<select name="mn">
<option>JAN</option>
<option>FEB</option>
<option>MARCH</option>
<option>APRIL</option>
<option>MAY</option>
<option>JUNE</option>
<option>JULY</option>
<option>AUG</option>
<option>SEPT</option>
<option>OCT</option>
<option>NOV</option>
<option>DEC</option>
</select>
<select name="yr">
<option>2013</option>
<option>2014</option>
<option>2015</option>
<option>2016</option>
<option>2017</option>
<option>2018</option>
<option>2019</option>
<option>2020</option>
</select>
</td>
</tr>
<tr>
<td width="26%"> </td>
<td width="74%">
<input type="submit" name="Submit" value="REPORT">
</td>
</tr>
<tr>
<td colspan="2" bgcolor="#0000FF"> </td>
</tr>
</table>
</form>
</body>
</html>
Payslip.html
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<option>JULY</option>
<option>AUG</option>
<option>SEPT</option>
<option>OCT</option>
<option>NOV</option>
<option>DEC</option>
</select>
<select name="yr">
<option>2013</option>
<option>2014</option>
<option>2015</option>
<option>2016</option>
<option>2017</option>
<option>2018</option>
<option>2019</option>
<option>2020</option>
</select>
</td>
</tr>
<tr>
<td width="26%"> </td>
<td width="74%">
<input type="submit" name="Submit" value="GENERATE PAYSLIP">
</td>
</tr>
</table>
</form>
</body>
</html>
Report.html
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
Salary.html
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
PAY SLIP</a></font></td>
</tr>
</table>
</body>
</html>
Update emp.html
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
</object></p>
<p><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version
=4,0,2,0" width="142" height="23">
<param name="BASE" value=".">
<param name=movie value="text7.swf">
<param name=quality value=high>
<param name="BGCOLOR" value="">
<param name="SCALE" value="exactfit">
<embed src="text7.swf" quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" scale="exactfit"
width="142" height="23" bgcolor="" base=".">
</embed>
</object></p>
</body>
</html>
Update salary.html
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!-function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4))
{
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);
// -->
</script>
<style>
input
{
font-family: verdana;
font-size: 11px;
border: #B1B1B1 1px solid;
background-color: #EEEEEE;
}
.txtSmall
{
font-family: verdana;
font-size: 9px;
font-weight: normal;
color: #000000;
}
</style>
<style>
h1{filter:shadow;
color:blue;
width:1000px;
}
</style>
<script language="javascript">
function fnSetDateFormat(oDateFormat)
{
oDateFormat['FullYear'];
//Example = 2007
oDateFormat['Year'];
//Example = 07
oDateFormat['FullMonthName'];
//Example = January
oDateFormat['MonthName'];
//Example = Jan
oDateFormat['Month'];
oDateFormat['Date'];
//Example = 01
//Example = 01
oDateFormat['FullDay'];
//Example = Sunday
oDateFormat['Day'];
//Example = Sun
oDateFormat['Hours'];
//Example = 01
oDateFormat['Minutes'];
//Example = 01
oDateFormat['Seconds'];
//Example = 01
var sDateString;
return sDateString;
}
</script>
<script type="text/javascript">
function validateForm()
{
var ename=document.forms["form1"]["en"].value;
if (ename==null || ename=="")
{
alert("Enter Employee name");
return false;
}
</script>
<script type="text/javascript">
function nameValidate(temp)
{
var l = temp.value.length;
for(var i=0; i<l; i++)
{
//variable ch will store ascii code for the string character at index i
var ch = temp.value.charCodeAt(i);
if(!((ch>=65 && ch<=90) || (ch>=97 && ch<=122) || (ch==32)))
{
alert("Enter characters only!");
temp.value="";
exit;
}
}
}
function validatePhone(temp)
{
var l = temp.value.length;
//lert(heart);
if(!(l==10))
{
alert("Phone number should be of 10 digit!");
temp.value="";
}
else
{
for(var i=0; i<=9; i++)
{
var ch = temp.value.charCodeAt(i);
if(!(ch>=48 && ch<=57))
{
alert("Phone Number should be digits only!");
temp.value="";
exit;
}
}
}
}
function validateBlank(temp)
{
var l = temp.value.length;
if (l ==null || l =="")
{
alert("Data required ...");
temp.value="";
exit;
}
}
function validateMail()
{
var x=document.forms["form1"]["md"].value;
var atpos=x.indexOf("@");
var dotpos=x.lastIndexOf(".");
if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length)
{
alert("Not a valid e-mail address");
return false;
}
}
</script>
</head>
if(rs.last())
{
s1=rs.getString("login_id");
v1=Integer.parseInt(s1);
v2=v1+1;
%>
<h2><font color="#0000FF"><b><font color="#FF0000">ADD EMPLOYEE
</font></b></font></h2>
<b><font color="#0000FF"><a href="emp.html">Back</a> || <font color="#000000"><a
href="admin_home.jsp">Admin
Home</a></font></font></b>
<form name="form1" method="post" action="add_emp_submit.jsp">
<table width="65%" border="1" height="53">
<tr bgcolor="#0000FF">
<td colspan="2"><b><font color="#FFFFFF">EMPLOYEE PERSONAL
DETAIL</font></b></td>
</tr>
<tr>
<td width="31%"><b><font face="Courier New, Courier, mono">LOGIN
ID</font></b></td>
<td width="69%"><font face="Courier New, Courier, mono">
<input type="text" name="id" value="<%= v2 %>" size="40" readonly>
</font></td>
</tr>
<tr>
<td width="31%"><b><font face="Courier New, Courier, mono">EMPLOYEE
NAME</font></b></td>
<td width="69%"><font face="Courier New, Courier, mono">
<input type="text" name="en" size="40" required onblur="nameValidate(this)" >
</font></td>
</tr>
<tr>
</tr>
<tr>
<td width="31%"><b><font face="Courier New, Courier, mono">EMPLOYEE
TYPE</font></b></td>
<td width="69%"><font face="Courier New, Courier, mono">
<select name="et">
<option>CAT-A</option>
<option>CAT-B</option>
<option>CAT-C</option>
</select>
</font></td>
</tr>
<tr>
<td width="31%"><b><font face="Courier New, Courier, mono">DOB</font></b></td>
<td width="69%"><b><font face="Courier New, Courier, mono"> Date
<select name="dd">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
<option>17</option>
<option>18</option>
<option>19</option>
<option>20</option>
<option>21</option>
<option>22</option>
<option>23</option>
<option>24</option>
<option>25</option>
<option>26</option>
<option>27</option>
<option>28</option>
<option>29</option>
<option>30</option>
<option>31</option>
</select>
Month
<select name="mm">
<option>JAN</option>
<option>FEB</option>
<option>MAR</option>
<option>APR</option>
<option>MAY</option>
<option>JUN</option>
<option>JUL</option>
<option>AUG</option>
<option>SEP</option>
<option>OCT</option>
<option>NOV</option>
<option>DEC</option>
</select>
YEAR
<select name="yy">
<option>1980</option>
<option>1981</option>
<option>1982</option>
<option>1983</option>
<option>1984</option>
<option>1985</option>
<option>1986</option>
<option>1987</option>
<option>1989</option>
<option>1990</option>
<option>1991</option>
<option>1992</option>
<option>1993</option>
<option>1994</option>
<option>1995</option>
<option>1996</option>
<option>1997</option>
<option>1998</option>
<option>1999</option>
<option>2000</option>
<option>2001</option>
<option>2002</option>
<option>2003</option>
<option>2004</option>
<option>2005</option>
<option>2006</option>
<option>2007</option>
<option>2008</option>
<option>2009</option>
<option>2010</option>
<option>2011</option>
<option>2012</option>
<option>2012</option>
<option>2013</option>
<option>2013</option>
<option>2014</option>
<option>2015</option>
<option>2016</option>
<option>2017</option>
<option>2018</option>
<option>2019</option>
<option>2020</option>
<option>2021</option>
<option>2022</option>
<option>2023</option>
<option>2024</option>
</select>
</font></b></td>
</tr>
<tr>
<td width="31%" height="21"><b><font face="Courier New, Courier,
mono">GENDER</font></b></td>
<td width="69%" height="21"><b><font face="Courier New, Courier, mono">
<input type="radio" name="gen" value="Male">
Male
<input type="radio" name="gen" value="Female">
Female</font></b></td>
</tr>
<tr>
<td width="31%"><b><font face="Courier New, Courier, mono">MOBILE
NO</font></b></td>
<td width="69%"><font face="Courier New, Courier, mono">
<input type="text" name="mb" size="40" required onblur="validatePhone(this)">
</font></td>
</tr>
<tr>
<td width="31%"><b><font face="Courier New, Courier, mono">MAIL
ID</font></b></td>
<td width="69%"><font face="Courier New, Courier, mono">
<input type="text" name="md" size="40" required onblur="validateMail()">
</font></td>
</tr>
<tr bgcolor="#0000FF">
<td colspan="2">
<div align="center"><font face="Courier New, Courier, mono"></font><font face="Courier
New, Courier, mono">
<input type="submit" name="Submit" onClick="validateForm()" value="Continue">
</font></div>
</td>
</tr>
</table>
</form>
<%
}
}
catch(Exception e)
{
}
%>
</body>
</html>
Add emp submit.jsp
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script>
function printWindow(){
bV = parseInt(navigator.appVersion)
if (bV >= 4) window.print()
}
</script>
<script>
function validateBlank(temp)
{
var l = temp.value.length;
if (l ==null || l =="")
{
alert("Data required ... ");
temp.value="";
exit;
}
}
function validateNumber()
{
var numbers = /^[0-9]+$/;
if(document.form1.ba.value.match(numbers))
{
return true;
}
else
{
alert('Enter only numeric value');
document.form1.ba.focus();
return false;
}
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>
<a href="javascript:printWindow()">PRINT</a></p>
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*"
errorPage="" %>
<%!
Connection con;
PreparedStatement st;
String s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13,s14;
int res;
%>
<%
`s1=request.getParameter("id");
s2=request.getParameter("en");
s3=request.getParameter("qu");
s4=request.getParameter("dj");
s5=request.getParameter("ad");
s6=request.getParameter("de");
s7=request.getParameter("dep");
s8=request.getParameter("et");
s9=request.getParameter("dd");
s10=request.getParameter("mm");
s11=request.getParameter("yy");
s12=request.getParameter("gen");
s13=request.getParameter("mb");
s14=request.getParameter("md");
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.prepareStatement("insert into emp_per values(?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
st.setInt(1,Integer.parseInt(s1));
st.setString(2,s2);
st.setString(3,s3);
st.setString(4,s4);
st.setString(5,s5);
st.setString(6,s6);
st.setString(7,s7);
st.setString(8,s8);
st.setString(9,s9);
st.setString(10,s10);
st.setString(11,s11);
st.setString(12,s12);
st.setString(13,s13);
st.setString(14,s14);
st.executeUpdate();
}
catch(Exception e)
{}
%>
<form name="form1" method="post" action="add_sal_submit.jsp">
<table width="37%" border="1" height="211">
<tr bgcolor="#0000FF">
<td colspan="2" height="15"><div align="center"><font
color="#FFFFFF"><b>EMPLOYEE SALARY DETAIL</b></font></div>
</td></tr>
<tr>
<td width="54%"><font face="Courier New, Courier, mono">LOGIN ID</font></td>
<td width="46%"><font face="Courier New, Courier, mono">
<input type="text" value="<%= s1 %>" name="id" readonly>
</font></td></tr>
<tr>
<td width="54%"><font face="Courier New, Courier, mono">ACCOUNT
NUMBER</font></td>
<td width="46%"><font face="Courier New, Courier, mono">
<input type="text" name="ac" required onblur="validateBlank(this)">
<font color="#FF0000">*</font></font></td></tr>
<tr>
<td width="54%"><font fa-ce="Courier New, Courier, mono">BASIC
SALARY</font></td>
<td width="46%"><font face="Courier New, Courier, mono">
<input type="text" name="ba" required onblur="validateNumber()">
<font color="#FF0000">*</font></font></td></tr>
<tr>
<td width="54%"><font face="Courier New, Courier, mono">TA</font></td>
<td width="46%"><font face="Courier New, Courier, mono">
</td></tr>
<tr bgcolor="#0000FF">
<td colspan="2">
<div align="center">
<input type="submit" name="Submit" value="CONTINUE">
<input type="reset" name="Submit2" value="RESET">
</div></td></tr></table></form>
<p><br>
</p></body></html>
Add login.jsp
<html><head><title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script>
function printWindow(){
bV = parseInt(navigator.appVersion)
if (bV >= 4) window.print()
}
</script></head>
<body bgcolor="#FFFFFF" text="#000000">
<p> <a href="javascript:printWindow()">PRINT</a> ||<a href="admin_home.jsp">
Admin Home</a></p>
String s1,s2,s3;
%>
<%
s1="Employee";
s2=request.getParameter("id");
s3=request.getParameter("pwd");
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.prepareStatement("insert into login values(?,?,?)");
st.setString(1,s1);
st.setInt(2,Integer.parseInt(s2));
st.setString(3,s3);
st.executeUpdate();
}
catch(Exception e)
{}
%>
<p> </p><table width="75%" border="1">
<tr>
<td>
<div align="center">
<h2><b>Employee Registration Slip</b></h2>
</div></td></tr>
<tr>
<td>
st.setInt(1,Integer.parseInt(s1));
st.setString(2,s2);
st.setInt(3,Integer.parseInt(s3));
st.setInt(4,Integer.parseInt(s4));
st.setInt(5,Integer.parseInt(s5));
st.setInt(6,Integer.parseInt(s6));
st.setInt(7,Integer.parseInt(s7));
st.setInt(8,Integer.parseInt(s8));
st.setInt(9,Integer.parseInt(s9));
st.setInt(10,s10);
st.executeUpdate();
}
catch(Exception e)
{}
%>
<form name="form1" method="post" action="add_login.jsp">
<table width="37%" border="1" height="128">
<tr bgcolor="#0000FF">
<td colspan="2" height="15">
<div align="center"><font color="#FFFFFF"><b>EMPLOYEE LOGIN
DETAIL</b></font></div>
</td></tr>
<tr>
<td width="35%" height="31"><font face="Courier New, Courier, mono">LOGIN
ID</font></td>
<td width="65%" height="31">
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.createStatement();
rs=st.executeQuery("select * from emp_per");
%>
<body bgcolor="#FFFFFF" text="#000000">
<h1><b>DELETE EMPLOYEE </b></h1>
<h1><img src="bar.JPG" width="766" height="32"></h1>
<form name="form1" method="post" action="admin_delete_emp_submit.jsp">SELECT
EMPLOYEE ID / LOGIN ID <select name="id">
<%
while(rs.next())
{
%>
<option><%= rs.getInt("login_id") %></option>
<%
}
%></select>
<input type="submit" name="Submit" value="DELETE EMPLOYEE"></form>
<h1> </h1>
<%
}
catch(Exception e)
{}
%></body></html>
Admin_delete_emp_submit.jsp
<html><head><title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body bgcolor="#FFFFFF" text="#000000">
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*"
errorPage="" %>
<%!
int rs;
Connection con;
Statement st,st1;
String s1;
%>
<%
try
{
s1=request.getParameter("id");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.createStatement();
st1=con.createStatement();
rs=st.executeUpdate("delete cascade from emp_per where login_id="+s1+"");
st1.executeUpdate("delete from emp_sal where login_id="+s1+"");
}
catch(Exception e)
{}
%>
<jsp:forward page="del_success.jsp" /></body></html>
Admin_home.jsp
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!-function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4))
{
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);
// -->
</script>
</head>
ResultSet rs;
Connection con;
Statement st;
int v1,v2;
String s1;
%>
<%
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.createStatement();
rs=st.executeQuery("select * from emp_per");
%>
<body bgcolor="#FFFFFF" text="#000000">
<h1><b>UPDATE EMPLOYEE PERSONAL DETAIL</b></h1>
<h1><img src="bar.JPG" width="766" height="32"></h1>
<form name="form1" method="post" action="admin_update_emp_per2.jsp">
SELECT EMPLOYEE ID / LOGIN ID
<select name="id">
<%
while(rs.next())
{
%>
<option><%= rs.getInt("login_id") %></option>
<%
}
%>
</select>
<input type="submit" name="Submit" value="UPDATE">
</form>
<h1> </h1>
<%
}
catch(Exception e)
{}
%></body></html>
Admin update emp per2.jsp
<html><head><title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script>
function validatePhone(temp)
{
var l = temp.value.length;
//lert(heart);
if(!(l==10))
{
alert("Phone number should be of 10 digit!");
temp.value="";
}
else
{
for(var i=0; i<=9; i++)
{
var ch = temp.value.charCodeAt(i);
if(!(ch>=48 && ch<=57))
{
alert("Phone Number should be digits only!");
temp.value="";
exit;
}} }}
function validateMail()
{
var x=document.forms["form1"]["md"].value;
var atpos=x.indexOf("@");
var dotpos=x.lastIndexOf(".");
if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length)
{
alert("Not a valid e-mail address");
return false;
}}
function nameValidate(temp)
{
var l = temp.value.length;
for(var i=0; i<l; i++)
{
//variable ch will store ascii code for the string character at index i
var ch = temp.value.charCodeAt(i);
if(!((ch>=65 && ch<=90) || (ch>=97 && ch<=122) || (ch==32)))
{
{
alert("Not a valid e-mail address");
return false;
}
if (x==null || x=="")
{
alert("Enter valid email id");
return false;
}}
</script></head>
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*"
errorPage="" %>
<%!
ResultSet rs;
Connection con;
Statement st;
String s1;
%>
<%
try
{
s1=request.getParameter("id");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.createStatement();
rs=st.executeQuery("select * from emp_per where login_id="+s1+"");
if(rs.next())
{
%>
</td>
</tr>
<tr>
<td width="29%">MAIL ID</td>
<td width="71%">
<input type="text" name="md" value="<%= rs.getString("mail") %>" required
onblur="validateMail()">
</td>
</tr>
<tr>
<td width="29%"> </td>
<td width="71%">
<input type="submit" name="Submit" value="UPDATE">
</td>
</tr>
</table>
</form>
<h1> </h1>
<%
}
}
catch(Exception e)
{
}
%>
</body>
</html>
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.createStatement();
rs=st.executeUpdate(" update emp_per set address='"+s2+"' , desg='"+s3+"' , mob='"+s4+"' ,
mail='"+s5+"' where login_id="+s1+"");
%>
<p><a href="emp.html">Admin Home</a></p>
<table width="33%" border="1">
<tr bgcolor="#0000FF">
<td colspan="2"><font color="#FFFFFF"><b>UPDATED DATA</b></font></td>
</tr>
<tr>
<td width="40%">UPDATE ADDRESS</td>
<td width="60%"><%=s2 %></td>
</tr>
<tr>
<td width="40%">UPDATE DESIGNATION</td>
<td width="60%"><%=s3 %></td>
</tr>
<tr>
<td width="40%">UPDATE MOBILE NO</td>
<td width="60%"><%=s4 %></td>
</tr>
<tr>
<td width="40%">UPDATE MAIL ID</td>
<td width="60%"><%=s5 %></td>
</tr>
</table>
<%
}
catch(Exception e)
{
}
%>
</body>
</html>
Admin update password.jsp
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*"
errorPage="" %>
<%!
ResultSet rs;
Connection con;
Statement st;
int v1,v2;
String s1;
%>
<%
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.createStatement();
rs=st.executeQuery("select * from emp_per");
%>
</select>
<input type="submit" name="Submit" value="UPDATE PASSWORD">
</form>
<h1> </h1>
<%
}
catch(Exception e)
{
}
%>
</body>
</html>
Admin update password2.jsp
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*"
errorPage="" %>
<%!
ResultSet rs;
Connection con;
Statement st;
String s1;
%>
<%
try
{
s1=request.getParameter("id");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.createStatement();
rs=st.executeQuery("select * from login where login_id="+s1+"");
if(rs.next())
{
%>
</td>
</tr>
<tr>
<td width="29%"> </td>
<td width="71%">
<input type="submit" name="Submit" value="UPDATE PASSWORD">
</td>
</tr>
</table>
</form>
<h1> </h1>
<%
}
}
catch(Exception e)
{
}
%>
</body></html>
All emp detail report.jsp
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
NAME </font></td>
<td width="104" height="20"><font size="2" color="#000000" face="Courier New, Courier,
mono">QUALIFICATION</font></td>
<td width="32" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">DEPT</font></td>
<td width="26" height="20"><font face="Courier New, Courier, mono"
size="2">DOJ</font></td>
<td width="65" height="20"><font face="Courier New, Courier, mono"
size="2">ADDRESS</font></td>
<td width="36" height="20"><font face="Courier New, Courier, mono"
size="2">DESG</font></td>
<td width="47" height="20"><font face="Courier New, Courier, mono" size="2">EMPTYPE</font></td>
<td width="47" height="20"><font face="Courier New, Courier, mono"
size="2">DOB</font></td>
<td width="48" height="20"><font face="Courier New, Courier, mono"
size="2">GENDER</font></td>
<td width="56" height="20"><font face="Courier New, Courier, mono"
size="2">MOBILE</font></td>
<td width="36" height="20"><font face="Courier New, Courier, mono"
size="2">MAIL</font></td>
<td width="45" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">ACC
NO</font></td>
<td width="48" height="20"><font size="2" color="#000000" face="Courier New, Courier,
mono">BASIC
</font></td>
<td width="21" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">TA</font></td>
<td width="21" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">DA</font></td>
<td width="26" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">HRA</font></td>
%>
<%
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.createStatement();
rs=st.executeQuery("select * from login_query ");
%>
<p><a href="report.html">BACK</a></p>
<table width="85%" border="1" height="86">
<tr bgcolor="#FFFF00">
<td colspan="4" height="20" bgcolor="#0000FF">
<div align="center"><font color="#FFFFFF"><b><font face="Courier New, Courier,
mono">EMPLOYEE
LOGIN REPORT</font></b></font></div></td></tr>
<tr bgcolor="#FFFF00">
<td width="20" height="20"><font size="2" color="#000000" face="Courier New, Courier,
mono">LOGINID </font></td>
<td width="20" height="20"><font size="2" color="#000000" face="Courier New, Courier,
mono">EMP NAME </font></td>
<td width="20" height="20"><font face="Courier New, Courier,
mono">PASSWORD</font></td>
<td height="20" width="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">DEPT</font></td></tr>
<%
while(rs.next())
{
%>
<tr>
<td width="20" height="2"><%= rs.getString("login_id")%></td>
<td width="20" height="2"><%= rs.getString("emp_name")%></td>
<td width="20" height="2"><%= rs.getString("password")%></td>
<td height="2" width="20"><%= rs.getString("dept")%></td>
</tr>
<%
}}
catch(Exception e)
{}
%>
</table></body></html>
Compose notice.jsp
<html><head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*"
errorPage="" %>
<%!
Connection con;
PreparedStatement st;
String s1,s2,s3,s4,s5;
int res;
%>
<%
s1=request.getParameter("t");
s2=(String)session.getAttribute("sesid");
s3=request.getParameter("dt");
s4=request.getParameter("sub");
s5=request.getParameter("ms");
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.prepareStatement("insert into notice values(?,?,?,?,?)");
st.setInt(1,Integer.parseInt(s1));
st.setInt(2,Integer.parseInt(s2));
st.setString(3,s3);
st.setString(4,s4);
st.setString(5,s5);
res=st.executeUpdate();
if(res!=0)
{
response.sendRedirect("notice_board.jsp");
}
else
{
out.println("<br>Failed to Insert Data");
}}
catch(Exception e)
{}
%></body></html>
Create admin.jsp
<html><head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<h1><b><font color="#0000FF">CREATE SUPER USER</font></b></h1>
<h1 align="left"><img src="bar.JPG" width="766" height="32"></h1>
<form name="form1" method="post" action="create_admin_submit.jsp">
<p><b>LOGIN ID
<input type="text" name="t2">
<input type="hidden" name="t1" value="Administrator"></b></p>
<p><b>PASSWORD
<input type="text" name="t3"></b></p>
<p>
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Submit2" value="Reset"></p>
<p> </p></form>
<h1 align="left"> </h1></body></html>
Create admin submit.jsp
<html><head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><script>
function printWindow(){
bV = parseInt(navigator.appVersion)
if (bV >= 4) window.print()
}
</script></head>
<body bgcolor="#FFFFFF" text="#000000">
<p> <a href="javascript:printWindow()">PRINT</a> ||<a
href="admin_home.jsp">Admin Home</a></p>
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*"
errorPage="" %>
<%!
Connection con;
PreparedStatement st;
String s1,s2,s3;
%>
<%
s1=request.getParameter("t1");
s2=request.getParameter("t2");
s3=request.getParameter("t3");
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.prepareStatement("insert into login values(?,?,?)");
st.setString(1,s1);
st.setInt(2,Integer.parseInt(s2));
st.setString(3,s3);
st.executeUpdate();
}
catch(Exception e)
{}
%>
<%!
Connection con;
PreparedStatement st;
String s1,s2,s3,s4,s5;
int res;
%>
<%
s1=request.getParameter("t");
s2=(String)session.getAttribute("sesid");
s3=request.getParameter("dt");
s4=request.getParameter("sub");
s5=request.getParameter("ms");
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.prepareStatement("insert into notice values(?,?,?,?,?)");
st.setString(1,s1);
st.setString(2,s2);
st.setString(3,s3);
st.setString(4,s4);
st.setString(5,s5);
res=st.executeUpdate();
if(res!=0)
{
response.sendRedirect("emp_inbox.jsp");
}
else
{
out.println("<br>Failed to Insert Data");
}}
catch(Exception e)
{}
%>
</body></html>
Emp home.jsp
<html><head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!-function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4))
{
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true); // -->
</script></head>
<body bgcolor="#FFFFFF" text="#000000">
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*"
errorPage="" %>
<%!
ResultSet rs;
Connection con;
Statement st;
String str,s1,s2;
int x;
%>
<%
try
{
str=(String)session.getAttribute("sesid");
x=Integer.parseInt(str);
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.createStatement();
rs=st.executeQuery("select * from emp_per where login_id="+x+"");
if(rs.next())
{
%>
<div align="center"><font size="5"> <a href="main.html"> Log out
</a></font></div>
<h1><font color="#0000FF">EMPLOYEE HOME </font></h1>
<table width="45%" border="0">
<tr>
<td width="18%"><b><font color="#0000FF" face="Courier New, Courier, mono">NAME
: </font></b></td>
<td width="20%"><b><font color="#FF0000" face="Courier New, Courier, mono"><%=
rs.getString("emp_name") %></font></b></td>
<td width="24%"><b><font color="#0000FF" face="Courier New, Courier,
mono">DESIGNATION</font></b></td>
%>
</body>
</html>
Emp inbox.jsp
<html><head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!-function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4))
{
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);
// -->
</script></head>
<body bgcolor="#FFFFFF" text="#000000">
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*"
errorPage="" %>
<%!
ResultSet rs;
Connection con;
Statement st;
String s1,s2,s3,s4,s5,str;
int x;
%>
<%
try
{
str=(String)session.getAttribute("sesid");
x=Integer.parseInt(str);
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.createStatement();
rs=st.executeQuery("select * from Query1 where to="+x+" or to='All' ");
%>
<table width="72%" border="0" height="67">
<tr>
<td bgcolor="#FFFF00" height="41">
<h1 align="center"><font color="#0000FF"><b>EMPLOYEE INBOX</b></font></h1>
</td></tr><tr>
<td bgcolor="#FFFFFF" height="25">
<div align="right">
<p align="right"> </p></div></td></tr></table>
<div id="Layer1" style="position:absolute; width:164px; height:326px; z-index:1; left: 17px;
top: 101px; background-color: #CCFF99; layer-background-color: #CCFF99; border: 1px
none #000000">
<p> </p>
<p><font color="#FFFF00"><b><a href="emp_compose.html">COMPOSE
</a></b></font></p>
<p><b><font color="#FFFF00"><a href="emp_home.jsp">EMP
HOME</a></font></b></p>
<p><img src="small-business-payroll-service.jpg" width="162" height="156"></p>
</div>
Emp login.jsp
<html><head><title>USER</title></head>
<body >
<%@ page import="java.sql.*"%>
<%@ page import="java.io.*"%>
<%!
Connection con;
Statement st;
ResultSet rs;
String s1,s2,s3,s4;
//int x;
%>
<%
s1=request.getParameter("r1");
s2=request.getParameter("t1");
s3=request.getParameter("t2");
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.createStatement();
rs=st.executeQuery("select * from login where login_id="+s2+"");
while(rs.next())
{
session.setAttribute("sesid",rs.getString("login_id"));
session.setAttribute("sesnm",rs.getString("login_type"));
if(s1.equals("Employee"))
{
if(s3.equals(rs.getString("password")))
response.sendRedirect("emp_home.jsp");
else
{
response.sendRedirect("error.jsp");
}}
else
{
response.sendRedirect("error.jsp");
}}}
catch(Exception e)
{}
finally{
rs=null;
st=null;
con=null;
}
%>
</body></html>
Emp monthly salary report.jsp
<html><head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
SALARY</font></td>
</tr>
<%
while(rs.next())
{
%>
<tr>
<td height="2"><%= rs.getString("emp_name")%></td>
<td width="8%" height="2"><%= rs.getString("dept")%></td>
<td width="6%" height="2"><%= rs.getString("acc_no")%></td>
<td width="6%" height="2"><%= rs.getInt("basic")%></td>
<td width="3%" height="2"><%= rs.getInt("ta")%></td>
<td width="4%" height="2"><%= rs.getInt("da")%></td>
<td width="4%" height="2"><%= rs.getInt("hra")%></td>
<td width="10%" height="2"><%= rs.getInt("other_allow")%></td>
<td width="9%" height="2"><%= rs.getInt("epf")%></td>
<td width="10%" height="2"><%= rs.getInt("prof_tax")%></td>
<td width="8%" height="2"><%= rs.getInt("other_ded")%></td>
<td width="12%" height="2"><%= rs.getInt("gross_sal")%></td>
<%
}}
catch(Exception e)
{}
%>
</tr></table></body></html>
Emp payslip.jsp
<html><head><title>Untitled Document</title>
SALARY</b></font></td>
<td width="17%" height="14"><%= rs.getInt("gross_sal")%></td>
</tr>
<tr bgcolor="#FFFF00">
<td colspan="6" height="15"> </td></tr></table>
<%
}}
catch(Exception e)
{}
%></body></html>
Emp salary statement.jsp
<html><head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*"
errorPage="" %>
<%!
ResultSet rs;
Connection con;
Statement st;
String str,s1,s2,s3,s4,s5,s6;
%>
<%
try
{
str=(String)session.getAttribute("sesid");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.createStatement();
rs=st.executeQuery("select * from emp_sal_query where login_id="+str+"");
%>
<p><a href="emp_home.jsp">BACK</a></p>
<table width="75%" border="1">
<tr bgcolor="#FFFF00">
<td colspan="10">
<div align="center"><font color="#0000FF"><b><font color="#000000">EMPLOYEE
GROSS SALARY STATEMENT </font></b></font></div></td></tr>
<tr>
<td width="40"><b><font color="#000000" face="Courier New, Courier, mono">MONTH
&YEAR</font></b></td>
<td width="40"><b><font color="#000000" face="Courier New, Courier,
mono">BASIC</font></b></td>
<td width="40"><b><font color="#000000" face="Courier New, Courier,
mono">TA</font></b></td>
<td width="40"><b><font color="#000000" face="Courier New, Courier,
mono">DA</font></b></td>
<td width="40"><b><font color="#000000" face="Courier New, Courier,
mono">HRA</font></b></td>
<td width="40"><b><font color="#000000" face="Courier New, Courier, mono">OTHERALLOW</font></b></td>
<td width="40"><b><font color="#000000" face="Courier New, Courier,
mono">EPF</font></b></td>
<td width="40"><b><font color="#000000" face="Courier New, Courier, mono">PROF
TAX</font></b></td>
{}
%>
<p> </p></body></html>
Emp update password.jsp
<html><head><title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script>
function validatePass(temp)
{
var l = temp.value.length;
//lert(heart);
if(!(l==6))
{
alert("Password should be of 6 character/ digit");
temp.value="";
}}
</script></head>
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*"
errorPage="" %>
<%!
ResultSet rs;
Connection con;
Statement st;
String s1;
%>
<%
try
{
s1=(String)session.getAttribute("sesid");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.createStatement();
rs=st.executeQuery("select * from login where login_id="+s1+"");
if(rs.next())
{
%>
<body bgcolor="#FFFFFF" text="#000000">
<h2><b><font color="#0099CC">UPDATE PASSWORD</font></b></h2>
<h4><b><a href="emp_home.jsp">Back </a></b></h4>
<h1><img src="bar.JPG" width="766" height="32"></h1>
<form name="form1" method="post" action="emp_update_password_submit.jsp">
<table width="75%" border="1">
<tr bgcolor="#0099CC">
<td colspan="2" bgcolor="#FFFF00">
<div align="center"><b>UPDATE PASSWORD</b></div></td></tr>
<tr bgcolor="#0099CC">
<td width="29%"><font color="#FF0000">OLD PASSWORD</font></td>
<td width="71%"><font color="#FF0000">
<input type="text" name="pwd" readonly value="<%= rs.getString("password") %>">
<input type="hidden" name="id" value="<%=s1 %>">
</font></td></tr>
<tr bgcolor="#0099CC">
<td width="29%">NEW PASSWORD</td>
<td width="71%" bgcolor="#0099CC">
ResultSet rs;
Connection con;
Statement st,st1;
String s1,s2,s3,s4,s5;
int res;
%>
<%
try
{
s1=request.getParameter("id");
s2=request.getParameter("pwd");
s3=request.getParameter("np");
s4=request.getParameter("cp");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.createStatement();
st1=con.createStatement();
if(s3.equals(s4))
{
res=st.executeUpdate(" update login set password='"+s3+"' where login_id="+s1+"");
}
else
{
out.println("Password not match ....re enter");
}
rs=st1.executeQuery("select * from login where login_id="+s1+"");
if(rs.next())
{
s5=rs.getString("password");
%>
<p><a href="emp_home.jsp">Emp Home</a></p>
<table width="33%" border="1">
<tr bgcolor="#FFFF00">
<td colspan="2"><font color="#FFFFFF"><b><font color="#000000">NEW
PASSWORD</font></b></font></td></tr>
<tr bgcolor="#0099CC">
<td width="40%">EMPLOYEE ID </td>
<td width="60%"><%=s1 %></td></tr>
<tr bgcolor="#0099CC">
<td width="40%">NEW PASSWORD</td>
<td width="60%"><%=s5 %></td></tr></table>
<%
}}
catch(Exception e)
{}
%></body></html>
Error.jsp
<html><head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body bgcolor="#FFFFFF" text="#000000">
<p align="center"> </p>
<p align="center"> </p>
<p align="center"><font color="#FF0000" face="Courier New, Courier, mono"
size="5">Error in USER ID or PASSWORD .............</font></p>
<%!
Connection con;
Statement st;
ResultSet rs;
String s1,s2,s3,s4;
//int x;
%>
<%
s1=request.getParameter("r1");
s2=request.getParameter("t1");
s3=request.getParameter("t2");
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.createStatement();
rs=st.executeQuery("select * from login where login_type='"+s1+"'");
while(rs.next())
{
session.setAttribute("sesid",rs.getString("login_id"));
session.setAttribute("sesnm",rs.getString("login_type"));
if(s1.equals("Administrator"))
{
if(s3.equals(rs.getString("password")))
response.sendRedirect("admin_home.jsp");
else
{
response.sendRedirect("error.jsp");
}}
else
{
response.sendRedirect("error.jsp");
}}}
catch(Exception e)
{}
finally{
rs=null;
st=null;
con=null;
}
%></body></html>
Monthly salary report.jsp
<html><head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body bgcolor="#FFFFFF" text="#000000">
%>
<p><a href="report.html">REPORT PAGE</a> || <a
href="monthly_salary_report.html">BACK</a>
|| <a href="admin_home.jsp">ADMIN HOME</a></p>
<table width="77%" border="1" height="86">
<tr bgcolor="#0000FF">
<td colspan="13" height="20"><b><font color="#FFFF00" face="Courier New, Courier,
mono">SALARY
</font></td>
<td width="4%" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">OTHER-DED</font></td>
<td width="57%" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">GROSS
SALARY</font></td>
</tr>
<%
while(rs.next())
{
%>
<tr>
<td width="3%" height="2"><%= rs.getString("login_id")%></td>
<td width="7%" height="2"><%= rs.getString("emp_name")%></td>
<td width="7%" height="2"><%= rs.getString("dept")%></td>
<td width="2%" height="2"><%= rs.getString("acc_no")%></td>
<td width="4%" height="2"><%= rs.getInt("basic")%></td>
<td width="1%" height="2"><%= rs.getInt("ta")%></td>
<td width="1%" height="2"><%= rs.getInt("da")%></td>
<td width="2%" height="2"><%= rs.getInt("hra")%></td>
<td width="4%" height="2"><%= rs.getInt("other_allow")%></td>
<td width="5%" height="2"><%= rs.getInt("epf")%></td>
<td width="3%" height="2"><%= rs.getInt("prof_tax")%></td>
<td width="4%" height="2"><%= rs.getInt("other_ded")%></td>
<td width="57%" height="2"><%= rs.getInt("gross_sal")%></td>
<%
}}
catch(Exception e)
{}
%></tr></table></body></html>
Monthly salary submit.jsp
<%@ page import="java.sql.*" %>
<html>
<body>
<%!
String s1[],s2[],s3[],s4[],s5[],s6[],s7[],s8[],s9[],s10[],s11[],s12[];
String str;
int gs,allow,ded,i;
ResultSet res;
%>
<%
s1=request.getParameterValues("id");
s2=request.getParameterValues("ac");
s3=request.getParameterValues("ba");
s4=request.getParameterValues("ta");
s5=request.getParameterValues("da");
s6=request.getParameterValues("hra");
s7=request.getParameterValues("oa");
s8=request.getParameterValues("epf");
s9=request.getParameterValues("pt");
s10=request.getParameterValues("od");
s11=request.getParameterValues("mn");
s12=request.getParameterValues("yr");
%>
<%
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:pay");
Statement st=con.createStatement();
PreparedStatement ps=con.prepareStatement("insert into sal_tran
values(?,?,?,?,?,?,?,?,?,?,?,?,?)");
for(i=0;i<100;i++)
{
allow=Integer.parseInt(s3[i])+Integer.parseInt(s4[i])+Integer.parseInt(s5[i])
+Integer.parseInt(s6[i])+Integer.parseInt(s7[i]);
ded=Integer.parseInt(s8[i])+Integer.parseInt(s9[i])+Integer.parseInt(s10[i]);
gs=allow+ded;
ps.setString(1,s1[i]);
ps.setString(2,s2[i]);
ps.setString(3,s3[i]);
ps.setString(4,s4[i]);
ps.setString(5,s5[i]);
ps.setString(6,s6[i]);
ps.setString(7,s7[i]);
ps.setString(8,s8[i]);
ps.setString(9,s9[i]);
ps.setString(10,s10[i]);
ps.setString(11,s11[i]);
ps.setString(12,s12[i]);
ps.setInt(13,gs);
ps.executeUpdate();
}
%>
<%
}
catch(Exception e)
{
}
%>
<jsp:forward page="admin_home.jsp" />
</body>
</html>
Payslip.jsp
<html><head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body bgcolor="#FFFFFF" text="#000000">
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*"
errorPage="" %>
<%!
ResultSet rs;
Connection con;
Statement st;
String s1,s2,s3;
%>
<%
try
{
s1=request.getParameter("ec");
s2=request.getParameter("mn");
s3=request.getParameter("yr");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.createStatement();
rs=st.executeQuery("select * from emp_sal_query where emp_type='"+s1+"' and
month='"+s2+"' and year='"+s3+"'");
while(rs.next())
{
%>
<table width="64%" border="1" height="216">
<tr bgcolor="#0000FF">
<td colspan="6" height="34"><b><font color="#FFFF00" face="Courier New, Courier,
mono">SALARY
FOR THE MONTH OF </font><font color="#FFFFFF" face="Courier New, Courier,
mono">:
<%= s2 %> - <%= s3 %><font color="#FFFF00"> EMPLOYEE TYPE
</font>:<%= s1 %></font></b></td></tr>
<tr bgcolor="#FFFF00">
<td colspan="6"><b></b><b></b><b></b><b></b><b></b><b></b></td></tr>
<tr>
<td width="13%" height="31"><b><font face="Courier New, Courier, mono"
color="#0000FF">EMP
ID</font></b></td>
<td width="15%" height="31"><%= rs.getString("login_id")%></td>
Salary report.jsp
<html><head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body bgcolor="#FFFFFF" text="#000000">
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*"
errorPage="" %>
<%!
ResultSet rs;
Connection con;
Statement st;
String str,s1,s2,s3,s4,s5,s6;
%>
<%
Try
{
str=(String)session.getAttribute("sesid");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.createStatement();
rs=st.executeQuery("select * from emp_sal_query");
%>
<p><a href="report.html">BACK</a> || <a href="admin_home.jsp">ADMIN
HOME</a></p>
<table width="82%" border="1" height="80">
<tr bgcolor="#FFFF00">
<td colspan="5"><font color="#0000FF">EMPLOYEE GROSS SALARY STATEMENT
</font></td></tr>
<tr bgcolor="#0000FF">
<td width="13%"><b><font color="#FFFF00">EMP ID</font></b></td>
<td width="29%"><b><font color="#FFFF00">EMP NAME</font></b></td>
<td width="22%"><b><font color="#FFFF00">DEPT</font></b></td>
<td width="16%"><b><font color="#FFFF00">MONTH &YEAR</font></b></td>
<td width="20%"><b><font color="#FFFF00">GROSS SALARY</font></b></td></tr>
<%
while(rs.next())
{
s1=rs.getString("login_id");
s2=rs.getString("emp_name");
s3=rs.getString("dept");
s4=rs.getString("month");
s5=rs.getString("year");
s6=rs.getString("gross_sal");
%>
<tr>
<td width="13%"><font size="2"><%= s1 %></font></td>
<td width="29%"><font size="2"><%= s2 %></font></td>
<td width="22%"><font size="2"><%= s3 %></font></td>
<td width="16%"><font size="2"><%= s4 %><%= s5 %></font></td>
<td width="20%"><font size="2"><%= s6 %></font></td>
</tr>
<%
}}
catch(Exception e)
{}
%>
</table></body></html>
Update emp per.jsp
<html><head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="javascript">
function validatePhone(temp)
{
var l = temp.value.length;
//lert(heart);
if(!(l==10))
{
alert("Phone number should be of 10 digit!");
temp.value="";
}
else
{
for(var i=0; i<=9; i++)
{
var ch = temp.value.charCodeAt(i);
if(!(ch>=48 && ch<=57))
{
alert("Phone Number should be digits only!");
temp.value="";
exit;
}}}}
function validateMail()
{
var x=document.forms["form1"]["md"].value;
var atpos=x.indexOf("@");
var dotpos=x.lastIndexOf(".");
if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length)
{
alert("Not a valid e-mail address");
return false;
}}
</script></head>
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*"
errorPage="" %>
<%!
ResultSet rs;
Connection con;
Statement st;
String s1;
%>
<%
try
{
s1=(String)session.getAttribute("sesid");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.createStatement();
rs=st.executeQuery("select * from emp_per where login_id="+s1+"");
if(rs.next())
{
%>
<body bgcolor="#FFFFFF" text="#000000">
<h2><b><font color="#0000FF">UPDATE EMPLOYEE PERSONAL
DETAIL</font></b></h2>
<h4><b><a href="emp_home.jsp">Back </a></b></h4>
<h1><img src="bar.JPG" width="766" height="32"></h1>
<form name="form1" method="post" action="update_emp_per_submit.jsp">
<table width="75%" border="1">
<tr bgcolor="#FFFF00">
<td colspan="2">
<h3 align="center"><b><font color="#0000FF">UPDATE PERSONAL
DETAIL</font></b></h3></td></tr>
<tr>
<td width="29%">UPDATE ADDRESS</td>
<td width="71%">
<textarea name="ad"><%= rs.getString("address") %></textarea>
<input type="hidden" name="id" value="<%= s1 %>"></td></tr>
<tr>
<td width="29%">MOBILE NO</td>
<td width="71%">
<input type="text" name="mn" value="<%= rs.getString("mob") %>" required
onblur="validatePhone(this)"></td></tr>
<tr>
<td width="29%">MAIL ID</td>
<td width="71%">
<input type="text" name="md" value="<%= rs.getString("mail") %>" required
onblur="validateMail()" ></td></tr>
<tr bgcolor="#FFFF00">
<td width="29%"> </td>
<td width="71%">
<input type="submit" name="Submit" value="UPDATE"></td></tr></table></form>
<h1> </h1>
<%
}}
catch(Exception e)
{}
%></body></html>
Update emp per submit.jsp
<html><head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body bgcolor="#FFFFFF" text="#000000">
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*"
errorPage="" %>
<%!
int rs;
Connection con;
Statement st;
String s1,s2,s3,s4,s5;
%>
<%
try
{
s1=request.getParameter("id");
s2=request.getParameter("ad");
//s3=request.getParameter("dg");
s4=request.getParameter("mn");
s5=request.getParameter("md");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.createStatement();
rs=st.executeUpdate(" update emp_per set address='"+s2+"' , mob='"+s4+"' , mail='"+s5+"'
where login_id="+s1+"");
%>
<p><a href="emp_home.jsp">Emp Home</a></p>
<table width="33%" border="1">
<tr bgcolor="#0000FF">
<td colspan="2"><font color="#FFFFFF"><b>UPDATED DATA</b></font></td></tr>
<tr>
<td width="40%">UPDATE ADDRESS</td>
<td width="60%"><%=s2 %></td></tr>
<tr>
<td width="40%">UPDATE MOBILE NO</td>
<td width="60%"><%=s4 %></td></tr>
<tr>
<td width="40%">UPDATE MAIL ID</td>
<td width="60%"><%=s5 %></td>
</tr>
</table>
<%
}
catch(Exception e)
{}
%></body></html>
Update salary.jsp
<html><head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body bgcolor="#FFFFFF" text="#000000">
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*"
errorPage="" %>
<%!
ResultSet rs;
Connection con;
Statement st;
String s1;
%>
<%
try
{
s1=request.getParameter("id");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.createStatement();
rs=st.executeQuery("select * from emp_query where login_id="+s1+"");
%>
<form name="form1" method="post" action="update_salary_submit.jsp">
%>
<tr>
<td width="8%">
<input type="text" name="id" value= "<%= rs.getInt("login_id")%>"size="10">
</td>
<td width="19%">
<input type="text" name="nm" value="<%= rs.getString("emp_name")%>" size="30">
</td>
<td width="8%">
<input type="text" name="ac" value="<%= rs.getString("acc_no")%>" size="10">
</td>
<td width="8%">
<input type="text" name="ba" value="<%= rs.getInt("basic")%>" size="10">
</td>
<td width="5%">
<input type="text" name="ta" value="<%= rs.getInt("ta")%>" size="6">
</td>
<td width="5%">
<input type="text" name="da" value="<%= rs.getInt("da")%>" size="6">
</td>
<td width="5%">
<input type="text" name="hra" value="<%= rs.getInt("hra")%>" size="6">
</td>
<td width="10%">
<input type="text" name="oa" value="<%= rs.getInt("other_allow")%>" size="10">
</td>
<td width="5%">
7.2. SNAPSHOTS
1. HOME
2.ADMIN LOGIN
3.EMPLOYEE LOGIN
6.EMPLOYEE HOME
9.EMP_REPORT
11.REPORT
8.TESTING
Software testing is a critical software quality assurance and represents the ultimate review of
specification, design and coding. The software testing process is the means by which people,
methods, measurement, tools and equipments are integrated to test a software product. The
increasing visibility of software as a system element and the costs associated with a software
failure are motivating forces for well planning and thorough testing. It is not unusual for a
software for a software development organization to expand between 30 and 40 percent of
total project effort on testing.
8.1TESTING FUNDAMENTALS
Testing present an interesting anomaly for the engineer. Earlier in the software
process, the engineer attempts to build software from an abstract concept to tangible
implementation. Then comes testing.
The engineer creates a series of test cases that intended to demolish the software that has been
built. In fact, testing is one step in the software engineering process that could be
viewed(psychologically) as destructive rather than constructive. Software developers are by
their nature constructive people. Testing requires that the developers are by their nature
constructive people. Testing requires that the developer discard preconceived notions of the
correctness of the software just developed and overcome a conflict of interest that occurs
when error uncovered.
TESTING OBJECTIVES
The software testing objectives are as follows:
These objectives imply a dramatic change in viewpoint. They move counter to the
commonly held view that a successful test is one in which no error are found.
Different classes of error and to do so with a minimum amount of time and effort.
In unit testing, each and every module is tested independently with sample data
and it was found that all modules are properly functioning. Each unit was thoroughly tested to
check if it might fall in any possible situation. This testing was carried out during the
programming itself. At the end of this testing phase, each unit was found to be working
satisfactory, as regard to the expected output from the module.
8.2 INTEGRATION TESTING:All the modules, when unit testing will work properly but after interfacing the data can be lost
across an interface, one module can have an inadvertent, adverse effect on other, sub functions
when combined may not produce the desired major function, global data structures can cause
problems, etc. Integration testing is performed by integrating all the individual modules and the
activities of the user such as loading layers, retrieving information from any functions applying
themes based on the records present in the database etc. and is found that it works good to the
examination of the end users. Hence, the objective of integration testing is to take unit tested
modules and build a final program structure
8.3 SYSTEM TESTING:System tests are designed to validate a fully developed system to assure that it meets its
requirements. There are essentially three kinds of system testing:
Alpha testing refers to the system testing carried out by the test team within the
developing organization.
Beta testing is the system testing carried out by a selected group of friendly
customers.
8.4 BLACK BOX TESTING:Black-box testing is also known as functional testing. A software testing technique whereby
the internal workings of the item being tested are not known by the tester. For example, in a black box
test on a software design the tester only knows the inputs and what the expected outcomes should be
and not how the program arrives at those outputs. The tester does not ever examine the programming
code and does not need any further knowledge of the program other than its specifications.
9.ADVANTAGES
FUNCTION: It allows to complete salary calculations in a fraction of time that would take to
work out manually. Also year-end reporting is usually automated and both pay slips and
annual reports are archived in case copies are later needed.
TIME RECORDING: salary system can be linked to timesheet systems that record employee
attendance or time worked. Information about hours worked can then be automatically
transferred into the salary system and used for calculation.
STORING PERSONAL RECORDS: Most organization will also keep other data about
employees according to the requirement. By this salary system the additional datas can also
be simultaneously stored without using different soft wares.
LIMITATIONS
10.MAINTENANCE
Maintenance of a software product requires much more effort than the effort necessary to
develop the product itself. Maintenance involves performing anyone or more of the following
three kind of activities:o Correcting errors that were not discovered during the product development phase.
This is called corrective maintenance.
o Improving the implementation of the system and enhancing the functionality of the
system according to the customers requirements. This is called perfective
maintenance.
o Porting the software to work in a new environment. This is called adaptive
maintenance.
11.CONCLUSION
As the conclusion, the salary information system can be using by many small and medium
scale industries. If the administrator did not have the system to control the payroll then the
administrator will face the problem every month when want to calculate the salary to
employee. This will take a lot of time for administrator to calculate it. Therefore by develop
the system all of this problem will be solve and administrator no need to calculate the salary
as manually because all the salary will automatic calculate by the system.
12.BIBLIOGRAPHY
Here are some of the references from which we have collected the information:
www.bullwarks.com
www.freestudentsproject.com
www.technologyevaluation.com
www.wikipedia.com
http://www.scribd.com/doc/33314604/Payroll-project-report-with-Srs
http://www.freestudentprojects.com/studentprojectreport/project-
srs/employee-payroll-management/
http://www.accountantsworld.com/power/Practice/Solutions/PayrollReliefFeatures.aspx
http://www.ppay.co.uk/payroll-service-technical-system/