<%@ Control Language="VB" AutoEventWireup="false" CodeFile="FoldersTree.ascx.vb" Inherits="FoldersTree" %>
<script language="javascript" type="text/javascript">
function confirmFolderDelete()
{
    return confirm('Delete this folder?\n\n(All documents will be moved to the Unassigned folder.\nAll subfolders will be moved to the Root.)')
}
</script>
<table border="1" cellspacing="0" cellpadding="5">
    <tr>
        <td>
            <asp:Label ID="foldersLabel" runat="server" EnableViewState="False" Text="Folders" Font-Bold="True"></asp:Label>&nbsp;<br />
            <br />
            <asp:Panel ID="folderTreePanel" runat="server" Height="310px" Width="320px" ScrollBars="Vertical" OnScroll="savePosition(this)">
                <div class="treeViewNode">
                    <asp:TreeView ID="foldersTreeView" runat="server" Height="310px" Width="320px" AutoGenerateDataBindings="False" Font-Names="Verdana" Font-Size="Small" NodeWrap="True" PopulateNodesFromClient="False" NodeIndent="10" ShowLines="True">
                        <SelectedNodeStyle HorizontalPadding="0px" VerticalPadding="0px" Font-Underline="False" Font-Bold="True" />
                        <NodeStyle BackColor="White" Font-Names="Tahoma" Font-Size="8pt" ForeColor="Black" HorizontalPadding="2px" NodeSpacing="0px" VerticalPadding="2px" />
                        <ParentNodeStyle Font-Bold="False" ImageUrl="folderopen.JPG" />
                        <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
                        <RootNodeStyle ImageUrl="folderopen.JPG" />
                        <LeafNodeStyle ImageUrl="folderopen.JPG" />
                    </asp:TreeView>
                </div>
            </asp:Panel>       
            <br />
            <asp:Button ID="newButton" runat="server" Text="New" CausesValidation="False" EnableTheming="False" EnableViewState="False" />
            <asp:Button ID="deleteButton" runat="server" Text="Delete" CausesValidation="False" EnableTheming="False" EnableViewState="False" Enabled="False" OnClientClick="return confirmFolderDelete();" />
        </td>
    </tr>
</table>
