📄 users.jsp
字号:
<%@ page language="java" contentType="text/html;charset=UTF-8" %><%@ include file="../inc/common.jsp" %><%
UserJsp userJsp = new UserJsp(request,response);GroupJsp groupJsp = new GroupJsp(request,response);
java.util.List list = userJsp.findAll(20);
%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>${basic.name}后台管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<club:html type="css" />
<script type="text/javascript" src="../scripts/common.js"></script>
<script type="text/javascript">
var value;
function selectAction(id){
value = c.o(id).options[c.o(id).selectedIndex].value;
if(value=="0"){
c.o("groupId").style.display="none";
alert("请选择操作内容!");
c.o("act").value="0";
return false;
}
if(value=="1"){
c.o("groupId").style.display="inline";
c.o("act").value="userGroup";
}
else if(value=="2"){
c.o("act").value="deleteTopicByUserId";
}
else{
c.o("groupId").style.display="none";
}
}
function selectSub(){
if(value=="1"&&c.o("groupId").value=="0"){
alert("请选择用户组!");
return false;
}
c.p('qwSubmit',true);
}
</script>
</head>
<body>
<div id="wrap">
<div class="sitemap">
<ul>
<li>您的位置:</li><li>后台管理>></li><li><h3>用户列表</h3></li>
</ul>
</div>
<%@ include file="../inc/msgHint.jsp" %>
<div class="sidebar">
<form id="gform" name="gform" action="admin.do" method="post" onsubmit="return selectSub();">
<table summary="社区用户列表" id="users">
<thead>
<tr>
<th scope="col" class="t_1">选择</th>
<th scope="col" class="t_0">名称</th>
<th scope="col" class="t_1">性别</th>
<th scope="col" class="t_2">用户组</th>
<th scope="col" class="t_2"><a href="users.jsp?page=<%=userJsp.getPage()%>&orderBy=0">注册时间</a></th>
<th scope="col" class="t_2">注册IP</th>
<th scope="col" class="t_2">最后登录</th>
<th scope="col" class="t_2">最后登录IP</th>
<th scope="col" class="t_1 t_end">资料</th>
</tr>
</thead>
<tbody>
<c:forEach var="f" items="<%=list%>">
<tr>
<td><club:html type="input" htmlType="checkbox" name="userId" value="${f.userId}" /></td>
<td class="t_0"><club:link type="userNameLink" idIs="${f.userId}" value="${f.userName}" /></td>
<td><club:logic type="which" defaultStr="未知" logic="未知|男|女" which="${f.sex}"/></td>
<td><club:link type="groupName" url="" object="${f}" /></td>
<td style="font-size:8pt"><club:html type="datetime" lvalue="${f.regDateTime}" /></td>
<td style="font-size:8pt"><club:html type="ip" value="${f.regIp}" /></td>
<td style="font-size:8pt"><club:html type="datetime" lvalue="${f.lastLoginDateTime}" /></td>
<td style="font-size:8pt"><club:html type="ip" value="${f.lastLoginIp}" /></td>
<td class="t_1 t_end"><club:link type="basic" url="profile.jsp" param="userId=${f.userId}&act=param" value="资料" rel="self" /></td>
</tr>
</c:forEach>
</tbody>
</table>
<div class="empty"><%=userJsp.getPagination()%></div>
<div class="tfoot">
<a onclick="c.clk('all','users');">全选</a>
<a onclick="c.clk('un','users');">反选</a>
<select id="action" name="action" onchange="selectAction('action');">
<option value="0">请选择操作内容</option>
<option value="1">分配用户组</option>
<option value="2">删除用户所有文章</option>
<option value="3">物理删除用户</option>
</select>
<select id="groupId" name="groupId" class="hide">
<option value="0">请选择用户组</option><c:forEach var="r" items="<%=groupJsp.findAll()%>">
<club:html type="option" name="${r.groupName}" value="${r.groupId}" /></c:forEach>
</select>
<input type="submit" name="qwSubmit" id="qwSubmit" value="确定提交" />
<input type="hidden" name="act" id="act" value="0" />
</div>
</form>
</div>
</div>
</body>
</html>
<!-- Powered by www.YeQiangWei.com -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -