<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
						<!-- table开始 -->
                        <table class="table table-hover">
                            <thead>
	                            <tr>
						            <th>员工号</th>
						            <th>姓名</th>
						            <th>职位名称</th>
						            <th>部门名称</th>
						            <th>电话</th>
						            <th>邮箱</th>
						            <th>状态</th>
						            <th>操作</th>
						        </tr>
                            </thead>
                            <tbody id="main_data">
                            	<c:forEach items="${list.dataList}" var="user">
                            		<tr>
                            			<td>${user.employeeno }</td>
                            			<td>${user.username }</td>
                            			<td>${user.sysPosition.positionname }</td>
                            			<td>${user.sysDepartment.depname }</td>
                            			<td>${user.mobilenumber }</td>
                            			<td>${user.emailaddress }</td>
                            			<td class="user_satus_${user.userid }">
                            				<c:choose>
	                            				<c:when test="${user.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="userEdit?userId=${user.userid}">编辑</a></li>
						                            <li>
						                            	<a href="javascript:void(0);" class="op_enable" userId="${user.userid }" >
						                            		<c:choose>
						                            			<c:when test="${user.isenabled}">
				                            						解冻
				                            					</c:when>
				                            					<c:otherwise>
					                            					冻结
					                            				</c:otherwise>
						                            		</c:choose>	
						                            	</a>
						                            </li>
						                            <li><a href="javascript:void(0);" class="op_delete" userId="${user.userid }" >删除</a></li>
							                        <li class="divider"></li>
							                        <li><a href="javascript:void(0)" class="op_reset_pw" userId="${user.userid }">重置密码</a></li>
							                        <li><a href="javascript:void(0)" class="op_user_role" userId="${user.userid }"  data-toggle="modal" data-target="#user-role">分配角色</a></li>
							                    </ul>
						                        
                							</div>
                            			</td>
                            		</tr>
                            	</c:forEach>
                            </tbody>
                        </table>
                        <!-- table结束 -->
                        <%@include file="/WEB-INF/views/page1.jsp" %>