anchor.diff:  <%   }
    }
   %>
  +  </c:when>
  +  <c:otherwise>
  +
  +<% 
  +	if(roleList != null && !roleList.isEmpty() && userList != null && !userList.isEmpty()){
  +        for(SysUser user: userList){
  +%> 
  +		<table width="95%" height="80" border="0" cellspacing="1" cellpadding="0" class="mainTable">
  +		  <tr>
  +			<td colspan="10" class="list-title">
  +			  <table width="100%" cellspacing="0" cellpadding="0">
  +			   <tr>
  +				<td align="left"><font color="#0066ff"><b>用户：<%=user.getName()%></b></font></td>
  +			   </tr>
  +			  </table>
  +			</td>
  +		  </tr>
  +		  <%
  +		  int size = roleList.size() / 5 ;
  +		  for(int j=0; j<=size; j++) { 
  +		  %>
  +		  <tr>
  +			<%
  +			for(int i=j*4; i<(j+1)*4; i++) { 
  +			  if(i<roleList.size()){
  +                 SysRole role = roleList.get(i);
  +				 String checked = "";
  +				 if(user.getRoleCodes().contains(role.getCode())){
  +					 checked = "checked";
  +				 }
  +			%>
  +			<td class="weekend" align="left" height="25" width="180">
  +			  
  +			  <input type="checkbox" id="<%=user.getActorId()%>_<%=role.getId()%>" name="id" <%=checked%>
  +			  onclick="javascript:setUserRole('<%=user.getActorId()%>','<%=role.getId()%>')"  >
  +				<%				 				      
  +					out.println(role.getName()+"&nbsp;["+role.getCode()+"]");	    
  +				%>
  +				
  +			</td>
  +			<%
  +			   } else{
  +			%>
  +			<td class="weekend" align="left" height="25" width="180">&nbsp;</td>
  +			<%  }
  +			
  +		    }%>
  +		  </tr>
  +		  <%}%>
  +		</table>
  +		<br>
  +<%   }
  + }
  +%>
  +
  +  </c:otherwise>
  +</c:choose>
   <br>
   <br>
   <br>
  
positive.code: 	src="<%=request.getContextPath()%>/images/window.png"
  	alt="用户权限设置">&nbsp;用户权限设置</div>
  
  <% 
      List<SysRole> roleList = (List<SysRole>)request.getAttribute("roleList");
  	List<SysUser> userList = (List<SysUser>)request.getAttribute("users");
  	if(roleList != null && !roleList.isEmpty() && userList != null){
          for(SysRole role: roleList){
  %> 
  		<table width="95%" height="80" border="0" cellspacing="1" cellpadding="0" class="mainTable">
  
negative.code: 			 });
  	}
  
  	function switchView(){
  		<c:choose>
  		   <c:when test="${op_view eq 'role'}">
  		       location.href="<%=request.getContextPath()%>/branch/department.do?method=permission&op_view=user&parentId=${parentId}";
  		   </c:when>
  		   <c:otherwise>
  			   location.href="<%=request.getContextPath()%>/branch/department.do?method=permission&op_view=role&parentId=${parentId}";
  		   </c:otherwise>
  		</c:choose>
  	}
  
  </script>
  </head>
  <body leftmargin="0" topmargin="0">  
  