searchoperatorlist.jsp

来自「一个关于tlms的一个小程序 看看能否帮助到别人」· JSP 代码 · 共 208 行

JSP
208
字号
<%@ include file="/WEB-INF/jsp/common/Taglibs.jsp" %>

<script type="text/javascript" language="javascript">
    function doSearch() {
        var f = document.forms[0];
        if (validateSearchOperator(f)) {
            f.action = "<c:url value="/admin/operator/searchOperator.do"/>";
            f.submit();
        }
    }

    function initEditOperator(id) {
        var f = document.forms[0];
        f.elements["operatorBean.id"].value = id;
        f.action = "<c:url value="/admin/operator/initUpdateOperator.do"/>";
        f.submit();
    }

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

<html:form action="/operator/searchOperator.do">
<html:hidden property="operatorBean.id"/>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<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.common.searchCondition"/>
    </td>
</tr>
<tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
</tr>
<tr>
    <td>&nbsp;</td>
    <td>
        <table width="100%" height="43" border="0" cellpadding="0"
               cellspacing="0" style="font-size:12px; width:96%  ">
            <tr>
                <td width="11%" nowrap><bean:message key="label.admin.operator.operatorID"/></td>
                <td width="27%" nowrap><html:text property="searchBean.operatorID"/></td>
                <td width="11%" nowrap><bean:message key="label.admin.operator.operatorName"/></td>
                <td width="53%" nowrap><html:text property="searchBean.operatorName"/></td>
            </tr>
            <tr>
                <td width="11%" nowrap><bean:message key="label.admin.operator.sex"/></td>
                <td width="27%" nowrap><html:text property="searchBean.sex"/></td>
                <td width="11%" nowrap><bean:message key="label.admin.operator.loginName"/></td>
                <td width="53%" nowrap><html:text property="searchBean.loginName"/></td>
            </tr>
            <tr>
                <td width="11%" nowrap><bean:message key="label.admin.operator.birthday"/></td>
                <td width="27%" nowrap><html:text property="searchBean.birthday"/></td>
                <td width="11%" nowrap><bean:message key="label.admin.operator.enterDate"/></td>
                <td width="53%" nowrap><html:text property="searchBean.enterDate"/></td>
            </tr>
            <tr>
                <td width="11%" nowrap><bean:message key="label.admin.operator.mobile"/></td>
                <td width="27%" nowrap><html:text property="searchBean.mobile"/></td>
                <td width="11%" nowrap><bean:message key="label.admin.operator.tel"/></td>
                <td width="53%" nowrap><html:text property="searchBean.tel"/></td>
            </tr>
            <tr>

                <td width="11%" nowrap><bean:message key="label.admin.operator.email"/></td>
                <td width="27%" nowrap><html:text property="searchBean.email"/></td>

                <td nowrap><bean:message key="label.admin.operator.depName"/></td>
                <td nowrap>
                    <html:select property="searchBean.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>
                <td nowrap>&nbsp;</td>
                <td nowrap>&nbsp;</td>
            </tr>
            <tr>
                <td colspan="4" nowrap>
                    <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="doSearch();">
                                        <bean:message key="button.search"/>
                                    </span>
                            </td>
                            <td width="8" class="ButtonHOMER-msover"></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </td>
</tr>
<tr>
    <td colspan="2">&nbsp;</td>
</tr>
<tr>
    <td height="31" class="section">
        <img src="<c:url value="/images/menu_dot.jpg"/>" width="6" height="19" alt="">
    </td>
    <td height="31" class="section">
        <bean:message key="label.admin.operator.List"/>
    </td>
</tr>
<tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
</tr>
<tr>
    <td>&nbsp;</td>
    <td>
        <c:set var="sn_display_tag">
            <input type="checkbox" name="idArrHeader" onclick="selectGlobal(this.checked,'row')"/>
        </c:set>

        <display:table name="${pagination}" cellspacing="0" cellpadding="0" id="row" sort="external"
                       export="flase" requestURI="" class="subMainTable" style="width:98%"
                       decorator="com.szmx.component.displaytag.TableDecoratorExtends">

            <display:column title="${sn_display_tag}" class="subMainTd" headerClass="subMainTh">
                <html:multibox property="idArr" onclick="selectRow(this.checked,'row')">
                    <c:out value="${row[0]}"/>
                </html:multibox>
            </display:column>
            <display:column titleKey="label.admin.operator.operatorID" class="subMainTd"
                            sortable="true" sortProperty="oper.operatorID" headerClass="subMainTh">
                <a href="#" onclick="initEditOperator('<c:out value="${row[0]}"/>');">
                    <c:out value="${row[1]}"/></a>
            </display:column>
            <display:column titleKey="label.admin.operator.operatorName" class="subMainTd"
                            headerClass="subMainTh">
                <c:out value="${row[2]}"/>
            </display:column>
            <display:column titleKey="label.admin.employee.department" class="subMainTd_text_left"
                            headerClass="subMainTh">
                <c:out value="${row[3]}"/>
            </display:column>
            <display:column titleKey="label.admin.operator.sex" class="subMainTd"
                            sortable="false" headerClass="subMainTh">
                <c:out value="${row[3]}"/>
            </display:column>
            <display:column titleKey="label.admin.operator.operatorType" class="subMainTd" headerClass="subMainTh">
                <code:dispCode codeType="EMP_STATUS" codeValue="${row[4]}"/>
            </display:column>
            <display:column titleKey="label.admin.operator.email" class="subMainTd" headerClass="subMainTh">
                <c:out value="${row[5]}"/>
            </display:column>

        </display:table>
    </td>
</tr>
<tr>
    <td height="39">&nbsp;</td>
    <td>
        <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="return initAddOperator()">
                            <bean:message key="button.add"/>
                        </span>
                </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="deleteRecord('idArr', '<c:url value='/admin/operator/removeOperator.do'/>');">
                            <bean:message key="button.delete"/>
                        </span>
                </td>
                <td width="8" class="ButtonHOMER-msover"></td>
                <td width="10"></td>
            </tr>
        </table>
    </td>
</tr>
</table>
</html:form>

<html:javascript formName="/operator/searchOperator" method="validateSearchOperator"/>

<script type="text/javascript" language="javascript">
    displayTableRows("row");
</script>

⌨️ 快捷键说明

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