📄 userlist.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<style type="text/css">
<!--
.STYLE2 {color: #FF0000}
.STYLE3 {color: #0000FF}
-->
</style>
<style type="text/css">
<!--
.STYLE1 {
font-family: "新宋体";
font-size: 14px;
}
-->
</style>
</head>
<div align="center"><FONT color="red">${msg}</FONT></div>
<html:form action="/user.do">
<input type="hidden" name="method" value="query">
<table width=100% border=1>
<tr class="tableHead" height="50" style="font-size: 16px">
<td align="center">用户查询</td>
</tr>
<tr>
<td>用户号:<html:text property="uname"/>
姓名:<html:text property="utruename" value=""/>
部门名称:<html:select property="did">
<logic:present scope="request" name="deptlist">
<html:option value="">请选择</html:option>
<logic:iterate id="dept" name="deptlist" scope="request">
<html:option value="${dept.did}">${dept.dname}</html:option>
</logic:iterate>
</logic:present>
</html:select>
<input type="submit" value="查询">
</td>
</tr>
</table>
</html:form>
<table width=100% border="1" cellpadding="0" cellspacing="0" bordercolor="#66CCFF" class="STYLE1">
<tr class="tableHead" height="50" style="font-size: 16px">
<td colspan="12" align="center">用户管理列表</td>
</tr>
<tr align="center" height="35">
<td>用户名</td>
<td>真实姓名</td>
<td>所属部门</td>
<td>性别</td>
<td>职位</td>
<td>电话</td>
<td>邮箱</td>
<td>地址</td>
<td>备注</td>
<td>身份证号码</td>
<td>状态</td>
<td>操作<html:link action="user.do?method=add">[添加]</html:link></td>
</tr>
<logic:empty name="userpage" property="list" scope="request">
<TR>
<TD colspan="12"><FONT color="red">提示:没有数据。。。。</FONT></TD>
</TR>
</logic:empty>
<logic:present name="userpage" scope="request">
<logic:present name="userpage" property="list" scope="request">
<logic:notEmpty name="userpage" property="list" scope="request">
<logic:iterate id="user" name="userpage" property="list" scope="request">
<tr align="center">
<td>${user.uname}</td>
<td>${user.utruename}</td>
<td>${user.dname}</td>
<td>${user.usex=='1' ? '男' : '女'}</td>
<td>${user.pname}</td>
<td>${user.uphone}</td>
<td>${user.uemail}</td>
<td>${user.uaddress}</td>
<td>${user.umemo}</td>
<td>${user.uidcard}</td>
<td>
<FONT color="red">${user.uislocked=='0'?'正常':'已冻结'}</FONT>
</td>
<td>
<logic:equal name="user" value="1" property="uno">
<FONT color="red">超级管理员不能更改</FONT>
</logic:equal>
<logic:notEqual name="user" value="1" property="uno">
<html:link action="/user.do?method=update&uno=${user.uno}">修改</html:link>
<html:link action="/user.do?method=${user.uislocked=='0'?'close':'open'}&uno=${user.uno}">
${user.uislocked=='0'?'冻结':'解冻'}</html:link>
</logic:notEqual>
</td>
</tr>
</logic:iterate>
</logic:notEmpty>
</logic:present>
</logic:present>
</table>
${userpage.pageBar}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -