<%@ page language="C#" async="true" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Components_Alert_SMSPredefine, App_Web_0mcwcb34" enableEventValidation="false" viewStateEncryptionMode="Never" %>

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

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <%--<script>
        function CheckBoxCheckAll(e) {
            // var t = e.parentNode.parentNode.parentNode.parentNode;
            var t = e.closest('Table');
            var numChecked = 0;
            alert(t.rows.length);
        
                for (i = 0; i < t.rows.length; i++) {
                    if (t.rows[i].cells[0].getElementsByTagName("INPUT")[0].checked)
                    {
                        t.rows[i].cells[0].getElementsByTagName("INPUT")[0].checked = e.checked
                        numChecked = numChecked + 1;
                    }
                    if (t.rows.length != numChecked)
                    {
                        numChecked = 0;
                    }

                    //numChecked = numChecked + 1;
                    // if(t.rows[i].cells[0].getElementsByTagName("INPUT")[0].checked == (e.checked,false))
                    console.log(t.rows[i].cells[0].getElementsByTagName("INPUT")[0].checked = e.checked);
                }
                document.getElementById("<%= SelectedStudentLabel.ClientID %>").innerHTML = numChecked;
        }

        function CheckBoxCount() {
            var gv = document.getElementById("<%= SMSPredefineGridView.ClientID %>");
            var inputList = gv.getElementsByTagName("input");
            var numChecked = 0;

            for (var i = 0; i < inputList.length; i++) {
                if (inputList[i].type == "checkbox" && inputList[i].checked) {
                    numChecked = numChecked + 1;
                }
            }
            document.getElementById("<%= SelectedStudentLabel.ClientID %>").innerHTML = numChecked;
             //("<%= SelectedStudentLabel.ClientID %>")
           // $('#edit-count-checked-checkboxes').val(countCheckedCheckboxes);
            // alert(numChecked);

           
        }
       // SelectCheckBox
    </script>--%>
    <asp:UpdatePanel ID="IncidentLogUpdatePanel" runat="server" UpdateMode="Always">
        <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="124"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft">
                    <Alert:AlertControl ID="AlertUserControl" runat="server" Visible="true" />
                    <div class="himssuHeader2WireBox ">
                        <div class="contentHolder" style="padding-top: 0px; padding-left: 0px; padding-right: 0px">
                            <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-search"></i>
                                                <asp:Label ID="Label1" runat="server" Text="SMS Predefine"></asp:Label>
                                            </header>
                                        </div>
                                    </div>
                                    <div class="fRight mt-27 pagination display-flex">
                                        <asp:Button ID="BackButton" runat="Server" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" OnClick="BackButton_Click" Visible="false" />
                                    </div>
                                </div>
                                <div class="himsBoxContent card-body">
                                    <asp:Panel ID="DetailPanel" runat="Server">
                                        <div class="contentHolder">
                                            <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                                <div class="outerBox pTop5 col-md-12">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="AlertModeLabel" runat="server" Text="Alert Mode :" CssClass="col-md-1 pr-0"></asp:Label>
                                                        <%--<asp:CheckBoxList ID="SourceTypeCheckBoxList" runat="server" RepeatDirection="Horizontal"
                                                            CssClass="col-md-9 ml-2" OnSelectedIndexChanged="SMSPredefineCheckBoxList_OnSelectedIndexChanged"
                                                            AutoPostBack="true">
                                                            <asp:ListItem Text="SMS" Value="2" Selected="True"></asp:ListItem>
                                                            <asp:ListItem Text="Email" Value="1"></asp:ListItem>
                                                            <asp:ListItem Text="Mobile App" Value="3"></asp:ListItem>
                                                            <asp:ListItem Text="WhatsApp" Value="4"></asp:ListItem>
                                                        </asp:CheckBoxList>--%>
                                                        <asp:RadioButtonList ID="SourceTypeRadioButtonList" runat="server" RepeatDirection="Horizontal"
                                                            CssClass="col-md-9 ml-2" OnSelectedIndexChanged="SMSPredefineCheckBoxList_OnSelectedIndexChanged"
                                                            AutoPostBack="true">
                                                            <asp:ListItem Text="SMS" Value="2" Selected="True"></asp:ListItem>
                                                            <asp:ListItem Text="Email" Value="1"></asp:ListItem>
                                                            <asp:ListItem Text="Mobile App" Value="3"></asp:ListItem>
                                                            <asp:ListItem Text="WhatsApp" Value="4"></asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </div>
                                                </div>
                                                <%-- <div class="outerBox col-md-12 radiobtn bg-lghtgrey">
                                                    <div class="fLeft pRight5 col-md-9">
                                                        <asp:RadioButtonList runat="server" ID="AlertModeRadioButtonList" RepeatDirection="Horizontal"
                                                            AutoPostBack="true" OnSelectedIndexChanged="AlertModeRadioButtonList_OnSelectedIndexChanged">
                                                            <asp:ListItem Text="SMS" Value="2" Selected="True"></asp:ListItem>
                                                            <asp:ListItem Text="Mail" Value="1"></asp:ListItem>
                                                            <asp:ListItem Text="Mobile App" Value="3"></asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </div>
                                                </div>
                                                <div runat="server" id="AlertModeDiv" visible="true">
                                                    <div class="outerBox pTop5 col-md-12">
                                                        <div class="col-md-2">
                                                            <asp:CheckBox runat="server" ID="AlertModeMailCheckBox" />
                                                            <asp:Label ID="AlertModeMailLabel" runat="server" Text="Send As Mail" AssociatedControlID="AlertModeMailCheckBox"></asp:Label>
                                                        </div>
                                                        <div class="col-md-3">
                                                            <asp:CheckBox runat="server" ID="AlertModeMobileAppCheckBox" />
                                                            <asp:Label ID="AlertModeMobileAppLabel" runat="server" Text="Send As Mobile App" AssociatedControlID="AlertModeMobileAppCheckBox"></asp:Label>
                                                        </div>
                                                    </div>
                                                </div>--%>

                                                <div class="outerBox pTop5 col-md-12">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="AlertToLabel" runat="server" Text="Alert To :" CssClass="col-md-1"></asp:Label>
                                                        <asp:CheckBoxList ID="ContactCheckBoxList" runat="server" RepeatDirection="Horizontal" CssClass="col-md-9">
                                                            <asp:ListItem Text="Primary" Value="1" Selected="True"></asp:ListItem>
                                                            <asp:ListItem Text="Father" Value="2"></asp:ListItem>
                                                            <asp:ListItem Text="Mother" Value="3"></asp:ListItem>
                                                            <asp:ListItem Text="Student" Value="4"></asp:ListItem>
                                                            <asp:ListItem Text="WhatsApp" Value="5"></asp:ListItem>
                                                        </asp:CheckBoxList>
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="EventLabel" runat="server" Text="Event" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="EventDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            AutoPostBack="true" OnSelectedIndexChanged="EventDropDownList_OnSelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="OrganizationLabel" Text="Organization" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="OrganizationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" AutoPostBack="true" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" OnSelectedIndexChanged="OrganizationDropDownList_OnSelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="BatchLable" Text="Batch" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="BatchDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control"
                                                            AutoPostBack="true" OnSelectedIndexChanged="BatchDropDownList_OnSelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-3" id="SourceTypeDiv" runat="server" visible="false">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="SearchReaderSourceTypeLabel" runat="server" Text="Source Type" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="SourceTypeDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                            <asp:ListItem Text="- Select -" Value="-1" Selected="True"></asp:ListItem>
                                                            <asp:ListItem Text="Student" Value="2003"></asp:ListItem>
                                                            <asp:ListItem Text="Employee" Value="95"></asp:ListItem>
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div runat="server" id="DepartmentDiv" visible="false">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="DepartmentLabel" runat="server" Text="Department" meta:resourcekey="DepartmentLabelResource1"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="DepartmentDropDownList" onmouseleave="showHideTooltip()"
                                                                CssClass="form-control" SkinID="CustomWidthDropDownList" onmouseenter="showHideTooltip()"
                                                                OnSelectedIndexChanged="DepartmentDropDownList_SelectedIndexChanged" AutoPostBack="true">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div id="ClassDiv" runat="server" visible="true">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ClassLabel" runat="server" Text="Class"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="ClassDropDownList" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                AutoPostBack="true" OnSelectedIndexChanged="ClassDropDownList_OnSelectedIndexChanged">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="DivisionLabel" runat="server" Text="Division"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="DivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3" id="StatusDiv" runat="server" visible="false">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="StatusLabel" runat="server" Text="Status"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="StatusDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div runat="server" id="ContactDiv" visible="false">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ContactTypeLabel" runat="server" Text="Contact Type"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="ContactTypeDropDownList" SkinID="CustomWidthDropDownList"
                                                                onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div runat="server" id="BusRouteDiv" visible="false">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="TransportLabel" runat="server" Text="Transport"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="TransportDropDownList" SkinID="CustomWidthDropDownList"
                                                                Class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true" OnSelectedIndexChanged="TransportDropDownList_SelectedIndexChanged">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="BusRouteLabel" runat="server" Text="Bus Route" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="BusRouteDropDownList" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                OnSelectedIndexChanged="BusRouteDropDownList_SelectedIndexChanged" AutoPostBack="true">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="fLeft pTop5">
                                                            <asp:CheckBox ID="PickupDropCheckBox" runat="server" SkinID="CustomWidthTextBox" Text="Pickup Point/Drop Point"
                                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                OnCheckedChanged="PickupDropCheckBox_CheckedChanged" AutoPostBack="true"></asp:CheckBox>

                                                        </div>
                                                    </div>
                                                    <div class="outerBox11 pTop15 col-md-3" id="PickupDropCheckDiv" runat="server" visible="false">
                                                        <div class="select">
                                                            <asp:CheckBox ID="SelectAllCheckBox" runat="server" Text="Select All " OnCheckedChanged="SelectAllCheckBox_CheckedChanged"
                                                                AutoPostBack="true" />
                                                        </div>
                                                        <div id="PickupDropDiv" runat="server" class="fLeft pRight5 chck-dropdown-onclick bg-lghtgrey outerBox11 col-md-12 overflow-x-hidden padd-0" style="max-height: 175px">
                                                            <asp:CheckBoxList ID="PickupDropCheckBoxList" runat="server">
                                                            </asp:CheckBoxList>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div runat="server" id="HostelDiv" visible="false">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="HostelLabel" runat="server" Text="Hostel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="HostelDropDownList" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div runat="server" id="ForHostelDateDiv" visible="false">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ForHostelDateLabel" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="ForHostelDatePickerControl"
                                                                runat="server" />
                                                        </div>
                                                    </div>
                                                </div>

                                                <div runat="server" id="AttendanceTypeDiv" visible="false">
                                                    <div id="AttendanceTypeDropDownListDiv" runat="server" visible="true">
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="AttendanceTypeLabel" runat="server" Text="Attendance Type" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList runat="server" ID="AttendanceTypeDropDownList" SkinID="CustomWidthDropDownList"
                                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    AutoPostBack="true" OnSelectedIndexChanged="AttendanceTypeDropDownList_OnSelectedIndexChanged">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div id="SubjectDiv" runat="server" visible="false">
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="SubjectLabel" runat="server" Text="Subject" SkinID="MandatoryLabel"></asp:Label>
                                                                <asp:Label ID="SubjectLabelNormal" runat="server" Text="Subject" Visible="false"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList runat="server" ID="SubjectDropDownList" SkinID="CustomWidthDropDownList"
                                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div runat="server" id="ReceiptBookDiv" visible="false">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ReceiptBookLabel" runat="server" Text="Receipt Book"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="ReceiptBookDropDownList" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="ReceiptBookDropDownList_SelectedIndexChanged" AutoPostBack="true">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div runat="server" id="CollectionGroupDiv" visible="false">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="Label2" runat="server" Text="Collection Group"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="CollectionGroupDropDownList" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div id="AdmissionCategoryDiv" runat="server" visible="false">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="AdmissionCategoryLabel" runat="server" Text="Fees Category"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="AdmissionCategoryDropDownList" SkinID="CustomWidthDropDownList"
                                                                onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div id="InquiryStatusDiv" runat="server" visible="false">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ForClassLabel" runat="server" Text="For Class"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="ForClassDropDownList" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="InquiryStatusLabel" runat="server" Text="Inquiry Status"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="InquiryStatusDropDownList" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div id="DateDiv" runat="server" visible="true">
                                                    <div runat="server" id="FromDateDiv" visible="true">
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="FromDateLabel" runat="server" Text="From Date" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <Date:DatePickerControl DisplayDatePicker="true" ID="FromDatePickerControl" runat="server" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ToDateLabel" runat="server" Text="To Date" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="ToDatePickerControl" runat="server" />
                                                        </div>
                                                    </div>
                                                </div>
                                                <div runat="server" id="CurrentStatusDiv" visible="false">
                                                    <div class="outerBox pTop15 col-md-3">
                                                        <div class="fLeft pRight5">
                                                            <asp:CheckBox ID="IsCurrentStatusCheckBox" runat="server" Text="Current Status" />
                                                        </div>
                                                    </div>
                                                </div>
                                                <div runat="server" id="PassChangeDiv" visible="false">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="DaysLabel" runat="server" Text="Password Reminder Days"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="PasswordReminderDaysTextBox" runat="server" onkeypress="javascript:return isNumberKey(this)"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div runat="server" id="AbsentDaysDiv" visible="false">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="AbsentDaysLabel" runat="server" Text="Days" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="AbsentDaysTextBox" runat="server" onkeypress="javascript:return isNumberKey(this)"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div id="LectureDatediv" runat="server" visible="false">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="Label3" runat="server" Text="Date" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="LectureDatePickerControl" runat="server" />
                                                        </div>
                                                    </div>
                                                </div>
                                                <div runat="server" id="DOBDiv" visible="false">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="DOBLabel" runat="server" Text="Date Of Birth" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="DOBDatePickerControl" runat="server" />
                                                        </div>
                                                    </div>
                                                </div>
                                                <div runat="server" id="LibraryDiv" visible="false">
                                                    <div class="outerBox col-md-3 pTop5">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="LibraryLabel" runat="server" Text="Library" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft">
                                                            <asp:DropDownList ID="LibraryDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div runat="server" id="DueDateDiv" visible="false">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="DueDateLabel" runat="server" Text="Due Date" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="DueDatePickerControl" runat="server" />
                                                        </div>
                                                    </div>
                                                </div>

                                                <div id="ExamDiv" runat="server" visible="false">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ExamLabel" runat="server" Text="Exam" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="ExamDropDownList" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                OnSelectedIndexChanged="ExamDropDownList_OnSelectedIndexChanged" AutoPostBack="true">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ESubjectLabel" runat="server" Text="Subject"></asp:Label>
                                                        </div>
                                                        <asp:DropDownList ID="ESubjectDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="false" />
                                                    </div>
                                                </div>

                                                <div id="MonthYearDiv" runat="server" visible="false">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ForYearLabel" runat="server" Text="For Year" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="ForYearDropDownList" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                AutoPostBack="true" OnSelectedIndexChanged="ForYearDropDownList_OnSelectedIndexChanged">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ForMonthLabel" runat="server" Text="For Month" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="ForMonthDropDownList" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>
                                                <%--Added for mantis : 35914 by Nilesh--%>
                                                <div id="AmountDiv" runat="server" visible="false">
                                                    <div runat="server" id="AmountRangeDiv">
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="FromAmountLabel" runat="server" Text="From Amount Range"></asp:Label>
                                                            </div>
                                                            <div class="fLeft  padd-0">
                                                                <asp:TextBox ID="FromAmountTextBox" runat="server" SkinID="0" Width="210px" onkeypress="javascript:return isNumberKey(this)"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ToAmountLabel" runat="server" Text="To Amount Range"></asp:Label>
                                                        </div>
                                                        <div class="fLeft  padd-0">
                                                            <asp:TextBox ID="ToAmountTextBox" runat="server" SkinID="0" Width="210px" onkeypress="javascript:return isNumberKey(this)"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div id="IdsNoDiv" runat="server" visible="false">
                                                    <div class="outerBox pTop5 col-md-12">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="CodeLabel" runat="server" Text="Ids No (Note : Add Roll No with . Dot seperation (Eg. 2.5.10) OR , Comma seperation (Eg. 2,5,10))"></asp:Label>
                                                        </div>
                                                        <div class="fLeft  padd-0">
                                                            <asp:TextBox ID="CodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                Height="50px" SkinID="0" Width="800px" runat="server" TextMode="MultiLine"></asp:TextBox>

                                                        </div>
                                                    </div>
                                                </div>

                                                <div runat="server" id="SubjectInNewLineDiv" visible="false">
                                                    <div class="outerBox pTop15 col-md-3">
                                                        <div class="fLeft pRight5">
                                                            <asp:CheckBox ID="IsSubjectInNewLineCheckBox" runat="server" Text="Subject In New Line" />
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="text-center col-md-12 pTop5" id="AttachementDiv" runat="server" visible="false">
                                                    <a href="javascript:;" onclick="OpenFileUpload();" class="btn btn-browser">
                                                        <i class="fas fa-upload"></i>Browse</a>
                                                    <asp:FileUpload ID="flUpload" runat="server" AllowMultiple="true" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" />
                                                    <asp:Button ID="RefreshButton" runat="server" Text="&#xf2f9; Refresh" SkinID="0" CssClass="btn btn-refresh fas" OnClick="RefreshButton_Click" />
                                                    <br></br>
                                                    <asp:Label ID="lblUploadSuccessMsg" runat="server"></asp:Label>
                                                    <asp:HiddenField ID="GUIDHiddenField" runat="server" />

                                                    <div id="FileGridViewDiv" runat="server" visible="false">
                                                        <asp:GridView ID="FileGridView" runat="server" CssClass="table table-striped table-bordered table-hover"
                                                            AutoGenerateColumns="False" ShowHeader="true" PagerSettings-Visible="false" EmptyDataText="No Files Uploaded"
                                                            DataKeyNames="UniqueText">
                                                            <Columns>
                                                                <asp:TemplateField HeaderText="File Name" ItemStyle-Width="90%" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:HyperLink ID="FileNameHyperLink" runat="server" Text='<%# Eval("FileName") %>'
                                                                            NavigateUrl='<%# Eval("FilePath") %>' Target="_blank"></asp:HyperLink>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Delete" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Center"
                                                                    ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:ImageButton ID="DeleteImageButton" runat="server" ImageUrl="~/Images/icons/icon_delete.gif" ToolTip="Delete"
                                                                            OnClick="DeleteImageButton_Click" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                </div>

                                                <div class="col-md-12">
                                                    <div class="alert alert-info" style="margin-top: 32px">
                                                        <div style="color: #FF7F7F">
                                                            </b>  * Simple SMS is upto 158 and Multi Language SMS is up to 70 characters in length.
                                                        <br />
                                                            * According to government regulations(TRAI), if your DLT process with SMS template registration has not been completed by now, 
                                                then you will not get proper logs in alerts module.
                                                       
                                                              <%--//By Krunal, Add For Mantis: 0038346  --%>
                                                            <div runat="server" id="SMsPredefinedv" visible="false" style="color: #FF7F7F">
                                                                * You can send a maximum of 200 to 250 bulk WhatsApp messages at a time, otherwise, your what's app account will be blocked from the WhatsApp side.
                                                                 <br />
                                                                * Only PDF,JPG,DOC,XLS file extentions supported for WhatsApp.
                                                                <br />                                                                 
                                                                * We have kept 10-15 seconds delay time between every two message.
                                                                <br />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="col-md-12 pTop5 pb5">
                                                    <div class="fLeft pRight5">
                                                        <asp:CheckBox ID="SupportSMSInOtherLanguageCheckBox" runat="server" Text="Support SMS in other language" />
                                                    </div>
                                                </div>

                                                <div class="pTop5 col-md-12 pb5">
                                                    <asp:Label ID="LFieldsLabel" Text="Fields : " ForeColor="BlueViolet" runat="server" Font-Bold="true" Visible="false"></asp:Label>
                                                    <asp:Label ID="TFieldsLabel" runat="server"></asp:Label>
                                                </div>

                                                <div class="outerBox pTop5 col-md-12">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="TemplateLabel" runat="server" Text="Template"></asp:Label>
                                                    </div>
                                                    <div class="fLeft  padd-0">
                                                        <asp:TextBox ID="TemplateTextBox" runat="server" SkinID="MultilineTextBox"
                                                            MaxLength="1000" TextMode="MultiLine" Height="40px" OnTextChanged="TemplateTextBox_TextChanged"
                                                            AutoPostBack="true"></asp:TextBox>
                                                        <div id="CharCountDiv" runat="server">
                                                            <asp:Label ID="ForCharLabel" runat="server" Text="Number Of Character :"></asp:Label>
                                                            <asp:Label ID="NumberOfCharLabel" runat="server" Font-Bold="true"></asp:Label>
                                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                                        <asp:Label ID="ForMessageLabel" runat="server" Text="Number Of Message :"></asp:Label>
                                                            <asp:Label ID="NumberOfMessageLabel" runat="server" Font-Bold="true"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                        </div>

                                        <div class="alignCenter mt35 pb5 col-md-12">
                                            <asp:Button ID="SearchButton" runat="Server" OnClick="SearchButton_Click"
                                                SkinID="0" CssClass="btn-search btn fas" Text="&#xf002; Search" />
                                        </div>
                                    </asp:Panel>
                                    <asp:Panel ID="Panel1" runat="Server">
                                        <div id="Div1" class="himssuHeader1WireBox col-md-12 pTop15" runat="server" visible="false">
                                            <div id="GridViewPagerDiv" runat="server" visible="True">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <div class="headerText">
                                                        <div>
                                                            <asp:Label ID="GridViewLabel" Text="" runat="server" Font-Bold="true" />
                                                        </div>
                                                    </div>
                                                    <div class="col-md-12 padd-0">
                                                        <div class="col-md-5">
                                                            <asp:Label ID="RecordsPerPage" Text="Records per Page : " runat="server" />
                                                            <asp:DropDownList ID="AddRowsToGridDropDownList" SkinID="CustomWidthDropDownList" Width="60px" runat="server"
                                                                AutoPostBack="true" OnSelectedIndexChanged="AddRowsToGridDropDownList_SelectedIndexChanged">
                                                                <asp:ListItem Text="All" Value="0"></asp:ListItem>
                                                                <asp:ListItem Text="10" Value="10" Selected="True"></asp:ListItem>
                                                                <asp:ListItem Text="20" Value="20"></asp:ListItem>
                                                                <asp:ListItem Text="50" Value="50"></asp:ListItem>
                                                                <asp:ListItem Text="100" Value="100"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </div>
                                                        <div class="col-md-7">
                                                            <uc1:GridViewPager ID="SMSPredefineGridView_GridViewPager" runat="server" OnFirstRecordClick="SMSPredefineGridView_GridViewPager_FirstRecordClick"
                                                                OnLastRecordClick="SMSPredefineGridView_GridViewPager_LastRecordClick" OnNextRecordClick="SMSPredefineGridView_GridViewPager_NextRecordClick"
                                                                OnPrevRecordClick="SMSPredefineGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="SMSPredefineGridView_GridViewPager_TextBoxValueChange"
                                                                ParentGridView="SMSPredefineGridView" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="himsBoxContent table-responsive">
                                                <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server" visible="False">
                                                </div>
                                                <asp:GridView ID="SMSPredefineGridView" runat="server" AutoGenerateColumns="False"
                                                    EmptyDataText="No Records Found !!" CssClass="table table-striped table-bordered table-hover"
                                                    ShowHeader="true" OnRowDataBound="SMSPredefineGridView_OnRowDataBound"
                                                    OnPageIndexChanging="SMSPredefineGridView_PageIndexChanging" AllowPaging="true" PageSize="10"
                                                    DataKeyNames="MobileNo,EmailId,AcademicId,SourceTypeId,StudentContactNo,StudentEmail,FatherContactNo,FatherMail,MotherContactNo,MotherMail,SourceId,Password">
                                                    <Columns>
                                                        <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="4%">
                                                            <HeaderTemplate>
                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                    <asp:CheckBox ID="HeaderSelectCheckBox" onclick="CheckAll(this);" runat="server" />
                                                                    <span></span>
                                                                </label>
                                                            </HeaderTemplate>
                                                            <ItemStyle HorizontalAlign="Center" />
                                                            <ItemTemplate>
                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                    <asp:CheckBox ID="SelectCheckBox" runat="server" />
                                                                    <span></span>
                                                                </label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="Code" HeaderText="Code" ItemStyle-Width="5%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="MobileNo" HeaderText="Primary Mobile" ItemStyle-Width="8%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="WhatsAppContactNo" HeaderText="WhatsApp ContactNo" ItemStyle-Width="8%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="EmailId" HeaderText="Primary EmailId" ItemStyle-Width="8%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:TemplateField HeaderText="Template" ItemStyle-Width="50%" ItemStyle-Wrap="true"
                                                            HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="GridTemplateTextBox" runat="server" SkinID="MultilineTextBox" Text='<%# Eval("Template") %>'
                                                                    MaxLength="1000" TextMode="MultiLine"></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="MessageLength" HeaderText="Message Length" ItemStyle-Width="5%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="SMSCount" HeaderText="SMS Count" ItemStyle-Width="5%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                    </Columns>
                                                    <PagerSettings Visible="False" />
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>

            </div>

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