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

📄 searchclient.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="/searchClient" 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="userid" 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="username" 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="result" 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>电话</b></font></td>
    			<td><font color="#00a0be"><b>E-mail</b></font></td>
    			<td><font color="#00a0be"><b>地址</b></font></td>
    		</tr>
    	<logic:iterate id="sps" type="bean.Userinfo" name="resultClient" scope="session">
   	       <tr>
           <td>${sps.userid}</td>
           <td>${sps.username}</td>
           <td>${sps.userpass}</td>
           <td>${sps.usertel}</td>
           <td>${sps.useremail}</td>
           <td>${sps.useraddress}</td>
          </tr>   			
   		</logic:iterate>
   		<%session.setAttribute("result","0"); %>
   		</table>
   </logic:equal>
   <br>
   <br>
	<div align="center">
		&nbsp;&nbsp;&nbsp;&nbsp;
	    <a href="./clientList.jsp">返回客户列表</a>
	</div>	
  </body>
</html:html>

⌨️ 快捷键说明

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