<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>

<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hrm_Employee_eTestChecking, App_Web_lqpu5xhr" 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" %>



<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    
    <style type="text/css">
table.cke_dialog.cke_browser_webkit.cke_ltr.cke_single_page {
    z-index: 99999999999999999 !important;
}
table.cke_dialog.cke_browser_webkit.cke_ltr {
    z-index: 9999999999999999999 !important;
}
.cke_skin_kama {
    z-index: 9999999999999999 !important;
}

    </style>

    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">

                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="213"
                                                Visible="true" runat="server" />

                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <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 class="fRight mt-27 display-flex pagination">

                                <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0"
                                    CssClass="btn btn-back fas" Text="&#xf30a; Back" />
                                &nbsp; 
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">


                                    <div id="Div1" class="himssuHeader6WireBox col-md-12" runat="server" visible="true" style="width: 100%; height: 100%">
                                        <div class="himsBoxHeader" id="GridViewPagerDiv" runat="server" visible="True">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <header>
                                                        <asp:Label ID="ExamTopicLabel" Text="" runat="server" Font-Bold="true" />
                                                    </header>
                                                    <%--<header>
                                                        <asp:Label ID="GridViewLabel" Text="Student List For Mark Entry" runat="server" />
                                                    </header>--%>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent width-100">
                                            <%-- <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 class="himsBoxHeader" id="Div2" runat="server">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">

                                                    <div class="width-100">

                                                        <asp:Label ID="ClassDivisionLabelL" runat="server" Text="Class-Division:" Font-Bold="true" SkinID="CustomWidthLabel"></asp:Label>
                                                        &nbsp; &nbsp;     
                                                        <asp:Label ID="ClassDivisionLabelT" runat="server" SkinID="CustomWidthLabel"></asp:Label>
                                                        &nbsp; &nbsp; &nbsp; &nbsp; 
                                                        <asp:Label ID="TRollNoLabelL" runat="server" Text="Roll No:" Font-Bold="true" SkinID="CustomWidthLabel"></asp:Label>
                                                        &nbsp; &nbsp;  
                                                        <asp:Label ID="RollNoLabelT" runat="server" SkinID="CustomWidthLabel"></asp:Label>
                                                        &nbsp; &nbsp; &nbsp; &nbsp;     
                                                        <asp:Label ID="IdNoLabelL" runat="server" Text="Id No:" Font-Bold="true" SkinID="CustomWidthLabel"></asp:Label>
                                                        &nbsp; &nbsp;     
                                                        <asp:Label ID="IdNoLabelT" runat="server" SkinID="CustomWidthLabel"></asp:Label>
                                                        &nbsp; &nbsp;     
                                                        <asp:Label ID="StudentNameLabelL" runat="server" Text="Student Name:" Font-Bold="true" SkinID="CustomWidthLabel"></asp:Label>
                                                        &nbsp; &nbsp; &nbsp; &nbsp;  
                                                        <asp:Label ID="StudentNameLabelT" runat="server" SkinID="CustomWidthLabel"></asp:Label>

                                                    </div>
                                                </div>
                                            </div>
                                            <%--<CKEditor:CKEditorControl ID="CKEditorControl1" BasePath="~/ckeditor/" runat="server" Height="100" Visible="false"></CKEditor:CKEditorControl>--%>
                                            <div id="Div5" runat="server" visible="true" class="table-responsive">
                                                <asp:GridView ID="MarkEntryGridView" runat="server" AutoGenerateColumns="False" OnRowDataBound="MarkEntryGridView_RowDataBound"
                                                    EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="true" DataKeyNames="QuestionId"
                                                    CssClass="table table-striped table-bordered table-hover">
                                                    <Columns>
                                                        <%--<asp:BoundField DataField="QuestionDescription" HeaderText="Question"></asp:BoundField>--%>
                                                        <asp:TemplateField HeaderText="Question Description" ItemStyle-Width="30%" SortExpression="Title"
                                                            ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:Label ID="QuestionDescription" CssClass="boxEllips" runat="server" Text='<%# Bind("QuestionDescription") %>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <%--<asp:BoundField DataField="QuestionAnswer" HeaderText="Question Answer" ></asp:BoundField>--%>
                                                        <asp:TemplateField HeaderText="Question Answer" ItemStyle-Width="30%" SortExpression="Title"
                                                            ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <%--<asp:Label ID="QuestionAnswer"  CssClass="boxEllips" runat="server" Text='<%# Bind("QuestionAnswer") %>' ></asp:Label>--%>
                                                                <asp:TextBox ID="QuestionAnswer" runat="server" ClientIDMode="Static" Text='<%# Bind("QuestionAnswer") %>'
                                                                    Width="98%" SkinID="MultiLineTextBox" TextMode="MultiLine" Enabled="false" Height="100px"></asp:TextBox>
                                                                <asp:Image ID="Image1" runat="server" ImageUrl='<%# Bind("QuestionAnswer") %>' />
                                                                <%--<asp:Image ID="Image1" Height="60px" Width="60px" runat="server" ImageUrl='<%# Bind("QuestionAnswer")%>'/>--%>
                                                                <%--<asp:Label ID="QuestionDescription" CssClass="boxEllips" runat="server" Text='<%# HttpUtility.HtmlDecode(Eval("QuestionAnswer").ToString()) %>' decoding="base64" ></asp:Label>--%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Scored Mark" ItemStyle-Width="7%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="ScoredMarksTextBox" SkinID="CustomWidthTextBox" runat="server" Width="80px" onchange="calobtain(this);"
                                                                    MaxLength="100"
                                                                    Text='<%# DataBinder.Eval(Container.DataItem,"ScoredMark").ToString()=="0"? "":Eval("ScoredMark") %>'></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Marks" ItemStyle-Width="8%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:Label ID="MarksLabel" runat="server" Width="50px" Text='<%# Bind("Marks") %>'>' </asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Remark">
                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle HorizontalAlign="Center" Width="5%" Wrap="True" />
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="AddRemark" runat="server" Text="View/Add Remark"
                                                                    CausesValidation="false" OnClick="AddRemark_Click" ToolTip='<%# Bind("QuestionAnswerRemark") %>'></asp:LinkButton>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                    </Columns>
                                                    <PagerSettings Visible="False" />
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <cc1:ModalPopupExtender ID="ModalPopupExtenderRemark" runat="server" TargetControlID="HidenButton" PopupControlID="ModalPopUpPanel" BackgroundCssClass="modalBackground"
        Drag="True" PopupDragHandleControlID="dragPanel" Enabled="True" X="500" Y="100" />
    <asp:LinkButton runat="server" ID="HidenButton" meta:resourcekey="HidenButtonResource1" />

    <asp:Panel ID="ModalPopUpPanel" runat="server" CssClass="dragPanel" Width="700px" DefaultButton="HidenButton" meta:resourcekey="ModalPopUpPanelResource1" Height="700px">
        <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 headerFont">
                            <div class="fLeft headerText">
                                <asp:UpdatePanel ID="UpdatePanel3" runat="server" RenderMode="Inline">
                                    <ContentTemplate>
                                        <header>
                                            <asp:Label ID="DialogHeaderLabel" runat="server" meta:resourcekey="DialogHeaderLabelResource1" Text="Remark"></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="EmployeeSearchUpdatePanel" runat="server"
                RenderMode="Inline">
                <ContentTemplate>

                    <div id="bodyContainer" class="card-body">
                        <div class="himsPopupWireBox">
                            <div class="himsBoxHeadermain">
                                <div>
                                </div>
                            </div>
                            <div class="himsBoxContentmain" style="overflow: hidden">
                                <div id="divContentPage1">
                                    <div class="spacer">
                                        <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/spacer.gif"
                                            meta:resourcekey="Image1Resource1" />
                                    </div>
                                    <div>
                                        <div class="himssuHeader5WireBox">
                                            <div class="himsBoxHeader">
                                                <asp:Panel ID="TopPanel" runat="server" meta:resourcekey="TopPanelResource1">
                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle">
                                                    </div>
                                                </asp:Panel>
                                            </div>
                                            <div class="himsBoxContent col-md-12">
                                                <asp:Panel ID="Panel2" runat="server" meta:resourcekey="DetailPanelResource1">
                                                    <div class="contentHolder table-responsive">
                                                        <asp:Panel ID="Panel3" runat="server" meta:resourcekey="SearchCriteriaPanelResource1">
                                                            <div class="contentHolder">
                                                                <div class="outerBox11 pTop5 pb5 col-md-12">
                                                                    <div class="fLeft pRight5 ">
                                                                        <CKEditor:CKEditorControl ID="RemarkTextBox" BasePath="~/ckeditor/" runat="server" Height="100"></CKEditor:CKEditorControl>
                                                                        <asp:HiddenField ID="QuestionIdHiddenField" runat="server" />
                                                                    </div>
                                                                </div>
                                                                <div class="cBoth">
                                                                </div>
                                                                <div class="col-md-12 text-center pTop15">
                                                                    <asp:Button ID="SaveButton" runat="server" CssClass="fas btn btn-save" meta:resourcekey="SaveButtonResource1" SkinID="0" Text="&#xf058; Save" OnClick="SaveButton_Click1" />
                                                                </div>
                                                            </div>
                                                        </asp:Panel>
                                                    </div>
                                                </asp:Panel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="himsmainBoxBottom">
                            </div>
                            <div class="himsmainBoxFooter">
                                <div>
                                    <table>
                                        <tr>
                                            <td>&nbsp
                                            </td>
                                        </tr>

                                    </table>
                                </div>
                            </div>

                        </div>
                    </div>
                    <asp:UpdateProgress ID="MainUpdateProgress" runat="server" DisplayAfter="200">
                        <ProgressTemplate>
                            <div style="position: absolute; top: 50%; left: 45%; font-size: 20px">
                                <asp:Image ID="LoadingImage4" runat="server" ImageUrl="~/Images/Loading.gif"
                                    meta:resourcekey="Image3Resource1" />
                            </div>
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </asp:Panel>
</asp:Content>
