function getsubmenu($submenus)
{
    foreach ($submenus as $menu) {
        ?>
					<li>
						<?php 
        if (empty($menu->items)) {
            ?>
							<a href="javascript:openapp('<?php 
            echo $menu->url;
            ?>
','<?php 
            echo $menu->id;
            ?>
','<?php 
            echo $menu->name;
            ?>
');">
								<i class="fa fa-<?php 
            echo isset($menu->icon) && $menu->icon !== "" ? $menu->icon : 'desktop';
            ?>
"></i>
								<span class="menu-text"><?php 
            echo $menu->name;
            ?>
</span>
							</a>
						<?php 
        } else {
            ?>
							<a href="#" class="dropdown-toggle">
								<i class="fa fa-<?php 
            echo isset($menu->icon) && $menu->icon !== "" ? $menu->icon : 'desktop';
            ?>
 normal"></i>
								<span class="menu-text normal"><?php 
            echo $menu->name;
            ?>
</span>
								<b class="arrow fa fa-angle-right normal"></b>
								<i class="fa fa-reply back"></i>
								<span class="menu-text back">返回</span>
								
							</a>
							
							<ul  class="submenu">
									<?php 
            getsubmenu1((array) $menu->items);
            ?>
							</ul>	
						<?php 
        }
        ?>
						
					</li>
					
				<?php 
    }
}
function getsubmenu($submenus)
{
    foreach ($submenus as $menu) {
        ?>
					<li>
						<?php 
        $menu_name = L($menu['lang']);
        $menu_name = $menu['lang'] == $menu_name ? $menu['name'] : $menu_name;
        ?>
						<?php 
        if (empty($menu['items'])) {
            ?>
							<a href="javascript:openapp('<?php 
            echo $menu["url"];
            ?>
','<?php 
            echo $menu["id"];
            ?>
','<?php 
            echo $menu_name;
            ?>
',true);">
								<i class="fa fa-<?php 
            echo isset($menu["icon"]) && $menu["icon"] !== "" ? $menu["icon"] : 'desktop';
            ?>
"></i>
								<span class="menu-text">
									<?php 
            echo $menu_name;
            ?>
								</span>
							</a>
						<?php 
        } else {
            ?>
							<a href="#" class="dropdown-toggle">
								<i class="fa fa-<?php 
            echo isset($menu["icon"]) && $menu["icon"] !== "" ? $menu["icon"] : 'desktop';
            ?>
 normal"></i>
								<span class="menu-text normal">
									<?php 
            echo $menu_name;
            ?>
								</span>
								<b class="arrow fa fa-angle-right normal"></b>
								<i class="fa fa-reply back"></i>
								<span class="menu-text back">返回</span>
								
							</a>
							
							<ul  class="submenu">
									<?php 
            getsubmenu1($menu['items']);
            ?>
							</ul>	
						<?php 
        }
        ?>
						
					</li>
					
				<?php 
    }
}