editoperator.jsp
来自「一个关于tlms的一个小程序 看看能否帮助到别人」· JSP 代码 · 共 200 行
JSP
200 行
<%@ include file="/WEB-INF/jsp/common/Taglibs.jsp" %>
<script type="text/javascript" language="javascript">
function addOperator() {
var form = document.forms[0];
if (validateAddedOperatorBean(form)) {
form.action = '<c:url value="/admin/operator/addOperator.do"/>';
form.submit();
}
}
function updateOperator() {
var form = document.forms[0];
if (validateUpdatedOperatorBean(form)) {
form.action = '<c:url value="/admin/operator/updateOperator.do"/>';
form.submit();
}
}
function searchOperator() {
var f = document.forms[0];
f.action = "<c:url value="/admin/operator/searchOperator.do"/>";
f.submit();
}
</script>
<c:set var="readyOnlyType" value="false" scope="request"/>
<html:form action="/operator/addOperator.do">
<html:hidden property="operatorBean.id" value="${operatorBean.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.operator.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.operator.operatorID"/></td>
<td width="28%" nowrap>
<c:choose>
<c:when test="${empty operatorBean.id}">
<html:text property="operatorBean.operatorID" value="${operatorBean.operatorID}"/>
</c:when>
<c:otherwise>
<html:text property="operatorBean.operatorID" value="${operatorBean.operatorID}"
readonly="true"/>
</c:otherwise>
</c:choose>
</td>
<td width="11%" nowrap><bean:message key="label.admin.operator.operatorName"/></td>
<td width="53%" nowrap>
<html:text property="operatorBean.operatorName" value="${operatorBean.operatorName}"
readonly="${readyOnlyType}"/>
</td>
</tr>
<tr>
<td nowrap><bean:message key="label.admin.operator.sex"/></td>
<td nowrap>
<html:text property="operatorBean.sex" value="${operatorBean.sex}" readonly="${readyOnlyType}"/>
</td>
<td nowrap><bean:message key="label.admin.employee.department"/></td>
<td nowrap>
<html:select property="operatorBean.deptID" value="${operatorBean.deptID}">
<html:option value=""><bean:message key="label.common.pleaseSelect"/></html:option>
<c:forEach items="${departmentList}" var="dept">
<html:option value="${dept.id}"><c:out value="${dept.name}"/></html:option>
</c:forEach>
</html:select>
</td>
</tr>
<tr>
<td nowrap><bean:message key="label.admin.operator.tel"/></td>
<td nowrap>
<html:text property="operatorBean.tel" value="${operatorBean.tel}" readonly="${readyOnlyType}"/>
</td>
<td nowrap><bean:message key="label.admin.operator.mobile"/></td>
<td nowrap>
<html:text property="operatorBean.mobile" value="${operatorBean.mobile}"
readonly="${readyOnlyType}"/>
</td>
</tr>
<tr>
<td nowrap><bean:message key="label.admin.operator.loginName"/></td>
<td nowrap>
<html:text property="operatorBean.loginName" value="${operatorBean.loginName}"
readonly="${readyOnlyType}"/>
</td>
<td nowrap><bean:message key="label.admin.operator.operatorType"/></td>
<td nowrap>
<html:text property="operatorBean.operatorType" value="${operatorBean.operatorType}"
readonly="${readyOnlyType}"/>
</td>
</tr>
<tr>
<td nowrap><bean:message key="label.admin.operator.email"/></td>
<td nowrap>
<html:text property="operatorBean.email" value="${operatorBean.email}" readonly="${readyOnlyType}"/>
</td>
<td nowrap><bean:message key="label.admin.operator.other"/></td>
<td nowrap>
<html:text property="operatorBean.other" value="${operatorBean.other}" readonly="${readyOnlyType}"/>
</td>
</tr>
<tr>
<td nowrap><bean:message key="label.admin.operator.remark"/></td>
<td nowrap>
<html:textarea property="operatorBean.remark" value="${operatorBean.remark}" cols="20" rows="8"
readonly="${readyOnlyType}"/>
</td>
</tr>
<tr>
<td colspan="4" nowrap></td>
</tr>
</table>
</td>
</tr>
<tr>
<td> </td><td> </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:if test="${readyOnlyType=='false'}">
<c:choose>
<c:when test="${empty operatorBean.id}">
<a href="#" class="hrefColor" onclick="addOperator()">
<bean:message key="button.save"/>
</a>
</c:when>
<c:otherwise>
<a href="#" class="hrefColor" onclick="updateOperator()">
<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="searchOperator()">
<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 operatorBean.id}">
<html:javascript formName="/operator/addOperator" method="validateAddedOperatorBean"/>
</c:when>
<c:otherwise>
<html:javascript formName="/operator/updateOperator" method="validateUpdatedOperatorBean"/>
</c:otherwise>
</c:choose>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?