Вы находитесь на странице: 1из 180

PAYROLL INFORMATION SYSTEM

B.Tech Computer Science & Engineering, 8th semester

SYNERGY INSTITUTE OF ENGINEERING & TECHNOLOGY


DHENKANAL-759001
AFFILATED TO BIJU PATNAIK UNIVERSITY OF TECHNOLOGY
ROURKELA

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)

External Examiner Signature

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

Project Scope And Objective

10

Feasibility Study

11

3.1 Technical Feasibility

11

3.2 Economical Feasibility

11

3.3 Operational Feasibility

12

3.4 Scheduled Feasibility

12

Requirement Analysis and Specification

13

4.1Hardware Requirements

13

4.2 Software Requirements

13

Software Requirement Analysis

14

5.1 Functional Requirements

14

5.2 Non Functional Requirements

17

UML Diagram

18

6.1 Use Case Diagram

18

6.2 Class Diagram

21

6.3 Sequence Diagram

22

6.4 Activity Diagram

27

Methodology

29

7.1 Coding
7.1.1 .html Codes

29

7.1.2 .jsp Codes

66

7.4 Project Snapshot

168

Chapter 8

Testing

174
9.1 Fundamental And Objective

174

9.2 Unit Testing

175

9.3 Integration Testing

175

9.4 System Testing

175

9.5 Black Box Testing

176

9.6 White Box Testing

176

Chapter 9

Advantages and Limitation

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.

2.OBJECTIVE AND SCOPE

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:

2.1 Technical Feasibility


The development process of Salary Information System would be advantageous to the
organization because we would make use of only the currently available resources of the
organization. All the tools needed for the development are already available with the
organization and the organization does not have to acquire any new resources. The technical
feasibility is also attributed to the fact that the system does not make use of any additional or
external third party components which can lead to increased load on the system.

2.2 Operational feasibility


The Salary Information Systemize intended to provide a very user-friendly and easy to use
interface which is beneficial for both the visitors as well as the operators who help in
providing support for the system. This system would also be easily acceptable among the
visitor and administrator, as there is no need of any special skill set for using the application.

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

2.4 Scheduled feasibility


Projects are always given deadlines. Every project is completed in a specific duration. I was
the only working on the project and I had the project duration of four months only. So i have
tried our level best to fulfill each and every requirement. I had to complete the project in time
and if it is not possible to complete the software in time then I would try our best to fulfill
client requirements.

4.REQUIREMENT ANALYSIS AND


SPECIFICATION
4.1Hardware Interfaces:Server Side:
Operating system:- windows xp/vista/7
Processor:- Pentium 3.0 GHz or higher
RAM:- 256 MB or higher
Hard Drive :- 10 GB or more
Client Side:
Operating system:- windows xp/vista/7
Processor:- Pentium 3.0 GHz or higher
RAM:- 256 MB or higher

4.2Software Interfaces:Server Side:


HTML
Java script.
MS Access
Apache Tomcat server.
Client Side:
The customer must connect to the internet to access the website.
Dialup modem of 52kbps.

Communications Interfaces:Communications interfaces can be provided through e-mail, web browser, network server
communications protocols, electronic forms, and so on.

5.SOFTWARE REQUIREMENT SPECIFICATION


5.1Functional Requirements
Introduction:
Requirements analysis is usually the first phase of large-scale software development project.
It is undertaken after a feasibility study has been performed to define the precise costs and
benefits of a software system. The purpose of this phase is to identify and document the exact
requirements for the system. The customer, the developer, a marketing organization or any
combination of the three may perform such study. In cases where the requirements are not
clear e.g., for a system that is never been defined, more interaction is required between the
user and the developer. The requirements at this stage are in end-user terms. The module used
in the project will be admin and employee.

Administrator module:1. Test case: Login


Input: ID, Password.
Process: Click on the login link. If administrator enters ID and password correct it
goes to the admin services otherwise displays the same page with an error message.
Output: Displays the admin services page.

2. Test case: Add new employee


Input: Name, Id, designation, Date of joining, Mob. No., Email-id, Qualification,
D.O.B., Category.

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.

3. Test case: Salary details


Input: Id, designation, basic salary, PF, DA, EPF, HRA, Other allowances,
Professional Tax.
Process: The admin can update his salary details
Output: Employee salary details will be updated to the database.

4.Test case: Salary slip


Input: Id, Basic salary, Designation, Net pay.
Process: Based on the leave, loan, and tax details the slip will be generated
Output: Salary slip will be generated.

5.Test case: Bank details


Input: Id, Designation, salary
Process: The employees salary is credited to bank.
Output: Employee can View and receive the salary.

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.

2.Test case: Change password


Input: Id, Old password, new password
Process: Employee can be able to change his password by using this test case.
Output: Employee new password will be updated

3.Test case: View earnings


Input: ID, Month, Year.
Process: The earnings can be displayed by this test case
Output: The total earnings of an employee for the specified month and year can be
viewed

4.Test case: View salary slip


Input: Id, Month, Year.
Process: The employee can view the salary slip.

Output: The salary slip of an employee for the specified month and year can be
viewed.

5.2Non Functional Requirements:


Security:

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.

Accessibility: it can be access from every system.

Efficiency: - It will work fast and input given is correctly specified.

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.

Use-case name: Update employee details


This use-case can be accessed only by the manager and not by the employee. The desired
employee is searched for and the details of the employee are updated with new entries. If the
employee searched for is not available an appropriate message is displayed.

Use-case name: Delete employee


This use-case can also be used only by the manager. It is used to delete the record of an
employee if it is not necessary. The employee identity is provided by the manager which is
searched for and if it is found, it is deleted. If it is not found an appropriate message is
displayed.

Use-case: calculate salary


This use-case is used to calculate the salary of the employee after adding allowances and
deducting as necessary. The net salary is displayed. This use-case can

Use case diagram

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 ().

2) Employee personal details


It is used to store the personal details of the employee, such as name, employee id, gender
and age. The operations available in this class are view (), add employee (), edit employee
details (), view employee details (), delete employee details ().

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

6.3. Sequence diagram


A sequence diagram represents the sequence and interactions of a given use-case or scenario.
Sequence diagrams can capture most of the information about the system. Most object-toobject interactions and operations are considered events and events include signals, inputs,
decisions, interrupts, transitions and actions to or from users or external devices. An event
also is considered to be any action by an object that sends information. The event line
represents a message from one object to another, in which the from object is requesting an
operation be performed by the to object. The to object performs the operation using a
method that the class contains. It is also represented by the order in which things occur and
how the objects in the system send message to one another. The sequence diagram for each
use-case that exists when a user logs in, adds, views, updates or deletes records in the system.
An event also is considered to be any action by an object that sends.

Sequence diagram
6.3.1Admin login

6.3.2 Login employee :-

3.3 Employee registration:-

3.4 View details:-

6.3.5update details:-

6.3.6 Delete details:-

6.3.7 Employee logout:-

6.3.8 Admin logout:-

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>&nbsp;</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 &amp; 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?

P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="105"


height="33" bgcolor="" base="."></embed>
</object><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="button20.swf">
<param name=quality value=high>
<param name="BGCOLOR" value="">
<embed src="button20.swf" quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="105"
height="33" bgcolor="" base="."></embed></object><br></p>
<div id="Layer1" style="position:absolute; width:230px; height:140px; z-index:1; left:
523px; top: 261px"><img src="small-business-payroll-service.jpg" width="182"
height="140"></div><p>Design &amp; Developed By: Dhiraj kumar,Md Safakat Alli,Prince
roshan,Siwendu shah &amp; Sidhartkumar</p></body></html>
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=="")
{
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">

<input type="hidden" name="r1" value="Administrator">


</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>&nbsp;</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">&nbsp;</td></tr></table>
<p>&nbsp; </p>
<p>&nbsp; </p></form>
<h1>&nbsp;</h1>
<h1>&nbsp;</h1>

</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">&nbsp;</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>

<td width="38%"><b><font face="Courier New, Courier, mono">DATE</font></b></td>


<td width="62%"><b><font face="Courier New, Courier, mono">
<input type="text" name="dt" size="40">
</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"><textarea name="ms"
cols="60" rows="10"></textarea></font></b></td></tr>
<tr bgcolor="#FFFF00">
<td colspan="2">
<div align="center">
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Submit2" value="Reset">
</div>
</td>
</tr>
<tr bgcolor="#0066FF">
<td colspan="2">&nbsp;</td>
</tr>
</table>
</div>
</form>

<div id="Layer1" style="position:absolute; width:164px; height:460px; z-index:1; left: 24px;


top: 74px; background-color: #0066FF; layer-background-color: #0066FF; border: 1px none
#000000">
<p>&nbsp;</p>
<p><font color="#FFFF00"></font></p>
<p><b><font color="#FFFF00"><a href="notice_board.jsp">INBOX</a></font></b></p>
<p><a href="admin_home.jsp"><b>CONTROL PANEL</b></a></p>
<p>&nbsp;</p>
<p><img src="small-business-payroll-service.jpg" width="162" height="156"></p>
</div>
</body>
</html>
Emp.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">


<h2><b><font color="#0000FF">&nbsp;</font></b><b><font
color="#0000FF">&nbsp;CONFIGURE
EMPLOYEE</font></b></h2>
<h1 align="left"><img src="bar.JPG" width="766" height="32"></h1>
<h2>&nbsp;&nbsp;<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="50" height="37">
<param name=movie value="button18.swf">
<param name=quality value=high>
<param name="BASE" value=".">
<param name="BGCOLOR" value="">
<embed src="button18.swf" base="." quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="50"
height="37" bgcolor="">
</embed>
</object></h2>
<div id="Layer1" style="position:absolute; width:458px; height:300px; z-index:1; left:
304px; top: 97px">
<div align="right">
<p><a href="admin_home.jsp"><font size="4">Back to ControlPanel</font></a></p>
<p><img src="small-business-payroll-service.jpg" width="288" height="268"></p>
</div>
</div>
<p><a href="add_emp.jsp"><font face="Courier New, Courier, mono" size="4"><b>ADD
EMPLOYEE</b></font></a></p>

<p><b><font face="Courier New, Courier, mono" size="4"><a


href="update_emp.html">UPDATE
EMPLOYEE</a></font></b></p>
<b><font face="Courier New, Courier, mono" size="4"><a
href="admin_delete_emp.jsp">DELETE
EMPLOYEE</a></font></b>
<h2>&nbsp;</h2>
</body>
</html>
Emp compose.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>
<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>

<link rel='stylesheet' href='./calendar.css' title='calendar'>

<script language="javascript" src="calendar.js"></script>

<script language="javascript">

//***** Function formating the Date for inputbox *****

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;

//Example = 01/01/00 dd/mm/yy


//sDateString = oDateFormat['Date'] +"/"+ oDateFormat['Month'] +"/"+
oDateFormat['Year'];

//Example = 01/01/0000 dd/mm/yyyy

//sDateString = oDateFormat['Date'] +"/"+ oDateFormat['Month'] +"/"+


oDateFormat['FullYear'];

//Example = 0000-01-01 yyyy/mm/dd


//sDateString = oDateFormat['FullYear'] +"-"+ oDateFormat['Month'] +"-"+
oDateFormat['Date'];

//Example = Jan-01-0000 Mmm/dd/yyyy


//sDateString = oDateFormat['MonthName'] +"-"+ oDateFormat['Date'] +"-"+
oDateFormat['FullYear'];

return sDateString;
}

</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" alink="yellow" vlink="white">


<form name="form1" method="post" action="emp_compose.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">&nbsp;</td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFF00">
<div align="center"><b><font face="Courier New, Courier, mono" size="5"
color="#0000FF">COMPOSE

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">

<textarea name="ms" cols="60" rows="10"></textarea>


</font></b></td>
</tr>
<tr bgcolor="#FFFF00">
<td colspan="2">
<div align="center">
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Submit2" value="Reset">
</div>
</td>
</tr>
<tr bgcolor="#0066FF">
<td colspan="2">&nbsp;</td>
</tr>
</table>
</div>
</form>
<div id="Layer1" style="position:absolute; width:164px; height:460px; z-index:1; left: 24px;
top: 74px; background-color: #0066FF; layer-background-color: #0066FF; border: 1px none
#000000">
<p>&nbsp;</p>
<p><font color="#FFFF00"></font></p>
<p><b><font color="#FFFF00"><a href="emp_inbox.jsp">INBOX</a></font></b></p>
<p><a href="emp_home.jsp"><b>EMP HOME</b></a></p>
<p>&nbsp;</p>
<p><img src="small-business-payroll-service.jpg" width="162" height="156"></p>
</div>
</body>

</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=="")
{

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>
<p><a href="main.html">BACK</a></p>
<form name="form1" method="post" onsubmit="return validateForm()"
action="emp_login.jsp">
<table width="32%" border="0" height="133">
<tr bgcolor="#0033FF">
<td colspan="2" bgcolor="#FFFF00">
<div align="center"><b><font color="#0000FF">EMPLOYEE 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">
<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>&nbsp;</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">&nbsp;</td>
</tr>
</table>
<p>&nbsp; </p>
<p>&nbsp; </p>
</form>
<h1>&nbsp;</h1>
<h1>&nbsp;</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>

<body bgcolor="#FFFFFF" text="#000000">


<form name="form1" method="post" action="emp_monthly_salary_report.jsp">
<p><a href="emp_home.jsp">BACK</a></p>
<table width="75%" border="1">

<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 &amp; 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%">&nbsp;</td>
<td width="74%">
<input type="submit" name="Submit" value="REPORT">
</td>
</tr>
<tr>
<td colspan="2" bgcolor="#0000FF">&nbsp;</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>

<body bgcolor="#FFFFFF" text="#000000">


<form name="form1" method="post" action="emp_pay_slip.jsp">
<p>&nbsp;</p>
<table width="75%" border="1">
<tr bgcolor="#0000FF">
<td colspan="2"><b><font color="#FFFF00"> MONTHLY SALARY SLIP</font></b></td>
</tr>
<tr>
<td width="26%">SELECT MONTH &amp; 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 bgcolor="#FFFF00">
<td width="26%">&nbsp;</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>

<body bgcolor="#FFFFFF" text="#000000">


<form name="form1" method="post" action="monthly_salary.jsp">
<p>&nbsp;</p><table width="75%" border="1">
<tr bgcolor="#0000FF">
<td colspan="2"><b><font color="#CCCCCC">GENERATE MONTHLY
SALARY</font></b></td>
</tr>
<tr>
<td width="26%">SELECT EMPLOYEE CATEGORY</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 &amp; 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%">&nbsp;</td>
<td width="74%">

<input type="submit" name="Submit" value="GENERATE SALARY">


</td>
</tr>
</table>
</form>
</body>
</html>
Monthly salary report.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">


<form name="form1" method="post" action="monthly_salary_report.jsp">
<p><a href="report.html">BACK</a> || <a href="admin_home.jsp">ADMIN
HOME</a></p>
<table width="75%" border="1">
<tr bgcolor="#0000FF">
<td colspan="2"><b><font color="#FFFF00"> MONTHLY SALARY
REPORT</font></b></td>
</tr>
<tr>
<td width="26%">SELECT EMPLOYEE CATEGORY</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 &amp; 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%">&nbsp;</td>
<td width="74%">
<input type="submit" name="Submit" value="REPORT">
</td>
</tr>
<tr>
<td colspan="2" bgcolor="#0000FF">&nbsp;</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>

<body bgcolor="#FFFFFF" text="#000000">


<form name="form1" method="post" action="pay_slip.jsp">
<p>&nbsp;</p><table width="75%" border="1">
<tr bgcolor="#0000FF">
<td colspan="2"><b><font color="#FFFF00">GENERATE MONTHLY SALARY
SLIP</font></b></td>
</tr>
<tr>
<td width="26%">SELECT EMPLOYEE CATEGORY</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 &amp; 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%">&nbsp;</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>

<body bgcolor="#FFFFFF" text="#000000">


<table width="60%" border="0" height="187">
<tr>
<td bgcolor="#FFFF00" height="41">
<h1 align="center"><font color="#0000FF"><b>REPORT</b></font></h1>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" height="177">
<div align="right">
<p align="left"><img src="banner.jpg" width="750" height="150"></p>
<p><a href="admin_home.jsp">Back to Control Panel</a></p>
</div>
</td>
</tr>
<tr>
<td>

<div align="center"><a href="salary_report.jsp"><font face="Courier New, Courier,


mono">EMPLOYEE
GROSS SALARY STATEMENT</font></a></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font face="Courier New, Courier, mono"><a
href="monthly_salary_report.html">EMPLOYEE
MONTHLY SALARY REPORT</a></font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><a href="all_emp_detail_report.jsp"><font face="Courier New, Courier,
mono">EMPLOYEE
DETAIL REPORT</font></a></div>
</td>
</tr>
<tr>
<td>
<div align="center"><a href="all_emp_login_info.jsp"><font face="Courier New, Courier,
mono">EMPLOYEE
LOGIN REPORT</font></a></div>
</td>
</tr>
</table>
</body>
</html>

Salary.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>&nbsp;</p>
<p><a href="admin_home.jsp">Back to Control Panel</a></p>
<table width="49%" border="1">
<tr>
<td bgcolor="#0000FF">
<div align="center"><font color="#FFFFFF"><b><font size="5" face="Courier New,
Courier, mono">SALARY</font></b></font></div>
</td>
</tr>
<tr>
<td><a href="monthly_salary.html"><font face="Courier New, Courier, mono">GENERATE
MONTHLY SALARY</font></a></td>
</tr>
<tr>
<td><font face="Courier New, Courier, mono"><a href="update_sal.jsp">MODIFY
EMPLOYEE SALARY</a></font></td>
</tr>
<tr>
<td><font face="Courier New, Courier, mono"><a href="pay_slip.html">GENERATE

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>

<body bgcolor="#FFFFFF" text="#000000">


<h1><b>UPDATE EMPLOYEE</b></h1>
<h4><b><a href="emp.html">Back </a></b></h4>
<h1><img src="bar.JPG" width="766" height="32"></h1>
<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="187" height="23">
<param name="BASE" value=".">
<param name=movie value="text5.swf">
<param name=quality value=high>
<param name="BGCOLOR" value="">
<param name="SCALE" value="exactfit">
<embed src="text5.swf" quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" scale="exactfit"
width="187" height="23" bgcolor="" base=".">
</embed>

</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>

<body bgcolor="#FFFFFF" text="#000000">


<form name="form1" method="post" action="update_salary.jsp">
<p>&nbsp;</p>
<table width="75%" border="1">
<tr bgcolor="#0000FF">

<td colspan="2"><b><font color="#CCCCCC">MODIFY EMPLOYEE


SALARY</font></b></td>
</tr>
<tr>
<td width="26%">ENTER EMPLOYEE ID</td>
<td width="74%">
<input type="text" name="id">
</td>
</tr>
<tr>
<td width="26%">&nbsp;</td>
<td width="74%">
<input type="submit" name="Submit" value="GENERATE SALARY">
</td>
</tr>
</table>
</form>
</body>
</html>
User login.html
<html>
<head>
<title>Submission form</title>
</head>
<body bgcolor="#9933CC">
<img src="pids.jpg" alter="acac" width=788 height="150">
<div align="center">

<form method=post action=file:///C|/Program%20Files/Apache%20Software


%20Foundation/Tomcat%206.0/webapps/IEIL/validuser.jsp >
<p><b><font color="#FFFF00" size="4">Employee Login!!!!!!</font></b></p>
<p><b><font color="#FFFFFF">USER ID </font></b><font
color="#FFFFFF">&nbsp&nbsp&nbsp&nbsp&nbsp
<input type=text name="nm" size="20">
<br>
<br>
<br>
<b> PASSWORD </b>
<input type=password name="pwd" size="20">
</font><br>
<br>
<br>
<input type=submit name=login style="color: black; font-weight: bold; background-color:
yellow">
<input type="reset" name="Reset" value="Reset" style="color: black; font-weight: bold;
background-color: yellow">
</p>
</form>
</div>
<br><br>
<b><font color="#FFFFFF">&copy Copyright 2014, Designed and Developed by
Dhiraj,Ali........
Dept of cse,Dhenkanal. </font></b></body></html>

7.1.2 .JSP CODES


Add emp.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>
<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>

<link rel='stylesheet' href='./calendar.css' title='calendar'>


<script language="javascript" src="calendar.js"></script>

<script language="javascript">

//***** Function formating the Date for inputbox *****

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;

//Example = 01/01/00 dd/mm/yy


//sDateString = oDateFormat['Date'] +"/"+ oDateFormat['Month'] +"/"+
oDateFormat['Year'];

//Example = 01/01/0000 dd/mm/yyyy


//sDateString = oDateFormat['Date'] +"/"+ oDateFormat['Month'] +"/"+
oDateFormat['FullYear'];

//Example = 0000-01-01 yyyy/mm/dd


//sDateString = oDateFormat['FullYear'] +"-"+ oDateFormat['Month'] +"-"+
oDateFormat['Date'];

//Example = Jan-01-0000 Mmm/dd/yyyy


//sDateString = oDateFormat['MonthName'] +"-"+ oDateFormat['Date'] +"-"+
oDateFormat['FullYear'];

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>

<body bgcolor="#FFFFFF" text="#000000" onload='document.form1.en.focus()'>


<%@ 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(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_REA
D_ONLY);
rs=st.executeQuery("select * from emp_per");

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>

<td width="31%"><b><font face="Courier New, Courier,


mono">QUALIFICATION</font></b></td>
<td width="69%">
<select name="qu">
<option>B.TECH.</option>
<option>M.TECH</option>
<option>M.SC.</option>
<option>PHD</option>
<option>M.A.</option>
<option>B.A</option>
<option>B.SC.</option>
<option>I.A.</option>
<option>I.SC.</option>
<option>HSC</option>
</select>
</td>
</tr>
<tr>
<td width="31%"><b><font face="Courier New, Courier, mono">DATE OF
JOINING</font></b></td>
<td width="69%"><font face="Courier New, Courier, mono">
<input type=text name='dj' 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></td>
</tr>
<tr>
<td width="31%" height="73"><b><font face="Courier New, Courier,
mono">ADDRESS</font></b></td>

<td width="69%" height="73"><font face="Courier New, Courier, mono">


<textarea name="ad" cols="40" required onblur="validateBlank(this)"></textarea>
</font></td>
</tr>
<tr>
<td width="31%"><b><font face="Courier New, Courier,
mono">DESIGNATION</font></b></td>
<td width="69%"><font face="Courier New, Courier, mono">
<input type="text" name="de" size="40" required onblur="nameValidate(this)">
</font></td>
</tr>
<tr>
<td width="31%"><b><font face="Courier New, Courier,
mono">DEPARTMENT</font></b></td>
<td width="69%"><font face="Courier New, Courier, mono">
<select name="dep">
<option>Comp.Sc. Engg</option>
<option>Electrical Engg</option>
<option>Electronics &amp;Telecomm. Engg</option>
<option>Mechanical Engg</option>
<option>Civil Engg</option>
<option>Administrative Staff</option>
<option>Exam Section</option>
<option>Library Staff</option>
<option>Security Staff</option>
<option>Class IV Staff</option>
</select>
</font></td>

</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>
&nbsp; 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>&nbsp;
<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">

<input type="text" name="ta" value="0">


</font></td></tr>
<tr>
<td width="54%"><font face="Courier New, Courier, mono">DA</font></td>
<td width="46%"><font face="Courier New, Courier, mono">
<input type="text" name="da" value="0">
</font></td></tr>
<tr>
<td width="54%"><font face="Courier New, Courier, mono">HRA</font></td>
<td width="46%"><font face="Courier New, Courier, mono">
<input type="text" name="hr" value="0">
</font></td></tr>
<tr>
<td width="54%"><font face="Courier New, Courier, mono">OTHER
ALLOWANCE</font></td>
<td width="46%"><font face="Courier New, Courier, mono">
<input type="text" name="oa" value="0">
</font></td></tr>
<tr>
<td width="54%"><font face="Courier New, Courier, mono">EPF</font></td>
<td width="46%">
<input type="text" name="epf" value="0">
</td></tr>
<tr>
<td width="54%"><font face="Courier New, Courier, mono">PROFESSIONAL
TAX</font></td>
<td width="46%">
<input type="text" name="pt" value="0">

</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>&nbsp; <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="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>&nbsp;</p><table width="75%" border="1">
<tr>
<td>
<div align="center">
<h2><b>Employee Registration Slip</b></h2>
</div></td></tr>
<tr>
<td>

<h3 align="center">Employee Data successfully created with <font color="#FF0000">Login


ID</font><%=s2 %> And <font color="#FF0000">Password</font><%=s3 %>
</h3></td></tr></table>
<h2>&nbsp;</h2>
<h2>&nbsp;</h2>
</body></html>
Add_sal 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 validatePass(temp)
{
var l = temp.value.length;
//lert(heart);
if(!(l==6))
{
alert("Password should be of 6 character/ digit");
temp.value="";
}}
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000">


<p>&nbsp;
<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;
int s10,res;
%>
<%
s1=request.getParameter("id");
s2=request.getParameter("ac");
s3=request.getParameter("ba");
s4=request.getParameter("ta");
s5=request.getParameter("da");
s6=request.getParameter("hr");
s7=request.getParameter("oa");
s8=request.getParameter("epf");
s9=request.getParameter("pt");
s10=(Integer.parseInt(s3)+Integer.parseInt(s4)+Integer.parseInt(s5)+Integer.parseInt(s6)+Inte
ger.parseInt(s7))-(Integer.parseInt(s8)+Integer.parseInt(s9));
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.prepareStatement("insert into emp_sal values(?,?,?,?,?,?,?,?,?,?)");

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">

<input type="text" value="<%= s1 %>" readonly name="id">


</td></tr>
<tr>
<td width="35%"><font face="Courier New, Courier, mono">PASSWORD</font></td>
<td width="65%"><font color="#FF0000">
<input type="text" name="pwd" required onblur="validatePass(this)">
*</font> (Enter 6 charcater/ digit )</td></tr>
<tr bgcolor="#0000FF">
<td colspan="2">
<div align="center">
<input type="submit" name="Submit" value="SUBMIT">
<input type="reset" name="Submit2" value="RESET">
</div></td></tr></table></form>
<p><br></p></body></html>
Admin_delete emp.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");
%>
<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>&nbsp;</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>

<body bgcolor="#FFFFFF" text="#000000">


<h1><b><font color="#0000FF">&nbsp;&nbsp;CONTROL PANEL</font></b></h1>
<h1 align="left"><img src="bar.JPG" width="766" height="32"></h1>
<h2>&nbsp;&nbsp;<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="103" height="24">
<param name="BASE" value=".">
<param name=movie value="button7.swf">
<param name=quality value=high>

<param name="BGCOLOR" value="#FFFFFF">


<embed src="button7.swf" quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="103"
height="24" bgcolor="#FFFFFF" base=".">
</embed>
</object><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="103" height="24">
<param name="BASE" value=".">
<param name=movie value="button10.swf">
<param name=quality value=high>
<param name="BGCOLOR" value="#FFFFFF">
<embed src="button10.swf" quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="103"
height="24" bgcolor="#FFFFFF" base=".">
</embed>
</object><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="103" height="24">
<param name="BASE" value=".">
<param name=movie value="button17.swf">
<param name=quality value=high>
<param name="BGCOLOR" value="">
<embed src="button17.swf" quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="103"
height="24" bgcolor="" base=".">
</embed>
</object><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="103" height="24">

<param name=movie value="button19.swf">


<param name=quality value=high>
<param name="BASE" value=".">
<param name="BGCOLOR" value="">
<embed src="button19.swf" base="." quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="103"
height="24" bgcolor="">
</embed>
</object><font
size="5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;<a href="main.html">&nbsp;Log
out </a></font></h2>
<h2>&nbsp;</h2>
<h2 align="right">&nbsp;</h2>
<div id="Layer1" style="position:absolute; width:677px; height:163px; z-index:1; left: 20px;
top: 178px"><img src="banner.jpg" width="750" height="150"></div>
</body>
</html>
Admin update emp per.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");
%>
<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>&nbsp;</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("Enter characters only!");


temp.value="";
exit;
}}}
</script>
<script>
{{
var d=document.forms["form1"]["dg"].value;
alert("Enter Employee Designation");
return false;
}
var phoneno = /^\d{10}$/;
if(document.form1.mn.value.match(phoneno))
{
document.form1.mn.focus();
return true;
}
else
{
alert("Not a valid Phone Number");
document.form1.mn.focus();
return false;
}
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;
}
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())

