Edit D:\rfid\libsystem\page\parameter\js\sys_authoritygroup.js
var all_authorities=[];var sys_selectedIdx={};var funvalues_bak;var MAX_SYS_COUNT=10;$(function(){var b={};b.key="funauthority1";var a=base_path+"par/common/getInitData.do";$.post(a,b,function(d){if(d.status=="0"){for(var c=0;c<d.rows.length;c++){if(!all_authorities[d.rows[c].code[0]]){all_authorities[d.rows[c].code[0]]=new Array()}all_authorities[d.rows[c].code[0]].push(d.rows[c])}}},"json");$("#sysauthority").datagrid({onCheckAll:onCheckAll,onUncheckAll:onUncheckAll,onCheck:onCheck,onUncheck:onUncheck})});function cleanSpeFields(a){funvalues_bak=a}function setSpeFields(a){funvalues_bak=a}function refreshAuthority(){var b=[];for(var a=0;a<MAX_SYS_COUNT;a++){if(!sys_selectedIdx[a]){continue}all_authorities[a+1].forEach(function(c){b.push(c)})}$("#funauthority").datagrid("loadData",b);setValue("funauthority",funvalues_bak)}function onCheckAll(){for(var a=0;a<MAX_SYS_COUNT;a++){if(sys_selectedIdx[a]==false){sys_selectedIdx[a]=true}}refreshAuthority()}function onUncheckAll(c,b){for(var a=0;a<MAX_SYS_COUNT;a++){if(sys_selectedIdx[a]){sys_selectedIdx[a]=false}}refreshAuthority()}function onCheck(b,a){sys_selectedIdx[b]=true;refreshAuthority()}function onUncheck(b,a){sys_selectedIdx[b]=false;refreshAuthority()};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de