{template "header.html"} {php echo \Phpcmf\Service::L('Field')->get('select')->get_select_search_code();}
{dr_form_hidden()}
{if $ci->_is_admin_auth('del')}
{/if} {if $ci->_is_admin_auth('edit') && dr_count($ci->site_info) > 1}
{/if}

{if $ci->_is_admin_auth('del')}
{/if}
{if dr_count($ci->site_info) > 1}
{else}
{/if}
| {dr_lang('排序')} | {dr_lang('可用')} | {dr_lang('名称')} | {if $ci->_is_admin_auth('add')} {dr_lang('添加')} {/if} | {dr_lang('项目权限')} | {if $ci->_is_admin_auth('add')} {dr_lang('添加')} {/if}
--- | --- | --- | --- | --- | --- | ---
{php $top=[]; $l2_has_child=[];} {loop $data $t} {php $t.pid == 0 && $top[] = $t.id;} {php !dr_in_array($t.pid, (array)$top) && $t.pid && $l2_has_child[$t.pid]=1;} {/loop} {loop $data $t} {php $t.site = dr_string2array($t.site);} {php $menu_level = $t.pid == 0 ? 1 : (dr_in_array($t.pid, (array)$top) ? 2 : 3);} {php $menu_top_id = $menu_level == 1 ? $t.id : ($menu_level == 2 ? $t.pid : $t.tid);} {php $has_l3_child = $menu_level == 2 && !empty($l2_has_child[$t.id]);}
{if $ci->_is_admin_auth('del')}
{/if}
{if dr_count($ci->site_info) > 1}
{/if}
|  |  | {if $menu_level==1} {elseif $has_l3_child} {/if} {$t.spacer} {dr_lang($t.name)} {if $t.uri} - {$t.uri}{/if} | {if $ci->_is_admin_auth('add') && ($t.pid == 0 || dr_in_array($t.pid, (array)$top))} {dr_lang('添加')} {/if} | {dr_lang('主站')} {loop $t.site $b $sid} {if $sid > 1} {dr_strcut($ci->site_info[$sid]['SITE_NAME'], 4)} {/if} {/loop}
{/loop}

{template "footer.html"}