<fieldset>
	<legend>请选择需要授权的用户组</legend>
    <ul class="aclList">
    <?php foreach($userGroup as $tmp){?>
    	<li><?=form::checkbox('userGroup[]',$tmp->group_id,$group_id==$tmp->group_id?true:false,"readonly='readonly'").$tmp->group_name?></li>
    <?php }?>
    </ul>
</fieldset>

<?php foreach($acl as $tmp){?>
<fieldset>
	<legend><?=form::checkbox('acl_id[]',$tmp->acl_id,in_array($tmp->acl_id,$inAclId)?true:false,"id=acl_".$tmp->acl_id." class='acl'").$tmp->acl_name?></legend>
    <?php foreach($aclII[$tmp->acl_id] as $tmpII){?>
    <fieldset>
    	<legend><?=form::checkbox('acl_id[]',$tmpII->acl_id,in_array($tmpII->acl_id,$inAclId)?true:false,"id=acl_".$tmp->acl_id."_".$tmpII->acl_id." class='acl'").$tmpII->acl_name?></legend>
        <ul class="aclList">
        	<?php foreach($aclII[$tmpII->acl_id] as $tmpIII){?>
            <li><?=form::checkbox('acl_id[]', $tmpIII->acl_id,in_array($tmpIII->acl_id,$inAclId)?true:false,"id=acl_".$tmp->acl_id."_".$tmpII->acl_id."_".$tmpIII->acl_id." class='acl'").$tmpIII->acl_name?></li>
            <?php }?>
        </ul>
    </fieldset>
    <?php }?>
</fieldset>
<?php }?>
<div style="padding:5px;">
<input type="submit" value="授权" name="submit" class="submit" />
</div>