<%@ page language="C#" masterpagefile="~/MasterFile/TimeCheck.master" autoeventwireup="true" inherits="Masters_SMS_Configuration, App_Web_egsietkr" %>

<asp:Content ID="Content1" ContentPlaceHolderID="BodyContentPH" runat="Server">

    <script type="text/javascript">
        var EnterServiceURLName = "Enter Service URL Name";
        var EnterDestinationKey = "Enter Destination Key";
        var EnterMessageKey = "Enter Message Key";
        var EnterPhoneNumber = "Enter Phone Number";
        var Areyousuretosaverecord = "Are you sure to save record";
        function SetAlertMessages(enterServiceURLName, enterDestinationKey, enterMessageKey, enterPhoneNumber, areyousuretosaverecord) {
            EnterServiceURLName = enterServiceURLName;
            EnterDestinationKey = enterDestinationKey;
            EnterMessageKey = enterMessageKey;
            EnterPhoneNumber = enterPhoneNumber;
            Areyousuretosaverecord = areyousuretosaverecord;
        }
        function ValidateControl() {
            if (document.getElementById('ctl00_BodyContentPH_txt_Gateway').value.trim() == "") {
                alert(EnterServiceURLName);
                return false;
            }
            if (document.getElementById('ctl00_BodyContentPH_txtDesignation').value.trim() == "") {
                alert(EnterDestinationKey);
                return false;
            }
            if (document.getElementById('ctl00_BodyContentPH_txtMsgkey').value.trim() == "") {
                alert(EnterMessageKey);
                return false;
            }
            if (document.getElementById('ctl00_BodyContentPH_txtphNo').value.trim() == "") {
                alert(EnterPhoneNumber);
                return false;
            }
            return confirm(Areyousuretosaverecord);
        }
    </script>

    <div class="content-header">
        <h1>
            <asp:Label ID="lbl_Header" runat="server"></asp:Label>
        </h1>
        <asp:SiteMapPath ID="site" runat="server" CssClass="breadcrumb">
            <NodeStyle CssClass="active" />
        </asp:SiteMapPath>
    </div>
    <div class="content">
        <div class="inr-ftr">
            <div class="row">
                <div class="col-sm-12">
                    <div class="pull-right">
                        <h6>
                            <span style="color: Red">|</span><span style="padding-left: 10px; padding-right: 10px">
                                Mandatory (4 No.) </span>
                        </h6>
                    </div>
                </div>
            </div>
        </div>
        <div class="emp-filter">
            <div class="form-horizontal">
                <div class="row">
                    <div class="col-md-12">
                        <div class="row form-group">
                            <div class="col-md-3">
                                <asp:Label ID="lbl_Url" runat="server" Text="Service URL Name"></asp:Label>
                            </div>
                            <div class="col-md-7">
                                <asp:TextBox ID="txt_Gateway" runat="server" CssClass="form-control man-dat"
                                    TextMode="MultiLine" onkeyPress="return acceptChars_MaxLength(event,this,10,MaxLength,MaxLength);"
                                    Style="height: 70px; resize: none" ValidationGroup="vgLeaveType" Rows="5"></asp:TextBox>
                            </div>
                        </div>
                        <div class="row form-group">
                            <div class="col-md-3">
                                <asp:Label ID="lbl_Des" runat="server" Text="Destination Key"></asp:Label>
                            </div>
                            <div class="col-md-7">
                                <asp:TextBox ID="txtDesignation" runat="server" CssClass="form-control man-dat"
                                    MaxLength="100" onkeyPress="return chkMaxLen(event,this,100,MaxLength)" Style="resize: none;"
                                    ValidationGroup="vgLeaveType"></asp:TextBox>
                            </div>
                        </div>
                        <div class="row form-group">
                            <div class="col-md-3">
                                <asp:Label ID="lblmsgKey" runat="server" Text="Message Key"></asp:Label>
                            </div>
                            <div class="col-md-7">
                                <asp:TextBox ID="txtMsgkey" runat="server" CssClass="form-control man-dat"
                                    MaxLength="100" onkeyPress="return chkMaxLen(event,this,100,MaxLength)" Style="resize: none;"
                                    ValidationGroup="vgLeaveType"></asp:TextBox>
                            </div>
                        </div>
                        <div class="row form-group">
                            <div class="col-md-3">
                                <asp:Label ID="lblphNO" runat="server" Text="Phone Number"></asp:Label>
                            </div>
                            <div class="col-md-7">
                                <asp:TextBox onpaste="return true" ID="txtphNo" runat="server" CssClass="form-control man-dat"
                                    MaxLength="20" onkeyPress="return chkMaxLen(event,this,20,MaxLength)" Style="resize: none;"
                                    ValidationGroup="vgLeaveType"></asp:TextBox>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-5">
                            </div>
                            <div class="col-md-5" align="right">
                                <asp:LinkButton ID="btn_save" CssClass="btn save-btn fa-floppy-o" runat="server"
                                    OnClick="btn_save_Click" ValidationGroup="vgLeaveType"
                                    OnClientClick="return ValidateControl();" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
