<%@ page title="Employee Search" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Communication_StudentSubjectwisePresence, App_Web_qzg5raal" uiculture="auto" meta:resourcekey="PageResource1" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="HREmployeeMasterSearchUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                
                            <div class="dashBoardLeftCont" valign="top" runat="server" id="ScreenGroupTableId">
                                <div class="himssuHeader3WireBox">
                                    <table>
                                        <tr>
                                            <td>
                                                <div class="himsBoxContent">
                                                    <div class="leftUlMenu">
                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl1" ScreenGroupId="172"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div class="whiteboxpaddingleft row">
                                <div class="himssuHeader5WireBox card card-box">
                                    <div class="himsBoxHeader card-head">
                                        <asp:Panel ID="MainHeaderPanel" runat="server" meta:resourcekey="SearchHeaderPanelResource1">
                                           
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <header>
                                                    <i class="fas fa-list-ul"></i>
                                                    <asp:Label ID="MainHeaderLabel" runat="server" Text="My Subject Attendance"></asp:Label>
                                                    </header>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>

                                    <div style="padding: 10px 10px 0px 10px; text-align: right">
                                        <button class="btn-report btn fas" onclick="javascript: printDiv('StudentSubjectwisePresenceDiv')"><span class="glyphicon glyphicon-print" aria-hidden="true"></span>&nbsp;&nbsp;Print&nbsp;</button>
                                   </div>

                                    <div id="StudentSubjectwisePresenceDiv">
                                        <div class="himssuHeader7WireBox  col-md-12 card card-box">
                                            <div class="himsBoxContent card-body">
                                                <asp:Label ID="StudentSubjectwisePresenceLabel" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <%-- <div class="himssuHeader7WireBox  box-body box-solid gridviewfontbigger">
                                            <div class="himsBoxContent">
                                                <asp:GridView runat="server" ID="StudentSubjectwisePresenceGridView" Width="100%" AutoGenerateColumns="False"
                                                    CssClass="table table-striped table-bordered" EmptyDataText="No records available for the seacrh criteria!" 
                                                    ShowHeader="True">
                                                    <Columns>
                                                        <asp:BoundField DataField="MonthName" HeaderText="Month Name" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="25%" />
                                                        <asp:BoundField DataField="SubjectName" HeaderText="Subject Name" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="25%" />
                                                        <asp:BoundField DataField="Total" HeaderText="Total" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="25%" />
                                                        <asp:BoundField DataField="Attended" HeaderText="Attended" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="25%" />
                                                    </Columns>
                                                </asp:GridView>
                                            </div>
                                        </div>--%>
                                    </div>
                                </div>
                            </div>
                        </tr>
                    </table>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>

    <script language="javascript" type="text/javascript">
        function printDiv(divID) {
            //Get the HTML of div
            var divElements = document.getElementById(divID).innerHTML;
            //Get the HTML of whole page
            var oldPage = document.body.innerHTML;
            //Reset the page's HTML with div's HTML only
            document.body.innerHTML = "<html><head><title></title></head><body>" + divElements + "</body>";
            //Print Page
            window.print();
            //Restore orignal HTML
            document.body.innerHTML = oldPage;
        }
    </script>

         <script data-main='<%=ResolveUrl("~/JavaScript/rjs/Student-Subject-wise-Presence")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
