⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 content.jsp

📁 OBPM是一个开源
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK" language="java"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ page import="cn.myapps.core.permission.action.PermissionHelper"%>
<%@ page import="java.util.*"%>
<%@ page import="cn.myapps.core.resource.ejb.ResourceVO"%>
<%@ taglib prefix="ww" uri="webwork"%>
<html>
<head>
<title>{*[Role]*}</title>
<link rel="stylesheet"
	href="<c:out value='${pageContext.request.contextPath}'/>/resource/css/main.css"
	type="text/css">
<script>
</script>	
</head>
<script>
function resourceList()
{
  var deps = document.all("_resourcelist");
  var id;
	<ww:iterator value="_resourcelist">
		 id ='<ww:property />';
	  if (deps != null ) {
		  for (var i=0; i<deps.length; i++) {
		         if(id==deps[i].value){
		          deps[i].checked = true;
       			    }
			    }
		    }
	</ww:iterator> 
	
}
</script>
<body onload="resourceList()">
<table width="98%">
	<tr>
		<td width="10" class="image-label"><img
			src="<ww:url value="/resource/image/email2.jpg"/>" /></td>
		<td width="3"></td>
		<td width="50" class="text-label">{*[Role]*}</td>
		<td>
		<table width="100%" border=1 cellpadding="0" cellspacing="0"
			class="line-position">
			<tr>
				<td></td>
				<td class="line-position2" width="60" valign="top">
				<button class="button-image"
					onClick="forms[0].action='<ww:url action="save"></ww:url>';forms[0].submit();"><img
					src="<ww:url value="/resource/image/save.gif"/>">{*[Save]*}</button>
				</td>
				<td class="line-position2" width="70" valign="top">
				<button class="button-image"
					onClick="forms[0].action='<ww:url action="list"></ww:url>';forms[0].submit();"><img
					src="<ww:url value="/resource/image/back.gif"/>">{*[Exit]*}</button>
				</td>
			</tr>
		</table>
		</td>
	</tr>
</table>
<ww:if test="hasFieldErrors()">
	<span class="errorMessage"> <b>Errors:</b><br>
	<ww:iterator value="fieldErrors">
		*<ww:property value="value[0]" />;
	</ww:iterator> </span>
</ww:if>
	<ww:form action="save" method="post">
	 <ww:bean name="cn.myapps.core.permission.action.PermissionHelper" id="ph" /> 
	<%@include file="/common/page.jsp"%>
		<tr><td class="commFont" aling="left" >{*[Name]*}:</td>
		<td>
		<ww:textfield theme="simple" cssClass="input-cmd" label="{*[Name]*}" name="content.name"  /></td></tr>
		<tr><td class="commFont" aling="left" >{*[Department]*}:</td>
		<td>
		<ww:select label="{*[Department]*}" theme="simple" name="_departmentid" list="get_departmentList(#session.APPLICATION)" /></td></tr>
		<table>
		<tr><td class="commFont" valign="top">{*[Permission]*}:</td>
		
		<td><table>
		<%
		PermissionHelper ph=new PermissionHelper();
		String instance = (String) session.getAttribute("APPLICATION");
		Collection protectResources=ph.get_protectResources(instance);
		Collection temp=protectResources;
		Collection coll=new HashSet();
		for(Iterator iter=protectResources.iterator();iter.hasNext();)
		{
			ResourceVO rv=(ResourceVO)iter.next();
			if(rv.getSuperior()==null)
			{
				String str=ph.get_childResourcesString(rv,0,instance);
			%>
			<tr><td><%=str %></td></tr>
			<%
			}
		}%>
			</table></td></tr>	
	</table>	
	</ww:form>
	<ww:if test="content.id!=null&&content.id.trim().length()>0">
		<iframe  scrolling="no" id="frame" name="Frame" border="0" src="<ww:url value='/core/user/listRole.action'/>?sm_roles.id=<ww:property value="content.id" />" width="786" height="500" frameborder="0"/></iframe>
	</ww:if>
</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -