| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 | 
							- <!DOCTYPE html>
 
- <html >
 
- <%@ page language="java" contentType="text/html; charset=UTF-8"
 
- 	pageEncoding="UTF-8"%>
 
- <%@ page import="java.util.*"%>
 
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
 
- <%@ include file="../common/base.jsp"%>
 
- <head>
 
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 
- <title>角色列表</title>
 
- </head>
 
- <link rel="stylesheet" type="text/css"
 
- 	href="${basePath }/css/public.css" />
 
- <link rel="stylesheet" type="text/css"	href="${basePath }/css/other.css" />
 
- <%@ include file="../common.jsp"%>
 
- <script type="text/javascript" src="${basePath}/static/biz/js/role/rolemain.js"></script>
 
- <script type="text/javascript">
 
- 		$(document).ready(function () {
 
- 			role.main.init();
 
- 		});
 
- 	</script>
 
- <body>
 
- 	<div class="ch-container">
 
- 		<div class="row">
 
- 			<div class="box col-md-12">
 
- 				<div class="box-inner">
 
- 					<div class="box-header well" data-original-title="11">
 
- 						<h2>
 
- 							<i class="glyphicon glyphicon-user"></i> 系统设置>角色管理
 
- 						</h2>
 
- 					</div>
 
- 					<div class="box-content">
 
- 						<form action="${app }/role/querylist.html" id="roleform" method="post">
 
- 							<!-- 查询条件 -->
 
- 							<table class="search_table" width="95%"  cellpadding="3"  cellspacing="3">
 
- 								<tr style="height:60px;">
 
- 									<td align="center">
 
- 										<div class="form-inline  has-feedback">
 
- 											<label class="control-label" for="inputSuccess4">角色名:</label>
 
- 											<input type="text" class="form-control" name="rolename"
 
- 												value="${rolename }" id="inputSuccess4">
 
- 										</div>
 
- 									</td>
 
- 									<td></td>
 
- 									<td align="center"><a class="btn btn-default btn-sm" href="#"
 
- 										onclick="role.main.search()"> <i
 
- 											class="glyphicon glyphicon-search"></i> 查询
 
- 									</a> <a class="btn btn-default btn-sm" href="#" data-toggle="modal"
 
- 										data-target="#myModal" onclick="role.main.clear()"> <i
 
- 											class="glyphicon glyphicon-plus" ></i> 新增
 
- 									</a></td>
 
- 								</tr>
 
- 							</table>
 
- 							<!-- 列表 -->
 
- 							<table class="table_ud">
 
- 								<tr >
 
- 									<th width="2%">序号</th>
 
- 									<th width="10%">角色编码</th>
 
- 									<th width="25%">角色名</th>
 
- 									<!-- <th width="15%">序列号</th> -->
 
- 									<th width="15%">操作</th>
 
- 								</tr>
 
- 								<c:if test="${roles!= null && fn:length(roles) > 0}">
 
- 									<c:forEach items="${roles}" var="role" varStatus="s">
 
- 										<tr>
 
- 											<td>${s.count}</td>
 
- 											<td>${role.roleCode}</td>
 
- 											<td>${role.roleName}</td>
 
- 											<%-- <td>${role.roleSort}</td> --%>
 
- 											<td>
 
- 										<a class="btn btn-default btn-sm" href="#" data-toggle="modal"
 
- 										data-target="#myModal" onclick="role.main.edit('${role.id}')"><i class="glyphicon glyphicon-wrench"></i>修改</a>
 
- 										<a href="#" class="btn btn-default btn-sm" onclick="role.main.del('${role.id}')"> <i class="glyphicon glyphicon-trash"></i>删除</a>
 
- 										<a href="#" class="btn btn-default btn-sm" onclick="role.main.grant('${role.id}')"><i class="glyphicon glyphicon-th-list"></i>授权</a>
 
- 										</td>
 
- 										</tr>
 
- 									</c:forEach>
 
- 									<tr>
 
- 										<td colspan="4"><jsp:include page="../pageinfo.jsp"></jsp:include>
 
- 										</td>
 
- 									</tr>
 
- 								</c:if>
 
- 								<c:if test="${roles== null || fn:length(roles) == 0}">
 
- 									<tr>
 
- 										<td colspan="4"><span style="color: red">没有记录</span></td>
 
- 									</tr>
 
- 								</c:if>
 
- 							</table>
 
- 					</div>
 
- 					</form>
 
- 				</div>
 
- 			</div>
 
- 		</div>
 
- 		<!--/row-->
 
- 		<!-- dialog -->
 
- 		<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
 
- 			aria-labelledby="myModalLabel" aria-hidden="true">
 
- 			<div class="modal-dialog">
 
- 				<div class="modal-content">
 
- 					<div class="modal-header">
 
- 						<button type="button" class="close" data-dismiss="modal">×</button>
 
- 						<h3 id="htitle">角色新增</h3>
 
- 					</div>
 
- 					<div class="modal-body">
 
- 						<form id="addform" method="post">
 
- 							<input type="hidden" id="editid" name="id" >
 
- 							<table class="add_table">
 
- 								<tr>
 
- 									<td width="20%" style="text-align: right;">角色名:</td>
 
- 									<td width="80%"><input type="text" class="form-control"
 
- 										id="editroleName" name="roleName" ></td>
 
- 								</tr>
 
- 								<tr>
 
- 									<td width="20%" style="text-align: right;">角色编码:</td>
 
- 									<td width="80%"><input type="text" class="form-control"
 
- 										id="editroleCode" name="roleCode"></td>
 
- 								</tr>
 
- 					<!-- 			<tr>
 
- 									<td width="20%" style="text-align: right;">排序号:</td>
 
- 									<td width="80%"><input type="text" class="form-control"
 
- 										id="editroleSort" name="roleSort"></td>
 
- 								</tr> -->
 
- 							</table>
 
- 						</form>
 
- 					</div>
 
- 					<div class="modal-footer">
 
- 						<a href="#" class="btn btn-default" data-dismiss="modal">取消</a> <a
 
- 							href="#" class="btn btn-default" data-dismiss="modal"
 
- 							onclick="role.main.save()">保存</a>
 
- 					</div>
 
- 				</div>
 
- 			</div>
 
- 		</div>
 
- 		<!-- dialog end-->
 
- 	</div>
 
- </body>
 
- </html>
 
 
  |