<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'User_list.jsp' starting page</title>
    
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">    
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<SCRIPT type="text/javascript"></SCRIPT>
  </head>
  
  <body>
  <center>
  <div style=" height:400px width:400px;WIDTH: 97%;OVERFLOW-X:auto;OVERFLOW:scroll">
  <table id="__01" background="images/bg.jpg" width="1024" height="500" border="0">
<tr>
<td colspan="3" width="1024" height="170"></td>
</tr>
<tr>
<td rowspan="6" width="415" height="510"></td>
<td width="194" height="53"></td>
<td rowspan="6" width="415" height="510"></td>
</tr>
<tr >
<td width="600">
<table>
   <tr>
   <!--<th>编&nbsp;&nbsp;号</th>
   --><th>用户名</th>
   <th>等&nbsp;&nbsp;级</th>
   <th>操&nbsp;&nbsp;作</th>
   </tr>
       <s:iterator status="status" value="userVO.users" >
           <s:set name="u" />
       <tr>
       <s:if test="#session.state==1">
       <!--<td><s:property value="#u.userId" /></td>
           --><td><s:property value="#u.userName" /></td>
           <td><s:property value="#u.state" /></td>
           <td><a href="User_beforeUpdate.action?userVO.userId=<s:property value="#u.userId"/>">修改</a>
       <a href="User_delete.action?userVO.userId=<s:property value="#u.userId"/>">删除</a></td>
       </s:if>
       <s:if test="#session.state!=1">
      
           <td><s:property value="#u.userId" /></td>
           <td><s:property value="#u.userName" /></td>
           <td><s:property value="#u.state" /></td>
      
       </s:if>
       <s:if test="#session.state==3">
       <s:if test="#u.state>2">
           <td><s:property value="#u.userId" /></td>
           <td><s:property value="#u.userName" /></td>
           <td><s:property value="#u.state" /></td>
       </s:if>
       </s:if>
       </tr>
       </s:iterator>
   </table>
</td>
</tr>
<!--<tr>
<td width="194" height="53"> <a href="User_list.action">用户列表</a></td>
</tr>
<tr>
<td width="194" height="35"><a href="/bbs/user/User_passworld.jsp">修改密码</a> </td>
</tr>
--><tr>
<td width="194" height="53"></td>
</tr>
<tr>
<td width="194" height="281"></td>
</tr>
</table>
 </div> 
     </center> 
  
<s:debug></s:debug>
  </body>
</html>