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

<%@ Register Assembly="MKinsight.Online.UIServices" Namespace="Geekees.Common.Controls" TagPrefix="ct" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="../UIControls/TimeRecording/Projects/ProjectGridList.ascx" TagName="ProjectGridList"
    TagPrefix="uc1" %>
<%@ Register Src="../UIControls/PopupPanel.ascx" TagName="PopupPanel" TagPrefix="uc5" %>
<%@ Register Src="../UIControls/PopupsHandler.ascx" TagName="PopupsHandler" TagPrefix="uc3" %>

<%@ Register Src="../UIControls/Interface/SimpleSectionBreak.ascx" TagName="SimpleSectionBreak" TagPrefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="h" runat="server">
    <script type="text/javascript" src="../scripts/jquery/jquery_min.js"></script>
    <link rel="stylesheet" type="text/css" href="../scripts/ASTJavascript/astreeview/astreeview.css" />
    <link rel="stylesheet" type="text/css" href="../scripts/ASTJavascript/asdropdowntreeview/dropdowntreeview.css" />
    <script type="text/javascript" src="../scripts/ASTJavascript/astreeview/astreeview_packed.js"></script>

    <script type="text/javascript">

        function cb() {
            parent.$.colorbox.close();
            $('[id*=btn_partial_refresh]', parent.document).click();
        }

    </script>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="cm" runat="server">
    <table style="width: 100%">
        <tr>
            <td colspan="2">

                <uc2:SimpleSectionBreak ID="lbl_Filters" runat="server" />

            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbl_PU" runat="server"></asp:Label>
            </td>
            <td>
                <ct:ASDropDownTreeView ID="ast_p" runat="server" BasePath="~/scripts/ASTJavascript/astreeview/"
                    DataTableRootNodeValue="0" EnableRoot="false" EnableNodeSelection="false" EnableCheckbox="true"
                    EnableTreeLines="true" EnableNodeIcon="true" EnableCustomizedNodeIcon="false"
                    EnableContextMenu="false" EnableDebugMode="false" EnableAjaxOnEditDelete="true"
                    LoadNodesProvider="ProjectSelectionPage.aspx" AdditionalLoadNodesRequestParameters="{'p':'ajaxLoad'}"
                    EnableParentNodeExpand="true" EnableHorizontalLock="true" EnableContainerDragDrop="false"
                    EnableDragDrop="false" InitialDropdownText="< All >" Width="400" MaxDropdownHeight="300" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbl_Status" runat="server"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="drp_Status" runat="server" Width="402px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbl_Ref" runat="server"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txt_Ref" runat="server" Width="399px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td></td>
            <td>

                <asp:Button ID="btn_FindProject" runat="server" OnClick="OnFindProjects" />
                &nbsp;<asp:Button ID="btn_Clear" runat="server" OnClick="OnClear" />

            </td>
        </tr>
        <tr>
            <td colspan="2">&nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="2">

                <uc2:SimpleSectionBreak ID="lbl_Audits" runat="server" />

            </td>
        </tr>

        <tr>
            <td colspan="2">
                <uc1:ProjectGridList ID="u_pr" runat="server" />
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <hr class="ee" />
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <div class="divfright">
                    <asp:Button ID="btn_OK" runat="server" OnClick="OnAddProject" Enabled="false" />
                </div>
            </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">
            <asp:Panel ID="pnlHeader" runat="server" CssClass="header">
                <asp:Label ID="lbl_MS" runat="server" CssClass="msg" Text="Select from the list of available items" />
                <asp:LinkButton ID="lnkClose" runat="server" CssClass="close" OnClientClick="$find('popup').hidePopup(); return false;" />
            </asp:Panel>
            <asp:Panel ID="PB" runat="server" CssClass="body">
                <uc5:PopupPanel ID="usc_PP" runat="server" />
            </asp:Panel>
            <div class="footer">
                <asp:Button ID="btn_POK" runat="server" Text="ok" Width="70px" />
                <asp:Button ID="btn_PCancel" runat="server" Text="cancel" Width="70px" />
            </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" />
</asp:Content>
