<%@ page title="Old Student" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Alumni_OldStudent, App_Web_scnj5cut" uiculture="auto" meta:resourcekey="PageResource1" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl" TagPrefix="Common" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="HREmployeeMasterSearchUpdatePanel" runat="server">

        <ContentTemplate>
            <Common:CommonSearchUserControl ID="CommonSearchControl" runat="server" Visible="false" />
            <div id="divContentPage" class="divcontentpagemargin">
                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <div class="leftUlMenu">
                                <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="242"
                                    Visible="true" runat="server" />
                            </div>
                        </table>
                    </div>
                </div>

                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="SearchHeaderPanel" runat="server" meta:resourcekey="SearchHeaderPanelResource1">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText fLeft">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="SearchHeaderLabel" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>

                        <asp:Panel ID="SearchDetailPanel" runat="server" meta:resourcekey="SearchDetailPanelResource1">
                            <div class="himsBoxContent card-body">
                                <div class="contentHolder">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="FirstNameSearchLabel" runat="server" Text="First Name" meta:resourcekey="FirstNameSearchLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="FirstNameSearchTextBox" SkinID="CustomWidthTextBox"
                                                runat="server" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                meta:resourcekey="FirstNameSearchTextBoxResource1" MaxLength="100"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="MiddleNameSearchLabel" runat="server" Text="Middle Name" meta:resourcekey="MiddleNameSearchLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="MiddleNameSearchTextBox" SkinID="CustomWidthTextBox"
                                                runat="server" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                meta:resourcekey="MiddleNameSearchTextBoxResource1" MaxLength="100"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="LastNameLabel" runat="server" Text="Last Name"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="LastNameTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="LastNameTextBoxResource1"
                                                MaxLength="100"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="BatchLabel" runat="server" Text="Batch"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="BatchDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" AutoPostBack="true" onmouseenter="showHideTooltip()"
                                                OnSelectedIndexChanged="BatchDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="DepartmentLabel" runat="server" Text="Department"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="DepartmentDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" AutoPostBack="true" onmouseenter="showHideTooltip()"
                                                OnSelectedIndexChanged="DepartmentDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <div class="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"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" AutoPostBack="true" onmouseenter="showHideTooltip()"
                                                OnSelectedIndexChanged="ClassDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="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"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="RollNoLabel" runat="server" Text="Roll No"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="RollNoTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="RollNoTextBoxResource1"
                                                MaxLength="100" onkeypress="return isNumberKey(event)"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3" style="display: none">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="StatusLabel" runat="server" Text="Status"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="StatusDropDownList" Enabled="false" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div id="SUIdDiv" class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SUIdLabel" runat="server" Text="SU Id" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="SUIdTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                MaxLength="50"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop15 p-l-10 col-md-3">
                                        <asp:CheckBox ID="SendAlertCheckbox" runat="server" Text="Send Alert" AutoPostBack="true" class="pLeft5" OnCheckedChanged="SendAlertCheckbox_CheckedChanged" />
                                    </div>
                                    <div class="outerBox pTop5 p-l-10 col-md-3" id="SenderDiv" runat="server" visible="false">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="Label1" runat="server" Text="Send Alert To"></asp:Label>
                                        </div>
                                        <asp:DropDownList runat="server" ID="SendAlertDropDownList" SkinID="CustomWidthDropDownList"
                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                            <asp:ListItem Selected="True" Value="1">Student</asp:ListItem>
                                            <asp:ListItem Value="2">Parent</asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                    <div class="outerBox pTop5 p-l-10 col-md-3" id="EmailSubjectDiv" runat="server" visible="false">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="Label2" runat="server" Text="Email Subject"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="EmailSubjectTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                MaxLength="20"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox11 pTop5 col-md-12 fLeft" id="SendAlertDiv" runat="server">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="MessageLabel" runat="server" Text="Message"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="MessageTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                Height="50px" SkinID="MultilineTextBox" runat="server" MaxLength="1000" OnTextChanged="MessageTextBox_TextChanged"
                                                TextMode="MultiLine" AutoPostBack="true"></asp:TextBox>
                                            <div id="CharCountDiv" runat="server" class="col-md-12 padd-0">
                                                <asp:Label ID="ForCharLabel" runat="server" Text="Number Of Character :"></asp:Label>
                                                <asp:Label ID="NumberOfCharLabel" runat="server" Font-Bold="true" CssClass="ml-1"></asp:Label>
                                                <asp:Label ID="ForMessageLabel" runat="server" Text="Number Of Message :"></asp:Label>
                                                <asp:Label ID="NumberOfMessageLabel" runat="server" Font-Bold="true"></asp:Label>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="outerBox col-md-3 pTop5" id="AlertOptionDiv" runat="server">
                                        <div class="fLeft pRight5">
                                            <asp:CheckBoxList ID="SourceTypeCheckBoxList" runat="server" RepeatDirection="Horizontal"
                                                OnSelectedIndexChanged="SourceTypeCheckBoxList_SelectedIndexChanged" AutoPostBack="true">
                                                <asp:ListItem Text="SMS" Value="1" Selected="True"></asp:ListItem>
                                                <asp:ListItem Text="Email" Value="2"></asp:ListItem>
                                            </asp:CheckBoxList>
                                        </div>
                                    </div>
                                    <div class="alignCenter col-md-12 pTop5 pb5">
                                        <asp:Button ID="SearchButton" runat="server" Text="&#xf002; Search" OnClick="SearchButton_Click"
                                            SkinID="0" CssClass="btn-search btn fas" />
                                        <asp:Button ID="SendAlertButton" Text="&#xf1d8; Send Alert" runat="Server" OnClick="SendAlertButton_Click"
                                            SkinID="0" CssClass="btn-send btn fas" />
                                        <asp:Button ID="ClearButton" runat="server" Text="&#xf0e2; Reset" OnClick="ClearSearchControls_Click"
                                            meta:resourcekey="ClearButtonResource1" SkinID="0" CssClass="btn-reset btn fas" />
                                        <asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" OnClick="ExportButton_Click" SkinID="0" CssClass="btn-examcommon btn fas" />
                                    </div>
                                    <div id="StudentMasterGridDiv" runat="server" visible="false">
                                        <div class="himssuHeader7WireBox col-md-12 pTop5">
                                            <div class="himsBoxHeader" id="StudentDiv" visible="false" runat="server">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <div class="headerText">
                                                        <div>
                                                            <asp:Label ID="GridViewLabel" Text="" runat="server" />
                                                        </div>
                                                    </div>

                                                    <div class="col-md-12 padd-0">
                                                        <div class="col-md-6 display-flex">
                                                            <asp:Label ID="RecordsPerPage" Text="Records per Page : " runat="server" />
                                                            <asp:DropDownList ID="AddRowsToGridDropDownList" CssClass="form-control" SkinID="CustomWidthDropDownList" Width="60px" runat="server"
                                                                AutoPostBack="true" OnSelectedIndexChanged="AddRowsToGridDropDownList_SelectedIndexChanged">
                                                                <asp:ListItem Text="50" Value="50" Selected="True"></asp:ListItem>
                                                                <asp:ListItem Text="100" Value="100"></asp:ListItem>
                                                                <asp:ListItem Text="200" Value="200"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </div>
                                                        <div class="col-md-6">
                                                            <uc1:GridViewPager ID="StudentFullGridView_GridViewPager" runat="server" OnFirstRecordClick="StudentFullGridView_GridViewPager_FirstRecordClick"
                                                                OnLastRecordClick="StudentFullGridView_GridViewPager_LastRecordClick" OnNextRecordClick="StudentFullGridView_GridViewPager_NextRecordClick"
                                                                OnPrevRecordClick="StudentFullGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="StudentFullGridView_GridViewPager_TextBoxValueChange"
                                                                ParentGridView="StudentFullGridView" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent pTop5">
                                                <div class="cBoth"></div>
                                                <div class="cBoth"></div>
                                                <div id="Div5" class="pTop5" runat="server" visible="false" style="font-size: smaller">
                                                    <asp:GridView ID="StudentFullGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                        OnRowDataBound="StudentFullGridView_RowDataBound" OnPageIndexChanging="StudentFullGridView_PageIndexChanging"
                                                        AllowPaging="true" SkinID="" ShowHeader="True" PagerSettings-Visible="false" PageSize="50"
                                                        DataKeyNames="AcademicId,OrgId,BatchId,Id" CssClass="table table-striped table-bordered table-hover">
                                                        <Columns>
                                                            <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="4%"
                                                                ItemStyle-Wrap="true">
                                                                <HeaderTemplate>
                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" Enabled="true" AutoPostBack="true" OnCheckedChanged="HeaderSelectCheckBox_CheckedChanged"
                                                                            Visible="true" />
                                                                        <span></span>
                                                                    </label>
                                                                </HeaderTemplate>
                                                                <ItemStyle HorizontalAlign="Center" />
                                                                <ItemTemplate>
                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="SelectCheckBox" runat="server" />
                                                                        <span></span>
                                                                    </label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="ID No" ItemStyle-Width="5%">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="IdNoCodeLabel" runat="server" Text='<%#Eval("Code") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:BoundField DataField="RollNo" HeaderText="Roll No" ItemStyle-Width="5%" HeaderStyle-HorizontalAlign="Left" />
                                                            <asp:TemplateField HeaderText="Name" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"
                                                                ItemStyle-Wrap="true">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="NameLabel" CssClass="boxEllips" ToolTip='<%#Eval("Name")%>' runat="server"
                                                                        Text='<%#Eval("Name")%>' Width="185px"></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:BoundField DataField="ParentContactNo" HeaderText="Parent Contact No" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />
                                                            <asp:BoundField DataField="StudentContactNo" HeaderText="Student Contact No" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />
                                                            <asp:BoundField DataField="BatchName" HeaderText="Batch" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />
                                                            <asp:BoundField DataField="ClassDiv" HeaderText="Class-Division Name" ItemStyle-Width="8%" HeaderStyle-HorizontalAlign="Left" />
                                                            <asp:TemplateField HeaderText="Status" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Center"
                                                                ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="StatLabel" CssClass="boxEllips" Font-Bold="true"
                                                                        runat="server" Text='<%#Eval("StatusName")%>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                    </asp:GridView>
                                                </div>

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