anchor.diff:  			 });
   	}
   
  +	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">  
  
positive.code: <%   }
   }
  %>
  <br>
  <br>
  <br>
  
negative.code: 	src="<%=request.getContextPath()%>/images/window.png"
  	alt="用户权限设置">&nbsp;用户权限设置</div>
  
  <table width="95%" height="30" border="0" cellspacing="1" cellpadding="0" class="mainTable">
    <tr>
  	<td colspan="10" align="right">
  	   <c:choose>
           <c:when test="${op_view eq 'role'}">
  	      <input type="button" class="btnGray" value="切换用户视图" onclick="javascript:switchView();">
  		 </c:when>
  		 <c:otherwise>
  		  <input type="button" class="btnGray" value="切换角色视图" onclick="javascript:switchView();">
  		 </c:otherwise>
  		</c:choose>
  	</td>
    </tr>
  </table>
  <% 
      List<SysRole> roleList = (List<SysRole>)request.getAttribute("roleList");
  	List<SysUser> userList = (List<SysUser>)request.getAttribute("users");
  	 
  %> 
  <c:choose>
    <c:when test="${op_view eq 'role'}">
  <% 
  	if(roleList != null && !roleList.isEmpty() && userList != null && !userList.isEmpty()){
          for(SysRole role: roleList){
  %> 
  		<table width="95%" height="80" border="0" cellspacing="1" cellpadding="0" class="mainTable">
  