


<!DOCTYPE html>
<html lang="en">
<head>
<title><?php echo $_CONFIG->config_data('name')?> </title>
<!--[if lt IE 10]>
      <script src="template/style2018/js/html5shiv.js"></script>
      <script src="template/style2018/js/respond.min.js"></script>
      <![endif]-->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="template/style2018/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="template/style2018/css/themify-icons.css">
<link rel="stylesheet" type="text/css" href="template/style2018/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="template/style2018/css/jquery.mCustomScrollbar.css">
<link rel="stylesheet" href="template/style2018/css/radial.css" type="text/css" media="all">
<link rel="stylesheet" type="text/css" href="template/style2018/css/style.css">
<link type="text/css" rel="stylesheet" href="template/style2018/tcss/min1.css" />
</head>
<body>

<div class="theme-loader">
<div class="loader-track">
<div class="loader-bar"></div>
</div>
</div>

<div id="pcoded" class="pcoded">
<div class="pcoded-overlay-box"></div>
<div class="pcoded-container navbar-wrapper">
<nav class="navbar header-navbar pcoded-header">
<div class="navbar-wrapper">
<div class="navbar-logo">
<a class="mobile-menu" id="mobile-collapse" href="#!">
<i class="ti-menu"></i></a>
<div class="mobile-search">
<div class="header-search">
<div class="main-search morphsearch-search">
<div class="input-group">
<span class="input-group-addon search-close"><i class="ti-close"></i></span>
<input type="text" class="form-control" placeholder="Enter Keyword">
<span class="input-group-addon search-btn"><i class="ti-search"></i></span></div>
</div>
</div>
</div>
<a href="#" style="font-size:16px;">
<?php echo $_CONFIG->config_data('name')?></a>
<a class="mobile-options">
<i class="ti-more"></i></a></div>
<div class="navbar-container container-fluid">
<ul class="nav-left">
<li>
 <div class="base-nav" >
		
          <ul class="nav-ul">
		  <li class="nav-homeli">
             <div class="sidebar_toggle" ><a href="javascript:void(0)"><i class="ti-menu"></i></a></div>
            </li>
		  <?php
		  	$m=0;
			$html='';
			foreach ( $_CACHE[DB_JT.'menu'] as $row) {
			if($row['fatherid']=='0' && $row[menutype]!='1'){
			if($row[keytable]){
			if(is_superadmin() || check_purview($row[keytable])){
			$m++;
			if($m<=4){
			?>
            <li class="nav-blogli j_blog_NoAuthority">
              <a class="router" href="javascript:;" onClick="menumana(<?php echo trim($row[menuid]);?>);">
                <i class="<?php echo _Nico($row[menuid]);?>" style="margin-right:6px;"></i>
                <span><?php echo $row[menuname];?></span></a>
            </li>
			<?php
			}else{
			$html.='<a id="'.$row[menuid].'" class="router"  href="javascript:;"  style="color:#'._Nico($row[menuid],1).';" onClick="menumana('.trim($row[menuid]).');"><i class="'._Nico($row[menuid]).'" ></i>
<span>'.$row[menuname].'</span><span style="color:#333">'.$row[menuname].'</span></a>';
			}
			}
			}
			}
			}
			?>
            
			
             
			  
			
            <li id="more-menu" class="more-li dropdown dropdown-menu-toggle">
              <a class="dropdown-toggle">更多应用
                <i class="icon-angle-down"></i></a>
				
              <div class="sub-cate dropdown-menu application-categories j_pageActive sub-cate-thin" style="display: none;">
					
                      <div id="appModule-list">
					  
                        <div class="group ui-sortable">
                          <dl>
                            <dd>
                              <?php echo $html;?>
                             
                            </dd>
                          </dl>
                        </div>

                </div>
                
                
				
              </div>
            </li>
          </ul>
        </div>

        
    
</li>





</ul>
<ul class="nav-right">
<li class="header-notification">
<a href="javascript:_SMS();" id="sms_num">
</a>
<ul class="show-notification innerbox" style="height: 500px;">

<div id="_SMS" ></div>

</ul>
</li>
<li class="">
<a href="javascript:_SmsShow();" class="displayChatbox">
<i class="ti-comments"></i>
<span class="badge bg-c-green"></span></a></li>
<li class="user-profile header-notification">
<a href="javascript:;">
<img src="<?php echo $user['pic'];?>" class="img-radius" alt="User-Profile-Image">
<span><?php echo get_realname($_USER->id);?></span>
<i class="ti-angle-down"></i></a>
<ul class="show-notification profile-notification">
<li>
<a href="javascript:_M('57','admin.php?ac=user&fileurl=member&do=home_txt');">
<i class="ti-settings"></i>桌面设置</a></li>
<li>
<a href="javascript:_M('86','admin.php?ac=user&fileurl=member');">
<i class="ti-user"></i> 个人信息</a></li>
<li>
<a href="javascript:_M('87','admin.php?ac=password&fileurl=member');">
<i class="ti-lock"></i> 密码修改</a></li>
<li>
<a href="login.php?do=logout">
<i class="ti-layout-sidebar-left"></i> 安全退出</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>

