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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="../UIControls/PopupPanel.ascx" TagName="PopupPanel" TagPrefix="uc15" %>
<%@ Register Src="~/UIControls/Methodology/AvailabilityGrid.ascx" TagPrefix="uc1" TagName="AvailabilityGrid" %>
<%@ Register Src="~/UIControls/PopupsHandler.ascx" TagPrefix="uc1" TagName="PopupsHandler" %>
<%@ 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();
            window.parent.location.href = window.parent.location.href;
        }

        function cb2() {
            parent.$.colorbox.close();

        }

    </script>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="cm" runat="server">
    <uc1:MessageBox runat="server" ID="u_M" />
    <div style="height: 5px;"></div>
    <table>
        <tr>
            <td>
                <uc1:PopupsHandler runat="server" ID="ph_Users" />
            </td>
        </tr>
        <tr>


            <td>
                <uc1:AvailabilityGrid runat="server" ID="u_Grid" Visible="false" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Panel ID="p" runat="server" Visible="false">
                    <asp:Button ID="btn_OK" runat="server" OnClick="OnSave" />
                    <asp:Button ID="btn_Cancel" runat="server" OnClick="OnClose" />
                </asp:Panel>
            </td>
        </tr>
    </table>

    <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="btn_pHandler" runat="server" Style="display: none;" />
    <asp:Panel ID="Pxc" 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>

            <uc15:PopupPanel ID="usc_PP" runat="server" />

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

</asp:Content>
