<%@ page contentType="text/html; charset=GBK" %>
<%@ page import = "zr.zrpower.common.util.SysPreperty" %>
<%@ page import = "zr.zrpower.entity.sys.SessionUser" %>
<%@ page import = "java.lang.Object"%>
<%@page import="zr.zrpower.ejb.sys.UIService"%>
<%
SessionUser user = (SessionUser)session.getAttribute("userinfo");
UIService userUI =new UIService();

%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
		<title><%=SysPreperty.getProperty().ServerName %></title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<!-- basic styles -->
		<link href="zrsysmanage/html5/css/bootstrap.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="zrsysmanage/html5/css/font-awesome.min.css" />
        <!--页面切换  开始-->
        <link rel="stylesheet" href="zrsysmanage/html5/css/html_style.css" type="text/css" />
         <!--页面切换  结束-->
		<link rel="stylesheet" href="zrsysmanage/html5/css/ace.min.css" />
		<link rel="stylesheet" href="zrsysmanage/html5/css/ace-rtl.min.css" />
		<link rel="stylesheet" href="zrsysmanage/html5/css/ace-skins.min.css" />
        
		
		<!-- 原来系统公共js  /gz_nfzr/WebRoot/zrsysmanage/script/Public.js -->
        <script src="zrsysmanage/script/Public.js" ></script>
        
		<!-- ace settings handler -->

		<script src="zrsysmanage/html5/script/ace-extra.min.js"></script>
	</head>

	<body>
		<div class="navbar navbar-default" id="navbar">
			<script type="text/javascript">
				try{ace.settings.check('navbar' , 'fixed')}catch(e){}
			</script>

			<div class="navbar-container" id="navbar-container">
				<div class="navbar-header pull-left">
					<a id="test1" href="#" class="navbar-brand">
						<small>
							<!--<i class="icon-leaf"></i>
							--><%=SysPreperty.getProperty().ServerName %>
						</small>
					</a><!-- /.brand -->
				</div><!-- /.navbar-header -->

				<div class="navbar-header pull-right" role="navigation">
					<ul class="nav ace-nav">
					   <!-- 一级菜单 -->
						<!--<li class="grey">
							<a data-toggle="dropdown" class="dropdown-toggle" href="JavaScript:;">
								管理子系统
							</a>
						</li>
						<li class="purple">
							<a data-toggle="dropdown" class="dropdown-toggle" href="JavaScript:;">
								管理系统二
							</a>
						</li>
						<li class="green">
							<a data-toggle="dropdown" class="dropdown-toggle" href="JavaScript:;">
								管理系统三
							</a>
						</li>
						--><li class="light-blue">
							<a data-toggle="dropdown" href="JavaScript:;" class="dropdown-toggle">
								<img onclick="JavaScript:OpenUserInfo();" title='点击查看用户相关信息' class="nav-user-photo" src="<%=SysPreperty.getProperty().AppUrl%>zrsysmanage/images/face/<%=user.getFace()%>.JPG" alt="admin" />
								<span onclick="JavaScript:OpenUserInfo();" class="user-info">
									<small>您好!</small>
									<%=user.getName()%>
								</span>
								<i class="icon-caret-down"></i>
							</a>
							<ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
								<li>
									<a onclick="Javascript:setMenu('基础设置','zrsysmanage/selfmanage/SeConfig/ConfigFrm.jsp');">
										<i class="icon-cog"></i>
										设置
									</a>
								</li>
								<li>
									<a href=JavaScript:OpenUserInfo();>
										<i class="icon-user"></i>
										个人资料
									</a>
								</li>

								<li class="divider"></li>

								<li>
									<a id="test1" href="javascript:ChkQuit('quit.jsp');" >
										<i class="icon-off"></i>
										退出
									</a>
								</li>
							</ul>
						</li>
					</ul><!-- /.ace-nav -->
				</div><!-- /.navbar-header -->
			</div><!-- /.container -->
		</div>
		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>
			<div class="main-container-inner">
				<a class="menu-toggler" id="menu-toggler" href="JavaScript:;">
					<span class="menu-text"></span>
				</a>
				<div class="sidebar" id="sidebar">
					<script type="text/javascript">
						try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
					</script>
					<div class="sidebar-shortcuts" id="sidebar-shortcuts">
						<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
							<button class="btn btn-success" onclick="javascript:About();">
								<i class="" >关于</i>
							</button>
							<button class="btn btn-info" onclick="javascript:ChkLogout('logout.jsp');">
								<i class="" >注销</i>
							</button>
							<button class="btn btn-warning" onclick="javascript:ChkQuit('quit.jsp');">
								<i class="" >退出</i>
							</button>
							<button class="btn btn-danger" onclick="Javascript:setMenu('桌面','sylist.jsp');">
								<i class="" >桌面</i>
							</button>
						</div>
						<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
							<span class="btn btn-success"></span>
							<span class="btn btn-info"></span>
							<span class="btn btn-warning"></span>
							<span class="btn btn-danger"></span>
						</div>
					</div><!-- #sidebar-shortcuts -->

					<ul id="menuList" class="nav nav-list">
						<%=userUI.LoadMenuNew(user.getUserID())%>
						
					</ul><!-- /.nav-list -->

					<div class="sidebar-collapse" id="sidebar-collapse">
						<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
					</div>

					<script type="text/javascript">
						try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
					</script>
				</div>

				<div class="main-content">
					<div class="breadcrumbs" id="breadcrumbs">
						<script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>

						<ul class="breadcrumb">
							<li>
								<i class="icon-home home-icon"></i>
								<a href="JavaScript:;">首页</a>
							</li>
							<li class="active" id="main">控制台</li>
						</ul>
						
						
                        <!-- #nav-search 
						<div class="nav-search" id="nav-search">
							<form class="form-search">
								<span class="input-icon">
									<input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
									<i class="icon-search nav-search-icon"></i>
								</span>
							</form>
						</div>
						-->
					</div>

					<div class="page-content"><!-- /.page-header -->

						<div class="row"><!-- /.col -->
                        <!--<div class="col-xs-12">
                          页面动态  切换开
                          <div id="pages">
                           <div>   -->
                             <iframe width="100%" height="300px" frameborder="0" name="mianUrl1" id="mianUrl1" src="sylist.jsp"></iframe> 
                          </div>
                          <!-- <div>
                             <iframe width="100%" height="200px" frameborder="0" name="mianUrl2" id="mianUrl2" src="buttons.html"></iframe>
                           </div>  
                        --></div>
                          <!--页面动态  切换结束-->
                         </div>
						</div><!-- /.row -->
					</div><!-- /.page-content -->
				</div><!-- /.main-content -->

				
			</div><!-- /.main-container-inner -->
		</div><!-- /.main-container -->

		<!-- basic scripts -->

		<script type="text/javascript">
			window.jQuery || document.write("<script src='zrsysmanage/html5/script/jquery-2.0.3.min.js'>"+"<"+"script>");
		</script>

		<!-- <![endif]-->

		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='zrsysmanage/html5/script/jquery.mobile.custom.min.js'>"+"<"+"script>");
		</script>
		<script src="zrsysmanage/html5/script/bootstrap.min.js"></script>
		<script src="zrsysmanage/html5/script/typeahead-bs2.min.js"></script>


		<script src="zrsysmanage/html5/script/jquery-ui-1.10.3.custom.min.js"></script>

		<script src="zrsysmanage/html5/script/ace-elements.min.js"></script>
		<script src="zrsysmanage/html5/script/ace.min.js"></script>
         <!--页面切换  开始-->
        <!--<script type="text/javascript" src="zrsysmanage/html5/script/pageSwitch.js"></script>
         --><!--页面切换  结束-->
        <!--js url strat-->
        <script type="text/javascript">
		    //宽、高
			var k=$(document.body).width();
			var h=$(document.body).height();//浏览器当前窗口文档body的高度 
			h=h*1-100;
			//k=k*1-200;
			$("#mianUrl1").attr("height", h);
             
		   //菜单选择页面跳转
		   function setMenu(code,menuUrl){
		      
			   $("#mianUrl1").attr("height", h);
			   $("#mianUrl1").attr("src", menuUrl);
			   //alert(menuUrl);
				//背景样式的变化
				//$('li').click(function(){
                //   $(this).addClass('active').siblings().removeClass('active');
			    $("#main").html(code);
                //})
		   }
		</script>
       
        
        
    <script>
    //循环播放

    //浏览器当前窗口文档body的高度
	
	function colorRand(){
		return parseInt(Math.random()*255);
	}

    </script>
        <!--js url end-->

		
<!-- 弹出窗口 -->
<script src="zrsysmanage/html5/script/jquery-2.0.3.min.js"></script>
<script src="zrsysmanage/html5/layer/layer.js"></script>	

<script language="javascript">

function OpenUserInfo(){

  layer.open({
     type: 2,
     title: false,
     area: ['800px', '590px'],
     shade: 0.3,
     closeBtn: 0,
     shadeClose: true,
     content: 'zrsysmanage/MessageUserInfo.jsp'
   });
}

function ChkQuit(FileUrl){
  
  layer.confirm('是否确定退出该系统？', {
      btn: ['是','否'] //按钮
      }, function(){
         location.href=FileUrl;
      }, function(){
         
      });
}
function ChkLogout(FileUrl){
  layer.confirm('是否确定注销该用户？', {
      btn: ['是','否'] //按钮
      }, function(){
         location.href=FileUrl;
      }, function(){
         
      });
}
function About(){
  layer.open({
     type: 2,
     title: false,
     area: ['450px', '320px'],
     shade: 0.3,
     closeBtn: 0,
     shadeClose: true,
     content: 'about.jsp'
   });
}
</script>

</body>
</html>
<%
//清空相关对象
userUI=null;
user = null;
%>
