<%@ Page Title="" Language="C#" MasterPageFile="~/Application.Master" AutoEventWireup="true" CodeBehind="ApplicationSetup.aspx.cs" Inherits="ICDAS_3_0_Web_App.ICDAS_3_0.Administrator.ApplicationSetup" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <%@ Register Src="~/User_Controls/ucSearchGrid.ascx" TagPrefix="ucSearchGrid" TagName="ucSearchGrid" %>
    <%@ Register Src="~/User_Controls/ucToolBar.ascx" TagPrefix="ucToolBar" TagName="ucToolBar" %>
    <%@ Register Src="~/User_Controls/ucDropDown.ascx" TagPrefix="ucDropDown" TagName="ucDropDown" %>

    <style type="text/css">
        body {
            margin: 0;
            padding: 0;
            font-family: Arial;
        }

        .loadingmodal {
            position: fixed;
            z-index: 999 !important;
            height: 100%;
            width: 100%;
            top: 0;
            background-color: white;
            filter: alpha(opacity=60);
            opacity: 0.8;
            -moz-opacity: 1;
        }

        .loadingcenter {
            z-index: 1000 !important;
            width: 200px;
            height: 100px;
            position: absolute;
            left: 45%;
            top: 60%;
            margin-left: -150px;
            margin-top: -150px;
            opacity: 1;
            /*-moz-opacity: 1;*/
            background: url("Images/loading.gif") no-repeat;
        }
    </style>

