<%@ Page Title="" Language="C#" MasterPageFile="~/EmptyAjaxMaster.Master" AutoEventWireup="true" CodeBehind="NewActionTreeSelectionPage.aspx.cs" Inherits="MKInsight.Online.ActionTracking.TrackingPages.NewActionTreeSelectionPage" %>

<%@ Register Src="~/UIControls/PopupsHandler.ascx" TagPrefix="uc1" TagName="PopupsHandler" %>
<%@ Register Src="~/UIControls/Interface/TextBoxEx.ascx" TagPrefix="uc1" TagName="TextBoxEx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="../UIControls/PopupPanel.ascx" TagName="PopupPanel" TagPrefix="uc15" %>
<%@ Register Src="~/UIControls/MessageBox.ascx" TagPrefix="uc1" TagName="MessageBox" %>


<asp:Content ID="Content1" ContentPlaceHolderID="h" runat="server">

    <script type="text/javascript">

        function cb() {
            parent.$('').colorbox.close();

        }

    </script>


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cm" runat="server">

    <uc1:MessageBox runat="server" ID="u_M" />
    <asp:Button ID="btn_pHandler" runat="server" Text="Button" Style="display: none;" />

    <asp:Panel ID="pnlHeader" runat="server" CssClass="header">
        <asp:Label ID="lbl_MS" runat="server" CssClass="msg" />
    </asp:Panel>

      <div class="floatright">
        <asp:Button ID="btn_OK2" runat="server" OnClick="OnNewClick" Enabled="false" />
        <asp:Button ID="btn_Cancel2" runat="server" OnClientClick="cb();return false;" />
    </div>

    <table>
        <tr>
            <td>
                <asp:RadioButtonList ID="rb" runat="server" AutoPostBack="true" OnSelectedIndexChanged="OnSelectItemChanged">
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td>
                <uc1:PopupsHandler runat="server" ID="ph_Type" />
            </td>

        </tr>
        <tr>
            <td>
                <uc1:TextBoxEx runat="server" ID="u_Name" />

            </td>
        </tr>
        <tr>
            <td>
                <asp:Panel ID="pt" runat="server" ScrollBars="Both" Height="400" Width="800">
                    <asp:TreeView ID="t" runat="server" OnTreeNodePopulate="PopulateNode" OnSelectedNodeChanged="OnSelectedNode">
                    </asp:TreeView>
                </asp:Panel>

            </td>

        </tr>

        <tr>
            <td>
                <asp:ListBox ID="lst" runat="server" Height="400" Width="100%" Style="border: 0px;"
                    AutoPostBack="True" OnSelectedIndexChanged="OnSelectedItem"></asp:ListBox>

            </td>

        </tr>
    </table>

    <div class="divpok">
        <asp:Button ID="btn_OK" runat="server" OnClick="OnNewClick" Enabled="false" />
        <asp:Button ID="btn_Cancel" runat="server" OnClientClick="cb();return false;" />
    </div>
    
    <cc1:ModalPopupExtender ID="mdp" runat="server" TargetControlID="btn_pHandler" PopupControlID="Pxc"
        BackgroundCssClass="modalBackground" >
    </cc1:ModalPopupExtender>
    <cc1:DragPanelExtender ID="dpE" runat="server" DragHandleID="pnlHeader" TargetControlID="pxc" />
    <asp:Button ID="Button1" runat="server" Style="display: none;" />
    <asp:Panel ID="Pxc" runat="server" CssClass="frame" Style="display: none;">
        <div class="overlay">
            <div style="float: right;">
                <asp:Button ID="btn_TopOK" runat="server" OnClick="OnOK" />
            </div>
            <uc15:PopupPanel ID="usc_PP" runat="server" />
            <asp:Panel ID="p_t" runat="server" Height="400px" ScrollBars="Both">
                <asp:TreeView ID="PoupTree" runat="server" ExpandDepth="1" OnTreeNodePopulate="PopulateNode"
                    PathSeparator="|" ShowCheckBoxes="All" EnableClientScript="False" PopulateNodesFromClient="False">
                </asp:TreeView>
            </asp:Panel>

            <div class="divpok">
                <asp:Button ID="btn_POK" runat="server" OnClick="OnOK" />
            </div>


        </div>
    </asp:Panel>

</asp:Content>
