<%@ control language="VB" autoeventwireup="false" inherits="RCC_Clients_CC_AD_Resources, MachSol.MachPanel.Web" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>

<div class="row clearfix" id="Tbl_Listing" runat="server">
    <div class="col-xs-12" id="Tbl_CRMLimits" runat="server">
        <div class="card">
            <div class="header">
                <h3><%= Resources.Content.GN0000112%>  </h3>
            </div>
            <div class="body">
                <table class="table table-hover table-striped table-responsive table-bordered">
                    <tr>
                        <th class="col-xs-4">
                            <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,GN0000199%>" EnableViewState="false" />
                        </th>
                        <th class="col-xs-2">
                            <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,DGN1110615%>" EnableViewState="false" />
                        </th>
                        <th class="col-xs-2">
                            <asp:Literal ID="Literal15" runat="server" Text="<%$ Resources:Content,String346%>" EnableViewState="false" />
                        </th>
                        <th class="col-xs-2">
                            <asp:Literal ID="Literal113" runat="server" Text="<%$ Resources:Content,DGN1110616%>" EnableViewState="false" />
                        </th>
                        <th class="col-xs-2">
                            <asp:Literal ID="Literal110" runat="server" Text="<%$ Resources:Content,String347%>" EnableViewState="false" />
                        </th>
                    </tr>
                    <tr>
                        <td>
                            <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,numOfOU%>" EnableViewState="false" />:
                        </td>
                        <td id="Td_Orgs" runat="server"></td>
                        <td id="Td_Orgs_NA" runat="server"></td>
                        <td id="Td_Orgs_Used" runat="server"></td>
                        <td id="Td_Orgs_Rem" runat="server"></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,numOfSG%>" EnableViewState="false" />:
                        </td>
                        <td id="Td_SGroups" runat="server"></td>
                        <td id="Td_SGroups_NA" runat="server"></td>
                        <td id="Td_SGroups_Used" runat="server"></td>
                        <td id="Td_SGroups_Rem" runat="server"></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,numOfADU%>" 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="Literal10" runat="server" Text="<%$ Resources:Content,numOfADSyn%>" EnableViewState="false" />:
                        </td>
                        <td id="Td_numOfADSyn" runat="server"></td>
                        <td id="Td_numOfADSyn_NA" runat="server"></td>
                        <td id="Td_numOfADSyn_Used" runat="server"></td>
                        <td id="Td_numOfADSyn_Rem" runat="server"></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,createOSG%>" EnableViewState="false" />:
                        </td>
                        <td id="Td_createOSG" runat="server"></td>
                        <td id="Td_createOSG_NA" runat="server">--</td>
                        <td id="Td_createOSG_Used" runat="server">--</td>
                        <td id="Td_createOSG_Rem" runat="server">--</td>
                    </tr>
                    <tr id="TR_SecurityGroupsView" runat="server" visible="false">
                        <td colspan="5">
                            <asp:GridView ID="GV_SecurityGroupsView" CssClass="table table-bordered table-striped table-hover" AllowSorting="false" AllowPaging="false"
                                EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">

                                <Columns>
                                    <asp:TemplateField HeaderText='<%$ Resources:Content, GroupName %>' HeaderStyle-CssClass="col-xs-6" ItemStyle-CssClass="col-xs-6">
                                        <ItemTemplate>
                                            <asp:Label ID="LB_SGName" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText='<%$ Resources:Content, autoAddUsr %>' HeaderStyle-CssClass="col-xs-6" ItemStyle-CssClass="col-xs-6">
                                        <ItemTemplate>
                                            <asp:Label ID="LB_AutoAddUsers" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Literal ID="Literal12" runat="server" Text="<%$ Resources:Content,memOfSG%>" EnableViewState="false" />:
                        </td>
                        <td id="Td_memOfSG" runat="server"></td>
                        <td id="Td_memOfSG_NA" runat="server">--</td>
                        <td id="Td_memOfSG_Used" runat="server">--</td>
                        <td id="Td_memOfSG_Rem" runat="server">--</td>
                    </tr>
                    <tr id="TR_LiveSecurityGroupsView" runat="server" visible="false">
                        <td colspan="5">
                            <ajax:UpdatePanel ID="UP_SGroupsView" runat="server">
                                <ContentTemplate>
                                    <EM:AddSelectableSelected ID="UCSGroupsView" runat="server" />
                                </ContentTemplate>
                            </ajax:UpdatePanel>
                        </td>
                    </tr>
                </table>

            </div>
        </div>
    </div>
</div>

