<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="css/component.css" type="text/css" />
<script type="text/javascript" src="../../templates/js/modernizr.custom.js"></script>
<script type="text/javascript" src="../../templates/js/jquery.dlmenu.js"></script>
<div id="sidePage">
    <aside class="sidebar">
        <nav class="sidebar-nav">
            <ul id="menu2">       
                <php:repeater id="listL">
                    <template>
                        <li>
                            <a href="#"><span class="icon<?# MenuID ?>"></span><?# MenuName ?></a>
                            <ul><?# childList ?></ul>
                        </li>
                    </template>
                </php:repeater>
            </ul>
        </nav>
    </aside>
</div>
<div id="dl-menu" class="dl-menuwrapper">
    <button id="dl-menu-button">Open Menu</button>
    <ul class="dl-menu">
        <php:repeater id="listLS">
            <template>
                <li>
                    <a href="#"><span class="icon<?# MenuID ?>"></span><?# MenuName ?></a>
                    <ul class="dl-submenu">
                    	<li class="dl-back"><a href="#">回上一層</a></li>
                    	<?# childList ?>
                    </ul>
                </li>
            </template>
        </php:repeater>
    </ul>
</div>

<script src="../../templates/js/metismenu.js"></script>
<script>
    $(function () {
        $('#menu2').metisMenu({
            toggle: false
        });

		$( '#dl-menu' ).dlmenu();
	});	
</script>
