<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Components_Alert_MySendAlert, 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/Common/Alert/AlertDetailBoxControl.ascx" TagName="AlertControl" TagPrefix="Alert" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <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="213"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <Alert:AlertControl ID="AlertUserControl" runat="server" Visible="true" />
                    <div class="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="far fa-comments"></i>
                                        <asp:Label ID="Label1" runat="server" Text="SMS To All"></asp:Label>
                                    </header>
                                </div>
                            </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:CheckBoxList ID="SourceTypeCheckBoxList" runat="server" RepeatDirection="Horizontal" CssClass="col-md-9"
                                                    OnSelectedIndexChanged="SourceTypeCheckBoxList_OnSelectedIndexChanged" AutoPostBack="true">
                                                    <asp:ListItem Text="SMS" Value="1" Selected="True"></asp:ListItem>
                                                    <asp:ListItem Text="Email" Value="2"></asp:ListItem>
                                                    <asp:ListItem Text="Mobile App" Value="3"></asp:ListItem>
                                                </asp:CheckBoxList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-12">
                                            <div class="controlLabelWidth">
                                                <asp:CheckBoxList ID="ContactCheckBoxList" runat="server" RepeatDirection="Horizontal" CssClass="col-md-12">
                                                    <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:CheckBoxList>
                                            </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="outerBox11 pTop5 col-md-3" runat="server" visible="false">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="Label2" runat="server" Text="Custom Event"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="CustomEventDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    AutoPostBack="true" OnSelectedIndexChanged="CustomEventDropDownList_OnSelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3" id="SubjectDiv" runat="server"
                                            visible="false">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SubjectLabel" runat="server" Text="Subject"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="SubjectTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" runat="server" MaxLength="1000"> </asp:TextBox>
                                            </div>
                                        </div>
                                         <div class="col-md-12">
                                            <div class="alert   alert-info">
                                                <i class="material-icons">info</i>
                                                <b>| Note : </b>&nbsp;Simple SMS is upto 158 and Multi Language SMS is up to 70 characters
                                                        in length
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-12">
                                            <div class="fLeft pRight5">
                                                <asp:CheckBox ID="SupportSMSInOtherLanguageCheckBox" runat="server" Text="Support SMS in other language" />
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-12">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="MessageLabel" runat="server" Text="Message" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="MessageTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="MultilineTextBox" runat="server" MaxLength="1000"
                                                    TextMode="MultiLine" OnTextChanged="MessageTextBox_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>
                                                    <asp:Label ID="ForMessageLabel" runat="server" Text="Number Of Message :"></asp:Label>
                                                    <asp:Label ID="NumberOfMessageLabel" runat="server" Font-Bold="true"></asp:Label>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                    <asp:Panel ID="Panel2" runat="Server">
                                        <div class="contentHolder">
                                            <div class="outerBox pTop15 col-md-12">
                                                <div class="fLeft pRight5">
                                                    <br />
                                                    <asp:CheckBox ID="DivisionCheckBox" runat="server" Text="Classwise / Divisionwise / Studentwise"
                                                        AutoPostBack="true" OnCheckedChanged="DivisionCheckBox_CheckedChanged" />
                                                    <br />
                                                </div>
                                            </div>

                                            <div id="DivisionDiv" class="col-md-12" runat="server" visible="false">
                                                <table style="width: 100%">
                                                    <tr>
                                                        <td style="width: 50%; vertical-align: top">
                                                            <div class="outerBox11 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="outerBox11 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()"
                                                                        AutoPostBack="true" OnSelectedIndexChanged="DivisionDropDownList_OnSelectedIndexChanged">
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>

                                                            <div id="Div1" class="himssuHeader6WireBox col-md-12" runat="server"
                                                                visible="false">
                                                                <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv" runat="server" visible="True">
                                                                    <div class="leftdiv">
                                                                    </div>
                                                                    <div class="himsBoxTitle">
                                                                        <div class="gridHeaderText">
                                                                            <header>
                                                                                <asp:Label ID="GridViewLabel" Text="Student List" runat="server" />
                                                                            </header>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="himsBoxContent card-body">
                                                                    <asp:GridView ID="AlertGridView" runat="server" class="himssuHeader7WireBox col-md-12 table-responsive" AutoGenerateColumns="False"
                                                                        EmptyDataText="No Records Found !!" CssClass="table table-striped table-bordered"
                                                                        AllowPaging="false" ShowHeader="true" DataKeyNames="Id">
                                                                        <Columns>
                                                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Center">
                                                                                <HeaderTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="HeaderSelectCheckBox" onclick="CheckAll(this);" runat="server" />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </HeaderTemplate>
                                                                                <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                                                <ItemTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="SelectCheckBox" runat="server" />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:BoundField DataField="RollNo" HeaderText="Roll No" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                            <asp:BoundField DataField="Title" HeaderText="Name" ItemStyle-Width="80%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        </Columns>
                                                                        <PagerSettings Visible="False" />
                                                                    </asp:GridView>
                                                                </div>
                                                            </div>
                                                        </td>
                                                        <td style="width: 50%; vertical-align: top" runat="server" visible="false">
                                                            <div class="outerBox pTop5 col-md-3" style="margin-bottom: 10px">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="DepartmentLabel" runat="server" Text="Department"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:DropDownList runat="server" ID="DepartmentDropDownList" SkinID="CustomWidthDropDownList"
                                                                        CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                        AutoPostBack="true" OnSelectedIndexChanged="DepartmentDropDownList_OnSelectedIndexChanged">
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>

                                                            <div id="Div11" class="himssuHeader6WireBox col-md-3" runat="server"
                                                                visible="false">
                                                                <div class="himsBoxHeader" id="GridViewPagerDiv11" runat="server" visible="True">
                                                                    <div class="leftdiv">
                                                                    </div>
                                                                    <div class="himsBoxTitle">
                                                                        <div class="gridHeaderText">
                                                                            <header>
                                                                                <i class="fas fa-list-ul"></i>
                                                                                <asp:Label ID="GridViewLabel11" Text="Employee List" runat="server" />
                                                                            </header>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="himsBoxContent card-body">
                                                                    <asp:GridView ID="AlertGridView11" runat="server" class="himssuHeader7WireBox col-md-12 table-responsive" AutoGenerateColumns="False"
                                                                        EmptyDataText="No Records Found !!" CssClass="table table-striped table-bordered"
                                                                        AllowPaging="false" ShowHeader="true" DataKeyNames="Id">
                                                                        <Columns>
                                                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Center">
                                                                                <HeaderTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="HeaderSelectCheckBox" onclick="CheckAll(this);" runat="server" />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </HeaderTemplate>
                                                                                <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                                                <ItemTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="SelectCheckBox" runat="server" />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:BoundField DataField="Title" HeaderText="Name" ItemStyle-Width="95%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        </Columns>
                                                                        <PagerSettings Visible="False" />
                                                                    </asp:GridView>
                                                                </div>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>

                                            <div class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                                <div class="fLeft pRight5">
                                                    <asp:CheckBox ID="RollNoCheckBox" runat="server" Text="RollNowise" AutoPostBack="true"
                                                        OnCheckedChanged="RollNoCheckBox_CheckedChanged" />
                                                </div>
                                            </div>

                                            <div id="RollNoDiv" runat="server" visible="false">
                                                <div class="outerBox pTop5 col-md-3" style="width: 100%">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="RollNoNoteLabel" runat="server" Text="<B> Note : </B> Add Roll No with . Dot seperation (Eg. 2.5.10) OR , Comma seperation (Eg. 2,5,10)"></asp:Label>
                                                    </div>
                                                </div>
                                                <div class="fRight" style="margin-top: -30px; margin-right: 10px">
                                                    <asp:TextBox ID="ApplyAllTextBox" runat="server" SkinID="CustomWidthTextBox"></asp:TextBox>
                                                    <asp:Button ID="ApplyAllButton" runat="server" OnClick="ApplyAllButton_Click"
                                                        Text="Apply All" SkinID="CustomWidthButton" CssClass="btn btn-assign" />
                                                </div>

                                                <div id="GridViewRollNoDiv" class="himssuHeader7WireBox col-md-12"
                                                    runat="server" style="width: 100%; height: 100%">
                                                    <div class="himsBoxContent card-body">
                                                        <asp:GridView ID="StudentListGridView" runat="server" class="himssuHeader7WireBox col-md-12 table-responsive" AutoGenerateColumns="False"
                                                            EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="true" DataKeyNames="DivisionId"
                                                            CssClass="table table-striped table-bordered" OnRowDataBound="StudentListGridView_RowDataBound">
                                                            <Columns>
                                                                <asp:TemplateField HeaderText="Class" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label runat="server" ID="ClassDivisionLabel"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Roll No" ItemStyle-Width="60%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox runat="server" ID="RollNoTextBox" SkinID="CustomWidthTextBox" Width="250px"></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                                <div class="fLeft pRight5">
                                                    <asp:CheckBox ID="CodeCheckBox" runat="server" Text="IdNowise" AutoPostBack="true"
                                                        OnCheckedChanged="CodeCheckBox_CheckedChanged" />
                                                </div>
                                            </div>

                                            <div id="CodeDiv" runat="server" visible="false">
                                                <div class="outerBox col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="CodeLabel" runat="server" Text="Ids No"></asp:Label>
                                                        <asp:Label ID="CodeNoteLabel" runat="server" Text=" - <B> Note : </B> Add Roll No with . Dot seperation (Eg. 2.5.10) OR , Comma seperation (Eg. 2,5,10)"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5" style="width: 100%">
                                                        <asp:TextBox ID="CodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            SkinID="MultilineTextBox" runat="server" TextMode="MultiLine"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                                <div class="fLeft pRight5">
                                                    <asp:CheckBox ID="AllCheckBox" runat="server" Text="All" AutoPostBack="true" OnCheckedChanged="AllCheckBox_CheckedChanged" />
                                                </div>
                                            </div>

                                            <div id="AllDiv" runat="server" visible="false">
                                                <div class="col-md-12">
                                                    <div class="alert alert-info">
                                                        <asp:Label ID="NoteLabel1" runat="server" Text="Send SMS Only Current Org Group and Active Batch."></asp:Label><br />
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="fLeft pRight5">
                                                        <asp:CheckBox ID="StudentCheckBox" runat="server" Text="All Student in Select Organization" />
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="fLeft pRight5">
                                                        <asp:CheckBox ID="EmployeeCheckBox" runat="server" Text=" All Employee in Select Organization" />
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="fLeft pRight5">
                                                        <asp:CheckBox ID="OrganizationCheckBox" Text="Select All Organization" runat="server"
                                                            AutoPostBack="True" OnCheckedChanged="OrganizationCheckBox_CheckedChanged" />
                                                    </div>
                                                    <div class="fLeft pRight5" style="overflow: auto; height: 100px; width: 150px; border-color: Silver; border-width: thin; border-style: ridge">
                                                        <asp:CheckBoxList ID="OrganizationCheckBoxList" runat="server">
                                                        </asp:CheckBoxList>
                                                    </div>
                                                </div>
                                            </div>

                                        </div>
                                    </asp:Panel>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>
            </div>
            </div>

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