<div class="row" id="Tbl_Edit" runat="server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3><%= Resources.Content.GN0000112%>  </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal20" runat="server" EnableViewState="false" Text="<%$ Resources:Content,numOfOU%>" />:
                    </div>
                    <div class="col-sm-4 col-xs-7">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_numOfOrgUnits" runat="server" MaxLength="10" Enabled="false"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-5 row-label">
                        <div class="form-group">
                            <asp:CheckBox ID="CB_numOfOrgUnits" Text="<%$ Resources:Content,GN0000908%>" runat="server"
                                Checked="true" />
                            <asp:Label ID="Lbl_numOfOrgUnits" runat="server" ForeColor="red" Visible="false">*</asp:Label>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal21" runat="server" EnableViewState="false" Text="<%$ Resources:Content,numOfSG%>" />:
                    </div>
                    <div class="col-sm-4 col-xs-7">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_numOfSecurityGroup" runat="server" MaxLength="10" Enabled="false"></asp:TextBox>

                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-5 row-label">
                        <div class="form-group">
                            <asp:CheckBox ID="ChBx_numOfSecurityGroup" Text="<%$ Resources:Content,GN0000908%>" runat="server"
                                Checked="true" />
                            <asp:Label ID="Lbl_numOfSecurityGroup" runat="server" ForeColor="red" Visible="false">*</asp:Label>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,numOfADU%>" />:
                    </div>
                    <div class="col-sm-4 col-xs-7">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_numOfADUsers" runat="server" MaxLength="10" Enabled="false"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-5 row-label">
                        <div class="form-group">
                            <asp:CheckBox ID="CB_numOfADUsers" Text="<%$ Resources:Content,GN0000908%>" runat="server"
                                Checked="true" />
                            <asp:Label ID="Lbl_numOfADUsers" runat="server" ForeColor="red" Visible="false">*</asp:Label>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal6" runat="server" EnableViewState="false" Text="<%$ Resources:Content,numOfADSyn%>" />:
                    </div>
                    <div class="col-sm-4 col-xs-7">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_numOfADSyncEnabledUsers" runat="server" MaxLength="10" Enabled="false"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-5 row-label">
                        <div class="form-group">
                            <asp:CheckBox ID="ChBx_numOfADSyncEnabledUsers" Text="<%$ Resources:Content,GN0000908%>" runat="server"
                                Checked="true" />
                            <asp:Label ID="Lbl_numOfADSyncEnabledUsers" runat="server" ForeColor="red" Visible="false">*</asp:Label>
                        </div>
                    </div>
                </div>
                <%--<div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,createOSG%>" />:
                    </div>
                    <div class="col-sm-4 col-xs-7">
                        <div class="form-group">
                            <asp:CheckBox ID="ChBx_createSGroupWithOrg" Text=" " runat="server" AutoPostBack="true" />
                        </div>
                    </div>
                </div>
                <div class="row" id="TR_AddSecurityGroup" runat="server" visible="false">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <%= Resources.Content.AD002 %>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        *<asp:Literal ID="Literal8" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GroupName%>" />:
                                    </div>
                                    <div class="col-sm-4 col-xs-7">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_GroupName" runat="server"></asp:TextBox>                                                
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <asp:Literal ID="Literal14" runat="server" EnableViewState="false" Text="<%$ Resources:Content,autoAddUsr%>" />:
                                    </div>
                                    <div class="col-sm-4 col-xs-7">
                                        <div class="form-group">
                                            <asp:CheckBox ID="ChBx_autoAddUsersInSGroup" runat="server" Text=" "></asp:CheckBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button ID="Btn_SaveSGroup" Text="<%$ Resources:Content,GN0000281%>" runat="server" CssClass="btn btn-primary waves-effect" CausesValidation="false" />                                        
                                        <asp:Button ID="Btn_CancelSGorup" Text="<%$ Resources:Content,GN0000572%>" runat="server" CssClass="btn btn-primary waves-effect" CausesValidation="false" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="TR_SecurityGroups" runat="server" visible="false">
                    <div class="col-xs-12">
                        <div class="card">                            
                            <div class="body">
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button ID="Btn_AddSecurityGroup" Text="<%$ Resources:Content,AD002%>" runat="server" CausesValidation="false" CssClass="btn btn-primary waves-effect" />
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:GridView ID="GV_SecurityGroups" CssClass="table table-bordered table-striped table-hover" AllowSorting="false" AllowPaging="false"
                                            EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">

                                            <Columns>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content, GroupName %>' HeaderStyle-CssClass="col-xs-6" ItemStyle-CssClass="col-xs-6">
                                                    <ItemTemplate>
                                                        <asp:Label ID="LB_SGName" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content, autoAddUsr %>' HeaderStyle-CssClass="col-xs-5" ItemStyle-CssClass="col-xs-5">
                                                    <ItemTemplate>
                                                        <asp:Label ID="LB_AutoAddUsers" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="LB_Remove" class="btn btn-primary waves-effect" CommandName="RemoveSG"
                                                            runat="server" Text="<%$ Resources:Content,GN0000278%>" />
                                                        <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,CBE001%>"
                                                            TargetControlID="LB_Remove" runat="server">
                                                        </EM:ConfirmButtonExtender>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal23" runat="server" EnableViewState="false" Text="<%$ Resources:Content,memOfSG%>" />:
                    </div>
                    <div class="col-sm-4 col-xs-7">
                        <div class="form-group">
                            <asp:CheckBox ID="ChBx_makeSGMemberOfNewSG" Text=" " runat="server" AutoPostBack="true" />
                        </div>
                    </div>
                </div>
                <div class="row" id="TR_LiveSecurityGroups" runat="server" visible="false">
                    <div class="col-xs-12 row-label">
                        <label>*<asp:Label ID="Label19" runat="server" Text="<%$ Resources:Content,selectSecurityGroups %>" />:</label>
                    </div>
                    <div class="col-xs-12 ">
                        <ajax:UpdatePanel ID="UP_SGroups" runat="server">
                            <ContentTemplate>
                                <EM:AddSelectableSelected ID="UCSGroups" runat="server" />
                            </ContentTemplate>
                        </ajax:UpdatePanel>
                    </div>
                </div>--%>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_Update" runat="server" Text="<%$ Resources:Content,GN0000281%>" />
                        <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Cancel" runat="server" Text="<%$ Resources:Content,GN0000572%>" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
