<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DocNav.aspx.cs" Inherits="oa.Doc.DocNav" %>


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     
 <link href="../style/patch.css" rel="stylesheet" />

</head>

    
<body  style="background-color:#e5e5e5; margin:0px; padding:0px;"  onload="Left_Load();">

    
    <script src="../javascript/jquery-1.9.1.min.js"></script>
    <link href="../style/Tree/bootstrap-treeview.min.css" rel="stylesheet" />
    <script src="../style/Tree/bootstrap-treeview.min.js"></script>
       
    <script>

        function Left_Load() {
          window.open("/oa/doc/DocList.aspx", "main");
        }

    </script>


    <form id="form1" runat="server">
   

        <style>
            #tree li {
             font-size:13px; line-height:13px;
            }
        </style>



<div class="sidebar" id="sidebar">	
					 
					<div id="nav_head" class="text-center"  >
							<span class="menu-text">文档中心</span>
					</div>



    <div id="tree"></div>








     







    <script>
 

 

      

        $(document).ready(function ()
        {


            var aj = $.ajax({
                url: 'treejson.aspx',  
                cache: false,
                dataType: 'json',
                success: function (datasource) {
                    $('#tree').treeview({
                        levels: 2, data: datasource, enableLinks: false,
                        onNodeSelected: function (event, key) {
                            window.open(key.href,"main")
                        }
                    });
                },
                error: function () { 
                    alert("异常！");
                }
            });



        } );

    </script>
     

</div>
         

         


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