<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Attendance_AttendanceAdmin, App_Web_usx4rsn2" 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" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="AttendanceAdminUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->

                <div class="dashBoardLeftCont" valign="top">
                    <div class="himssuHeader3WireBox">
                        <%--<div class="himsBoxHeader">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <asp:Label runat="server" ID="ScreenGroupNameLabel"></asp:Label>
                                            </div>
                                        </div>
                                    </div>--%>
                        <table width="0px" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="167"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft">
                    <div class="himssuHeader2WireBox">
                        <div class="contentHolder" style="padding-top: 0px; padding-left: 0px; padding-right: 0px">
                            <div class="himssuHeader1WireBox card card-box">
                                <div class="himsBoxHeader card-head">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="headerText">
                                            <header>
                                                <i class="fas fa-file-alt"></i>
                                                <asp:Label ID="Label1" runat="server" Text="Attendance Admin"></asp:Label>
                                            </header>
                                        </div>
                                    </div>
                                </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="controLabelWidth">
                                                        <asp:Label ID="AttendanceTypeLabel" Text="Attendance Type " runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="AttendanceTypeDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" AutoPostBack="True"
                                                            OnSelectedIndexChanged="AttendanceTypeDropDownList_OnSelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controLabelWidth">
                                                        <asp:Label ID="ClassLabel" Text="Class" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="ClassDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" AutoPostBack="True"
                                                            OnSelectedIndexChanged="ClassDropDownList_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controLabelWidth">
                                                        <asp:Label ID="DivisionLabel" Text="Division" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="DivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" AutoPostBack="True"
                                                            OnSelectedIndexChanged="DivisionDropDownList_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div id="SubjectDiv" runat="server" visible="false">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="SubjectLabel" runat="server" Text="Subject"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="SubjectDropDownList" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                AutoPostBack="true" OnSelectedIndexChanged="SubjectDropDownList_SelectedIndexChanged">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <%--change for mantis: 31683--%>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="RepeatCountLabel" runat="server" Text="Period No"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="RepeatCountDropDownList" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controLabelWidth">
                                                        <asp:Label ID="StudentNameLabel" Text="StudentName" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="StudentNameDropDownList" 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="FromAttendanceDateLabel" runat="server" Text="From Attendance Date" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <Date:DatePickerControl DisplayDatePicker="true" ID="FromAttendanceDatePickerControl" runat="server" />
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ToAttendanceDateLabel" runat="server" Text="To Attendance Date" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <Date:DatePickerControl DisplayDatePicker="true" ID="ToAttendanceDatePickerControl" runat="server" />
                                                    </div>
                                                </div>

                                                <div class="alignCenter col-md-12 pTop15">
                                                    <asp:Button ID="DeleteDayRegisterButton" Text="&#xf2ed; Delete Day Register" CssClass="btn-delete btn fas" runat="Server" Visible="true" SkinID="0" OnClick="DeleteDayRegisterButton_Click" />
                                                    <asp:HiddenField ID="DayRegisterHiddenField" runat="server" />
                                                    <asp:Button ID="DeleteMonthlyRegisterButton" Text="&#xf2ed; Delete Monthly Register" CssClass="btn-delete btn fas" runat="Server" Visible="true" SkinID="0" OnClick="DeleteMonthlyRegisterButton_Click" />
                                                    <asp:HiddenField ID="MonthlyRegisterHiddenField" runat="server" />
                                                    <asp:Button ID="DeleteStudentSetupButton" runat="Server" Text="&#xf2ed; Delete Student Setup" CssClass="btn-delete btn fas" Visible="true" SkinID="0" OnClick="DeleteStudentSetupButton_Click" />
                                                </div>

                                                <div class="col-md-12">
                                                    <div class="alert alert-info pTop15">
                                                        <%-- <asp:Label ID="NoteLabel1" runat="server" Text="Only Admin can perform the actions on this page" Font-Size="X-Small"></asp:Label><br />
                                                    <asp:Label ID="NoteLabel2" runat="server" Text="Make sure you are aware of functionality, Changes are irrversible" Font-Size="X-Small"></asp:Label><br />--%>

                                                        <div class="width-100"><i class="material-icons pos-rel">info</i> | &nbsp;<asp:Label ID="NoteLabel1" runat="server" Text=" Only Admin can perform the actions on this page"></asp:Label></div>
                                                        <div class="width-100">
                                                            <i class="material-icons pos-rel">info</i> |&nbsp;
                                                        <asp:Label ID="NoteLabel2" runat="server" Text=" Make sure you are aware of functionality, Changes are irrversible"></asp:Label>
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                        </div>
                                    </asp:Panel>



                                    <asp:Panel ID="pnlClick" runat="server">
                                        <div class="himsBoxHeader card-head inner">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <header>
                                                        <asp:Label ID="Label2" runat="server" Text="Annual Attendance Update "></asp:Label>
                                                    </header>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>

                                    <div class="himsBoxContent">
                                        <asp:Panel ID="Panel1" runat="Server">
                                            <div class="contentHolder">

                                                <%-- <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="UpdateExamSubGroupLabel" runat="server" SkinID="MandatoryLabel"  Text="Exam Sub Group"></asp:Label></div>
                                                                    <div class="fLeft pRight5">
                                                                      <asp:DropDownList ID="UpdateExamSubGroupDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                    SkinID="CustomWidthDropDownList" Width="154px" OnSelectedIndexChanged="UpdateExamSubGroupDropDownList_SelectedIndexChanged"
                                                                    onmouseenter="showHideTooltip()" AutoPostBack=true>
                                                                </asp:DropDownList>
                                                                    </div>
                                                                </div>--%>



                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <%--<asp:HiddenField ID="ContractorIdHiddenField" runat="server" />--%>
                                                        <asp:Label ID="UpdateClassLabel" Text="Class" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="UpdateClassDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                            SkinID="CustomWidthDropDownList" CssClass="form-control" AutoPostBack="true" OnSelectedIndexChanged="UpdateClassDropDownList_SelectedIndexChanged"
                                                            onmouseenter="showHideTooltip()">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>


                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <%--<asp:HiddenField ID="ContractorIdHiddenField" runat="server" />--%>
                                                        <asp:Label ID="UpdateDivisionLabel" Text="Division" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="UpdateDivisionDropDownList" AutoPostBack="true" runat="server" onmouseleave="showHideTooltip()"
                                                            SkinID="CustomWidthDropDownList" CssClass="form-control" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="UpdateDivisionDropDownList_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <%--<asp:HiddenField ID="ContractorIdHiddenField" runat="server" />--%>
                                                        <asp:Label ID="StudentLabel" Text="Student" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="StudentDropDownList" AutoPostBack="true" runat="server" onmouseleave="showHideTooltip()"
                                                            SkinID="CustomWidthDropDownList" CssClass="form-control" onmouseenter="showHideTooltip()">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>



                                                <%--  <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                
                                                                <asp:Label ID="UpdateExamLabel" Text="Exam"  runat="server" ></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                            <asp:DropDownList ID="UpdateExamDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                    SkinID="CustomWidthDropDownList" Width="154px" 
                                                                    onmouseenter="showHideTooltip()" AutoPostBack=true>
 
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                --%>

                                                <%--  <div class="cBoth">
                                                        </div>--%>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="SearchFromDateLabel" runat="server" Text="From Date" SkinID="MandatoryLabel"></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" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <Date:DatePickerControl DisplayDatePicker="true" ID="SearchToDatePicker" runat="server" />
                                                    </div>
                                                </div>

                                                <div class="alignCenter col-md-12 pTop10">
                                                    <asp:Button ID="UpdateButton" runat="Server"
                                                        SkinID="0" CssClass="btn-update btn fas" Text="&#xf021; Update" OnClick="UpdateButton_Click" />

                                                </div>


                                            </div>
                                        </asp:Panel>
                                    </div>


                                    <asp:Panel ID="pnlClick3" runat="server">
                                        <div class="himsBoxHeader card-head inner">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <header>
                                                        <asp:Label ID="Label3" runat="server" Text="Update"></asp:Label>
                                                    </header>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                    <div class="himsBoxContent">
                                        <asp:Panel ID="Panel3" runat="Server">
                                            <div class="contentHolder">

                                                <%-- <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="UpdateExamSubGroupLabel" runat="server" SkinID="MandatoryLabel"  Text="Exam Sub Group"></asp:Label></div>
                                                                    <div class="fLeft pRight5">
                                                                      <asp:DropDownList ID="UpdateExamSubGroupDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                    SkinID="CustomWidthDropDownList" Width="154px" OnSelectedIndexChanged="UpdateExamSubGroupDropDownList_SelectedIndexChanged"
                                                                    onmouseenter="showHideTooltip()" AutoPostBack=true>
                                                                </asp:DropDownList>
                                                                    </div>
                                                                </div>--%>



                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <%--<asp:HiddenField ID="ContractorIdHiddenField" runat="server" />--%>
                                                        <asp:Label ID="UpdateAttendacneClass_Label" Text="Class" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="UpdateAttendanceClass_DropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                            SkinID="CustomWidthDropDownList" CssClass="form-control" AutoPostBack="true" OnSelectedIndexChanged="UpdateAttendanceClassDropDownList_SelectedIndexChanged"
                                                            onmouseenter="showHideTooltip()">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>


                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <%--<asp:HiddenField ID="ContractorIdHiddenField" runat="server" />--%>
                                                        <asp:Label ID="UpdateAttendaceDivision_Label" Text="Division" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="UpdateAttendanceDivision_DropDownList" AutoPostBack="true" runat="server" onmouseleave="showHideTooltip()"
                                                            SkinID="CustomWidthDropDownList" CssClass="form-control" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="UpdateAttendanceDivision_DropDownList_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <%--<asp:HiddenField ID="ContractorIdHiddenField" runat="server" />--%>
                                                        <asp:Label ID="UpdateAttendanceStudent_Label" Text="Student" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="UpdateAttendanceStudent_DropDownList" AutoPostBack="true" runat="server" onmouseleave="showHideTooltip()"
                                                            SkinID="CustomWidthDropDownList" CssClass="form-control" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="UpdateAttendanceStudent_DropDownList_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="himsBoxContent" style="padding-left: 10px">
                                                    <div id="Div4" runat="server" class="table-responsive">
                                                        <asp:GridView ID="Update_GridView" runat="server" Width="20%" AutoGenerateColumns="False"
                                                            EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="True" DataKeyNames="AttendanceDate" CssClass="table table-striped table-bordered table-hover">
                                                            <Columns>
                                                                <asp:TemplateField ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                                                                    <ItemTemplate>
                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                            <asp:CheckBox ID="AttendanceCheckBox" runat="server" />
                                                                            <span></span>
                                                                        </label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:BoundField DataField="AttendanceDate" HeaderText="Attendance Date" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />
                                                                <%--   <asp:TemplateField HeaderText="AcademicID" ItemStyle-Width="17%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                      <asp:Label ID="Tem1pLabel" runat="server" Text='<%#Eval("AcademicId") %>'  Font-Bold="true"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                --%>
                                                            </Columns>
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                    </div>
                                                </div>

                                                <div class="alignCenter col-md-12 pTop10">
                                                    <asp:Button ID="Update_Button" runat="Server"
                                                        SkinID="0" CssClass="btn-update btn fas" Text="&#xf021; UpdateAttendace" OnClick="Update_Button_Click" />

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

                                            </div>
                                        </asp:Panel>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>

        </ContentTemplate>
    </asp:UpdatePanel>
    <%--   <script data-main="../../JavaScript/rjs/encrypt/attendance-admin-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/attendance-admin")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
