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

<%@ Register Src="../../UIControls/Header.ascx" TagName="Header" TagPrefix="uc2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="../../UIControls/RisksControls/SearchCriteriaItems.ascx" TagName="SearchCriteriaItems"
    TagPrefix="uc4" %>
<%@ Register Src="../../UIControls/RisksControls/MultiSelectRiskResults.ascx" TagName="MultiSelectRiskResults"
    TagPrefix="uc5" %>
<%@ Register Src="../../UIControls/MessageBox.ascx" TagName="MessageBox" TagPrefix="uc6" %>
<%@ Register Src="~/UIControls/Assessment/UsersEmailsInvitationControl.ascx" TagName="UsersEmailsInvitationControl"
    TagPrefix="uc7" %>
<%@ Register Src="../../UIControls/PopupPanel.ascx" TagName="PopupPanel" TagPrefix="u10" %>
<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>
            <uc2:Header ID="usc_Header" runat="server" />
            <asp:Literal ID="lit_script" runat="server"></asp:Literal>
            <div>

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

            </div>
            <asp:MultiView ID="muv_Root" runat="server">
                <asp:View ID="view_Search" runat="server">
                    <table style="width: 100%">
                        <tr>
                            <td>
                                <table style="width: 100%">
                                    <tr>
                                        <td>
                                            <asp:Label ID="lbl_InvLinkInfo" runat="server" Font-Bold="True"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lbl_Links" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <hr runat="server" class="ee" id="hr_Links" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Panel ID="pnS" runat="server">
                                                <asp:Label ID="lbl_Info" runat="server" ForeColor="Green" Text="Use this section to send self risk assessment invitation(s) will only link those invitation(s) to risks"></asp:Label>
                                                <hr class="ee" />
                                                <table>
                                                    <tr>
                                                        <td>
                                                            <asp:ImageButton ID="i_1" runat="server" ImageUrl="~/images/numbers/1.png" />
                                                        </td>
                                                        <td></td>
                                                        <td>
                                                            <asp:Label ID="lbl_SearchInfo" runat="server" Text="Use filters and click on 'Search Button'"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:LinkButton ID="btn_Search" runat="server" Text="Search"></asp:LinkButton>
                                                            |
                                                        </td>
                                                        <td>
                                                            <asp:LinkButton ID="btn_Clear" runat="server" ForeColor="Green" Text="Clear"></asp:LinkButton>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <uc4:SearchCriteriaItems ID="m" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <hr class="ee" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Panel ID="pnS2" runat="server" Visible="False">
                                    <asp:Button ID="btn_BackToSearch" runat="server" Text="Back to search " Visible="False" />
                                    <table>
                                        <tr>
                                            <td>
                                                <asp:ImageButton ID="i_2" runat="server" ImageUrl="~/images/numbers/2.png" />
                                            </td>
                                            <td>
                                                <asp:Label ID="lbl_StepTwoInfo" runat="server" Text="Select risk(s) and click 'Continue Button'"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:LinkButton ID="btn_Continue" runat="server"></asp:LinkButton>
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <uc5:MultiSelectRiskResults ID="RS" runat="server" Visible="False" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <hr class="ee" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table runat="server" id="tb_StepThree" visible="false">
                                    <tr>
                                        <td>
                                            <asp:ImageButton ID="i_3" runat="server" ImageUrl="~/images/numbers/3.png" />
                                        </td>
                                        <td>
                                            <asp:Label ID="lbl_StepThreeInfo" runat="server" Text="Select Email Template & Users then click 'Send Invitation(s) Button'"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:LinkButton ID="btn_SendAlerts2" runat="server"></asp:LinkButton>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <uc7:UsersEmailsInvitationControl ID="usc_RC" runat="server" Visible="False" />
                            </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>
                            <u10:PopupPanel ID="usc_PP" runat="server" />
                            <div class="divpok">
                                <asp:Button ID="btn_POK" runat="server" />
                            </div>

                        </div>
                    </asp:Panel>
                </asp:View>
                <asp:View ID="view_SentAlerts" runat="server">
                    <table>
                        <tr>
                            <td colspan="2"></td>
                        </tr>
                        <tr>
                            <td colspan="2" style="text-align: center">
                                <asp:Table ID="tbl_Contacts" runat="server">
                                </asp:Table>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" style="text-align: center"></td>
                        </tr>
                        <tr>
                            <td colspan="2" style="text-align: center">
                                <asp:Label ID="lbl_Details" runat="server" Font-Bold="True" ForeColor="#666666" Text="Thank you for taking the time to complete this online assessment alert. Please use the menu to the left to navigate around the system"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>&nbsp;
                            </td>
                            <td>&nbsp;
                            </td>
                        </tr>
                    </table>
                </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"
                                PathSeparator="|" ShowCheckBoxes="All" EnableClientScript="False" PopulateNodesFromClient="False">
                            </asp:TreeView>
                        </div>
                        <br />
                    </asp:Panel>
                    <br />
                    <div class="footer">
                        <asp:Button ID="btn_TreeOK" runat="server" />
                    </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" />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