</asp:Content>
<asp:Content ID="cotMain" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="upnlwzApplicationSetup">
        <ProgressTemplate>
            <div class="loadingmodal">
                <div class="loadingcenter">
                </div>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="upnlwzApplicationSetup" UpdateMode="Always" runat="server">
        <ContentTemplate>
            <div class="row">
                <div class="col-md-12 col-sm-12 col-xs-12">
                    <div class="x_panel">
                        <div class="x_content">
                            <asp:HiddenField ID="hdnRecordId" Value="1" runat="server" />
                            <asp:HiddenField ID="hdnRecordIds" Value="" runat="server" />
                            <asp:HiddenField ID="hdnRowIndex" Value="0" runat="server" />
                            <asp:HiddenField ID="hdnAttachFileValue" runat="server" Value="" />
                            <asp:HiddenField ID="hdnAttachPostedFile" runat="server" Value="" />
                            <asp:HiddenField ID="hdnBackupTime" runat="server" Value="" />
                            <asp:HiddenField ID="hdnTestEmailTime" runat="server" Value="" />
                            <asp:HiddenField ID="hdnTestSMSTime" runat="server" Value="" />
                            <asp:HiddenField ID="hdnMKTTime" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnMovingMKTTime" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnSMSSystem" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnSynchRTCTime" runat="server" Value="" />
                            <asp:HiddenField ID="hdnBioSynchRTCTime" runat="server" Value="" />
                            <div class="x_title">
                                <h4>
                                    <asp:Label ID="lblFormTitle" runat="server"></asp:Label></h4>
                                <div class="clearfix"></div>
                            </div>
                            <div class="row">
                                <div class="col-xs-12 col-sm-12 col-lg-12">
                                    <div class="input-group">
                                        <span class="input-group-addon">Backup Local Path*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                        <asp:TextBox ID="txtBackupLocalPath" MaxLength="100" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                            placeholder="Local Backup" required onkeypress="return blockSpecialChar(event)" />
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-xs-12 col-sm-12 col-lg-12">
                                    <div class="input-group">
                                        <span class="input-group-addon">Backup Remote Path*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                        <asp:TextBox ID="txtBackupRemotePath" MaxLength="100" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                            placeholder="Remote Backup" required onkeypress="return blockSpecialChar(event)" />
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-xs-12 col-sm-12 col-lg-12">
                                    <div class="input-group">
                                        <span class="input-group-addon">Restore History DB Path*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                        <asp:TextBox ID="txtRestoreHistoryDBPath" MaxLength="100" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                            placeholder="Restore History DB Path" required onkeypress="return blockSpecialChar(event)" />
                                    </div>
                                </div>
                            </div>


                            <div class="row">
                                <div class="col-xs-12 col-sm-12 col-lg-5">
                                    <div class="input-group">
                                        <span class="input-group-addon">Report Date/Time Stamp*&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                        <asp:RadioButtonList ID="rblReportDisplayDateTime" runat="server" CssClass="form-control" RepeatDirection="Horizontal">
                                            <asp:ListItem Value="0" Selected="True" style="margin-left: 10px">YES</asp:ListItem>
                                            <asp:ListItem Value="1" style="margin-left: 10px">NO</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </div>
                                </div>
                                <div class="col-xs-12 col-sm-12 col-lg-6"></div>
                            </div>

                            <div class="row">
                                <div class="col-xs-12 col-sm-12 col-lg-5">
                                    <div class="input-group">
                                        <span class="input-group-addon">Password Change*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                        <asp:TextBox ID="txtPasswordChange" runat="server" class="form-control text-right" AutoCompleteType="Disabled" autocomplete="off"
                                            onKeyDown="maxLengthCheck(this,3);" type="number" Max="365" min="1" required />
                                    </div>
                                </div>
                                <div class="col-xs-12 col-sm-12 col-lg-6">
                                    (1-365 days)
                                </div>
                            </div>

                            <div class="row" style="display: none;">
                                <div class="col-xs-12 col-sm-12 col-lg-5">
                                    <div class="input-group">
                                        <span class="input-group-addon">System Auto Logout Time*</span>
                                        <asp:DropDownList ID="optSystemAutoLogoutTime" runat="server" class="form-control">
                                            <asp:ListItem Text="01" Value="1" />
                                            <asp:ListItem Text="02" Value="2" />
                                            <asp:ListItem Text="03" Value="3" />
                                            <asp:ListItem Text="04" Value="4" />
                                            <asp:ListItem Text="05" Value="5" />
                                            <asp:ListItem Text="10" Value="10" Selected="True" />
                                            <asp:ListItem Text="15" Value="15" />
                                            <asp:ListItem Text="20" Value="20" />
                                            <asp:ListItem Text="25" Value="25" />
                                            <asp:ListItem Text="30" Value="30" />
                                            <asp:ListItem Text="35" Value="35" />
                                            <asp:ListItem Text="40" Value="40" />
                                            <asp:ListItem Text="45" Value="45" />
                                            <asp:ListItem Text="50" Value="50" />
                                            <asp:ListItem Text="55" Value="55" />
                                            <asp:ListItem Text="60" Value="60" />
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="col-xs-12 col-sm-12 col-lg-6">
                                    (Minutes)
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-xs-12 col-sm-12 col-lg-5">
                                    <div class="input-group">
                                        <span class="input-group-addon">User Access Lock Count*&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                        <asp:DropDownList ID="optUserLockCount" runat="server" class="form-control">
                                            <asp:ListItem Text="03" Value="3" />
                                            <asp:ListItem Text="04" Value="4" />
                                            <asp:ListItem Text="05" Value="5" Selected="True" />
                                            <asp:ListItem Text="06" Value="6" />
                                            <asp:ListItem Text="07" Value="7" />
                                            <asp:ListItem Text="08" Value="8" />
                                            <asp:ListItem Text="09" Value="9" />
                                            <asp:ListItem Text="10" Value="10" />
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="col-xs-12 col-sm-12 col-lg-6">
                                    (No.of Attemps)
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-xs-12 col-sm-12 col-lg-6">
                                    <div class="row">
                                        <div class=" col-lg-7">
                                            <div class="input-group">
                                                <span class="input-group-addon">Backup Time*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                <asp:DropDownList ID="optBackupHours" runat="server" class="form-control text-right">
                                                    <asp:ListItem Text="00" Value="00" Selected="True" />
                                                    <asp:ListItem Text="01" Value="01" />
                                                    <asp:ListItem Text="02" Value="02" />
                                                    <asp:ListItem Text="03" Value="03" />
                                                    <asp:ListItem Text="04" Value="04" />
                                                    <asp:ListItem Text="05" Value="05" />
                                                    <asp:ListItem Text="06" Value="06" />
                                                    <asp:ListItem Text="07" Value="07" />
                                                    <asp:ListItem Text="08" Value="08" />
                                                    <asp:ListItem Text="09" Value="09" />
                                                    <asp:ListItem Text="10" Value="10" />
                                                    <asp:ListItem Text="11" Value="11" />
                                                    <asp:ListItem Text="12" Value="12" />
                                                    <asp:ListItem Text="13" Value="13" />
                                                    <asp:ListItem Text="14" Value="14" />
                                                    <asp:ListItem Text="15" Value="15" />
                                                    <asp:ListItem Text="16" Value="16" />
                                                    <asp:ListItem Text="17" Value="17" />
                                                    <asp:ListItem Text="18" Value="18" />
                                                    <asp:ListItem Text="19" Value="19" />
                                                    <asp:ListItem Text="20" Value="20" />
                                                    <asp:ListItem Text="21" Value="21" />
                                                    <asp:ListItem Text="22" Value="22" />
                                                    <asp:ListItem Text="23" Value="23" />
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class=" col-lg-5">
                                            <div class="input-group">
                                                <asp:DropDownList ID="optBackupMins" runat="server" class="form-control">
                                                    <asp:ListItem Text="00" Value="00" Selected="True" />
                                                    <asp:ListItem Text="01" Value="01" />
                                                    <asp:ListItem Text="02" Value="02" />
                                                    <asp:ListItem Text="03" Value="03" />
                                                    <asp:ListItem Text="04" Value="04" />
                                                    <asp:ListItem Text="05" Value="05" />
                                                    <asp:ListItem Text="06" Value="06" />
                                                    <asp:ListItem Text="07" Value="07" />
                                                    <asp:ListItem Text="08" Value="08" />
                                                    <asp:ListItem Text="09" Value="09" />
                                                    <asp:ListItem Text="10" Value="10" />
                                                    <asp:ListItem Text="11" Value="11" />
                                                    <asp:ListItem Text="12" Value="12" />
                                                    <asp:ListItem Text="13" Value="13" />
                                                    <asp:ListItem Text="14" Value="14" />
                                                    <asp:ListItem Text="15" Value="15" />
                                                    <asp:ListItem Text="16" Value="16" />
                                                    <asp:ListItem Text="17" Value="17" />
                                                    <asp:ListItem Text="18" Value="18" />
                                                    <asp:ListItem Text="19" Value="19" />
                                                    <asp:ListItem Text="20" Value="20" />
                                                    <asp:ListItem Text="21" Value="21" />
                                                    <asp:ListItem Text="22" Value="22" />
                                                    <asp:ListItem Text="23" Value="23" />
                                                    <asp:ListItem Text="24" Value="24" />
                                                    <asp:ListItem Text="25" Value="25" />
                                                    <asp:ListItem Text="26" Value="26" />
                                                    <asp:ListItem Text="27" Value="27" />
                                                    <asp:ListItem Text="28" Value="28" />
                                                    <asp:ListItem Text="29" Value="29" />
                                                    <asp:ListItem Text="30" Value="30" />
                                                    <asp:ListItem Text="31" Value="31" />
                                                    <asp:ListItem Text="32" Value="32" />
                                                    <asp:ListItem Text="33" Value="33" />
                                                    <asp:ListItem Text="34" Value="34" />
                                                    <asp:ListItem Text="35" Value="35" />
                                                    <asp:ListItem Text="36" Value="36" />
                                                    <asp:ListItem Text="37" Value="37" />
                                                    <asp:ListItem Text="38" Value="38" />
                                                    <asp:ListItem Text="39" Value="39" />
                                                    <asp:ListItem Text="40" Value="40" />
                                                    <asp:ListItem Text="41" Value="41" />
                                                    <asp:ListItem Text="42" Value="42" />
                                                    <asp:ListItem Text="43" Value="43" />
                                                    <asp:ListItem Text="44" Value="44" />
                                                    <asp:ListItem Text="45" Value="45" />
                                                    <asp:ListItem Text="46" Value="46" />
                                                    <asp:ListItem Text="47" Value="47" />
                                                    <asp:ListItem Text="48" Value="48" />
                                                    <asp:ListItem Text="49" Value="49" />
                                                    <asp:ListItem Text="50" Value="50" />
                                                    <asp:ListItem Text="51" Value="51" />
                                                    <asp:ListItem Text="52" Value="52" />
                                                    <asp:ListItem Text="53" Value="53" />
                                                    <asp:ListItem Text="54" Value="54" />
                                                    <asp:ListItem Text="55" Value="55" />
                                                    <asp:ListItem Text="56" Value="56" />
                                                    <asp:ListItem Text="57" Value="57" />
                                                    <asp:ListItem Text="58" Value="58" />
                                                    <asp:ListItem Text="59" Value="59" />
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-xs-12 col-sm-12 col-lg-6">
                                    <div class="row">
                                        <div class=" col-lg-7">
                                            <div class="input-group">
                                                <span class="input-group-addon">Synchronize RTC Time*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                <asp:DropDownList ID="ddlSynchHours" runat="server" class="form-control text-right">
                                                    <asp:ListItem Text="00" Value="00" Selected="True" />
                                                    <asp:ListItem Text="01" Value="01" />
                                                    <asp:ListItem Text="02" Value="02" />
                                                    <asp:ListItem Text="03" Value="03" />
                                                    <asp:ListItem Text="04" Value="04" />
                                                    <asp:ListItem Text="05" Value="05" />
                                                    <asp:ListItem Text="06" Value="06" />
                                                    <asp:ListItem Text="07" Value="07" />
                                                    <asp:ListItem Text="08" Value="08" />
                                                    <asp:ListItem Text="09" Value="09" />
                                                    <asp:ListItem Text="10" Value="10" />
                                                    <asp:ListItem Text="11" Value="11" />
                                                    <asp:ListItem Text="12" Value="12" />
                                                    <asp:ListItem Text="13" Value="13" />
                                                    <asp:ListItem Text="14" Value="14" />
                                                    <asp:ListItem Text="15" Value="15" />
                                                    <asp:ListItem Text="16" Value="16" />
                                                    <asp:ListItem Text="17" Value="17" />
                                                    <asp:ListItem Text="18" Value="18" />
                                                    <asp:ListItem Text="19" Value="19" />
                                                    <asp:ListItem Text="20" Value="20" />
                                                    <asp:ListItem Text="21" Value="21" />
                                                    <asp:ListItem Text="22" Value="22" />
                                                    <asp:ListItem Text="23" Value="23" />
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class=" col-lg-5">
                                            <div class="input-group">
                                                <asp:DropDownList ID="ddlSynchMin" runat="server" class="form-control">
                                                    <asp:ListItem Text="00" Value="00" Selected="True" />
                                                    <asp:ListItem Text="01" Value="01" />
                                                    <asp:ListItem Text="02" Value="02" />
                                                    <asp:ListItem Text="03" Value="03" />
                                                    <asp:ListItem Text="04" Value="04" />
                                                    <asp:ListItem Text="05" Value="05" />
                                                    <asp:ListItem Text="06" Value="06" />
                                                    <asp:ListItem Text="07" Value="07" />
                                                    <asp:ListItem Text="08" Value="08" />
                                                    <asp:ListItem Text="09" Value="09" />
                                                    <asp:ListItem Text="10" Value="10" />
                                                    <asp:ListItem Text="11" Value="11" />
                                                    <asp:ListItem Text="12" Value="12" />
                                                    <asp:ListItem Text="13" Value="13" />
                                                    <asp:ListItem Text="14" Value="14" />
                                                    <asp:ListItem Text="15" Value="15" />
                                                    <asp:ListItem Text="16" Value="16" />
                                                    <asp:ListItem Text="17" Value="17" />
                                                    <asp:ListItem Text="18" Value="18" />
                                                    <asp:ListItem Text="19" Value="19" />
                                                    <asp:ListItem Text="20" Value="20" />
                                                    <asp:ListItem Text="21" Value="21" />
                                                    <asp:ListItem Text="22" Value="22" />
                                                    <asp:ListItem Text="23" Value="23" />
                                                    <asp:ListItem Text="24" Value="24" />
                                                    <asp:ListItem Text="25" Value="25" />
                                                    <asp:ListItem Text="26" Value="26" />
                                                    <asp:ListItem Text="27" Value="27" />
                                                    <asp:ListItem Text="28" Value="28" />
                                                    <asp:ListItem Text="29" Value="29" />
                                                    <asp:ListItem Text="30" Value="30" />
                                                    <asp:ListItem Text="31" Value="31" />
                                                    <asp:ListItem Text="32" Value="32" />
                                                    <asp:ListItem Text="33" Value="33" />
                                                    <asp:ListItem Text="34" Value="34" />
                                                    <asp:ListItem Text="35" Value="35" />
                                                    <asp:ListItem Text="36" Value="36" />
                                                    <asp:ListItem Text="37" Value="37" />
                                                    <asp:ListItem Text="38" Value="38" />
                                                    <asp:ListItem Text="39" Value="39" />
                                                    <asp:ListItem Text="40" Value="40" />
                                                    <asp:ListItem Text="41" Value="41" />
                                                    <asp:ListItem Text="42" Value="42" />
                                                    <asp:ListItem Text="43" Value="43" />
                                                    <asp:ListItem Text="44" Value="44" />
                                                    <asp:ListItem Text="45" Value="45" />
                                                    <asp:ListItem Text="46" Value="46" />
                                                    <asp:ListItem Text="47" Value="47" />
                                                    <asp:ListItem Text="48" Value="48" />
                                                    <asp:ListItem Text="49" Value="49" />
                                                    <asp:ListItem Text="50" Value="50" />
                                                    <asp:ListItem Text="51" Value="51" />
                                                    <asp:ListItem Text="52" Value="52" />
                                                    <asp:ListItem Text="53" Value="53" />
                                                    <asp:ListItem Text="54" Value="54" />
                                                    <asp:ListItem Text="55" Value="55" />
                                                    <asp:ListItem Text="56" Value="56" />
                                                    <asp:ListItem Text="57" Value="57" />
                                                    <asp:ListItem Text="58" Value="58" />
                                                    <asp:ListItem Text="59" Value="59" />
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-xs-12 col-sm-12 col-lg-6">
                                    <div class="row">
                                        <div class=" col-lg-7">
                                            <div class="input-group">
                                                <span class="input-group-addon">Biometric Synch. RTC Time&nbsp;</span>
                                                <asp:DropDownList ID="ddlBiometricSynchHours" runat="server" class="form-control text-right">
                                                    <asp:ListItem Text="00" Value="00" Selected="True" />
                                                    <asp:ListItem Text="01" Value="01" />
                                                    <asp:ListItem Text="02" Value="02" />
                                                    <asp:ListItem Text="03" Value="03" />
                                                    <asp:ListItem Text="04" Value="04" />
                                                    <asp:ListItem Text="05" Value="05" />
                                                    <asp:ListItem Text="06" Value="06" />
                                                    <asp:ListItem Text="07" Value="07" />
                                                    <asp:ListItem Text="08" Value="08" />
                                                    <asp:ListItem Text="09" Value="09" />
                                                    <asp:ListItem Text="10" Value="10" />
                                                    <asp:ListItem Text="11" Value="11" />
                                                    <asp:ListItem Text="12" Value="12" />
                                                    <asp:ListItem Text="13" Value="13" />
                                                    <asp:ListItem Text="14" Value="14" />
                                                    <asp:ListItem Text="15" Value="15" />
                                                    <asp:ListItem Text="16" Value="16" />
                                                    <asp:ListItem Text="17" Value="17" />
                                                    <asp:ListItem Text="18" Value="18" />
                                                    <asp:ListItem Text="19" Value="19" />
                                                    <asp:ListItem Text="20" Value="20" />
                                                    <asp:ListItem Text="21" Value="21" />
                                                    <asp:ListItem Text="22" Value="22" />
                                                    <asp:ListItem Text="23" Value="23" />
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class=" col-lg-5">
                                            <div class="input-group">
                                                <asp:DropDownList ID="ddlBiometricSynchMin" runat="server" class="form-control">
                                                    <asp:ListItem Text="00" Value="00" Selected="True" />
                                                    <asp:ListItem Text="01" Value="01" />
                                                    <asp:ListItem Text="02" Value="02" />
                                                    <asp:ListItem Text="03" Value="03" />
                                                    <asp:ListItem Text="04" Value="04" />
                                                    <asp:ListItem Text="05" Value="05" />
                                                    <asp:ListItem Text="06" Value="06" />
                                                    <asp:ListItem Text="07" Value="07" />
                                                    <asp:ListItem Text="08" Value="08" />
                                                    <asp:ListItem Text="09" Value="09" />
                                                    <asp:ListItem Text="10" Value="10" />
                                                    <asp:ListItem Text="11" Value="11" />
                                                    <asp:ListItem Text="12" Value="12" />
                                                    <asp:ListItem Text="13" Value="13" />
                                                    <asp:ListItem Text="14" Value="14" />
                                                    <asp:ListItem Text="15" Value="15" />
                                                    <asp:ListItem Text="16" Value="16" />
                                                    <asp:ListItem Text="17" Value="17" />
                                                    <asp:ListItem Text="18" Value="18" />
                                                    <asp:ListItem Text="19" Value="19" />
                                                    <asp:ListItem Text="20" Value="20" />
                                                    <asp:ListItem Text="21" Value="21" />
                                                    <asp:ListItem Text="22" Value="22" />
                                                    <asp:ListItem Text="23" Value="23" />
                                                    <asp:ListItem Text="24" Value="24" />
                                                    <asp:ListItem Text="25" Value="25" />
                                                    <asp:ListItem Text="26" Value="26" />
                                                    <asp:ListItem Text="27" Value="27" />
                                                    <asp:ListItem Text="28" Value="28" />
                                                    <asp:ListItem Text="29" Value="29" />
                                                    <asp:ListItem Text="30" Value="30" />
                                                    <asp:ListItem Text="31" Value="31" />
                                                    <asp:ListItem Text="32" Value="32" />
                                                    <asp:ListItem Text="33" Value="33" />
                                                    <asp:ListItem Text="34" Value="34" />
                                                    <asp:ListItem Text="35" Value="35" />
                                                    <asp:ListItem Text="36" Value="36" />
                                                    <asp:ListItem Text="37" Value="37" />
                                                    <asp:ListItem Text="38" Value="38" />
                                                    <asp:ListItem Text="39" Value="39" />
                                                    <asp:ListItem Text="40" Value="40" />
                                                    <asp:ListItem Text="41" Value="41" />
                                                    <asp:ListItem Text="42" Value="42" />
                                                    <asp:ListItem Text="43" Value="43" />
                                                    <asp:ListItem Text="44" Value="44" />
                                                    <asp:ListItem Text="45" Value="45" />
                                                    <asp:ListItem Text="46" Value="46" />
                                                    <asp:ListItem Text="47" Value="47" />
                                                    <asp:ListItem Text="48" Value="48" />
                                                    <asp:ListItem Text="49" Value="49" />
                                                    <asp:ListItem Text="50" Value="50" />
                                                    <asp:ListItem Text="51" Value="51" />
                                                    <asp:ListItem Text="52" Value="52" />
                                                    <asp:ListItem Text="53" Value="53" />
                                                    <asp:ListItem Text="54" Value="54" />
                                                    <asp:ListItem Text="55" Value="55" />
                                                    <asp:ListItem Text="56" Value="56" />
                                                    <asp:ListItem Text="57" Value="57" />
                                                    <asp:ListItem Text="58" Value="58" />
                                                    <asp:ListItem Text="59" Value="59" />
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-xs-12 col-sm-12 col-lg-5">
                                    <div class="input-group col-lg-10">
                                        <span class="input-group-addon">Login Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                        <asp:DropDownList ID="ddlLoginType" runat="server" class="form-control" OnSelectedIndexChanged="ddlLoginType_SelectedIndexChanged" AutoPostBack="true">
                                            <asp:ListItem Text="SQL" Value="0" Selected="true" />
                                            <asp:ListItem Text="LDAP" Value="1" />
                                        </asp:DropDownList>
                                    </div>
                                </div>
                            </div>
                            <asp:Panel ID="pnlDomainInfo" runat="server" Visible="true">
                                <div class="row">
                                    <div class="col-xs-12 col-sm-12 col-lg-12">
                                        <div class="input-group">
                                            <span class="input-group-addon">Domain Information*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                            <asp:TextBox ID="txtDomainInfo" MaxLength="100" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                placeholder="Domain Information" required onkeypress="return blockSpecialChar(event)" />
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                            <div>
                                <asp:Label ID="lblEmail" runat="server" Text="EMAIL" BackColor="DarkGreen" ForeColor="White" BorderColor="LimeGreen"
                                    Font-Size="16px" Width="100%" Style="padding: 5px 10px;" Visible="true"></asp:Label>
                            </div>

                            <div class=" divider"></div>

                            <div class="row">
                                <div class="col-xs-12 col-sm-12 col-lg-6">
                                    <div class="input-group">
                                        <span class="input-group-addon">Email System&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                        <asp:RadioButtonList ID="optEmailStatus" runat="server" CssClass="form-control" RepeatDirection="Horizontal" OnSelectedIndexChanged="optEmailStatus_SelectedIndexChanged" AutoPostBack="true">
                                            <asp:ListItem Value="0" style="margin-right: 20px">Enabled</asp:ListItem>
                                            <asp:ListItem Value="1" style="margin-right: 30px">Disabled</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </div>
                                </div>
                                <div class="col-xs-12 col-sm-12 col-lg-6"></div>
                            </div>

                            <asp:Panel ID="PnlEmail" runat="server">
                                <div class="row">
                                    <div class="col-xs-12 col-sm-12 col-lg-6">
                                        <div class="input-group">
                                            <span class="input-group-addon">SMTP Authentication*</span>
                                            <asp:RadioButtonList ID="rblSMTPAuthentication" runat="server" CssClass="form-control" RepeatDirection="Horizontal">
                                                <asp:ListItem Value="0" Selected="True" style="margin-left: 10px">YES</asp:ListItem>
                                                <asp:ListItem Value="1" style="margin-left: 10px">NO</asp:ListItem>
                                            </asp:RadioButtonList>
                                        </div>
                                    </div>

                                </div>

                                <div class="row">
                                    <div class="col-xs-12 col-sm-12 col-lg-6">
                                        <div class="input-group">
                                            <span class="input-group-addon">SMTP Email*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                            <asp:TextBox ID="txtSMTPEmail" MaxLength="100" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                placeholder="SMTP Email" type="email" required onkeypress="return blockSpecialChar(event)" />
                                        </div>
                                    </div>
                                    <div class="col-xs-12 col-sm-12 col-lg-6">
                                        <div class="input-group">
                                            <span class="input-group-addon">SMTP Address*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                            <asp:TextBox ID="txtSMTPAddress" MaxLength="100" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                placeholder="SMTP Address" required onkeypress="return blockSpecialChar(event)" />
                                        </div>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-xs-12 col-sm-12 col-lg-6">
                                        <div class="input-group">
                                            <span class="input-group-addon">SMTP User Name*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                            <asp:TextBox ID="txtSMTPUserName" MaxLength="100" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                placeholder="SMTP User Name" required onkeypress="return blockSpecialChar(event)" />
                                        </div>
                                    </div>
                                    <div class="col-xs-12 col-sm-12 col-lg-6">
                                        <div class="input-group">
                                            <span class="input-group-addon">SMTP Password*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                            <asp:TextBox ID="txtSMTPPassword" TextMode="Password" MaxLength="100" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                placeholder="SMTP Password" required onkeypress="return blockSpecialChar(event)" />
                                        </div>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-xs-12 col-sm-12 col-lg-6">
                                        <div class="input-group col-lg-6">
                                            <span class="input-group-addon">SMTP Port*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                            <asp:TextBox ID="txtEmailSMTPPort" runat="server" class="form-control text-right" AutoCompleteType="Disabled" autocomplete="off"
                                                placeholder="SMTP Port" onKeyDown="maxLengthCheck(this,4);" type="number" required />
                                        </div>
                                    </div>

                                    <div class="col-xs-12 col-sm-12 col-lg-6">
                                        <div class="input-group">
                                            <span class="input-group-addon">Secure Sockets Layer(SSL)</span>
                                            <asp:RadioButtonList ID="optEmailSMTPSSL" runat="server" CssClass="form-control" RepeatDirection="Horizontal" AutoPostBack="true">
                                                <asp:ListItem Value="0" Selected="True" style="margin-left: 10px">YES</asp:ListItem>
                                                <asp:ListItem Value="1" style="margin-left: 10px">NO</asp:ListItem>
                                            </asp:RadioButtonList>
                                        </div>
                                    </div>

                                </div>

                                <div class="row">
                                    <div class="col-xs-12 col-sm-12 col-lg-6">
                                        <div class="input-group">
                                            <span class="input-group-addon">Email Signature&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                            <textarea maxlength="500" rows="4" class="form-control" runat="server" id="txtEmailSignature" autocomplete="off" placeholder="SMTP Signature" onkeypress="return blockSpecialChar(event)"></textarea>
                                        </div>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-xs-12 col-sm-12 col-lg-6">
                                        <div class="input-group">
                                            <span class="input-group-addon">Test Email Id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                            <asp:TextBox MaxLength="100" ID="txtTestEmail" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                placeholder="E.g.abc@domainname.com" type="email" onkeypress="return blockSpecialChar(event)" ></asp:TextBox>

                                        </div>
                                    </div>
                                    <div class="col-xs-12 col-sm-12 col-lg-1">
                                        <div class="input-group">
                                            <asp:ImageButton runat="server" ID="imgbtnSendEmail" ImageUrl="~/Images/emailtest.png" ToolTip="Email Test" OnClick="imgbtnSendEmail_Click" />
                                        </div>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-xs-12 col-sm-12 col-lg-6">
                                        <div class="row">
                                            <div class="col-lg-8">
                                                <div class="input-group">
                                                    <span class="input-group-addon">Test Email Time&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                    <asp:DropDownList ID="optTestEmailHours" runat="server" class="form-control">
                                                        <asp:ListItem Text="00" Value="00" Selected="True" />
                                                        <asp:ListItem Text="01" Value="01" />
                                                        <asp:ListItem Text="02" Value="02" />
                                                        <asp:ListItem Text="03" Value="03" />
                                                        <asp:ListItem Text="04" Value="04" />
                                                        <asp:ListItem Text="05" Value="05" />
                                                        <asp:ListItem Text="06" Value="06" />
                                                        <asp:ListItem Text="07" Value="07" />
                                                        <asp:ListItem Text="08" Value="08" />
                                                        <asp:ListItem Text="09" Value="09" />
                                                        <asp:ListItem Text="10" Value="10" />
                                                        <asp:ListItem Text="11" Value="11" />
                                                        <asp:ListItem Text="12" Value="12" />
                                                        <asp:ListItem Text="13" Value="13" />
                                                        <asp:ListItem Text="14" Value="14" />
                                                        <asp:ListItem Text="15" Value="15" />
                                                        <asp:ListItem Text="16" Value="16" />
                                                        <asp:ListItem Text="17" Value="17" />
                                                        <asp:ListItem Text="18" Value="18" />
                                                        <asp:ListItem Text="19" Value="19" />
                                                        <asp:ListItem Text="20" Value="20" />
                                                        <asp:ListItem Text="21" Value="21" />
                                                        <asp:ListItem Text="22" Value="22" />
                                                        <asp:ListItem Text="23" Value="23" />
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="col-lg-4">
                                                <asp:DropDownList ID="optTestEmailMins" runat="server" class="form-control">
                                                    <asp:ListItem Text="00" Value="00" Selected="True" />
                                                    <asp:ListItem Text="05" Value="10" />
                                                    <asp:ListItem Text="10" Value="10" />
                                                    <asp:ListItem Text="15" Value="15" />
                                                    <asp:ListItem Text="20" Value="20" />
                                                    <asp:ListItem Text="25" Value="25" />
                                                    <asp:ListItem Text="30" Value="30" />
                                                    <asp:ListItem Text="35" Value="35" />
                                                    <asp:ListItem Text="40" Value="40" />
                                                    <asp:ListItem Text="45" Value="45" />
                                                    <asp:ListItem Text="50" Value="50" />
                                                    <asp:ListItem Text="55" Value="55" />
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                            <div>
                                <asp:Label ID="lblsms" runat="server" Text="SMS" BackColor="DarkGreen" ForeColor="White" BorderColor="LimeGreen"
                                    Font-Size="16px" Width="100%" Style="padding: 5px 10px;" Visible="true"></asp:Label>
                            </div>
                            <div class=" divider"></div>
                            <div class="row">
                                <div class="col-xs-12 col-sm-12 col-lg-6">
                                    <div class="input-group">
                                        <span class="input-group-addon">SMS System&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                        <asp:RadioButtonList ID="optSMSStatus" runat="server" CssClass="form-control" RepeatDirection="Horizontal" OnSelectedIndexChanged="optSMSStatus_SelectedIndexChanged"
                                            AutoPostBack="true">
                                            <asp:ListItem Value="0" style="margin-left: 10px">Enabled</asp:ListItem>
                                            <asp:ListItem Value="1" style="margin-left: 10px">Disabled</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </div>
                                </div>
                                <div class="col-xs-12 col-sm-12 col-lg-6"></div>
                            </div>
                            <asp:Panel ID="PnlSMS" runat="server">
                                <div class="row">
                                    <div class="col-xs-12 col-sm-12 col-lg-4">
                                        <div class="input-group">
                                            <span class="input-group-addon">Communication Port*</span>
                                            <asp:TextBox ID="txtCommunicationPort" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                placeholder="Min 1 to Max 99" Style="text-align: right;" onKeyDown="maxLengthCheck(this,2);" type="number" max="99" step="1" min="1" required />
                                        </div>
                                    </div>

                                </div>
                                <div class="row">
                                    <div class="col-xs-12 col-sm-12 col-lg-4">
                                        <div class="input-group">
                                            <span class="input-group-addon">Parity&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                            <asp:DropDownList ID="optParity" runat="server" class="form-control">
                                                <asp:ListItem Text="Even" Value="Even" />
                                                <asp:ListItem Text="Odd" Value="Odd" />
                                                <asp:ListItem Text="None" Value="None" Selected="True" />
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12 col-sm-12 col-lg-4">
                                        <div class="input-group">
                                            <span class="input-group-addon">Baud Rate&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                            <asp:DropDownList ID="optBaudRate" runat="server" class="form-control">
                                                <asp:ListItem Text="2400" Value="2400" Selected="True" />
                                                <asp:ListItem Text="4800" Value="4800" />
                                                <asp:ListItem Text="7200" Value="7200" />
                                                <asp:ListItem Text="9600" Value="9600" />
                                                <asp:ListItem Text="14400" Value="14400" />
                                                <asp:ListItem Text="19200" Value="19200" />
                                                <asp:ListItem Text="38400" Value="38400" />
                                                <asp:ListItem Text="57600" Value="57600" />
                                                <asp:ListItem Text="115200" Value="115200" />
                                                <asp:ListItem Text="230400" Value="230400" />
                                                <asp:ListItem Text="921600" Value="921600" />
                                                <asp:ListItem Text="4680000" Value="4680000" />
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12 col-sm-12 col-lg-4">
                                        <div class="input-group">
                                            <span class="input-group-addon">Data Bits&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                            <asp:DropDownList ID="optDataBits" runat="server" class="form-control">
                                                <asp:ListItem Text="4" Value="4" Selected="True" />
                                                <asp:ListItem Text="5" Value="5" />
                                                <asp:ListItem Text="6" Value="6" />
                                                <asp:ListItem Text="7" Value="7" />
                                                <asp:ListItem Text="8" Value="8" />
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12 col-sm-12 col-lg-4">
                                        <div class="input-group">
                                            <span class="input-group-addon">Stop Bits&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                            <asp:DropDownList ID="optStopBits" runat="server" class="form-control">
                                                <asp:ListItem Text="1" Value="1" Selected="True" />
                                                <asp:ListItem Text="2" Value="2" />
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12 col-sm-12 col-lg-6">
                                        <div class="input-group">
                                            <span class="input-group-addon">Test Mobile Number&nbsp;&nbsp;&nbsp;</span>
                                            <asp:TextBox ID="txtTestMobileNumber" MaxLength="27" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                placeholder="E.g.+919811111111" />
                                            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="txtTestMobileNumber"
                                                FilterType="Custom" ValidChars="+1234567890,"></asp:FilteredTextBoxExtender>
                                        </div>
                                    </div>
                                    <div class="col-xs-12 col-sm-12 col-lg-1">
                                        <div class="input-group">
                                            <asp:ImageButton runat="server" ID="imgbtnSendSMSEmail" ImageUrl="~/Images/smstest.png" ToolTip="SMS Test" OnClick="imgbtnSendSMSEmail_Click" />
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12 col-sm-12 col-lg-6">
                                        <div class="row">
                                            <div class="col-lg-8">
                                                <div class="input-group">
                                                    <span class="input-group-addon">Test SMS Time&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                    <asp:DropDownList ID="optTestSMSTime" runat="server" class="form-control">
                                                        <asp:ListItem Text="00" Value="00" Selected="True" />
                                                        <asp:ListItem Text="01" Value="01" />
                                                        <asp:ListItem Text="02" Value="02" />
                                                        <asp:ListItem Text="03" Value="03" />
                                                        <asp:ListItem Text="04" Value="04" />
                                                        <asp:ListItem Text="05" Value="05" />
                                                        <asp:ListItem Text="06" Value="06" />
                                                        <asp:ListItem Text="07" Value="07" />
                                                        <asp:ListItem Text="08" Value="08" />
                                                        <asp:ListItem Text="09" Value="09" />
                                                        <asp:ListItem Text="10" Value="10" />
                                                        <asp:ListItem Text="11" Value="11" />
                                                        <asp:ListItem Text="12" Value="12" />
                                                        <asp:ListItem Text="13" Value="13" />
                                                        <asp:ListItem Text="14" Value="14" />
                                                        <asp:ListItem Text="15" Value="15" />
                                                        <asp:ListItem Text="16" Value="16" />
                                                        <asp:ListItem Text="17" Value="17" />
                                                        <asp:ListItem Text="18" Value="18" />
                                                        <asp:ListItem Text="19" Value="19" />
                                                        <asp:ListItem Text="20" Value="20" />
                                                        <asp:ListItem Text="21" Value="21" />
                                                        <asp:ListItem Text="22" Value="22" />
                                                        <asp:ListItem Text="23" Value="23" />
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="col-lg-4">
                                                <asp:DropDownList ID="optTestSMSMins" runat="server" class="form-control">
                                                    <asp:ListItem Text="00" Value="00" Selected="True" />
                                                    <asp:ListItem Text="05" Value="10" />
                                                    <asp:ListItem Text="10" Value="10" />
                                                    <asp:ListItem Text="15" Value="15" />
                                                    <asp:ListItem Text="20" Value="20" />
                                                    <asp:ListItem Text="25" Value="25" />
                                                    <asp:ListItem Text="30" Value="30" />
                                                    <asp:ListItem Text="35" Value="35" />
                                                    <asp:ListItem Text="40" Value="40" />
                                                    <asp:ListItem Text="45" Value="45" />
                                                    <asp:ListItem Text="50" Value="50" />
                                                    <asp:ListItem Text="55" Value="55" />
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                            <div class="text-center">
                                <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" CssClass="btn btn-primary btn-sm" ToolTip="Save" />
                            </div>
                        </div>
                    </div>
                </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

