<%@ page language="C#" autoeventwireup="true" inherits="Pages_Admission_AdmissionInquirySetup, App_Web_v5i34bxp" title="Admission Inquiry Setup" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" maintainscrollpositiononpostback="true" 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 Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <script type="text/javascript">
        $(document).ready(function () {
            //debugger;
            HTMLInputElement.prototype.scrollIntoView = function (a) { this.scrollIntoViewIfNeeded(); }
            HTMLSelectElement.prototype.scrollIntoView = function (a) { this.scrollIntoViewIfNeeded(); }
            HTMLAreaElement.prototype.scrollIntoView = function (a) { this.scrollIntoViewIfNeeded(); }
        });
    </script>
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="leftUlMenu">
                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="112"
                                            Visible="true" runat="server" />
                                    </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-tasks"></i>
                                        <asp:Label ID="Label1" runat="server" Text="Admission Inquiry Setup"></asp:Label>
                                    </header>
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchClassLabel" Text="Class" runat="server" meta:resourcekey="StateNameLabelResource1" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="SearchClassDropDownList" SkinID="CustomWidthDropDownList"
                                                OnSelectedIndexChanged="SearchClassDropDownList_SelectedIndexChanged" AutoPostBack="true"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="fLeft pTop5">
                                            <asp:CheckBox ID="ApplyToOtherClassCheckBox" runat="server" OnCheckedChanged="ApplyToOtherClassCheckBox_CheckedChanged" Text="Apply To Other Class"
                                                AutoPostBack="true" />
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:Button ID="OnlineEntryLinkButton" runat="server" SkinID="0" CssClass="btn btn-assign fas" Text=" Online Entry Link" OnClick="OnlineEntryLinkButton_Click" />
                                        </div>
                                    </div>


                                    <div id="DivClassCheckBoxList" class="outerBox11 pTop5  col-md-6" runat="server" visible="false">
                                        <div class="col-md-6 ">
                                            <div class="select">
                                                <asp:CheckBox ID="ClassCheckBox" runat="server" AutoPostBack="True" OnCheckedChanged="ClassCheckBox_CheckedChanged" Text="Select All" />
                                            </div>
                                            <div id="ClassDivisionDiv" runat="server" class="fLeft pRight5 chck-dropdown-onclick bg-lghtgrey outerBox11 col-md-12 overflow-x-hidden padd-0">
                                                <asp:CheckBoxList ID="ClassDivisionCheckBoxList" runat="server">
                                                </asp:CheckBoxList>
                                            </div>
                                        </div>
                                        <div class="col-md-6 ">
                                            <asp:Button ID="ApplyForSelectClassButton" runat="server" SkinID="0" OnClick="ApplyForSelectClassButton_Click"
                                                Text="Apply For Selected Class" CssClass="btn btn-apply" />
                                        </div>
                                        <div class="col-md-6 "></div>
                                        <div class="col-md-6 "></div>
                                        <div class="col-md-6 "></div>
                                    </div>
                                    <div class="cBoth">
                                    </div>
                                    <cc1:TabContainer Width="100%" ID="PermissionTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox ajax__tab_container ajax__tab_default pTop5"
                                        AutoPostBack="false" meta:resourcekey="StudentCustomSearchTabContainerResource1"
                                        ActiveTabIndex="0">
                                        <cc1:TabPanel Width="100%" ID="AdmissionCriteria" runat="server" HeaderText="Online Admission Criteria">
                                            <HeaderTemplate>
                                                <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                    <li class="fancyTab">
                                                        <a><i class="fas  fa-bars"></i>&nbsp;Online Admission Inquiry Criteria </a></li>
                                                </ul>
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <div class="contentHolder">
                                                    <asp:Panel ID="SearchDetailPanel" runat="server" meta:resourcekey="SearchDetailPanelResource1">
                                                        <div class="himssuHeader1WireBox">
                                                         <%--   <div class="contentHolder pTop5 col-md-12">--%>
                                                                <div class="outerBox pTop5 col-md-12">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:CheckBox ID="PublishCheckBox" runat="server" />
                                                                        <asp:Label ID="PublishLabel" runat="server" Text="Publish" AssociatedControlID="PublishCheckBox"></asp:Label>
                                                                    </div>
                                                                </div>
                                                           
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:CheckBox ID="IsValidateBirthdateCheckBox" AutoPostBack="True" runat="server"
                                                                        OnCheckedChanged="ValidateBirthDateCheckBox_CheckedChanged" />
                                                                    <asp:Label ID="IsValidateBirthdateLabel" runat="server" Text="Validate Birthdate" AssociatedControlID="IsValidateBirthdateCheckBox"></asp:Label>
                                                                </div>
                                                            </div>
                                                            <div class=" outerBox col-md-8">
                                                                <div id="BirthDateTextBox" class="" runat="server" visible="False">

                                                                    <div class="col-md-4" style="padding-left: 0px; padding-right: 0px">
                                                                        <asp:Label ID="DOBFromdateLabel" runat="server" Text="DOB(FromDate)" meta:resourcekey="DOBLabelResource1"></asp:Label>

                                                                        <Date:DatePickerControl DisplayDatePicker="true" ID="DOBFromDateTextBox" runat="server"
                                                                            onkeyup="FormatIt(this);" />
                                                                    </div>
                                                                    <div class="col-md-4">
                                                                        <asp:Label ID="DOBTodateLabel1" runat="server" Text="DOB(ToDate)" meta:resourcekey="DOBLabelResource1"></asp:Label>

                                                                        <Date:DatePickerControl DisplayDatePicker="true" ID="DOBToDateTextBox" runat="server"
                                                                            onkeyup="FormatIt(this);" />
                                                                    </div>

                                                                </div>
                                                                  <div id="AgeCutOffDateDiv" class="outerBox col-md-4" runat="server" visible="true">
                                                                        <div class="">
                                                                            <asp:Label ID="AgeCutOffDateLabel" runat="server" Text="Age Cut Off Date" meta:resourcekey="AgeCutOffDateLabelResource"></asp:Label>
                                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="AgeCutOffDateTextBox" runat="server" onkeyup="FormatIt(this);" />
                                                                        </div>
                                                                    </div>
                                                            </div>
                                                           <div class="outerBox11 pTop5 col-md-11">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="AdmissionInquiryLabel" runat="server" Text="Admission Inquiry Remark"></asp:Label>
                                                                    <asp:TextBox ID="AdmissionInquiryRemarkTextBox" runat="server"
                                                                        TextMode="MultiLine" Style="word-wrap: normal; word-break: break-all;" />
                                                                </div>
                                                            </div>

                                                            <div class="outerBox11 pTop5 col-md-11">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="AdmissionInquiryConfirmationRemarkLabel" runat="server" Text="Admission Confirmation Remark"></asp:Label>
                                                                    <asp:TextBox ID="AdmissionInquiryConfirmationRemarkTextBox" runat="server"
                                                                        TextMode="MultiLine" Style="word-wrap: normal; word-break: break-all;" />
                                                                </div>
                                                            </div>
                                                            </div>
                                                      <%--  </div>--%>
                                                    </asp:Panel>
                                                </div>
                                            </ContentTemplate>
                                        </cc1:TabPanel>
                                        <cc1:TabPanel Width="100%" ID="AdmissionSetup" runat="server" HeaderText="Admission Setup">
                                            <HeaderTemplate>
                                                <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                    <li class="fancyTab">
                                                        <a><i class="fas  fa-bars"></i>&nbsp;Admission Inquiry Field </a></li>
                                                </ul>
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <div class="contentHolder">
                                                    <div class="tableContainer">
                                                        <div>
                                                            <div id="Div6" class="himssuHeader6WireBox pTop5  col-md-12" runat="server">
                                                                <div class="himsBoxHeader card-head inner" id="Div7" runat="server">
                                                                    <div class="leftdiv">
                                                                    </div>
                                                                    <div class="himsBoxTitle">
                                                                        <div class="pull-right col-md-3 display-flex">
                                                                            <asp:DropDownList ID="AddCountDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                                                CssClass="form-control">
                                                                                <asp:ListItem Text="1" Value="0" Selected="True"></asp:ListItem>
                                                                                <asp:ListItem Text="5" Value="5"></asp:ListItem>
                                                                                <asp:ListItem Text="10" Value="10"></asp:ListItem>
                                                                                <asp:ListItem Text="15" Value="15"></asp:ListItem>
                                                                            </asp:DropDownList>&nbsp;&nbsp;
					                                                        <asp:Button ID="AddFieldButton" runat="server" SkinID="0" CssClass="btn btn-add fas" Text=" Add" OnClick="AddFieldButton_Click" />
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="himsBoxContent table-responsive">
                                                                    <asp:GridView ID="AdmissionInquiryGridview" runat="server" AutoGenerateColumns="False"
                                                                        EmptyDataText="No Records Found !!" CssClass="table table-striped table-bordered table-hover"
                                                                        DataKeyNames="Id,FieldTypeId" OnRowDataBound="AdmissionInquiryGridview_RowDataBound">
                                                                        <Columns>
                                                                            <asp:TemplateField HeaderText="Field Group">
                                                                                <ItemTemplate>
                                                                                    <asp:TextBox ID="FieldGroupTextBox1" MaxLength="200" runat="server" SkinID="CustomWidthTextBox" Text='<%# Bind("FieldGroup") %>' />
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="10%" Wrap="True" />
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Field Remark">
                                                                                <ItemTemplate>
                                                                                    <asp:TextBox ID="FieldRemarkTextBox1" MaxLength="500" runat="server" TextMode="MultiLine" SkinID="CustomWidthTextBox" Text='<%# Bind("FieldRemark") %>' />
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="30%" Wrap="True" />
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Type List">
                                                                                <ItemTemplate>
                                                                                    <asp:DropDownList ID="TypeListGridviewDropDownList" runat="server" OnSelectedIndexChanged="TypeListGridviewDropDownList_SelectedIndexChanged" AutoPostBack="True" class="form-control" />
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="10%" Wrap="True" />
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Field List">
                                                                                <ItemTemplate>
                                                                                    <asp:TextBox ID="FieldListTextBox1" MaxLength="500" runat="server" SkinID="CustomWidthTextBox" Text='<%# Bind("FieldList") %>' />
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="20%" Wrap="True" />
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Field Order">
                                                                                <ItemTemplate>
                                                                                    <asp:TextBox ID="FieldOrderTextBox1" TextMode="Number" MaxLength="4" runat="server" Text='<%# Bind("FieldOrder") %>' SkinID="CustomWidthTextBox" />
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="10%" Wrap="True" />
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Is Field Mandatory">
                                                                                <ItemTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-single rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="IsFieldMandatoryCheckBox1" runat="server" Checked='<%# Bind("IsFieldMandatory") %>' />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="10%" Wrap="True" />
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Delete">
                                                                                <ItemTemplate>
                                                                                    <asp:ImageButton SkinID="DeleteImage" ID="DeleteInquiryFieldImageButton" runat="server" OnClick="DeleteInquiryFieldImageButton_Click"
                                                                                        ToolTip="Delete" ImageUrl="../../../Images/icons/icon_delete.gif" />
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                                <ItemStyle HorizontalAlign="Center" Width="10%" />
                                                                            </asp:TemplateField>
                                                                        </Columns>
                                                                        <PagerSettings Visible="False" />
                                                                    </asp:GridView>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </ContentTemplate>
                                        </cc1:TabPanel>
                                        <cc1:TabPanel Width="100%" ID="CopyToOtherOrgPanel" runat="server">
                                            <HeaderTemplate>
                                                <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                    <li class="fancyTab">
                                                        <a><i class="fas  fa-bars"></i>&nbsp;Copy to Other Organization </a></li>
                                                </ul>
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <div class="contentHolder">
                                                    <div class="tableContainer">
                                                        <div>
                                                            <div id="Div10" class="himssuHeader6WireBox pTop5  col-md-12"
                                                                runat="server">
                                                                <div class="himsBoxContent table-responsive">
                                                                    <div class="outerBox11 pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="Label2" Text="Admission Inquiry Setup Fields" runat="server"></asp:Label>
                                                                        </div>
                                                                        <div class="select">
                                                                            <asp:CheckBox ID="AdmissionFieldSelectAllCheckBox" runat="server" AutoPostBack="True" OnCheckedChanged="AdmissionFieldSelectAllCheckBox_CheckedChanged" Text="Select All" />
                                                                        </div>
                                                                        <div class="fLeft pRight5 chck-dropdown-onclick bg-lghtgrey outerBox11 col-md-12 overflow-x-hidden padd-0" style="max-height: 175px">
                                                                            <asp:CheckBoxList ID="AdmissionSetupFieldCheckBoxList" runat="server">
                                                                                <asp:ListItem Value="1">Admission Inquiry Field</asp:ListItem>
                                                                                <asp:ListItem Value="2">Online Admission Inquiry Criteria</asp:ListItem>
                                                                            </asp:CheckBoxList>
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="ApplyToOrgLabel" Text="Apply To Other Organization" runat="server" meta:resourcekey="StateNameLabelResource1"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:DropDownList runat="server" ID="ApplyToOrgDropDownList" SkinID="CustomWidthDropDownList"
                                                                                OnSelectedIndexChanged="ApplyToOrgDropDownList_SelectedIndexChanged" AutoPostBack="true"
                                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox11 pTop5  col-md-3" id="Div8" runat="server" visible="false">
                                                                        <div class="select">
                                                                            <asp:CheckBox ID="OrgClassCheckBox" runat="server" AutoPostBack="True" OnCheckedChanged="OrgClassCheckBox_CheckedChanged" Text="Select All" />
                                                                        </div>
                                                                        <div id="Div9" runat="server" class="fLeft pRight5 chck-dropdown-onclick bg-lghtgrey outerBox11 col-md-12 overflow-x-hidden padd-0">
                                                                            <asp:CheckBoxList ID="OrgClassCheckBoxList" runat="server">
                                                                            </asp:CheckBoxList>
                                                                        </div>
                                                                        <asp:Button ID="ApplyToOrgClass" runat="server" SkinID="0" OnClick="ApplyToOrgClass_Click"
                                                                            Text="Apply for Org Class" CssClass="btn btn-apply" Style="margin-top: 15px" />
                                                                    </div>
                                                                    <asp:HiddenField ID="OrgBatchIdHiddenField" runat="server" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </ContentTemplate>
                                        </cc1:TabPanel>
                                        
                                        <%--<cc1:TabPanel Width="100%" ID="TabPanel2" runat="server" HeaderText="Admission Setup">
                                            <HeaderTemplate>
                                                <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs" style="width: 163px !important">
                                                    <li class="fancyTab">
                                                        <a><i class="fas  fa-bars" style="margin:0px 2px !important"></i>&nbsp;Admission Document </a></li>
                                                </ul>
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <div class="contentHolder">
                                                    <div class="tableContainer">
                                                        <div>
                                                            <div id="Div5" class="himssuHeader6WireBox pTop5  col-md-12"
                                                                runat="server">

                                                                <div class="himsBoxContent table-responsive">
                                                                    <asp:GridView ID="AdmissionDocumentGridView" runat="server" AutoGenerateColumns="False"
                                                                        EmptyDataText="No Records Found !!" DataKeyNames="DocumentId" CssClass="table table-striped table-bordered table-hover" Visible="false">
                                                                        <Columns>
                                                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="2%">
                                                                                <HeaderTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="IsSelectDocCheckBoxAll" onclick="CheckAll(this);" runat="server" />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </HeaderTemplate>
                                                                                <ItemStyle HorizontalAlign="Center" />
                                                                                <ItemTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="IsSelectDocCheckBox" runat="server" />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Document Name">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="DocumentNameLabel" MaxLength="30" runat="server" SkinID="CustomWidthTextBox" Text='<%# Bind("DocumentName") %>' />
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="10%" Wrap="True" />
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Remark">
                                                                                <ItemTemplate>
                                                                                    <asp:TextBox ID="RemarkTextBox" runat="server" SkinID="CustomWidthTextBox" Width="350px" Text='<%# Bind("Remark") %>'></asp:TextBox>
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="20%" Wrap="True" />
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Is Mandatory Document">
                                                                                <ItemTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-single rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="IsMandatoryDocCheckBox" runat="server" Checked='<%# Bind("IsMandatory") %>' />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="10%" Wrap="True" />
                                                                            </asp:TemplateField>
                                                                        </Columns>
                                                                        <PagerSettings Visible="False" />
                                                                    </asp:GridView>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </ContentTemplate>
                                        </cc1:TabPanel>--%>
                                    </cc1:TabContainer>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/admission-inquiry-setup")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
