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

📄 selectcustomer.jsp

📁 一个java程序!!!数据库很特别!!请大家看看!!很有学习和使用的价值
💻 JSP
字号:
<%@page contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/include/taglib.jsp"%>
<html:html locale="true">
<head>
<title><bean:message key="prompt.customer.customerList" /></title>
<LINK href="../css/iplan.css" rel=stylesheet type="text/css">
<SCRIPT language=javascript>
	function copy(customerName, address) 
	{
	  	//window.opener.document.orderInfoForm.elements["customerNameStr"].value = customerName;
	  	//window.opener.document.orderInfoForm.elements["addressStr"].value = address;
	  	window.opener.document.getElementById("customerNameStr").value = customerName;
	  	window.opener.document.getElementById("addressStr").value = address;	  	
	  	window.close();
	}
		
    function search() {
    	document.form1.action = "selectCustomerAction.do?method=list";
    	document.form1.target = "_self";
		document.form1.submit(); 
    }
</SCRIPT>
</head>

<html:form styleId="form1" focus="customer.customerName" action="/selectCustomerAction.do">

	<TABLE align="center" cellSpacing=0 border="0" cellPadding="0" width="100%" class="tablebgGREY">
		<tr>
			<td width="45%" class="TableTxtBold">
			<P align="center"><bean:message key="prompt.customer.customerList" /></P>
			</td>
		</tr>	
	</TABLE>
	
	<table border="0" cellspacing="0" cellpadding="3" class="cellBgSEARCHBOX" width="300">
		<tr>
			<td class="TableTxtBold" width="20%" style="vertical-align:middle;"><bean:message key="prompt.customer.customerName" /></td>
			<td class="TableTxtNorm"><html:text property="customer.customerName" size="20" maxlength="50" styleId="customerName" styleClass="formFill1line"  /></td>
			<td>
				<button class="button" onclick="search();"><bean:message key="button.search" /></button>	
			</td>
		</tr>
	</table>	
	<hr>
	<TABLE class="Table" border="1" width="100%" cellSpacing=0 cellPadding=0>
		<TR class="TableHead" bgcolor="#BDBD69">
			<td align="center" width="45%"><bean:message key="prompt.customer.customerName" /></td>
			<td align="center" width="55%"><bean:message key="prompt.customer.address" /></td>
		</TR>
		
		<logic:iterate name="customerInfoList" id="customerInfo" indexId="index">
			<TR>
				<bean:define id="customerBean" name="customerInfo" type="com.iplan.portal.order.pojo.Customer"/>
				<td>
					<html:text name="customerInfo" property="customerName" readonly="true" ondblclick='<%= "copy(\'" + customerBean.getCustomerName() + "\',\'" + customerBean.getAddress() +"\')" %>' style="BORDER-RIGHT: 0px solid;BORDER-TOP: 0px solid;BORDER-LEFT: 0px solid;BORDER-BOTTOM: 0px solid"></html:text>
				</td>
				<td>
					<html:text name="customerInfo" property="address" readonly="true" ondblclick='<%= "copy(\'" + customerBean.getCustomerName() + "\',\'" + customerBean.getAddress() +"\')" %>' style="BORDER-RIGHT: 0px solid;BORDER-TOP: 0px solid;BORDER-LEFT: 0px solid;BORDER-BOTTOM: 0px solid"></html:text>
				</td>
			</TR>
		</logic:iterate>
	</TABLE>			
</html:form>

</html:html>

⌨️ 快捷键说明

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