You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jeecg/WebRoot/webpage/system/role/operationListForFunction.jsp

26 lines
1.2 KiB

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<c:forEach items="${operationList}" var="operation" >
<c:if test="${fn:contains(operationcodes, operation.operationcode)}">
<span class="icon ${operation.TSIcon.iconClas}">&nbsp;</span><input style="width:20px;" type="checkbox" name="operationCheckbox" value="${operation.operationcode}" checked="checked"/>${operation.operationname}
</c:if>
<c:if test="${!fn:contains(operationcodes, operation.operationcode)}">
<span class="icon group_add">&nbsp;</span><input style="width:20px;" type="checkbox" name="operationCheckbox" value="${operation.operationcode}" />${operation.operationname}
</c:if>
<br>
</c:forEach>
<script type="text/javascript">
function submitOperation() {
var functionId = "${functionId}";
var roleId = $("#rid").val();
var operationcodes = "";
$("input[name='operationCheckbox']").each(function(i){
if(this.checked){
operationcodes+=this.value+",";
}
});
operationcodes=escape(operationcodes);
doSubmit("roleController.do?updateOperation&functionId=" + functionId + "&roleId=" + roleId+"&operationcodes="+operationcodes);
}
</script>