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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch"
    TagPrefix="Std" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<%@ Register Src="~/UserControls/AcademicDetail/ViewClassworkHomework.ascx" TagName="ViewClassworkHomework"
    TagPrefix="vch" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <vch:ViewClassworkHomework ID="ViewClassworkHomework" Visible="false" runat="server" />

            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->

                <div class="dashBoardLeftCont">
                    <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>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="212"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <!-- Sub Container2 Box Start -->
                    <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="Panel1" runat="server">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="Label3" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                    <div class="fRight mt-27">
                                        <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButton_Click" SkinID="0" Visible="false"
                                            class="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="col-md-12 bg-lghtgrey radiobtn">
                                            <asp:RadioButtonList ID="SourceTypeRadioButtonList" runat="server" RepeatDirection="Horizontal"
                                                OnSelectedIndexChanged="SourceTypeRadioButtonList_SelectedIndexChanged" AutoPostBack="true">
                                                <asp:ListItem Text="Teacher" Value="1" Selected="True"></asp:ListItem>
                                                <asp:ListItem Text="Organization" Value="2"></asp:ListItem>
                                            </asp:RadioButtonList>
                                        </div>
                                        <div id="TeacherWiseDiv" runat="server">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchTeacherLabel" runat="server" Text="Teacher"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="SearchTeacherDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                        AutoPostBack="true" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        OnSelectedIndexChanged="SearchTeacherDropDownList_SelectedIndexChanged" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchOrganizationLabel" runat="server" Text="Organization"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="SearchOrganizationDropDownList" AutoPostBack="true" OnSelectedIndexChanged="SearchOrganizationDropDownList_OnSelectedIndexChanged" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                                </div>
                                            </div>
                                        </div>
                                        <div id="OrganizationWiseDiv" runat="server" visible="false">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="OrgWiseOrganizationLabel" runat="server" Text="Organization"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="OrgWiseOrganizationDropDownList" AutoPostBack="true" OnSelectedIndexChanged="OrgWiseOrganizationDropDownList_SelectedIndexChanged" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="OrgWiseTeacherLabel" runat="server" Text="Teacher"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="OrgWiseTeacherDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                        AutoPostBack="true" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        OnSelectedIndexChanged="OrgWiseTeacherDropDownList_SelectedIndexChanged" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchSubjectLabel" runat="server" Text="Subject"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="SearchSubjectDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                    AutoPostBack="true" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    OnSelectedIndexChanged="SearchSubjectDropDownList_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </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 ID="SearchClassDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true"
                                                    OnSelectedIndexChanged="SearchClassDropDownList_OnSelectedIndexChanged" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchDivisionLabel" runat="server" Text="Division"></asp:Label>
                                            </div>
                                            <asp:DropDownList ID="SearchDivisionDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="FromDateLabel" runat="server" Text="From Date"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="FromDatePickerControl"
                                                    runat="server" Visible="true" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ToDateLabel" runat="server" Text="To Date"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="ToDatePickerControl"
                                                    runat="server" Visible="true" />
                                            </div>
                                        </div>

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

                                        <div class="alignCenter pTop5 col-md-12 center">
                                            <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click"
                                                SkinID="0" class="btn-search btn fas" />
                                            <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" OnClick="ResetButton_Click"
                                                SkinID="0" class="btn-reset btn fas" />
                                            <asp:HiddenField ID="MaxRowHiddenField" runat="server" />
                                            <asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" OnClick="ExportButton_Click" SkinID="0" CssClass="btn-examcommon btn fas" />
                                           <%-- <div class="fRight display-flex" style="padding-top: 18px">--%>
                                            <asp:Button ID="BulkApproveButton" Text="Approved" CssClass="fas btn btn-save " runat="Server" SkinID="0" OnClick="BulkApproveButton_Click" />
                                                    <asp:Button ID="BulkRejectButton" runat="server" Text="Rejected" class="fas btn btn-delete " SkinID="0" OnClick="BulkRejectButton_Click" />
                                          <%--  <asp:Button ID="SearchEmployeeAllDataButton" Text="&#xf002; Employeewise Search" runat="Server" OnClick="SearchEmployeeAllDataButton_Click"
                                                SkinID="0" class="btn-search btn fas" />--%>
                                                        <%--</div>--%>
                                        </div>
                                    </asp:Panel>
                                    <div id="Div1" class="himssuHeader7WireBox col-md-12" runat="server">
                                        <div id="SearchNewsDetailDiv" visible="false" runat="server">

                                            <div class="himsBoxHeader" id="SearchNewsDiv" visible="false" runat="server">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <div class="headerText">
                                                        <div>
                                                            <asp:Label ID="GridViewLabel" Text="" runat="server" Font-Bold="true" />
                                                        </div>
                                                    </div>
                                                    <div class="col-md-12 padd-0" id="ClassworkStudentGridViewPagingDiv" runat="server" visible="false">

                                                       <%-- <div class="fRight display-flex" style="padding-top: 18px">
                                                            <asp:Button ID="BulkApproveButton" Text="Approved" CssClass="fas btn btn-save " runat="Server" SkinID="0" OnClick="BulkApproveButton_Click" />&#160;
                                                        <asp:Button ID="BulkRejectButton" runat="server" Text="Rejected" class="fas btn btn-delete " SkinID="0" OnClick="BulkRejectButton_Click" />&#160;&#160;&#160;&#160;&#160;
                                                        </div>--%>
                                                        <div class="col-md-4" style="padding-top:45px;">

                                                            <asp:Label ID="RecordsPerPage" Text="Records per Page : " runat="server"  />
                                                            <asp:DropDownList ID="AddRowsToGridDropDownList" SkinID="CustomWidthDropDownList" Width="60px" runat="server"
                                                                AutoPostBack="true" OnSelectedIndexChanged="AddRowsToGridDropDownList_SelectedIndexChanged">
                                                                <asp:ListItem Text="10" Value="10" Selected="True"></asp:ListItem>
                                                                <asp:ListItem Text="20" Value="20"></asp:ListItem>
                                                                <asp:ListItem Text="50" Value="50"></asp:ListItem>
                                                                <asp:ListItem Text="100" Value="100"></asp:ListItem>
                                                            </asp:DropDownList>'
                                                        </div>
                                                        <div class="col-md-8" style="padding-top:45px;">
                                                            <uc1:GridViewPager ID="ClassworkStudentGridView_GridViewPager" runat="server" OnFirstRecordClick="ClassworkStudentGridView_GridviewPager_FirstRecordClick"
                                                                OnLastRecordClick="ClassworkStudentGridView_GridViewPager_LastRecordClick" OnNextRecordClick="ClassworkStudentGridView_GridViewPager_NextRecordClick"
                                                                OnPrevRecordClick="ClassworkStudentGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="ClassworkStudentGridView_GridViewPager_TextBoxValueChange"
                                                                ParentGridView="ClassworkStudentGridView" />
                                                        </div>

                                                    </div>
                                                </div>
                                            </div>



                                            <div class="himsBoxContent col-md-12 pTop5 table-responsive">

                                                <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                    <ContentTemplate>
                                                        <div id="SearchDiv5" runat="server" visible="false">
                                                            <asp:GridView ID="ClassworkStudentGridView" runat="server" AutoGenerateColumns="False" Width="100%"
                                                                CssClass="table table-striped table-bordered table-hover" OnRowDataBound="ClassworkStudentGridView_RowDataBound"
                                                                OnPageIndexChanging="ClassworkStudentGridView_PageIndexChanged"
                                                                EmptyDataText="No Records Found !!" AllowPaging="true" PageSize="10" ShowHeader="true" PagerSettings-Visible="false" DataKeyNames="Id,OrgId,BatchId,Organization,EmployeeId,Batch,ClassId,DivisionId,SubjectId,StatusId,UniqueId">
                                                                <Columns>
                                                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="2%">
                                                                        <HeaderTemplate>
                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="IsSelectCheckBoxAll" onclick="CheckAll(this);" runat="server" Enabled="true" />
                                                                                <span></span>
                                                                            </label>
                                                                        </HeaderTemplate>
                                                                        <ItemStyle HorizontalAlign="Center" />
                                                                        <ItemTemplate>
                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="IsSelectCheckBox" runat="server" />
                                                                                <span></span>
                                                                            </label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField ItemStyle-Width="6%" ItemStyle-Wrap="true">
                                                                        <ItemStyle HorizontalAlign="Center" />
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="SelectLinkButton" runat="server" CommandName="Select" Text="Select"
                                                                                CausesValidation="false" OnClick="SelectLinkButton_Click"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField ItemStyle-Width="6%" ItemStyle-Wrap="true">
                                                                        <ItemStyle HorizontalAlign="Center" />
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="LinkButton" runat="server" CommandName="Select" Text="View"
                                                                                CausesValidation="false" OnClick="LinkButton_Click"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Teacher Name" ItemStyle-Width="10%" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="TeacherNameLabel" runat="server" Text='<%# Bind("TeacherName") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <%--<asp:BoundField DataField="TeacherName" ItemStyle-Width="10%" HeaderText="Teacher Name"></asp:BoundField>--%>
                                                                    <asp:TemplateField HeaderText="Org Name" ItemStyle-Width="10%" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="OrganizationNameLabel" runat="server" Text='<%# Bind("Organization") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <%--<asp:BoundField DataField="Organization" ItemStyle-Width="12%" HeaderText="Org Name"></asp:BoundField>--%>
                                                                    <asp:TemplateField HeaderText="Class Name" ItemStyle-Width="8%" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="ClsLabel" runat="server" Text='<%#Bind("ClassName")%>'></asp:Label>
                                                                            <asp:Label ID="DesLabel" runat="server" Text="-"></asp:Label>
                                                                            <asp:Label ID="DivisionLabel" runat="server" Text='<%#Bind("DivisionName")%>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Subject Name" ItemStyle-Width="10%" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="SubjectNameLabel" runat="server" Text='<%# Bind("SubjectName") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <%--<asp:BoundField DataField="SubjectName" HeaderText="Subject Name" ItemStyle-Width="10%"></asp:BoundField>--%>
                                                                    <asp:TemplateField HeaderText="Classwork Date" ItemStyle-Width="10%" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="WorkDateLabel" runat="server" Text='<%# Bind("ClassWorkDate","{0:dd/MM/yyyy}") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField ItemStyle-Width="16%" ItemStyle-Wrap="true" HeaderText="Classwork">
                                                                        <ItemStyle HorizontalAlign="Left" Wrap="true" />
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="ClassWorkLabel" runat="server" Text='<%# Bind("Classwork") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField DataField="Homework" ItemStyle-Width="19%" HeaderText="Homework"
                                                                        ItemStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                    <asp:TemplateField ItemStyle-Width="16%" ItemStyle-Wrap="true" HeaderText="Created DateTime">
                                                                        <ItemStyle HorizontalAlign="Left" Wrap="true" />
                                                                        <ItemTemplate>
                                                                            <%--<asp:Label ID="CreatedDateTimeLabel" runat="server" Text='<%# Bind("CreatedDateTime","{0:dd/MM/yyyy hh.MM tt}") %>' ></asp:Label>--%>
                                                                            <asp:Label ID="CreatedDateTimeLabel" runat="server" Text='<%# Bind("CreatedDateTime","{0:dd/MM/yyyy hh.mm tt}") %>'></asp:Label>

                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Status" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="StatusLabel" runat="server" Text='<%#Eval("StatusId")%>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>

                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </div>
                                        </div>
                                    </div>

                                </div>
                        </div>
                    </div>
                    </asp:Panel>
                </div>
            </div>
            <!-- Sub Container2 Box Ends -->
            <!-- Sub Container1 Box Start -->
            <div class="himssuHeader1WireBox card card-box" id="DetailDiv" runat="server" visible="false">
                <div class="himsBoxHeader card-head">
                    <div class="leftdiv">
                    </div>
                    <div class="himsBoxTitle">
                        <div class="headerText">
                            <header>
                                <i class="fas fa-list-ul"></i>
                                <asp:Label ID="NewsDetailLabel" runat="server" Text="Classwork"></asp:Label>
                            </header>
                        </div>
                    </div>

                    <div class="fRight mt-27 pagination display-flex ">
                        <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                            <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                runat="server" ImageUrl="~/Images/arrowLlast.gif" CommandName="Page" CommandArgument="First"
                                OnClick="FirstRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-fast-backward"></i>
                            </asp:LinkButton>
                            <asp:LinkButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                runat="server" ImageUrl="~/Images/arrowLeft.gif" CommandName="Page" CommandArgument="Prev"
                                OnClick="PreviousImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-play fa-rotate-180"></i>
                            </asp:LinkButton>

                            <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                            &nbsp; 
                                    <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                            &nbsp;  
                                    <asp:Label ID="ofLabel" Text="of" runat="server" />
                            &nbsp;  
                                    <asp:Label ID="TotalRecord" runat="server" />
                            &nbsp;
                                                            <asp:LinkButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                                runat="server" ImageUrl="~/Images/arrowRight.gif" CommandName="Page" CommandArgument="Next"
                                                                OnClick="NextImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-play"></i>
                                                            </asp:LinkButton>
                            <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                runat="server" ImageUrl="~/Images/arrowRLast.gif" CommandName="Page" CommandArgument="Last"
                                OnClick="LastRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-fast-forward"></i>
                            </asp:LinkButton>

                        </div>
                        &nbsp; &nbsp;
                                <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0"
                                    class="btn btn-back fas" Text="&#xf30a;  Back" />

                    </div>
                </div>

                <div class="himsBoxContent card-body">
                    <div class="contentHolder">
                        <div class="tableContainer">
                            <div class="contentHolder">
                                <div class="outerBox pTop5 col-md-3" id="TeacherDropDownDiv" runat="server" visible="true">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="TeacherLabel" runat="server" Text="Teacher Name" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="TeacherAddDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="TeacherAddDropDownList_OnSelectedIndexChanged"
                                            AutoPostBack="true" />
                                    </div>
                                    <asp:HiddenField ID="EmpIdHidden" runat="server" />
                                </div>

                                <div class="outerBox pTop5 col-md-3" id="TeacherLabelDiv" runat="server" visible="true">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="TeacherNameHeaderLabel" runat="server" Text="Teacher Name" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:Label ID="TeacherNameLabel" runat="server" Text=""></asp:Label>
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3" id="OrgDropDownDiv" runat="server" visible="true">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="OrganizationLabel" runat="server" Text="Organization" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="OrganizationDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="OrganizationDropDownList_OnSelectedIndexChanged"
                                            AutoPostBack="true" />
                                    </div>
                                    <asp:HiddenField ID="OrgIdHidden" runat="server" />
                                </div>

                                <div class="outerBox pTop5 col-md-3" id="OrgLabelDiv" runat="server" visible="true">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="OrgHeaderLabel" runat="server" Text="Organization" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:Label ID="OrgLabel" runat="server" Text=""></asp:Label>
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3" id="BatchDropDownDiv" runat="server" visible="true">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="BatchDrpLabel" runat="server" Text="Batch" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="BatchDropDownList" Enabled="false" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="BatchDropDownList_SelectedIndexChanged" />
                                    </div>
                                    <asp:HiddenField ID="BatchIdHidden" runat="server" />
                                </div>

                                <div class="outerBox pTop5 col-md-3" id="BatchLabelDiv" runat="server" visible="true">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="BatchHeaderLabel" runat="server" Text="Batch" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:Label ID="BatchLabel" runat="server" Text=""></asp:Label>
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3" id="SubjectDropDownDiv" runat="server" visible="true">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="SubjectDrpLabel" runat="server" Text="Subject"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="SubjectAddDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="SubjectAddDropDownList_OnSelectedIndexChanged"
                                            AutoPostBack="true">
                                        </asp:DropDownList>
                                    </div>
                                    <asp:HiddenField ID="SubIdHidden" runat="server" />
                                </div>

                                <div class="outerBox pTop5 col-md-3" id="SubjectLabelDiv" runat="server" visible="true">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="SubjectHeaderLabel" runat="server" Text="Subject"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:Label ID="SubjLabel" runat="server" Text=""></asp:Label>
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3" id="ClassDropdownDiv" runat="server" visible="true">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ClassDrpLabel" runat="server" Text="Class Name"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="ClassAddDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true"
                                            OnSelectedIndexChanged="ClassAddDropDownList_OnSelectedIndexChanged" />
                                    </div>
                                    <asp:HiddenField ID="ClassIdHidden" runat="server" />
                                </div>

                                <div class="outerBox pTop5 col-md-3" id="ClassLabelDiv" runat="server" visible="true">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ClassHeaderLabel" runat="server" Text="Class Name"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:Label ID="ClsLabel" runat="server" Text=""></asp:Label>
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3" id="DivisionDropdownDiv" runat="server" visible="true">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="DivisionDrpLabel" runat="server" Text="Division Name"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="DivisionAddDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                    </div>
                                    <asp:HiddenField ID="DivisionIdHidden" runat="server" />
                                </div>

                                <div class="outerBox pTop5 col-md-3" id="DivisionLabelDiv" runat="server" visible="true">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="DivHeaderLabel" runat="server" Text="Division Name"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:Label ID="DivLabel" runat="server" Text=""></asp:Label>
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3" id="DatePickerDiv" runat="server" visible="true">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="LabelDatePick" runat="server" Text="Classwork Date"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <Date:DatePickerControl DisplayDatePicker="true" ID="ClassworkDatePickerControl"
                                            runat="server" Visible="true" OnTextChanged="ClassworkDatePickerControl_TextChanged" />
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3" id="DateLabelDiv" runat="server" visible="true">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="DateHeaderLabel" runat="server" Text="Classwork Date"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:Label ID="DateLabel" runat="server" Text=""></asp:Label>
                                    </div>
                                </div>


                                <div class="alignCenter pTop5 col-md-12">
                                    <br />
                                    <asp:HiddenField ID="IdHiddenField" runat="server" />
                                </div>
                                <div id="NewsDetailDiv" visible="false" runat="server">
                                    <br />
                                    <br />
                                    <br />
                                    <div class="himsBoxContent card-body table-responsive pTop5">
                                        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
                                            <ContentTemplate>
                                                <div id="Div5" runat="server" visible="false" class="box-body box-solid ">
                                                    <asp:GridView ID="ClassworkAddGridView" runat="server" AutoGenerateColumns="False"
                                                        CssClass="table table-striped table-bordered table-hover" EmptyDataText="No Records Found !!"
                                                        DataKeyNames="Id,SubjectId,DivisionId,ClassId,UniqueId" AllowPaging="false" ShowHeader="true"
                                                        OnRowDataBound="ClassworkAddGridView_RowDataBound">
                                                        <Columns>
                                                            <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="4%"
                                                                ItemStyle-Wrap="true">
                                                                <HeaderTemplate>
                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" Enabled="false" AutoPostBack="true"
                                                                            Visible="true" OnCheckedChanged="HeaderSelectCheckBox_checked" />
                                                                        <span></span>
                                                                    </label>
                                                                </HeaderTemplate>
                                                                <ItemStyle HorizontalAlign="Center" />
                                                                <ItemTemplate>
                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="SelectCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="SelectCheckBox_checked" />
                                                                        <span></span>
                                                                    </label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Class" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="5%"
                                                                ItemStyle-Wrap="true">
                                                                <ItemStyle HorizontalAlign="Center" />
                                                                <ItemTemplate>
                                                                    <asp:Label ID="ClassLabel" runat="server" Text='<%#Bind("ClassName")%>'></asp:Label>
                                                                    <asp:Label ID="TempLabel" runat="server" Text="-"></asp:Label>
                                                                    <asp:Label ID="DivLabel" runat="server" Text='<%#Bind("DivisionName")%>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Subject Name" ItemStyle-Width="9%" ItemStyle-Wrap="true">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="SubjectLabel" runat="server" Text='<%# Bind("SubjectName") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="5%"
                                                                ItemStyle-Wrap="true">
                                                                <HeaderTemplate>
                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="ClassworkHeaderCheckBox" runat="server" Checked="true" Enabled="false" AutoPostBack="true"
                                                                            Visible="true" OnCheckedChanged="ClassworkHeaderCheckBox_CheckedChanged" />
                                                                        <span></span>
                                                                        Classwork Applicable
                                                                    </label>
                                                                </HeaderTemplate>
                                                                <ItemStyle HorizontalAlign="Center" />
                                                                <ItemTemplate>
                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="ClassWorkApplicableCheckBox" Checked="true" runat="server" Enabled="false" AutoPostBack="true"
                                                                            Visible="true" OnCheckedChanged="ClassWorkApplicableCheckBox_CheckedChanged" />
                                                                        <span></span>
                                                                    </label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Classwork" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="14%"
                                                                ItemStyle-Wrap="true">
                                                                <ItemStyle HorizontalAlign="Center" />
                                                                <ItemTemplate>
                                                                    <asp:TextBox ID="ClassWorkTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                        SkinID="MultiLineTextBox" MaxLength="100" Text='<%#Eval("Classwork") %>'
                                                                        TextMode="MultiLine" runat="server"></asp:TextBox>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="10%"
                                                                ItemStyle-Wrap="true">
                                                                <HeaderTemplate>
                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="HomeWorkHeaderCheckBox" Checked="true" runat="server" Enabled="false" AutoPostBack="true"
                                                                            Visible="true" OnCheckedChanged="HomeWorkHeaderCheckBox_CheckedChanged" />
                                                                        <span></span>
                                                                        HomeWork Applicable
                                                                    </label>
                                                                </HeaderTemplate>
                                                                <ItemStyle HorizontalAlign="Center" />
                                                                <ItemTemplate>
                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="HomeWorkApplicableCheckBox" Checked="true" runat="server" Enabled="false" AutoPostBack="true"
                                                                            Visible="true" OnCheckedChanged="HomeWorkApplicableCheckBox_CheckedChanged" />
                                                                        <span></span>
                                                                    </label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Homework" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="14%"
                                                                ItemStyle-Wrap="true">
                                                                <ItemStyle HorizontalAlign="Center" />
                                                                <ItemTemplate>
                                                                    <asp:TextBox ID="HomeWorkTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                        SkinID="MultiLineTextBox" MaxLength="100" Text='<%#Eval("Homework") %>'
                                                                        TextMode="MultiLine" runat="server" ClientIDMode="Inherit"></asp:TextBox>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Homework End Date" HeaderStyle-HorizontalAlign="Center"
                                                                ItemStyle-Width="15%" ItemStyle-Wrap="true">
                                                                <ItemStyle HorizontalAlign="Center" />
                                                                <ItemTemplate>
                                                                    <Date:DatePickerControl DisplayDatePicker="true" ID="HomeWorkEndDatePickerControl"
                                                                        runat="server" Visible="true" Text='<%#Eval("HomeWorkEndDate") %>' />
                                                                </ItemTemplate>
                                                            </asp:TemplateField>

                                                        </Columns>
                                                        <PagerSettings Visible="False" />
                                                    </asp:GridView>
                                                </div>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </div>

                                    <br />
                                    <asp:Label ID="Label2" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                </div>
                            </div>
                        </div>
                    </div>


                    <div id="Div11" class="himssuHeader6WireBox col-md-12" runat="server"
                        style="width: 100%; margin-right: 5px;">
                        <div id="UploadDiv" visible="true" runat="server">

                            <div class="himsBoxHeader  card-head inner" id="HeaderDiv" visible="False" runat="server">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <asp:Label ID="Label7" Text="File List" runat="server" />
                                        </header>
                                    </div>
                                </div>
                            </div>

                            <div class="himsBoxContent pTop5 table-responsive">
                                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                    <ContentTemplate>
                                        <div id="GridViewDiv" runat="server" visible="false">
                                            <asp:GridView ID="FileGridView" runat="server" CssClass="table table-striped table-bordered table-hover"
                                                AutoGenerateColumns="False" ShowHeader="true" PagerSettings-Visible="false" EmptyDataText="No Files Uploaded"
                                                DataKeyNames="UniqueText">
                                                <Columns>
                                                    <asp:TemplateField HeaderText="SrNo." ItemStyle-Width="1%">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblRowNumber" Text='<%# Container.DataItemIndex + 1 %>' runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="File Name" ItemStyle-Width="90%" HeaderStyle-HorizontalAlign="Left"
                                                        ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                        <ItemTemplate>
                                                            <asp:HyperLink ID="FileNameHyperLink" runat="server" Text='<%# Eval("FileName") %>'
                                                                NavigateUrl='<%# Eval("FilePath") %>' Target="_blank"></asp:HyperLink>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Delete" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Center" Visible="false"
                                                        ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                        <ItemTemplate>
                                                            <asp:ImageButton ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_OnClick"
                                                                ImageUrl="~/Images/icons/icon_delete.gif" ToolTip="Delete" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                            </asp:GridView>
                                        </div>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
            <!-- Sub Container1 Box Ends -->
            </div>

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

