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

📄 cpdetailbody.jsp

📁 这个是完整的wap项目的源码 开发语言 Java 系统架构 Struts + hibernate + spring 数据库 Mysql5.0 应用服务器Tomcat5.0 开发工具 MyEc
💻 JSP
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="com.longtime.wap.module.cp.web.form.CpEditForm"%>
<%@ 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="cpEditValidate.do?method=saveCp" method="post"
	enctype="multipart/form-data" styleId="cpForm">
	<table width="750" border="0" align="center" class="TableBack">
		<html:hidden name="cpEditForm" property="detailType" />
		<html:hidden name="cpEditForm" property="editFlug" />
		<html:hidden name="cpEditForm" property="currentPage" />
		<html:hidden name="cpEditForm" property="cpId" />

		<%CpEditForm cpEditForm = (CpEditForm) request
					.getAttribute("cpEditForm");
			String editFlug = cpEditForm.getEditFlug();

			%>
		<th colspan="3"><%if ("edit".equalsIgnoreCase(editFlug)) {

			%> 更改CP单位信息 <%} else if ("save".equalsIgnoreCase(editFlug)) {

			%> 新建CP单位信息 <%} else {

			%> CP单位信息 <%}

			%></th>
		<tr>
			<td class="tborder"></td>
			<td>&nbsp;</td>
			<td class="tborder"></td>
		</tr>
		<logic:notEmpty name="wap_global_messages" scope="request">
			<tr>
				<td class="tborder"></td>
				<td>&nbsp; <logic:iterate id="message" name="wap_global_messages"
					scope="request">
					<center><font color="red">
					<li><bean:write name="message" /></li>
					</font></center>
				</logic:iterate></td>
				<td class="tborder"></td>
			</tr>
		</logic:notEmpty>
		<tr>
			<td class="tborder"></td>

			<td>
			<table width="95%" align="center" border="1" class="TableBack">
				<tr>
					<td align="right" width="100">企业代码&nbsp;:&nbsp;</td>
					<td colspan="2"><%if ("save".equalsIgnoreCase(editFlug)) {

			%> <html:text property="companyCode"></html:text><html:errors
						property="companyCode" /> &nbsp;<FONT color="red">*(只允许输入8位数字)</FONT>
					<%} else {

			%> <html:hidden property="companyCode"></html:hidden>&nbsp;&nbsp;<bean:write
						name="cpEditForm" property="companyCode" /> <%}

			%></td>
				</tr>
				<tr>
					<td align="right">单位名称&nbsp;:&nbsp;</td>
					<td colspan="2"><%if ("edit".equalsIgnoreCase(editFlug)
					|| "save".equalsIgnoreCase(editFlug)) {

			%> <html:text property="companyName" maxlength="50"></html:text><html:errors
						property="companyName" /> &nbsp;<FONT color="red">*</FONT> <%} else {

			%> &nbsp;&nbsp;<bean:write name="cpEditForm" property="companyName" /> <%}

			%></td>
				</tr>
				<tr>
					<td align="right">地 址&nbsp;:&nbsp;</td>
					<td colspan="2"><%if ("edit".equalsIgnoreCase(editFlug)
					|| "save".equalsIgnoreCase(editFlug)) {

			%> <html:text property="address" maxlength="50"></html:text><html:errors
						property="address" /> <%} else {

			%> &nbsp;&nbsp;<bean:write name="cpEditForm" property="address" /> <%}

			%></td>
				</tr>
				<tr>
					<td align="right">电 话&nbsp;:&nbsp;</td>
					<td colspan="2"><%if ("edit".equalsIgnoreCase(editFlug)
					|| "save".equalsIgnoreCase(editFlug)) {

			%> <html:text property="phone" maxlength="20"></html:text><html:errors
						property="phone" /> &nbsp;<FONT color="red">(电话号码格式:010-12345678)
					</FONT> <%} else {

			%> &nbsp;&nbsp;<bean:write name="cpEditForm" property="phone" /> <%}

			%></td>
				</tr>
				<tr>
					<td align="right">服务说明&nbsp;:&nbsp;</td>
					<td colspan="2"><%if ("edit".equalsIgnoreCase(editFlug)
					|| "save".equalsIgnoreCase(editFlug)) {

			%> <html:textarea property="serviceDesc" rows="10"
						cols="60" /><html:errors property="serviceDesc" /> &nbsp;<%} else {

			%> &nbsp;&nbsp;<bean:write name="cpEditForm" property="serviceDesc" /> <%}

			%></td>
				</tr>
				<tr>
					<td align="right">电子邮件&nbsp;:&nbsp;</td>
					<td colspan="2"><%if ("edit".equalsIgnoreCase(editFlug)
					|| "save".equalsIgnoreCase(editFlug)) {

			%> <html:text property="email" maxlength="40"></html:text><html:errors
						property="email" /> &nbsp;<FONT color="red">(电子邮件格式:example@yahoo.com.cn)</FONT>
					<%} else {

			%> &nbsp;&nbsp;<bean:write name="cpEditForm" property="email" /> <%}

			%></td>
				</tr>
				<tr>
					<td align="right">客服电话&nbsp;:&nbsp;</td>
					<td colspan="2"><%if ("edit".equalsIgnoreCase(editFlug)
					|| "save".equalsIgnoreCase(editFlug)) {

			%> <html:text property="clientPhone" maxlength="20"></html:text><html:errors
						property="clientPhone" /> &nbsp;<FONT color="red">(电话号码格式:010-12345678)
					</FONT> <%} else {

			%> &nbsp;&nbsp;<bean:write name="cpEditForm" property="clientPhone" /> <%}

			%></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".equalsIgnoreCase(editFlug)
					|| "save".equalsIgnoreCase(editFlug)) {

			%> <input type="submit" name="save" value="保存">&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="reset" name="reset" value="重置">&nbsp;&nbsp;&nbsp;&nbsp;
			<%}

		%> <input type="button" name="button" value="返回"
				onclick="formSubmit('cpForm', 'module/cp/cpList.do?method=listCp')">
			</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 + -