{
%>

<body bgcolor="#FFFFFF" text="#000000">


<h2><b>UPDATE EMPLOYEE PERSONAL DETAIL</b></h2>
<h4><b><a href="emp.html">Back </a></b></h4>
<h1><img src="bar.JPG" width="766" height="32"></h1>
<form name="form1" method="post" action="admin_update_emp_per3.jsp">
<table width="75%" border="1">
<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%">UPDATE DESIGNATION</td>
<td width="71%">
<input type="text" name="dg"value="<%= rs.getString("desg") %>" required
onblur="nameValidate(this)" >
</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>
<td width="29%">&nbsp;</td>
<td width="71%">
<input type="submit" name="Submit" value="UPDATE">
</td>
</tr>
</table>
</form>
<h1>&nbsp;</h1>
<%
}
}
catch(Exception e)
{
}
%>
</body>
</html>

Admin update emp per3.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+"' , 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");
%>

<body bgcolor="#FFFFFF" text="#000000">


<h1><b><font color="#0099CC">UPDATE PASSWORD</font></b></h1>
<h1><img src="bar.JPG" width="766" height="32"></h1>
<form name="form1" method="post" action="admin_update_password2.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 PASSWORD">
</form>
<h1>&nbsp;</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())
{
%>

<body bgcolor="#FFFFFF" text="#000000">


<h2><b><font color="#0099CC">UPDATE EMPLOYEE PASSWORD</font></b></h2>
<h4><b><a href="emp.html">Back </a></b></h4>
<h1><img src="bar.JPG" width="766" height="32"></h1>
<form name="form1" method="post" action="admin_update_password3.jsp">
<table width="75%" border="1">
<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">
<input type="password" name="np">
</td>
</tr>
<tr bgcolor="#0099CC">
<td width="29%">CONFORM PASSWORD</td>
<td width="71%">
<input type="password" name="cp" >

</td>
</tr>
<tr>
<td width="29%">&nbsp;</td>
<td width="71%">
<input type="submit" name="Submit" value="UPDATE PASSWORD">
</td>
</tr>
</table>
</form>
<h1>&nbsp;</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>

<body bgcolor="#FFFFFF" text="#000000">

<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*"


errorPage="" %>
<%!
ResultSet rs;
Connection con;
Statement st;
%>
<%
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:pay");
st=con.createStatement();
rs=st.executeQuery("select * from emp_report_query ");
%>
<p><a href="report.html">BACK</a></p>
<table width="85%" border="1" height="86">
<tr bgcolor="#FFFF00">
<td colspan="21" height="20" bgcolor="#0000FF">
<div align="center"><font color="#FFFFFF"><b><font face="Courier New, Courier,
mono">EMPLOYEE
DETAIL REPORT</font></b></font></div>
</td></tr>
<tr bgcolor="#FFFF00">
<td width="32" height="20"><font size="2" color="#000000" face="Courier New, Courier,
mono">EMP
ID </font></td>
<td width="74" height="20"><font size="2" color="#000000" face="Courier New, Courier,
mono">EMP

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>

<td width="76" height="20"><font face="Courier New, Courier, mono" color="#000000"


size="2">OTHER-ALLOW</font></td>
<td width="44" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">EPF</font></td>
<td width="49" height="20"><font size="2" color="#000000" face="Courier New, Courier,
mono">PROF-TAX
</font></td>
<td width="109" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">GROSS
SALARY</font></td></tr>
<%
while(rs.next())
{
%>
<tr>
<td width="32" height="2"><%= rs.getString("login_id")%></td>
<td width="74" height="2"><%= rs.getString("emp_name")%></td>
<td width="104" height="2"><%= rs.getString("quali")%></td>
<td width="32" height="2"><%= rs.getString("dept")%></td>
<td width="26" height="2"><%= rs.getString("doj")%></td>
<td width="65" height="2"><%= rs.getString("address")%></td>
<td width="36" height="2"><%= rs.getString("desg")%></td>
<td width="47" height="2"><%= rs.getString("emp_type")%></td>
<td width="47" height="2"><%= rs.getString("date")%>-<%= rs.getString("month")%>-<
%= rs.getString("year")%></td>
<td width="48" height="2"><%= rs.getString("gender")%></td>
<td width="56" height="2"><%= rs.getString("mob")%></td>
<td width="36" height="2"><%= rs.getString("mail")%></td>
<td width="45" height="2"><%= rs.getString("acc_no")%></td>

<td width="48" height="2"><%= rs.getInt("basic")%></td>


<td width="21" height="2"><%= rs.getInt("ta")%></td>
<td width="21" height="2"><%= rs.getInt("da")%></td>
<td width="26" height="2"><%= rs.getInt("hra")%></td>
<td width="76" height="2"><%= rs.getInt("other_allow")%></td>
<td width="44" height="2"><%= rs.getInt("epf")%></td>
<td width="49" height="2"><%= rs.getInt("prof_tax")%></td>
<td width="109" height="2"><%= rs.getInt("gross")%></td>
</tr>
<%
}}
catch(Exception e)
{}
%>
</table></body></html>

