<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$da['title']?></title>
<link rel="stylesheet" type="text/css" href="<?=$da['p']?>/css/webmain.css"/>
<link rel="stylesheet" type="text/css" id="mainstylecss" href="<?=$da['stylecss']?>"/>
<link rel="stylesheet" type="text/css" href="web/res/fontawesome/css/font-awesome.min.css">
<!--[if IE 7 ]><link rel="stylesheet" type="text/css" href="web/res/fontawesome/css/font-awesome-ie7.min.css"><![endif]-->
<link rel="stylesheet" type="text/css" href="web/res/mode/menu/jquery-rockmenu.css"/>
<link rel="stylesheet" type="text/css" href="mode/plugin/css/jquery-rockdatepicker.css"/>
<link rel="shortcut icon" href="<?=$da['icon']?>" />
<script type="text/javascript" src="web/res/js/jquery.1.9.1.min.js"></script>
<script type="text/javascript" src="js/js.js"></script>
<script type="text/javascript" src="js/worker.js"></script>
<script type="text/javascript" src="js/base64-min.js"></script>
<script type="text/javascript" src="<?=$da['p']?>/<?=$da['d']?><?=$da['m']?>/<?=$da['m']?>public.js"></script>
<script type="text/javascript" src="<?=$da['p']?>/<?=$da['d']?><?=$da['m']?>/<?=$da['m']?>newscript.js?<?=time()?>"></script>
<script type="text/javascript" src="web/res/mode/menu/jquery-rockmenu.js"></script>
<script type="text/javascript">
<?php 
$maincolor = getconfig('apptheme','#1389D3');
$maincolora= c('image')->colorTorgb($maincolor);
$maincolorb= c('image')->colorToHsl($maincolor);
$maincolors= ''.$maincolora[0].','.$maincolora[1].','.$maincolora[2].'';
?>
js.servernow	= '<?=$da['now']?>';
PROJECT			= '<?=$da['p']?>';
adminip			= '<?=$da['ip']?>';
VERSION			= '<?=VERSION?>';
companymode		= <?=(getconfig('companymode')? 'true' : 'false')?>;
var show_key 	= '<?=$da['showkey']?>',homeurl = '<?=$da['homeurl']?>',homename='<?=$da['homename']?>';
function globalbody(){
	adminid		= '<?=$da['adminid']?>';
	adminface	= '<?=$da['face']?>';
	adminname	= '<?=$da['adminname']?>';
	adminuser	= '<?=$da['adminuser']?>';
	adminstyle	= '<?=$da['style']?>';
	admintype	= '<?=$da['admintype']?>';
	deptallname	= '<?=$da['my']['deptallname']?>';
	adminranking= '<?=$da['my']['ranking']?>';
}
datesss = 'background:url(mode/icons/date.png) no-repeat right';
maincolor = '<?=$maincolor?>';
homestyle = 2;
bootsSelectColor = 'rgba(<?=$maincolors?>,0.2)';
</script>
<style>
<?php
echo 'body{--main-color:'.$maincolor.';--main-colorsuccess:hsl('.$maincolorb[0].',30%,85%);--main-colorhover:rgba('.$maincolors.',0.8);background:rgba('.$maincolors.',0.05)}';
?>

