📄 view_user.jsp~83~
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.bwm.model.User" %>
<%@ page import="com.bwm.core.*" %>
<%@ page import="java.util.*" %>
<html>
<head>
<title>view_user</title>
</head>
<%
User u=(User)session.getAttribute("user");
if(u.getUid()==null||"".equals(u.getUid())||u.getStatus()!=FinalConstants.STATUS_ADMIN){
return;
}
%>
<link href="../css/css.css" rel="stylesheet" type="text/css">
<body>
<table border="1" align="center" cellpadding="0" cellspacing="0" class="tableBorder2">
<tr align="center">
<td height="27" colspan="5" >管理用户</td>
</tr>
<tr align="center">
<td height="27">用户ID</td>
<td>注册时间</td>
<td>用户权根</td>
<td>用户状态</td>
<td>删除</td>
</tr>
<%
BasetableFactory bf=BasetableFactory.getInstance();
int submit_page=ParamUtils.getIntParameter(request,"page");
Collection coll=bf.ListUser(submit_page,"");
if(coll==null||coll.size()<=0){
%>
<tr align="center">
<td height="27" colspan="5">当前用户记录为空</td>
</tr>
<%
}else{
Iterator it=coll.iterator();
while(it.hasNext()){
User user=(User)it.next();
%>
<tr align="center">
<td height="27"><%=user.getUid()%></td>
<td><%=user.getRegtime()%></td>
<td>
<form name="form1" method="post" action="">
<input type="radio" name="radiobutton" value="1" <%=user.getStatus()==FinalConstants.STATUS_ADMIN?"checked":""%> >
管理员
<input type="radio" name="radiobutton" value="0" <%=user.getStatus()==FinalConstants.STATUS_ADMIN?"checked":""%> >
普通用户
</form></td>
<td><%=user.getState()%></td>
<td> </td>
</tr>
<%
}
%>
<tr align="right">
<td height="27" colspan="5"><%=HtmlUtils.table(bf.getRow("user"),submit_page,"view_user.jsp")%></td>
</tr>
<%
}
%>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -