⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 empsearch1.jsp

📁 ENTERPRISE RESOURCE INFORMATION SYSTEM(ERIS) is a compurised solution for recruiting angencies and s
💻 JSP
字号:

<%@ page import="javax.servlet.http.*,java.sql.*,javax.servlet.*,dbconnection.DBConnection" %>
<head>
<title>Enterprise Resource Information System</title>
</head>
<body>
<form  action="">
<div style="background-color: #C0C0C0">
 <p align="center"><b>Enterprise Resource Information System</b></p></div>
<p align="center">EMPLOYEE SEARCH</p>

<%
DBConnection  db= new DBConnection();
ResultSet rs=db.executeQuery("select employeeid  from employeedetails ");
%>
<p align=center>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Employee ID <select size="1" name="empid"><br>
<option>Select Employee ID</option></p>
<%      
      	while(rs.next())
	{
           
%>
<br><br>

<option> <%=rs.getInt(1)%> </option></p>
<%
	}
  %>    

</select>
  <input type="submit" value="VIEW" name="B3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;



<br><br>
<table border="1" cellspacing="2" style="border-collapse: collapse" bordercolor="#brown" width="100%" id="AutoNumber1">
  <tr>
    <td width="16%">Employee ID</td>
    <td width="16%">
    <p align="center">Name</td>
    <td width="17%">
    <p align="center">Role</td>
    <td width="17%">
    <p align="center">Phone</td>
    <td width="17%">
    <p align="center">e-mail</td>
    <td width="17%">&nbsp;&nbsp;&nbsp; Client ID</td>
  </tr>
<%
	String s=request.getParameter("empid");
	if (s!=null)
	{
ResultSet rs1=db.executeQuery("select employeeid,firstname,role,mobileno,email,clientid from employeedetails where employeeid=' "+ s +" ' "); 
	if(rs1.next())
	{
%>
  <tr>
    <td width="16%"><%=request.getParameter("empid")%>&nbsp;</td>
    <td width="16%"><%=rs1.getString(2)%>&nbsp;</td>
    <td width="17%"><%=rs1.getString(3)%>&nbsp;</td>
    <td width="17%"><%=rs1.getString(4)%>&nbsp;</td>
    <td width="17%"><%=rs1.getString(5)%>&nbsp;</td>
    <td width="17%"><%=rs1.getString(6)%>&nbsp;</td>
  </tr>
<%
	}
	} 
%>
</table>

  <p align="center"><a href="recruit.htm">BACK</a></p>
</form>
</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -