rolelist.jsp

来自「基于jsp+sevlet的部分权限控制」· JSP 代码 · 共 53 行

JSP
53
字号
<%@ page language="java" pageEncoding="gb2312"%>
<%@ include file="/commons/taglibs.jsp" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>${CompanyName}--${ProjectName}</title>
    <%@ include file="/commons/meta.jsp" %>
  </head>
  
  <body>   
    <div id="content">
    
    <TABLE cellSpacing="1" cellPadding="2" width="70%" align="center" border="0">
      <TBODY>
      <TR>
          <TD align=center><Strong><h2>角色列表</h2></Strong></TD>
      </TR>
      <TR>    
          <TD align=right>
              <input type="button" value="添加角色" onClick="location.href='role.do?p=edit'" class="BigButton">
             
          </TD>
      </TR>
      </TBODY>
    </TABLE>

    <hr width="80%">
	<%@ include file="/commons/messages.jsp" %>
	<TABLE class=small cellSpacing="1" cellPadding="2" width="70%" align="center" bgColor="#000000" border="0">
      <TBODY>
	  <TR>
          <TD class="TableSeparator" align="center" nowrap="nowrap" width="20%"><strong>角色名称</strong></TD>
          <TD class="TableSeparator" align="center" nowrap="nowrap" width="30%"><strong>角色描述</strong></TD>
          <TD class="TableSeparator" align="center" nowrap="nowrap"><strong>操作</strong></TD>
      </TR>
	  <c:forEach items="${roles}" var="item">
      <TR>
          <TD class=TableData nowrap="nowrap">${item.name}</TD>
          <TD class=TableData nowrap="nowrap">${item.description}</TD>
          <TD class=TableData nowrap="nowrap" align="center">[&nbsp;
              <a href="${ctx}/role.do?p=edit&id=${item.id}">编辑</a>&nbsp;|&nbsp;
              <a href="${ctx}/role.do?p=delete&id=${item.id}">删除</a>&nbsp;|&nbsp;
              <a href="${ctx}/rolePrivilege.do?p=list&id=${item.id}">权限</a>&nbsp;&nbsp;]
          </TD>
      </TR>
      </c:forEach>
      
      </TBODY>
    </TABLE>
  </body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?