<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_EExam_QuestionMaster, App_Web_r1e4ni2i" 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">
                    <div class="topdisplayContainer card card-box margin-bottom">

                        <div class="himsDisplayBox ">

                            <div class="himsBoxContent card-body pad">
                                <div class="topdisplayContainer">
                                    <div class="col-md-12">

                                        <div class="col-md-2">

                                            <asp:Label ID="DataBankLabel" runat="server" Text="Data Bank :" Font-Bold="true"></asp:Label></td>
                                                   &nbsp;
                                                        <asp:Label ID="DataBankLabelT" runat="server" Text=""></asp:Label></td>
                                        </div>
                                        <div class="col-md-2">
                                            <asp:Label ID="ClassLabelL" runat="server" Text="Class :" Font-Bold="true"></asp:Label></td>
                                                   &nbsp;
                                                        <asp:Label ID="ClassLabelT" runat="server" Text=""></asp:Label></td>
                                        </div>
                                        <div class="col-md-2">
                                            <asp:Label ID="SubjectLabelL" runat="server" Text="Subject :" Font-Bold="true"></asp:Label></td>
                                                    &nbsp;
                                                        <asp:Label ID="SubjectLabelT" runat="server" Text=""></asp:Label></td>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:Label ID="TopicLabelL" runat="server" Text="Topic :" Font-Bold="true"></asp:Label></td>
                                                    &nbsp;
                                                        <asp:Label ID="TopicLabelT" runat="server" Text=""></asp:Label></td>
                                        </div>
                                        <div class="col-md-2">
                                            <asp:LinkButton ID="ChangeDatabankLinkBtn" OnClick="ChangeDatabankLinkButton" runat="server" CssClass="btn btn-change" Text="Change Data Bank" Font-Bold="true"></asp:LinkButton></td>
                                        </div>

                                    </div>

                                </div>
                            </div>
                            <div class="himsBoxFooter">
                                <div>
                                </div>
                            </div>
                        </div>

                    </div>
                    <div class="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <i class="fas fa-chess-king"></i>
                                    <asp:Label ID="HeaderLabel" runat="server" Text="Question Master"></asp:Label>
                                </div>
                            </div>
                            <div class="fRight mt-27 pagination display-flex ">
                                <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" />
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <div class="outerBox pTop15 col-md-3" id="IncludeCheckBoxDiv" runat="server">
                                    <div class="controlLabelWidth">
                                        <asp:CheckBox ID="IncludeCheckBox" runat="server" Visible="true"
                                            AutoPostBack="True" OnCheckedChanged="IncludeCheckBox_CheckedChanged" />
                                        <asp:Label ID="IncludeLabel" runat="server" Text="Is Paragraph Require" Visible="true" AssociatedControlID="IncludeCheckBox"></asp:Label>
                                    </div>
                                </div>
                               
                                <div class="outerBox11 pTop5 col-md-4" id="QuestionDescription2Div" runat="server" visible="false">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="QuestionDescription2Label" runat="server" Text="Paragraph or Comprehension :"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="QuestionDescription2TextBox" onmouseleave="showHideTooltip()" SkinID="MultiLineTextbox"
                                            TextMode="MultiLine" runat="server" Height="80px"></asp:TextBox>
                                    </div>
                                </div>
                                  <div class="outerBox11 pTop5 col-md-12" id="QuestionDescription2DivWithEditor" runat="server" visible="false">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="Label2" runat="server" Text="Paragraph or Comprehension :" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                       <CKEditor:CKEditorControl ID="QuestionDescription2TextBoxWithEditor" BasePath="~/ckeditor/" runat="server" Height="70px"></CKEditor:CKEditorControl>
                                       
                                    </div>
                                </div>
                                <asp:HiddenField ID="QuestionIdHiddenField" runat="server" />
                                <asp:HiddenField ID="QuestionPareGraphIdHiddenField" runat="server" />
                                <asp:HiddenField ID="TopicIdHiddenField" runat="server" />
                                <div class="outerBox11 pTop5 col-md-4" id="QuestionDescriptionWithoutEditorDiv" runat="server" visible="true">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="QuestionDescriptionLabel" runat="server" Text="Question Description" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="QuestionDescriptionTextBox" onmouseleave="showHideTooltip()" SkinID="MultiLineTextbox"
                                            TextMode="MultiLine" runat="server" Height="80px"></asp:TextBox>
                                      
                                    </div>
                                </div>
                                <div class="outerBox11 pTop5 col-md-12" id="QuestionDescriptionWithEditorDiv" runat="server">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="Label1" runat="server" Text="Question Description" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                       <CKEditor:CKEditorControl ID="QuestionDescriptionTextBoxWithEditor" BasePath="~/ckeditor/" runat="server" Height="70px"></CKEditor:CKEditorControl>
                                       
                                    </div>
                                </div>
                                <div class="cBoth"></div>
                                <div class="outerBox pTop5 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()" class="form-control" onmouseenter="showHideTooltip()"
                                            AutoPostBack="false">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-1">
                                    <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" Width="40px" runat="Server"
                                            onkeypress="javascript:return MaskDecimal(event,6,2)"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 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 display-flex">
                                        <asp:TextBox ID="OrderIndexTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            SkinID="CustomWidthTextBox" CssClass="mt-1" runat="Server" onkeypress="return isNumberKey(event)"></asp:TextBox>
                                      &nbsp; &nbsp; &nbsp;  <asp:Button ID="AddSameParaButton" runat="server" Text="Add Same Para" SkinID="0" CssClass="btn btn-examcommon fas " OnClick="AddSameParaButton_Click" />
                                    </div>
                                </div>
                               <div class="cBoth"></div>
                                <div class="outerBox pTop5 col-md-3" id="QuestionTypeTitleDiv" runat="server">
                                    <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="outerBox pTop5 col-md-2">
                                    <div class="controlLabelWidth">
                                        <asp:CheckBox ID="IsObsoleteCheckBox" runat="server" Visible="true" Text="InActive" />
                                        <asp:Label ID="IsObsoleteLabel" runat="server"  Visible="false" AssociatedControlID="IsObsoleteCheckBox"> </asp:Label>
                                    </div>
                                </div>
                                <div class="cBoth">
                                </div>
                                <div id="Div1" class="himssuHeader6WireBox col-md-12" runat="server" visible="true">
                                    <div class="himsBoxHeader" id="GridViewPagerDiv" runat="server" visible="True">
                                        <div class="leftdiv">
                                        </div>
                                        <%--<div class="himsBoxTitle">
                                            <div class="headerText fLeft">
                                                <asp:Label ID="GridViewLabel" Text="Option List" runat="server" />
                                            </div>
                                        </div>--%>
                                        <div class="pull-right col-md-3 display-flex">
                                            <asp:DropDownList ID="AddRowsToGridDropDownList" SkinID="CustomWidthDropDownList" class="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;&nbsp; <asp:Button ID="AddButton" runat="server" class="buttonLBlue" OnClick="AddButton_Click"
                                                Text="&#xf067; Add" SkinID="0" CssClass="btn btn-add fas" />
                                        </div>
                                    </div>
                                    <div class="himsBoxContent pTop15 width-100 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"
                                            CssClass="table table-striped table-bordered table-hover" ShowHeader="True" DataKeyNames="QuestionOptionId,Index"
                                            OnRowDataBound="QuestionOptionGridView_RowDataBound"
                                            OnRowDeleting="QuestionOptionGridView_RowDeleting">
                                            <Columns>
                                                <asp:TemplateField HeaderText="Key" ItemStyle-Width="5%" 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="87%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="ChoiceDescriptionTextBox" runat="server" Text='<%# Bind("ChoiceDescription") %>'
                                                            SkinID="MultiLineTextBox" TextMode="MultiLine" Width="400px" Height="40px"></asp:TextBox>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Choice Description" ItemStyle-Width="87%" 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-Width="5%" 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">
                                                    <ItemTemplate>
                                                        <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_Click"
                                                            ToolTip="Delete" />
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" Width="3%" />
                                                </asp:TemplateField>
                                            </Columns>
                                            <PagerSettings Visible="False" />
                                        </asp:GridView>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                   
                </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--   <script data-main="../../JavaScript/rjs/encrypt/question-master-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/question-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
