{template "header.html"} {$form}

Id | {dr_lang('菜单名称')} |  | {dr_lang('增')} | {dr_lang('改')} | {dr_lang('删')}
--- | --- | --- | --- | --- | ---
{php $uris=[];} {loop $menu_data $t}
{$t.id} | {$t.spacer} {$t.name} {if $t.uri} - {$t.uri}{/if} |  | {if $t.uri} {php $uris[]=$t.uri;} {/if} | {if $t.uri} {/if} | {if $t.uri} {/if}
{/loop}

{php $ikey=0;} {loop $module_auth $dir $t}

Id | {$t.name} |  | {dr_lang('增')} | {dr_lang('改')} | {dr_lang('删')}
--- | --- | --- | --- | --- | ---
{loop $t.auth $uri $name} {if !dr_in_array($uri.'index', $uris)} {php $ikey++;}
{$ikey} | {$name} - {$uri}index |  |  |  |
{/if} {/loop}

{/loop}
{template "footer.html"}