<%@ page language="C#" autoeventwireup="true" inherits="ims.selectDir, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<!DOCTYPE html>
<html id="selectDir">
<head runat="server">
    <title>选择目录</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width,initial-scale=1">
    <base target="_self" />
</head>
<body>
    <form id="form1" runat="server" class="sm">
        <div title="提示：可双击选定目录。">        
            <asp:TreeView ID="dirTree" CssClass="tree middle" SkipLinkText="" LineImagesFolder="images/tree" SelectedNodeStyle-CssClass="selected" ExpandDepth="2" NodeStyle-HorizontalPadding="2" runat="server" ShowLines="true">
                <Nodes>
                    <asp:TreeNode Text="目录" Selected="true" Value="0" NavigateUrl="javascript:s(0)"></asp:TreeNode>
                </Nodes>
            </asp:TreeView>
        </div>
        <div runat="server" id="ment" class="lightarea infoico gray mtop_n pconly"></div>
        <div class="footBtnArea"><input type="button" value="确定" class="btn" onclick="SelectOK()" /></div>
    <script src="js/comm.js"></script>
    <script>
        var dirid = 0, dirName = "　";
        $(function () {
            dirName = $("#dirTreet0").text();
            $("a[href^='javascript:s']").click(function () { dirName = $(this).text();}).dblclick(SelectOK);
        });
        function s(clickedid) {
            dirid = clickedid;
            $(".selected").removeClass("selected");
            $("a[href$='s(" + clickedid + ")']").addClass("selected");
        }
        function SelectOK() {
            var win = window.dialogArguments || opener;
            try {
                win.SelectedDir(dirid, dirName);
                back();
            } catch (e) { }
        }
    </script>
    </form>
</body>
</html>