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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="AssignClubSearchUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <%--<div class="himsBoxHeader">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                            <asp:Label runat="server" ID="ScreenGroupNameLabel"></asp:Label>    
                                            </div>
                                        </div>
                                    </div>--%>
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="108"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row ">
                    <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="SearchHeaderPanel" runat="server" meta:resourcekey="SearchHeaderPanelResource1">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <%-- <asp:Image ID="Image2" runat="server" class="fLeft" />--%>
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="SearchHeaderLabel" runat="server" Text="Search"></asp:Label>
                                        </header>


                                    </div>
                                    <div class="fRight mt-27">
                                        <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButton_Click" SkinID="0"
                                            class="btn btn-add fas" Text="&#xf067; Add" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="SearchDetailPanel" runat="server" meta:resourcekey="SearchDetailPanelResource1">
                                <div class="contentHolder ">

                                    <div class="to outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchClassLabel" runat="server" Text="Class"></asp:Label>
                                        </div>

                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="SearchClassDropDownList" SkinID="CustomWidthDropDownList"
                                                class="form-control" AutoPostBack="true" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                OnSelectedIndexChanged="SearchClassDropDownList_OnSelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="to outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchDivisionLabel" runat="server" Text="Division"></asp:Label>
                                        </div>
                                        <div class="pRight5">
                                            <asp:DropDownList runat="server" ID="SearchDivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <div class="to outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchClubTypeLabel" Text="Club Type" runat="server"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="SearchClubTypeDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" class="form-control"
                                                AutoPostBack="true" OnSelectedIndexChanged="SearchClubTypeDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <div class="to outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchClubLabel" runat="server" Text="Club"></asp:Label>
                                        </div>
                                        <div class="pRight5">
                                            <asp:DropDownList runat="server" ID="SearchClubDropDownList" SkinID="CustomWidthDropDownList"
                                                class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="to outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchCodeLabel" Text="Code" runat="server"></asp:Label>
                                        </div>
                                        <div class=" pRight5">
                                            <asp:TextBox ID="SearchCodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="Server" MaxLength="20"></asp:TextBox>
                                        </div>
                                    </div>

                                    <div class="to outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchStatusLabel" runat="server" Text="Status"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="SearchStatusDropDownList" SkinID="CustomWidthDropDownList"
                                                class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>

                                <div class="alignCenter col-md-12 pTop5">
                                    <asp:Button ID="SearchButton" runat="server" Text="&#xf002; Search" OnClick="SearchButton_Click"
                                        SkinID="0" class="btn-search btn fas" />
                                    <asp:Button ID="ClearButton" runat="server" Text="&#xf0e2; Reset" OnClick="ClearSearchControls_Click"
                                        SkinID="0" class="btn-reset btn fas" />
                                </div>
                                <div class="himssuHeader7WireBox col-md-12">
                                    <div id="SearchClubListGridDiv" runat="server" visible="false">

                                        <div class="himsBoxContent pTop5">
                                            <%--<div id="Div1" style="vertical-align: top; width: 100%;">
                                            <asp:Table ID="SearchClubListGridViewTable" runat="server" CellPadding="0" CellSpacing="0"
                                                BackColor="#E8E8E8" ForeColor="Black" Width="100%" GridLines="Both" CssClass="GridViewTableRow">
                                            </asp:Table>
                                        </div>--%>
                                            <%-- <div id="SearchClubListGridViewMessageDiv" class="himsBoxContent card-bodyMsg" runat="server">
                                        </div>--%>
                                            <%--<div id="Div2" class="Container" style="vertical-align: top; height: 100px; width: 99.6%;">--%>
                                            <div class="table-responsive">
                                                <asp:GridView runat="server" ID="SearchClubListGridView" AutoGenerateColumns="False"
                                                    EmptyDataText="No records available for the seacrh criteria!" CssClass="table table-striped table-bordered table-hover"
                                                    DataKeyNames="AcademicId,ClubId" ShowHeader="true" meta:resourcekey="SearchClubListGridViewResource1">
                                                    <Columns>
                                                        <asp:BoundField DataField="ClassName" HeaderText="Class" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />
                                                        <asp:BoundField DataField="RollNo" HeaderText="Roll No" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />
                                                        <asp:BoundField DataField="Code" HeaderText="Id No" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left" />
                                                        <asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="Left" />
                                                        <asp:BoundField DataField="Club" HeaderText="Club" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left" />
                                                                    <%--    Mantis Start - 36149--%>
                                                        <asp:TemplateField HeaderText="Delete">
                                                            <ItemTemplate>
                                                                <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server" CommandName="Select" OnClick="DeleteImageButton_Click"
                                                                    ToolTip="Delete" ImageUrl="../../../Images/icons/icon_delete.gif" />
                                                            </ItemTemplate>
                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle HorizontalAlign="Center" Width="10%" />
                                                        </asp:TemplateField>
                                                                      <%--     Mantis End - 36149--%>
                                                    </Columns>
                                                    <PagerSettings Visible="False" />
                                                </asp:GridView>
                                            </div>
                                            <%--</div>--%>
                                        </div>
                                    </div>
                                </div>

                            </asp:Panel>
                        </div>
                    </div>
                    <%--   <div id="AssignClubListGridDiv" runat="server">--%>
                    <%--<div class="spacer">
                                    <asp:Image ID="Image6" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image6Resource1" />
                                </div>--%>
                    <div class="himssuHeader1WireBox  card card-box" id="DetailDiv" runat="server" visible="false">
                        <div class="himsBoxHeader card-head" id="AssignClubListGridViewPagerDiv"
                            runat="server">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="gridHeaderText fLeft">
                                    <i class="fas fa-cog"></i>
                                    <asp:Label ID="Label1" Text="Maintainance" runat="server" />
                                </div>

                                <div class="fRight mt-27">
                                    <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0"
                                        class="btn btn-back fas" Text="&#xf30a; Back" />
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <div>
                                    <div class="to outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ClassLabel" runat="server" Text="Class"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="ClassDropDownList" SkinID="CustomWidthDropDownList"
                                                class="form-control" AutoPostBack="true" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                OnSelectedIndexChanged="ClassDropDownList_OnSelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="to outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="DivisionLabel" runat="server" Text="Division"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="DivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                class="form-control" AutoPostBack="true" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                OnSelectedIndexChanged="DivisionDropDownList_OnSelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="to outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="StatusLabel" runat="server" Text="Status"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="StatusDropDownList" SkinID="CustomWidthDropDownList"
                                                class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="to outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ClubTypeLabel" Text="Club Type" runat="server"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="ClubTypeDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" class="form-control"
                                                AutoPostBack="true" OnSelectedIndexChanged="ClubTypeDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class=" outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ClubLabel" runat="server" Text="Club"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="ClubDropDownList" SkinID="CustomWidthDropDownList"
                                                class="form-control" AutoPostBack="true" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                OnSelectedIndexChanged="ClubDropDownList_OnSelectedIndexChanged">
                                            </asp:DropDownList>
                                            <asp:HiddenField ID="IdHiddenField" runat="server" />
                                            <asp:HiddenField ID="AcademicIdHiddenField" runat="server" />
                                        </div>
                                    </div>
                                </div>
                                <div class="himssuHeader6WireBox col-md-12 pb5 ">
                                    <div id="Div1" runat="server">
                                        <div class="himsBoxHeader card-head inner" id="Div2" runat="server">
                                            <div class="headerText">
                                                <header>
                                                    <asp:Label ID="Label2" Text="Student List" runat="server" />
                                                </header>
                                            </div>
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="gridHeaderText">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent">
                                            <div class="table-responsive">
                                                <asp:GridView runat="server" ID="AssignClubListGridView" class="himssuHeader7WireBox col-md-12 table-responsive" AutoGenerateColumns="False"
                                                    EmptyDataText="No records available for the seacrh criteria!" AllowPaging="false"
                                                    PageSize="10" DataKeyNames="AcademicId,ClubId" CssClass="table table-striped table-bordered table-hover"
                                                    OnRowDataBound="AssignClubListGridView_RowDataBound" ShowHeader="true" meta:resourcekey="AssignClubListGridViewResource1">
                                                    <Columns>
                                                        <asp:TemplateField HeaderStyle-HorizontalAlign="Center">
                                                            <HeaderTemplate>
                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                    <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" onclick="CheckAll(this);" />
                                                                    <span></span>
                                                                </label>
                                                            </HeaderTemplate>
                                                            <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                            <ItemTemplate>
                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                    <asp:CheckBox ID="SelectCheckBox" runat="server" Checked='<%# Eval("IsObsolete") %>' />
                                                                    <span></span>
                                                                </label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="ClassName" HeaderText="Class" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left" />
                                                        <asp:BoundField DataField="RollNo" HeaderText="Roll No" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left" />
                                                        <asp:BoundField DataField="Code" HeaderText="Id No" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left" />
                                                        <asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="Left" />
                                                    </Columns>
                                                    <PagerSettings Visible="False" />
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <%-- </div>--%>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--   <script data-main="../../JavaScript/rjs/encrypt/assign-organization-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
