<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Catalogs.aspx.cs" Inherits="BookDemo.QA.Admin.Catalogs" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script language="javascript" type="text/javascript">    
 <!--
    //是否删除确认
    function sureDelete()
    {
        return confirm('确认删除选中的目录吗？其下所有的目录也将被删除，当下属有提问存在时将无法删除！');
    }
-->
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:Panel ID="panNew" runat="server" GroupingText="选项">
    <asp:DropDownList ID="ddlCatalogs" runat="server">
    </asp:DropDownList>
    <asp:Button ID="btnEdit" runat="server" Text="编辑" OnClick="btnEdit_Click" />
    <asp:Button ID="btnAdd" runat="server" Text="新建目录" OnClick="btnAdd_Click" />
    <asp:Button ID="btnDelete" runat="server" Text="删除" OnClientClick="return sureDelete();"
        OnClick="btnDelete_Click" />
    <asp:Label ID="lblMsg" runat="server" ForeColor="Red"></asp:Label>
</asp:Panel>
<asp:Panel ID="panEdit" runat="server" GroupingText="新增">
    ID：<asp:Label ID="lblCatalogId" runat="server" Text="0"></asp:Label>
    &nbsp; 上级目录：<asp:Label ID="lblParentCatalog" runat="server" Text="根目录"></asp:Label>
    (<asp:Label ID="lblParentCatalogId" runat="server" Text="0"></asp:Label>)&nbsp;<br />
    名称：<asp:TextBox ID="txtName" runat="server" Width="105px" Style="margin-bottom: 0px"></asp:TextBox>
    &nbsp; 排序：<asp:TextBox ID="txtOrder" runat="server" Width="43px"></asp:TextBox>
    &nbsp;<br />
    <asp:Button ID="btnSubEdit" runat="server" Text="确认" OnClick="btnSubEdit_Click" />
    <asp:Button ID="btnCancel" runat="server" OnClick="btnCancel_Click" Text="取消" />
</asp:Panel>
</asp:Content>
