<%@ page language="java" pageEncoding="GBK"%>
<jsp:directive.page import="com.accp.crm.common.PaginationBean" />
<%@ 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"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<title>角色管理</title>
<link rel="stylesheet" type="text/css"
href="${pageContext.request.contextPath }/css/styles.css">
<script>
function doDel(id){
if ( window.confirm("确定删除?") ){
window.location.href = "${pageContext.request.contextPath }/role.do?o=doDel&id=" + id;
}
}
//按钮操作
function doSubmit(o){
document.forms[0].action="${pageContext.request.contextPath }/role.do?o="+o;
document.forms[0].submit();
}
</script>
</head>
<body class="main">
<html:form action="/role?o=toList" method="post">
<div class="page_title">
权限管理 > 角色管理
</div>
<div class="button_bar">
${requestScope.operMessage }
<button class="common_button" onclick="javascript:doSubmit('toAdd')">
新建
</button>
<button class="common_button" onclick="javascript:doSubmit('toList')">
查询
</button>
</div>
<table class="query_form_table" border="0" cellPadding="3"
cellSpacing="0">
<tr>
<th class="input_title">
角色名
</th>
<td class="input_content">
<html:text property="role.roleName" />
</td>
<th class="input_title">
状态
</th>
<td class="input_content">
<html:select property="role.roleFlag">
<html:option value="-1">全部</html:option>
<html:option value="1">正常</html:option>
<html:option value="0">已删除</html:option>
</html:select>
</td>
</tr>
</table>
<!-- 列表数据 -->
<br />
<table class="data_list_table" border="0" cellPadding="3"
cellSpacing="0">
<tr>
<th class="data_title">
编号
</th>
<th class="data_title">
角色名
</th>
<th class="data_title">
角色描述
</th>
<th class="data_title">
状态
</th>
<th class="data_title">
操作
</th>
</tr>
<c:forEach items="${requestScope.roleList}" var="item">
<tr>
<td class="data_cell" style="text-align:right;padding:0 10px;">
${item.roleId }
</td>
<td class="data_cell" style="text-align:center;">
${item.roleName }
</td>
<td class="data_cell" style="text-align:left;">
${item.roleDesc }
</td>
<td class="data_cell" style="text-align:center;">
${item.roleFlagString }
</td>
<td class="data_cell">
<img class="op_button"
onclick="window.location.href='${pageContext.request.contextPath }/role.do?o=toDetail&id=${item.roleId }'"
src="${pageContext.request.contextPath }/images/bt_detail.gif"
title="查看" />
<img class="op_button"
onclick="window.location.href='${pageContext.request.contextPath }/role.do?o=toEdit&id=${item.roleId }'"
src="${pageContext.request.contextPath }/images/bt_edit.gif"
title="编辑" />
<img class="op_button"
onclick="window.location.href='${pageContext.request.contextPath }/role.do?o=toAssignRights&id=${item.roleId }'"
title="分配权限"
src="${pageContext.request.contextPath }/images/bt_linkman.gif" />
<c:if test="${item.roleFlag!=0 }">
<img class="op_button" onclick="doDel(${item.roleId })"
src="${pageContext.request.contextPath }/images/bt_del.gif"
title="删除" />
</c:if>
</td>
</tr>
</c:forEach>
<c:if test="${empty requestScope.roleList}">
<tr>
<td class="data_cell" colspan="20"
style="text-align:center;height:40px;">
没有记录
</td>
</tr>
</c:if>
</table>
<!-- 导入分页 -->
<%@include file="../frame/pagination.jsp" %>
</html:form>
</body>
</html:html>
分享到:
相关推荐
ASP.NET下,角色管理的例子,内容可能不多,比较乱,不过代码编写等比较不错,共享下
系统用户管理角色管理权限管理后台管理系统,用于基础管理
java实现角色管理平台,主要技术jsp,struts,数据库主要用mysql
SpringMVC实现用户角色管理(springmvc角色权限管理) SpringMVC用户管理实现 通过SpringMVC与JSP实现用户角色管理 SpringMVC实现用户角色管理(springmvc角色权限管理
主要是关于 .net的角色管理与授权机制的用法和说明
asp角色管理源代码,很多项目中都会使用到!
基于visual studio 2017环境下开发的角色管理系统,达到用户-角色-权限的分级管理,实现用户与权限的分离。
用c#和sql2005开发的,基于b/s结构的简单用户/角色管理模块,可以进行添加、删除和修改。可以查看当前用户下所添加的数据。
Web用户与权限管理,使用ASP.NET网站管理工具,使用登录控件,自定义成员资格与角色管理,关于角色管理的文档
ASP_NET\实验9 用户和角色管理.ppt
本程序详述的讲解了关于asp.net开发中的角色管理机制,及其实现过程。本实例绝无半点错误,下载后即可运行
Spring+SpringMVC用户角色管理系统.zip
角色管理源码,角色管理源码
【资源说明】 1、该资源包括项目的全部源码,下载可以直接使用! 2、本项目适合作为...oa系统源码+项目说明(登录 注册 用户管理 角色管理 菜单管理 字典管理 部门管理 区域管理 个人信息 密码修改等)(SSM+mysql)
非常简单易懂的角色权限管理PPT,适于专门编写用户角色及权限管理模块。
ASP.NET大学院校用户角色管理源码 一、源码特点 1、系统的用户菜单管理是很多应用系统必备的功能。为了锻炼学生开发应用系统的能力,特别 要求学生从系统分析开始,严格采用UML系统建模,严格采用面向...
YQ用户角色管理源码 源码描述: 一、源码特点 1、系统的用户菜单管理是很多应用系统必备的功能。为了锻炼学生开发应用系统的能力,特别要求学生从系统分析开始,严格采用UML系统建模,严格采用面向对象的设计方法...
基于SQLServer的登录_用户和角色管理的实现,