<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Components_Alert_SMSConfiguration, App_Web_5ci25cp3" 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/SuperAdminScreenGroup.ascx" TagName="SuperAdminScreenGroupControl" TagPrefix="SuperAdminScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>
<%@ 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">
                <!-- ContentPlaceHolder Box Starts -->
                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <SuperAdminScreenGroup:SuperAdminScreenGroupControl EnableViewState="true" ID="SuperAdminScreenGroupControl" ScreenGroupId="153"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>

                    <div class="whiteboxpaddingleft row">
                        <div class="himssuHeader1WireBox card card-box">
                            <div class="topdisplayContainer">
                                <div class="himsBoxContent messageMessage">
                                    <div class="topdisplayContainer p-l-10">
                                        <table class="fLeft">
                                            <tr>
                                                <td>
                                                    <asp:Label ID="OrgCodeLabelL" runat="server" Text="Code :" Font-Bold="true"></asp:Label>
                                                    &nbsp;&nbsp;<asp:Label ID="OrgCodeLabelT" runat="server" Text="" SkinID="CustomWidthLabel" Width="200px"></asp:Label></td>

                                                <td>
                                                    <asp:Label ID="OrgDisplayTitleLabelL" runat="server" Text="Display Title :" Font-Bold="true"></asp:Label>
                                                    &nbsp;&nbsp;<asp:Label ID="OrgDisplayTitleLabelT" runat="server" Text="" SkinID="CustomWidthLabel" Width="500px"></asp:Label></td>
                                            </tr>
                                        </table>
                                    </div>
                                </div>
                            </div>
                            <div class="himsBoxHeader  card-head">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <i class="fas fa-envelope-open"></i>
                                        <asp:Label ID="Label1" runat="server" Text="SMS Configuration"></asp:Label>
                                    </div>
                                </div>
                                <div class="fRight display-flex padd-0 mt-27">
                                    <asp:CheckBox ID="IsAllOrgCheckBox" runat="server" Text="Applicable To All Organization" />
                                    <%--                                    <asp:Label ID="IsAllOrgLabel" runat="server" Text="Applicable To All Organization" AssociatedControlID="IsAllOrgCheckBox"></asp:Label>--%>
                                </div>
                            </div>
                            <div class="himsBoxContent card-body">
                                <asp:Panel ID="DetailPanel" runat="Server">
                                    <div class="contentHolder">
                                        <asp:Panel ID="Panel1" runat="Server">
                                            <div class="outerBox pTop5 col-md-12">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SMSURLLabel" runat="server" Text="SMS URL"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="SMSURLTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="1000"> </asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="outerBox pTop5 col-md-12">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SMSCreditURLLabel" runat="server" Text="SMS Credit URL"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="SMSCreditURLTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="1000"> </asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="LoginIdLabel" runat="server" Text="Login Id"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="LoginIdTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="50"> </asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="LoginPasswordLabel" runat="server" Text="Login Password"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="LoginPasswordTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="50" TextMode="Password"> </asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="LoginSenderIdLabel" runat="server" Text="Login Sender Id"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="LoginSenderIdTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="50"> </asp:TextBox>
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-9">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SMSXMLURLLabel" runat="server" Text="SMS XML URL"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="SMSXMLURLTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="1000"> </asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="VendorIdLabel" runat="server" Text="VendorId"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="VendorIdTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="4" Onkeydown="return isNumberKey(event)"> </asp:TextBox>
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-12">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SMSUnicodeURLLabel" runat="server" Text="SMS Unicode URL"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="SMSUnicodeURLTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="1000"> </asp:TextBox>
                                                </div>
                                            </div>
                                             <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="PEIDLabel" runat="server" Text="PEID"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="PEIDTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="server"> </asp:TextBox>
                                                </div>
                                            </div>
                                              <div class="topdisplayContainer p-l-10">
                                    <div class="card-head inner">
                                        <div class="headerText ">
                                            <header>
                                                <asp:Label ID="Label2" runat="server" Text="Voice SMS Configuration" CssClass="divcontentpagemargin"></asp:Label>
                                            </header>
                                        </div>
                                    </div>
                                </div>
                                            <div class="outerBox pTop5 col-md-12">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="VoiceSMSURLLabel" runat="server" Text="Voice SMS URL"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="VoiceSMSURLTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="1000"> </asp:TextBox>
                                                </div>
                                            </div>
                                             <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="VoiceSMSLoginIdLabel" runat="server" Text="Voice SMS Login Id"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="VoiceSMSLoginIdTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="50"> </asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="VoiceLoginSMSPasswordLabel" runat="server" Text="Voice SMS Login Password"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="VoiceLoginSMSPasswordTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="50" TextMode="Password"> </asp:TextBox>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </asp:Panel>

                                <div class="col-md-12">
                                <Alert:AlertControl ID="AlertUserControl" runat="server" Visible="true" />
                                    </div>
                                <div class="topdisplayContainer p-l-10">
                                    <div class="card-head inner">
                                        <div class="headerText ">
                                            <header>
                                                <asp:Label ID="TestLabel" runat="server" Text="Test SMS Configuration" CssClass="divcontentpagemargin"></asp:Label>
                                            </header>
                                        </div>
                                    </div>
                                </div>
                                <div class="outerBox11 pTop5 col-md-12">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="MessageLabel" runat="server" Text="Message"></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" class="col-md-12 pTop15 pb5">
                                            <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>
                                        </div>
                                    </div>
                                </div>
                                <div class="outerBox11 pTop5 col-md-12" id="SMSDiv" runat="server">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="MobileNoLabel" SkinID="CustomWidthLabel" runat="server"
                                            Text="List Of Mobile No (Example 9876543210,9123456780(Comma(,) Seperated))"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="MobileNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            Height="50px" SkinID="MultilineTextBox" runat="server" MaxLength="1000"
                                            TextMode="MultiLine"> </asp:TextBox>
                                    </div>
                                </div>
                                <div class="col-md-12 pTop5 pb5">
                                    <asp:Button ID="SendButton" OnClick="SendButton_Click" runat="server" Text="&#xf1d8; Send" CssClass=" btn btn-send fas" SkinID="0" />
                                </div>


                                <div id="Div1" class="himssuHeader1WireBox col-md-12 pTop5" runat="server"
                                    visible="false">
                                    <div id="GridViewPagerDiv" runat="server" visible="True">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                        </div>
                                    </div>
                                    <div class="himsBoxContent table-responsive">
                                        <asp:GridView ID="AlertGridView" runat="server" AutoGenerateColumns="False"
                                            CssClass="table table-striped table-bordered table-hover" EmptyDataText="No Records Found !!"
                                            AllowPaging="false" ShowHeader="true" DataKeyNames="MobileNo,EmailId">
                                            <Columns>
                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Center">
                                                    <HeaderTemplate>
                                                        <asp:CheckBox ID="HeaderSelectCheckBox" onclick="CheckAll(this);" runat="server" />
                                                    </HeaderTemplate>
                                                    <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="SelectCheckBox" runat="server" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="35%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                <asp:BoundField DataField="MobileNo" HeaderText="Mobile No" ItemStyle-Width="30%"
                                                    HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                            </Columns>
                                            <PagerSettings Visible="False" />
                                        </asp:GridView>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--  <script data-main="../../../JavaScript/rjs/sms-configuration-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/sms-configuration")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
