<%@ control language="VB" autoeventwireup="false" inherits="RCC_O365_CC_O365Resources, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>


<div id="Tbl_Listing" runat="server" width="100%" class="col-xs-12">
    <h4>
        <asp:Literal ID="Ltrl_LimitsHeading" runat="server" Text="<%$ Resources:Content,GN0000112 %>"></asp:Literal>
    </h4>


    <hr />

    <div id="TR_LinkedWithLocalOrg" runat="server" visible="true">
        <div class="col-xs-9 col-sm-3 row-label">
            <asp:Literal ID="Literal24" runat="server" EnableViewState="false" Text='<%$ Resources:Content, strLinkedwithlocalOrganization %>' />:
        </div>
        <div class="col-xs-3 col-sm-9">
            <asp:Literal ID="ltrlinkwithlocalOrg" runat="server" Text="<%$ Resources:Content,Yes %>"></asp:Literal>
        </div>
    </div>
    <div id="TR_AllowToManageTenant" runat="server" visible="true">
        <div class="col-xs-9 col-sm-3 row-label">
            <asp:Literal ID="Ltrl_AllowToManageTenant" runat="server" EnableViewState="false" Text='<%$ Resources:Content, ManageTenantViaPanel %>' />:
        </div>
        <div class="col-xs-3 col-sm-9">
            <asp:Literal ID="Ltrl_AllowToManageTenantVal" runat="server" Text="<%$ Resources:Content,Yes %>"></asp:Literal>
        </div>
    </div>
    <div id="TR_AzureADSyncEnabled" runat="server" visible="true">
        <div class="col-xs-9 col-sm-3 row-label">
            <asp:Literal ID="Ltrl_AzureADSyncEnabledTitle" runat="server" Text="<%$ Resources:Content,StrAzureADSyncEnabled %>"></asp:Literal>:
        </div>
        <div class="col-xs-3 col-sm-9">
            <asp:Literal ID="Ltrl_AzureADSncVal" runat="server"></asp:Literal>
        </div>
    </div>
    <div id="TR_ExchangeHybridModeEnabled" runat="server" visible="true">
        <div class="col-xs-9 col-sm-3 row-label">
            <asp:Literal ID="Ltrl_ExchangeHybridModeTitle" runat="server" Text="<%$ Resources:Content,StrExchangeHybridModeEnabled %>"></asp:Literal>:
        </div>
        <div class="col-xs-3 col-sm-9">
            <asp:Literal ID="Ltrl_ExchangeHybridModeVal" runat="server"></asp:Literal>
        </div>
    </div>
    <div class="col-xs-12">
        <table class="table table-bordered table-hover table-responsive table-striped">
            <tbody>

                <tr class="hide">
                    <td class="Heading" colspan="5">
                        <asp:Literal
                            ID="Literal2" runat="server" Text='<%$ Resources:Content,GN0000112%>' EnableViewState="false" />
                    </td>
                </tr>
                <tr>
                    <td class="col-sm-4 col-xs-12 row-label">
                        <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,GN0000199%>" EnableViewState="false" />
                    </td>
                    <td class="col-sm-2 col-xs-12 row-label">
                        <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,DGN1110615%>" EnableViewState="false" />
                    </td>
                    <td class="col-sm-2 col-xs-12 row-label">
                        <asp:Literal ID="Literal15" runat="server" Text="<%$ Resources:Content,String346%>" EnableViewState="false" />
                    </td>
                    <td class="col-sm-2 col-xs-12 row-label">
                        <asp:Literal ID="Literal113" runat="server" Text="<%$ Resources:Content,DGN1110616%>" EnableViewState="false" />
                    </td>
                    <td class="col-sm-2 col-xs-12 row-label">
                        <asp:Literal ID="Literal110" runat="server" Text="<%$ Resources:Content,String347%>" EnableViewState="false" />
                    </td>
                </tr>
                <%--<tr>
                    <td>
                        <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content,strNumberofDomainsAllowed%>" EnableViewState="false" />:
                    </td>
                    <td id="Td_Domains" runat="server"></td>
                    <td id="Td_Domains_NA" runat="server"></td>
                    <td id="Td_Domains_Used" runat="server"></td>
                    <td id="Td_Domains_Rem" runat="server"></td>
                </tr>--%>
                <tr>
                    <td>
                        <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,strNumberofUsersAllowed%>" EnableViewState="false" />:
                    </td>
                    <td id="Td_Users" runat="server"></td>
                    <td id="Td_Users_NA" runat="server"></td>
                    <td id="Td_Users_Used" runat="server"></td>
                    <td id="Td_Users_Rem" runat="server"></td>
                </tr>
                <tr>
                    <td>
                        <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,NoOfResourceUser%>" EnableViewState="false" />:
                    </td>
                    <td id="Td_ResourceUser" runat="server"></td>
                    <td id="Td_ResourceUser_NA" runat="server"></td>
                    <td id="Td_ResourceUser_Used" runat="server"></td>
                    <td id="Td_ResourceUser_Rem" runat="server"></td>
                </tr>
                 <tr>
                    <td>
                        <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content,NoOfPoliciesForResources%>" EnableViewState="false" />:
                    </td>
                    <td id="Td_ResourcePolicies" runat="server"></td>
                    <td id="Td_ResourcePolicies_NA" runat="server"></td>
                    <td id="Td_ResourcePolicies_Used" runat="server"></td>
                    <td id="Td_ResourcePolicies_Rem" runat="server"></td>
                </tr>
            </tbody>
        </table>
    </div>
</div>


<div class="col-xs-12" id="Tbl_Edit" runat="server">
    <div class="card" id="Td_SP2007" runat="server">
        <div class="header">
            <h3>
                <asp:Literal
                    ID="Literal16" runat="server" Text='<%$ Resources:Content,GN0000112%>' EnableViewState="false" />
            </h3>
        </div>
        <div class="body">
            <%--<div class="row">
                <div class="col-sm-3 col-xs-12 row-label">
                    <asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,strNumberofDomainsAllowed%>" EnableViewState="false" />:
                </div>
                <div class="col-sm-4 col-xs-11">
                    <div class="form-group">
                        <div class="form-line">
                            <asp:TextBox ID="TxBx_Domains" runat="server" Text="<%$ Resources:Content,GN00001032%>" MaxLength="10"></asp:TextBox>
                        </div>
                    </div>
                </div>
                <div class="col-sm-4 col-xs-1">
                    <asp:Label ID="Lbl_Domains" runat="server" ForeColor="Red" Visible="False">*</asp:Label>
                </div>
            </div>--%>
            <div class="row">
                <div class="col-sm-3 col-xs-12 row-label">
                    <asp:Literal ID="Literal17" runat="server" Text="<%$ Resources:Content,strNumberofUsersAllowed%>" EnableViewState="false" />:
                </div>
                <div class="col-sm-4 col-xs-11">
                    <div class="form-group">
                        <div class="form-line">
                            <asp:TextBox ID="TxBx_Users" runat="server" Text="<%$ Resources:Content,GN00001033%>" MaxLength="10"></asp:TextBox>
                        </div>
                    </div>

                </div>
                <div class="row col-xs-1">
                    <asp:Label ID="Lbl_Users" runat="server" ForeColor="red" Visible="false">*</asp:Label>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-3 col-xs-12 row-label">
                    <asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,strNumberOfResourceUsersAllowed%>" EnableViewState="false" />:
                </div>
                <div class="col-sm-4 col-xs-11">
                    <div class="form-group">
                        <div class="form-line">
                            <asp:TextBox ID="TxBx_ResourceUsers" runat="server" Text="0" MaxLength="10"></asp:TextBox>
                        </div>
                    </div>
                </div>
                <div class="col-sm-4 col-xs-1">
                    <asp:Label ID="Lbl_ResourceUsers" runat="server" ForeColor="Red" Visible="False">*</asp:Label>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-3 col-xs-12 row-label">
                    <asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,strNumberofresourceVoicePolicy%>" EnableViewState="false" />:
                </div>
                <div class="col-sm-4 col-xs-11">
                    <div class="form-group">
                        <div class="form-line">
                            <asp:TextBox ID="TxtNumberofresourceVoicePolicy" runat="server" Text="0" MaxLength="10"></asp:TextBox>
                        </div>
                    </div>
                </div>
                <div class="col-sm-4 col-xs-1">
                    <asp:Label ID="Label1" runat="server" ForeColor="Red" Visible="False">*</asp:Label>
                </div>
            </div>
            <div class="row" id="TR_EditAzureADSynEnabled" runat="server">
                <div class="col-sm-3 col-xs-12 row-label">
                    <asp:Literal ID="Ltrl_EditAzureADSyncEnabledTitle" runat="server" Text="<%$ Resources:Content,StrAzureADSyncEnabled%>" EnableViewState="false" />:
                </div>
                <div class="col-sm-4 col-xs-11">
                    <div class="form-group">
                        <div class="form-line">
                            <asp:DropDownList ID="Ddl_EditAzureADSyncEnabled" runat="server" onChange="AzureADSyncChanged(this);">
                                <asp:ListItem Text="<%$ Resources:Content, Yes %>" Value="1"></asp:ListItem>
                                <asp:ListItem Text="<%$ Resources:Content, No %>" Value="0"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </div>

                </div>
            </div>

            <div class="row" id="TR_EditExchangeHybridModeEnabled" runat="server">
                <div class="col-sm-3 col-xs-12 row-label">
                    <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content,StrExchangeHybridModeEnabled%>" EnableViewState="false" />:
                </div>
                <div class="col-sm-4 col-xs-11">
                    <div class="form-group">
                        <div class="form-line">
                            <asp:DropDownList ID="Ddl_EditExchangeHybridModeEnabled" runat="server">
                                <asp:ListItem Text="<%$ Resources:Content, Yes %>" Value="1"></asp:ListItem>
                                <asp:ListItem Text="<%$ Resources:Content, No %>" Value="0"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </div>

                </div>
            </div>

            <div class="row" id="Div_EditManageTenant" runat="server">
                <div class="col-sm-3 col-xs-12 row-label">
                    <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content,ManageTenantViaPanel%>" EnableViewState="false" />:
                </div>
                <div class="col-sm-4 col-xs-11">
                    <div class="form-group">
                        <div class="form-line">
                            <asp:DropDownList ID="DDL_EditManageTenant" runat="server">
                                <asp:ListItem Text="<%$ Resources:Content, Yes %>" Value="1"></asp:ListItem>
                                <asp:ListItem Text="<%$ Resources:Content, No %>" Value="0"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </div>

                </div>
            </div>

            <div class="row">
                <div class="col-xs-12">
                    <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_Update" runat="server" Text="<%$ Resources:Content,GN0000281%>" />
                    <asp:Button class="btn btn-primary waves-effect" ID="Btn_Cancel" runat="server" Text="<%$ Resources:Content,GN0000572%>" />
                </div>
            </div>
        </div>
    </div>
</div>
<script lang="javascript" type="text/javascript">
    function AzureADSyncChanged(source) {
        var exddlId = '<%= "#" + Ddl_EditExchangeHybridModeEnabled.ClientID %>';
        if ($(source).val() == 0) {
            $(exddlId).val(0);
            $(exddlId).prop("disabled", true)
        }
        else {
            $(exddlId).prop("disabled", false);
            //$(exddlId).removeAttr('disabled');
            //$(exddlId).get(0).disabled = false;
        }
        $(exddlId).selectpicker('refresh');
    }
</script>
<%--<table class="tblNewListing">
    <tr>
        <td>
            <table class="tblNewListing" width="100%" id="Tbl_O365LimitsEdit" runat="server">
                <tr>
                    <td class="Heading" colspan="2"></td>
                </tr>
                <tr>
                    <td class="shade" width="30%"></td>
                    <td width="70%"></td>
                </tr>
                <tr>
                    <td class="shade"></td>
                    <td></td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td></td>
    </tr>
</table>--%>
