📄 usergroup_editor.jsp
字号:
<%@page contentType="text/html; charset=GBK"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@taglib uri="/WEB-INF/struts-nested.tld" prefix="nested"%>
<%@taglib uri="/WEB-INF/tops.tld" prefix="tops"%>
<html:html>
<head>
<html:base/>
<tops:includeCSS fileName="style"/>
<tops:includeJs fileName="common"/>
<tops:includeJs fileName="keyCode"/>
<tops:includeJs fileName="validateForm"/>
<tops:includeAjaxRequiredFiles fileName="AjaxTopsSystemUser"/>
<script language="JavaScript" type="text/javascript">
var functionObj;
function systemChanged(sysId){
var sysObj=document.getElementsByName(sysId);
var moduleIndex=0,operatorIndex=0;
if(sysObj[0].checked==true){
while(true){
moduleIndex++;
var strmoduleIndex=moduleIndex.toString();
while(strmoduleIndex.length<2){
strmoduleIndex='0'+strmoduleIndex;
}
var moduleObj=document.getElementsByName(sysId+"."+strmoduleIndex);
if(moduleObj[0]==null || typeof(moduleObj)=="undefined"){
break;
}else{
moduleObj[0].checked=true;
operatorIndex=0;
while(true){
operatorIndex++;
var stroperatorIndex=operatorIndex.toString();
while(stroperatorIndex.length<2){
stroperatorIndex='0'+stroperatorIndex;
}
var operatorObj=document.getElementsByName(sysId+"."+strmoduleIndex+"."+stroperatorIndex);
if(operatorObj[0]==null || typeof(operatorObj)=="undefined"){
break;
}else{
operatorObj[0].checked=true;
}
}
}
}
}else{
while(true){
moduleIndex++;
var strmoduleIndex=moduleIndex.toString();
while(strmoduleIndex.length<2){
strmoduleIndex='0'+strmoduleIndex;
}
var moduleObj=document.getElementsByName(sysId+"."+strmoduleIndex);
if(moduleObj[0]==null || typeof(moduleObj)=="undefined"){
break;
}else{
moduleObj[0].checked=false;
operatorIndex=0;
while(true){
operatorIndex++;
var stroperatorIndex=operatorIndex.toString();
while(stroperatorIndex.length<2){
stroperatorIndex='0'+stroperatorIndex;
}
var operatorObj=document.getElementsByName(sysId+"."+strmoduleIndex+"."+stroperatorIndex);
if(operatorObj[0]==null || typeof(operatorObj)=="undefined"){
break;
}else{
operatorObj[0].checked=false;
}
}
}
}
}
}
function moduleChanged(moduleId){
var moduleObj=document.getElementsByName(moduleId);
var operatorIndex=0;
if(moduleObj[0].checked==true){
while(true){
operatorIndex++;
var stroperatorIndex=operatorIndex.toString();
while(stroperatorIndex.length<2){
stroperatorIndex='0'+stroperatorIndex;
}
var operatorObj=document.getElementsByName(moduleId+"."+stroperatorIndex);
if(operatorObj[0]==null || typeof(operatorObj)=="undefined"){
break;
}else{
operatorObj[0].checked=true;
}
}
}else{
while(true){
operatorIndex++;
var stroperatorIndex=operatorIndex.toString();
while(stroperatorIndex.length<2){
stroperatorIndex='0'+stroperatorIndex;
}
var operatorObj=document.getElementsByName(moduleId+"."+stroperatorIndex);
if(operatorObj[0]==null || typeof(operatorObj)=="undefined"){
break;
}else{
operatorObj[0].checked=false;
}
}
}
}
</script>
</head>
<body>
<html:form action="/actTopsSystemUserGroup" method="post">
<html:hidden property="id"/>
<html:hidden property="method"/>
<tops:showPageFunction pageFunction="系统维护——编辑组信息"/>
<tops:toolbar>
<tops:toolbutton caption="保存" image="page_save" confirm="确定保存该工作组信息吗?" checkAtClient="true"/>
<tops:toolbutton caption="返回" image="arrow_undo" onClick="history.go(-1)"/>
</tops:toolbar>
<table border="0" cellpadding="0" cellspacing="1" width="100%">
<tr>
<td colspan="6" align="center" nowrap class="head">工 作 组 信 息</td>
</tr>
<tr>
<td align="center" height="20" width="12%">组 编 号</td>
<td width="38%">
<tops:formEditor property="wgId" readonlymethods="modifyresult" required="true" attributename="组编号"/>
</td>
<td align="center" width="12%">组 名 称</td>
<td>
<tops:formEditor property="wgName" required="true" attributename="组名称"/>
</td>
</tr>
<tr>
<td align="center" height="80">备注
</td>
<td colspan="3">
<tops:formEditor property="wgRemark" type="textarea" other="style='width:100%;height:100%'"/>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="1" border="0" width="100%">
<tr>
<td align="center" nowrap class="head">工 作 组 权 限</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td width="80%" align="center">
<table cellpadding="0" cellspacing="0" border="0" width="80%">
<tr align="left">
<td height="20">
<logic:notEmpty name="functionList">
<%boolean flag = false; %>
<logic:iterate id="system" name="functionList" indexId="index">
<logic:equal value="0" name="system" property="funcLevel">
<br/>
<span><font color="#00000" size="+1" style="font:bold"> <logic:equal value="true" name="system" property="virtualEnabled"> <input type="checkbox" value="<bean:write name="system" property="funcCode"/>" style="border:0" name="<bean:write name="system" property="funcCode"/>" onclick="systemChanged('<bean:write name="system" property="funcCode"/>')" checked/> </logic:equal> <logic:notEqual value="true" name="system" property="virtualEnabled"> <input type="checkbox" value="<bean:write name="system" property="funcCode"/>" style="border:0" name="<bean:write name="system" property="funcCode"/>" onclick="systemChanged('<bean:write name="system" property="funcCode"/>')"/> </logic:notEqual> <bean:write name="system" property="funcCode"/>(<bean:write name="system" property="funcName"/>)</font></span>
</logic:equal>
<logic:notEqual value="0" name="system" property="funcLevel">
<logic:equal value="否" name="system" property="isSubFunction">
<br/>
<%flag = !flag; %>
<span> <%if(flag==true){ %> <font color="#CC6666" style="font:bold"> <%}else{ %> <font color="#CC9966" style="font:bold"> <%} %> ☆ <logic:equal value="true" name="system" property="virtualEnabled"> <input type="checkbox" value="<bean:write name="system" property="funcCode"/>" style="border:0" name="<bean:write name="system" property="funcCode"/>" onclick="systemChanged('<bean:write name="system" property="funcCode"/>')" checked/> </logic:equal> <logic:notEqual value="true" name="system" property="virtualEnabled"> <input type="checkbox" value="<bean:write name="system" property="funcCode"/>" style="border:0" name="<bean:write name="system" property="funcCode"/>" onclick="systemChanged('<bean:write name="system" property="funcCode"/>')"/> </logic:notEqual> <bean:write name="system" property="funcCode"/>(<bean:write name="system" property="funcName"/>)</font></span>
</logic:equal>
<logic:equal value="是" name="system" property="isSubFunction">
<div>
<span> <font color="#666699">★ <logic:equal value="true" name="system" property="virtualEnabled"> <input type="checkbox" value="<bean:write name="system" property="funcCode"/>" style="border:0" name="<bean:write name="system" property="funcCode"/>" onclick="systemChanged('<bean:write name="system" property="funcCode"/>')" checked/> </logic:equal> <logic:notEqual value="true" name="system" property="virtualEnabled"> <input type="checkbox" value="<bean:write name="system" property="funcCode"/>" style="border:0" name="<bean:write name="system" property="funcCode"/>" onclick="systemChanged('<bean:write name="system" property="funcCode"/>')"/> </logic:notEqual> <bean:write name="system" property="funcCode"/>(<bean:write name="system" property="funcName"/>)</font> </span>
</div>
</logic:equal>
</logic:notEqual>
</logic:iterate>
</logic:notEmpty>
</td>
</tr>
</table>
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -