<table width="100%" cellspacing="0" border="0" class="adminlist">
	<thead>
    	<tr>
        	<th><input id="toggle" type="checkbox" value="" /></th>
        	<th>模块名称</th>
        	<th>模块标识</th>
        	<th>子方法</th>
        	<th>模块描述</th>
        	<th>操作</th>
        </tr>
    </thead>
    <tbody>
    	<?php foreach($aclTree as $tmp){if(!@$a){$a=0;}?>
        <tr class="row0">
        	<td><input name="select_id[]" type="checkbox" class="checkbox" id="cb<?=$a++?>" value="<?=$tmp['acl_id']?>"/></td>
            <td>&nbsp;<?=$tmp['acl_name']?></td>
        	<td>&nbsp;<?=$tmp['acl_value']?></td>
        	<td>&nbsp;<?=$tmp['acl_children']?></td>
        	<td>&nbsp;<?=$tmp['acl_description']?></td>
        	<td>&nbsp;<?=html::anchor(BASEURI.'acl/edit/'.$tmp['acl_id'],'编辑')?> <?=html::anchor(BASEURI.'acl/delete/'.$tmp['acl_id'],'删除',array('onclick'=>'return confirm(\'请确认是否删除\')'))?> </td>
        </tr>
        <?php }?>
    </tbody>
	<tr>
       	<td colspan="6"><input type="button" class="submit" name="subsmit" value="删除" onclick="select_control('<?=BASEURI?>acl/delete','请确是否删除')" /></td>
    </tr>
</table>
<table width="100%" cellspacing="0" border="0" class="adminlist">
	<thead>
    	<tr>
            <th>父资源</th>
        	<th>资源名称</th>
        	<th>资源标识（control+action）</th>
            <th>子方法（用"|"分隔方法）</th>
        	<th>资源描述</th>
        	<th>操作</th>
        </tr>
    </thead>
    <tbody>
    	
    	<tr>
            <td>
            	<select name="acl[acl_parent_id]">
                	<option value="0">模块</option>
                    <?php foreach($aclTree as $tmp){?>
                    <option value="<?=$tmp['acl_id']?>"><?=$tmp['acl_name']?>
                    <?php }?>
                </select>
            </td>
        	<td><input type="text" name="acl[acl_name]" class="text" style="width:100px;" value="" dataType='Require' msg='资源名称不能为空' /></td>
        	<td><input type="text" name="acl[acl_value]" class="text" style="width:100px;"  value=""  dataType='Custom' regexp='[a-z_]+' msg='资源标识不能为空,只能为英文'/></td>
            <td><input type="text" name="acl[acl_children]" class="text" value=""  />
        	<td><input type="text" name="acl[acl_description]" class="text" value="" /></td>
        	<td><input type="button" class="submit" name="ng" onclick="submitform('<?=BASEURI?>acl/add',true)" value="提交" /></td>
            
        </tr>
    </tbody>
    <tfoot>
    </tfoot>
</table>