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

📄 editcustomer.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.customerInfoEdit" /></TITLE>
<LINK href="../css/iplan.css" rel=stylesheet type="text/css">
<SCRIPT language=javascript>
	function closePage()
	{
		self.opener.refresh(); 
		self.close();
	}

	function save()
	{
	 	if(validateForm(document.form1)) {
		 	document.form1.action = "customerAction.do?method=save";
			document.form1.submit();
		}
	}	
	
	function del()
	{
		if(confirm("<bean:message key='prompt.confirm'/> ")) {
		 	document.form1.action = "customerAction.do?method=delete";
         	document.form1.submit();
         	closePage()
        }
	}
</SCRIPT>
</head>

<html:form styleId="form1" focus="customer.customerName" action="/customerAction.do?method=save">

	<table width="100%" border="0" cellspacing="0" cellpadding="0" >
		<tr align="center">
			<td align="center" class="TableTxtBold">
			<P align="center"><bean:message key="prompt.customer.customerInfoEdit" /></P>
			</td>
		</tr>
		<tr>
			<TD align="center" colspan="2">
				<html:messages id="msg" message="true" >
					<font color="red" size="2"><b><bean:write name="msg"/></b></font>
				</html:messages>	
				<html:messages id="msg" message="false" >
					&nbsp;
				</html:messages>						
			</TD>			
		</tr>
		<tr>
			<td>
				<table width="100%" border="0" align="center" class="cellBg" cellspacing="1" cellpadding="0">
					<tr>
						<td class="TableTxtBold" width="15%"><bean:message key="prompt.customer.customerName" /></td>
						<td class="TableTxtNorm"><html:text property="customer.customerName" size="40" maxlength="50" styleId="customerName" styleClass="formFill1line"  /></td>
					</tr>
					<tr>
						<td class="TableTxtBold" width="15%"><bean:message key="prompt.customer.address" /></td>
						<td class="TableTxtNorm"><html:text property="customer.address" size="50" maxlength="100" styleId="address" styleClass="formFill1line"  /></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td>
				<button class="button" onclick="save();"><bean:message key="button.save" /></button>
				&nbsp;
			  	<logic:empty name="customerForm" property="customer.guid">
					<button class="button" onclick="del();" disabled="disabled"><bean:message key="button.delete" /></button>
				</logic:empty>
				<logic:notEmpty name="customerForm" property="customer.guid">
					<button class="button" onclick="del();"><bean:message key="button.delete" /></button>
				</logic:notEmpty>				
				&nbsp;
				<button class="button" onclick="closePage();"><bean:message key="button.close" /></button>
			</td>
		</tr>		
	</table>
	<html:hidden property="customer.guid"/>
	<html:hidden property="customer.areaid"/>
	<html:javascript formName="customerForm" method="validateForm"/>
</html:form>

</html:html>

⌨️ 快捷键说明

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