editcountry.jsp
来自「一个关于tlms的一个小程序 看看能否帮助到别人」· JSP 代码 · 共 154 行
JSP
154 行
<%--
Created by IntelliJ IDEA.
User: Jean Zhang
Date: 2006-4-6
Time: 16:36:56
To change this template use File | Settings | File Templates.
--%>
<%@ include file="/WEB-INF/jsp/common/Taglibs.jsp" %>
<script type="text/javascript" language="javascript">
function addCountry() {
var form = document.forms[0];
if (validateAddCountry(form)) {
form.action = '<c:url value="/supplychain/datamapping/addCountry.do"/>';
form.submit();
}
}
function updateCountry() {
var form = document.forms[0];
if (validateAddCountry(form)) {
form.action = '<c:url value="/supplychain/datamapping/updateCountry.do"/>';
form.submit();
}
}
function searchCountry() {
var form = document.forms[0];
form.action = "<c:url value="/supplychain/datamapping/searchCountry.do"/>";
form.submit();
}
function dataMapping() {
var form = document.forms[0];
form.target = "content_right";
form.action = "<c:url value="/supplychain/datamapping/index.do"/>";
form.submit();
}
</script>
<html:form action="/datamapping/addCountry.do">
<html:hidden property="countryBean.id" value="${countryBean.id}"/>
<html:hidden property="countryBean.version" value="${countryBean.version}"/>
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="table1">
<tr>
<td height="28" colspan="2">
<img src="<c:url value='/images/dot.gif'/>" width="11" height="11">
<bean:message key="menu.tlms.supplychain"/>>
<span class="subMenuTxt" class="mouse" onclick="dataMapping();">
<bean:message key="menu.tlms.supplychain.datamapping"/>
</span>>
<span class="subMenuTxt" class="mouse" onclick="searchCountry();">
<bean:message key="label.tlms.supplychain.datamapping.country"/>
</span>>
<bean:message key="label.tlms.supplychain.datamapping.countryInfo"/>
</td>
</tr>
<tr>
<td width="2%" height="31" class="section">
<img src="<c:url value='/images/menu_dot.jpg'/>" width="6" height="19">
</td>
<td width="98%" class="section">
<bean:message key="label.supplychain.basicInfo"/>
</td>
</tr>
<tr>
<td> </td>
<td></td>
</tr>
<tr>
<td></td>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="font-size:12px; width:96%"
id="table2">
<tr>
<td width="11%" nowrap>
<bean:message key="label.tlms.supplychain.datamapping.countryCd"/>
</td>
<td width="28%" nowrap>
<html:text property="countryBean.cntyCd" value="${countryBean.cntyCd}" readonly="true"/>
</td>
<td width="11%" nowrap>
<bean:message key="label.common.englishName"/>
</td>
<td width="53%" nowrap>
<html:text property="countryBean.cntyNameEn" value="${countryBean.cntyNameEn}" readonly="true"/>
</td>
</tr>
<tr>
<td nowrap>
<bean:message key="label.common.chineseName"/>
</td>
<td nowrap>
<html:text property="countryBean.cntyNameCn" value="${countryBean.cntyNameCn}"/>
</td>
<td nowrap></td>
<td nowrap></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>
<td class="ButtonHOME-msover">
<c:choose>
<c:when test="${empty countryBean.id}">
<span class="mouse" onclick="return addCountry()">
<bean:message key="button.save"/>
</span>
</c:when>
<c:otherwise>
<span class="mouse" onclick="return updateCountry()">
<bean:message key="button.save"/>
</span>
</c:otherwise>
</c:choose>
</td>
<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">
<span class="mouse" onclick="searchCountry();">
<bean:message key="button.cancel"/>
</span>
</td>
<td width="8" class="ButtonHOMER-msover"></td>
</tr>
</table>
</td>
</tr>
</table>
</html:form>
<html:javascript formName="/datamapping/addCountry" method="validateAddCountry"/>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?