<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="documentleft.aspx.cs" Inherits="Us.Web.admin.document.documentleft" %>


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1" />
<title>目录导航-选择目录</title>

 <link href="../style/default/style.css" rel="stylesheet" type="text/css" />
<%=ImportScriptStr %>
<script language="javascript" src="/admin/js/System.js" type="text/javascript"></script>
<script language="javascript" src="js/0451skyMyDocument.js"></script>
<%--<link rel="StyleSheet" href="/admin/js/tree/dtree.css" type="text/css" />
<script type="text/javascript" src="/admin/js/tree/dtree.js"></script>
<script src="../js/jquery/jquery.js" type="text/javascript"></script>--%>

<link rel="stylesheet" href="../mtree/css/zTreeStyle/zTreeStyle.css" type="text/css">
<script type="text/javascript" src="../mtree/js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="../mtree/js/jquery.ztree.core-3.5.js"></script>
<script type="text/javascript" src="../mtree/js/jquery.ztree.excheck-3.5.js"></script>
<script type="text/javascript" src="../mtree/js/jquery.ztree.exedit-3.5.js"></script>

    <SCRIPT type="text/javascript">
		<!--
    var setting = {

        view: {
            dblClickExpand: false,
            showLine: true
        },
        data: {
            simpleData: {
                enable: true
            }
        }
    ,
        callback: {
            onClick: onClick
        }
    };

   <% =TreeHTML %>

        function onClick(e, treeId, treeNode) {
            if (treeNode.id != "1000") {
                var zTree = $.fn.zTree.getZTreeObj("treeDemo");
                zTree.expandNode(treeNode);
            }
            //var zTree = $.fn.zTree.getZTreeObj("treeDemo");
            //zTree.expandNode(treeNode);
        }

        $(document).ready(function () {
            $.fn.zTree.init($("#treeDemo"), setting, zNodes);
            //$("#callbackTrigger").bind("change", {}, setTrigger);
        });
        //-->
	</SCRIPT>
   
    <%-- <style type="text/css">
.ztree li span.button.switch.level0 {visibility:hidden; width:1px;}
.ztree li ul.level0 {padding:0; background:none;}
	</style>--%>
 <script language="javascript" type="text/javascript" >
     function AutoHeight() {
         var h = $(window).height() - 90;
         $("#ScroLeft").height(h);
     }
     $(window).resize(function () {
         AutoHeight();
     });

     $(document).ready(function () {
         AutoHeight();
     });
</script>

</head>
<body>
<form id="Form1" method="post" runat="server">
  <table width="100%" border="0" cellpadding="0" cellspacing="0" height="100%">
    <tr>
      <td width="220" valign="top"><div class="divTbg">
          <div class="divTbgL"></div>
          <div class="divTbgInfo">
            <div class="divTbgTitle">目录导航</div>
          </div>
        </div>
        <div class="divTbgF"></div>
        <div class="divSearchBoth">
          <div class="divInfo careffdivheight" align="center">
              点击目录名，在右侧操作
          </div>
          <div class="divInfo">
            <div class="divAutoHeight" id="ScroLeft" style="overflow:auto;"><ul id="treeDemo" class="ztree"></ul></div>
          </div>
        </div></td>
      <td valign="top">         
          <iframe  width="100%" height="100%" id="frameright" name="maininfo" src="DocumentList.aspx?path=<%=sPath %>" frameborder="0"
                    scrolling="auto"></iframe></td>
    </tr>
  </table>
</form>
</body>
</html>