Question:

Leave employee delete?

by  |  earlier

0 LIKES UnLike

Leave employee delete?

 Tags:

   Report

2 ANSWERS


  1. employee edit111

    <%@ page import="java.sql.*,java.util.*" %>

    <html>

    <head>

    <meta http-equiv="Content-Language" content="en-us">

    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">

    <meta name="ProgId" content="FrontPage.Editor.Document">

    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

    <title>Select Employee ID</title>

    </head>

    <SCRIPT language="javascript">

    function show()

    {

    f1.submit();

    }

    function show1()

    {

    f1.action="employeeedit2.jsp";

    return true;

    }

    </SCRIPT>

    <body><%@ include file="include.jsp" %>

    <%

    String emp=request.getParameter("empid");

    Class.forName("com.mysql.jdbc.Driver")...

       Connection conn=DriverManager.getConnection("jdbc:m...

       Statement state=conn.createStatement();

       Statement state1=conn.createStatement();

        ResultSet rst1=state.executeQuery("select * from employee");

        ResultSet rst=state1.executeQuery("select * from employee where empid='"+emp+"'");

    %>

    <p> </p>

    <form method="POST" name="f1">

      

        <p> </p>

      <div align="center">

        <center>

        <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="37%">

          <tr>

            <td width="50%" align="center">

            <p align="left">

      

        

            <font color="#800080">Select

        Employee ID</font></td>

            <td width="50%">

            <p align="center">

      

        

            <b>

            <font color="#800080">

      <select size="1" name="empid" onchange="show()">

      <option selected>Select</option>

      <% while(rst1.next())

         {%>

      <option value=<%=rst1.getString(1)%>><%=rst1.get...

      <%}%>

      </select></font></b></td>

          </tr><% if(rst.next())

                   {%>

          <tr>

            <td width="50%" align="center">

            <p align="left"><font color="#800080">Employee ID</font></td>

            <td width="50%">

            <p align="center"><b><font color="#800080"> <input type="text" name="empid1" size="20" value="<%=rst.getString(1)%>"></font></b...

          </tr>

          <tr>

            <td width="50%" align="left">

            <p><font color="#800080">Password </font></td>

            <td width="50%">

            <p align="center"><b><font color="#800080"><input type="text" name="passwd" size="20" value="<%=rst.getString(2)%>"></font></b...

          </tr>

          <tr>

            <td width="50%" align="left">

            <p><font color="#800080">Employee Name</font></td>

            <td width="50%">

            <p align="center"><b><font color="#800080"><input type="text" name="empname" size="20" value="<%=rst.getString(3)%>"></font></b...

          </tr>

          <tr>

            <td width="50%" align="left">

            <p><font color="#800080">Designation    </font>

            </td>

            <td width="50%">

            <p align="center"><b>

            <font color="#800080">

      <input type="text" name="designation" size="20" value="<%=rst.getString(4)%>"></font></b...

          </tr>

          <tr>

            <td width="50%" align="left">

            <font color="#800080">Department</font></td>

            <td width="50%">

            <b><font color="#800080">  

      <input type="text" name="department" size="20" value="<%=rst.getString(5)%>"> 

            </font></b></td>

          </tr>

          <tr>

            <td width="50%" align="left">

            <p><font color="#800080"> Status  </font>

                                 </td>

            <td width="50%">

            ÃƒÂ‚ Â 

            <input type="text" name="status" size="20" value="<%=rst.getString(6)%>"></td>

          </tr>

          <tr>

            <td width="50%" align="left">

            <p><font color="#800080">Salary    </font></td>

            <td width="50%">

            <p align="center"><font color="#800080"><b>

            <input type="text" name="salary" size="20" value="<%=rst.getString(7)%>"></b></font...

          </tr><%}%>

        </table>

        </center>

      </div>

      <p> </p>

      <p>                                     ...

      <input type="submit" name="Submit" value="UPDATE" onclick="return show1()">

    </p>

    </form>

    </body>

    </html>


  2. Leave form

    <html>

    <head>

    <meta http-equiv="Content-Language" content="en-us">

    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">

    <meta name="ProgId" content="FrontPage.Editor.Document">

    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

    <title>Subject</title>

    </head>

    <body>

    <form method="POST" action="leaveform1.jsp">

      

        <p>    Subject   

      <input type="text" name="subject" size="20"></p>

      <p>   From       

      <input type="text" name="adate" size="20"></p>

      <p>   To           

      <input type="text" name="ddate" size="20"></p>

      <p>   Description :</p>

      <p>                    

      <textarea rows="11" name="description" cols="50"></textarea></p>

      <p>                                   

      <input type="submit" value="Send" name="B1"></p>

    </form>

    </body>

    </html>
You're reading: Leave employee delete?

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.