<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MobileMasterPage.master" autoeventwireup="true" inherits="Pages_Academic_MClasswork, App_Web_qhwe4s5n" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="padding-top-header col-xl-12 pTop15">
                <!-- ContentPlaceHolder Box Starts -->
                <div class="alert alert-warning" runat="server" id="MessageBox" visible="false">
                    <strong>
                        <asp:Label ID="MessageBoxLabel" runat="server"></asp:Label></strong>
                </div>


                <div class="whiteboxpaddingleft row">
                    <!-- Sub Container2 Box Start -->
                    <div class="himssuHeader5WireBox" id="SearchDiv" runat="server">
                        <div class="himsBoxHeader page-bar col-xl-12 col-md-12 col-sm-12 padd-0">
                            <div class="width-100 border-bottom-inline">
                                <div class=" pull-left  main-topic">
                                    <asp:Label ID="Label3" runat="server" CssClass="page-title" Text="Classwork"></asp:Label>
                                </div>
                            </div>

                        </div>
                  
                       <div class="card-box card inner col-md-12 col-xl-12 col-sm-12">
                            <div class="himsBoxContent card-body  padd-0">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                        <div class="outerBox pTop5 col-xl-4 col-md-6 col-sm-12">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="FromDateLabel" runat="server" Text="Date"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="FromDatePickerControl" Width="154Px"
                                                    runat="server" Visible="true" />
                                            </div>
                                        </div>
                                       

                                        <div class="col-xl-12 table-responsive">
                                            <asp:GridView ID="ClassworkStudentGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                EmptyDataText="No Records Found !!"
                                                AllowPaging="false" ShowHeader="true" CssClass="table table-striped table-bordered" DataKeyNames="ClassworkId,ClassId,DivisionId,SubjectId"
                                                OnRowDataBound="ClassworkStudentGridView_RowDataBound">
                                                <Columns>



                                                    <asp:TemplateField HeaderText="Subject Name">

                                                        <ItemTemplate>

                                                            <asp:LinkButton ID="TitleViewLinkButton" runat="server" CommandName="Select" OnClick="ViewGridViewImageButton_Click"
                                                                Text='<%# Bind("SubjectName") %>'></asp:LinkButton>

                                                        </ItemTemplate>
                                                    </asp:TemplateField>



                                                    <asp:TemplateField HeaderText="Class" ItemStyle-Wrap="true">
                                                        <ItemTemplate>
                                                            <asp:Label ID="WorkDateLabel" runat="server" Text='<%# Bind("ClassName") %>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Division" ItemStyle-Wrap="true">
                                                        <ItemTemplate>
                                                            <asp:Label ID="DivisionGridviewLabel" runat="server" Text='<%# Bind("DivisionName") %>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                </Columns>
                                                <PagerSettings Visible="False" />
                                            </asp:GridView>
                                        </div>
                                    </asp:Panel>
                                    <div id="Div1" class="himssuHeader7WireBox  box-body box-solid gridviewfontbigger" runat="server" style="width: 100%; margin-right: 5px;">
                                        <div id="SearchNewsDetailDiv" visible="false" runat="server">
                                            <div class="spacer">
                                                <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" />
                                            </div>
                                            <div class="himsBoxHeader" id="SearchNewsDiv" visible="false" runat="server">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle" style="width: 99%">
                                                    <div align="right" class="fRight" style="margin-top: 0px;">
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent">
                                                <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                    <ContentTemplate>
                                                        <div id="SearchDiv5" runat="server" visible="true">
                                                        </div>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </div>

                                            <div id="Div11" class="himssuHeader6WireBox box-body box-solid gridviewfont" runat="server" style="width: 100%; margin-right: 5px;">
                                                <div id="UploadDiv" visible="true" runat="server">
                                                    <div class="spacer">
                                                        <asp:Image ID="Image6" runat="server" ImageUrl="~/Images/spacer.gif" />
                                                    </div>
                                                    <div class="himsBoxHeader" id="HeaderDiv" visible="False" runat="server">
                                                        <div class="leftdiv">
                                                        </div>
                                                        <div class="himsBoxTitle" style="width: 99%">
                                                            <div class="headerText">
                                                                <div class="">
                                                                    <asp:Label ID="Label7" Text="File List" runat="server" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="himsBoxContent">
                                                        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                                            <ContentTemplate>
                                                                <div id="GridViewDiv" runat="server" visible="false">
                                                                    <asp:GridView ID="FileGridView" runat="server" Width="100%" CssClass="table table-striped table-bordered" AutoGenerateColumns="False"
                                                                        ShowHeader="true" PagerSettings-Visible="false" EmptyDataText="No Files Uploaded">
                                                                        <Columns>
                                                                            <asp:TemplateField HeaderText="File Name" 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>

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

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