<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<s:if test="#session.sessionSysUser==null">
	<script language="javascript">
		location.href='<s:url namespace="/security" action="login"/>';
	</script>
</s:if>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>虎峰人事管理系统_hrmEx</title>
    <link rel="stylesheet" type="text/css" href="../resources/js/extjs/resources/css/ext-all.css" />
    <link id="theme" rel="stylesheet" type="text/css" href="../resources/js/extjs/resources/css/yourtheme.css"> 
    <link id="theme" rel="stylesheet" type="text/css" href="../resources/style/icon.css"> 
	<style type="text/css">
    html, body {
        font:normal 13px verdana;
        margin:0;
        padding:0;
        border:0 none;
        overflow:hidden;
        height:100%;
    }
    p {
        margin:5px;
    }
	#header {
		display: block;
		height: 50px;
		overflow: hidden;
		z-index: 30;
		background:url(../resources/style/images/header_bg.png) repeat-x scroll 0 0 transparent;
	}
	
	#header .headerNav {
		background-image:url(../resources/style/images/header_bg.png);
		background-position: 100% -50px;
		background-repeat: no-repeat;
		height: 50px;
	}
	
	#head_oper a {
		color:#9F6;
		text-decoration:none;
	} 
	#head_oper a:visited{
		color:#9F6;
		text-decoration:none;
	}
	#head_oper a:hover {
		color:#FFF;
		text-decoration:underline;
	}
	</style>
	
    <script type="text/javascript" src="../resources/js/extjs/adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="../resources/js/extjs/ext-all.js"></script>
    <script type="text/javascript">
    	Ext.BLANK_IMAGE_URL = "../resources/js/extjs/resources/images/default/s.gif";
    </script>
    <script type="text/javascript" src="../resources/js/extjs/TabCloseMenu.js"></script>
	<script type="text/javascript" src="../resources/js/extjs/ext-lang-zh_CN.js"></script>
	
	<script type="text/javascript" src="../resources/js/md5.js"></script>
	<script type="text/javascript" src="../resources/js/extEx.js"></script>
	<script type="text/javascript" src="../resources/js/menu.js"></script>
    <script type="text/javascript" src="../code/static/code/ext.js"></script>
    <script type="text/javascript" src="<s:url namespace='/security' action='mymenu'/>"></script>
    <script type="text/javascript" src="../resources/js/jquery/jquery-1.4.4.min.js"></script>
    <script type="text/javascript">
	function getWindowWidth(){
		return $(window).width();	
	}
	function getWindowHeight(){
		return $(window).height();	
	}
	</script>
    
    <script type="text/javascript">
    Ext.onReady(function(){
        Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
        
        var viewport = new Ext.Viewport({
            layout: 'border',
            items: [
           	{
				height: 50,
				region:'north',
				xtype:'box',
				el:'header',
				border:false,
				margins: '0 0 5 0'
        	}, {
				height: 25,
				region:'south',
				xtype:'box',
				el:'footer',
				border:false,
				margins: '0 0 0 0'
        	}, {
				region: 'west',
				collapsible: true,
				title: '菜单',
				region:'west',
                margins:'0 0 0 5',
                split:true,
                width: 165,
                layout:'accordion',
                items: menuItems
			},
            new Ext.TabPanel({
                region: 'center', 
                deferredRender: false,
				id: 'content-panel',
                activeTab: 0,   
				margins: '0 5 0 0',
				plugins: new Ext.ux.TabCloseMenu(),
				enableTabScroll: true,
                items: [{
                    title: '<span onclick="fh()">首页</span>',
                    closable: false,
                    autoScroll: true,
					html:'<iframe id="desktop" src="<s:url namespace="/security" action="home"/>" width="100%" height="100%" frameborder="0" scrolling="auto"></iframe>'  
                }],
				listeners: {   
					//缩放菜单时，对IE6的宽度进行resize
					'resize': function( viewport, adjWidth, adjHeight, rawWidth, rawHeight) {
						if(!(Ext.isIE6)) return;
						for(var i=0;i<this.items.length;i++){
							var iframeId=tabToIframeID(this.getItem(i).getId());
							var iframeObj=document.getElementById(iframeId);
							if(iframeObj!=null){
								window.frames[iframeId].window.resizeBody(adjWidth-20);
							}
						}
					}  
            	}
            })
			]
        });
		
		//Ext.getCmp('menu-panel').expandAll();
    });	
	
	function fh(){
		try{window.frames["desktop"].refreshHome(); }catch(e){}
	}
    </script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
	
<style>
	#logo {
		float: left;
		height: 50px;
		width: 360px;
		margin: 0px 0 0 2px;
		background-repeat: no-repeat;
	}

	html>body #logo {
		background-repeat: no-repeat;
		background-image: url(../resources/images/logo.png);
	}
	
	#ver_type{
		float:left; width:100px; margin-top:23px; color:#FFFFFF; font-size:16px; 
	}
	
	#ver_type a {
		color:#FFF;
		text-decoration:none;
	} 
	#ver_type a:visited{
		color:#FFF;
		text-decoration:none;
	}
	#ver_type a:hover {
		color:#9F6;
		text-decoration:underline;
	}
</style>	
<!--[if IE 6]>
	<style>
	* #logo {
		filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src="../resources/images/logo.png")
	}
	</style>	
<![endif]-->

	<div id="header">
    	<div class="headerNav">
            <div id="logo"></div>
			<div id="ver_type">
				<!-- <s:property value="systemInfoDTO.companyName"/> -->
			</div>
			<div id="head_oper" style="float:right; margin-top: 15px;margin-right: 10px;color:#FFF;">
                <span style="color:#FFF; font-size:13px;" >
                    欢迎 <span style="font-weight:bold;"><s:property value="#session.sessionSysUser.emplInfo.name"/></span>
                </span> |
                <a href="javascript:openTab('../security/passwd.jsp','修改密码')" style="padding:5px">修改密码</a>|
                <a href="<s:url namespace='/security' action='logout'/>" target="_top" style="padding:5px">退出系统</a>|
				 <a href="http://www.cqkey.com/product.jsp" target="_blank" style="padding:5px">咨询建议</a>
            </div>
        </div>
	</div>
	
    <div id="menu"></div>
	
	<div id="footer" style="text-align:center; font-size:12px;">
        <p> Copyright 2011-2012 <a href="http://www.cqkey.com/" target="_blank" style="color:#666666;">重庆虎峰信息技术有限责任公司</a> </p>
    </div>

</body>
</html>