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

<!DOCTYPE html>
<html lang="en">
<head>
    <title> </title>
   
    <!--#include file="../Css/head.htm"-->  
    <link type="text/css" rel="stylesheet" href="Css/zTreeStyle.css" />  
 

    <style type="text/css">
        /*滚动条整体*/
        ::-webkit-scrollbar {
            width: 7px; /*滚动条宽度*/
            height: 7px;
        }
        /*滚动条按钮*/
        ::-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: #3c5066; /*滑动条表面*/
            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;
        }

        .cloud {
            background: url(../user/images/cloud.png) center no-repeat;
            height: 45px;
            display: block;
        }

        .weike {
            background: url(../user/images/weike.png) center no-repeat;
            height: 45px;
            display: block;
        }

        .spli {
            background: url(../user/images/HTML.png) center no-repeat;
            height: 45px;
            display: block;
        }
    </style>

</head>

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

        <div class="navbar-container" id="navbar-container">
            <!-- #section:basics/sidebar.mobile.toggle -->
            <button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">
                <span class="sr-only">Toggle sidebar</span>

                <span class="icon-bar"></span>

                <span class="icon-bar"></span>

                <span class="icon-bar"></span>
            </button>

            <!-- /section:basics/sidebar.mobile.toggle -->
            <div class="navbar-header pull-left">
                <!-- #section:basics/navbar.layout.brand -->
                <a href="#" class="navbar-brand">
                    <small>
                        <i class="fa fa-leaf"></i>
                        <%=ViewState["webname"] %>
                    </small>
                </a>

                <!-- /section:basics/navbar.layout.brand -->

                <!-- #section:basics/navbar.toggle -->

                <!-- /section:basics/navbar.toggle -->
            </div>

            <!-- #section:basics/navbar.dropdown -->
            <div class="navbar-buttons navbar-header pull-right" role="navigation">
                <ul class="nav ace-nav">
                    <li class="dark-opaque">
                        <a class="onlineHelp" data-container="body" data-toggle="tooltip" data-placement="bottom" href="../Wphelp/cmcHelp.html" title="帮助">
                            <i class="ace-icon fa fa-lightbulb-o bigger-140"></i>
                        </a>
                    </li>

                    <li class="dark-opaque">
                        <a target="_blank" data-container="body" data-toggle="tooltip" data-placement="bottom" href="../index.aspx" title="网站首页">
                            <i class="ace-icon fa fa-home bigger-140"></i>
                        </a>
                    </li>

                    <li class="dark-opaque" runat="server" id="aspapp" visible="false">
                        <a data-toggle="tooltip" data-container="body" data-placement="bottom" title="信息共享" target="funcFrame" href="manageASPAPP.aspx">
                            <i class="cloud"></i>
                        </a>
                    </li>

                    <li class="dark-opaque" runat="server" id="spli" visible="false">
                        <a data-toggle="tooltip" data-container="body" data-placement="bottom" title="静态页" onclick="funcFrame.location='manageStaticPage.aspx'">
                            <i class="spli"></i>
                        </a>
                    </li>

                    <li class="dark-opaque" runat="server" id="weixin" visible="false">
                        <a data-toggle="tooltip" data-container="body" data-placement="bottom" title="微信推送" onclick="funcFrame.location='PushWeixin.aspx'">
                            <i class="ace-icon fa fa-weixin bigger-140"></i>
                        </a>
                    </li>

                    <li class="dark-opaque" runat="server" id="weike" visible="false">
                        <a data-toggle="tooltip" data-container="body" data-placement="bottom" title="微课推送" onclick="funcFrame.location='PushWeike.aspx'">
                            <i class="weike"></i>
                        </a>
                    </li>

                    <!-- #section:basics/navbar.user_menu -->
                    <li class="dark-opaque">
                        <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                            <img class="nav-user-photo" src="<%=ViewState["userImageUrl"] %>" alt="Jason's Photo" />
                            <span class="user-info">
                                <small>欢迎,</small>
                                <%=ViewState["fullname"] %>
                            </span>

                            <i class="ace-icon fa fa-caret-down"></i>
                        </a>

                        <ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
                            <li id="adminLogin" runat="server">
                                <a href="../wpdcc/manageSystem.aspx">
                                    <i class="ace-icon glyphicon glyphicon-wrench"></i>
                                    设计控制
                                </a>
                            </li>
                            <li class="edituser">
                                <a href="#">
                                    <i class="ace-icon glyphicon glyphicon-user"></i>
                                    账号设置
                                </a>
                            </li>
                            <li class="fbox">
                                <a href="../user/zmkm.aspx">
                                    <i class="ace-icon fa fa-exchange"></i>
                                    用户切换
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="../quit.aspx">
                                    <i class="ace-icon glyphicon glyphicon-off"></i>
                                    退出
                                </a>
                            </li>
                        </ul>
                    </li>

                    <!-- /section:basics/navbar.user_menu -->
                </ul>
            </div>

            <!-- /section:basics/navbar.dropdown -->
        </div>
        <!-- /.navbar-container -->
    </div>

    <!-- /section:basics/navbar.layout -->
    <div class="main-container" id="main-container">
        <script type="text/javascript">
            try { ace.settings.check('main-container', 'fixed') } catch (e) { }
        </script>

        <!-- #section:basics/sidebar -->
        <div id="sidebar" class="sidebar                  responsive">
            <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" data-toggle="tooltip" data-placement="bottom" title="待审信息" onclick="funcFrame.location='Auditingnews.aspx' ">
                        <i class="ace-icon fa  fa-tags"></i>
                    </button>

                    <button class="btn btn-info" data-toggle="tooltip" data-placement="bottom" title="最近发布" onclick="funcFrame.location='infoSearch.aspx'">
                        <i class="ace-icon fa fa-envelope"></i>
                    </button>

                    <!-- #section:basics/sidebar.layout.shortcuts -->
                    <button class="btn btn-warning" data-toggle="tooltip" data-placement="bottom" title="草稿箱" onclick="funcFrame.location='myDraft.aspx'">
                        <i class="ace-icon fa fa-inbox"></i>
                    </button>

                    <button class="btn btn-danger" data-toggle="tooltip" data-placement="bottom" title="站内搜索" onclick="funcFrame.location='search.aspx'">
                        <i class="ace-icon fa fa-location-arrow"></i>
                    </button>

                    <!-- /section:basics/sidebar.layout.shortcuts -->
                </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 class="nav nav-list">

                <li class="">
                    <a href="managemain.aspx" target="funcFrame">
                        <i class="menu-icon fa fa-list"></i>
                        <span class="menu-text">我的工作台</span>
                    </a>

                    <b class="arrow"></b>
                </li>
                <li>
                    <div class="tree">
                        <ul id="ztree" class="ztree" runat="server"></ul>
                    </div>
                </li>
            </ul>

            <!-- /.nav-list -->

            <!-- #section:basics/sidebar.layout.minimize -->
            <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
                <i class="ace-icon fa fa-angle-double-left" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
            </div>

            <!-- /section:basics/sidebar.layout.minimize -->
            <script type="text/javascript">
                try { ace.settings.check('sidebar', 'collapsed') } catch (e) { }
            </script>
        </div>

        <!-- /section:basics/sidebar -->
        <div class="main-content">
            <!-- #section:settings.box -->
            <%--<div class="ace-settings-container" id="ace-settings-container">
                <div class="btn btn-app btn-xs btn-warning ace-settings-btn" id="ace-settings-btn" style="display: none">
								<i class="ace-icon fa fa-cog bigger-130"></i>
							</div>

							<div class="ace-settings-box clearfix" id="ace-settings-box">
								<div class="pull-left width-50">
									<!-- #section:settings.skins -->
									<div class="ace-settings-item">
										<div class="pull-left">
											<select id="skin-colorpicker" class="hide">
												<option data-skin="no-skin" value="#438EB9">#438EB9</option>
												<option data-skin="skin-1" value="#222A2D">#222A2D</option>
												<option data-skin="skin-2" value="#C6487E">#C6487E</option>
												<option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
											</select>
										</div>
										<span>&nbsp; Choose Skin</span>
									</div>

									<!-- /section:settings.skins -->

									<!-- #section:settings.navbar -->
									<div class="ace-settings-item">
                                    <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-navbar" checked="checked" />
                                    <label class="lbl" for="ace-settings-navbar">Fixed Navbar</label>
									</div>

									<!-- /section:settings.navbar -->

									<!-- #section:settings.sidebar -->
									<div class="ace-settings-item">
                                    <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-sidebar" checked="checked" />
                                    <label class="lbl" for="ace-settings-sidebar">Fixed Sidebar</label>
									</div>

									<!-- /section:settings.sidebar -->

									<!-- #section:settings.breadcrumbs -->
									<div class="ace-settings-item">
										<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-breadcrumbs" />
                                    <label class="lbl" for="ace-settings-breadcrumbs">Fixed Breadcrumbs</label>
									</div>

									<!-- /section:settings.breadcrumbs -->

									<!-- #section:settings.rtl -->
									<div class="ace-settings-item">
										<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-rtl" />
                                    <label class="lbl" for="ace-settings-rtl">Right To Left (rtl)</label>
									</div>

									<!-- /section:settings.rtl -->

									<!-- #section:settings.container -->
									<div class="ace-settings-item">
										<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-add-container" />
										<label class="lbl" for="ace-settings-add-container">
											Inside
											<b>.container</b>
										</label>
            </div>

									<!-- /section:settings.container -->
                            </div>
                            <!-- /.pull-left -->

								<div class="pull-left width-50">
									<!-- #section:basics/sidebar.options -->
									<div class="ace-settings-item">
										<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-hover" />
                                    <label class="lbl" for="ace-settings-hover">Submenu on Hover</label>
            </div>

									<div class="ace-settings-item">
										<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-compact" />
                                    <label class="lbl" for="ace-settings-compact">Compact Sidebar</label>
        </div>

									<div class="ace-settings-item">
										<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-highlight" />
                                    <label class="lbl" for="ace-settings-highlight">Alt. Active Item</label>
        </div>

									<!-- /section:basics/sidebar.options -->
                            </div>
                            <!-- /.pull-left -->
                        </div>
                        <!-- /.ace-settings-box -->
            </div>--%>
            <!-- /.ace-settings-container -->
            <!-- /section:settings.box -->

            <div class="embed-responsive">
                <iframe id="funcFrame" name="funcFrame" allowtransparency="true" src="manageMain.aspx" class="embed-responsive-item"></iframe>
            </div>


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

    <!-- basic scripts -->

    <!--#include file="../Css/foot.htm"-->
    <script src="../Js/jquery.ztree.core.js"></script>
    <script src="../Js/user.js"></script>
    <script type="text/javascript">
        jQuery(function ($) {

            $(".edituser").click().fancybox({
                'width': 767,
                'height': 720,
                autoSize: false,
                'hideOnOverlayClick': false,
                'transitionIn': 'elastic',
                'transitionOut': 'fade',
                'type': 'iframe',
                'padding': '0',
                'href':'UserInfo.aspx?mode=edit'
            });
            $("#static").click().fancybox({
                'width': 760,
                'height': 600,
                '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'
            });
            //iframe自适应高度
            $(".embed-responsive").css("padding-bottom", $(window).height() - 45);
            $(".tree").css("max-height", $(window).height() - 115);
            $(window).resize(function () {
                $(".embed-responsive").css("padding-bottom", $(window).height() - 45);
                $(".tree").css("max-height", $(window).height() - 115);
            });
            
        });

    </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);
        });    
    </script>

</body>
</html>