All emp login info.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;

%>
<%
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 &nbsp;&nbsp;&nbsp;
<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>&nbsp; </p></form>
<h1 align="left">&nbsp;</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>&nbsp; <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)
{}
%>

<p>&nbsp;</p><table width="75%" border="1">


<tr>
<td>
<div align="center">
<h2><b>Registration Slip</b></h2>
</div></td></tr>
<tr><td><h3 align="center">ID created with <font color="#FF0000">Login ID</font><
%=s2 %> And <font color="#FF0000">Password</font><%=s3 %>
</h3></td></tr></table>
<h2>&nbsp;</h2>
<h2>&nbsp;</h2>
</body></html>
Del success.jsp
<html><head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body bgcolor="#3399FF" text="#000000">
<p>&nbsp;</p>
<h2 align="center">&nbsp;</h2>
<h1 align="left"><font
color="#FF0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#FFFFFF">Data
deleted Successfully........</font></font></h1>
<p
align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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="136" height="80">

<param name=movie value="button22.swf">


<param name=quality value=high>
<param name="BASE" value=".">
<param name="BGCOLOR" value="#3399FF">
<embed src="button22.swf" base="." quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="136"
height="80" bgcolor="#3399FF">
</embed>
</object>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;<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="138" height="79">
<param name=movie value="button23.swf">
<param name=quality value=high>
<param name="BASE" value=".">
<param name="BGCOLOR" value="#3399FF">
<embed src="button23.swf" base="." quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="138"
height="79" bgcolor="#3399FF"></embed></object></p>
<p>&nbsp;</p>
</body></html>
Emp compose.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.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">&nbsp;&nbsp;<a href="main.html">&nbsp;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
:&nbsp;</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>

