📄 businessdetailright.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic"%>
<html:form action="/businessEdit.do?method=saveBusiness" styleId="businessEditForm" method="post" onsubmit="return false;">
<table width="750" border="0" align="center" class="TableBack">
<%
String flug = request.getParameter("flug");
if("edit".equals(flug)) {
%>
<html:hidden name="businessEditForm" property="businessId"/>
<html:hidden name="businessEditForm" property="flug"/>
<html:hidden name="businessEditForm" property="cpName"/>
<html:hidden name="businessEditForm" property="category"/>
<%
%>
<th colspan="3">编辑业务信息</th>
<%
}else if("add".equals(flug)){
%>
<html:hidden name="businessEditForm" property="flug"/>
<%
%>
<th colspan="3">添加业务</th>
<%
}
%>
<tr>
<td class="tborder"></td>
<td>
<logic:notEmpty name="wap_global_messages" scope="request">
<logic:iterate id="message" name="wap_global_messages" scope="request">
<center>
<font color="red"><li>
<bean:write name="message" />
</li>
</font>
</center>
</logic:iterate>
</logic:notEmpty>
</td>
<td class="tborder"></td>
</tr>
<tr>
<td class="tborder"></td>
<td>
<TABLE width="95%" align="center" border="1" class="TableBack">
<TR>
<TD align="right" width="40%">业务分类: </TD>
<TD>
<%
if("edit".equals(flug)) {
%>
<bean:write name="businessEditForm" property="category"/>
<%
} else if("add".equals(flug)){
%>
<html:select property="category" styleId="category">
<html:option value="">--请选择--</html:option>
<html:option value="0">文字</html:option>
<html:option value="1">音乐</html:option>
<html:option value="2">图片</html:option>
</html:select> <FONT color="red">*</FONT><html:errors property="category"/>
<%
}
%>
</TD>
</TR>
<TR>
<TD align="right">所属CP: </TD>
<TD>
<%
if("edit".equals(flug)) {
%>
<bean:write name="businessEditForm" property="cpName"/>
<%
} if("add".equals(flug)) {
%>
<html:select property="cpId" styleId="cpId">
<html:options collection="cplist" property="value" labelProperty="label" />
</html:select> <FONT color="red">*</FONT><html:errors property="cpId"/>
<%
}
%>
</TD>
</TR>
<TR>
<TD align="right">业务名称: </TD>
<TD >
<%
if("edit".equals(flug)) {
%>
<html:text property="businessName"></html:text> <FONT color="red">*</FONT><html:errors property="businessName"/>
<%
} else if("add".equals(flug)) {
%>
<html:text property="businessName"/> <FONT color="red">*</FONT><html:errors property="businessName"/>
<%
}
%>
</TD>
</TR>
</TABLE>
</td>
<td class="tborder"></td>
</tr>
<tr>
<td class="tborder"></td>
<td> </td>
<td class="tborder"></td>
</tr>
<tr>
<td class="tborder"></td>
<td align="center">
<%
if("edit".equals(flug)) {
%>
<INPUT type=button value="保存" onclick="formSubmit('businessEditForm', 'module/business/businessEdit.do?method=saveBusiness')">
<%
} else {
%>
<INPUT type=button value="保存" onclick="formSubmit('businessEditForm', 'module/business/businessAdd.do?method=saveBusiness')">
<%
}
%>
<INPUT type="reset" value="重置">
<%
if("add".equals(flug)) {
%><!--
<input type="button" value="重置" onClick="formSubmit('businessEditForm', 'module/business/businessAdd.do?method=getCp&flug=add&reset=yes')"/>
--><%
} else {
%>
<!--<input type="button" value="重置" onClick="formSubmit('businessEditForm', 'module/business/businessEdit.do?method=getBusiness&flug=edit&reset=yes')"/>
--><%
}
%>
<INPUT type="button" value="返回" onClick="formSubmit('businessEditForm', 'module/business/businessList.do?method=listBusiness')"/>
</td>
<td class="tborder"></td>
</tr>
<tr>
<td colspan="3" class="tborder"></td>
</tr>
</table>
</html:form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -