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

📄 businessdetailright.jsp

📁 这个是完整的wap项目的源码 开发语言 Java 系统架构 Struts + hibernate + spring 数据库 Mysql5.0 应用服务器Tomcat5.0 开发工具 MyEc
💻 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>&nbsp;
		<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%">业务分类:&nbsp;&nbsp;&nbsp;&nbsp;</TD>
					<TD>
					<%
						if("edit".equals(flug)) {
					%>
						&nbsp;&nbsp;&nbsp;&nbsp;<bean:write name="businessEditForm" property="category"/>
					<%
					    } else if("add".equals(flug)){
					%>
					    &nbsp;&nbsp;&nbsp;&nbsp;<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>&nbsp;<FONT color="red">*</FONT><html:errors property="category"/>
					 <%
					    }
					 %>
					</TD>
				</TR>
				<TR>
					<TD align="right">所属CP:&nbsp;&nbsp;&nbsp;&nbsp;</TD>
					<TD>
					<%
						if("edit".equals(flug)) {
					%>
						&nbsp;&nbsp;&nbsp;&nbsp;<bean:write name="businessEditForm" property="cpName"/>
					<%
						} if("add".equals(flug)) {														
					%>
						&nbsp;&nbsp;&nbsp;&nbsp;<html:select property="cpId" styleId="cpId">
							<html:options collection="cplist" property="value" labelProperty="label" />
						</html:select>&nbsp;<FONT color="red">*</FONT><html:errors property="cpId"/>
					<%							
						}
					%>
					</TD>
				</TR>
				<TR>
					<TD align="right">业务名称:&nbsp;&nbsp;&nbsp;&nbsp;</TD>
					<TD >
					<%
						if("edit".equals(flug)) {
					%>
					&nbsp;&nbsp;&nbsp;&nbsp;<html:text property="businessName"></html:text>&nbsp;<FONT color="red">*</FONT><html:errors property="businessName"/>
					<%
						} else if("add".equals(flug)) {
					%>
						&nbsp;&nbsp;&nbsp;&nbsp;<html:text property="businessName"/>&nbsp;<FONT color="red">*</FONT><html:errors property="businessName"/>
					<%
						}
					%>
					</TD>
				</TR>
			</TABLE>
		</td>
		<td class="tborder"></td>
	  </tr>
	  <tr>
		<td class="tborder"></td>
		<td>&nbsp;</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')">&nbsp;&nbsp;&nbsp;&nbsp;
		<%
			} else {
		%>
			<INPUT type=button value="保存" onclick="formSubmit('businessEditForm', 'module/business/businessAdd.do?method=saveBusiness')">&nbsp;&nbsp;&nbsp;&nbsp;
		<%
			}
		%>
			<INPUT type="reset" value="重置">&nbsp;&nbsp;&nbsp;&nbsp;
		<%
			if("add".equals(flug)) {
		%><!--
			<input type="button" value="重置" onClick="formSubmit('businessEditForm', 'module/business/businessAdd.do?method=getCp&flug=add&reset=yes')"/>&nbsp;&nbsp;
			--><% 
			} else {
		%>
			<!--<input type="button" value="重置" onClick="formSubmit('businessEditForm', 'module/business/businessEdit.do?method=getBusiness&flug=edit&reset=yes')"/>&nbsp;&nbsp;
			--><%
			}
		%>	
			<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 + -