{if !empty($perms['parent']) || $userInfo['role'] == 'operator'} {if $action=='userpost'}
查看权限
隐藏 查看
{/if}
可用权限
{php}$i=0;{/php} {foreach $perms['parent'] as $key => $value}
展开 {$value['text']}
{if count($perms['parent'][$key]) >1} {foreach $perms['parent'][$key] as $ke => $val} {if $ke != 'text'} {:str_replace("-log", "", $val)} {else} {:str_replace("-log", "", $val)} {/if} {/foreach}
{/if} {if !empty($perms['son'][$key])} {foreach $perms['son'][$key] as $ke => $val}
{/foreach} {/if}
{php}$i++;{/php} {/foreach}
{/if}