<%@ page language="C#" autoeventwireup="true" inherits="Pages_Communication_MClassworkAdd, App_Web_qhwe4s5n" masterpagefile="~/Pages/Common/MasterPages/MobileMasterPage.master" 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="DoctorScheduleUpdatePanel" runat="server">
        <ContentTemplate>

            <div class="padding-top-header  col-xl-12 pTop15">
                <%--  <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>--%>
                <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">
                    <div class="himssuHeader1WireBox">
                        <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="Label4" CssClass="page-title" Text="Classwork Add"
                                        runat="server" />
                                </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">
                                <div class="fRight mt-27">
                                    <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" CssClass="BackButton" Text="Back" />
                                </div>
                                <div class="outerBox pTop5 col-xl-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="DisplayClassLabel" runat="server" Text="Class" Font-Bold="true"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:Label ID="ClassLabel" runat="server" Text=""></asp:Label>
                                        <%-- <asp:DropDownList ID="ClassDropDown" runat="server" AutoPostBack="true" Width="154px"
                                                                OnSelectedIndexChanged="ClassDropDownList_SelectedIndexChanged"></asp:DropDownList>--%>
                                        <asp:HiddenField ID="ClassworkIdHiddenField" runat="server" />
                                        <asp:HiddenField ID="ClassIdHiddenField" runat="server" />
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-xl-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="DisplayDivisionLabel" runat="server" Text="Division" Font-Bold="true"></asp:Label>

                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:Label ID="DivisionLabel" runat="server" Text=""></asp:Label>
                                        <%--   <asp:DropDownList ID="DivisionDropDown" runat="server" AutoPostBack="true" Width="154px"
                                                                OnSelectedIndexChanged="DivisionDropDownList_SelectedIndexChanged"></asp:DropDownList>--%>
                                        <asp:HiddenField ID="DivisionIdHiddenField" runat="server" />
                                    </div>
                                </div>
                              
                                <div class="outerBox pTop5 col-xl-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="DisplaySubjectLabel" runat="server" Text="Subject" Font-Bold="true"></asp:Label>
                                    </div>
                                    <asp:Label ID="SubjectLabel" runat="server" Text=""></asp:Label>
                                    <%--   <asp:DropDownList ID="SubjectDropDownList" runat="server"
                                                                Width="154px" SkinID="CustomWidthDropDownList" onmouseleave="showHideTooltip()"
                                                                onmouseenter="showHideTooltip()" AutoPostBack="false" />--%>
                                    <asp:HiddenField ID="SubjectIdHiddenField" runat="server" />
                                </div>

                             <div class="cBoth"></div>
                                <div class="outerBox11 pTop5 col-xl-6">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ClassworkLabel" runat="server" Text="Class Work" Font-Bold="true"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="ClassworkTextBox" runat="server" TextMode="MultiLine"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox11 pTop5 col-xl-6">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="HomeworkLabel" runat="server" Text="Home Work" Font-Bold="true"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="HomeworkTextBox" runat="server" TextMode="MultiLine"></asp:TextBox>
                                    </div>
                                </div>
                              
                                <div class="outerBox pTop5 col-xl-4">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ClassWorkDateLabel" runat="server" Text="Class Work Date" Font-Bold="true">
                                        </asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <Date:DatePickerControl DisplayDatePicker="true" ID="ClassWorkDatePickerControl"
                                            runat="server" Visible="true" />
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-xl-4">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="HomeWorkEndDateLabel" runat="server" Text="Home Work End Date" Font-Bold="true">
                                        </asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <Date:DatePickerControl DisplayDatePicker="true" ID="HomeWorkEndDatePickerControl"
                                            runat="server" Visible="true" />
                                    </div>
                                </div>
                             
                                <div class="outerBox pTop5 col-xl-12 pTop10 pb5 alignCenter">
                                    <asp:Button ID="SaveButton" runat="server" Text="&#xf0c7; Save" CssClass="btn btn-save fas" SkinID="0" OnClick="SaveButton_Click" />
                               
                                    <asp:Button ID="AddAttachmentButton" runat="server" Text="&#xf067; Add Attachment" SkinID="0" CssClass="btn btn-add fas" OnClick="AddAttachmentButton_Click" />
                              
                                    <asp:Button ID="RefreshButton" runat="server" Text="&#xf2f9; Refresh" SkinID="0" CssClass="btn btn-refresh fas" OnClick="RefreshButton_Click" />
                              
                                    <asp:Button ID="DeleteButton" runat="server" Text="&#xf2ed; Delete" CssClass="btn btn-delete fas" SkinID="0" OnClick="DeleteButton_Click" />
                               
                            </div>
                        </div>


                        <div id="GridViewDiv" class="box-body box-solid" 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" DataKeyNames="ClassworkId">
                                <Columns>
                                    <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"
                                        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>
                    </div>
                    </div>
                    </section>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--  <script data-main="../../JavaScript/rjs/encrypt/mempprofile-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/mempprofile")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
