<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MobileMasterPage.master" autoeventwireup="true" inherits="Pages_Academic_MMyClasswork, App_Web_grtmhu1y" 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">
                <!-- 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 style="width: 100%; padding: 2px; margin: 2px">
                    <table width="100%" border="0" style="vertical-align: top; margin-top: -1px; border-collapse: collapse;" cellpadding="0" cellspacing="0">
                        <tr>
                            <%--<div class="col-md-3">
                        <section class="content-header" style="margin-bottom: 5px; margin-right: 0px; padding-right: 0px !important; padding-left: 0px;">
                             <div style="padding-right:0;">
                                 <asp:Label runat="server" ID="ScreenNamelabel" Text="" Font-Bold="true" CssClass="screennamelabel"/>
                             </div>
                        </section>
                    </div>--%>
                            <td style="vertical-align: top;" width="100%" class="whiteboxpaddingleft">
                                <!-- Sub Container2 Box Start -->
                                <div class="himssuHeader5WireBox whitebox" id="SearchDiv" runat="server">
                                    <div class="himsBoxHeader note note1 box box-danger">
                                        <asp:Panel ID="Panel1" runat="server">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <asp:Label ID="Label3" runat="server" Text="My Classwork"></asp:Label>
                                                </div>

                                            </div>
                                        </asp:Panel>
                                    </div>
                                    <div class="himsBoxContent">
                                        <asp:Panel ID="DetailPanel" runat="Server">
                                            <div class="contentHolder">
                                                <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                                    <div class="outerBox pTop5">
                                                        <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" Width="154Px"
                                                                runat="server" Visible="true" />
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5">
                                                        <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" Width="154Px"
                                                                runat="server" Visible="true" />
                                                        </div>
                                                    </div>
                                                    <div class="cBoth">
                                                    </div>

                                                    <div class="alignCenter pTop5">
                                                        <asp:Button ID="SearchButton" Text="Search" runat="Server" OnClick="SearchButton_Click"
                                                            SkinID="0" CssClass="btn-primary" />
                                                        <asp:Button ID="ResetButton" runat="server" Text="Clear" OnClick="ResetButton_Click" />
                                                        <asp:HiddenField ID="MaxRowHiddenField" runat="server" />
                                                    </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="false">
                                                                        <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="Id"
                                                                            OnRowDataBound="ClassworkStudentGridView_RowDataBound">
                                                                            <Columns>

                                                                                <%--<asp:BoundField DataField="TeacherName" ItemStyle-Width="7%" HeaderText="Teacher Name"></asp:BoundField>--%>

                                                                                <asp:TemplateField HeaderText="Subject Name">

                                                                                    <ItemTemplate>
                                                                                        <%-- <asp:BoundField DataField="SubjectName" HeaderText="Subject Name"></asp:BoundField>--%>
                                                                                        <asp:LinkButton ID="TitleViewLinkButton" runat="server" CommandName="Select" OnClick="ViewGridViewImageButton_Click"
                                                                                            Text='<%# Bind("SubjectName") %>' CausesValidation="false"></asp:LinkButton>

                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>

                                                                                <%--   <asp:TemplateField ItemStyle-Width="15%" ItemStyle-Wrap="true" HeaderText="Class Work">
                                                                                    <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="15%" HeaderText="Home Work"
                                                                                    ItemStyle-HorizontalAlign="Left"></asp:BoundField>--%>

                                                                                <asp:TemplateField HeaderText="Work End Date" ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="WorkDateLabel" runat="server" Text='<%# Bind("HomeWorkEndDate","{0:dd/MM/yyyy}") %>'></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <%--<asp:TemplateField ShowHeader="false">
                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                    <ItemTemplate>
                                                                                        <asp:ImageButton ID="ViewGridViewImageButton" runat="server"
                                                                                            CausesValidation="False" CommandName="Select"
                                                                                            ImageUrl="~/Images/view.png" ToolTip="View" OnClick="ViewGridViewImageButton_Click" AutoPostBack="true"
                                                                                            Enabled="true" Width="20px" Visible="false" />
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>--%>
                                                                            </Columns>
                                                                            <PagerSettings Visible="False" />
                                                                        </asp:GridView>
                                                                    </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>

                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--   <script data-main="../../JavaScript/rjs/encrypt/mclass-work-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main="../../JavaScript/rjs/mclass-work" src="../../JavaScript/rjs/require.js"></script>
</asp:Content>
