findempid.jsp

来自「Jbuilder2006开发的严格按MVC设计模式组织开发过程」· JSP 代码 · 共 56 行

JSP
56
字号
<%@page contentType="text/html; charset=GBK"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/tops.tld" prefix="tops"%>
<html:html>
  <head>
  <html:base/>
  <tops:includeCSS fileName="style"/>
  <tops:includeJs fileName="common"/>
  <tops:includeJs fileName="Table"/>
  <tops:includeJs fileName="inputhelper"/>
  </head>
  <title>员工查询</title>
  <body>
  <html:form action="/actTopsAEmployee" method="POST">
    <input type="hidden" name="method"/>
    <tops:showPageFunction pageFunction="员工查询(仅显示前20人)"/>
    <tops:toolbar>
      <td>
        <html:text property="emName"/>
      </td>
      <tops:toolbutton caption="查询" image="application_form_magnify" method="searchForInputEmId" checkAtClient="false"/>
      <tops:toolbutton caption="关闭" image="arrow_undo" checkAtClient="false" onClick="cancelHelper()"/>
    </tops:toolbar>
    <table cellpadding="0" cellspacing="1" border="0" width="100%" id="PowerTable">
      <tr align="center">
        <td width="5%" nowrap class="title">序号</td>
        <td width="10%" nowrap class="title">员工ID</td>
        <td width="20%" nowrap class="title">员工姓名</td>
      </tr>
      <logic:notEmpty name="objlist">
        <logic:iterate id="info" name="objlist" indexId="index">
          <tr align="center">
            <td height="20">
              <tops:tableOrd/>
            </td>
            <td>
              <tops:inputHelperValueSetter name="info" captionProperty="emId" uuidProperty="emId"/>
            </td>
            <td>
              <bean:write name="info" property="emName"/>
            </td>
          </tr>
        </logic:iterate>
      </logic:notEmpty>
      <logic:empty name="info">
        <tr>
          <td colspan="3" height="20" align="center">没有员工信息</td>
        </tr>
      </logic:empty>
    </table>
  </html:form>
  </body>
</html:html>

⌨️ 快捷键说明

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