<div id="sidebar" class="users p-chat-user showChat">
<div class="had-container">
<div class="card card_main p-fixed users-main">
<div class="user-box">
<div class="chat-search-box">
<a class="back_friendlist">
<i class="ti-close"></i>
</a>
<div class="right-icon-control">
<input type="text" class="form-control  search-text" placeholder="请输入姓名" id="search-friends">
<div class="form-icon">
<i class="ti-search "></i>
</div>
</div>
</div>
<div class="main-friend-list" id="_SmsShow">



</div>
</div>
</div>
</div>
</div>


<div class="showChat_inner">

<div id="_SmsBack"></div>

<div id="_SmsMsg" class="innerbox" style=" height:430px;"></div>



<div class="chat-reply-box p-b-20">
<div class="right-icon-control">
<input type="text" name="SMS_CONTENT"  class="form-control search-text" >
<div class="form-icon" onClick="_SmsAdd();">
<i class="ti-arrow-circle-right"></i>
</div>
</div>
</div>
</div>

<div class="pcoded-main-container">
<div class="pcoded-wrapper">
<nav class="pcoded-navbar">
<div class="sidebar_toggle"><a href="#"><i class="icon-close icons"></i></a></div>
<div class="pcoded-inner-navbar main-menu">


<ul class="pcoded-item pcoded-left-item">
<li class="active ">

<a href="javascript:void(0)">
<span class="pcoded-micon"><i class="ti-home"></i></span>
<span class="pcoded-mtext">个人桌面</span>
<span class="pcoded-mcaret"></span></a>
</li>

<!--<li class="">
<a href="navbar-light.html">
<span class="pcoded-micon"><i class="ti-layout-cta-right"></i><b>N</b></span>
<span class="pcoded-mtext">收件箱</span>
<span class="pcoded-mcaret"></span></a></li>
<li class="">
<a href="javascript:void(0)">
<span class="pcoded-micon"><i class="ti-view-grid"></i><b></b></span>
<span class="pcoded-mtext">流程办理</span>
<span class="pcoded-badge label label-danger">100+</span>
<span class="pcoded-mcaret"></span></a>
</li>  -->

<?php
foreach ( $_CACHE[DB_JT.'menu'] as $row) {
if($row['fatherid']=='0' && $row[menutype]!='1'){
if($row[keytable]){
if(is_superadmin() || check_purview($row[keytable])){
?>
<li class="pcoded-hasmenu">
<a href="javascript:void(0)">
<span class="pcoded-micon"><i class="<?php echo _Nico($row[menuid]);?>"></i></span>
<span class="pcoded-mtext"><?php echo $row[menuname]?></span>
<span class="pcoded-mcaret"></span></a>
<ul class="pcoded-submenu">

<?php _Nmenu($row[menuid]);?>
</ul>
</li>



<?php
}
}else{
?>
<li class="pcoded-hasmenu">
<a href="javascript:void(0)">
<span class="pcoded-micon"><i class="ti-layers"></i></span>
<span class="pcoded-mtext"><?php echo $row[menuname]?></span>
<span class="pcoded-mcaret"></span></a>
<ul class="pcoded-submenu">

<?php _Nmenu($row[menuid]);?>
</ul>
</li>
<?php

}
}
}
?>
</ul>









</div>
<!--菜单结束-->

</nav>
<div class="pcoded-content">
<div class="pcoded-inner-content">

<div class="main-body">
<iframe id="rightMain" class="rightMain " frameborder="false" src="" scrolling="auto" style="border:none;" width="100%" height="auto" allowtransparency="true"></iframe>

<div id="styleSelector"> </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<input type="hidden" name="Layouttype" id="Layouttype" value="<?php echo $Layouttype;?>" />
<input type="hidden" name="handlemenutype" id="handlemenutype" value="<?php echo $handlemenutype;?>" />
<input type="hidden" name="vertical" id="vertical" value="<?php echo $vertical;?>" />
<input type="hidden" name="verticalico" id="verticalico" value="<?php echo $verticalico;?>" />
<input type="hidden" name="themecolor" id="themecolor" value="<?php echo $themecolor;?>" />
<input type="hidden" name="verticalsubitem" id="verticalsubitem" value="<?php echo $verticalsubitem;?>" />
<input type="hidden" name="navbgpattern" id="navbgpattern" value="<?php echo $navbgpattern;?>" />

<!--[if lt IE 10]><![endif]-->



