<%@ Page Language="c#" Inherits="Web.User.manageInfos" CodeBehind="manageInfos.aspx.cs" %>

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>欢迎使用</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file = "../Css/userCssList.htm" -->
    <link type="text/css" rel="Stylesheet" href="css/usermain.css" />

    <script src="../Js/jquery.ztree.core.js"></script>

    <link type="text/css" rel="stylesheet" href="Css/zTreeStyle.css" />
    <script src="../Js/user.js"></script>
    <!--[if IE 6]>
    <script type="text/javascript" src="../Js/DD_belatedPNG.js"></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('.ie6pngfix');
    </script>
    <![endif]-->
    
    <style type="text/css">
        /*滚动条整体*/
        ::-webkit-scrollbar{
            width:14px; /*滚动条宽度*/
        }
        /*滚动条按钮*/
        ::-webkit-scrollbar-button {

        }
        ::-webkit-scrollbar-track{
            background-color:#F3F3F3;  /*滑道全部*/
        }
        ::-webkit-scrollbar-track-piece{
            background-color:#F3F3F3;  /*滑道*/
            -webkit-border-radius:4px; /*滑道圆角宽度*/
        }
        ::-webkit-scrollbar-thumb{
            background-color:#F3F3F3; /*滑动条表面*/
            border:solid 1px #C0C0C0; /*滑动条边框*/
            border-radius:4px;  /*滑动条圆角宽度*/
        }
        /*横竖滚动条交角*/
        ::-webkit-scrollbar-corner {
            background-color: #F3F3F3;
        }
        /*横竖滚动条交角图案*/
        ::-webkit-resizer {
            /*background-image: url(/public/img/resizer-inactive.png);*/
           background-repeat: no-repeat;
           background-position: bottom right;
       }
       /*鼠标滑过滑动条*/
        ::-webkit-scrollbar-thumb:hover{
            background-color:#3c5066;
        }
    </style>
    
    <script type="text/javascript">
        jQuery(function($) {       
            
            $("#edituser").click().fancybox({
                'width'		: 700,
                'height'	: 620,
                'hideOnOverlayClick': false,
                'transitionIn'		: 'elastic',
                'transitionOut'		: 'fade',
                'type'		: 'iframe',
                'padding':'0'
            });
            $("#static").click().fancybox({
                'width'		: 700,
                'height'	: 620,
                'hideOnOverlayClick': false,
                'transitionIn'		: 'elastic',
                'transitionOut'		: 'fade',
                'type'		: 'iframe',
                'padding':'0'
            });
            $("#onlineHelp").click().fancybox({
                'width'		: 760,
                'height'	: 600,
                'hideOnOverlayClick': false,
                'transitionIn'		: 'elastic',
                'transitionOut'		: 'fade',
                'type'		: 'iframe',
                'padding':'0'
            });
    
        });
        
    </script>

    <script type="text/javascript">
        var setting = {
            view: {
                dblClickExpand: false,
                showLine: false
            },
            callback: {
                onClick: onClick
            }        };

        var zNodes = <%= str %> ;

        function onClick(e,treeId, treeNode) {
            var zTree = $.fn.zTree.getZTreeObj("ztree");
            zTree.expandNode(treeNode);
        }

        $(document).ready(function () {
            $.fn.zTree.init($("#ztree"), setting, zNodes);
        });    
        
        $(function(){
            //侧栏展开/折叠
            $(".side .arrow").click(function(){
                if($(this).parent().width() == 210){
                    $(this).addClass("arrow02").siblings().hide().parent().css("width",0).siblings(".main").css("margin-left",0);
                }else{
                    $(this).removeClass("arrow02").siblings().show().parent().css("width",210).siblings(".main").css("margin-left",210);
                };
            });
        })
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="wrapper">
    <div class="header">
		<h1 class="logo"><%=ViewState["webname"] %></h1>
		<ul class="nav fn-clearfix">
			<li><a title="网站首页" href="../index.aspx" target="_blank"><i class="icon icon-home"></i></a></li>
            <li><a id="onlineHelp" title="帮助" href="../Wphelp/cmcHelp.html" target="_blank"><i class="icon icon-help"></i></a></li>
            <%--<li><a title="静态页" href="manageStaticPage.aspx" target="funcFrame" runat="server" id="staticPage"><i class="icon icon-home"></i></a></li>--%>
		</ul>
        <div class="administrator">
            <img class="head" src="<%=ViewState["userimage"] %>" style="width:36px; height:36px;">
            <ul class="admin">
                <li class="set">
                    <a class="set_nav" href="javascript:void(0)"><%=ViewState["fullname"] %></a>
                    <ul class="level2">
                        <li><a class="s" href="UserInfo.aspx?mode=edit" target="funcFrame" id="edituser">账号设置</a></li>
                        <li runat="server" id="spli" visible="false"><a class="h" href="manageStaticPage.aspx" target="funcFrame" id="static">静态页</a></li>
                        <li><a class="l" href="login.aspx">重新登陆</a></li>
                        <li><a class="q" href="../quit.aspx">退出</a></li>
                    </ul>
                </li>
            </ul>
        </div>   
	</div>
	<!--/header-->
        <div class="content">
            <div class="side">
                <a class="arrow" href="javascript:void(0);"> </a>
                <div class="info">
                    <a href="manageMain.aspx" target="funcFrame">我的工作台</a>
                </div>
                <div class="tree">
                    <ul id="ztree" class="ztree" runat="server">
                    </ul>
                </div>
            </div>
            <!--/side-->
            <div class="main ie6pngfix">
                <iframe class="dataIframe" name="funcFrame" id="funcFrame" allowtransparency="true"
                    frameborder="0" scrolling="auto" width="100%" src="manageMain.aspx">
                </iframe>
            </div>
            <!--/content-->
        </div>
    </div>
    <!--/wrapper-->

    <script type="text/javascript">
        /*function iFrameHeight() { 
            var ifm= document.getElementById("funcFrame"); 
            var subWeb = document.frames ? document.frames["funcFrame"].document : ifm.contentDocument; 
            if(ifm != null && subWeb != null)
            {
                ifm.height = subWeb.body.scrollHeight;
            }
        }*/
    
        $(function(){	
            //iframe区域高度
            iframeH();
	
        })
        //窗口变化时
        $(window).resize(function() {
            //iframe区域高度
            iframeH();
        });
        //iframe区域高度
        function iframeH(){
            var wH=$(window).innerHeight();
            $('.tree').height(wH - 150);
            $('#funcFrame').height(wH-50);
	   
        }

    </script>

    </form>
</body>
</html>
