📄 editprovider.jsp
字号:
<%@ include file="/WEB-INF/jsp/common/Taglibs.jsp" %>
<script type="text/javascript" language="javascript">
function addProvider() {
var form = document.forms[0];
//alert(form.elements["bussinessTypeBean.id"].value);
//form.elements["providerBean.id"].value=null;
//alert(form.elements["bussinessTypeBean.id"].value);
if (validateAddedProviderBean(form)) {
form.action = '<c:url value="/admin/provider/addProvider.do"/>';
form.submit();
}
}
function updateProvider() {
var form = document.forms[0];
if (validateUpdatedProviderBean(form)) {
form.action = '<c:url value="/admin/provider/updateProvider.do"/>';
form.submit();
}
}
function searchProvider() {
var f = document.forms[0];
f.action = "<c:url value="/admin/provider/searchProvider.do"/>";
f.submit();
}
</script>
<c:set var="readyOnlyType" value="false" scope="request"/>
<html:form action="/provider/addProvider.do">
<html:hidden property="providerBean.id" value="${providerBean.id}"/>
<div align="center">
<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" alt="">
<bean:message key="label.admin.systemSetting"/> >
<bean:message key="label.admin.provider.Manager"/>
</td>
</tr>
<tr>
<td width="2%" height="31" class="section">
<img src="<c:url value='/images/menu_dot.jpg'/>" width="6" height="19" alt="">
</td>
<td width="98%" class="section">
<bean:message key="label.admin.employee.basicInfo"/>
</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.admin.provider.providerID"/></td>
<td width="53%" nowrap>
<html:text property="providerBean.providerID" value="${providerBean.providerID}"
readonly="${readyOnlyType}"/>
</td>
</tr>
<tr>
<td width="11%" nowrap><bean:message key="label.admin.provider.providerName"/></td>
<td width="53%" nowrap>
<html:text property="providerBean.providerName" value="${providerBean.providerName}"
readonly="${readyOnlyType}"/>
</td>
</tr>
<tr>
<td nowrap><bean:message key="label.admin.provider.linkman"/></td>
<td nowrap>
<html:text property="providerBean.linkman" value="${providerBean.linkman}"
readonly="${readyOnlyType}"/>
</td>
</tr>
<tr>
<td nowrap><bean:message key="label.admin.provider.tel"/></td>
<td nowrap>
<html:text property="providerBean.tel" value="${providerBean.tel}" readonly="${readyOnlyType}"/>
</td>
</tr>
<tr>
<td nowrap><bean:message key="label.admin.provider.fax"/></td>
<td nowrap>
<html:text property="providerBean.fax" value="${providerBean.fax}" readonly="${readyOnlyType}"/>
</td>
</tr>
<tr>
<td nowrap><bean:message key="label.admin.provider.businessEnrolNum"/></td>
<td nowrap>
<html:text property="providerBean.businessEnrolNum" value="${providerBean.businessEnrolNum}"
readonly="${readyOnlyType}"/>
</td>
</tr>
<tr>
<td nowrap><bean:message key="label.admin.provider.aptitudeCardNum"/></td>
<td nowrap>
<html:text property="providerBean.aptitudeCardNum" value="${providerBean.aptitudeCardNum}"
readonly="${readyOnlyType}"/>
</td>
</tr>
<tr>
<td nowrap><bean:message key="label.admin.provider.email"/></td>
<td nowrap>
<html:text property="providerBean.email" value="${providerBean.email}" readonly="${readyOnlyType}"/>
</td>
</tr>
<tr>
<td nowrap><bean:message key="label.admin.provider.address"/></td>
<td nowrap>
<html:text property="providerBean.address" value="${providerBean.address}"
readonly="${readyOnlyType}"/>
</td>
</tr>
<tr>
<td nowrap><bean:message key="label.admin.provider.remark"/></td>
<td nowrap>
<html:textarea property="providerBean.remark" value="${providerBean.remark}"
readonly="${readyOnlyType}"/>
</td>
</tr>
<tr>
<td colspan="4" nowrap></td>
</tr>
</table>
</td>
</tr>
<tr>
<td> </td><td> </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:if test="${readyOnlyType=='false'}">
<c:choose>
<c:when test="${empty providerBean.id}">
<a href="#" class="hrefColor" onclick="addProvider()">
<bean:message key="button.save"/>
</a>
</c:when>
<c:otherwise>
<a href="#" class="hrefColor" onclick="updateProvider()">
<bean:message key="button.save"/>
</a>
</c:otherwise>
</c:choose>
</c:if>
</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">
<a href="#" class="hrefColor" onclick="searchProvider()">
<bean:message key="button.cancel"/>
</a>
</td>
<td width="8" class="ButtonHOMER-msover"></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</html:form>
<c:choose>
<c:when test="${empty providerBean.id}">
<html:javascript formName="/provider/addProvider" method="validateAddedProviderBean"/>
</c:when>
<c:otherwise>
<html:javascript formName="/provider/updateProvider" method="validateUpdatedProviderBean"/>
</c:otherwise>
</c:choose>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -