<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="System_ConfigureModules, MachSol.MachPanel.Web" %>

<%@ Register Assembly="obout_Editor" Namespace="OboutInc.Editor" TagPrefix="obout" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>

<asp:Content ID="Content7" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <%= Resources.Content.M0141%>
                </h3>
            </div>
            <div class="body">
                <ajax:UpdatePanel ID="UP_Documents" runat="server">
                    <ContentTemplate>
                        <div id="tblModuleConfigurations" runat="server">
                            <div class="row">
                                <div class="col-xs-12">
                                    <div class="card">
                                        <div class="header">
                                            <h3>
                                                <%= Resources.Content.SMI735%>
                                            </h3>
                                        </div>
                                        <div class="body">

                                            <div class="row">

                                                <div class="col-sm-3 col-xs-12">
                                                    <asp:CheckBox ID="CB_DirectoryServices" Text="<%$ Resources:Content,USM0036%>" onchange="CheckDRSVC();" runat="server" />
                                                </div>
                                                <div class="col-sm-3 col-xs-12">
                                                    <asp:CheckBox ID="CB_ExchangeProviderEnabled" onchange="CheckDRSVC();" Text="<%$ Resources:Content,CMP00001%>"
                                                        runat="server" />
                                                </div>
                                                <div class="col-sm-3 col-xs-12">
                                                    <asp:CheckBox ID="CB_VPSProvidersEnabled" onchange="CheckDRSVC();" Text="<%$ Resources:Content,CM00001%>"
                                                        runat="server" />
                                                </div>
                                                <div class="col-sm-3 col-xs-12">
                                                    <asp:CheckBox ID="CB_EnableOffice365" Text="<%$ Resources:Content,O365Menu %>" onchange="CheckDRSVC();" runat="server" />
                                                </div>
                                                <div class="col-sm-3 col-xs-12">
                                                    <asp:CheckBox ID="CB_SharepointProviderEnabled" Text="<%$ Resources:Content,CMP00002%>"
                                                        onchange="CheckDRSVC();" runat="server" />
                                                </div>
                                                <div class="col-sm-3 col-xs-12">
                                                    <asp:CheckBox ID="CB_CRMProviderEnabled" Text="<%$ Resources:Content,CMP00004%>"
                                                        onchange="CheckDRSVC();" runat="server" />
                                                </div>
                                                <div class="col-sm-3 col-xs-12">
                                                    <asp:CheckBox ID="CB_OCSProviderEnabled" Text="<%$ Resources:Content,CMP00005%>"
                                                        onchange="CheckDRSVC();" runat="server" />
                                                </div>
                                                <div class="col-sm-3 col-xs-12">
                                                    <asp:CheckBox ID="CB_WirelessBBProviderEnabled" Text="<%$ Resources:Content,CMP00003%>"
                                                        runat="server" />
                                                </div>
                                                <div class="col-sm-3 col-xs-12">
                                                    <asp:CheckBox ID="CB_RDSHostingEnabled" Text="<%$ Resources:Content,RDSHosting%>" onchange="CheckDRSVC();" runat="server" />
                                                </div>
                                                <div class="col-sm-3 col-xs-12">
                                                    <asp:CheckBox ID="CB_WorkfolderHostingEnabled" Text=" <%$ Resources:Content,Workfolder%>"
                                                        onchange="CheckDRSVC();" runat="server" />
                                                </div>
                                                <div class="col-sm-3 col-xs-12">
                                                    <asp:CheckBox ID="CB_SIPHostingEnabled" Visible="false" Text="<%$ Resources:Content,MachCloudCommunication%>" runat="server" />
                                                </div>
                                                <div class="col-sm-3 col-xs-12">
                                                    <asp:CheckBox ID="CB_HostedVoiceHostingEnabled" Visible="false" Text="<%$ Resources:Content,strHostedVoice%>" runat="server" />
                                                </div>
                                                <div class="col-sm-3 col-xs-12">
                                                    <asp:CheckBox ID="CB_MiscEnabled" Text="<%$ Resources:Content,CM00016%>" runat="server" />
                                                </div>

                                                <div class="col-sm-3 col-xs-12">
                                                    <asp:CheckBox ID="CB_DataCenterEnabled" Text="<%$ Resources:Content,CM0008%>"
                                                        runat="server" />
                                                </div>

                                                <div class="col-sm-3 col-xs-12">
                                                    <asp:CheckBox ID="CB_WebHostingEnabled" Text="<%$ Resources:Content,CM00013%>" runat="server" />
                                                </div>
                                                <div class="col-sm-3 col-xs-12">
                                                    <asp:CheckBox ID="CB_DNSProvidersEnabled" Text="<%$ Resources:Content,CM00003%>"
                                                        runat="server" />
                                                </div>
                                                <div class="col-sm-3 col-xs-12">
                                                    <asp:CheckBox ID="CB_DomainRegistrarsEnabled" Text="<%$ Resources:Content,CM00007%>"
                                                        runat="server" />
                                                </div>
                                                <div class="col-sm-3 col-xs-12">
                                                    <asp:CheckBox ID="CB_SSLVendorsEnabled" Text="<%$ Resources:Content,CM00009%>" runat="server" />
                                                </div>

                                                <div class="col-sm-3 col-xs-12">
                                                    <asp:CheckBox ID="CB_MimeCastEnabled" Text="<%$ Resources:Content,strMimeCast%>"
                                                        runat="server" />
                                                </div>

                                                <div class="col-sm-3 col-xs-12">
                                                    <asp:CheckBox ID="CB_DedicatedHostingEnabled" Text="<%$ Resources:Content,CM00017%>"
                                                        runat="server" />
                                                </div>
                                                <div class="col-sm-3 col-xs-12" style="top: 7px;">
                                                    <%--billing setting shall change on the basis of whmcs module --%>
                                                    <asp:UpdatePanel ID="UP_billingsettings" runat="server" UpdateMode="Conditional" RenderMode="Inline">
                                                        <ContentTemplate>
                                                            <asp:CheckBox ID="CB_BillingEnabled" Text="<%$ Resources:Content,CM00011%>" runat="server" />
                                                        </ContentTemplate>
                                                        <Triggers>
                                                            <asp:AsyncPostBackTrigger ControlID="Btn_WHMCSChange" EventName="Click" />
                                                        </Triggers>
                                                    </asp:UpdatePanel>
                                                </div>
                                                <div class="col-sm-3 col-xs-12" style="top: 7px;">
                                                    <script type="text/javascript" language="javascript">
                                                        javascript: function whmcsstatechanged() { document.getElementById('<%= Btn_WHMCSChange.ClientID%>').click(); }
                                                    </script>
                                                    <asp:CheckBox ID="CB_WHMCS" Text="<%$ Resources:Content,USM0122%>" runat="server" onchange="whmcsstatechanged()" />
                                                    <asp:Button ID="Btn_WHMCSChange" runat="server" CssClass="Btn-WHMCSChange" Style="display: none" OnClick="Btn_WHMCS_Click" />
                                                </div>

                                                <div class="col-sm-3 col-xs-12">
                                                    <asp:CheckBox ID="CB_HelpDeskEnabled" Text="<%$ Resources:Content,CM00012%>" runat="server" />
                                                </div>

                                                <div class="col-sm-3 col-xs-12">
                                                    <asp:CheckBox ID="CB_OnlineHelpEnabled" Text="<%$ Resources:Content,CM00015%>" runat="server" />
                                                </div>

                                                <div class="col-sm-3 col-xs-12 col-md-2" id="TR_Network" runat="server">
                                                    <asp:CheckBox ID="CB_NetworkEyeEnabled" Text="<%$ Resources:Content,CM00010%>" runat="server" />
                                                </div>
                                                <div class="col-sm-3 col-xs-12">
                                                    <asp:CheckBox ID="CB_MigrationDirectorEnabled" Text="<%$ Resources:Content,CM00005%>"
                                                        runat="server" />
                                                </div>


                                            </div>

                                            <br />
                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <asp:CheckBox ID="CB_Cascadesettingforallresellers" Text="<%$ Resources:Content,strCascadesettingforallresellers %>" runat="server" />
                                                    <asp:Literal ID="ltrlCasecadesettingtext" runat="server" Text="<%$ Resources:Content,strstrAllCompniesSettingsWillChange %>" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-xs-12">
                                    <asp:Button ID="Btn_Save" CssClass="btn btn-primary btnAction" ValidationGroup="CustomUrl" SkinID="saveButton" runat="server" Text='<%$ Resources:Content,CMC0001 %>' />
                                    <asp:ValidationSummary HeaderText='<%$ Resources:Content, EM000001%>' ID="ValidationSummary1"
                                        ShowMessageBox="true" ShowSummary="false" ValidationGroup="CustomUrl" runat="server" />
                                </div>
                            </div>
                        </div>
                    </ContentTemplate>
                </ajax:UpdatePanel>
                <asp:ValidationSummary ID="VS" runat="server" ShowMessageBox="true" ShowSummary="false"
                    ValidationGroup="Company" HeaderText="<%$ Resources:Content,EM000001%>" />
            </div>
        </div>
    </div>
    <script type="text/javascript">

        function CheckDRSVC() {
            var DRSvc = document.getElementById("ctl00_CPH_Content_CB_DirectoryServices");
            var ExSvc = document.getElementById("ctl00_CPH_Content_CB_ExchangeProviderEnabled");
            var SPSvc = document.getElementById("ctl00_CPH_Content_CB_SharepointProviderEnabled");
            var CRMSvc = document.getElementById("ctl00_CPH_Content_CB_CRMProviderEnabled");
            var HyperVSvc = document.getElementById("ctl00_CPH_Content_CB_VPSProvidersEnabled");
            var O365Svc = document.getElementById("ctl00_CPH_Content_CB_EnableOffice365");
            var LyncSvc = document.getElementById("ctl00_CPH_Content_CB_OCSProviderEnabled");
            var RDSSvc = document.getElementById("ctl00_CPH_Content_CB_RDSHostingEnabled");
            var WFSvc = document.getElementById("ctl00_CPH_Content_CB_WorkfolderHostingEnabled");

            if (ExSvc.checked || SPSvc.checked || CRMSvc.checked || HyperVSvc.checked || O365Svc.checked || LyncSvc.checked || RDSSvc.checked || WFSvc.checked)
                DRSvc.checked = true;
        }
    </script>

</asp:Content>
