📄 cpdetailbody.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> </td>
<td class="tborder"></td>
</tr>
<logic:notEmpty name="wap_global_messages" scope="request">
<tr>
<td class="tborder"></td>
<td> <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">企业代码 : </td>
<td colspan="2"><%if ("save".equalsIgnoreCase(editFlug)) {
%> <html:text property="companyCode"></html:text><html:errors
property="companyCode" /> <FONT color="red">*(只允许输入8位数字)</FONT>
<%} else {
%> <html:hidden property="companyCode"></html:hidden> <bean:write
name="cpEditForm" property="companyCode" /> <%}
%></td>
</tr>
<tr>
<td align="right">单位名称 : </td>
<td colspan="2"><%if ("edit".equalsIgnoreCase(editFlug)
|| "save".equalsIgnoreCase(editFlug)) {
%> <html:text property="companyName" maxlength="50"></html:text><html:errors
property="companyName" /> <FONT color="red">*</FONT> <%} else {
%> <bean:write name="cpEditForm" property="companyName" /> <%}
%></td>
</tr>
<tr>
<td align="right">地 址 : </td>
<td colspan="2"><%if ("edit".equalsIgnoreCase(editFlug)
|| "save".equalsIgnoreCase(editFlug)) {
%> <html:text property="address" maxlength="50"></html:text><html:errors
property="address" /> <%} else {
%> <bean:write name="cpEditForm" property="address" /> <%}
%></td>
</tr>
<tr>
<td align="right">电 话 : </td>
<td colspan="2"><%if ("edit".equalsIgnoreCase(editFlug)
|| "save".equalsIgnoreCase(editFlug)) {
%> <html:text property="phone" maxlength="20"></html:text><html:errors
property="phone" /> <FONT color="red">(电话号码格式:010-12345678)
</FONT> <%} else {
%> <bean:write name="cpEditForm" property="phone" /> <%}
%></td>
</tr>
<tr>
<td align="right">服务说明 : </td>
<td colspan="2"><%if ("edit".equalsIgnoreCase(editFlug)
|| "save".equalsIgnoreCase(editFlug)) {
%> <html:textarea property="serviceDesc" rows="10"
cols="60" /><html:errors property="serviceDesc" /> <%} else {
%> <bean:write name="cpEditForm" property="serviceDesc" /> <%}
%></td>
</tr>
<tr>
<td align="right">电子邮件 : </td>
<td colspan="2"><%if ("edit".equalsIgnoreCase(editFlug)
|| "save".equalsIgnoreCase(editFlug)) {
%> <html:text property="email" maxlength="40"></html:text><html:errors
property="email" /> <FONT color="red">(电子邮件格式:example@yahoo.com.cn)</FONT>
<%} else {
%> <bean:write name="cpEditForm" property="email" /> <%}
%></td>
</tr>
<tr>
<td align="right">客服电话 : </td>
<td colspan="2"><%if ("edit".equalsIgnoreCase(editFlug)
|| "save".equalsIgnoreCase(editFlug)) {
%> <html:text property="clientPhone" maxlength="20"></html:text><html:errors
property="clientPhone" /> <FONT color="red">(电话号码格式:010-12345678)
</FONT> <%} else {
%> <bean:write name="cpEditForm" property="clientPhone" /> <%}
%></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".equalsIgnoreCase(editFlug)
|| "save".equalsIgnoreCase(editFlug)) {
%> <input type="submit" name="save" value="保存">
<input type="reset" name="reset" value="重置">
<%}
%> <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 + -