<%@ page language="java" pageEncoding="GB2312" contentType="text/html;charset=GB2312" %>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<%@ include file="/common/meta.jsp"%>
<title>角色管理</title>
<style>
div#firstdiv{
	text-align:center
	width:200;
	border-width:1px bolid;
}
</style>
<link href='<c:url value="/sys/css/css.css"/>' type="text/css" rel="stylesheet">
<script language="javascript">
<!--
function goPage(form) {
	form.action = '<c:url value="/sys/sysuserrole/searchSysuserrole.html"/>';
	form.method.value = "";
	form.onsubmit = "";
    form.submit();	
}
//-->
</script>
</head>
<body  leftmargin=0 topmargin=0 marginheight="0" marginwidth="0">

<!-- 主要内容 start -->
<div id="firstdiv">
<html:form action="/sys/sysuserrole/searchSysuserroleModule.html">
<html:hidden property="id"/>
<html:hidden property="pageCurrent"/>
<input type="hidden" name="method" value="setSysuserroleModules">
<input type="hidden" name="set" value="set">
        <!-- 操作 start -->
<div>&nbsp;角色信息</div>
<div>角色名称：<c:out value="${sysuserroleForm.name}"/></div>
<div>模块列表：</div>
<c:forEach var="module" items="${moduleList}">
<c:if test="${module.revisable == 1}">
	
  <input type="checkbox" name="sysusermoduleIds" value="<c:out value="${module.id}"/>" 
  <c:forEach var="rolemodule" items="${sysuserroleForm.sysusermoduleIds}">
  <c:if test="${module.id == rolemodule}"><c:out value="checked"/></c:if>
  </c:forEach>
  <c:if test="${roleForm.revisable == 0 && module.revisable == 0}">onclick="return false;"</c:if>
  ><c:out value="${module.name}"/><br>
</c:if>
</c:forEach>
<div>
	<input type="submit" style="width:60px" value=" 确定 " class="button" <c:if test="${isGuest}">disabled</c:if>> 
	<input type="button" style="width:60px" value=" 取消 " class="button" onclick="goPage(this.form);">
</div>
		<!-- 操作 end -->
</html:form>

<!-- 主要内容 end -->
</div>
</body>
</html>