.newtabsindex li:hover{color:<?=$maincolor?>;background:rgba(0,0,0,0.05)}
.newtabsindex li{height:58px;overflow:hidden;line-height:58px;padding:0px 20px;cursor:pointer;position:relative;float:left;border-left:0px solid rgba(0,0,0,0.05)}
.newtabsindex span{font-size:12px;color:#aaaaaa;position:absolute;top:2px;right:2px;display:inline-block;height:16px;width:16px;line-height:14px;text-align:center;}
.newtabsindex span:hover{background-color:#e1e1e1;color:white;border-radius:50%}
.newtabsindex .active{color:<?=$maincolor?>;font-weight:bold;background:rgba(0,0,0,0.05)}
.topactcss:hover{background:rgba(0,0,0,0.1);cursor:pointer}
#menulist a{display:block;color:white;padding:15px 20px}
#menulist a:hover{background:rgba(0,0,0,0.1);color:white}
.topactive1,.topactive1:hover{background:white;color:#000000}
.topactive{background:rgba(0,0,0,0.2);color:<?=$maincolor?>;}
.btn-primary{background-color:<?=$maincolor?>;border-color:<?=$maincolor?>}
.btn-primary:hover{border-color:<?=$maincolor?>}
a:hover{color:var(--main-colorhover)}
</style>
</head>
<body style="padding:0px;margin:0px; overflow:hidden;" scroll="no">

<div style="display:inline-block">
	<div id="mainleft" style="width:230px;float:left;background:<?=$maincolor?>;overflow:hidden">
		<div style="height:60px;overflow:hidden;color:white;font-size:18px;line-height:60px;text-align:center;background:rgba(0,0,0,0.2)">
			<img src="<?=$da['logo']?>" style="display:inline;" align="absmiddle" height="24" width="24"> <?=$da['title']?>
		</div>
		
		<div style="line-height:40px;height:40px;overflow:hidden;color:white;padding-left:10px;border-bottom:1px solid rgba(0,0,0,0.05)"><b id="menulisttop">基本</b></div>
		<div style="overflow:hidden;height:200px;position:relative" id="menulist"></div>
	</div>
	<div style="float:left;">

		<div id="tabsindexm" class="newtabsindex" style="border:none;border-radius:0;padding:0px;overflow:hidden;background-color:white;border-bottom:2px #f1f1f1 solid">
			<ul id="tabs_title" style="padding:0px;margin:0;height:58px;overflow:hidden">
				<li id="reordershla"><i class="icon-reorder"></i></li>
				<li id="indesearchmenu"><i class="icon-search"></i></li>
				<li id="zhuind03"><i class="icon-list-ul"></i> 菜单<font color="red" style="display:none" id="zhuhongdi">●</font></li>
				<li style="float:right" id="indexuserl"><img style="width:18px;height:18px;border-radius:50%" id="myface" src="<?=$da['face']?>" align="absmiddle">
				<?=$da['adminname']?><i class="caret"></i></li>
				<?php 
				if(getconfig('reim_show', true))echo '<li style="float:right" title="REIM即时通信" onclick="openreim(this)"><i class="icon-comments-alt"></i> <font class="badge red" id="reim_stotal" style="font-size:12px;background:red;color:white"></font></li>';
				if(getconfig('mobile_show',true))echo '<li style="float:right" title="手机版" onclick="openmobile()"><i class="icon-tablet"></i></li>';
				?>
				<li id="moretabs" style="float:right;display:none" title="更多选择卡"><i class="icon-th-list"></i> 选择 <i class="icon-caret-down"></i> </li>
			</ul>
		</div>
		
		<div id="indexcontent" style="overflow:auto;position:relative;">
			<div id="content_allmainview"></div>
		</div>
	</div>
</div>


<?php if(isempt($da['homeurl'])){?>

<div id="topdimenu" class="box" style="background-color:white;position:absolute;top:60px;z-index:9;display:none;border:none">
	<ul style="margin:0;">
	<?php foreach($da['topmenu'] as $k=>$rs){
		$str = '<li class="topactcss" style="padding:8px 10px;border-bottom:1px #f1f1f1 solid" pmenuid="'.$rs['id'].'" title="'.$rs['name'].'" icon="'.$rs['icons'].'">';
		if($rs['icons'])$str.='<i class="icon-'.$rs['icons'].'"></i> ';
		$str.=''.$rs['name'].'</li>';
		echo $str;
	}
	?>
	</ul>
	
</div>
<?php }?>



<script src="mode/bootstrap3.3/bootstrap.min.js"></script>
<script type="text/javascript" src="mode/bootstrapplugin/jquery-bootstable.js"></script><!--表格插件-->
<script type="text/javascript" src="mode/bootstrapplugin/jquery-bootsform.js"></script><!--表单插件-->
<script type="text/javascript" src="mode/bootstrapplugin/jquery-bootstree.js"></script><!--表格树形插件-->
<script type="text/javascript" src="mode/plugin/jquery-rockdatepicker.js"></script><!--日期选择插件-->
<script type="text/javascript" src="web/res/js/jquery-imgview.js"></script><!--图片预览-->
<script type="text/javascript" src="web/res/perfectscrollbar/jquery.mousewheel.js"></script><!--鼠标-->
<script type="text/javascript" src="web/res/js/jquery-rockupload.js"></script><!--上传插件-->
<script type="text/javascript" src="web/res/js/jquery-changeuser.js"></script><!--人员选择-->
<script type="text/javascript" src="web/res/mode/calendar/jquery-rockcalendar.js"></script><!--日期插件-->
<script type="text/javascript" src="web/res/mode/calendar/jquery-rocklunar.js"></script><!--农历-->
<script type="text/javascript" src="js/option.js"></script><!--数据选项-->
<script type="text/javascript" src="web/res/js/notify.js"></script><!--通知提醒插件-->
<script type="text/javascript" src="mode/plugin/jquery-rockmodels.js"></script><!--弹出提示插件-->

<link rel="stylesheet" type="text/css" href="web/res/perfectscrollbar/perfect-scrollbar.css"/>
<script type="text/javascript" src="web/res/perfectscrollbar/perfect-scrollbar.js"></script>

</body>
</html>