<aside>
    <div id="sidebar"  class="nav-collapse ">
    <!-- sidebar menu start-->
        <ul class="sidebar-menu" id="nav-accordion">
            <p class="centered">
                <img src="/static/img/logo@3x.png" width="100">
            </p>
            <h5 class="centered">[admin_name]</h5>
            
            <li class="mt">
                <a <?php if(CONTROLLER_NAME == 'Index'){echo 'class="active"';}?> href="/admin/Index/index/tab/index">
                    <i class="fa fa-home"></i>
                    <span>平台概览</span>
                </a>
            </li>
            <li class="sub-menu">
                <a <?php if(in_array(CONTROLLER_NAME, array('User'))){echo 'class="active"';}?> href="javascript:void(0);" >
                    <i class="fa fa-user"></i>
                    <span>用户管理</span>
                </a>
                <ul class="sub">
                    <li <?php if(CONTROLLER_NAME == 'User'&&ACTION_NAME=='index'){echo 'class="active"';}?>>
                        <a href="<?php echo url("@admin/User/index")?>">用户列表</a>
                    </li>
                </ul>
            </li>
            <li class="sub-menu">
                <a <?php if(in_array(CONTROLLER_NAME, array('Project'))){echo 'class="active"';}?> href="javascript:void(0);" >
                    <i class="fa fa-calendar"></i>
                    <span>活动管理</span>
                </a>
                <ul class="sub">
                    <li <?php if(CONTROLLER_NAME == 'Project'&&(ACTION_NAME=='index'||ACTION_NAME=='create'||ACTION_NAME=='updateproject')){echo 'class="active"';}?>>
                        <a href="<?php echo url("@admin/Project/index")?>">活动/商家列表</a>
                    </li>
                    <li <?php if(CONTROLLER_NAME == 'Project'&&(ACTION_NAME=='appoint')){echo 'class="active"';}?>>
                        <a href="<?php echo url("@admin/Project/appoint")?>">预约列表</a>
                    </li>
                    <li <?php if(CONTROLLER_NAME == 'Project'&&(ACTION_NAME=='catalogs'||ACTION_NAME=='editcatalogs'||ACTION_NAME=='addcatalogs')){echo 'class="active"';}?>>
                        <a href="<?php echo url("@admin/Project/catalogs")?>">分类管理</a>
                    </li>
                    <li <?php if(CONTROLLER_NAME == 'Project'&&(ACTION_NAME=='tags'||ACTION_NAME=='edittag')){echo 'class="active"';}?>>
                        <a href="<?php echo url("@admin/Project/tags")?>">标签管理</a>
                    </li>
                    <li <?php if(CONTROLLER_NAME == 'Project'&&(ACTION_NAME=='citys'||ACTION_NAME=='editcity')){echo 'class="active"';}?>>
                    <a href="<?php echo url("@admin/Project/citys")?>">城市管理</a>
                    </li>
                </ul>
            </li>
            <li class="sub-menu">
                <a <?php if(in_array(CONTROLLER_NAME, array('Order'))){echo 'class="active"';}?> href="javascript:void(0);" >
                    <i class="fa fa-reorder"></i>
                    <span>订单管理</span>
                </a>
                <ul class="sub">
                    <li <?php if(CONTROLLER_NAME == 'Order'&&ACTION_NAME=='index'){echo 'class="active"';}?>>
                        <a href="<?php echo url("@admin/Order/index")?>">订单列表</a>
                    </li>
                    <li <?php if(CONTROLLER_NAME == 'Order'&&ACTION_NAME=='refund'){echo 'class="active"';}?>>
                        <a href="<?php echo url("@admin/Order/refund")?>">退款审核</a>
                    </li>
                    <li <?php if(CONTROLLER_NAME == 'Order'&&ACTION_NAME=='comment'){echo 'class="active"';}?>>
                        <a href="<?php echo url("@admin/Order/comment")?>">评论审核</a>
                    </li>
                </ul>
            </li>

            <li class="sub-menu">
                <a <?php if(in_array(CONTROLLER_NAME, array('Banner','Guide', 'Business'))){echo 'class="active"';}?> href="javascript:void(0);" >
                    <i class="fa fa-snowflake-o"></i>
                    <span>内容管理</span>
                </a>
                <ul class="sub">
                    <li <?php if(CONTROLLER_NAME == 'Banner'&&(ACTION_NAME=='index'||ACTION_NAME=='create'||ACTION_NAME=='update')){echo 'class="active"';}?>>
                        <a href="<?php echo url("@admin/Banner/index")?>">广告管理</a>
                    </li>
                    <li <?php if(CONTROLLER_NAME == 'Guide'&&(ACTION_NAME=='index'||ACTION_NAME=='create'||ACTION_NAME=='update')){echo 'class="active"';}?>>
                        <a href="<?php echo url("@admin/Guide/index")?>">美行攻略</a>
                    </li>
                    <li <?php if(CONTROLLER_NAME == 'Business'&&ACTION_NAME=='index'){echo 'class="active"';}?>>
                        <a href="<?php echo url("@admin/Business/index")?>">商家入住</a>
                    </li>
                </ul>
            </li>

            <li class="sub-menu">
                <a <?php if(in_array(CONTROLLER_NAME, array('Log','Post'))){echo 'class="active"';}?> href="javascript:void(0);" >
                    <i class="fa fa-cog"></i>
                    <span>其他管理</span>
                </a>
                <ul class="sub">
                    <li <?php if(CONTROLLER_NAME == 'Log'&&ACTION_NAME=='index'){echo 'class="active"';}?>>
                        <a href="<?php echo url("@admin/Log/index", ['level'=>'info'])?>">日志信息</a>
                    </li>
                </ul>
            </li>

        </ul>
    <!-- sidebar menu end-->
    </div>
</aside>
<!--sidebar end-->
