⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editbussinesstype.jsp

📁 一个关于tlms的一个小程序 看看能否帮助到别人
💻 JSP
字号:
<%@ include file="/WEB-INF/jsp/common/Taglibs.jsp" %>

<script type="text/javascript" language="javascript">
    function addBussinessType() {
        var form = document.forms[0];
        //alert(form.elements["bussinessTypeBean.id"].value);
        form.elements["bussinessTypeBean.id"].value = null;
        //alert(form.elements["bussinessTypeBean.id"].value);
        if (validateAddedBussinessTypeBean(form)) {
            form.action = '<c:url value="/admin/bussinessType/addBussinessType.do"/>';
            form.submit();
        }
    }

    function updateBussinessType() {
        var form = document.forms[0];
        if (validateUpdatedBussinessTypeBean(form)) {
            form.action = '<c:url value="/admin/bussinessType/updateBussinessType.do"/>';
            form.submit();
        }
    }

    function searchBussinessType() {
        var f = document.forms[0];
        f.action = "<c:url value="/admin/bussinessType/searchBussinessType.do"/>";
        f.submit();
    }
</script>

<c:set var="readyOnlyType" value="false" scope="request"/>

<html:form action="/bussinessType/addBussinessType.do">
<html:hidden property="bussinessTypeBean.id" value="${bussinessTypeBean.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"/> &gt;
                <bean:message key="label.admin.bussinessType.bussinessTypeManager"/>
            </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.bussinessType.bussinessID"/></td>
                        <td width="53%" nowrap>
                            <html:text property="bussinessTypeBean.bussinessID" value="${bussinessTypeBean.bussinessID}"
                                       readonly="${readyOnlyType}"/>
                        </td>
                    </tr>
                    <tr>
                        <td width="11%" nowrap><bean:message key="label.admin.bussinessType.instroction"/></td>
                        <td width="53%" nowrap>
                            <html:text property="bussinessTypeBean.busInstroction"
                                       value="${bussinessTypeBean.busInstroction}" readonly="${readyOnlyType}"/>
                        </td>
                    </tr>
                    <tr>
                        <td nowrap><bean:message key="label.admin.bussinessType.Species"/></td>
                        <td nowrap>
                            <html:text property="bussinessTypeBean.busSpecies" value="${bussinessTypeBean.busSpecies}"
                                       readonly="${readyOnlyType}"/>
                        </td>
                    </tr>
                    <tr>
                        <td nowrap><bean:message key="label.admin.bussinessType.prefixContract"/></td>
                        <td nowrap>
                            <html:text property="bussinessTypeBean.prefixContract"
                                       value="${bussinessTypeBean.prefixContract}" readonly="${readyOnlyType}"/>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4" nowrap></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td><td>&nbsp;</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 bussinessTypeBean.id}">
                                        <a href="#" class="hrefColor" onclick="addBussinessType()">
                                            <bean:message key="button.save"/>
                                        </a>
                                    </c:when>
                                    <c:otherwise>
                                        <a href="#" class="hrefColor" onclick="updateBussinessType()">
                                            <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="searchBussinessType()">
                                <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 bussinessTypeBean.id}">
        <html:javascript formName="/bussinessType/addBussinessType" method="validateAddedBussinessTypeBean"/>
    </c:when>
    <c:otherwise>
        <html:javascript formName="/bussinessType/updateBussinessType" method="validateUpdatedBussinessTypeBean"/>
    </c:otherwise>
</c:choose>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -