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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <style>
                .table.table-bordered tbody tr:first-child, table thead tr {
                    background-color: white !important;
                }

                table.table-bordered tr:first-child td {
                    color: #333 !important;
                    border: 1px solid #b1b1b1 !important;
                }
            </style>
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont" valign="top" runat="server" visible="true">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="172"
                                                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-list-ul"></i>
                                        <asp:Label ID="TestMasterDetailLabel" runat="server" Text="Result"></asp:Label>
                                    </header>
                                </div>
                            </div>
                            <div>
                                <div class="fRight mt-27">
                                    <asp:Button ID="PrintButton" runat="Server" OnClick="PrintButton_Click" class="btn-report btn fas" Text="&#xf15b; Print" SkinID="0" Visible="false" />
                                    <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" class="btn btn-back fas" Text="&#xf30a;  Back" SkinID="0" />
                                </div>
                            </div>
                        </div>

                        <div class="himsBoxContent card-body">
                            <div class="contentHolder col-md-12 padd-0">

                                <div class="col-md-6 pTop15">
                                    <asp:Label ID="NameLabelL" runat="server" Font-Bold="true" SkinID="CustomWidthLabel" Text="Name :"></asp:Label>
                                    &nbsp;&nbsp;
                                                        <asp:Label ID="NameLabelT" runat="server" SkinID="CustomWidthLabel"></asp:Label>
                                </div>
                                <div class="col-md-6 pTop15">
                                    <asp:Label ID="CodeLabelL" runat="server" Font-Bold="true" SkinID="CustomWidthLabel" Text="Code :"></asp:Label>
                                    &nbsp;&nbsp;
                                                        <asp:Label ID="CodeLabelT" runat="server" SkinID="CustomWidthLabel"></asp:Label>
                                </div>
                                <div class="col-md-6 pTop15">
                                    <asp:Label ID="ClassLabelL" runat="server" Font-Bold="true" SkinID="CustomWidthLabel" Text="CDName :"></asp:Label>
                                    &nbsp;&nbsp;
                                                        <asp:Label ID="ClassLabelT" runat="server" SkinID="CustomWidthLabel"></asp:Label>
                                </div>
                                <div class="col-md-6 pTop15">
                                    <asp:Label ID="RollNoLabelL" runat="server" Font-Bold="true" SkinID="CustomWidthLabel" Text="Roll No :"></asp:Label>
                                    &nbsp;&nbsp;
                                                        <asp:Label ID="RollNoLabelT" runat="server" SkinID="CustomWidthLabel"></asp:Label>
                                </div>
                                <div class="col-md-6 pTop15">
                                    <asp:Label ID="TestLabelL" runat="server" Font-Bold="true" SkinID="CustomWidthLabel" Text="Test :"></asp:Label>
                                    &nbsp;&nbsp;
                                                            <asp:Label ID="TestLabelT" runat="server" SkinID="CustomWidthLabel"></asp:Label>
                                </div>
                                <div class="col-md-6 pTop15">
                                    <asp:Label ID="SubjectLabelL" runat="server" Font-Bold="true" SkinID="CustomWidthLabel" Text="Subject :"></asp:Label>
                                    &nbsp;&nbsp;
                                                            <asp:Label ID="SubjectLabelT" runat="server" SkinID="CustomWidthLabel"></asp:Label>
                                </div>
                                <div class="col-md-6 pTop15">
                                    <asp:Label ID="TotalQuestionsLabelL" runat="server" Font-Bold="true" SkinID="CustomWidthLabel" Text="Total Questions :"></asp:Label>
                                    &nbsp;&nbsp;
                                                            <asp:Label ID="TotalQuestionsLabelT" runat="server" SkinID="CustomWidthLabel"></asp:Label>
                                </div>
                                <div class="col-md-6 pTop15">
                                    <asp:Label ID="AttemptedQuestionsLabelL" runat="server" Font-Bold="true" SkinID="CustomWidthLabel" Text="Attempted Questions :"></asp:Label>
                                    &nbsp;&nbsp;
                                                            <asp:Label ID="AttemptedQuestionsLabelT" runat="server" SkinID="CustomWidthLabel"></asp:Label>
                                </div>
                                <div class="col-md-6 pTop15">
                                    <asp:Label ID="NotAttemptedQuestionsLabelL" runat="server" Font-Bold="true" SkinID="CustomWidthLabel" Text="Not Attempted Questions :"></asp:Label>
                                    &nbsp;&nbsp;
                                                            <asp:Label ID="NotAttemptedQuestionsLabelT" runat="server" SkinID="CustomWidthLabel"></asp:Label>
                                </div>
                                <div class="col-md-6 pTop15">
                                    <asp:Label ID="SkippedQuestionsLabelL" runat="server" Font-Bold="true" SkinID="CustomWidthLabel" Text="Skipped Questions :"></asp:Label>
                                    &nbsp;&nbsp;
                                                            <asp:Label ID="SkippedQuestionsLabelT" runat="server" SkinID="CustomWidthLabel"></asp:Label>
                                </div>
                                <div class="col-md-6 pTop15">
                                    <asp:Label ID="TotalMarksLabelL" runat="server" Font-Bold="true" SkinID="CustomWidthLabel" Text="Total Marks :"> </asp:Label>
                                    &nbsp;&nbsp;
                                                            <asp:Label ID="TotalMarksLabelT" runat="server" SkinID="CustomWidthLabel"></asp:Label>
                                </div>
                                <div class="col-md-6 pTop15">
                                    <asp:Label ID="ScoredMarksLabelL" runat="server" Font-Bold="true" SkinID="CustomWidthLabel" Text="Scored Marks :"></asp:Label>
                                    &nbsp;&nbsp;
                                                            <asp:Label ID="ScoredMarksLabelT" runat="server" SkinID="CustomWidthLabel"></asp:Label>
                                </div>
                                <div class="col-md-6 pTop15">
                                    <asp:Label ID="RightQuestionsLabelL" runat="server" Font-Bold="true" SkinID="CustomWidthLabel" Text="Right Questions :"></asp:Label>
                                    &nbsp;&nbsp;
                                                            <asp:Label ID="RightQuestionsLabelT" runat="server" SkinID="CustomWidthLabel"></asp:Label>
                                </div>
                                <div class="col-md-6 pTop15">
                                    <asp:Label ID="WrongQuestionsLabelL" runat="server" Font-Bold="true" SkinID="CustomWidthLabel" Text="Wrong Questions :"></asp:Label>
                                    &nbsp;&nbsp;
                                                            <asp:Label ID="WrongQuestionsLabelT" runat="server" SkinID="CustomWidthLabel"></asp:Label>
                                </div>
                                


                                <div class="col-md-12" id="StudentTestQuestionListDiv" runat="server" visible="false"> 
                                    <asp:Repeater ID="StudentTestQuestionListRepeater" runat="server" OnItemDataBound="rpt_ItemDataBound">
                                        <HeaderTemplate>
                                            <table>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr class="col-md-12">
                                                <td class="alert alert-info" style="font-size: small">Question : <%#DataBinder.Eval(Container.DataItem, "OrderIndex")%></td>
                                            </tr>
                                            <tr>
                                                <td class="pTop5">
                                                    <%#DataBinder.Eval(Container.DataItem, "QuestionDescription")%> 
                                                </td>
                                            </tr>
                                            <tr class="box-body box-solid">
                                                <td>
                                                    <div class="table-responsive">
                                                        <asp:GridView ID="ChoiceDescriptionGridView" runat="server" AutoGenerateColumns="False"
                                                            CssClass="table table-striped table-bordered gridviewfont table-hover" AllowPaging="true" PageSize="10" SkinID="" ShowHeader="false" PagerSettings-Visible="false"
                                                            DataKeyNames="QuestionStatus">
                                                            <Columns>
                                                                <asp:TemplateField ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <%#DataBinder.Eval(Container.DataItem, "ChoiceDescription")%>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="QuestionStatusLabel" runat="server" Font-Size="1.5em" CssClass="pTop5"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                    <asp:HiddenField ID="QuestionIdHiddenField" runat="server" />
                                                    <asp:HiddenField ID="OrderIndexHiddenField" runat="server" />
                                                    <asp:HiddenField ID="TestParticipantIdHiddenField" runat="server" />
                                                    <asp:HiddenField ID="QuestionMarksHiddenField" runat="server" />
                                                    <asp:HiddenField ID="AnswerStatusIdHiddenField" runat="server" />
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            </table>
                                        </FooterTemplate>
                                    </asp:Repeater>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--   <script data-main="../../JavaScript/rjs/encrypt/preview-test-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/preview-test")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
