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

📄 searchemp.jsp

📁 这是一个物流管理系统
💻 JSP
字号:
<%@ page language="java" pageEncoding="GBK"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
    <html:base />
    
    <title>查找员工</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
    <script type="text/javascript">
	 function check(){		  			  		
	  	   var  id = document.getElementsByName("userid")[0].value;
	  		var  name = document.getElementsByName("username")[0].value;

	       if((id==null ||id == "")&&(name==null||name == "")){
	         		
	         	alert("员工ID和员工姓名不能都为空!");
	  	   		return false;
	  	   	}
	       return true;         	
	   }
	</script>
  </head>
  
  <body alink="#6697b4" vlink="blue" link="#6697b4">
   <strong><font color="#00a0be">Xsofa物流系统</font></strong>
     <hr>
    <div style="background-color: rgb(0, 160, 190);" ><font face="黑体"><font color="#ffffff">&gt;&gt;公司员工管理&gt;&gt;查询员工<br></font></font></div>
    <br>

    <br> 
  <table align="center" width="80%">
  <tr>
  <td>
    <html:form action="/searchEmp" method="post">
    <center><font size="5" color="#00a0be"><b>查询员工-------------------------</b></font></center>
    <hr width="80%" size="3" noshade color="#00a0be">
    	<table align="center">
    		<tr>
    			<td>员工ID:<br></td>
    			<td><html:text property="empid" style="color: rgb(255, 0, 0); border-left: 1px solid rgb(44, 89, 170); border-right: 1px solid rgb(44, 89, 170); border-top: 1px solid rgb(44, 89, 170); border-bottom: 1px solid rgb(44, 89, 170)"/><br></td>
    			<td>员工姓名:<br></td>
    			<td><html:text property="empname" style="color: rgb(255, 0, 0); border-left: 1px solid rgb(44, 89, 170); border-right: 1px solid rgb(44, 89, 170); border-top: 1px solid rgb(44, 89, 170); border-bottom: 1px solid rgb(44, 89, 170)"/><br></td>		    
    			<td><html:submit value=" 查询 " onmousedown="return check()"/><br></td>
    		    
    		</tr>  		  			   		
    	</table>
    	<hr width="80%" size="3" noshade color="#00a0be">
    </html:form>
    
    </td>
    </tr>
    </table>
    
    <logic:equal name="Empresult" value="1" scope="session">
    		<table align="center" width="80%">
    		<tr>
    			<td><font color="#00a0be"><b>员工ID</b></font></td>
    			<td><font color="#00a0be"><b>员工姓名</b></font></td>
    			<td><font color="#00a0be"><b>密码</b></font></td>
    			<td><font color="#00a0be"><b>职务ID</b></font></td>
    			<td><font color="#00a0be"><b>职务名称</b></font></td>
    			<td><font color="#00a0be"><b>所属部门</b></font></td>
    		</tr>
    	<logic:iterate id="sps" type="bean.Employeeinfo" name="resultEmp" scope="session">
   	       <tr>
           <td>${sps.employeeid}</td>
           <td>${sps.employeename}</td>
           <td>${sps.employeepass}</td>
           <td>${sps.dutyinfo.dutyid}</td>
           <td>${sps.dutyinfo.duty}</td>
           <td>${sps.dutyinfo.department}</td>
          </tr>   			
   		</logic:iterate>
   		<%session.setAttribute("Empresult","0"); %>
   		</table>
  </logic:equal>
  <br>
  <br>
	<div align="center">
		&nbsp;&nbsp;&nbsp;&nbsp;
	    <a href="./empList.jsp">返回员工列表</a>
	</div>
	
  </body>
</html:html>

⌨️ 快捷键说明

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