deptlist.jsp
上传用户:lm2018
上传日期:2015-12-12
资源大小:30449k
文件大小:2k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page language="java" pageEncoding="GBK"%>
  2. <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
  3. <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
  4. <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
  5. <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
  6. <div align="center"><FONT color="red">${msg}</FONT></div>
  7. <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#66CCFF">
  8. <tr class="tableHead" height="50" style="font-size: 20px">
  9. <td colspan="6" align="center">部门信息编辑</td>
  10. </tr>
  11. <tr align="center">
  12. <td>部门名称</td>
  13. <td>部门功能</td>
  14. <td>部门负责人</td>
  15. <td>部门备注</td>
  16. <td>状态</td>
  17. <td>操作<html:link action="/dept.do?method=add">[添加]</html:link></td>
  18. </tr>
  19. <logic:empty name="deptpage" property="list" scope="request">
  20. <TR>
  21. <TD colspan="12"><FONT color="red">提示:没有数据。。。。</FONT></TD>
  22. </TR>
  23. </logic:empty>
  24. <logic:present name="deptpage" scope="request">
  25. <logic:present name="deptpage" property="list" scope="request">
  26. <logic:notEmpty name="deptpage" property="list" scope="request">
  27. <logic:iterate id="dept" name="deptpage" property="list" scope="request">
  28. <tr align="center">
  29. <td>${dept.dname}</td>
  30. <td>${dept.dfunction}</td>
  31. <td>${dept.uname}</td>
  32. <td>${dept.dmemo}</td>
  33. <td><FONT color="red">${dept.dflag=='0'?'可用':'已锁'}</FONT></td>
  34. <td><html:link action="/dept.do?method=update&did=${dept.did}">修改</html:link>
  35. &nbsp;
  36. <html:link action="/dept.do?method=${dept.dflag=='0'?'close':'open'}&did=${dept.did}">
  37. ${dept.dflag=='0'?'删除':'恢复'}</html:link>
  38. </td>
  39. </tr>
  40. </logic:iterate>
  41. </logic:notEmpty>
  42. </logic:present>
  43. </logic:present>
  44. </table>
  45. ${deptpage.pageBar}