<td width="38%"><b><font color="#FF0000" face="Courier New, Courier, mono">


<%= rs.getString("desg") %></font></b></td></tr>
<tr>
<td width="18%"><b><font color="#0000FF" face="Courier New, Courier, mono">EMP
ID:</font></b></td>
<td width="20%"><b><font color="#FF0000" face="Courier New, Courier, mono"><%= x
%></font></b></td>
<td width="24%"><b><font color="#0000FF" face="Courier New, Courier,
mono">DEPARTMENT</font></b></td>
<td width="38%"><b><font color="#FF0000" face="Courier New, Courier, mono"><%=
rs.getString("dept") %></font></b></td></tr></table>
<h1><img src="bar.JPG" width="766" height="32"></h1>
<p><a href="emp_pay_slip.html"><font face="Courier New, Courier, mono">PAY
SLIP</font></a></p>
<p><font face="Courier New, Courier, mono"><a href="update_emp_per.jsp">UPDATE
PERSONAL DETAIL</a></font></p>
<p><font face="Courier New, Courier, mono"><a
href="emp_update_password.jsp">UPDATE PASSWORD</a></font></p>
<p><font face="Courier New, Courier, mono"><a href="emp_salary_statement.jsp">
SALARY STATEMENT</a></font></p>
<p><font face="Courier New, Courier, mono"><a
href="emp_inbox.jsp">INBOX</a></font></p>
<p>&nbsp;</p>
<div id="Layer1" style="position:absolute; width:200px; height:115px; z-index:1; left:
295px; top: 216px"><img src="small-business-payroll-service.jpg" width="243"
height="232"></div>
<%
}}
catch(Exception e)
{}

%>
</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">&nbsp; </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>&nbsp;</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>

<div id="Layer2" style="position:absolute; width:779px; height:115px; z-index:2; left:


185px; top: 106px">
<table width="102%" border="1" height="38">
<tr bgcolor="#FFFF00">
<td width="16%"><b><font face="Courier New, Courier, mono">DATE</font></b></td>
<td width="20%"><b><font face="Courier New, Courier,
mono">SUBJECT</font></b></td>
<td width="16%"><b><font face="Courier New, Courier, mono">NAME</font></b></td>
<td width="12%"><b><font face="Courier New, Courier, mono">EMP ID</font></b></td>
<td width="36%"><b><font face="Courier New, Courier,
mono">MESSAGE</font></b></td>
</tr>
<%
while(rs.next())
{
%>
<tr bgcolor="#FFFFFF">
<td width="16%"><font color="#0066FF"><%= rs.getString("date")%></font></td>
<td width="20%"><font color="#0066FF"><%= rs.getString("subject")%></font></td>
<td width="16%"><font color="#0066FF"><%= rs.getString("emp_name")%></font></td>
<td width="12%"><font color="#0066FF"><%= rs.getString("frm")%></font></td>
<td width="36%"><font color="#0066FF"><%= rs.getString("msg")%></font></td>
<%
}}
catch(Exception e)
{}
%>
</tr></table></div></body></html>

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">

<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*"


