<?php if (!defined('ROOT')) exit; ?>
<div class="left-sidebar">
	<div class="tpl-sidebar-user-panel">
		<div class="tpl-user-panel-slide-toggleable tc">
			<div class="tpl-user-panel-profile-picture mc">
				<img id="btn_face_mod" src='<?php echo C('WEB_SITE_STATIC_DOAMIN');?>/static/member/assets/img/face02.png' alt="">
				
			</div>
			<span class="user-panel-logged-in-text btn_nickname_mod"><span class="nickname"><?php echo session('user_auth.nickname');?></span> <span class="nickname_mod" style="display: none;"><input type="text" style="width: 80%;text-align: center;" value="<?php echo session('user_auth.nickname');?>" /></span> <span class="am-icon-pencil"></span></span>
		</div>
	</div>
   
	<!-- 菜单 --> 
	<ul class="sidebar-nav">
		<li class="sidebar-nav-link">
			<a href="/" class="<?php if(CONTROLLER_NAME=='Index' && ACTION_NAME=='index'){echo 'active';}?>">
				<i class="am-icon-home sidebar-nav-link-logo"></i> 首页
			</a>
		</li>
		<li class="sidebar-nav-link">
			<a href="javascript:;" class="sidebar-nav-sub-title">
				<i class="am-icon-file-o sidebar-nav-link-logo"></i> 网盘管理 <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico <?php if(in_array($_REQUEST['model_name'], array('folder','download_log')) || in_array(CONTROLLER_NAME, array('Recycle')) || in_array($_REQUEST['model_id'], array(87)) || in_array($_REQUEST['model_name'], array('wangpan_config')) ){echo 'sidebar-nav-sub-ico-rotate';}?>"></span>
			</a>
			<ul class="sidebar-nav sidebar-nav-sub" style="display: <?php if(in_array($_REQUEST['model_name'], array('folder','download_log')) || in_array(CONTROLLER_NAME, array('Recycle')) || in_array($_REQUEST['model_id'], array(87)) || in_array($_REQUEST['model_name'], array('wangpan_config')) ){echo 'block';}else{echo 'none';}?>;">
				<li class="sidebar-nav-link">
					<a href="/folder" class="<?php if(CONTROLLER_NAME=='V' && ACTION_NAME=='lists' && I('model_name')=='folder'){echo 'sub-active';}?>">
						<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 全部文件
					</a>
				</li>
				<li class="sidebar-nav-link"> 
					<a href="/x/mod/model_id/87/pk1/<?php echo session('user_auth.id');?>" class="<?php if(in_array($_REQUEST['model_id'], array(87)) && I('tpl')=='' ){echo 'sub-active';}?>" >
						<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 网盘设置
					</a>
				</li>
				<li class="sidebar-nav-link"> 
					<a href="/x/mod/model_id/87/tpl/Userconfig_wpzs/pk1/<?php echo session('user_auth.id');?>" class="<?php if(in_array($_REQUEST['model_id'], array(87)) && I('tpl')=='Userconfig_wpzs'){echo 'sub-active';}?>" >
						<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 网盘装饰
					</a>
				</li>
				<li class="sidebar-nav-link">
					<a href="/wangpan_config" class="<?php if(CONTROLLER_NAME=='Wangpan_log' || in_array($_REQUEST['model_name'], array('wangpan_config'))){echo 'sub-active';}?>">
						<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 升级续费
					</a>
				</li>
				    <li class="sidebar-nav-link">
					<a href="/recycle" class="<?php if(CONTROLLER_NAME=='Recycle' && ACTION_NAME=='index'){echo 'sub-active';}?>">
						<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 回 收 站
					</a>
				</li> 
			</ul>
		</li> 
		<li class="sidebar-nav-link">
			<a href="javascript:;" class="sidebar-nav-sub-title">
				<i class="am-icon-money sidebar-nav-link-logo"></i> 
				资金管理 
				<span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico <?php if(in_array($_REQUEST['model_id'], array(33,35,58))){echo 'sidebar-nav-sub-ico-rotate';}?>"></span>
			</a> 
			<ul class="sidebar-nav sidebar-nav-sub" style="display: <?php if(in_array($_REQUEST['model_id'], array(35,33,58))){echo 'block';}else{echo 'none';}?>;"> 
				<li class="sidebar-nav-link">
					<a href="/v/lists/model_id/35/uid/<?php echo session('user_auth.id');?>" class="<?php if(CONTROLLER_NAME=='V' && ACTION_NAME=='lists' && I('model_id')=='35'){echo 'sub-active';}?>">
						<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 充值明细
					</a>
				</li>
				<li class="sidebar-nav-link">
					<a href="/v/lists/model_id/33/uid/<?php echo session('user_auth.id');?>" class="<?php if($_REQUEST['model_id']==33 && ACTION_NAME=='lists'){echo 'sub-active';}?>">
						<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 提现明细
					</a>
				</li>
				
				<li class="sidebar-nav-link">
					<a href="/v/lists/model_id/58/status/1/row/20/ctime_min/<?php echo strtotime(date('Y-m-d'));?>/first/1/uid/<?php echo session('user_auth.id');?>" class="<?php if($_REQUEST['model_id']==58 && ACTION_NAME=='lists'){echo 'sub-active';}?>">
						<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 销售订单
					</a> 
				</li>
			</ul>
		</li> 
		<li class="sidebar-nav-link">
			<a  href="javascript:;" class="sidebar-nav-sub-title">
				<i class="am-icon-user sidebar-nav-link-logo"></i> 个人资料
				<span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico <?php if(in_array(CONTROLLER_NAME, array('Member'))){echo 'sidebar-nav-sub-ico-rotate';}?>"></span>
			</a>
			<ul class="sidebar-nav sidebar-nav-sub" style="display: <?php if(in_array(CONTROLLER_NAME, array('Member')) && in_array(ACTION_NAME, array('alipay','email','mobile','safeinfo','mobileold','emailold','safe2')) ){echo 'block';}else{echo 'none';}?>;">
				<li class="sidebar-nav-link"> 
					<a href="/member/safeinfo" class="<?php if(in_array(ACTION_NAME, array('safeinfo'))){echo 'sub-active';}?>" >
						<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 安全信息
					</a>
				</li>
				<li class="sidebar-nav-link"> 
					<a href="/member/alipay" class="<?php if(in_array(ACTION_NAME, array('alipay'))){echo 'sub-active';}?>" >
						<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 提现设置
					</a>
				</li>
				<li class="sidebar-nav-link"> 
					<a href="/member/safe" class="<?php if(CONTROLLER_NAME=='Member' && ACTION_NAME=='safe'){echo 'active';}?>" >
						<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 修改密码
					</a>
				</li>
			</ul>
		</li>
		<li class="sidebar-nav-link">
			<a href="javascript:;"  class="sidebar-nav-sub-title">
				<i class="am-icon-users sidebar-nav-link-logo"></i> 推广赚钱
				<span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico <?php if(in_array($_REQUEST['model_id'], array(44,88))){echo 'sidebar-nav-sub-ico-rotate';}?>"></span>
			</a>
			<ul class="sidebar-nav sidebar-nav-sub" style="display: <?php if(in_array($_REQUEST['model_id'], array(88,44)) ){echo 'block';}else{echo 'none';}?>;">
				<li class="sidebar-nav-link"> 
					<a href="/v/lists/model_id/88/row/20/uid/<?php echo session('user_auth.id');?>" class="<?php if(in_array($_REQUEST['model_id'], array(88))){echo 'sub-active';}?>" >
						<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 推广积分
					</a>
				</li>
				<li class="sidebar-nav-link"> 
					<a href="/v/lists?model_id=44&uid=<?php echo session('user_auth.id');?>&row=20&type=7" class="<?php if(in_array($_REQUEST['model_id'], array(44)) && I('tpl')!='Tuijian_daima'){echo 'sub-active';}?>" >
						<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 推广分成
					</a>
				</li>
				<li class="sidebar-nav-link"> 
					<a href="/v/lists?model_id=44&tpl=Tuijian_daima" class="<?php if(I('tpl')=='Tuijian_daima'){echo 'sub-active';}?>" >
						<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 代码获取
					</a>
				</li>
			</ul>
		</li>
		
		<li class="sidebar-nav-link">
			<a href="/v/show/model_id/39/tpl/jiaocheng/id/22" target="_blank"  class="sidebar-nav-sub-title">
				<i class="am-icon-home sidebar-nav-link-logo"></i> 视频教程
						</a>
          </ul>
	   </ul>
	  </ul>
	  		<li class="sidebar-nav-link">
			<a href="http://www.a8tg.com/" target="_blank"  class="sidebar-nav-sub-title">
				<i class="am-icon-home sidebar-nav-link-logo"></i> 官方论坛
						</a>
          </ul>
	   </ul>
	  </ul>
	</ul>
</div>