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

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


<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="MonthlyRegisterUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <div class="himsBoxContent">
                            <div class="leftUlMenu">
                                <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="163"
                                    Visible="true" runat="server" />
                            </div>
                        </div>
                    </div>
                </div>
                <style>
                    table#ctl00_CP_GridView1CopyFreeze {
                        height: auto !important;
                    }

                    .table {
                        margin-bottom: 0px !important;
                        margin-top: 0px !important;
                    }

                    .whiteboxpaddingleft .card-box .card-body {
                        min-height: 520px;
                    }

                    #ctl00_CP_GridView1Wrapper {
                        height: 400px !important;
                    }
                    /*div#ctl00_CP_GridView1PanelItem {
    height: 100% !important;
}*/
                    /*table#ctl00_CP_GridView1Freeze tr {
    line-height: 1.35 !important;
}*/
                </style>
                <div class="row whiteboxpaddingleft">
                    <div class="contentHolder">
                        <div class="himssuHeader1WireBox card card-box html5-fullscreen-api" id="fullscreen">
                            <div class="himsBoxHeader card-head">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="Label1" runat="server" Text="Search"></asp:Label>

                                        </header>
                                    </div>

                                </div>
                                <div class="fRight mt-27 pagination display-flex">
                                    <asp:Button ID="BackButton" runat="Server" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" OnClick="BackButton_Click" Visible="false" />
                                </div>
                                <span class="fs-button pRight5" style="font-size: 20px;margin-right: 24px;"><i class="fas fa-expand-arrows-alt" style="position: relative; top: -6px;"></i></span>

                            </div>
                            <div class="himsBoxContent card-body">
                                <div class="contentHolder">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="DepartmentSearchLabel" runat="server" Text="Department" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="DepartmentDropDownList" SkinID="CustomWidthDropDownList" AutoPostBack="true"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="DepartmentDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>

                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ForYearLabel" runat="server" Text="For Year" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="ForYearDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" onmouseenter="ShowToolTip(this)"
                                                AutoPostBack="true" OnSelectedIndexChanged="ForYearDropDownList_OnSelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ForMonthLabel" runat="server" Text="For Month" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="ForMonthDropDownList" SkinID="CustomWidthDropDownList" AutoPostBack="true"
                                                CssClass="form-control" onmouseenter="ShowToolTip(this)" OnSelectedIndexChanged="ForMonthDropDownList_OnSelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:CheckBox ID="MarkAllCheckBox" runat="server" Text="Mark All Present" OnCheckedChanged="MarkAllCheckBox_CheckedChanged" Visible="false" AutoPostBack="true" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3" id="TabIndexDiv" runat="server">

                                        <div class="fLeft">

                                            <asp:CheckBox ID="ChkSetTabIndex" runat="server" Text="Set Veritical Tab Index" onclick="SetTabIndexOnClick(this)" />
                                        </div>

                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:HyperLink ID="MonthlyAttendanceHyperLink" runat="server" Text="Download Template" Visible="false" NavigateUrl="~/ContentTemplates/Import/Student_DailyAttendance_Import.xls"></asp:HyperLink>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5">
                                        <asp:FileUpload ID="FileUpload1" runat="server" Visible="false" />
                                    </div>
                                    <div class="outerBox pTop5">
                                        <asp:Button ID="ImportrButton" runat="server"
                                            Text="&#xf093; Import Attendance" Visible="false" SkinID="0" CssClass="btn btn-upload fas"
                                            OnClick="ImportrButton_Click" />
                                        <asp:Button ID="BlankAttendanceSheetButton" runat="server" SkinID="0" CssClass="btn btn-assign fas"
                                            Text="Blank Attendance Sheet" Visible="false" />
                                        <%--OnClick="BlankAttendanceSheetButton_Click"--%>
                                    </div>
                                </div>
                                <div class="himssuHeader6WireBox col-md-12" id="AttendanceDiv" runat="server" visible="false">
                                    <div class="himsBoxHeader">
                                        <div class="leftdiv">
                                        </div>
                                    </div>
                                    <div class="outerBox  pTop15 display-flex">
                                        <asp:Label ID="WeekOffsTitleLabel" Text="Week Offs :" runat="server" Visible="false"></asp:Label>
                                        &nbsp; &nbsp;
                                    <asp:Label runat="server" ID="WeekOffsColorLabel" Height="15px" Width="35px" BorderColor="Black" BackColor="#a7cd1b" Visible="false" BorderWidth="1px"></asp:Label>
                                        &nbsp; &nbsp;
                                    <asp:Label ID="holyDayLabel" Text="Holiday :" runat="server" Visible="false"></asp:Label>
                                        &nbsp; &nbsp;
                                    <asp:Label runat="server" ID="HolyDayColorLabel" Height="15px" Width="35px" BorderColor="Black" Visible="false" BackColor="#ec8c8c" BorderWidth="1px"></asp:Label>
                                        &nbsp; &nbsp;
                                    </div>
                                    <div class="himsBoxContent">
                                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
                                            EmptyDataText="No Records Found !!" AllowPaging="false" Width="100%"
                                            ShowHeader="true" DataKeyNames="EmployeeId,ForMonth,ForYear,EmployeeCode,EmployeeName"
                                            OnRowDataBound="GridView1_OnRowDataBound"
                                            CssClass="table table-striped table-bordered table-hover">
                                            <Columns>
                                                <asp:BoundField DataField="EmployeeCode" HeaderText="Code" ItemStyle-Width="4%" HeaderStyle-HorizontalAlign="Left" Visible="false"></asp:BoundField>
                                                <asp:TemplateField HeaderText="Employee Code" ItemStyle-Width="120px">
                                                    <ItemTemplate>
                                                        <asp:Label ID="IdNoLabel" runat="server" Text='<%#Eval("EmployeeCode") %>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="EmployeeName" HeaderText="Name" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="1" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel1" runat="server" Visible="false" ToolTip="1">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox1" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel1" runat="server" Visible="false"></asp:Label>

                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="2" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel2" runat="server" Visible="false" ToolTip="2">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox2" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel2" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="3" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel3" runat="server" Visible="false" ToolTip="3">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox3" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel3" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="4" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel4" runat="server" Visible="false" ToolTip="4">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox4" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel4" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="5" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel5" runat="server" Visible="false" ToolTip="5">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox5" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel5" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="6" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel6" runat="server" Visible="false" ToolTip="6">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox6" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel6" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="7" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel7" runat="server" Visible="false" ToolTip="7">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox7" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel7" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="8" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel8" runat="server" Visible="false" ToolTip="8">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox8" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel8" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="9" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel9" runat="server" Visible="false" ToolTip="9">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox9" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel9" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="10" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel10" runat="server" Visible="false" ToolTip="10">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox10" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel10" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="11" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel11" runat="server" Visible="false" ToolTip="11">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox11" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel11" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="12" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel12" runat="server" Visible="false" ToolTip="12">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox12" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel12" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="13" ItemStyle-Width="1.5%" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel13" runat="server" Visible="false" ToolTip="13">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox13" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel13" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="14" ItemStyle-Width="1.5%" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel14" runat="server" Visible="false" ToolTip="14">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox14" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel14" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="15" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel15" runat="server" Visible="false" ToolTip="15">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox15" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel15" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="16" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel16" runat="server" Visible="false" ToolTip="16">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox16" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel16" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="17" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel17" runat="server" Visible="false" ToolTip="17">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox17" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel17" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="18" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel18" runat="server" Visible="false" ToolTip="18">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox18" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel18" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="19" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel19" runat="server" Visible="false" ToolTip="19">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox19" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel19" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="20" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel20" runat="server" Visible="false" ToolTip="20">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox20" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel20" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="21" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel21" runat="server" Visible="false" ToolTip="21">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox21" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel21" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="22" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel22" runat="server" Visible="false" ToolTip="22">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox22" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel22" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="23" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel23" runat="server" Visible="false" ToolTip="23">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox23" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel23" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="24" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel24" runat="server" Visible="false" ToolTip="24">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox24" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel24" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="25" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel25" runat="server" Visible="false" ToolTip="25">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox25" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel25" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="26" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel26" runat="server" Visible="false" ToolTip="26">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox26" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel26" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="27" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel27" runat="server" Visible="false" ToolTip="27">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox27" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel27" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="28" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel28" runat="server" Visible="false" ToolTip="28">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox28" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel28" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="29" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel29" runat="server" Visible="false" ToolTip="29">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox29" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel29" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="30" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel30" runat="server" Visible="false" ToolTip="30">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox30" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel30" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ItemStyle-Width="1.5%" HeaderText="31" ItemStyle-HorizontalAlign="center"
                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="CheckBoxPanel31" runat="server" Visible="false" ToolTip="31">
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="CheckBox31" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </asp:Panel>
                                                        <asp:Label ID="AttendanceLabel31" runat="server" Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            <PagerSettings Visible="False" />
                                        </asp:GridView>
                                        <asp:HiddenField ID="hfGridView1SV" runat="server" />
                                        <asp:HiddenField ID="hfGridView1SH" runat="server" />
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                    <%--HEDP History Ends Here--%>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%-- <script data-main="../../JavaScript/rjs/encrypt/divisionregister-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <%--<script data-main='<%=ResolveUrl("~/JavaScript/rjs/divisionregister")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>

    <script type="text/javascript">
        function SetTabIndexOnClick(chkPassport) {
            //salert(chkPassport.checked);
            if (chkPassport.checked == true) {
                SetTabIndex();
                $($("#ctl00_CP_GridView1 tr:not(:first)").closest('tr').find("input:text")[0]).focus();
            }
            else {
                $('#ctl00_CP_GridView1 td').find("input").removeAttr("tabindex");
                $($("#ctl00_CP_GridView1 tr:not(:first)").closest('tr').find("input:text")[0]).focus();
            }

        }
        function SetTabIndex() {
            // alert("hi");
            var maxRowCount = 0;

            // Set columnCount to the count of the row with the most cells
            // Loop through all rows in case some rows are larger than others
            $('#ctl00_CP_GridView1 tr:not(:first)').each(function () {
                maxRowCount = Math.max(maxRowCount, $(this).children('td').length);
            });

            // Number all of the cells in the table
            var cellCounter = 1;

            // Loop through the table, column first instead of row first
            for (var columnIndex = 0; columnIndex < maxRowCount; ++columnIndex) {
                // Loop through all the rows for the current column
                $('table tr').each(function () {
                    // ...but only look at cells matching the current column
                    var cellForCurrentColumn = $(this)
                    .children('td')
                    .eq(columnIndex)
                    .find('input');

                    // Some rows could be bigger than others,
                    // so cellForCurrentColumn might not exist for shorter rows
                    if (cellForCurrentColumn != null) {
                        // Set the tab index and then increment the counter
                        cellForCurrentColumn.attr('tabindex', cellCounter++);
                    }
                });
            }
        }
        <%--  function cpageLoad() {
            $('#<% =GridView1.ClientID%>').gridviewScroll({
                width: "99%",
                
                overflow: "Scroll",
                railsize: 0,
                freezesize: 2, // Freeze Number of Columns.
                startVertical: $("#<%=hfGridView1SV.ClientID%>").val(),
                startHorizontal: $("#<%=hfGridView1SH.ClientID%>").val(),
                onScrollVertical: function (delta) {
                    $("#<%=hfGridView1SV.ClientID%>").val(delta);
                },
                onScrollHorizontal: function (delta) {
                    $("#<%=hfGridView1SH.ClientID%>").val(delta);
                }
            });


            }--%>
    </script>
    <script>

        function toggleFullScreen() {
            $("body").toggleClass("sidebar-collapse");
            $.AdminLTE.layout.fixSidebar();
            //var elem = document.getElementById('ctl00_CP_MarkEntryGridView');
            var elem = document.documentElement;
            if (elem.requestFullscreen) {
                elem.requestFullscreen();
            } else if (elem.mozRequestFullScreen) { /* Firefox */
                elem.mozRequestFullScreen();
            } else if (elem.webkitRequestFullscreen) { /* Chrome, Safari and Opera */
                elem.webkitRequestFullscreen();
            } else if (elem.msRequestFullscreen) { /* IE/Edge */
                elem.msRequestFullscreen();
            }
        }



        function FullScreenMethod() {
            $("body").toggleClass("sidebar-collapse");
            $.AdminLTE.layout.fixSidebar();
            $(".row").attr("display", "none");
            //alert("hi");
            var elem = document.getElementById('fullscreen');

            if (
                document.fullscreenEnabled ||
                document.webkitFullscreenEnabled ||
                document.mozFullScreenEnabled ||
                document.msFullscreenEnabled
            ) {
                if (
                    document.fullscreenElement ||
                    document.webkitFullscreenElement ||
                    document.mozFullScreenElement ||
                    document.msFullscreenElement
                ) {
                    if (document.exitFullscreen) {
                        document.exitFullscreen();
                    } else if (document.webkitExitFullscreen) {
                        document.webkitExitFullscreen();
                    } else if (document.mozCancelFullScreen) {
                        document.mozCancelFullScreen();
                    } else if (document.msExitFullscreen) {
                        document.msExitFullscreen();
                    }
                } else {
                    if (elem.requestFullscreen) {
                        elem.requestFullscreen();
                    } else if (elem.webkitRequestFullscreen) {
                        elem.webkitRequestFullscreen();
                    } else if (elem.mozRequestFullScreen) {
                        elem.mozRequestFullScreen();
                    } else if (elem.msRequestFullscreen) {
                        elem.msRequestFullscreen();
                    }
                }
            } else {
                console.log('Fullscreen is not supported on your browser.');
            }

        }
        $(document).ready(function () {
            $('#divContentPage').on('click', '.fs-button', function () {
                //FullScreenMethod();
                toggleFullScreen();
            });

            //Sys.WebForms.PageRequestManager.getInstance().add_endRequest(FullScreenMethod);
        });
    </script>

</asp:Content>
