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

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. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  7. <html>
  8.   <head>
  9.     <meta http-equiv="Content-Type" content="text/html; charset=GBK" />    
  10.     <!--
  11.     <link rel="stylesheet" type="text/css" href="styles.css">
  12.     -->
  13.     <style type="text/css">
  14. <!--
  15. .STYLE2 {color: #FF0000}
  16. .STYLE3 {color: #0000FF}
  17. -->
  18.     </style>
  19.      <style type="text/css">
  20. <!--
  21. .STYLE1 {
  22. font-family: "新宋体";
  23. font-size: 14px;
  24. }
  25. -->
  26.       </style>
  27. </head>
  28. <div align="center"><FONT color="red">${msg}</FONT></div>
  29. <html:form action="/user.do">
  30. <input type="hidden" name="method" value="query">
  31. <table width=100% border=1>
  32. <tr class="tableHead" height="50" style="font-size: 16px">
  33. <td align="center">用户查询</td>
  34. </tr>
  35. <tr>
  36. <td>用户号:<html:text property="uname"/>&nbsp;
  37.   姓名:<html:text property="utruename" value=""/>&nbsp;
  38. 部门名称:<html:select property="did">
  39. <logic:present scope="request" name="deptlist">
  40. <html:option value="">请选择</html:option>
  41. <logic:iterate id="dept" name="deptlist" scope="request">
  42. <html:option value="${dept.did}">${dept.dname}</html:option>
  43. </logic:iterate>
  44. </logic:present>
  45.  </html:select>&nbsp;  
  46. <input type="submit" value="查询">
  47. </td>
  48. </tr>
  49. </table>
  50. </html:form>
  51.   <table width=100% border="1" cellpadding="0" cellspacing="0" bordercolor="#66CCFF" class="STYLE1">
  52.     <tr class="tableHead" height="50" style="font-size: 16px">
  53. <td colspan="12" align="center">用户管理列表</td>
  54. </tr>
  55.    <tr align="center" height="35">
  56.    <td>用户名</td>
  57.    <td>真实姓名</td>
  58.    <td>所属部门</td>
  59.    <td>性别</td>
  60.    <td>职位</td>
  61.    <td>电话</td>
  62.    <td>邮箱</td>
  63.    <td>地址</td>
  64.    <td>备注</td>
  65.    <td>身份证号码</td>
  66.    <td>状态</td>
  67.    <td>操作<html:link action="user.do?method=add">[添加]</html:link></td>
  68.    </tr>
  69.   
  70. <logic:empty name="userpage" property="list" scope="request">
  71. <TR>
  72. <TD colspan="12"><FONT color="red">提示:没有数据。。。。</FONT></TD>
  73. </TR>
  74. </logic:empty>
  75. <logic:present name="userpage" scope="request">
  76. <logic:present name="userpage" property="list" scope="request">
  77. <logic:notEmpty name="userpage" property="list" scope="request">
  78. <logic:iterate id="user" name="userpage" property="list" scope="request">
  79. <tr align="center">
  80. <td>${user.uname}</td>
  81. <td>${user.utruename}</td>
  82. <td>${user.dname}</td>
  83. <td>${user.usex=='1' ? '男' : '女'}</td>
  84. <td>${user.pname}</td>
  85. <td>${user.uphone}</td>
  86. <td>${user.uemail}</td>
  87. <td>${user.uaddress}</td>
  88. <td>${user.umemo}</td>
  89. <td>${user.uidcard}</td>
  90. <td>
  91. <FONT color="red">${user.uislocked=='0'?'正常':'已冻结'}</FONT>
  92. </td>
  93. <td>
  94. <logic:equal name="user" value="1" property="uno">
  95. <FONT color="red">超级管理员不能更改</FONT>
  96. </logic:equal>
  97. <logic:notEqual name="user" value="1" property="uno">
  98. <html:link action="/user.do?method=update&uno=${user.uno}">修改</html:link>
  99. &nbsp;
  100. <html:link action="/user.do?method=${user.uislocked=='0'?'close':'open'}&uno=${user.uno}">
  101. ${user.uislocked=='0'?'冻结':'解冻'}</html:link>
  102. </logic:notEqual>
  103. </td>
  104. </tr>
  105. </logic:iterate>
  106. </logic:notEmpty>
  107. </logic:present>
  108. </logic:present>
  109.   </table>
  110. ${userpage.pageBar}