<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Assessment_MarkEntryForAll, App_Web_shobem0a" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->

                <div class="dashBoardLeftCont" valign="top">
                    <div class="himssuHeader3WireBox">
                        <%--<div class="himsBoxHeader">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                            <asp:Label runat="server" ID="ScreenGroupNameLabel"></asp:Label>    
                                            </div>
                                        </div>
                                    </div>--%>
                        <table width="0px" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="105"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">

                    <div class="contentHolder">
                        <div class="himssuHeader1WireBox card card-box">
                            <div class="himsBoxHeader card-head">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-edit"></i>
                                            <asp:Label ID="Label1" runat="server" Text="Mark Entry"></asp:Label>
                                        </header>
                                    </div>
                                </div>
                            </div>
                            <div class="himsBoxContent card-body">
                                <asp:Panel ID="DetailPanel" runat="Server">
                                    <div class="contentHolder">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="DepartmentLabel" runat="server" Text="Department"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="DepartmentDropDownList" SkinID="CustomWidthDropDownList"
                                                    AutoPostBack="true" onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                                    OnSelectedIndexChanged="DepartmentDropDownList_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ClassLabel" Text="Class" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft">
                                                <asp:DropDownList runat="server" ID="ClassDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    AutoPostBack="true" OnSelectedIndexChanged="ClassDropDownList_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="DivisionLabel" Text="Division" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft">
                                                <asp:DropDownList runat="server" ID="DivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    AutoPostBack="True" OnSelectedIndexChanged="DivisionDropDownList_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SubjectLabel" Text="Subject" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft">
                                                <asp:DropDownList runat="server" ID="SubjectDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    AutoPostBack="true" OnSelectedIndexChanged="SubjectDropDownList_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox11 pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ExamProcessLabel" Text="Select Exam" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft">
                                                <asp:HiddenField ID="SelectExamOkCountHiddenField" runat="server" />
                                                <asp:TextBox ID="SelectExamTextBox" runat="server" Enabled="false">
                                                </asp:TextBox>&nbsp;
                                                <div style="display: inline">
                                                    <asp:ImageButton ID="SelectExamImageButton" runat="server" SkinID="FindImage" ToolTip="Select Exam" OnClick="SelectExamImageButton_Click"
                                                        ImageUrl="~/Images/icons/icon_find.gif" />
                                                </div>
                                            </div>
                                        </div>


                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ExamLabel" Text="Exam" runat="server" SkinID="MandatoryLabel" Visible="false"></asp:Label>
                                            </div>
                                            <div class="fLeft">
                                                <asp:DropDownList runat="server" ID="ExamDropDownList" SkinID="CustomWidthDropDownList" Visible="false"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    OnSelectedIndexChanged="ExamDropDownList_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="spacer">
                                            <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif" />
                                        </div>
                                        <div class="alignCenter col-md-12 pTop5">
                                            <%--   <asp:FileUpload ID="FileUpload1" runat="server" SkinID="CustomWidthFileUpload" Width="75px" />--%>

                                            <asp:Button ID="SearchButton" runat="Server" OnClick="SearchButton_Click"
                                                SkinID="0" CssClass="btn-search btn fas" Text="&#xf002; Search" />
                                            <asp:Button ID="UploadToExcelLinkButton" Text="&#xf093; Export" runat="Server" OnClick="UploadToExcelLinkButton_Click"
                                                SkinID="0" CssClass="btn btn-examcommon fas" />
                                            <asp:Button ID="AddFileButton" Text="&#xf019; Import" runat="Server" OnClick="AddFileButton_Click"
                                                SkinID="0" CssClass="btn btn-examcommon fas" />

                                            <asp:Button ID="ImportLinkButton" CssClass="btn btn-refresh fas" Text="&#xf2f9; Refresh " runat="Server" OnClick="ImportLinkButton_Click"
                                                SkinID="0" />

                                        </div>
                                        <br />
                                        <div class="cBoth">
                                        </div>
                                        <div id="info" runat="server" visible="false">
                                            <div class="alert alert-info">
                                                <asp:Label ID="Label3" runat="server" Font-Size="Small"></asp:Label><br />
                                                <asp:HiddenField ID="DetailHiddenField" runat="server" />
                                            </div>
                                        </div>
                                        <%--<div class="cBoth">
                                        </div>
                                        <br />
                                        <div id="Div1" runat="server" visible="true" style="position: absolute; left: 0px;">
                                            <div class="alert alert-info">
                                                <asp:Label ID="Label2" SkinID="MandatoryLabel" runat="server" Font-Size="Medium" Text="Note : Exams that have Result process selected in Exam Master will not appear in Exam List."></asp:Label><br />
                                            </div>
                                        </div>--%>
                                        <%--  <div class="outerBox pTop5 col-md-3">
                                    <div class="fLeft pRight5">
                                        <asp:LinkButton ID="UploadToExcelLinkButton" Text="Export To Excel" runat="server" SkinID="CustomWidthLinkButton" Width="125px" CausesValidation="false"></asp:LinkButton>
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="fLeft pRight5">
                                     

                                         <asp:Button ID="AddFileButton" Text="Import From Excel" runat="Server" OnClick="AddFileButton_Click"
                                                    SkinID="0" CssClass="PrimaryButton"/>
                                        <br />
                                        <asp:LinkButton runat="server" Text="Refresh Uploaded File" ID="ImportLinkButton" SkinID="CustomWidthLinkButton" Width="120px" />
                                    </div>
                                </div>--%>





                                        <%--<div class="outerBox pTop5 col-md-3">
                                            <div class="fLeft">
                                                
                                            </div>
                                        </div>

                                        <div class="spacer">
                                            <asp:Image ID="Image5" runat="server" ImageUrl="~/Images/spacer.gif" />
                                        </div>
                                        <div class="cBoth"></div>--%>
                                        <div id="GridDiv" class="himssuHeader6WireBox col-md-12" runat="server" visible="false" style="width: 100%; height: 100%">


                                            <br />
                                            <div class="spacer">
                                                <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/spacer.gif" />
                                            </div>
                                            <div class="himsBoxHeader" id="GridViewPagerDiv" runat="server" visible="True">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <div class="headerText">
                                                        <%-- <header>
                                                    <asp:Label ID="GridViewLabel" Text="Student List For Mark Entry" runat="server" />
                                                </header>--%>
                                                    </div>
                                                    <div class="headerText fRight">
                                                        <asp:TextBox ID="FromTextBox" runat="server" AutoPostBack="false" SkinID="CustomWidthTextBox" Width="75px" Visible="false"></asp:TextBox>
                                                        <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="FromTextBox" FilterType="Numbers">
                                                        </cc1:FilteredTextBoxExtender>
                                                        <asp:TextBox ID="ToTextBox" runat="server" SkinID="CustomWidthTextBox" Width="60px" Visible="false"></asp:TextBox>
                                                        <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="ToTextBox" FilterType="Numbers">
                                                        </cc1:FilteredTextBoxExtender>
                                                        <asp:Button ID="GenerateButton" runat="server" SkinID="0" CssClass="btn btn-generate fas" Text="&#xf079; Generate" Visible="false" Font-Size="X-Small" OnClick="GenerateButton_Click" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent">
                                                <%-- <div id="DivHeader" style="vertical-align: top; width: 100%;">
                                                            <asp:Table ID="ExamDetailTable" runat="server" CellPadding="0" CellSpacing="0"
                                                                BackColor="#E8E8E8" ForeColor="Black" Width="100%" GridLines="Both" CssClass="GridViewTableRow">
                                                            </asp:Table>
                                                        </div>  --%>
                                                <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server" visible="False">
                                                </div>
                                                <%--          <div id="DivData" class="Container" style="vertical-align: top; height: 250px; width: 99.6%;">  --%>
                                                <div style="overflow: auto; width: 1090px">
                                                    <div id="Div5" runat="server" visible="true" class="table-responsive">
                                                        <asp:GridView ID="MarkEntryGridView" runat="server" AutoGenerateColumns="False"
                                                            EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="true"
                                                            CssClass="table table-striped table-bordered table-hover" DataKeyNames="AcademicId">
                                                            <Columns>


                                                                <asp:TemplateField HeaderText="Id No" ItemStyle-Width="5%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="CodeLabel" runat="server" Text='<%# Bind("Code") %>'> </asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Roll No" ItemStyle-Width="5%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="RollNoLabel" runat="server" Width="30px" Text='<%# Bind("RollNo") %>'> </asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Name" ItemStyle-Width="5%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="NameLabel" runat="server" Text='<%#Eval("Name") %>'> </asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Obtain1" ItemStyle-Width="5%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain1HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                        <asp:Label ID="Max1HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain1TextBox" SkinID="CustomWidthTextBox" runat="server" Width="60px" onchange="calc(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                        <asp:HiddenField ID="Hdn1Obtain" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Obtain2" ItemStyle-Width="5%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain2HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                        <asp:Label ID="Max2HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain2TextBox" SkinID="CustomWidthTextBox" runat="server" Width="60px" onchange="calc(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                        <asp:HiddenField ID="Hdn2Obtain" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Obtain3" ItemStyle-Width="5%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain3HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                        <asp:Label ID="Max3HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain3TextBox" SkinID="CustomWidthTextBox" runat="server" Width="60px" onchange="calc(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                        <asp:HiddenField ID="Hdn3Obtain" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Obtain4" ItemStyle-Width="5%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain4HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                        <asp:Label ID="Max4HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain4TextBox" SkinID="CustomWidthTextBox" runat="server" Width="60px" onchange="calc(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                        <asp:HiddenField ID="Hdn4Obtain" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Obtain5" ItemStyle-Width="5%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain5HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                        <asp:Label ID="Max5HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain5TextBox" SkinID="CustomWidthTextBox" runat="server" Width="60px" onchange="calc(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                        <asp:HiddenField ID="Hdn5Obtain" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Obtain6" ItemStyle-Width="5%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain6HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                        <asp:Label ID="Max6HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain6TextBox" SkinID="CustomWidthTextBox" runat="server" Width="60px" onchange="calc(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                        <asp:HiddenField ID="Hdn6Obtain" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Obtain7" ItemStyle-Width="5%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain7HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                        <asp:Label ID="Max7HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain7TextBox" SkinID="CustomWidthTextBox" runat="server" Width="60px" onchange="calc(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                        <asp:HiddenField ID="Hdn7Obtain" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Obtain8" ItemStyle-Width="5%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain8HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                        <asp:Label ID="Max8HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain8TextBox" SkinID="CustomWidthTextBox" runat="server" Width="60px" onchange="calc(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                        <asp:HiddenField ID="Hdn8Obtain" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Obtain9" ItemStyle-Width="5%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain9HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                        <asp:Label ID="Max9HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain9TextBox" SkinID="CustomWidthTextBox" runat="server" Width="60px" onchange="calc(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                        <asp:HiddenField ID="Hdn9Obtain" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Obtain10" ItemStyle-Width="5%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain10HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                        <asp:Label ID="Max10HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain10TextBox" SkinID="CustomWidthTextBox" runat="server" Width="60px" onchange="calc(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                        <asp:HiddenField ID="Hdn10Obtain" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                                <%--   </div>--%>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>

    <cc1:ModalPopupExtender ID="SelectExamModalPopupExtender" runat="server" TargetControlID="HidenButton" PopupControlID="ModalPopUpPanel" BackgroundCssClass="modalBackground"
        Drag="True" PopupDragHandleControlID="dragPanel" Enabled="True" BehaviorID="RequestModal" />
    <asp:LinkButton runat="server" ID="HidenButton" meta:resourcekey="HidenButtonResource1" />

    <asp:Panel ID="ModalPopUpPanel" runat="server" CssClass="dragControl" Width="550px" DefaultButton="HidenButton" meta:resourcekey="ModalPopUpPanelResource1">
        <div class="messagebox card card-box">
            <asp:Panel ID="dragPanel" runat="server" CssClass="dragMePanel" Width="100%" meta:resourcekey="dragPanelResource1">
                <div id="dragMe1" class="dragMe card-head" style="cursor: move">
                    <div class="himsPopupWireBox">
                        <div class="himsBoxHeadermain">
                            <div>
                            </div>
                        </div>
                        <div class="himsBoxTopper text-center headerFont card-head">
                            <div class="fLeft headerText himsBoxTitle">
                                <asp:UpdatePanel ID="UpdatePanel3" runat="server" RenderMode="Inline" UpdateMode="Always">
                                    <ContentTemplate>
                                        <header>
                                            <asp:Label ID="DialogHeaderLabel" runat="server" meta:resourcekey="DialogHeaderLabelResource1" Text="Select Exam"></asp:Label>
                                        </header>
                                        <span class="pull-right">
                                            <asp:ImageButton ID="ImageButtonClose" runat="server" Height="20PX" Width="20PX" ImageUrl="~/Images/closebox.png" OnClick="ImageButtonClose_Click" />
                                        </span>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </div>
                        </div>
                    </div>
                </div>
            </asp:Panel>
            <asp:UpdatePanel ID="ExamUpdatePanel" runat="server"
                RenderMode="Inline">
                <ContentTemplate>
                    <div class="himsBoxContent card-body">
                        <div class="contentHolder">
                            <asp:Panel ID="ExamCheckBoxListPanel" runat="server">
                                <div class="outerBox col-md-3 pTop12" style="height: auto">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="SelectExamMagnifierLabel" Text="Select Exam" runat="server"></asp:Label>
                                    </div>
                                    <div id="ClassDivisionDiv" runat="server" class="fLeft pRight5 bg-lghtgrey overflow-x-inherit padd-0">
                                        <asp:CheckBoxList ID="ExamCheckBoxList" runat="server" Style="overflow-y: initial;">
                                        </asp:CheckBoxList>
                                        <asp:CheckBoxList ID="Tchk" runat="server" Visible="false">
                                        </asp:CheckBoxList>
                                    </div>
                                </div>
                                <div class="outerBox col-md-6 pTop15 alignCenter">
                                    <div class="tableContainer alignCenter">
                                        <asp:Button ID="OkButton" runat="server" OnClick="OkButton_Click" Text="&#xf164; Ok"
                                            meta:resourcekey="btnUpdateResource1" SkinID="0" CssClass="fas btn btn-ok" />
                                        <asp:Button ID="ClearButton" runat="server" OnClick="ClearButton_Click1" Text="&#xf12d; Clear"
                                            meta:resourcekey="btnClearResource1" SkinID="0" CssClass="fas btn btn-clear" />
                                    </div>
                                </div>
                                <div class="outerBox col-md-12 pTop15 alignCenter">
                                    <div class="alert alert-info">
                                        <asp:Label ID="Label4" SkinID="MandatoryLabel" runat="server" Font-Size="Small" Text="Note : Exams that have Result process selected in Exam Master will not appear in Exam List."></asp:Label><br />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </ContentTemplate>
            </asp:UpdatePanel>

        </div>
    </asp:Panel>

    <%--  <script data-main="../../../JavaScript/rjs/encrypt/markentry-allsubject-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/markentry-allsubject")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script type="text/javascript" language="javascript">
        function calc(obj) {
            var txtval = $(obj).val();
            var hdnval = $(obj).next().val().split('-');

            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
                $(obj).focus();
            }
        }
        function valid(obj) {
            var txt = $(obj).val();
            var charCode = (obj.which) ? obj.which : event.keyCode;
            if ((charCode >= 48 && charCode <= 57) || charCode == 45) {
                return true;
            }
            else {
                obj.text = "";
                return false;
            }
        }
        function validate(obj, e) {
            var r = e.charCode ? e.charCode : e.keyCode;
            if (r == 189 || r == 109) {
                obj.text = "";
                return false;
            }
            else
                return true;
        }

    </script>
</asp:Content>
