<!DOCTYPE html>
<html lang="<?=LANG?>">
<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/rock.css?<?=$nowtime?>"/>
<link rel="stylesheet" type="text/css" href="web/res/fontawesome/css/font-awesome.min.css">
<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?<?=$nowtime?>"></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?<?=$nowtime?>"></script>
<script type="text/javascript" src="<?=$da['p']?>/<?=$da['d']?><?=$da['m']?>/<?=$da['m']?>script.js?<?=$nowtime?>"></script>
<script type="text/javascript" src="web/res/mode/menu/jquery-rockmenu.js"></script>
<script type="text/javascript">
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';
js.winiframewidth = '<?=arrvalue($da, 'tanwidth')?>';
homestyle = 0;
</script>
<?php
$colobj = c('color');
echo $colobj->getApptheme(true, false, true);
$colorarr = $colobj->getColor();
$maincolor= $colorarr['color'];
$height = '60px';
?>
<style>
.meiheight{align-items:center;height:<?=$height?>;}

.tabsindex div:hover,.tabsindex td:hover{}
.tabsindex td{height:50px;overflow:hidden;line-height:50px;padding:0px 20px;cursor:pointer;position:relative;}
.tabsindex 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;}
.tabsindex span:hover{background-color:rgba(0,0,0,0.1);color:white;border-radius:50%}
.tabsindex .active{background-color:rgba(0,0,0,0.05);}
.jtcls{height:50px;line-height:50px;overflow:hidden;width:14px;text-align:center;position:absolute;z-index:8;top:50px; background-color:rgba(0,0,0,0.1);right:0px;font-size:12px;cursor:pointer;color:#888888;display:none;top:0px}
.jtcls:hover{background-color:rgba(0,0,0,0.2);}
.navindex li{padding:0px 10px;height:<?=$height?>;align-items:center;display:flex}
.navindex li:hover{background-color:rgba(0,0,0,0.05)}
#indexmenu .hover:hover{background:var(--main-vgcolor)}
.navindex a{color:white;TEXT-DECORATION:none;}
</style>
</head>
<body style="padding:0px;margin:0px;overflow:hidden;" scroll="no">

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

<div id="topheaderid" class="meiheight" style="background:<?=$maincolor?>;background:var(--main-color);color:white;display:flex;cursor:pointer">
	<div onclick="js.reload()" style="padding:0px 10px;height:24px;overflow:hidden">
		<img src="<?=$da['logo']?>" height="24" width="24"> 
	</div>
	<div onclick="js.reload()" style="padding-right:15px;font-size:18px">
		<?=$da['title']?>
	</div>
	<div style="flex:1">
		<ul id="index-navbar-center" class="navindex" style="overflow:hidden;display:flex;">
			<?php foreach($da['topmenu'] as $k=>$rs){
				$str = '<li pmenuid="'.$rs['id'].'" title="'.lang($rs['name'],'menu').'" icon="'.$rs['icons'].'"><a>';
				if($rs['icons'])$str.='<i class="icon-'.$rs['icons'].'"></i> ';
				$str.=''.lang($rs['name'],'menu').'</a></li>';
				echo $str;
			}
			?>
		</ul>
	</div>
	<ul style="display:flex;align-items:center" class="navindex">
		<?php 
		if(getconfig('mobile_show',true))echo '<li onclick="openmobile()"><i class="icon-tablet"></i>手机版</li>';
		if(getconfig('reim_show', true))echo '<li  onclick="openreim(this)"><span><i class="icon-comments-alt"></i>REIM <font class="badge red" id="reim_stotal" style="font-size:12px;background:red;color:white"></font></span></li>';
		?>
		<li id="indexuserl" >
			<div>
			<img style="width:18px;height:18px;border-radius:50%" id="myface" src="<?=$da['face']?>" align="absmiddle">
			<?=$da['adminname']?> <i class="icon-caret-down"></i>
			</div>
		</li>
	</ul>
</div>
<?php }?>


<table width="100%" border="0" id="zhutable" cellspacing="0" cellpadding="0">
<tr valign="top">
	<?php if(isempt($da['homeurl'])){?>
	<td >
		
	<div id="indexmenu" style="width:200px;overflow:hidden;">
		<ul style="height:50px;line-height:50px;padding:0px 10px;background:var(--main-hgcolor)">
			<li style="border-radius:0px;border-left:none;border-right:none;border-top:none;cursor:pointer;border-bottom:0px"><b id="menulisttop">基本</b>
			<span style="float:right"><i id="indesearchmenu" class="icon-search"></i>&nbsp; &nbsp;<i id="reordershla" class="icon-reorder cursor"></i></span>
			</li>
		</ul>
		<div style="overflow:auto;height:200px;background:var(--main-bgcolor)" id="menulist">
			<div id="menushow"></div>
		</div>
	</div>
	<div id="indexmenuss" style="display:none;background:rgba(0,0,0,0.1);text-align:center;padding:5px 2px" class="cursor"><i class="icon-reorder"></i><br>打<br>开<br>导<br>航</div>
	</td>
	<td>
		<div id="indexsplit" style="overflow:hidden;width:5px;background:rgba(0,0,0,0.05)"></div>
	</td>
	<?php }?>
	<td width="100%">
		<div style="overflow:hidden;position:relative;">
			<div class="jtcls" id="jtcls_left" onclick="_changesrcool(1)">&gt;</div>
			<div class="jtcls" id="jtcls_right" onclick="_changesrcool(-1)" style="left:0px">&lt;</div>
			
			<div style="border:none;background:var(--main-hgcolor);height:50px;overflow:hidden">
				<div id="tabsindexm" class="tabsindex" style="border:none;border-radius:0;padding:0px;overflow:hidden;">
				<table border="0" cellspacing="0" cellpadding="0"><tr id="tabs_title"></tr></table>
				</div>
			</div>
			
			<div id="indexcontent" style="overflow:auto;position:relative;">
				<div id="content_allmainview"></div>
			</div>
		</div>
	</td>
</tr>
</table>
<script type="text/javascript" src="mode/bootstrapplugin/jquery-bootstable.js?<?=$nowtime?>"></script><!--表格插件-->
<script type="text/javascript" src="mode/bootstrapplugin/jquery-bootsform.js?<?=$nowtime?>"></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><!--弹出提示插件-->
<script type="text/javascript" src="js/lang.js"></script><!--语言包-->
</body>
</html>