<!--[if lt IE 10]>
    <div class="ie-warning">
        <h1>Warning!!</h1>
        <p>You are using an outdated version of Internet Explorer, please upgrade <br/>to any of the following web browsers to access this website.</p>
        <div class="iew-container">
            <ul class="iew-download">
                <li>
                    <a href="http://www.google.com/chrome/">
                        <img src="http://html.codedthemes.com/gradient-able/files/assets/images/browser/chrome.png" alt="Chrome">
                        <div>Chrome</div>
                    </a>
                </li>
                <li>
                    <a href="https://www.mozilla.org/en-US/firefox/new/">
                        <img src="http://html.codedthemes.com/gradient-able/files/assets/images/browser/firefox.png" alt="Firefox">
                        <div>Firefox</div>
                    </a>
                </li>
                <li>
                    <a href="http://www.opera.com">
                        <img src="http://html.codedthemes.com/gradient-able/files/assets/images/browser/opera.png" alt="Opera">
                        <div>Opera</div>
                    </a>
                </li>
                <li>
                    <a href="https://www.apple.com/safari/">
                        <img src="http://html.codedthemes.com/gradient-able/files/assets/images/browser/safari.png" alt="Safari">
                        <div>Safari</div>
                    </a>
                </li>
                <li>
                    <a href="http://windows.microsoft.com/en-us/internet-explorer/download-ie">
                        <img src="http://html.codedthemes.com/gradient-able/files/assets/images/browser/ie.png" alt="">
                        <div>IE (9 & above)</div>
                    </a>
                </li>
            </ul>
        </div>
        <p>Sorry for the inconvenience!</p>
    </div>
    <![endif]-->

<script src="template/style2018/js/jquery.min.js "></script>
<script src="template/style2018/js/jquery-ui.min.js "></script>
<script src="template/style2018/js/popper.min.js"></script>
<script src="template/style2018/js/bootstrap.min.js "></script>
<script src="template/style2018/js/excanvas.js "></script>

<script src="template/style2018/js/jquery.slimscroll.js "></script>

<script src="template/style2018/js/modernizr.js "></script>

<script src="template/style2018/js/SmoothScroll.js"></script>
<script src="template/style2018/js/jquery.mCustomScrollbar.concat.min.js "></script>

<script src="template/style2018/js/Chart.js"></script>
<script src="template/style2018/js/amcharts.js"></script>
<script src="template/style2018/js/serial.js"></script>
<script src="template/style2018/js/light.js"></script>

<script src="template/style2018/js/pcoded.min.js"></script>
<script src="template/style2018/js/vertical-layout.min.js "></script>
<script src="template/style2018/js/custom-dashboard.js"></script>
<script src="template/style2018/js/public.js "></script>
<script src="template/style2018/js/script.js "></script>

<script>

function _M(menuid,targetUrl) {
	$("#rightMain").attr('src', targetUrl);
}
_M(0,'home.php?file=text');
$(document).ready(function() {
	$("#more-menu").click(function(){
		$(".j_pageActive").slideToggle();
	  });
	  $(".j_pageActive").dblclick(function(){
		$("#more-menu").click();
	  });

	$winheight=$(window).height()-65;
	$('#rightMain').height($winheight);
	<?php if($Layouttype){?>_Layouttype('<?php echo $Layouttype;?>');<?php }?>
	<?php if($handlemenutype){?>handlemenutype('<?php echo $handlemenutype;?>');<?php }?>
	<?php if($vertical){?>vertical('<?php echo $vertical;?>');<?php }?>
	<?php if($verticalico){?>verticalico('<?php echo $verticalico;?>');<?php }?>
	<?php if($verticalsubitem){?>verticalsubitem('<?php echo $verticalsubitem;?>');<?php }?>
	<?php
	if($themecolor){
	$themecolor=explode(',',$themecolor);
	?>
	themecolor('<?php echo $themecolor[0];?>','<?php echo $themecolor[1];?>');
	<?php }?>
	<?php if($navbgpattern){?>navbgpattern('<?php echo $navbgpattern;?>');<?php }?>
});
sms_count();
function sms_count(type){
	jQuery.ajax({
		type: 'GET',
		url: 'inc/sms_count.php?date='+new Date(),
		success: function(data){
			if(data!='0'){
				$('#sms_num').html('<i class="ti-bell"></i><span class="badge bg-c-pink"></span>');
			}else{
				$('#sms_num').html('<i class="ti-bell"></i>');
			}
		}
	});
	window.setTimeout(sms_count,10*5*1000);
}
function menumana(menuid){
	jQuery.ajax({
		type: 'GET',
		url: 'inc/menu2018.php?menuid='+menuid+'date='+new Date(),
		success: function(data){
			if(data){
				$('.pcoded-left-item').html(data);
			}else{
				$('.pcoded-left-item').html('无数据');
			}
		}
	});
}
</script>
</body>
</html>
