📄 editsalespersons.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.salespersons.edit" /></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 = "salespersonsAction.do?method=save";
document.form1.submit();
}
}
function del()
{
if(confirm("<bean:message key='prompt.confirm'/> ")) {
document.form1.action = "salespersonsAction.do?method=delete";
document.form1.submit();
closePage()
}
}
</SCRIPT>
</head>
<html:form styleId="form1" focus="salespersons.personName" action="/salespersonsAction.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.salespersons.edit" /></P>
</td>
</tr>
<tr>
<td> </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.salespersons.personName" /></td>
<td class="TableTxtNorm"><html:text property="salespersons.personName" size="20" maxlength="20" styleId="personName" styleClass="formFill1line" /></td>
</tr>
<tr>
<td class="TableTxtBold" width="25%"><bean:message key="prompt.salespersons.remark" /></td>
<td class="TableTxtNorm"><html:textarea property="salespersons.remark" rows="20" cols="50" styleId="remark" styleClass="formFill1line" style="height:30px;width:90%;"></html:textarea></td>
</tr>
</table>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<button class="button" onclick="save();"><bean:message key="button.save" /></button>
<logic:empty name="salespersonsForm" property="salespersons.guid">
<button class="button" onclick="del();" disabled="disabled"><bean:message key="button.delete" /></button>
</logic:empty>
<logic:notEmpty name="salespersonsForm" property="salespersons.guid">
<button class="button" onclick="del();"><bean:message key="button.delete" /></button>
</logic:notEmpty>
<button class="button" onclick="closePage();"><bean:message key="button.close" /></button>
</td>
</tr>
</table>
<html:hidden property="salespersons.guid"/>
<html:javascript formName="salespersonsForm" method="validateForm"/>
</html:form>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -