<%@ Page Language="C#" AutoEventWireup="false" MasterPageFile="~/SiteMaster.Master"
    Theme="Main_Theme" CodeBehind="DepartmentSectionPage.aspx.cs" MaintainScrollPositionOnPostback="true"
    Inherits="MKInsight.Online.RRAM2.DepartmentSectionPage" %>

<%@ Register Src="../UIControls/Header.ascx" TagName="Header" TagPrefix="uc1" %>
<%@ Register Src="../UIControls/MessageBox.ascx" TagName="MessageBox" TagPrefix="uc2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="../UIControls/PopupsHandler.ascx" TagName="PopupsHandler" TagPrefix="uc4" %>
<%@ Register Src="../UIControls/PopupPanel.ascx" TagName="PopupPanel" TagPrefix="uc5" %>
<%@ Register Assembly="UIWebControls" Namespace="UIWebControls" TagPrefix="cc4" %>
<%@ Register Src="~/UIControls/Interface/TextBoxEx.ascx" TagPrefix="uc1" TagName="TextBoxEx" %>
<%@ Register Src="~/UIControls/Interface/MultilineTextBoxEx.ascx" TagPrefix="uc1" TagName="MultilineTextBoxEx" %>


<%@ Register Src="../UIControls/Interface/CheckBoxEX.ascx" TagName="CheckBoxEX" TagPrefix="uc3" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="c_M" runat="server">
    <asp:UpdatePanel ID="up_n" runat="server">
        <ContentTemplate>
            <uc1:Header ID="usc_Header" runat="server" />

            <uc2:MessageBox ID="usc_M" runat="server" />

            <asp:Panel ID="tbM" runat="server" CssClass="w-bar">

                <asp:LinkButton runat="server" ID="tbl_NewDp" CssClass="w-button" Style="background: url(../images/add32.png); ">
                    <asp:Label ID="tbl_NewDpLabel" runat="server"></asp:Label>

                </asp:LinkButton>

                <asp:LinkButton runat="server" ID="tbl_NewSec" CssClass="w-button" Style="background: url(../images/add32.png); ">
                    <asp:Label ID="tbl_NewSecLabel" runat="server"></asp:Label>

                </asp:LinkButton>
                                                
                <asp:LinkButton runat="server" ID="tbl_Expand" CssClass="w-button" Style="background: url(../images/expand32.png); ">
                    <asp:Label ID="tbl_ExpandLabel" runat="server"></asp:Label>

                </asp:LinkButton>

                <asp:LinkButton runat="server" ID="tbl_Collapse" CssClass="w-button" Style="background: url(../images/collapse32.png); ">
                    <asp:Label ID="tbl_CollapseLabel" runat="server"></asp:Label>

                </asp:LinkButton>


            </asp:Panel>

            <table id="tb1" runat="server" style="width: 100%">

                <tr>
                    <td class="left" style="width: 290px; vertical-align: top;">
                        <cc4:StatefullScrollPanel ID="pt" runat="server" BorderColor="Silver" BorderStyle="Solid"
                            BorderWidth="1px" Height="450px" ScrollBars="Both" Width="300px" Visible="true">
                            <asp:TreeView ID="ds_Tree" runat="server" PopulateNodesFromClient="false" EnableClientScript="false"
                                PathSeparator="|" AutoGenerateDataBindings="False">
                            </asp:TreeView>
                        </cc4:StatefullScrollPanel>
                    </td>
                    <td class="left" colspan="2" style="vertical-align: top;">
                        <asp:Panel ID="pv" runat="server" Visible="False">
                            <div style="display: block;">
                                <table>
                                    <tr>
                                        <td>
                                            <uc1:TextBoxEx runat="server" ID="u_Ref" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <uc1:TextBoxEx runat="server" ID="u_Name" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <uc1:MultilineTextBoxEx runat="server" ID="u_Desc" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>

                                            <uc3:CheckBoxEX ID="u_Archived" runat="server" />

                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <uc4:PopupsHandler ID="ph_D" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <hr class="ee" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" class="left">
                                            <asp:Button ID="btn_Add" runat="server" Text="Add" Font-Bold="true" />
                                            <asp:Button ID="btn_Update" runat="server" Text="Update" Font-Bold="true" />
                                            <asp:Button ID="btn_Cancel" runat="server" Text="Cancel" />
                                            <span class="tab"></span>
                                            <asp:Button ID="btn_Delete" runat="server" Text="Delete" ForeColor="Red" />
                                        </td>
                                    </tr>

                                </table>
                            </div>
                        </asp:Panel>
                    </td>
                </tr>
            </table>
            <asp:Button ID="btn_pHandler" runat="server" Text="Button" Style="display: none;" />
            <asp:Panel ID="p" runat="server" CssClass="frame" Style="display: none;">
                <div class="overlay">
                    <div style="float: right; margin-top: -28px; margin-right: -10px;">
                        <asp:ImageButton ID="ImageButton1" ImageUrl="~/images/jq/close.png" runat="server" />
                    </div>
                    <div class="floatright">
                        <asp:Button ID="btn_TopOK" runat="server" OnClick="OnOK" />
                    </div>
                    <uc5:PopupPanel ID="usc_PP" runat="server" />
                    <div class="divpok">
                        <asp:Button ID="btn_POK" runat="server" />
                    </div>
                </div>
            </asp:Panel>
            <cc1:ModalPopupExtender ID="mdp" runat="server" TargetControlID="btn_pHandler" PopupControlID="P"
                BackgroundCssClass="modalBackground">
            </cc1:ModalPopupExtender>
            <cc1:DragPanelExtender ID="dpE" runat="server" DragHandleID="pnlHeader" TargetControlID="p" />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
