📄 userinfo_list.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@include file="../inc.jsp" %>
<%@taglib prefix="display" uri="/WEB-INF/displaytag.tld"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
<!--
function ConfirmDel()
{
if(confirm("如果删除,将导致该用户录入的咨询信息丢失!确定要删除此角色吗?"))
return true;
else
return false;
}
//-->
</SCRIPT>
<title>My JSF 'userinfo_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">
-->
</head>
<body>
<div align="center">
<display:table name="${requestScope.userinfolist}" export="true" id="currentRowObject" pagesize = "7" cellpadding="1" cellspacing="1"
requestURI="userinfo.do?method=read" class="simple">
<display:column property="userid" title="ID"/>
<display:column property="username"/>
<display:column property="userpwd" />
<display:column title="权限">${pageScope.currentRowObject.role.rolename}</display:column>
<display:column title="操作">
<c:choose>
<c:when test="${sessionScope.userid == pageScope.currentRowObject.userid}">
当前用户[禁止删除]
</c:when>
<c:otherwise>
<html:link action="userinfo?method=delete&id=${pageScope.currentRowObject.userid}" onclick="return ConfirmDel();">del</html:link>
</c:otherwise>
</c:choose>
</display:column>
<display:setProperty name="export.rtf.filename" value="example.rtf" />
<display:setProperty name="export.pdf" value="true" />
</display:table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -