<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
										<table class="table table-hover">
											<thead>
												<tr>
													<th>角色名称</th>
													<th>角色描述</th>
													<th>最后更新时间</th>
													<th>状态</th>
													<th>操作</th>
												</tr>
											</thead>
											<tbody>
												<c:forEach items="${list.dataList}" var="role" varStatus="vs">
													<tr>
														<td>${role.roleName}</td>
														<td>${role.roleDesc}</td>
														<td>
															<fmt:parseDate  value="${role.lastDate}"   pattern="yyyy-MM-dd HH:mm:ss" type="date" var="data"  />
															<fmt:formatDate value="${data }" pattern="yyyy年MM月dd日 HH时mm分ss秒"/>  
														</td>
														<td class="role_satus_${role.roleId }">
						                            		<c:choose>
							                            		<c:when test="${role.isEnabled}">
							                            			<i class="fa fa-minus text-danger"></i>	
							                            		</c:when>
								                            	<c:otherwise>
								                            		<i class="fa fa-check text-navy"></i>
								                            	</c:otherwise>
						                            		</c:choose>
                            							</td>
														<td><div class="dropdown">
																<a data-toggle="dropdown" class="dropdown-toggle"
																	href="#"> <span class="text-muted text-xs block">操作
																		<b class="caret"></b>
																</span>
																</a>
																<ul class="dropdown-menu animated fadeInRight m-t-xs">
																	<li><a href="updateRole2?RoleID=${role.roleId}">编辑角色</a></li>
																	<li><a href="rolePermission?RoleID=${role.roleId}">编辑权限</a></li>
																	<li><a href="selectUserByRoleId?RoleID=${role.roleId}">查看用户</a></li>

																	<li class="divider"></li>
																	<li><a href="javascript:void(0);" class="op_enable" RoleID="${role.roleId }">
									                            		<c:choose>
									                            			<c:when test="${role.isEnabled}">
							                            						解冻
							                            					</c:when>
							                            					<c:otherwise>
								                            					冻结
								                            				</c:otherwise>
									                            		</c:choose>	
									                            	</a>
																	</li>
																	<li><a href="javascript:void(0)" onclick="DeleteRole(${role.roleId},'${role.roleName}')">删除</a></li>
																	
																</ul>
														</div>
														</td>
													</tr>
												</c:forEach>
											</tbody>
										</table>
										 <%@include file="/WEB-INF/views/page1.jsp" %>							