cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>qxInRole.html</title>
    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
    <meta http-equiv="description" content="this is my page"/>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    [@static_file /]
<style type="text/css">
body{  font-size:12px; }
.content { margin:10px auto; display:block;}
    .firstmenu { width:98%; border:0px; border-bottom-style:dotted; border-bottom-width:thin; }
    .secondmenu {width:98%; margin:10px 20px; border:0px; border-bottom-style:dotted; border-bottom-width:thin;}
    .thirdmenu { width:98%; margin:10px 40px; border:0px; border-bottom-style:dotted; border-bottom-width:thin;  }
    .fourmenu { width:98%; margin:10px 60px; border:0px; border-bottom-style:dotted; border-bottom-width:thin;  }
</style>
<script type="text/javascript">
 
function _onFormSubmit(){
    if(!confirm('确定要重新分配权限吗?')) return false;
    document.getElementById("myform").target = window.top.openDialog(1,30,30,'操作提示:');
    document.getElementById("btnOK").click();
}
function closeWin(){
       window.top.closeDialog(0);
}
 
    $(document).ready(function(){
        
        //点击一级功能菜单
        $("input[name='selectAll']").bind({
            click : function(){
                if(this.checked){
                    $($(this).parents("div[id='menu']").find(":checkbox")).each(function(){
                        this.checked = true;
                    });
                } else {
                    $($(this).parents("div[id='menu']").find(":checkbox")).each(function(){
                        this.checked = false;
                    });
                }
            }
        });    
    });    
</script>
</head>
 
<body>
<form action="user_in_jsListSubmit.html" method="post" id="myform">
<input type="hidden" value="${RequestParameters.id}" name="roleid" />
[#list data.BMLIST as yjgn]
<div class="content">
    <div class="firstmenu" id="menu"><span style="margin:0px 20px 0px 0px;"><input type="checkbox" name="selectAll" />${yjgn.JGMC}</span> 
        [#list yjgn.USERLIST as d]
            <input type="checkbox" name="userid" value="${d.ID}" [#if d.CHECKED??]checked="checked"[/#if] />${d.ZSXM}
        [/#list]
    </div>
    [#list yjgn.BMLIST as ejgn]
    <div class="secondmenu" id="menu"><span style="margin:0px 20px 0px 0px;"><input type="checkbox" name="selectAll"  />${ejgn.JGMC}</span>
        [#list ejgn.USERLIST as d]
            <input type="checkbox" name="userid" value="${d.ID}" [#if d.CHECKED??]checked="checked"[/#if] />${d.ZSXM}
        [/#list]
    </div>
        [#list ejgn.BMLIST as sjgn]
        <div class="thirdmenu" id="menu"><span style="margin:0px 20px 0px 0px;"><input type="checkbox" name="selectAll"  />${sjgn.JGMC}</span>
            [#list sjgn.USERLIST as d]
                <input type="checkbox" name="userid" value="${d.ID}" [#if d.CHECKED??]checked="checked"[/#if] />${d.ZSXM}
            [/#list]
        </div>
              [#list sjgn.BMLIST as sijgn]
              <div class="fourmenu" id="menu"><span style="margin:0px 20px 0px 0px;"><input type="checkbox" name="selectAll"  />${sijgn.JGMC}</span>
                  [#list sijgn.USERLIST as d]
                    <input type="checkbox" name="userid" value="${d.ID}" [#if d.CHECKED??]checked="checked"[/#if] />${d.ZSXM}
                [/#list]  
              </div>
            [/#list]
        [/#list]
      [/#list]
</div>
[/#list]
 <input type="submit" id="btnOK" value="提交" style="display:none;"  />
</form>
</body>
</html>