errorPage="" %>
<%!
ResultSet rs;
Connection con;
Statement st;
String s1,s2,s3,s4;
int x;
%>
<%
try
{
s1=(String)session.getAttribute("sesid");
x=Integer.parseInt("s1");
s2=request.getParameter("mn");
s3=request.getParameter("yr");
s4=request.getParameter("ec");
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="+x+" and
emp_type='"+s4+"'and month='"+s2+"' and year='"+s3+"'");
%>
<table width="77%" border="1" height="86">
<tr bgcolor="#0000FF">
<td colspan="12" height="20"><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">&nbsp;&nbsp;EMPLOYEE ID</font>:<


%= x %></font></b></td>
</tr>
<tr bgcolor="#FFFF00">
<td height="20"><font size="2" color="#000000"><font face="Courier New, Courier,
mono">EMP
NAME</font></font></td>
<td width="8%" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">DEPT</font></td>
<td width="6%" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">ACC
NO</font></td>
<td width="6%" height="20"><font size="2" color="#000000"><font face="Courier New,
Courier, mono">BASIC</font>
</font></td>
<td width="3%" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">TA</font></td>
<td width="4%" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">DA</font></td>
<td width="4%" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">HRA</font></td>
<td width="10%" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">OTHER-ALLOW</font></td>
<td width="9%" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">EPF</font></td>
<td width="10%" height="20"><font size="2" color="#000000"><font face="Courier New,
Courier, mono">PROF-TAX</font>
</font></td>
<td width="8%" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">OTHER-DED</font></td>
<td width="12%" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">GROSS

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>

<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=(String)session.getAttribute("sesid");
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 login_id="+s1+" and
month='"+s2+"' and year='"+s3+"'");
if(rs.next())
{
%>
<p><a href="emp_home.jsp">Emp Home</a></p>
<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">&nbsp;&nbsp;EMPLOYEE ID</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="16%" height="31"><b><font face="Courier New, Courier, mono"
color="#0000FF">EMP
ID</font></b></td>
<td width="17%" height="31"><%= rs.getString("login_id")%></td>
<td width="19%" height="31"><b><font face="Courier New, Courier, mono"
color="#0000FF">BASIC</font></b>
</td>
<td width="14%" height="31"><%= rs.getInt("basic")%></td>
<td width="17%" height="31"><b><font face="Courier New, Courier, mono"
color="#0000FF">EPF</font></b>
</td>
<td width="17%" height="31"><%= rs.getInt("epf")%></td></tr>
<tr>
<td width="16%"><b><font face="Courier New, Courier, mono" color="#0000FF">EMP
NAME</font></b></td>
<td width="17%"><%= rs.getString("emp_name")%></td>
<td width="19%"><b><font face="Courier New, Courier, mono"
color="#0000FF">TA</font></b></td>
<td width="14%"><%= rs.getInt("ta")%></td>

<td width="17%"><b><font face="Courier New, Courier, mono" color="#0000FF">PROFTAX</font></b></td>


<td width="17%"><%= rs.getInt("prof_tax")%></td></tr>
<tr>
<td width="16%"><b><font face="Courier New, Courier, mono"
color="#0000FF">DEPT</font></b></td>
<td width="17%"><%= rs.getString("dept")%></td>
<td width="19%"><b><font face="Courier New, Courier, mono"
color="#0000FF">DA</font></b></td>
<td width="14%"><%= rs.getInt("da")%></td>
<td width="17%"><b><font face="Courier New, Courier, mono"
color="#0000FF">OTHER-DED</font></b></td>
<td width="17%"><%= rs.getInt("other_ded")%></td></tr>
<tr>
<td width="16%"><b><font face="Courier New, Courier, mono" color="#0000FF">ACC
NO</font></b></td>
<td width="17%"><%= rs.getString("acc_no")%></td>
<td width="19%"><b><font face="Courier New, Courier, mono"
color="#0000FF">HRA</font></b></td>
<td width="14%"><%= rs.getInt("hra")%></td>
<td width="17%">&nbsp;</td>
<td width="17%">&nbsp;</td></tr>
<tr>
<td width="16%" height="14">&nbsp;</td>
<td width="17%" height="14">&nbsp;</td>
<td width="19%" height="14"><b><font face="Courier New, Courier, mono"
color="#0000FF">OTHER-ALLOW</font></b></td>
<td width="14%" height="14"><%= rs.getInt("other_allow")%></td>
<td width="17%" height="14"><font face="Courier New, Courier, mono"
color="#0000FF"><b>GROSS

SALARY</b></font></td>
<td width="17%" height="14"><%= rs.getInt("gross_sal")%></td>
</tr>
<tr bgcolor="#FFFF00">
<td colspan="6" height="15">&nbsp;</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
&amp;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>

<td width="40"><b><font color="#000000" face="Courier New, Courier, mono">OTHER


DED</font></b></td>
<td width="40"><b><font color="#000000" face="Courier New, Courier, mono">GROSS
SALARY</font></b></td></tr>
<%
while(rs.next())
{
%>
<tr>
<td width="40"><font size="2"><%= rs.getString("month") %><%= rs.getString("year")
%></font></td>
<td width="40"><font size="2"><%= rs.getInt("basic") %></font></td>
<td width="40"><font size="2"><%= rs.getInt("ta") %></font></td>
<td width="40"><font size="2"><%= rs.getInt("da") %></font></td>
<td width="40"><font size="2"><%= rs.getInt("hra") %></font></td>
<td width="40"><font size="2"><%= rs.getInt("other_allow") %></font></td>
<td width="40"><font size="2"><%= rs.getInt("epf") %></font></td>
<td width="40"><font size="2"><%= rs.getInt("prof_tax") %></font></td>
<td width="40"><font size="2"><%= rs.getInt("other_ded") %></font></td>
<td width="40"><font size="2"><%= rs.getInt("gross_sal") %></font></td></tr>
<%
}
%>
</table>
<%
}
catch(Exception e)

{}
%>
<p>&nbsp;</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">

<input type="password" name="np" required onblur="validatePass(this)">


<font color="#FF0000">*</font> (Enter 6 charcater/ digit ) </td></tr>
<tr bgcolor="#0099CC">
<td width="29%">CONFORM PASSWORD</td>
<td width="71%">
<input type="password" name="cp" required onblur="validatePass(this)" >
<font color="#FF0000">*</font> (Enter 6 charcater/ digit ) </td></tr>
<tr>
<td width="29%">&nbsp;</td>
<td width="71%">
<input type="submit" name="Submit" value="UPDATE PASSWORD">
</td></tr></table></form>
<h1>&nbsp;</h1>
<%
}}
catch(Exception e)
{}
%></body></html>
Emp update password 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="" %>
<%!

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">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center"><font color="#FF0000" face="Courier New, Courier, mono"
size="5">Error in USER ID or PASSWORD .............</font></p>

<p align="center"><font color="#FF0000" face="Courier New, Courier, mono" size="5"><a


href="main.html">Try Again....</a></font></p></body></html>
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_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">

<%@ 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+"'");

%>
<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

FOR THE MONTH OF </font><font color="#FFFFFF" face="Courier New, Courier,


mono">:
<%= s2 %> - <%= s3 %><font color="#FFFF00">&nbsp;&nbsp;EMPLOYEE TYPE
</font>:<%= s1 %></font></b></td>
</tr>
<tr bgcolor="#FFFF00">
<td width="3%" height="20"><font size="2" color="#000000"><font face="Courier New,
Courier, mono">EMP
ID</font></font></td>
<td width="7%" height="20"><font size="2" color="#000000"><font face="Courier New,
Courier, mono">EMP
NAME</font></font></td>
<td width="7%" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">DEPT</font></td>
<td width="2%" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">ACC
NO</font></td>
<td width="4%" height="20"><font size="2" color="#000000"><font face="Courier New,
Courier, mono">BASIC</font>
</font></td>
<td width="1%" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">TA</font></td>
<td width="1%" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">DA</font></td>
<td width="2%" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">HRA</font></td>
<td width="4%" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">OTHER-ALLOW</font></td>
<td width="5%" height="20"><font face="Courier New, Courier, mono" color="#000000"
size="2">EPF</font></td>
<td width="3%" height="20"><font size="2" color="#000000"><font face="Courier New,
Courier, mono">PROF-TAX</font>

