<?php $data['manage/auth.info']=Dever::load('manage/auth.info') ?>
<?php $data['manage/menu.link']=Dever::load('manage/menu.link') ?>
<?php $data['manage/menu.left']=Dever::load('manage/menu.left') ?>



            <div class="left side-menu" id="menu">
                <div class="sidebar-inner slimscrollleft">
                    <div class="user-details">
                        <div class="pull-left">
                            <img src="<?php echo Dever::config("host")->img ?>users/avatar-1.jpg" alt="" class="thumb-md img-circle">
                        </div>
                        <div class="user-info">
                            <div class="dropdown">
                                <a href="#" id="manage-name" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false" style="<?php if(!(Dever::load('manage/auth.info#username'))): ?>display:none;<?php endif; ?>"><?php echo $data['manage/auth.info']['username'] ?></a>
                                <ul class="dropdown-menu" style="display:none;">
                                    <li><a href="javascript:void(0)"><i class="md md-face-unlock"></i> 个人资料<div class="ripple-wrapper"></div></a></li>
                                    <li><a href="javascript:void(0)"><i class="md md-settings"></i> 设置</a></li>
                                    <li><a href="javascript:void(0)"><i class="md md-lock"></i> 锁屏</a></li>
                                    <li><a href="javascript:void(0)"><i class="md md-settings-power"></i> 退出</a></li>
                                </ul>
                            </div>
                            
                            <p class="text-muted m-0" id="manage-group" style="<?php if(!(Dever::load('manage/auth.info#rolename'))): ?>display:none;<?php endif; ?>"><?php echo $data['manage/auth.info']['rolename'] ?></p>
                        </div>
                    </div>
                    
                    <div id="sidebar-menu">
                        <ul>
                            <li>
                                <a id="index-url" href="<?php echo $data['manage/menu.link']['index'] ?>" class="waves-effect waves-light active"><i class="glyphicon glyphicon-home"></i><span>控制台 </span></a>
                            </li>

                            <?php if(isset($data['manage/menu.left']) && is_array($data['manage/menu.left'])): ?><?php $t=count($data['manage/menu.left'])-1 ?><?php $i=0 ?><?php foreach($data['manage/menu.left'] as $k => $v): ?><li class="has_sub project-list">
                                <a href="javascript:;" class="waves-effect waves-light<?php if(Dever::input("menu") != $v['key'] && $v['type'] != 1):?> collapsed<?php endif; ?> <?php if(Dever::input("menu") == $v['key']):?> active<?php endif; ?>" data-target=".<?php  echo $v['key'] ?>-menu"><i class="<?php  echo $v['icon'] ? $v['icon'] : "glyphicon glyphicon-folder-close" ?>"></i><span class="project-name"><?php  echo $v['name'] ?></span><span class="pull-right"><i class="md md-add"></i></span></a>
                                <ul class="list-unstyled <?php  echo $v['key'] ?>-menu <?php if(Dever::input("menu") == $v['key'] || $v['type'] == 1):?> ins<?php endif; ?>" id="<?php  echo $v['key'] ?>-menu">
                                    <?php if(isset($v['child']) && $v['child'] && is_array($v['child'])):foreach($v['child'] as $k1 => $v1):if($v1): ?><li class="<?php if(Dever::input("menu_id") == $v1['id']):?>active<?php endif; ?>"><a href="<?php  echo $v1['link'] ?>" class="<?php if(Dever::input("menu_id") == $v1['id']):?>subdrop<?php endif; ?>"><span class="glyphicon glyphicon-chevron-right"></span>&nbsp;&nbsp;<?php  echo $v1['name'] ?></a></li><?php endif;endforeach;endif; ?>
                                    
                                    
                                    
                                </ul>
                            </li><?php $i=$i+1 ?><?php endforeach; ?><?php else: ?><?php echo $data['manage/menu.left'] ?><?php endif; ?>
                        </ul>
                        <div class="clearfix"></div>
                    </div>
                    <div class="clearfix"></div>
                </div>
            </div>
             