<%@ Page Title="" Language="C#" MasterPageFile="~/SiteMaster.Master" AutoEventWireup="true" CodeBehind="CreateReportPage.aspx.cs" Inherits="MKInsight.Online.ActionTracking.Reports.MKTextReports.CreateReportPage" %>

<%@ Register Src="../../UIControls/Header.ascx" TagName="Header" TagPrefix="uc2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="../../UIControls/PopupPanel.ascx" TagName="PopupPanel" TagPrefix="uc3" %>
<%@ Register Src="../../UIControls/MessageBox.ascx" TagName="MessageBox" TagPrefix="uc4" %>

<%@ Register Src="../../UIControls/TrackingControls/SearchControl.ascx" TagName="SearchControl" TagPrefix="uc1" %>

<%@ Register src="../../UIControls/EntityLibrary/EntityFilterControl.ascx" tagname="EntityFilterControl" tagprefix="uc5" %>

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

    <script type='text/javascript' src="../../scripts/jquery/jquery_min.js"></script>
    <script type='text/javascript' src="../../scripts/jquery/jquery.box-min.js"></script>

    <link rel="stylesheet" type="text/css" href="../../scripts/jquery/jqbox.css" />
    <script type="text/javascript" src="../../scripts/ASTJavascript/astreeview/astreeview_packed.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" />
</asp:Content>

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

    <asp:UpdatePanel ID="pw" runat="server">
        <ContentTemplate>

            <uc2:Header ID="usc_Header" runat="server" />

            <asp:MultiView ID="mp" runat="server">
                <asp:View ID="mv" runat="server">
                    <table style="width: 100%">
                        <tr>
                            <td>
                                <table style="width: 100%">
                                    <tr>
                                        <td colspan="2">
                                            <uc4:MessageBox ID="usc_M" runat="server" />
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>&nbsp;</td>
                                        <td>
                                            <div class="divfright">

                                                <asp:Button ID="btn_Back" runat="server" Visible="false" OnClick="OnBack"  />
                                                <asp:Button ID="btn_Next" runat="server" OnClick="OnNext" />
                                                <asp:Button ID="btn_Finsh" runat="server" Visible="false" OnClick="OnFinish" />
                                                <asp:Button ID="btn_Cancel" runat="server" OnClick="OnCancel" />

                                            </div>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <hr class="ee" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <uc5:EntityFilterControl ID="u_el" runat="server" Visible="false" />
                                <uc1:SearchControl ID="u_rt" runat="server"  Visible="false"/>

                                <asp:Panel ID="p_f" runat="server">
                                </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>
                            <uc3:PopupPanel ID="usc_PP" runat="server" />
                            <div class="divpok">
                                <asp:Button ID="btn_POK" runat="server" OnClick="OnOK" />
                            </div>
                        </div>
                    </asp:Panel>
                </asp:View>
                <asp:View ID="vtree" runat="server">
                    <asp:Panel ID="pmT" runat="server" Height="400px" ScrollBars="Both">
                        <div style="vertical-align: top;">
                            <asp:TreeView ID="PoupTree" runat="server" ExpandDepth="1" OnTreeNodePopulate="PopulateNode" OnSelectedNodeChanged="OnSelectedNodeChanged"
                                PathSeparator="|" ShowCheckBoxes="All" EnableClientScript="False" PopulateNodesFromClient="False">
                            </asp:TreeView>
                        </div>
                        <br />
                    </asp:Panel>
                    <br />
                    <div class="footer">
                        <asp:Button ID="btn_TreeOK" runat="server" OnClick="OnOK" />
                    </div>
                </asp:View>
            </asp:MultiView>

            <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:UpdateProgress ID="pr" runat="server" DisplayAfter="20">
                <ProgressTemplate>
                    <div class="UpdateProgressBackground">
                        <center>
                            <div class="UpdateProgressContent">
                                <h3>
                                    <asp:Label ID="lbl_Wait" runat="server"></asp:Label></h3>
                                <br />
                                <img src="~/images/ajax.gif" alt="" runat="server" />
                            </div>
                        </center>
                    </div>
                </ProgressTemplate>
            </asp:UpdateProgress>


            <asp:Button ID="btn_SaveM" runat="server" Text="Button" Style="display: none;" />
            <asp:Panel ID="pnl_SaveM" runat="server">
                <div class="overlay">
                    <asp:Panel ID="pnlHeader" runat="server" CssClass="header">
                        <asp:Label ID="lbl_MS" runat="server" CssClass="msg" Text="Save Report" />
                    </asp:Panel>
                    <asp:Panel ID="PB" runat="server" CssClass="body">
                        <asp:Panel ID="pnl_L" runat="server" ScrollBars="Vertical">
                            <table>
                                <tr>
                                    <td>
                                        <asp:Label ID="lbl_Name" runat="server"></asp:Label>
                                        <asp:Label ID="Label1" runat="server" ForeColor="Red" Text="*"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_Name" runat="server" Width="300px"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfv_Name" runat="server" ControlToValidate="txt_Name"
                                            Display="None" ErrorMessage="Please entre name." ValidationGroup="Reports"></asp:RequiredFieldValidator>
                                        <cc1:ValidatorCalloutExtender ID="vce_Name" runat="server" TargetControlID="rfv_Name"></cc1:ValidatorCalloutExtender>

                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <asp:CheckBox ID="mki_SetAsGlobal" runat="server" />

                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <asp:Label ID="lbl_M_Info" runat="server"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <hr class="ee" />
                                    </td>
                                </tr>

                            </table>
                        </asp:Panel>
                    </asp:Panel>
                    <div class="footer">
                        <asp:Button ID="btn_SaveReport" runat="server" OnClick="OnSaveReport" />
                    </div>
                </div>

            </asp:Panel>
            <cc1:ModalPopupExtender ID="mpd_Report" runat="server" TargetControlID="btn_SaveM" PopupControlID="pnl_SaveM"
                BackgroundCssClass="modalBackground">
            </cc1:ModalPopupExtender>


        </ContentTemplate>

    </asp:UpdatePanel>
</asp:Content>