</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">&nbsp;&nbsp;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>

<td width="15%" height="31"><b><font face="Courier New, Courier, mono"


color="#0000FF">BASIC</font></b></td>
<td width="10%" height="31"><%= rs.getInt("basic")%></td>
<td width="20%" height="31"><b><font face="Courier New, Courier, mono"
color="#0000FF">EPF</font></b></td>
<td width="27%" height="31"><%= rs.getInt("epf")%></td></tr>
<tr>
<td width="13%"><b><font face="Courier New, Courier, mono" color="#0000FF">EMP
NAME</font></b></td>
<td width="15%"><%= rs.getString("emp_name")%></td>
<td width="15%"><b><font face="Courier New, Courier, mono"
color="#0000FF">TA</font></b></td>
<td width="10%"><%= rs.getInt("ta")%></td>
<td width="20%"><b><font face="Courier New, Courier, mono" color="#0000FF">PROFTAX</font></b></td>
<td width="27%"><%= rs.getInt("prof_tax")%></td></tr>
<tr>
<td width="13%"><b><font face="Courier New, Courier, mono"
color="#0000FF">DEPT</font></b></td>
<td width="15%"><%= rs.getString("dept")%></td>
<td width="15%"><b><font face="Courier New, Courier, mono"
color="#0000FF">DA</font></b></td>
<td width="10%"><%= rs.getInt("da")%></td>
<td width="20%"><b><font face="Courier New, Courier, mono"
color="#0000FF">OTHER-DED</font></b></td>
<td width="27%"><%= rs.getInt("other_ded")%></td></tr>
<tr>
<td width="13%"><b><font face="Courier New, Courier, mono" color="#0000FF">ACC
NO</font></b></td>
<td width="15%"><%= rs.getString("acc_no")%></td>

<td width="15%"><b><font face="Courier New, Courier, mono"


color="#0000FF">HRA</font></b></td>
<td width="10%"><%= rs.getInt("hra")%></td>
<td width="20%">&nbsp;</td>
<td width="27%">&nbsp;</td></tr>
<tr>
<td width="13%" height="14">&nbsp;</td>
<td width="15%" height="14">&nbsp;</td>
<td width="15%" height="14"><b><font face="Courier New, Courier, mono"
color="#0000FF">OTHER-ALLOW</font></b></td>
<td width="10%" height="14"><%= rs.getInt("other_allow")%></td>
<td width="20%" height="14"><font face="Courier New, Courier, mono"
color="#0000FF"><b>GROSS SALARY</b></font></td>
<td width="27%" height="14"><%= rs.getInt("gross_sal")%></td></tr>
<tr bgcolor="#FFFF00">
<td colspan="6" height="15">&nbsp;</td></tr>
<tr bgcolor="#FFFFFF">
<td colspan="6">
<div align="center">.................................................cut
here......................................................................</div>
</td></tr></table>
<%
}}
catch(Exception e)
{}
%>
</body>
</html>

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 &amp;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%">&nbsp;</td>
<td width="71%">
<input type="submit" name="Submit" value="UPDATE"></td></tr></table></form>
<h1>&nbsp;</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">

<table width="58%" border="1" height="123">


<tr bgcolor="#0000FF">
<td colspan="11"><b><font color="#FFFFFF">MODIFY EMPLOYEE
SALARY</font><font
color="#FFFFFF">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></b></td></tr>
<tr bgcolor="#FFFF00">
<td width="8%"><b><font face="Courier New, Courier, mono" color="#0000FF">EMP
ID</font></b></td>
<td width="19%"><b><font face="Courier New, Courier, mono" color="#0000FF">EMP
NAME</font></b></td>
<td width="8%"><b><font face="Courier New, Courier, mono" color="#0000FF">ACC
NO</font></b></td>
<td width="8%"><b><font face="Courier New, Courier, mono"
color="#0000FF">BASIC</font></b></td>
<td width="5%"><b><font face="Courier New, Courier, mono"
color="#0000FF">TA</font></b></td>
<td width="5%"><b><font face="Courier New, Courier, mono"
color="#0000FF">DA</font></b></td>
<td width="5%"><b><font face="Courier New, Courier, mono"
color="#0000FF">HRA</font></b></td>
<td width="10%"><b><font face="Courier New, Courier, mono"
color="#0000FF">OTHER-ALLOW</font></b></td>
<td width="5%"><b><font face="Courier New, Courier, mono"
color="#0000FF">EPF</font></b></td>
<td colspan="2"><b><font face="Courier New, Courier, mono" color="#0000FF">PROFTAX</font></b><b></b></td></tr>
<%
while(rs.next())
{

%>
<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%">

<input type="text" name="epf" value="<%= rs.getInt("epf")%>" size="6">


</td>
<td width="11%">
<input type="text" name="pt" value="<%= rs.getInt("prof_tax")%>" size="10">
</td>
<td width="16%">
<input type="hidden" name="od" size="10" value="0">
</td>
<%
}}
catch(Exception e)
}
%></tr>
<tr>
<td colspan="11">
<input type="submit" name="Submit" value="MODIFY SALARY">
<input type="reset" name="Submit2" value="RESET">
</td></tr></table></form></body></html>

7.2. SNAPSHOTS
1. HOME

2.ADMIN LOGIN

3.EMPLOYEE LOGIN

4.ADMIN CONTROL PANEL

5.ADMIN EMPLOYEE CONFIGURE

6.EMPLOYEE HOME

7.UPDATE EMPLOYEE PERSONAL DETAIL

8. LOGIN TABLE DATABASE

9.EMP_REPORT

10.EMPLOYEE PERSONAL DETAIL

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:

Testing is a process of executing a program with the intent of finding an error.


A good test case is one that has a high probability of finding an as-yetundiscovered error.
A successful test is one that uncovers an as-yet-undiscovered-error.

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.

8.1 UNIT TESTING:-

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.

Acceptance testing is the system testing performed by the customer to determine


whether to accept or reject the delivery of the system.

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.

8.5 WHITE-BOX TESTING:


White-Box testing is also known as glass box, structural, clear box and open box testing. A
software testing technique whereby explicit knowledge of the internal workings of the item being
tested are used to select the test data. Unlike black box testing, white box testing uses specific
knowledge of programming code to examine outputs. The test is accurate only if the tester knows
what the program is supposed to do. He or she can then see if the program diverges from its intended
goal. White box testing does not account for errors caused by omission, and all visible code must also
be readable.

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

Multiprocessing not allowed.


Extensive help is not provided.
Not support in the OS lower than windows

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/

Вам также может понравиться