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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch" TagPrefix="Std" %>
<%@ Register Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentcodeSearch" TagPrefix="StdCode" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <Std:StudentSearch ID="StudentSearch" Visible="false" runat="server" />
            <StdCode:StudentcodeSearch ID="CodeSearch" Visible="false" runat="server" />
            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->
                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="102"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="row whiteboxpaddingleft">
                        <div class="himssuHeader5WireBox card card-box">
                            <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="Student Sibling"></asp:Label>
                                            </header>
                                        </div>
                                    </div>
                                    <div class="fRight mt-27 pagination display-flex">
                                        <asp:Button ID="BackButton" runat="Server" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" OnClick="BackButton_Click" Visible="false" />
                                    </div>
                                </asp:Panel>
                            </div>
                            <div class="himsBoxContent card-body">
                                <div class="contentHolder">
                                    <div class="tableContainer">
                                        <cc1:TabContainer Width="100%" ID="StudentSiblingTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox ajax__tab_container ajax__tab_default" AutoPostBack="true" meta:resourcekey="FeeAllocationTabContainerResource1" ActiveTabIndex="0">
                                            <cc1:TabPanel Width="100%" ID="StudentSiblingTabPanel" runat="server" HeaderText="Student Sibling">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-circle"></i>Student Sibling </a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>

                                                    <asp:Panel ID="DetailPanel" runat="Server">
                                                        <div class="contentHolder">
                                                            <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="IdNoLabel" Text="ID" runat="server" CssClass="mandatory"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5 display-flex">
                                                                        <asp:TextBox ID="StudentIdNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                            SkinID="CustomWidthTextBox" runat="server" MaxLength="200" AutoPostBack="true"
                                                                            OnTextChanged="StudentIdNoTextBox_TextChanged">
                                                                        </asp:TextBox>
                                                                        <asp:ImageButton SkinID="FindImage" ToolTip="Student Search" ID="CodeSearchImageButton"
                                                                            runat="server" />
                                                                        <asp:HiddenField ID="StudentIdHiddenField" runat="server" />
                                                                    </div>
                                                                </div>
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="ClassLabel" Text="Class" runat="server"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:TextBox ID="ClassTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                            SkinID="CustomWidthTextBox" runat="Server" MaxLength="100"></asp:TextBox>
                                                                    </div>
                                                                </div>
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="NameLabel" Text="Name" runat="server"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:TextBox ID="StudentNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                            SkinID="CustomWidthTextBox" runat="Server" MaxLength="100"></asp:TextBox>
                                                                    </div>
                                                                </div>
                                                            </asp:Panel>
                                                            <div class="pTop5 width-100" id="AdmissionDetaildiv" runat="server">
                                                                <div class="himsBoxHeader card-head inner" id="Div2" runat="server" visible="True">
                                                                    <div class="leftdiv">
                                                                    </div>
                                                                    <div class="himsBoxTitle">
                                                                        <div class="headerText fLeft">
                                                                            <header>
                                                                                <asp:Label ID="AdmissionDetailLabel" Text="Add Sibling" runat="server" />
                                                                            </header>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="contentHolder">
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="OrganizationLabel" runat="server" Text="Organization" CssClass="mandatory"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:DropDownList runat="server" ID="OrganizationDropDownList" SkinID="CustomWidthDropDownList"
                                                                                CssClass="form-control" onmouseleave="showHideTooltip()" AutoPostBack="true" onmouseenter="showHideTooltip()"
                                                                                OnSelectedIndexChanged="OrganizationDropDownList_SelectedIndexChanged">
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="BatchLabel" runat="server" Text="Batch" CssClass="mandatory"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:DropDownList runat="server" ID="BatchDropDownList" SkinID="CustomWidthDropDownList"
                                                                                CssClass="form-control" onmouseleave="showHideTooltip()" AutoPostBack="true" onmouseenter="showHideTooltip()">
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="SiblingIdLabel" Text="Sibling ID" runat="server" CssClass="mandatory"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5 display-flex">
                                                                            <asp:TextBox ID="SiblingIdTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                                SkinID="CustomWidthTextBox" runat="Server" MaxLength="20" AutoPostBack="true"
                                                                                OnTextChanged="SiblingIdTextBox_TextChanged"></asp:TextBox>
                                                                            <asp:ImageButton SkinID="FindImage" ToolTip="Student Search" ID="StudentIdNoImageButton"
                                                                                runat="server" />

                                                                        </div>
                                                                        <asp:HiddenField ID="SiblingStudentIdHiddenField" runat="server" />
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="SiblingClassLabel" Text="Class" runat="server"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:TextBox ID="SiblingClassTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                                SkinID="CustomWidthTextBox" runat="Server" MaxLength="100"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="SiblingNameLabel" Text="Name" runat="server"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:TextBox ID="SiblingNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                                SkinID="CustomWidthTextBox" runat="Server" MaxLength="100"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="alignCenter col-md-12 pTop5">
                                                                    <asp:Button ID="AddButton" Text="&#xf067; Add" runat="Server"
                                                                        OnClick="AddButton_Click" SkinID="0" CssClass="btn-add btn fas" />
                                                                    <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" SkinID="0" CssClass="btn-reset btn fas" OnClick="ResetButton_Click" />
                                                                </div>
                                                                <asp:HiddenField ID="IdHiddenField" runat="server" />
                                                                <asp:HiddenField ID="SiblingIdHiddenField" runat="server" />
                                                            </div>
                                                        </div>
                                                        <div id="Div1" class="himssuHeader7WireBox col-md-12 pTop5" runat="server">
                                                            <div id="CustomtagDiv" visible="false" runat="server">
                                                                <div class="himsBoxHeader" id="CustomDiv" visible="false" runat="server">
                                                                    <div class="leftdiv">
                                                                    </div>
                                                                </div>
                                                                <div class="himsBoxContent pTop5">
                                                                    <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                                        <ContentTemplate>
                                                                            <div id="Div5" runat="server" visible="false">
                                                                                <asp:GridView ID="SiblingListGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                                    CssClass="table table-striped table-bordered table-hover"
                                                                                    SkinID="" ShowHeader="true" PagerSettings-Visible="false" EmptyDataText="No records Found!!!" DataKeyNames="StudentId,LinkedStudentId" OnRowDataBound="SiblingListGridView_RowDataBound">
                                                                                    <Columns>
                                                                                        <asp:BoundField DataField="OrganizationName" HeaderText="Organization" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left" />
                                                                                        <asp:TemplateField HeaderText="Id" ItemStyle-Width="10%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                                            ItemStyle-Wrap="true">
                                                                                            <ItemTemplate>
                                                                                                <asp:Label ID="CodeLabel" runat="server" Text='<%# Bind("Code") %>'></asp:Label>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:TemplateField HeaderText="Class" ItemStyle-Width="10%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                                            ItemStyle-Wrap="true">
                                                                                            <ItemTemplate>
                                                                                                <asp:Label ID="DivDeptLabel" runat="server" Text='<%# Bind("DivDept") %>'></asp:Label>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:TemplateField HeaderText="Name" ItemStyle-Width="20%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                                            ItemStyle-Wrap="true">
                                                                                            <ItemTemplate>
                                                                                                <asp:Label ID="NameLabel" runat="server" Text='<%# Bind("Name") %>'></asp:Label>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:TemplateField HeaderText="Status" ItemStyle-Width="5%" SortExpression="Title" HeaderStyle-HorizontalAlign="Center"
                                                                                             ItemStyle-HorizontalAlign="Center">
                                                                                            <ItemTemplate>
                                                                                                <asp:Label ID="StatusLabel" runat="server" Text='<%# Bind("StatusName") %>'></asp:Label>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                       <%-- Mantis Id : 0036426--%>
                                                                                        <asp:TemplateField ShowHeader="true" HeaderText="Delete" HeaderStyle-HorizontalAlign="Center">
                                                                                            <ItemTemplate>
                                                                                                <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_Click"
                                                                                                    ImageUrl="~/Images/icons/icon_delete.gif" ToolTip="Delete" />
                                                                                            </ItemTemplate>
                                                                                            <ItemStyle HorizontalAlign="Center" Width="10%" />
                                                                                        </asp:TemplateField>
                                                                                    </Columns>
                                                                                </asp:GridView>
                                                                            </div>
                                                                        </ContentTemplate>
                                                                    </asp:UpdatePanel>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </asp:Panel>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel Width="100%" ID="StudentSiblingListTabPanel" runat="server" HeaderText="Student Sibling List">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-circle"></i>Student Sibling List </a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>

                                                    <div class="contentHolder">
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="SearchOrganizationLabel" runat="server" Text="Organization"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList runat="server" ID="SearchOrganizationDropDownList" SkinID="CustomWidthDropDownList"
                                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>

                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="SearchCodeLabel" Text="Code" runat="server"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5 display-flex">
                                                                <asp:TextBox ID="SearchCodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    SkinID="CustomWidthTextBox" runat="Server" MaxLength="20"></asp:TextBox>
                                                            </div>
                                                        </div>

                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="SearchNameLabel" Text="Name" runat="server"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5 display-flex">
                                                                <asp:TextBox ID="SearchNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    SkinID="CustomWidthTextBox" runat="Server" MaxLength="100"></asp:TextBox>
                                                            </div>
                                                        </div>

                                                        <div class="alignCenter col-md-12 pTop15 pb5">
                                                            <asp:Button ID="SearchButton" runat="server" OnClick="SearchButton_Click" Text="&#xf002; Search" SkinID="0" CssClass="btn-search btn fas" />
                                                            <asp:Button ID="ExportButton" runat="server" OnClick="ExportButton_Click" Text="&#xf093; Export" SkinID="0" CssClass="btn-examcommon btn fas" Enabled="false" />
                                                            <asp:Button ID="SearchResetButton" runat="server" OnClick="SearchResetButton_Click" Text="&#xf0e2; Clear" SkinID="0" CssClass="btn-clear btn fas" />
                                                        </div>

                                                    </div>
                                                    <div class="himssuHeader6WireBox pTop15">
                                                        <div class="himsBoxContent col-md-12">
                                                            <div id="StudentSiblingDiv" runat="server" class="table-responsive" visible="False">
                                                                <asp:GridView ID="StudentSiblingGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                    EmptyDataText="No Records Found !!" DataKeyNames="" CssClass="table table-striped table-bordered table-hover">
                                                                    <Columns>
                                                                        <asp:BoundField DataField="Organization" HeaderText="Organization" ItemStyle-Width="15%" />
                                                                        <asp:BoundField DataField="Code" HeaderText="Code" ItemStyle-Width="10%" />
                                                                        <asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="15%" />
                                                                        <asp:BoundField DataField="Class" HeaderText="Class" ItemStyle-Width="10%" />
                                                                        <asp:BoundField DataField="SiblingOrganization" HeaderText="Sibling Organization" ItemStyle-Width="15%" />
                                                                        <asp:BoundField DataField="SiblingCode" HeaderText="Sibling Code" ItemStyle-Width="10%" />
                                                                        <asp:BoundField DataField="SiblingName" HeaderText="Sibling Name" ItemStyle-Width="15%" />
                                                                        <asp:BoundField DataField="SiblingClass" HeaderText="Sibling Class" ItemStyle-Width="10%" />
                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </div>


                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                        </cc1:TabContainer>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/student-sibling-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/student-sibling")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
