📄 usermanageradmin.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ 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" %>
<html:html lang="true">
<head>
<title>管理员对所有用户进行管理</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
color: #000000;
}
body {
background-color: #CCCCCC;
}
.STYLE3 {
color: #006600
}
.STYLE4 {
font-weight: bold;
font-size: xx-large;
color: #003300;
}
a {
font-size: 12px;
color: #880066;
}
a:link {
text-decoration: none;
color: #000000;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: none;
color: #FF00FF;
}
a:active {
text-decoration: none;
color: #9900FF;
}
.STYLE5 {
color: #000000
}
-->
</style>
</head>
<body>
<div align="center">
<div align="center"><h1 align="center">
<font color="#7060cc">用户管理</font>
</h1></div>
<table width="600" border="1" bgcolor="#ecf1f9" align="center">
<tr height="25" valign="middle">
<th>用户名</th>
<th>密码</th>
<th>性别</th>
<th>电话</th>
<th>电子邮箱</th>
<th>QQ号码</th>
<th>级别</th>
<th>操作</th>
</tr>
<logic:iterate id="users" name="usersList">
<tr>
<td><bean:write name="users" property="username"/></td>
<td><bean:write name="users" property="password"/></td>
<td><logic:equal name="users" property="sex" value="1">男</logic:equal>
<logic:equal name="users" property="sex" value="2">女</logic:equal></td>
<td><bean:write name="users" property="phone"/></td>
<td><bean:write name="users" property="email"/></td>
<td><bean:write name="users" property="qqCode"/></td>
<td><logic:equal name="users" property="level" value="1">会员</logic:equal>
<logic:equal name="users" property="level" value="2">管理员</logic:equal></td>
<td>
<html:link action="/userDelete" paramId="userId" paramName="users" paramProperty="id"
onclick="return window.confirm('确定要删除这条记录吗?')">删除</html:link>
</td>
</tr></logic:iterate>
</table>
</div>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -