<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_EExam_ViewQuestion, App_Web_jeu1c3wf" title="Question Master" 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 Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="145"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                            <td width="100%" valign="top">
                                <div class="himsDisplayBox ">
                                    <div style="margin-top: 1px">
                                    </div>
                                    <div class="himsBoxContent messageMessage">
                                        <div class="topdisplayContainer">
                                            <table cellpadding="0" cellspacing="0" class="fLeft">
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="DataBankLabel" runat="server" Text="Data Bank :" Font-Bold="true"></asp:Label></td>
                                                    <td>
                                                        <asp:Label ID="DataBankLabelT" runat="server" Text=""></asp:Label></td>
                                                    <td>&nbsp;</td>
                                                    <td>&nbsp;</td>
                                                    <td>&nbsp;</td>
                                                    <td>&nbsp;</td>
                                                    <td>
                                                        <asp:Label ID="ClassLabelL" runat="server" Text="Class :" Font-Bold="true"></asp:Label></td>
                                                    <td>
                                                        <asp:Label ID="ClassLabelT" runat="server" Text=""></asp:Label></td>
                                                    <td>&nbsp;</td>
                                                    <td>&nbsp;</td>
                                                    <td>&nbsp;</td>
                                                    <td>&nbsp;</td>
                                                    <td>
                                                        <asp:Label ID="SubjectLabelL" runat="server" Text="Subject :" Font-Bold="true"></asp:Label></td>
                                                    <td>
                                                        <asp:Label ID="SubjectLabelT" runat="server" Text=""></asp:Label></td>
                                                    <td>&nbsp;</td>
                                                    <td>&nbsp;</td>
                                                    <td>&nbsp;</td>
                                                    <td>&nbsp;</td>
                                                    <td>
                                                        <asp:Label ID="TopicLabelL" runat="server" Text="Topic :" Font-Bold="true"></asp:Label></td>
                                                    <td>
                                                        <asp:Label ID="TopicLabelT" runat="server" Text=""></asp:Label></td>
                                                    <td>&nbsp;</td>
                                                    <td>&nbsp;</td>
                                                    <td>&nbsp;</td>
                                                    <td>&nbsp;</td>
                                                    <td>
                                                        <asp:LinkButton ID="ChangeDatabankLinkBtn" OnClick="ChangeDatabankLinkButton" runat="server" Text="Change Data Bank" Font-Bold="true"></asp:LinkButton></td>
                                                </tr>
                                            </table>
                                            <div class="cBoth">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxFooter">
                            </td>
                        </tr>
                    </table>
                    <div class="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <asp:Label ID="HeaderLabel" runat="server" Text="Question Master"></asp:Label>
                                    </header>
                                </div>
                            </div>
                            <div class="fRight mt-27 pagination display-flex ">
                                <table>
                                    <tr>
                                        <td class="formLabel">
                                            <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                                <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                                    runat="server" CommandName="Page" CommandArgument="First"
                                                    OnClick="FirstRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
					<i class="fa fa-fast-backward"></i>
                                                </asp:LinkButton>
                                                <asp:LinkButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                                    runat="server" CommandName="Page" CommandArgument="Prev"
                                                    OnClick="PreviousImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
					<i class="fa fa-play fa-rotate-180"></i>
                                                </asp:LinkButton>
                                                &nbsp;
				<asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                                <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                                <asp:Label ID="ofLabel" Text="of" runat="server" />
                                                <asp:Label ID="TotalRecord" runat="server" />
                                                &nbsp;
				<asp:LinkButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                    runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Next"
                    OnClick="NextImageButton_Click">
					 <i class="fa fa-play"></i>
                </asp:LinkButton>

                                                <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                                    runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Last"
                                                    OnClick="LastRecordImageButton_Click">
					  <i class="fa fa-fast-forward"></i>
                                                </asp:LinkButton>
                                                &nbsp;  &nbsp; &nbsp;
                                            </div>
                                        </td>
                                        <td>
                                            <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" />
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <div class="cBoth">
                                </div>
                                <div style="font-size: 11px; float: left; color: #000000; margin-left: 10px; padding-top: 5px; width: 154px">
                                    <asp:Label ID="DifficultyLevelLabel" runat="server" Text="Difficulty Level :" Font-Bold="True"></asp:Label>
                                    <asp:DropDownList runat="server" ID="DifficultyLevelDropDownList" SkinID="CustomWidthDropDownList" Visible="false"
                                        onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()"
                                        AutoPostBack="false">
                                    </asp:DropDownList>
                                    <asp:Label ID="DifficultyLevelTextLabel" runat="server"></asp:Label>
                                </div>
                                <div style="font-size: 11px; float: left; color: #000000; margin-left: 10px; padding-top: 5px; width: 100px">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="MarksLabel" runat="server" Text="Marks :" Font-Bold="True"></asp:Label>
                                        <asp:Label ID="MarksTextBox" runat="server"></asp:Label>
                                    </div>
                                </div>
                                <div style="font-size: 11px; float: left; color: #000000; margin-left: 10px; padding-top: 5px; width: 100px">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="OrderIndexLabel" runat="server" Text="Order Index :" Font-Bold="True"></asp:Label>
                                        <asp:Label ID="OrderIndexTextBox" runat="server"></asp:Label>
                                    </div>
                                </div>
                                <div style="font-size: 11px; float: left; color: #000000; margin-left: 10px; padding-top: 5px; width: 100px">
                                    <div class="controlLabelWidth" style="width: 200px;">
                                        <asp:Label ID="QuestionTypeTitleLabel" runat="server" Text="Question Type :" Font-Bold="True"></asp:Label>
                                        <asp:Label ID="QuestionTypeTitleLabel2" runat="server"></asp:Label>
                                    </div>
                                </div>
                                <div class="cBoth">
                                </div>
                                <div class="spacer">
                                    <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif" />
                                </div>
                                <div class="outerBox col-md-12" style="width: 750px" id="QuestionDescription2Div" runat="server">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="QuestionDescription2Label" runat="server" Text="Paragraph / Comprehension" Font-Bold="True"></asp:Label>
                                    </div>
                                   <%-- <div class=" pRight5">--%>
                                        <asp:TextBox ID="QuestionDescription2TextBoxWithoutEditor" runat="server" TextMode="MultiLine" style="height:6rem;" disabled="disabled"></asp:TextBox>
                                    <%--</div>--%>
                                </div>
                                 <div class="col-md-12" id="QuestionDescription2Div1" runat="server">
                                  <div class="controlLabelWidth">
                                        <asp:Label ID="Label1" runat="server" Text="Paragraph / Comprehension" Font-Bold="True"></asp:Label>
                                    </div>
                                     <CKEditor:CKEditorControl ID="QuestionDescription2TextBoxWithEditor" BasePath="~/ckeditor/" runat="server" Height="80px"></CKEditor:CKEditorControl>

                                </div>
                               <%-- <div class="outerBox col-md-12" id="Div5" runat="server"></div>
                                <div class="outerBox col-md-12" id="Div6" runat="server"></div>
                                <div class="outerBox col-md-12" id="Div7" runat="server"></div>
                               --%>
                               <div class="outerBox col-md-12">
                                </div>
                                <asp:HiddenField ID="QuestionIdHiddenField" runat="server" />
                                <asp:HiddenField ID="QuestionPareGraphIdHiddenField" runat="server" />
                                <asp:HiddenField ID="TopicIdHiddenField" runat="server" />
                                <div class="outerBox col-md-12" id="QuestionDescriptionDiv" runat="server">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="QuestionDescriptionLabel" runat="server" Text="Question Description" SkinID="MandatoryLabel" Font-Bold="True"></asp:Label>
                                    </div>
                                  <%--  <div class="fLeft pRight5">--%>
                                      <%--  <asp:Label ID="QuestionDescriptionTextBox" runat="server" autosize="true"></asp:Label>--%>
                                    <asp:TextBox ID="QuestionDescriptionTextBox" runat="server" TextMode="MultiLine"></asp:TextBox>
                                       
                                   <%-- </div>--%>
                                </div>
                                <div class="col-md-12" id="QuestionDescriptionDiv1" runat="server">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="QuestionDescriptionLabel1" runat="server" Text="Question Description" SkinID="MandatoryLabel" Font-Bold="True"></asp:Label>
                                    </div>
                                    <CKEditor:CKEditorControl ID="QuestionDescriptionTextBox1" BasePath="~/ckeditor/" runat="server" Height="80px"></CKEditor:CKEditorControl>
                                </div>
                              
<%--                                <div class="cBoth"></div>
                                <div class="cBoth"></div>
                                <div class="cBoth"></div>--%>
                             <%--   <div class="outerBox col-md-12" id="Div2" runat="server" visible="false"></div>
                                <div class="outerBox col-md-12" id="Div3" runat="server" visible="false"></div>
                                <div class="outerBox col-md-12" id="Div4" runat="server" visible="false"></div>--%>
                               
                                <div id="Div1" class="himssuHeader6WireBox col-md-12" runat="server" visible="true" style="padding-top:35px">
                                    <div class="himsBoxHeader" id="GridViewPagerDiv" runat="server" visible="false">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <asp:Label ID="GridViewLabel" Text="Option List" runat="server" />
                                            </div>
                                        </div>
                                        <div class="" style="margin-top: -4px">
                                        </div>
                                    </div>
                                    <div class="himsBoxContent card-body table-responsive">
                                        <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server" visible="False">
                                        </div>
                                        <asp:GridView ID="QuestionOptionGridView" runat="server" AutoGenerateColumns="False"
                                            EmptyDataText="No Records Found !!" AllowPaging="false"
                                            ShowHeader="True" DataKeyNames="QuestionOptionId,Index" CssClass="table table-striped table-bordered table-hover"
                                            OnRowDataBound="QuestionOptionGridView_RowDataBound"
                                            OnRowDeleting="QuestionOptionGridView_RowDeleting">
                                            <Columns>
                                                <asp:TemplateField HeaderText="Key" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Center">
                                                    <ItemTemplate>
                                                        <label class="radio">
                                                        <asp:RadioButton ID="KeyRadioButton" runat="server" AutoPostBack="true" Enabled="false"
                                                            OnCheckedChanged="KeyRadioButton_CheckedChanged" />
                                                          <span class="outer"><span class="inner"></span></span>
                                                        </label>
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Choice Description" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <asp:Label ID="ChoiceDescriptionTextBox" runat="server" Text='<%# Bind("ChoiceDescription") %>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                 <asp:TemplateField HeaderText="Choice Description" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <CKEditor:CKEditorControl Text='<%# Bind("ChoiceDescription") %>' ID="ChoiceDescriptionTextBox1" BasePath="~/ckeditor/" runat="server" Height="70px"></CKEditor:CKEditorControl>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Order Index" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <asp:Label ID="OrderIndexTextBox" runat="server" Text='<%# Bind("OrderIndex") %>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            <PagerSettings Visible="False" />
                                        </asp:GridView>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="spacer">
                        <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/spacer.gif" />
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--   <script data-main="../../JavaScript/rjs/encrypt/assign-organization-encrypt" src="../../JavaScript/rjs/require.js"></script>    --%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
