<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MobileMasterPage.master" autoeventwireup="true" inherits="Pages_Academic_MStudentPresenceAdd, App_Web_hbbn1mxb" 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="Student Presence Add"></asp:Label>
                                                </div>

                                            </div>
                                        </asp:Panel>
                                    </div>
                                    <div class="himsBoxContent">
                                        <div class="outerBox pTop5">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ClassLabel" runat="server" Text="Class"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="ClassDropDownList" SkinID="CustomWidthDropDownList"
                                                    Width="154px" onmouseleave="showHideTooltip()" AutoPostBack="true" onmouseenter="showHideTooltip()"
                                                    OnSelectedIndexChanged="ClassDropDownList_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="DivisionLabel" runat="server" Text="Division"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="DivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                    Width="154px" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    OnSelectedIndexChanged="DivisionDropDownList_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="cBoth">
                                        </div>

                                        <div class="outerBox pTop5">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="AdmissionDateLabel" runat="server" Text="Attendance Date"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl ID="AttendanceDate" runat="server" DisplayDatePicker="true" />
                                            </div>
                                        </div>
                                        <div class="cBoth">
                                        </div>

                                        <div class="alignCenter pTop5">
                                            <asp:Button ID="SearchButton" runat="server" CssClass="btn btn-primary" Text="Search"
                                                OnClick="SearchButton_Click1" />

                                            <asp:Button ID="SaveButton" runat="server" CssClass="" Text="Save"
                                                OnClick="SaveButton_Click" Visible="false" />

                                        </div>
                                    </div>
                                    <div class="spacer">
                                        <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif"
                                            meta:resourcekey="Image7Resource1" />
                                    </div>

                                    <div runat="server" id="DetailDiv">
                                        <asp:GridView ID="AttendanceGridview"
                                            runat="server" AutoGenerateColumns="False"
                                            Width="100%" AllowPaging="false"
                                            PagerSettings-Visible="false" EmptyDataText="No records available for the search criteria"
                                            ShowHeader="True" CssClass=" table table-striped table-bordered" DataKeyNames="AcademicId">
                                            <Columns>
                                                <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center"
                                                    ItemStyle-Wrap="true">
                                                    <HeaderTemplate>
                                                        <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" Enabled="true" AutoPostBack="true"
                                                            Visible="true" OnCheckedChanged="HeaderSelectCheckBox_checked" />
                                                    </HeaderTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="SelectCheckBox" runat="server" Checked='<%# Eval("IsPresent") %>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:BoundField HeaderText="Student Name" DataField="Name" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemStyle Width="90%" />
                                                </asp:BoundField>
                                            </Columns>
                                        </asp:GridView>
                                    </div>

                                    <div class="spacer">
                                        <asp:Image ID="Image7" runat="server" ImageUrl="~/Images/spacer.gif"
                                            meta:resourcekey="Image7Resource1" />
                                    </div>
                                </div>

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