<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_EExam_QuestionMaster, App_Web_quontze1" 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">
                <style>
                    .display-flex #ctl00_CP_AddRowsToGridDropDownList {
                        height: 1.4rem;
                    }
                </style>

                <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 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-chess-king"></i>
                                        <asp:Label ID="HeaderLabel" runat="server" Text="Question Master"></asp:Label>
                                    </header>
                                </div>
                            </div>
                            <div class="fRight mt-27">
                                <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a; Back" />
                            </div>
                        </div>

                        <div class="himsBoxContent messageMessage">
                            <div class="topdisplayContainer pTop5 pb5">
                                <div class="col-md-12">
                                    <div class="col-md-2">
                                        <asp:Label ID="DataBankLabel" runat="server" Text="Data Bank :" Font-Bold="true"></asp:Label>
                                        <asp:Label ID="DataBankLabelT" runat="server" Text=""></asp:Label>
                                    </div>
                                    <div class="col-md-2">
                                        <asp:Label ID="ClassLabelL" runat="server" Text="Class :" Font-Bold="true"></asp:Label>

                                        <asp:Label ID="ClassLabelT" runat="server" Text=""></asp:Label>

                                    </div>
                                    <div class="col-md-3">
                                        <asp:Label ID="SubjectLabelL" runat="server" Text="Subject :" Font-Bold="true"></asp:Label>

                                        <asp:Label ID="SubjectLabelT" runat="server" Text=""></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:Label ID="TopicLabelL" runat="server" Text="Topic :" Font-Bold="true"></asp:Label>

                                        <asp:Label ID="TopicLabelT" runat="server" Text=""></asp:Label>
                                    </div>
                                    <div class="col-md-2">
                                        <asp:LinkButton ID="ChangeDatabankLinkBtn" OnClick="ChangeDatabankLinkButton" runat="server" Text="Change Data Bank" CssClass="btn btn-change" Font-Bold="true"></asp:LinkButton>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <div class="outerBox11 pTop5 col-md-3" id="IncludeCheckBoxDiv" runat="server">
                                    <div class="controlLabelWidth">
                                        <asp:CheckBox ID="IncludeCheckBox" runat="server" Visible="true"
                                            AutoPostBack="True" OnCheckedChanged="IncludeCheckBox_CheckedChanged" Text="Is Paragraph Require" />
                                        <%--  <asp:Label ID="IncludeLabel" runat="server" Visible="true"></asp:Label>--%>
                                    </div>
                                </div>
                                <div class="cBoth">
                                </div>
                                <div class="outerBox11 pTop15 col-md-12" id="QuestionDescription2Div" runat="server" visible="false">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="QuestionDescription2Label" runat="server" Text="Paragraph or Comprehension :"></asp:Label>
                                    </div>
                                    <div class="pRight5">
                                        <CKEditor:CKEditorControl ID="QuestionDescription2TextBox" BasePath="~/ckeditor/" runat="server" Height="70px"></CKEditor:CKEditorControl>
                                    </div>
                                </div>
                                <div class="cBoth">
                                </div>

                                <div class="outerBox11 pTop15 col-md-12">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="QuestionDescriptionLabel" runat="server" Text="Question Description" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="pRight5">
                                        <CKEditor:CKEditorControl ID="QuestionDescriptionTextBox" BasePath="~/ckeditor/" runat="server" Height="70px"></CKEditor:CKEditorControl>
                                        <asp:HiddenField ID="QuestionIdHiddenField" runat="server" />
                                        <asp:HiddenField ID="QuestionPareGraphIdHiddenField" runat="server" />
                                        <asp:HiddenField ID="TopicIdHiddenField" runat="server" />
                                    </div>
                                </div>


                                <div class="outerBox pTop15 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="DifficultyLevelLabel" runat="server" Text="Difficulty Level" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList runat="server" ID="DifficultyLevelDropDownList" SkinID="CustomWidthDropDownList"
                                            onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                            AutoPostBack="false">
                                        </asp:DropDownList>
                                    </div>
                                </div>

                                <div class="outerBox pTop15 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="MarksLabel" runat="server" Text="Marks" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="MarksTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            SkinID="CustomWidthTextBox" runat="Server"
                                            onkeypress="javascript:return MaskDecimal(event,6,2)"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop15 col-md-3" id="OrderIndexDiv" runat="server">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="OrderIndexLabel" runat="server" Text="Order Index"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="OrderIndexTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            SkinID="CustomWidthTextBox" runat="Server" onkeypress="return isNumberKey(event)"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop15 col-md-3">
                                    <div class="controlLabelWidth pTop5" style="padding-left: 10px">
                                        <asp:Button ID="AddSameParaButton" runat="server"
                                            Text="&#xf067; Add Same Para" SkinID="0" CssClass="btn btn-add fas"
                                            OnClick="AddSameParaButton_Click" />
                                    </div>
                                </div>
                                <div class="cBoth"></div>
                                <div class="outerBox11 pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:CheckBox ID="IsObsoleteCheckBox" runat="server" Visible="true" Text="InActive" />
                                        <asp:Label ID="IsObsoleteLabel" runat="server" Text="InActive" Visible="true" CssClass="display-none"></asp:Label>
                                    </div>
                                </div>

                                <div id="Div1" class="himssuHeader6WireBox col-md-12 pTop5" runat="server" visible="true">
                                    <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv" runat="server" visible="True">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <header>
                                                    <asp:Label ID="GridViewLabel" Text="Option List" runat="server" />
                                                </header>
                                            </div>
                                        </div>

                                    </div>
                                    <div class="col-md-12 pb15">
                                        <div class="fRight display-flex">
                                            <asp:DropDownList ID="AddRowsToGridDropDownList" SkinID="0" CssClass="form-control" runat="server" AutoPostBack="false">
                                                <asp:ListItem Text="4" Value="4" Selected="True"></asp:ListItem>
                                                <asp:ListItem Text="1" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="2" Value="2"></asp:ListItem>
                                                <asp:ListItem Text="3" Value="3"></asp:ListItem>
                                                <asp:ListItem Text="5" Value="5"></asp:ListItem>
                                            </asp:DropDownList>
                                            &nbsp;
                                            <asp:Button ID="AddButton" runat="server" CssClass="btn btn-add fas" SkinID="0" OnClick="AddButton_Click"
                                                Text="&#xf067; Add" />
                                        </div>
                                    </div>
                                    <div class="himsBoxContent pTop15">
                                        <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server" visible="False">
                                        </div>
                                        <asp:GridView ID="QuestionOptionGridView" runat="server" AutoGenerateColumns="False"
                                            EmptyDataText="No Records Found !!" AllowPaging="false"
                                            CssClass="table table-striped table-bordered gridviewfont" ShowHeader="True" DataKeyNames="QuestionOptionId,Index"
                                            OnRowDataBound="QuestionOptionGridView_RowDataBound"
                                            OnRowDeleting="QuestionOptionGridView_RowDeleting">
                                            <Columns>
                                                <asp:TemplateField HeaderText="Key" ItemStyle-Width="1%" ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <label class="radio">
                                                            <asp:RadioButton ID="KeyRadioButton" runat="server" AutoPostBack="true" OnCheckedChanged="KeyRadioButton_CheckedChanged" />
                                                            <span class="outer"><span class="inner"></span></span>
                                                        </label>
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Choice Description" ItemStyle-Width="25%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <CKEditor:CKEditorControl Text='<%# Bind("ChoiceDescription") %>' ID="RemarkTextBox" BasePath="~/ckeditor/" runat="server" Height="70px"></CKEditor:CKEditorControl>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Order Index" ItemStyle-Width="1%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="OrderIndexTextBox" runat="server" Width="60px" onkeypress="return isNumberKey(event)"
                                                            Text='<%# DataBinder.Eval(Container.DataItem,"OrderIndex").ToString()=="0"? "":Eval("OrderIndex") %>'></asp:TextBox>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ShowHeader="true" HeaderText="Delete" ItemStyle-Width="1%">
                                                    <ItemTemplate>
                                                        <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_Click"
                                                            ToolTip="Delete" />
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" Width="1%" />
                                                </asp:TemplateField>
                                            </Columns>
                                            <PagerSettings Visible="False" />
                                        </asp:GridView>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%-- <script data-main="../../JavaScript/rjs/encrypt/question-master-editor-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/question-master-editor")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
