<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Certificate_Leaving, App_Web_omznxxr2" 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/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>
<%@ Register Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch" TagPrefix="Std" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <uc1:CommonSearchUserControl ID="CommonSearchControl" Visible="false" runat="server" />
            <Std:StudentSearch ID="StudentSearch" Visible="false" runat="server" />
            <hims:EmployeeSearchControl ID="EmployeeSearch" Visible="false" runat="server" />
            <asp:HiddenField ID="TemplateHiddenField" runat="server" ClientIDMode="Static" />
            <div id="divContentPage">

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="109"
                                                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="Panel1" runat="server">
                                <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="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="SearchCodeLabel" Text="ID No" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="SearchCodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" runat="Server" MaxLength="100"></asp:TextBox>
                                                <asp:HiddenField runat="server" ID="ButtonIdHiddenField" />
                                            </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">
                                                <asp:TextBox ID="SearchNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" runat="Server" MaxLength="200"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="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"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    AutoPostBack="true" OnSelectedIndexChanged="SearchClassDropDownList_OnSelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchDivisionLabel" runat="server" Text="Division"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="SearchDivisionDropDownList" 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="SearchFromLCNumberLabel" runat="server" Text="From LC Number"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="SearchFromLCNumberTextBox" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()"
                                                    runat="server" MaxLength="9" SkinID="CustomWidthTextbox"
                                                    onkeypress="return isNumberKey(event)"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchToLCNumberLabel" runat="server" Text="To LC Number"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="SearchToLCNumberTextBox" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()"
                                                    runat="server" MaxLength="9" SkinID="CustomWidthTextbox"
                                                    onkeypress="return isNumberKey(event)"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchFromDateLabel" runat="server" Text="From Date"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="SearchFromDatePicker" runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchToDateLabel" runat="server" Text="To Date"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="SearchToDatePicker" runat="server" />
                                            </div>
                                        </div>
                                        <div class="alignCenter col-md-12 pTop15 ">
                                            <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click"
                                                SkinID="0" CssClass="btn btn-search fas" />
                                            <asp:Button ID="ResetButton" runat="server" CssClass="btn btn-reset fas" Text="&#xf0e2; Reset" OnClick="ResetButton_Click" SkinID="0" />
                                            <asp:Button ID="SearchPrintButton" runat="server" CssClass="btn btn-print fas" Text="&#xf02f; Print List" SkinID="0" OnClick="SearchPrintButton_Click" />
                                            <asp:Button ID="PrintCertificateButton" runat="server" CssClass="btn btn-print fas" SkinID="0" Text="&#xf02f; Print Certificate" OnClick="PrintCertificateButton_Click" />
                                            <asp:Button ID="PrintCertificateSummary" runat="server" CssClass="btn btn-print fas" SkinID="0" Text="&#xf02f; Print List Summary" OnClick="PrintCertificateSummary_Click" />
                                            <asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" OnClick="ExportButton_Click" CssClass="fas btn btn-examcommon" SkinID="0" Enabled="false"/>
                                        </div>
                                    </asp:Panel>
                                    <div id="Div1" class="himssuHeader1WireBox  col-md-12" runat="server">
                                        <div id="LeavingDetailDiv" visible="false" runat="server">
                                            <div id="LeavingDiv" visible="false" runat="server">
                                                <div class="himsBoxTitle">
                                                </div>
                                            </div>
                                            <div class="himsBoxContent pTop15">
                                                <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                    <ContentTemplate>
                                                        <div id="Div5" runat="server" visible="false" class="table-responsive">
                                                            <asp:GridView ID="LeavingGridView" runat="server" AutoGenerateColumns="False"
                                                                OnRowDataBound="LeavingGridView_RowDataBound" OnPageIndexChanging="LeavingGridView_PageIndexChanging"
                                                                CssClass="table table-striped table-bordered table-hover " AllowPaging="false" SkinID="" ShowHeader="True" PagerSettings-Visible="false"
                                                                DataKeyNames="Id">
                                                                <Columns>
                                                                    <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select" OnClick="LinkButton_Click"
                                                                                Text="Select" CausesValidation="false"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <%--<asp:BoundField DataField="LCNumber" HeaderText="Number" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left" />--%>
                                                                    <%--Above code is replace by below code--%>
                                                                    <asp:TemplateField HeaderText="Number" ItemStyle-Width="15%">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="LCNumberLabel" runat="server" Text='<%#Eval("LCNumber") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <%-- <asp:BoundField DataField="LCDate" HeaderText="LC Date" DataFormatString="{0:dd/MM/yyyy}"
                                                                        ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left" />--%>
                                                                    <asp:TemplateField HeaderText="LC Date" ItemStyle-Width="15%">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="LCDateLabel" runat="server" Text='<%#Eval("LCDate","{0:dd/MM/yyyy}") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="ID No" ItemStyle-Width="20%">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="IdNoLabel" runat="server" Text='<%#Eval("Code") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <%--<asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="Left" />--%>
                                                                    <asp:TemplateField HeaderText="Name" ItemStyle-Width="30%">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="NameLabel" runat="server" Text='<%#Eval("Name") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <%--<asp:BoundField DataField="ClassDivision" HeaderText="Class" ItemStyle-Width="20%"
                                                                        HeaderStyle-HorizontalAlign="Left" />--%>
                                                                    <asp:TemplateField HeaderText="Class" ItemStyle-Width="20%">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="ClassDivisionLabel" runat="server" Text='<%#Eval("ClassDivision") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </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">

                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-cog"></i>
                                        <asp:Label ID="LeavingDetailLabel" runat="server" Text="Maintenance"></asp:Label>
                                    </header>
                                </div>
                            </div>
                            <div class="pull-right mt-27 pagination">
                                <div class="formLabel">
                                    <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                        <asp:LinkButton CssClass="btn btn-default gridviewpagerbuttonpadding" ToolTip="First page"
                                            ID="FirstRecordImageButton" runat="server" OnClick="FirstRecordImageButton_Click">
                                                       <i class="fa fa-fast-backward"></i>
                                        </asp:LinkButton>
                                        <asp:LinkButton CssClass="btn btn-default gridviewpagerbuttonpadding" ToolTip="First page"
                                            ID="PreviousImageButton" runat="server" OnClick="PreviousImageButton_Click">
                                                       <i class="fa fa-play fa-rotate-180"></i>
                                        </asp:LinkButton>
                                        &nbsp;
                                                    <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" />
                                        &nbsp;
                                                    <asp:LinkButton CssClass="btn btn-default gridviewpagerbuttonpadding" ToolTip="First page"
                                                        ID="NextImageButtom" runat="server" OnClick="NextImageButton_Click">
                                                       <i class="fa fa-play"></i>
                                                    </asp:LinkButton>
                                        <asp:LinkButton CssClass="btn btn-default gridviewpagerbuttonpadding" ToolTip="First page"
                                            ID="LastRecordImageButton" runat="server" OnClick="LastRecordImageButton_Click">
                                                       <i class="fa fa-fast-forward"></i>
                                        </asp:LinkButton>
                                        &nbsp;&nbsp;&nbsp;  
                                                              <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0"
                                                                  CssClass="btn btn-back fas" Text="&#xf30a; Back" />
                                    </div>



                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <asp:Panel ID="StudentSearchPanel" runat="server">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="StudentIdNoLabel" runat="server" Text="ID No" SkinID="MandatoryLabel"></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="StudentIdNoImageButton"
                                                ImageUrl="~/Images/icons/icon_find.gif" runat="server" />
                                            <asp:HiddenField ID="SourceIdHiddenField" runat="server" />
                                            <asp:HiddenField ID="StudentIdHiddenField" runat="server" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="StudentNameLabel" runat="server" Text="Name"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="StudentNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="200"> </asp:TextBox>
                                        </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:TextBox ID="ClassTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="200"> </asp:TextBox>
                                        </div>
                                    </div>

                                    <%--Mantis Start- 34985--%>
                                    <div class="outerBox col-md-3 pTop5" >
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="StudentPhotoLabel" runat="server" Text="Student Photo"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5" >
                                            <asp:Image ID="StudentPhotoImage" Visible="true" runat="server" Height="80px" Width="80px" CssClass="studentprofile  pull-left"
                                                AlternateText="Student Photo" />
                                            <asp:TextBox ID="StatusTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" Visible="false"
                                                runat="server" SkinID="CustomWidthTextbox" Enabled="false"
                                                Style="color: white; border: 2px solid; padding: 5px 15px; font-size: 18px; width: 60px; margin-left: 50px; text-align:center"/>
                                        </div>
                                    </div>
                                    <%--Mantis End - 34985--%>
                                </asp:Panel>

                                <div class="cBoth">
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="LCNumberLabel" runat="server" Text="LC Number" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="LCNumberTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="20" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        <asp:HiddenField ID="IdHiddenField" runat="server" />
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="LCDateLabel" runat="server" Text="LC Date" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <Date:DatePickerControl DisplayDatePicker="true" ID="LCDatePickerControl" runat="server" />
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="LeftDateLabel" runat="server" Text="Left Date" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <Date:DatePickerControl DisplayDatePicker="true" ID="LeftDatePickerControl" runat="server" />
                                    </div>
                                </div>
                                <div class="cBoth">
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="LCCopyLabel" runat="server" Text="LC Copy" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="LCCopyTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" SkinID="CustomWidthTextbox" onkeypress="return isNumberKey(event)"
                                            MaxLength="9"></asp:TextBox>
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="LCConductLabel" runat="server" Text="LC Conduct" SkinID="MandatoryLabel"></asp:Label>
                                    </div>

                                    <div class="fLeft pRight5 display-flex">
                                        <acc:AutoCompleteControl ID="LCConductTextBox" runat="server" MinimumPrefixLength="2"
                                            TabIndex="5" ValidateOnTextChanged="false" ContextKey="sCertificate.LeavingConduct"
                                            DisplayLoadingStatus="true" FirstRowSelected="false" AutoPostBack="true" />
                                        <asp:ImageButton ID="LCConductSearchButton" runat="server" SkinID="FindImage" ToolTip="LC Conduct Search"
                                            ImageUrl="~/Images/icons/icon_find.gif" TabIndex="6" OnClick="LCConductSearchButton_OnClick" meta:resourcekey="LCConductSearchButtonResource1" />
                                    </div>

                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="LCProgressLabel" runat="server" Text="LC Progress" SkinID="MandatoryLabel"></asp:Label>
                                    </div>

                                    <div class="fLeft pRight5 display-flex">
                                        <acc:AutoCompleteControl ID="LCProgressTextBox" runat="server" MinimumPrefixLength="2"
                                            TabIndex="3" ValidateOnTextChanged="false" ContextKey="sCertificate.LeavingProgress"
                                            DisplayLoadingStatus="true" FirstRowSelected="false" AutoPostBack="true" />
                                        <asp:ImageButton ID="LCProgressSearchButton" runat="server" SkinID="FindImage" ToolTip="LC Progress Search"
                                            ImageUrl="~/Images/icons/icon_find.gif" TabIndex="4" OnClick="LCProgressSearchButton_OnClick" meta:resourcekey="LCProgressSearchButtonResource1" />
                                    </div>

                                </div>


                                <div class="cBoth">
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="LCReasonLabel" runat="server" Text="LC Reason" SkinID="MandatoryLabel"></asp:Label>
                                    </div>

                                    <div class="fLeft pRight5 display-flex">
                                        <acc:AutoCompleteControl ID="LCReasonTextBox" runat="server" MinimumPrefixLength="2"
                                            TabIndex="7" ValidateOnTextChanged="false" ContextKey="sCertificate.LeavingReason"
                                            DisplayLoadingStatus="true" FirstRowSelected="false" AutoPostBack="true" />
                                        <asp:ImageButton ID="LCReasonSearchButton" runat="server" SkinID="FindImage" ToolTip="LC Reason Search"
                                            ImageUrl="~/Images/icons/icon_find.gif" TabIndex="8" OnClick="LCReasonSearchButton_OnClick" meta:resourcekey="LCReasonSearchButtonResource1" />
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="LCRemarkLabel" runat="server" Text="LC Remark" SkinID="MandatoryLabel"></asp:Label>
                                    </div>

                                    <div class="fLeft pRight5 display-flex">
                                        <acc:AutoCompleteControl ID="LCRemarkTextBox" runat="server" MinimumPrefixLength="2"
                                            TabIndex="1" ValidateOnTextChanged="false" ContextKey="sCertificate.LeavingRemark"
                                            DisplayLoadingStatus="true" FirstRowSelected="false" AutoPostBack="true" />
                                        <asp:ImageButton ID="LCRemarkSearchButton" runat="server" SkinID="FindImage" ToolTip="LC Remark Search"
                                            ImageUrl="~/Images/icons/icon_find.gif" TabIndex="2" OnClick="LCRemarkSearchButton_OnClick" meta:resourcekey="LCRemarkSearchButtonResource1" />
                                    </div>

                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="LCBookNumberLabel" runat="server" Text="LC Book Number" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="LCBookNumberTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="20" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>

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

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="LCCopyRemarkLabel" runat="server" Text="LC Copy Remark"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="LCCopyRemarkTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="20" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>

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

                                <div id="ExamDiv" runat="server" visible="false">

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="Label1" runat="server" Text="Last Exam Name Select"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="LastExamNameDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" AutoPostBack="true" OnSelectedIndexChanged="LastExamNameDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                            <%--<asp:TextBox ID="LastExamNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="200" SkinID="CustomWidthTextbox"></asp:TextBox>--%>
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="Label4" runat="server" Text="Last Exam Name"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="LastExamNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" MaxLength="200" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="LastExamResultLabel" runat="server" Text="Last Exam Result"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="LastExamResultTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" MaxLength="200" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="Label2" runat="server" Text="Repeat Detail"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="RepeatDetailTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="cboth">
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SubjectStudiedLabel" runat="server" Text="Subject Studied"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="SubjectStudiedTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" MaxLength="300" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>

                                <div id="OtherDiv" runat="server" visible="false">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="PromoteToClassLabel" runat="server" Text="Promote To Class"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="PromoteToClassTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" MaxLength="50" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ExtraCurricularActivitiesLabel" runat="server" Text="Extra Curricular Activities"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="ExtraCurricularActivitiesTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" MaxLength="200" SkinID="MultiLineTextbox" TextMode="MultiLine"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="NCCScoutDetailLabel" runat="server" Text="NCC Scout Detail"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="NCCScoutDetailTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" MaxLength="200" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3 mt-1">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="TermsInInstituteLabel" runat="server" Text="Terms In Institute"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="TermsInInstituteTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" MaxLength="500" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3 mt-1">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ProofOfDOBLabel" runat="server" Text="Proof Of DOB"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="ProofOfDOBTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>

                                <div id="FeeDiv" runat="server" visible="false">
                                    <div class="outerBox pTop5 col-md-3 mt-1">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="FeeDetailLabel" runat="server" Text="Fee Detail"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="FeeDetailTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3 mt-1">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="FeeConcessionDetailLabel" runat="server" Text="Fee Concession Detail"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="FeeConcessionDetailTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3 pTop15 mt-1">
                                        <asp:Button ID="PendingFeeButton" runat="Server"
                                            SkinID="0" CssClass="btn-update btn fas" Text="&#xf021; Update Pending Fee" OnClick="PendingFeeButton_Click" />
                                    </div>

                                </div>
                                <div class="cBoth"></div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ReceiptNumberLabel" runat="server" Text="Charge Receipt Number" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="ReceiptNumberTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="9" SkinID="CustomWidthTextbox"
                                            onkeypress="return isNumberKey(event)"></asp:TextBox>
                                    </div>
                                </div>
                                <div id="AttendanceDiv" runat="server" visible="false">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="TotalDaysLabel" runat="server" Text="Total Days"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="TotalDaysTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" MaxLength="50" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="PresentDaysLabel" runat="server" Text="Present Days"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="PresentDaysTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" MaxLength="50" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox col-md-3 pTop5">
                                        <div class="controlLabelWidth">
                                            &nbsp
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:Label ID="LastDateOfPresentLabel" runat="server"></asp:Label>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3 pTop15">
                                        <asp:Button ID="UpdateButton" runat="Server"
                                            SkinID="0" CssClass="btn-update btn fas" Text="&#xf021; Get Present/Total Days" OnClick="UpdateButton_Click" />
                                    </div>
                                </div>
                                <div class="cBoth">
                                    <div class="outerBox pTop5 col-md-3" id="ToCollegeDiv" runat="server">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ToCollegeLabel" runat="server" Text="To College"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="ToCollegeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" MaxLength="200" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3" id="ToCollegeAddressDiv" runat="server">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ToCollegeAddressLabel" runat="server" Text="To College Address"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="ToCollegeAddressTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" MaxLength="200" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>

                                <div class="col-md-12 padd-0">
                                    <div id="FeeAllocationDetailDiv" runat="server" class="col-md-6" visible="false">
                                        <div class="himsBoxHeader card-head inner">
                                            <div class="headerText">
                                                <header>
                                                    <asp:Label ID="GridViewLabel1" Text="Pending Fee List"
                                                        runat="server" />
                                                </header>
                                            </div>
                                        </div>
                                        <div id="Div2" class="col-md-12 plr0 pTop5 table-responsive" runat="server" visible="false">
                                            <asp:GridView ID="FeeAllocationGridView" runat="server" AutoGenerateColumns="False"
                                                EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="true" DataKeyNames="FeeSetupId,PendingAmount,NotApplicableAmount" CssClass="table table-striped table-hover  table-bordered"
                                                OnRowDataBound="FeeAllocationGridView_RowDataBound" ShowFooter="true">
                                                <Columns>
                                                    <asp:TemplateField HeaderText="Fee" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:Label ID="FeeNameLabel" ClientIDMode="Static" runat="server" Text='<%#Eval("FeeName")%>'></asp:Label>
                                                        </ItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:Label ID="FFeeNameLabel" ClientIDMode="Static" runat="server" Text="Total" Font-Bold="true"></asp:Label>
                                                        </FooterTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Optional" HeaderStyle-HorizontalAlign="Center"
                                                        ItemStyle-Wrap="true" Visible="false">
                                                        <ItemStyle HorizontalAlign="Center" />
                                                        <ItemTemplate>
                                                            <label class="rt-chkbox rt-chkbox-single rt-chkbox-outline">
                                                                <asp:CheckBox ID="IsOptionalCheckBox" Checked='<%#Eval("IsOptional")%>' Enabled="false" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Variable" HeaderStyle-HorizontalAlign="Center"
                                                        ItemStyle-Wrap="true" Visible="false">
                                                        <ItemStyle HorizontalAlign="Center" />
                                                        <ItemTemplate>
                                                            <label class="rt-chkbox rt-chkbox-single rt-chkbox-outline">
                                                                <asp:CheckBox ID="IsVariableCheckBox" Checked='<%#Eval("IsVariable")%>' Enabled="false" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Amount" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" Visible="false">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="AmountTextBox" runat="server" ClientIDMode="Static" MaxLength="15" SkinID="CustomWidthTextBox"
                                                                onKeypress="javascript:return MaskDecimal(event,12,2)" AutoPostBack="false" onkeyup="funcsum(this)"></asp:TextBox>
                                                        </ItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:Label ID="AmountLabel" runat="server" ClientIDMode="Static" Font-Bold="true"></asp:Label>
                                                        </FooterTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Additional Amount" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" Visible="false">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="AdditionalAmountTextBox" runat="server" ClientIDMode="Static" MaxLength="15" SkinID="CustomWidthTextBox"
                                                                onKeypress="javascript:return MaskDecimal(event,12,2)" onkeyup="funcsum(this)">
                                                            </asp:TextBox>
                                                        </ItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:Label ID="AdditionalAmountLabel" runat="server" ClientIDMode="Static" Font-Bold="true"></asp:Label>
                                                        </FooterTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Exemption Amount" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" Visible="false">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="DiscountAmountTextBox" runat="server" ClientIDMode="Static" MaxLength="15" SkinID="CustomWidthTextBox"
                                                                onKeypress="javascript:return MaskDecimal(event,12,2)" onkeyup="funcsum(this)"></asp:TextBox>
                                                        </ItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:Label ID="DiscountAmountLabel" runat="server" ClientIDMode="Static" Font-Bold="true"></asp:Label>
                                                        </FooterTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Not Applicable Amount" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" Visible="false">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="NotApplicableAmountTextBox" runat="server" ClientIDMode="Static" MaxLength="15" SkinID="CustomWidthTextBox"
                                                                onKeypress="javascript:return MaskDecimal(event,12,2)" onkeyup="funcsum(this)"></asp:TextBox>
                                                        </ItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:Label ID="NotApplicableAmountLabel" runat="server" ClientIDMode="Static" Font-Bold="true"></asp:Label>
                                                        </FooterTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Paid Amount" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" Visible="false">
                                                        <ItemTemplate>
                                                            <asp:Label ID="PaidAmountLabel" ClientIDMode="Static" runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:Label ID="FPaidAmountLabel" ClientIDMode="Static" runat="server" Font-Bold="true"></asp:Label>
                                                        </FooterTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Pending Amount" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:Label ID="PendingAmountLabel" ClientIDMode="Static" runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:Label ID="FPendingAmountLabel" ClientIDMode="Static" runat="server" Font-Bold="true"></asp:Label>
                                                        </FooterTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Start Date" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" Visible="false">
                                                        <ItemTemplate>
                                                            <asp:Label ID="StartDateLabel" Text='<%# Bind("StartDate","{0:dd/MM/yyyy}") %>' runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="End Date" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" Visible="false">
                                                        <ItemTemplate>
                                                            <asp:Label ID="EndDateLabel" Text='<%# Bind("EndDate","{0:dd/MM/yyyy}") %>' runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Remark" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" Visible="false">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="RemarkTextBox" runat="server" ClientIDMode="Static" MaxLength="200"
                                                                Width="200px" SkinID="CustomWidthTextBox"></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Status" ItemStyle-Wrap="true"
                                                        HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:Label ID="StatusLabel" runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <PagerSettings Visible="False" />
                                            </asp:GridView>
                                        </div>

                                    </div>

                                    <div id="ReturnDueBookDetailDiv" runat="server" class="col-md-6" visible="false">
                                        <div class="himsBoxHeader card-head inner" style="padding-bottom: 0px !important">
                                            <div class="headerText">
                                                <header>
                                                    <asp:Label ID="GridViewLabel2" Text="Return Due Book List"
                                                        runat="server" />
                                                </header>
                                            </div>

                                        </div>
                                        <div id="Div3" runat="server" class="col-md-12 plr0 pTop5 table-responsive" visible="false">
                                            <asp:GridView ID="ReturnDueBookGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="true" DataKeyNames="" ShowFooter="true"
                                                CssClass="table table-striped table-bordered table-hover " OnRowDataBound="ReturnDueBookGridView_RowDataBound">
                                                <Columns>
                                                    <asp:TemplateField HeaderText="Code" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:Label ID="BookCodeLabel" ClientIDMode="Static" runat="server" Text='<%#Eval("BookCode")%>'></asp:Label>
                                                        </ItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:Label ID="TotalLabel" ClientIDMode="Static" runat="server" Text="Total" Font-Bold="true"></asp:Label>
                                                        </FooterTemplate>
                                                    </asp:TemplateField>
                                                    <asp:BoundField DataField="BookName" HeaderText="Name" HeaderStyle-HorizontalAlign="Left" />
                                                    <asp:TemplateField HeaderText="Price" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:Label ID="PriceLabel" ClientIDMode="Static" runat="server" Text='<%#Eval("Price")%>'></asp:Label>
                                                        </ItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:Label ID="TotalPriceLabel" runat="server" ClientIDMode="Static" Font-Bold="true"></asp:Label>
                                                        </FooterTemplate>
                                                    </asp:TemplateField>
                                                    <asp:BoundField DataField="DueDate" HeaderText="Due Date" DataFormatString="{0:dd/MM/yyyy}" HeaderStyle-HorizontalAlign="Left" />
                                                </Columns>
                                                <PagerSettings Visible="False" />
                                            </asp:GridView>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%-- <script data-main="../../JavaScript/rjs/encrypt/leaving-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/leaving")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script>
        function PrintPanel() {
            var template = document.getElementById('TemplateHiddenField').value;

            const newWindow = window.open("", "_blank", "width=1200,height=800");

            newWindow.document.open();
            newWindow.document.write('<html><style>@media print {.PrintHidden {visibility: hidden;}}</style><head><title>Leaving Certificate</title>');
            newWindow.document.write('<div style="text-align:left"><input type="Button" class="PrintHidden" Value="Print" OnClick="window.print();" /></div>')
            newWindow.document.write(template);
            newWindow.document.close();

            return false;
        }
    </script>
</asp:Content>
