<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Administration_AssociateRecipient, App_Web_dwcjs1vn" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>

            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->

                <div class="dashBoardLeftCont" valign="top">
                    <div class="himssuHeader3WireBox">
                        <table width="0px" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="167"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft">
                    <div class="himssuHeader5WireBox  card card-box" id="SearchDiv" runat="server">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="Panel1" runat="server">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="Label3" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                    <div class="fRight mt-27">
                                        <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButton_Click" SkinID="0" CssClass="btn btn-add fas" Text="&#xf067; Add" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="SearchPanel" runat="Server">
                                <div class="contentHolder">

                                    <div class="cBoth">
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="EventLabel" Text="Event" runat="server"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="SearchEventDropdownList" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" CssClass="form-control" runat="Server">
                                                <asp:ListItem Value="0">- ALL -</asp:ListItem>
                                                <asp:ListItem Value="39">Leave</asp:ListItem>
                                                <asp:ListItem Value="69">DSR</asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="Label1" runat="server" Text="Role"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="SearchRoleDropDownList" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                DataTextField="Title" DataValueField="ID" SkinID="CustomWidthTextBox" CssClass="form-control" runat="Server" AutoPostBack="true" OnTextChanged="SearchRoleDropDownList_TextChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="Label4" runat="server" Text="User"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="SearchUserDropDownList" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" CssClass="form-control" runat="Server">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="cBoth">
                                    </div>
                                    <div class="alignCenter pTop5">
                                        <asp:Button ID="SearchButton" runat="Server" OnClick="SearchButton_Click" SkinID="0" CssClass="btn-search btn fas" Text="&#xf002; Search" />
                                        <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" CssClass="btn-reset btn fas" SkinID="0" OnClick="ResetButton_Click" />
                                    </div>
                                    <div id="Div2" class="himssuHeader7WireBox col-md-12" runat="server">
                                        <div id="ListDetailDiv" runat="server" visible="false">
                                            <div class="spacer">
                                                <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" />
                                            </div>
                                            <div class="himsBoxHeader" id="PagerListDiv" visible="false" runat="server">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle" style="width: 99%">
                                                    <div align="right" class="fRight" runat="server" visible="false" style="margin-top: -3px;">
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent">
                                                <div id="Div5" runat="server" class="table-responsive" visible="false">
                                                    <div id="Div4" runat="server" class="table-responsive">
                                                        <asp:GridView ID="MasterGridView" runat="server" AutoGenerateColumns="False"
                                                            CssClass="table table-striped table-bordered table-hover" AllowPaging="false" PagerSettings-Visible="false" EmptyDataText="No Records Found !!"
                                                            DataKeyNames="AutoId" OnPageIndexChanging="MasterGridView_PageIndexChanging">
                                                            <Columns>
                                                                <asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select" OnClick="LinkButton_Click"
                                                                            Text="Select" CausesValidation="false"></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:BoundField DataField="RoleName" HeaderText="Role" HeaderStyle-HorizontalAlign="Left" />
                                                                <asp:BoundField DataField="EventType" HeaderText="Event" HeaderStyle-HorizontalAlign="Left" />
                                                                <asp:BoundField DataField="UserName" HeaderText="User" HeaderStyle-HorizontalAlign="Left" />
                                                                <asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left" HeaderText="Email Id">
                                                                    <ItemTemplate>
                                                                        <%# Eval("EmailIds") != DBNull.Value ?((string)Eval("EmailIds")).Replace(",", ",<br/>"):null %>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left" HeaderText="Mobile">
                                                                    <ItemTemplate>
                                                                        <%# Eval("MobileIds") != DBNull.Value ?((string)Eval("MobileIds")).Replace(",", ",<br/>"):null %>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left" HeaderText="Default Email Id">
                                                                    <ItemTemplate>
                                                                        <%# Eval("DefaultEmailIds") != DBNull.Value ? ((string)Eval("DefaultEmailIds")).Replace(",", ",<br/>"):null%>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left" HeaderText="Default Mobile Id" ControlStyle-CssClass="wordb">
                                                                    <ItemTemplate>
                                                                        <%#  Eval("DefaultMobileIds") != DBNull.Value ?((string)Eval("DefaultMobileIds")).Replace(",", ",<br/>"):null %>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <%--  <asp:BoundField DataField="EmailIds" HeaderText="Email Id" HeaderStyle-Width="5%" ItemStyle-Width="5%" HeaderStyle-HorizontalAlign="Left" ControlStyle-CssClass="wordb" />
                                                                        <asp:BoundField DataField="MobileIds" HeaderText="Mobile" HeaderStyle-HorizontalAlign="Left" />
                                                                      <asp:BoundField DataField="DefaultEmailIds" HeaderText="Default Email Id" HeaderStyle-HorizontalAlign="Left" />
                                                                        <asp:BoundField DataField="DefaultMobileIds" HeaderText="Default Mobile Id" HeaderStyle-HorizontalAlign="Left" />--%>
                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>

                    <div class="himssuHeader1WireBox card card-box" id="DetailDiv" runat="server" visible="false">

                        <div class="himsBoxHeader card-head" id="Div6" runat="server" visible="True">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText fLeft">
                                    <header>
                                        <i class="fas fa-bookmark"></i>
                                        <asp:Label ID="Label2" Text="Associate Recipient"
                                            runat="server" />
                                    </header>
                                </div>
                            </div>

                            <div class="fRight mt-27 pagination display-flex ">

                                <%--  <table>
                                                <tr>
                                                    <td class="formLabel">
                                                        <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                                            <asp:ImageButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowLlast.gif" CommandName="Page" CommandArgument="First"
                                                                OnClick="FirstRecordImageButton_Click" />
                                                            <asp:ImageButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowLeft.gif" CommandName="Page" CommandArgument="Prev"
                                                                OnClick="PreviousImageButton_Click" />
                                                            <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                                            <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                                            <asp:Label ID="ofLabel" Text="of" runat="server" />
                                                            <asp:Label ID="TotalRecord" runat="server" />
                                                            <asp:ImageButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                                runat="server" ImageUrl="~/Images/arrowRight.gif" CommandName="Page" CommandArgument="Next"
                                                                OnClick="NextImageButton_Click" />
                                                            <asp:ImageButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowRLast.gif" CommandName="Page" CommandArgument="Last"
                                                                OnClick="LastRecordImageButton_Click" />
                                                        </div>
                                                    </td>
                                                    <td>
                                                        <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" CssClass="BackButton" Text="Back" />
                                                    </td>
                                                </tr>
                                            </table>--%>
                              
                                            <div id="NumberOfRecordDiv" class="display-flex"  runat="server" visible="true">
                                                <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                                    runat="server" CommandName="Page" CommandArgument="First"
                                                    OnClick="FirstRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                    <i class="fa fa-fast-backward"></i>
                                                </asp:LinkButton>
                                                <asp:LinkButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                                    runat="server" CommandName="Page" CommandArgument="Prev"
                                                    OnClick="PreviousImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                    <i class="fa fa-play fa-rotate-180"></i>

                                                </asp:LinkButton>
                                               
                                                <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                               &nbsp;  <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                               &nbsp;  <asp:Label ID="ofLabel" Text="of" runat="server" />
                                               &nbsp;  <asp:Label ID="TotalRecord" runat="server" />
                                                &nbsp;
                                                <asp:LinkButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                    runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Next"
                                                    OnClick="NextImageButton_Click">
                                                     <i class="fa fa-play"></i>
                                                </asp:LinkButton>

                                                <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                                    runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Last"
                                                    OnClick="LastRecordImageButton_Click">
                                                      <i class="fa fa-fast-forward"></i>
                                                </asp:LinkButton>
                                                &nbsp;  &nbsp; &nbsp;
                                            </div>
                                     
                                            <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" />
                                       
                            </div>
                        </div>

                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <asp:Panel ID="DetailPanel" runat="Server">
                                    <div class="contentHolder">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="TitleLabel" runat="server" Text="Event" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="EventDropDownList" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" CssClass="form-control" runat="Server">
                                                    <asp:ListItem Value="0">- Select -</asp:ListItem>
                                                    <asp:ListItem Value="39">Leave</asp:ListItem>
                                                    <asp:ListItem Value="69">DSR</asp:ListItem>
                                                </asp:DropDownList>
                                                <asp:HiddenField ID="IdHiddenField" runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="RoleLabel" runat="server" Text="Role"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="RoleDropDownList" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" DataTextField="Title" DataValueField="ID"
                                                    SkinID="CustomWidthTextBox" CssClass="form-control" runat="Server" AutoPostBack="true" OnTextChanged="RoleDropDownList_TextChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="UserLabel" runat="server" Text="User" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="UserDropDownList" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" CssClass="form-control" runat="Server">
                                                </asp:DropDownList>
                                                <asp:HiddenField ID="MaxRowHiddenField" runat="server" />
                                            </div>
                                        </div>
                                        <div class="cBoth">
                                        </div>
                                        <div class="outerBox11 pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="EmailIdsLabel" runat="server" Text="EmailId"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="EmailIdsTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" MaxLength="200" TextMode="MultiLine" Height="40" Enabled="false"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox11 pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="MobileIdsLabel" runat="server" Text="MobileId"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="MobileIdsTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="MultiLineTextBox"
                                                    onmouseenter="showHideTooltip()" MaxLength="200" TextMode="MultiLine" Height="40" Enabled="false"></asp:TextBox>
                                            </div>
                                        </div>


                                        <div class="outerBox11 pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="DefaultEmailIdsLabel" runat="server" Text="Default EmailId"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="DefaultEmailIdsTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    runat="server" SkinID="CustomWidthTextbox" MaxLength="200" TextMode="MultiLine" Height="40"></asp:TextBox>

                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 pb15 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="DefaultMobileIdsLabel" runat="server" Text="Default MobileIds"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="DefaultMobileIdsTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    runat="server" SkinID="CustomWidthTextbox" MaxLength="200" TextMode="MultiLine" Height="40"></asp:TextBox>

                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>

                            </div>
                        </div>
                    </div>
                    <div class="spacer">
                        <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/spacer.gif" />
                    </div>
                </div>
               
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
  <%--  <script data-main="../../JavaScript/rjs/encrypt/hostel-master-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/hostel-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
