<php>$submenus=$menus;</php> <php> if (!function_exists('getsubmenu')) { function getsubmenu($submenus){ </php> <php>foreach($submenus as $menu){</php>
- <php> $menu_name=lang($menu['lang']); $menu_name=$menu['lang']==$menu_name?$menu['name']:$menu_name; </php> <php>if(empty($menu['items'])){</php> {$menu_name} <php>}else{</php> {$menu_name} 返回
  <php>getsubmenu1($menu['items'])</php>
  <php>}</php>
<php>}</php> <php> } } </php> <php> if (!function_exists('getsubmenu1')) { function getsubmenu1($submenus){ </php> <php>foreach($submenus as $menu){</php>
- <php> $menu_name=lang($menu['lang']); $menu_name=$menu['lang']==$menu_name?$menu['name']:$menu_name; </php> <php>if(empty($menu['items'])){</php> {$menu_name} <php>}else{</php> {$menu_name}
  <php>getsubmenu2($menu['items'])</php>
  <php>}</php>
<php>}</php> <php>} } </php> <php> if (!function_exists('getsubmenu2')) { function getsubmenu2($submenus){</php> <php>foreach($submenus as $menu){</php>
- <php> $menu_name=lang($menu['lang']); $menu_name=$menu['lang']==$menu_name?$menu['name']:$menu_name; </php> {$menu_name}
<php>}</php> <php>} } </php>
{:lang('LOADING')}