fromside_update.jsp
来自「一个关于tlms的一个小程序 看看能否帮助到别人」· JSP 代码 · 共 152 行
JSP
152 行
<!--
=============================================
Copyright 2006 szmx
Change Revision
--------------------------------
Date Author Remarks
2006-4-19 terry.zhang Create
=============================================
-->
<%@ include file="/WEB-INF/jsp/common/Taglibs.jsp" %>
<%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html" %>
<link rel="stylesheet" type="text/css" href="../css/main.css">
<script src="../js/verify.js" language="javascript" type="text/javascript"></script>
<script src="../js/option.js" language="javascript" type="text/javascript"></script>
<script language="javascript">
function searchFromSide(){
var form=document.forms[0];
form.action='<c:url value="/supplychain/datamapping/searchFromSideInfo.do"/>';
form.submit();
}
function addFromSide() {
var form=document.forms[0];
if (validateAddFromSide(form)) {
form.action='<c:url value="/supplychain/datamapping/addFromSide.do"/>';
form.submit();
}
}
function updateFromSide() {
var form=document.forms[0];
if (validateAddFromSide(form)) {
form.action='<c:url value="/supplychain/datamapping/updateFromSide.do"/>';
form.submit();
}
}
</script>
<div align="center">
<html:form action="/datamapping/addFromSide.do">
<html:hidden property="fromSideBean.id" value="${fromSideBean.id}"/>
<html:hidden property="fromSideBean.version" value="${fromSideBean.version}"/>
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="table1">
<tr>
<td height="28" colspan="2"><img src="../images/dot.gif" width="11" height="11"> <bean:message key="label.supplyChain.dicSet"/>>
<a href="<c:url value="/supplychain/datamapping/index.do"/>" class="subMenuTxt"><bean:message key="label.supplyChain.maintainDate"/></a>>
<a href="<c:url value="/supplychain/datamapping/searchFromSideInfo.do"/>" class="subMenuTxt">From Side
<bean:message key="label.supplyChain.list"/></a>>From Side
<c:choose>
<c:when test="${empty fromSideBean.id}">
<bean:message key="button.add"/>
</c:when>
<c:otherwise>
<bean:message key="label.supplyChain.refresh"/>
</c:otherwise>
</c:choose>
</td>
</tr>
<tr>
<td width="2%" height="31" background="../images/menu_bg.jpg"><img src="../images/menu_dot.jpg" width="6" height="19"></td>
<td width="98%" background="../images/menu_bg.jpg" class="MenuTxt">From Side
<c:choose>
<c:when test="${empty fromSideBean.id}">
<bean:message key="button.add"/>
</c:when>
<c:otherwise>
<bean:message key="label.supplyChain.refresh"/>
</c:otherwise>
</c:choose>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>
<table width="100%" height="43" border="0" cellpadding="0" cellspacing="0" style="font-size:12px; width:96% " id="table2">
<tr>
<td width="11%" nowrap><bean:message key="label.supplyChain.name"/></td>
<td width="28%" nowrap>
<html:text property="fromSideBean.name" size="30"/></td>
<td width="11%" nowrap><bean:message key="label.supplyChain.mobilePhone"/></td>
<td width="53%" nowrap><html:text property="fromSideBean.mobile" size="30"/></td>
</tr>
<tr>
<td nowrap><bean:message key="label.supplyChain.telephone1"/></td>
<td nowrap><html:text property="fromSideBean.tel1" size="15"/>
-
<html:text property="fromSideBean.ext1"size="4"/></td>
<td nowrap><bean:message key="label.supplyChain.telephone2"/></td>
<td nowrap><html:text property="fromSideBean.tel2"size="15"/>
-
<html:text property="fromSideBean.ext2" size="4"/></td>
</tr>
<tr>
<td nowrap><bean:message key="label.common.fax"/></td>
<td nowrap><html:text property="fromSideBean.fax" size="30"/></td>
<td nowrap><bean:message key="label.supplyChain.mail"/></td>
<td nowrap><html:text property="fromSideBean.email" size="30"/></td>
</tr>
<tr>
<td colspan="4" nowrap> </td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><hr size="1"></td>
</tr>
<tr>
<td> </td>
<td>
<table border="0" cellspacing="0" cellpadding="0" align="left">
<tr>
<td width="8" class="ButtonHOMEL-msover"></td>
<c:choose>
<c:when test="${empty fromSideBean.id}">
<td class="ButtonHOME-msover">
<a href=# onClick="addFromSide();" class="hrefColor">
<bean:message key="button.save"/>
</a>
</td>
</c:when>
<c:otherwise>
<td class="ButtonHOME-msover">
<a href=# onClick="updateFromSide();" class="hrefColor">
<bean:message key="button.save"/>
</a>
</td>
</c:otherwise>
</c:choose>
<td width="8" class="ButtonHOMER-msover"></td>
<td width="10"></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" align="left">
<tr>
<td width="8" class="ButtonHOMEL-msover"></td>
<td class="ButtonHOME-msover"><a href=# onClick="searchFromSide();" class="hrefColor"><bean:message key="button.cancel"/></a></td>
<td width="8" class="ButtonHOMER-msover"></td>
</tr>
</table></td>
</tr>
</table>
</html:form>
</div>
<html:javascript formName="/datamapping/addFromSide" method="validateAddFromSide"/>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?