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


<%@ Register Src="~/RCC/SharePoint/CC/EditSPUser.ascx" TagName="EditUser" TagPrefix="UC" %>
<%@ Register Src="~/RCC/CC/SharePointBulkUser.ascx" TagName="BulkUser" TagPrefix="UC" %>
<%@ Register Src="~/RCC/Exchange/CC/GroupActions.ascx" TagName="GroupActions" TagPrefix="UC" %>
<%@ Register Src="~/RCC/SharePoint/CC/SPGroupOperations.ascx" TagName="GroupOperations" TagPrefix="UC" %>
<%@ Register Src="~/RCC/Exchange/CC/AccountGroupActions.ascx" TagName="AccountGroupActions" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/SP.ascx" TagName="SP" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI" TagPrefix="cc1" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>
<%@ Register Src="~/Template/CC/VirtualDropDownList.ascx" TagName="VirtualDropDownList" TagPrefix="EM" %>

<asp:Content ID="Content4" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <%= Resources.Content.L0086%>

                    <asp:HyperLink ID="LB_SubscriptionID" runat="server"></asp:HyperLink>
                </h3>
            </div>
            <div class="body">

                <asp:Button ID="Btn_RefreshTab" CssClass="RefreshTab" runat="server" Style="display: none;" />
                <EM:TabContainer ID="TC_Accounts" runat="server" OnClientActiveTabChanged="loadTabPanel">
                    <%--General Settings Start--%>
                    <EM:TabPanel ID="Tab_GeneralSettings" runat="server" HeaderText='<%$ Resources:Content,SM400028%>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent0" runat="server">
                                <div class="row" id="div_operation_box" runat="server">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <%= Resources.Content.GN00001320%>      <%--Operations--%>
                                                </h3>
                                            </div>
                                            <div class="body">
                                                <asp:Button ID="Btn_SyncFromBackEnd" CommandArgument="0" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,MP0034%>' />
                                                <EM:ConfirmButtonExtender ID="CBE_Sync" ConfirmText="<%$ Resources:Content,StrSPSyncAllConfirmMsg%>" TargetControlID="Btn_SyncFromBackEnd" runat="server">
                                                </EM:ConfirmButtonExtender>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <EM:SP ID="SP" runat="server" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>

                    <%--Portal tab--%>
                    <EM:TabPanel ID="Tab_Portal" runat="server" HeaderText="<%$Resources:Content,L0071%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab1" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                                <div class="row" id="Tbl_detail" runat="server" visible="true">
                                    <div class="col-sm-8 col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <asp:Label ID="Lbl_PortalDetailsHeading" runat="server" Text="<%$ Resources:Content,PortalDetails%>" EnableViewState="false" />

                                                </h3>
                                            </div>

                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal28" runat="server" Text="<%$Resources:Content,GN000125%>"></asp:Literal>:
                                                    </div>
                                                    <div class="col-sm-8 col-xs-12">
                                                        <asp:Label ID="Lbl_DomainName" runat="server"></asp:Label>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal3" runat="server" Text="<%$Resources:Content,L0076%>"></asp:Literal>:
                                                    </div>
                                                    <div class="col-sm-8 col-xs-12">
                                                        <asp:Label ID="Lbl_Title" runat="server"></asp:Label>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal1" runat="server" Text="<%$Resources:Content,GN0000597%>"></asp:Literal>:
                                                    </div>
                                                    <div class="col-sm-8 col-xs-12">
                                                        <asp:Label ID="Lbl_Desc" runat="server"></asp:Label>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal5" runat="server" Text="<%$Resources:Content,GN0000981%>"></asp:Literal>:
                                                    </div>
                                                    <div class="col-sm-8 col-xs-12">
                                                        <asp:Label ID="Lbl_URL" runat="server"></asp:Label>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal4" runat="server" Text="<%$Resources:Content,DGN1110360%>"></asp:Literal>:
                                                    </div>
                                                    <div class="col-sm-8 col-xs-12">
                                                        <asp:Label ID="Lbl_Manager" runat="server"></asp:Label>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal9" runat="server" Text="<%$Resources:Content,String326%>"></asp:Literal>:
                                                    </div>
                                                    <div class="col-sm-8 col-xs-12">
                                                        <asp:Label ID="Lbl_Email" runat="server"></asp:Label>
                                                    </div>
                                                </div>

                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal10" runat="server" Text='<%$ Resources:Content,String150%>'></asp:Literal>:
                                                    </div>
                                                    <div class="col-sm-8 col-xs-12">
                                                        <asp:Label ID="Lbl_StorageLevel" runat="server"></asp:Label>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal6" runat="server" Text='<%$ Resources:Content,String151%>'></asp:Literal>:
                                                    </div>
                                                    <div class="col-sm-8 col-xs-12">
                                                        <asp:Label ID="Lbl_WarnLevel" runat="server"></asp:Label>
                                                    </div>
                                                </div>
                                                <div class="row" id='tbl_sandboxedquotalimit' runat='server'>
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Ltrl_usageperdaylimit" runat="server" Text="<%$ Resources:Content,USM0042 %>"></asp:Literal>
                                                    </div>
                                                    <div class="col-sm-8 col-xs-12">
                                                        <asp:Literal ID='Ltrl_MaxUsagePerDayLimit' runat='server'></asp:Literal>
                                                    </div>
                                                </div>
                                                <div class="row" id='tbl_sandboxedquotawarning' runat='server'>
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,USM0043 %>"></asp:Literal>
                                                    </div>
                                                    <div class="col-sm-8 col-xs-12">
                                                        <asp:Literal ID='Ltrl_MaxUsagePerDayWarning' runat='server'></asp:Literal>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,GN00003000%>"></asp:Literal>:
                                                    </div>
                                                    <div class="col-sm-8 col-xs-12">
                                                        <asp:Label ID="Lbl_Locale" runat="server"></asp:Label>
                                                    </div>
                                                </div>

                                                <div class="row" id='tr_siteanonymstate' runat='server' visible='false'>
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Ltrl_AnonymousStateTitle" runat="server" Text="<%$ Resources:Content, AnonymousState %>"></asp:Literal>:
                                                    </div>
                                                    <div class="col-sm-8 col-xs-12">
                                                        <asp:Literal ID='Ltrl_siteanonymstate' runat='server'></asp:Literal>
                                                    </div>
                                                </div>

                                                <div class="row" id='tr_SPUrn' runat='server' visible='false'>
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Ltrl_SharePointURNRealmTitle" runat="server" Text="<%$ Resources:Content, SharePointURNRealm %>"></asp:Literal>:
                                                    </div>
                                                    <div class="col-sm-8 col-xs-12">
                                                        <asp:Literal ID='Ltrl_SPPortalUrn' runat='server'></asp:Literal>
                                                    </div>
                                                </div>

                                                <div class="row" id='tr_SPADFSIdentifier' runat='server' visible='false'>
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Ltrl_ADFSRelyingPartyIdentifierTitle" runat="server" Text="<%$ Resources:Content, ADFSRelyingPartyIdentifier %>"></asp:Literal>:
                                                    </div>
                                                    <div class="col-sm-8 col-xs-12">
                                                        <asp:Literal ID='Ltrl_SPADFSIdentifier' runat='server'></asp:Literal>
                                                    </div>
                                                </div>

                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal12" runat="server" Text="<%$Resources:Content,L0071%>"></asp:Literal>:
                                                    </div>
                                                    <div class="col-sm-8 col-xs-12">
                                                        <asp:LinkButton ID="LB_SharePoint" runat="server" Text="<%$Resources:Content,L0073%>" CssClass="btn btn-primary waves-effect"></asp:LinkButton>
                                                    </div>
                                                </div>

                                                <div class="row" id="tr_sslinfo" runat="server">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Ltrl_SSLInfo" runat="server" Text="<%$ Resources:Content,SMI0408%>"></asp:Literal>
                                                    </div>
                                                    <div class="col-sm-8 col-xs-12">
                                                        <div id="div_sslinfo" runat="server"></div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:Button ID="btn_Edit" CssClass="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,GN0000276%>' runat="server" />
                                                    </div>
                                                </div>

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

                                    <div class="col-sm-4 col-xs-12">
                                        <div class="card">
                                            <div class="body">
                                                <div id="Div" runat="server"></div>
                                                <div id="chart"></div>
                                                <asp:Literal ID="Ltl_TimeStamp" runat="server"></asp:Literal>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <%--   ////////////////////////////////////////////////////--%>
                                <%--Edit Organization Form--%>
                                <div class="row" id="Tbl_EditOrg1" runat="server" visible="false">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <asp:Label ID="Label2" runat="server" Text="<%$ Resources:Content,EditPortalProperties%>" />

                                                </h3>
                                            </div>

                                            <div class="body">
                                                <div class="row" runat="server" id="Tr_EditProtalTypes" visible="false">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal27" runat="server" Text='<%$ Resources:Content,USM0039%>' EnableViewState="false" />:
                                                
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <asp:DropDownList ID="ddl_EditProtalTypes" runat="server" AutoPostBack="true">
                                                            <asp:ListItem Text="<%$ Resources:Content,SPT002260%>" Value="1" Selected="True"> </asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,L0067%>" Value="0"></asp:ListItem>

                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="row" runat="server" id="Tr_EditPortalName" visible="false">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        *
                                                         <asp:Literal ID="Literal30" runat="server" Text='<%$ Resources:Content,String394%>' EnableViewState="false" />:
                                                    <asp:RequiredFieldValidator ID="REV_TxBx_EditPortlName" runat="server" ControlToValidate="TxBx_EditPortalName"
                                                        Display="None" SetFocusOnError="True" Enabled="false" ValidationGroup="SP"></asp:RequiredFieldValidator>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_EditPortalName" MaxLength="100" runat="server"></asp:TextBox>
                                                                <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" TargetControlID="TxBx_EditPortalName"
                                                                    runat="server" FilterType="UppercaseLetters, Numbers, LowercaseLetters,Custom" ValidChars="0123456789.">
                                                                </EM:FilteredTextBoxExtender>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12 lbl-serial-num no-padding">
                                                        <asp:Label ID="Lbl_WebAppUrl" runat="server"></asp:Label>
                                                        <asp:Label ID='Lbl_fixedPathUrl' runat='server' Text=''></asp:Label>
                                                    </div>
                                                </div>
                                                <div class="row" runat="server" id="Tr_VEditPortalName" visible="false">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        *
                                                        <asp:Literal ID="Literal31" runat="server" Text='<%$ Resources:Content,String394%>'
                                                            EnableViewState="false" />:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_VEditPortalName" MaxLength="500" runat="server"></asp:TextBox>

                                                            </div>
                                                        </div>
                                                        <asp:Literal ID="Literal_Dot" runat="server" Text=".555555555555" />
                                                        <asp:RequiredFieldValidator ID="REV_TxBx_VEditPortalName" Enabled="false" runat="server"
                                                            ControlToValidate="TxBx_VEditPortalName" Display="None" SetFocusOnError="True"
                                                            ValidationGroup="SP"></asp:RequiredFieldValidator>
                                                        <%--<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TxBx_VEditPortalName"
                                                            ValidationGroup="SP" ErrorMessage="Invalid portal address." SetFocusOnError="true"
                                                            Display="None" ValidationExpression="<%$ Resources:Content,REV001 %>">
                                                        </asp:RegularExpressionValidator>--%>
                                                    </div>
                                                </div>
                                                <div class="row" runat="server" id="Tr_Title">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        *
                                                        <asp:Literal ID="Literal23" runat="server" Text="<%$Resources:Content,L0076%>" />:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_Title" runat="server" MaxLength="200"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TxBx_Title"
                                                            Display="None" SetFocusOnError="True" ValidationGroup="SP"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                                <div class="row" runat="server" id="Tr_Desc">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal24" runat="server" Text="<%$Resources:Content,GN0000597%>" />:
                                                    </div>
                                                    <div class="col-sm-8 col-xs-12">

                                                        <asp:TextBox ID="TxBx_Desc" TextMode="MultiLine" Columns="40" Rows="4" runat="server"></asp:TextBox>

                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">

                                                        <asp:Literal ID="Literal22" runat="server" Text='<%$ Resources:Content,String150%>'></asp:Literal>:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <asp:DropDownList ID="DDL_StorageLevel" runat="server" />
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal29" runat="server" Text='<%$ Resources:Content,String151%>'></asp:Literal>:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_WarnLevel" runat="server"></asp:TextBox>
                                                            </div>
                                                        </div>

                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <asp:CheckBox ID="ChBx_SendWarning" Text="<%$ Resources:Content,GN0000908%>" runat="server" />
                                                        <asp:Label ID="Lbl_EditSendWarning" runat="server" ForeColor="red" Visible="false">*</asp:Label>
                                                        <br />
                                                        <asp:Label ID="Literal70" ForeColor="forestgreen" runat="server" Text='<%$Resources:Content,String415 %>'></asp:Label>
                                                    </div>
                                                </div>
                                                <div class="row" id='tbledit_sandboxedquotalimit' runat='server'>
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal38" runat="server" Text="<%$ Resources:Content,USM0042 %>"></asp:Literal>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <asp:DropDownList ID='DDL_UsagePerDayLimit' runat='server'></asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="row" id='tbledit_sandboxedquotawarning' runat='server'>
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        *
                                                        <asp:Literal ID="Literal39" runat="server" Text="<%$ Resources:Content,USM0043 %>"></asp:Literal>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID='TxBx_UsagePerDayWarning' runat='server'></asp:TextBox>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row" id='tr_anonymstate' runat='server' visible='false'>
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID='Ltrl_AnonymState' runat='server' Text="<%$ Resources:Content,SMI710%>"></asp:Literal>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <asp:DropDownList ID='Ddl_Anonymstate' runat='server' CausesValidation='false' Width="120px">
                                                            <asp:ListItem Value="0" Text="<%$Resources:Content,SMI0210%>"></asp:ListItem>
                                                            <asp:ListItem Value="1" Text="<%$Resources:Content,SMI0211 %>"></asp:ListItem>
                                                            <asp:ListItem Value="2" Text="<%$Resources:Content,SMI0212 %>"></asp:ListItem>
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12">
                                                        <asp:ValidationSummary ID="ValidationSummary2" runat="server" HeaderText='<%$ Resources:Content, EM000001 %>'
                                                            ShowMessageBox="True" ShowSummary="False" ValidationGroup="SP" />
                                                        <asp:Button runat="server" ID="Btn_editConfirm" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000281%>"
                                                            ValidationGroup="SP" />
                                                        <asp:Button runat="server" ID="Btn_editCancel" Text="<%$ Resources:Content,GN0000572%>"
                                                            CssClass="btn btn-primary waves-effect" CausesValidation="false" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <%--SSL Handling Start--%>
                                <asp:Panel ID="Pnl_ImportSSL" runat="server" DefaultButton="Btn_SSLSave">

                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <asp:Literal
                                                            ID="Literal40" runat="server" Text="<%$ Resources:Content,String475%>" EnableViewState="false" />
                                                    </h3>
                                                </div>

                                                <div class="body">
                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <asp:GridView ID="GV_FEServers" CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                                                runat="server" AutoGenerateColumns="False" AllowPaging="false">

                                                                <Columns>
                                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,L00100 %>" HeaderStyle-Width="23%">
                                                                        <ItemTemplate>
                                                                            <asp:CheckBox ID="ChBx_Server" runat="server" Checked="true" Text='<%# String.Format("{0} ({1})", Resources.Content.USM0088, Eval("MPRemoteIP"))%>' />
                                                                            <asp:HiddenField ID="HF_Server" runat="server" Value='<%# Eval("MPRemoteIP")%>' />
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,SMI0409%>">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="TxBx_BindingIP" runat="server" MaxLength="16" Text='<%# Eval("FrontEndIP")%>' />
                                                                            &nbsp;&nbsp;
                                                                        <%# Resources.Content.USM0089 %>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </div>

                                                    <div class="row">
                                                        <div class="col-sm-4 col-xs-12 row-label">
                                                            <asp:Literal ID="Literal41" runat="server" Text="<%$ Resources:Content,String476%>" EnableViewState="false" />:
                                                
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <asp:FileUpload ID="FP_ImportSSL" runat="server" />
                                                        </div>
                                                    </div>

                                                    <div class="row">
                                                        <div class="col-sm-4 col-xs-12 row-label">
                                                            *&nbsp;<asp:Literal ID="Literal42" runat="server" Text="<%$ Resources:Content,String477%>"
                                                                EnableViewState="false" />:
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="TxBx_SSLPassword" runat="server" TextMode="Password" />
                                                                </div>
                                                            </div>
                                                            <asp:RequiredFieldValidator ID="RFV_SSLPassword" runat="server" ControlToValidate="TxBx_SSLPassword"
                                                                Display="None" SetFocusOnError="True" ValidationGroup="HSSL"></asp:RequiredFieldValidator>
                                                        </div>
                                                    </div>

                                                    <div class="row">
                                                        <div class="col-sm-4 col-xs-12 row-label">
                                                            *&nbsp;<asp:Literal ID="Literal44" runat="server" Text="<%$ Resources:Content,GN0001196%>" EnableViewState="false" />:
                                               
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="TxBx_SSLConPassword" runat="server" TextMode="Password" />
                                                                </div>
                                                            </div>
                                                            <asp:RequiredFieldValidator ID="RFV_SSLConPassword" runat="server" ControlToValidate="TxBx_SSLConPassword"
                                                                Display="None" SetFocusOnError="True" ValidationGroup="HSSL"></asp:RequiredFieldValidator>
                                                        </div>
                                                    </div>

                                                    <div class="row" id="tr_SSL_SNI" runat="server">
                                                        <div class="col-sm-4 col-xs-12 row-label">
                                                            <asp:Literal ID="Ltrl_RequireServerNameIndication" runat="server" Text="<%$Resources:Content,USM0186 %>"></asp:Literal>
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <asp:CheckBox ID="CB_RequireServerNameIndication" Text=" " runat="server" />
                                                        </div>
                                                    </div>

                                                    <div class="row">
                                                        <div class="col-sm-4 col-xs-12">
                                                            <asp:ValidationSummary ID="ValidationSummary3" runat="server" ShowMessageBox="true"
                                                                ShowSummary="false" ValidationGroup="HSSL" HeaderText="<%$ Resources:Content,EM000001%>" />
                                                            <asp:Button ID="Btn_SSLSave" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,L00100 %>"
                                                                runat="server" ValidationGroup="HSSL" />
                                                        </div>

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

                                </asp:Panel>
                                <%-- SSL Handling End--%>
                                <%--SP 2013 Additional Urls Handling Start--%>
                                <asp:Panel ID="Pnl_SP13AdditionalUrls" runat="server" DefaultButton="Btn_UpdatesP13Url" Visible="false">

                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <asp:Literal
                                                            ID="Literal49" runat="server" Text="<%$ Resources:Content,USM0138%>" EnableViewState="false" />
                                                    </h3>
                                                </div>

                                                <div class="body">
                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <asp:GridView ID="GV_SP13AdditionalUrls" CssClass="table table-bordered table-striped table-hover"
                                                                runat="server" AutoGenerateColumns="False" AllowPaging="false" DataKeyNames="Url,Zone">

                                                                <Columns>
                                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,USM0139 %>" HeaderStyle-Width="23%">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="Lbl_AdditionalUrl" runat="server" Text='<%# Eval("Url")%>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,USM0140%>">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="Lbl_UrlZone" runat="server" Text='<%# Eval("Zone")%>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000360%>'>
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="LB_Delete" Text='<%$ Resources:Content,GN0000377%>' SkinID="linkButtonDelete"
                                                                                CommandName="DeleteRow" runat="server" CssClass="btnAction" />
                                                                            <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText='<%# "Are you sure to remove " & Eval("Url")%>'
                                                                                TargetControlID="LB_Delete" runat="server">
                                                                            </EM:ConfirmButtonExtender>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-4 col-xs-12 row-label">
                                                            <asp:Literal ID="Literal50" runat="server" Text="<%$ Resources:Content,USM0139%>" EnableViewState="false" />:
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <asp:TextBox ID="TxBx_SP13AdditionalUrl" runat="server"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="RFV_SP13Url" runat="server" ControlToValidate="TxBx_SP13AdditionalUrl"
                                                                Display="None" SetFocusOnError="True" ValidationGroup="SP13Url"></asp:RequiredFieldValidator>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-4 col-xs-12 row-label">
                                                            <asp:Literal ID="Literal51" runat="server" Text="<%$ Resources:Content,USM0140%>" EnableViewState="false" />:
                                                
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <asp:DropDownList ID="Ddl_UrlZone" runat="server"></asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-4 col-xs-12">
                                                            <asp:ValidationSummary ID="VS_SP13Url" runat="server" ShowMessageBox="true"
                                                                ShowSummary="false" ValidationGroup="SP13Url" HeaderText="<%$ Resources:Content,EM000001%>" />
                                                            <asp:Button ID="Btn_UpdatesP13Url" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000281 %>"
                                                                runat="server" ValidationGroup="SP13Url" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>


                                </asp:Panel>
                                <%-- SP 2013 Additional Urls Handling End--%>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <%--Domains Tab Start--%>
                    <EM:TabPanel ID="Tab_SPDomains" runat="server" HeaderText='<%$ Resources:Content, String288 %>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab2" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent2" runat="server" Visible="false">
                                <asp:Panel ID="Pnl_Domain" runat="server">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText='<%$ Resources:Content, GN00001375 %>'
                                                ID="GV_Domains" runat="server" AutoGenerateColumns="false" AllowPaging="true"
                                                DataKeyNames='DomainID,DomainName'>

                                                <Columns>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000653%>' >
                                                        <ItemTemplate>
                                                            <%--<asp:Label ID="Lbl_DomainName" runat="server"></asp:Label>--%>
                                                            <asp:HyperLink ID="HL_DomainName" Text='<%#DataBinder.Eval(Container, "DataItem.DomainName")%>' runat="server"></asp:HyperLink>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content,GN000171%>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2"
                                                        HeaderStyle-HorizontalAlign="Center">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lbl_IsDefaultDomain" runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content,Verified%>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2"
                                                        HeaderStyle-HorizontalAlign="Center">
                                                        <ItemTemplate>
                                                            <asp:Label ID="Lbl_IsVerified" runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000360%>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                        <ItemTemplate>

                                                            <asp:LinkButton ID="LB_SetDefault" Text='<%$ Resources:Content,GN000166%>' CssClass="btn btn-primary waves-effect btnAction"
                                                                CommandName="SetDefault" runat="server" />
                                                            <asp:LinkButton ID="LB_Delete" Text='<%$ Resources:Content,GN0000377%>' CssClass="btn btn-primary waves-effect btnAction"
                                                                CommandName="DeleteRow" runat="server" />
                                                            <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,CBE001%>"
                                                                TargetControlID="LB_Delete" runat="server">
                                                            </EM:ConfirmButtonExtender>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <%--PagerTemplate Start--%>
                                                <PagerTemplate>
                                                    <EM:Pager ID="Pager1" runat="server" />
                                                </PagerTemplate>
                                                <%--PagerTemplate End--%>
                                            </asp:GridView>
                                        </div>
                                        <div class="col-xs-12" id="Pnl_addDomain" runat="server" defaultbutton="Btn_AddNewDmn">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <asp:Label
                                                            ID="Label16" runat="server" Text='<%$ Resources:Content,String288%>' EnableViewState="false"></asp:Label>
                                                    </h3>
                                                </div>

                                                <div class="body">
                                                    <div class="row">
                                                        <div class="col-sm-2 col-xs-12">
                                                            <asp:Literal ID="Literal26" runat="server" EnableViewState="false" Text='<%$ Resources:Content,DGN1110426%>'></asp:Literal>:
                                                        <asp:RequiredFieldValidator ID="RFV_DomainName" runat="server" ControlToValidate="TxBx_DomainName"
                                                            ValidationGroup="Dom" SetFocusOnError="true" Display="None" ErrorMessage="<%$ Resources:Content,String1039%>"></asp:RequiredFieldValidator>
                                                        </div>
                                                        <div class="col-sm-3 col-xs-12">
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="TxBx_DomainName" runat="server"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                          <%--  <asp:RegularExpressionValidator ID="REV_Domain" runat="server" ValidationGroup="Dom"
                                                                ControlToValidate="TxBx_DomainName" ErrorMessage="Please enter a valid domain name."
                                                                Display="None" ValidationExpression="^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$"></asp:RegularExpressionValidator>--%>
                                                            <asp:ValidationSummary ID="VS_Domain" runat="server" ValidationGroup="Dom" ShowMessageBox="true"
                                                                ShowSummary="false" />
                                                        </div>
                                                        <div class="col-sm-7 col-xs-12">
                                                            <asp:CheckBox ID="ChBx_IsDefaultDomain" runat="server" Text='<%$ Resources:Content,GN000166%>' />
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-4 col-xs-12">
                                                            <asp:Button ID="Btn_AddNewDmn" ValidationGroup="Dom" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                                                                CssClass="btn btn-primary waves-effect btnAction" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <%--PermissionLevels tab--%>
                    <EM:TabPanel ID="Tab_PermissionLevels" runat="server" HeaderText="<%$ Resources:Content,SMI0410%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab3" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent3" runat="server" Visible="false">

                                <%--PermissionLevels Listing--%>
                                <asp:Panel ID="Pnl_PermissionLevels" runat="server">
                                    <%--Add Button--%>

                                    <div class="row Div_OpsRow" id="Div_PermLevelOperations" runat="server">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <%= Resources.Content.GN00001320%>                                                                                                                                 
                                                    </h3>
                                                </div>
                                                <div class="body">
                                                    <div class="clearfix">
                                                        <asp:Button ID="Btn_AddNewPermissionLevel" runat="server" Text="<%$ Resources:Content,SMI0411%>" class="btn btn-primary waves-effect btnAction" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="clearfix">
                                                <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                                    ID="GV_PermissionLevels" AllowPaging="True" runat="server" AutoGenerateColumns="false"
                                                    AllowSorting="True" DataKeyNames="PermissionName,PermissionID,PermissionDescription,BasePermissions">

                                                    <Columns>
                                                        <asp:TemplateField HeaderText="<%$Resources:Content,GN000170%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2"
                                                            HeaderStyle-Width="20%">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_PermissionLevelName" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$Resources:Content,GN0000597%>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3"
                                                            HeaderStyle-Width="20%">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_PermissionLevelDescription" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,SMI0412%>" HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4"
                                                            HeaderStyle-Width="20%">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_BasePermissions" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%> " HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3"
                                                            HeaderStyle-Width="20%">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="LB_Edit" CommandArgument='<%#Eval("PermissionName")%>'
                                                                    runat="server" Text="<%$ Resources:Content,GN0000276%>" CssClass="btn btn-primary waves-effect"
                                                                    CommandName="Edit_PermissionLevel" />
                                                                <asp:LinkButton ID="LB_Delete" runat="server" Text="<%$ Resources:Content,GN0000377%>"
                                                                    CssClass="btn btn-primary waves-effect btnAction" CommandName="Delete_PermissionLevel" />
                                                                <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,CBE001%>"
                                                                    TargetControlID="LB_Delete" runat="server">
                                                                </EM:ConfirmButtonExtender>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <%--PagerTemplate Start--%>
                                                    <PagerTemplate>
                                                        <EM:Pager ID="Pager1" runat="server" />
                                                    </PagerTemplate>
                                                    <%--PagerTemplate End--%>
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>

                                </asp:Panel>

                                <%--Add PermissionLevel form--%>
                                <asp:Panel ID="Pnl_AddPermissionLevel" runat="server" Visible="false">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <asp:Label ID="Lbl_AddPermissionLevelHeading" runat="server" Text="<%$ Resources:Content,SMI0411%>" />
                                                    </h3>
                                                </div>
                                                <div class="body">
                                                    <div class="row">
                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                            *<asp:Label ID="Lbl_PermissionLevelName" runat="server" Text="<%$Resources:Content,GN000170 %>"></asp:Label>:
                                                            <asp:RequiredFieldValidator ID="RFV_PermissionLevel" runat="server" ControlToValidate="TxBx_PermissionLevelName"
                                                                Display="None" SetFocusOnError="True" ValidationGroup="SPPermissionLevel"></asp:RequiredFieldValidator>
                                                        </div>
                                                        <div class="col-sm-3 col-xs-12">
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="TxBx_PermissionLevelName" runat="server" MaxLength="50"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                            <asp:Label ID="Lbl_PermissionLevelDescription" runat="server" Text="<%$Resources:Content,GN0000597 %>"></asp:Label>:
                                                        </div>
                                                        <div class="col-sm-9 col-xs-12">

                                                            <asp:TextBox ID="TxBx_PermissionLevelDescription" TextMode="MultiLine" runat="server" MaxLength="50" Width="100%" hight="150px"></asp:TextBox>

                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                            *<asp:Label ID="Lbl_BasePermissions" runat="server" Text="<%$ Resources:Content,SMI0412%>" />:
                                                        </div>
                                                        <div class="col-sm-10 col-xs-12">
                                                            <asp:CheckBoxList ID="CBL_BasePermissions" runat="server" CellPadding="5" CssClass="table"
                                                                CellSpacing="20"
                                                                RepeatColumns="4"
                                                                RepeatDirection="Horizontal"
                                                                CausesValidation="false">
                                                            </asp:CheckBoxList>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-3 col-xs-12">
                                                            <asp:ValidationSummary ID="ValidationSummary7" runat="server" HeaderText='<%$ Resources:Content, EM000001 %>'
                                                                ShowMessageBox="True" ShowSummary="False" ValidationGroup="SPPermissionLevel" />
                                                            <asp:Button ID="Btn_PermissionLevelAdd" ValidationGroup="SPPermissionLevel" runat="server"
                                                                CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000281%>" />
                                                            <asp:Button ID="Btn_PermissionLevelAddCancel" runat="server" CssClass="btn btn-primary waves-effect"
                                                                Text="<%$ Resources:Content,GN0000572%>" />
                                                        </div>
                                                    </div>
                                                </div>
                                </asp:Panel>

                                <%--Edit PermissionLevel form--%>
                                <asp:Panel ID="Pnl_EditPermissionLevel" runat="server" Visible="false">

                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <asp:Label ID="Lbl_EditPermissionLevelHeading" runat="server" Text="<%$ Resources:Content,SMI0414%>" />
                                                    </h3>
                                                </div>
                                                <div class="body">
                                                    <div class="row">
                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                            <asp:Label ID="Lbl_EditPermissionLevelName" runat="server" Text="<%$Resources:Content,GN000170 %>"></asp:Label>:                                                
                                                        </div>
                                                        <div class="col-sm-3 col-xs-12">
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="TxBx_EditPermissionLevelName" runat="server" MaxLength="50"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                            <asp:RequiredFieldValidator ID="RFV_EditPermissionLevel" runat="server" ControlToValidate="TxBx_EditPermissionLevelName"
                                                                Display="None" SetFocusOnError="True" ValidationGroup="EditSPPermissionLevel"></asp:RequiredFieldValidator>
                                                        </div>
                                                    </div>

                                                    <div class="row">
                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                            <asp:Label ID="Lbl_EditPermissionLevelDescription" runat="server" Text="<%$Resources:Content,GN0000597 %>"></asp:Label>:
                                                        </div>
                                                        <div class="col-sm-9 col-xs-12">

                                                            <asp:TextBox ID="TxBx_EditPermissionLevelDescription" TextMode="MultiLine" runat="server" MaxLength="50" Width="100%" Height="150px"></asp:TextBox>

                                                        </div>
                                                    </div>

                                                    <div class="row">
                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                            <asp:Label ID="Lbl_EditBasePermissions" runat="server" Text="<%$ Resources:Content,SMI0412%>" />:
                                                        </div>
                                                        <div class="col-sm-10 col-xs-12">
                                                            <asp:CheckBoxList ID="CBL_EditBasePermissions" runat="server" CellPadding="5" CssClass="table"
                                                                CellSpacing="20"
                                                                RepeatColumns="4"
                                                                RepeatDirection="Horizontal"
                                                                CausesValidation="false">
                                                            </asp:CheckBoxList>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-2 col-xs-12">
                                                            <asp:ValidationSummary ID="ValidationSummary8" runat="server" HeaderText='<%$ Resources:Content, EM000001 %>'
                                                                ShowMessageBox="True" ShowSummary="False" ValidationGroup="EditSPPermissionLevel" />
                                                            <asp:Button ID="Btn_PermissionLevelEditSave" ValidationGroup="EditSPPermissionLevel"
                                                                runat="server" CssClass="btn btn-primary waves-effect btnAction"
                                                                Text="<%$ Resources:Content,GN0000281%>" />
                                                            <asp:Button ID="Btn_PermissionLevelEditCancel" runat="server" CssClass="btn btn-primary waves-effect"
                                                                Text="<%$ Resources:Content,GN0000572%>" />
                                                        </div>
                                                    </div>

                                                </div>
                                            </div>
                                        </div>
                                </asp:Panel>

                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <%--Groups tab--%>
                    <EM:TabPanel ID="Tab_Groups" runat="server" HeaderText="<%$Resources:Content,Lync026%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab4" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent4" runat="server" Visible="false">
                                <%--Groups Listing--%>
                                <asp:Panel ID="Pnl_Groups" runat="server">


                                    <div class="row Div_OpsRow" id="Div_GroupOperations" runat="server">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <%= Resources.Content.GN00001320%>                                                                                                                                 
                                                    </h3>
                                                </div>
                                                <div class="body">
                                                    <div class="clearfix">
                                                        <asp:Button ID="Btn_AddNewGroup" runat="server" Text="<%$ Resources:Content,SMI0415%>" class="btn btn-primary waves-effect btnAction" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>





                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="clearfix">
                                                <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                                    ID="GV_Groups" AllowPaging="False" runat="server" AutoGenerateColumns="false"
                                                    AllowSorting="True" DataKeyNames="Name,Roles,Users,Owner,Description">

                                                    <Columns>
                                                        <asp:TemplateField HeaderText="<%$Resources:Content,GN000165%>">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LB_GroupName" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,SMI0416%>">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_GroupOwner" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,SMI0410%>">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_PermissionLevels" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%> ">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="LB_Edit" CommandArgument='<%#Eval("Name")%>'
                                                                    runat="server" Text="<%$ Resources:Content,GN0000276%>" CssClass="btn btn-primary waves-effect"
                                                                    CommandName="Edit_Group" />
                                                                <asp:LinkButton ID="LB_Delete" runat="server" Text="<%$ Resources:Content,GN0000377%>"
                                                                    CssClass="btn btn-primary waves-effect btnAction" CommandName="Delete_Group" />
                                                                <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,CBE001%>"
                                                                    TargetControlID="LB_Delete" runat="server">
                                                                </EM:ConfirmButtonExtender>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <%--PagerTemplate Start--%>
                                                    <%--<PagerTemplate>
                                <EM:Pager ID="Pager1" runat="server" />
                            </PagerTemplate>--%>
                                                    <%--PagerTemplate End--%>
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>
                                    <%--Add Button--%>
                                </asp:Panel>

                                <%--Add Group form--%>
                                <asp:Panel ID="Pnl_AddGroup" runat="server" Visible="false">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <asp:Label ID="Literal46" runat="server" Text="<%$ Resources:Content,SMI0415%>" />
                                                    </h3>
                                                </div>
                                                <div class="body">
                                                    <div class="row">
                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                            *<asp:Label ID="Lbl_GroupName" runat="server" Text="<%$Resources:Content,GN000165 %>"></asp:Label>:
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="TxBx_GroupName" runat="server" MaxLength="50"></asp:TextBox>
                                                                    <asp:RequiredFieldValidator ID="RFV_Group" runat="server" ControlToValidate="TxBx_GroupName"
                                                                        Display="None" SetFocusOnError="True" ValidationGroup="SPGroup"></asp:RequiredFieldValidator>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                            <asp:Label ID="Lbl_GroupDescription" runat="server" Text="<%$Resources:Content,GN0000597 %>"></asp:Label>:
                                                        </div>
                                                        <div class="col-sm-9 col-xs-12">
                                                            <asp:TextBox ID="TxBx_GroupDescription" TextMode="MultiLine" runat="server" MaxLength="50" Width="100%" Height="150px"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                            <asp:Label ID="Literal47" runat="server" Text="<%$ Resources:Content,SMI0416%>" />:
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <EM:VirtualDropDownList ID="DDL_GroupOwners" runat="server" />
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                            <asp:Label ID="Lbl_GroupPermissionLevels" runat="server" Text="<%$ Resources:Content,SMI0410%>" />:
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <asp:ListBox ID="Lbx_GroupPermissionLevels" CssClass="ms" runat="server" Height="110px" SelectionMode="Multiple" Width="145px"></asp:ListBox>
                                                        </div>
                                                    </div>
                                                    <div class="row" id="tr_groupmembers" runat="server">
                                                        <div class="col-xs-12 row-label">
                                                            <asp:Label ID="Lbl_GroupMembers" runat="server" Text="<%$Resources:Content,DGN1110100 %>" />:
                                                        </div>
                                                        <div class="col-xs-12">
                                                            <EM:AddSelectableSelected ID="UCAddGroupMembers" runat="server" ClientSideOptimized="true" />
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <asp:ValidationSummary ID="ValidationSummary5" runat="server" HeaderText='<%$ Resources:Content, EM000001 %>'
                                                                ShowMessageBox="True" ShowSummary="False" ValidationGroup="SPGroup" />
                                                            <asp:Button ID="Btn_GroupAdd" ValidationGroup="SPGroup" runat="server" CssClass="btn btn-primary btnAction" Text="<%$ Resources:Content,GN0000281%>" />
                                                            <asp:Button ID="Btn_GroupAddCancel" runat="server" CssClass="btn btn-primary" Text="<%$ Resources:Content,GN0000572%>" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                </asp:Panel>

                                <%--Edit Group form--%>
                                <asp:Panel ID="Pnl_EditGroup" runat="server" Visible="false">

                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <asp:Label ID="Label4" runat="server" Text="<%$Resources:Content,Lync120%>" />
                                                    </h3>
                                                </div>
                                                <div class="body">
                                                    <div class="row">
                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                            <asp:Label ID="Lbl_EditGroupName" runat="server" Text="<%$Resources:Content,GN000165 %>"></asp:Label>:
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="TxBx_EditGroupName" runat="server" MaxLength="50"></asp:TextBox>
                                                                    <asp:RequiredFieldValidator ID="RFV_EditGroup" runat="server" ControlToValidate="TxBx_EditGroupName"
                                                                        Display="None" SetFocusOnError="True" ValidationGroup="EditSPGroup"></asp:RequiredFieldValidator>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                            <asp:Label ID="Lbl_EditGroupDescription" runat="server" Text="<%$Resources:Content,GN0000597 %>"></asp:Label>:
                                                        </div>
                                                        <div class="col-sm-9 col-xs-12">
                                                            <asp:TextBox ID="TxBx_EditGroupDescription" TextMode="MultiLine" runat="server" MaxLength="50" Width="100%" Height="150px"></asp:TextBox>
                                                        </div>
                                                    </div>

                                                    <div class="row">
                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                            <asp:Label ID="Lbl_EditGroupOwner" runat="server" Text="<%$ Resources:Content,SMI0416%>" />:
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <EM:VirtualDropDownList ID="DDL_EditGroupOwners"  runat="server" />
                                                            <%--<asp:DropDownList ID="DDL_EditGroupOwners" CssClass="ms" runat="server">
                                                                <asp:ListItem Text="<%$ Resources:Content,SMI0417%>" Value="SiteOwner" Enabled="true" Selected="true"></asp:ListItem>
                                                            </asp:DropDownList>--%>
                                                            <%-- --%>
                                                        </div>
                                                    </div>

                                                    <div class="row">
                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                            <asp:Label ID="Lbl_EditGroupPermissionLevels" runat="server" Text="<%$ Resources:Content,SMI0410%>" />:
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <asp:ListBox ID="Lbx_EditGroupPermissionLevels" CssClass="ms" runat="server" Height="110px" SelectionMode="Multiple" Width="145px"></asp:ListBox>

                                                        </div>
                                                    </div>
                                                    <div class="row" id="tr_editgroupmembers" runat="server">
                                                        <div class="col-xs-12 row-label">
                                                            <asp:Label ID="Lbl_EditGroupMembers" runat="server" Text="<%$Resources:Content,DGN1110100 %>" />:
                                                        </div>
                                                        <div class="col-xs-12">
                                                            <EM:AddSelectableSelected ID="UCEditGroupMembers" runat="server" ClientSideOptimized="true" />
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-2 col-xs-12">
                                                            <asp:ValidationSummary ID="ValidationSummary6" runat="server" HeaderText='<%$ Resources:Content, EM000001 %>'
                                                                ShowMessageBox="True" ShowSummary="False" ValidationGroup="EditSPGroup" />
                                                            <asp:Button ID="Btn_GroupEditSave" ValidationGroup="EditSPGroup" runat="server" CssClass="btn btn-primary waves-effect btnAction"
                                                                Text="<%$ Resources:Content,GN0000281%>" />
                                                            <asp:Button ID="Btn_GroupEditCancel" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000572%>" />
                                                        </div>

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


                                </asp:Panel>

                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <%--Users tab--%>
                    <EM:TabPanel ID="Tab_Users" runat="server" HeaderText="<%$Resources:Content,GN0000636%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab5" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent5" runat="server" Visible="false">
                                <asp:Panel ID="Pnl_Users" runat="server">
                                    <%--Search Option--%>
                                    <asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_SearchUser">

                                        <div class="row">
                                            <div class="clearfix">
                                                <div class="panel-group search-panel" id="AS_SharePointUsers" role="tablist" aria-multiselectable="true">
                                                    <div class="col-xs-12" role="tab" id="SH_SharePointUsers">
                                                        <div class="card">
                                                            <div class="header" role="button" data-toggle="collapse" data-parent="#AS_SharePointUsers" href="#<%= CSB_SharePointUsers.ClientID %>" aria-expanded="true" aria-controls="SH_SharePointUsers">
                                                                <h3>
                                                                    <%= Resources.Content.GN0000395%>
                                                                </h3>
                                                            </div>
                                                            <div id="CSB_SharePointUsers" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_SharePointUsers" aria-expanded="false">
                                                                <div class="row">

                                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_Name" runat="server" MaxLength="100"></asp:TextBox>
                                                                                <asp:Label ID="Label7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001113%>" CssClass="form-label"></asp:Label>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_UserRole" runat="server" MaxLength="100"></asp:TextBox>
                                                                                <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String353%>" CssClass="form-label"></asp:Label>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_UPN" runat="server" MaxLength="100"></asp:TextBox><asp:Label ID="Label17" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String336%>" CssClass="form-label"></asp:Label>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_SAMAccountName" Width="90%" runat="server" MaxLength="100"></asp:TextBox>
                                                                                <asp:Label ID="Label19" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strSAMAccountName%>" CssClass="form-label"></asp:Label>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_Address" runat="server" MaxLength="200"></asp:TextBox>
                                                                                <asp:Label ID="Label20" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strAddress%>" CssClass="form-label"></asp:Label>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_City" runat="server" MaxLength="70"></asp:TextBox>
                                                                                <asp:Label ID="Label21" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000880%>" CssClass="form-label"></asp:Label>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_State" runat="server" MaxLength="70"></asp:TextBox>
                                                                                <asp:Label ID="Label22" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DEV1130%>" CssClass="form-label"></asp:Label>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_Zip" runat="server" MaxLength="40"></asp:TextBox>
                                                                                <asp:Label ID="Label23" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001081%>" CssClass="form-label"></asp:Label>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <asp:DropDownList ID="Ddl_Country" runat="server"></asp:DropDownList></td>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_Phone" runat="server" MaxLength="80"></asp:TextBox>
                                                                                <asp:Label ID="Label25" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00012%>" CssClass="form-label"></asp:Label>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_JobTitle" runat="server" MaxLength="80"></asp:TextBox>
                                                                                <asp:Label ID="Label26" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110358%>" CssClass="form-label"></asp:Label>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_Company" runat="server" MaxLength="80"></asp:TextBox>
                                                                                <asp:Label ID="Label27" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001134%>" CssClass="form-label"></asp:Label>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_Department" runat="server" MaxLength="80"></asp:TextBox>
                                                                                <asp:Label ID="Label28" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000374%>" CssClass="form-label"></asp:Label>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_Office" runat="server" MaxLength="80"></asp:TextBox>
                                                                                <asp:Label ID="Label29" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110359%>" CssClass="form-label"></asp:Label>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-xs-12">
                                                                        <asp:Button ID="Btn_SearchUser" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000391%>" />&nbsp;
                                                                         <asp:Button ID="Btn_ClearSearchUser" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,String289%>" OnClick="Btn_ClearSearchUser_Click" Visible="false" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>


                                    </asp:Panel>


                                    <div class="row Div_OpsRow" id="Div_UserOperations" runat="server">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <%= Resources.Content.GN00001320%>                                                                                                                                 
                                                    </h3>
                                                </div>
                                                <div class="body">
                                                    <div class="clearfix">
                                                        <asp:Button ID="Btn_AddNewUser" runat="server" Text="<%$Resources:Content,DEV1101%>" class="btn btn-primary waves-effect btnAction" />
                                                        <asp:Button ID="Btn_AddBulkUser" runat="server" class="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,Str00089%>' />
                                                        <asp:Button ID="Btn_GroupActions" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,String7772%>" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <%--Add Button--%>

                                    <%--Quota code here--%>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                                ID="GV_Users" AllowPaging="True" runat="server" AutoGenerateColumns="false" AllowSorting="True"
                                                DataKeyNames='UserId,UserName,ADUserId,ADDomainID'>

                                                <Columns>
                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,strUser%>" SortExpression="DisplayName" HeaderStyle-CssClass="col-sm-5">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="LB_Name" CommandArgument='<%#Databinder.Eval(Container,"DataItem.UserID") %>' CommandName="Edit_User"  runat="server"></asp:LinkButton>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,DGN1110431%>" HeaderStyle-CssClass="col-xs-6" ItemStyle-CssClass="col-xs-6">
                                                        <ItemTemplate>
                                                            <table class="table small">
                                                                <tr class="row">
                                                                    <td class="row-label col-xs-2"><%= Resources.Content.String385%>:</td>
                                                                    <td class="col-xs-5">
                                                                        <asp:LinkButton ID="LB_Status" runat="server" />
                                                                    </td>
                                                                    <td class="row-label col-xs-2"><%= Resources.Content.GN00001496%>:</td>
                                                                    <td class="col-xs-3">
                                                                        <asp:Label ID="Lbl_DateCreated" runat="server"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr class="row">
                                                                    <td class="row-label col-xs-2"><%= Resources.Content.String353%>:</td>
                                                                    <td class="col-xs-5">
                                                                        <asp:Label ID="Lbl_Role" runat="server"></asp:Label>
                                                                    </td>
                                                                    <td></td>
                                                                    <td></td>
                                                                </tr>
                                                            </table>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%> " HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                        <ItemTemplate>

                                                            <ul class="option-menu">
                                                                <li class="dropdown">
                                                                    <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                                                        <i class="material-icons">menu</i>
                                                                    </a>
                                                                    <ul class="dropdown-menu pull-right">
                                                                        <li>
                                                                            <asp:LinkButton ID='Lbtn_SetOwner' CssClass="btnAction" runat="server" CommandArgument='<%# Eval("UserID") %>'
                                                                                CommandName="SetOwner" Text="<%$Resources:Content,SMI0213%>" SkinID="LinkButtonSetAdmin"></asp:LinkButton>
                                                                        </li>
                                                                        <li>
                                                                            <asp:LinkButton ID="LB_Edit" CommandArgument='<%#Databinder.Eval(Container,"DataItem.UserID") %>' CommandName="Edit_User"
                                                                                runat="server" Text="<%$ Resources:Content,GN0000276%>" Visible="false" />

                                                                        </li>
                                                                        <li>
                                                                            <asp:LinkButton ID="LB_Delete" CssClass="btnAction" runat="server" Text="<%$ Resources:Content,GN0000278%>" CommandName="Delete_User" />

                                                                            <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,CBE001%>" TargetControlID="LB_Delete" runat="server">
                                                                            </EM:ConfirmButtonExtender>
                                                                        </li>
                                                                        <li>
                                                                            <asp:LinkButton ID="Lbtn_RemoveAndDeleteADUser" CssClass="btnAction" runat="server" Text="<%$ Resources:Content,RemoveAndDeleteADUserText%>" CommandName="RemoveAndDeleteADUser" />
                                                                            <EM:ConfirmButtonExtender ID="CBE_RemoveAndDeleteADUser" ConfirmText='<%$ Resources:Content,RemoveAndDeleteADUserConfirmAlert %>'
                                                                                TargetControlID="Lbtn_RemoveAndDeleteADUser" runat="server">
                                                                            </EM:ConfirmButtonExtender>
                                                                        </li>
                                                                        <li>
                                                                            <asp:LinkButton ID="Lbtn_ADUserEnable" CssClass="btnAction" runat="server" data-toggle="tooltip" data-placement="top" title="" data-original-title="" data-html="true"></asp:LinkButton>
                                                                        </li>

                                                                    </ul>
                                                                </li>
                                                            </ul>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <%--PagerTemplate Start--%>
                                                <PagerTemplate>
                                                    <EM:Pager ID="Pager1" runat="server" />
                                                </PagerTemplate>
                                                <%--PagerTemplate End--%>
                                            </asp:GridView>
                                        </div>
                                    </div>
                                </asp:Panel>
                                <%--Add user form--%>
                                <asp:Panel ID="Pnl_AddUser" runat="server" Visible="false">
                                    <div class="card">
                                        <div class="header">
                                            <h3>
                                                <asp:Literal ID="Literal21" runat="server" Text="<%$ Resources:Content,GN0000637%>" /></h3>
                                        </div>
                                        <div class="body">
                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <div class="col-sm-2 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal14" runat="server" Text="<%$ Resources:Content,GN0001288%>" />:
                                                    </div>
                                                    <div class="col-sm-3 col-xs-12">
                                                        <EM:VirtualDropDownList ID="DDL_User" runat="server" AutoPostBack="true" />
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12" id="DivUser" runat="server">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_User" runat="server" MaxLength="50" onChange='CreatePrimaryEmail()'></asp:TextBox>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-sm-3 col-xs-12" id="DivUserDomain" runat="server">
                                                       <%-- <asp:RegularExpressionValidator ID="REV_UserAlias" runat="server" ValidationGroup="SPUser" Display="None" ErrorMessage="<%$Resources:Content,InvalidUPN %>"
                                                            ValidationExpression="<%$Resources:MPRegex,Alias %>" ControlToValidate="TxBx_User" SetFocusOnError="true">
                                                        </asp:RegularExpressionValidator>--%>
                                                        <asp:RequiredFieldValidator ID="RFV_User" runat="server" ControlToValidate="TxBx_User"
                                                            Display="None" SetFocusOnError="True" ValidationGroup="SPUser"></asp:RequiredFieldValidator>
                                                        <asp:DropDownList ID="DDL_Domain" runat="server" onchange='CreatePrimaryEmail()'>
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="col-xs-12" id="Tr_DisplayName" runat="server">
                                                    <div class="col-sm-2 col-xs-12 row-label">
                                                        *<asp:Literal ID="Literal15" runat="server" Text="<%$Resources:Content,GN00001113%>" />:
                                                    </div>
                                                    <div class="col-sm-3 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_DisplayName" runat="server"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <asp:RequiredFieldValidator ID="RFV_DisplayName" runat="server" ControlToValidate="TxBx_DisplayName"
                                                            Display="None" SetFocusOnError="True" ValidationGroup="SPUser"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>

                                                <div class="col-xs-12">
                                                    <div class="col-sm-2 col-xs-12 row-label">
                                                        *
                                                        <asp:Literal ID="Literal13" runat="server" Text="<%$ Resources:Content,String353%>" />:
                                                    </div>
                                                    <div class="col-sm-3 col-xs-12">
                                                        <asp:ListBox ID="Lbx_UserRoles" CssClass="ms" runat="server" Height="110px" SelectionMode="Multiple"
                                                            Width="145px" ></asp:ListBox> 
                                                        <%--onClick="CopyUserAddRole()"--%>
                                                        <%-- <div class="form-group form-float">
                                                            <div class="form-line">--%>
                                                        <asp:TextBox ID="TxBx_UserRolesValidator" runat="server" CssClass="visibility-hidden" Style="display: none"></asp:TextBox>
                                                        <%-- </div>
                                                        </div>--%>
                                                        <%--<asp:RequiredFieldValidator ID="RFV_UserRoles" runat="server" ControlToValidate="TxBx_UserRolesValidator"
                                                            Enabled="false" Display="None" SetFocusOnError="True" ValidationGroup="SPUser" ErrorMessage="<%$ Resources:Content,UserRoleRequired %>">
                                                        </asp:RequiredFieldValidator>--%>
                                                    </div>
                                                </div>

                                                <div class="col-xs-12" id="tr_memberOf" runat="server">
                                                    <div class="col-xs-12 row-label">
                                                        <asp:Label ID="Lbl_MemberOf" runat="server" Text="<%$ Resources:Content,SMI0418%>" />:
                                                    </div>
                                                    <div class="col-xs-12">
                                                        <EM:AddSelectableSelected ID="UCAddUserMember" runat="server" ClientSideOptimized="true" />
                                                    </div>
                                                </div>

                                                <div class="col-xs-12" id='tradd_setadmin' runat='server' visible='false'>
                                                    <div class="col-sm-2 col-xs-12 row-label">
                                                        <asp:Literal ID="Ltrladd_IsAdmin" runat="server" Text="<%$Resources:Content,USM0080%>" />:
                                                    </div>
                                                    <div class="col-sm-3 col-xs-12">
                                                        <asp:CheckBox ID='CBadd_IsAdmin' runat='server' Text=" " Checked='false' />
                                                    </div>
                                                </div>

                                                <div class="col-xs-12" id="TR_Email" runat="server">
                                                    <div class="col-sm-2 col-xs-12 row-label">
                                                        *<asp:Literal ID="Literal18" runat="server" Text="<%$Resources:Content,GN0000491%>" />:
                                                    </div>
                                                    <div class="col-sm-3 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_Email" runat="server" onblur='CopyEmail()' onChange='CopyEmail()'></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <asp:RequiredFieldValidator ID="RFV_Email" runat="server" ControlToValidate="TxBx_Email"
                                                            Display="None" ValidationGroup="SPUser" SetFocusOnError="true"></asp:RequiredFieldValidator>
                                                       <%-- <asp:RegularExpressionValidator ErrorMessage='<%$ Resources:Content,DGN1110038%>'
                                                            ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxBx_Email"
                                                            Display="None" ValidationExpression="<%$ Resources:MPRegex,EmailAddress %>"
                                                            ValidationGroup="SPUser" SetFocusOnError="true"></asp:RegularExpressionValidator>--%>
                                                    </div>
                                                </div>

                                                <div class="col-xs-12" id="Tr_Pass" runat="server">
                                                    <div class="col-sm-2 col-xs-12 row-label">
                                                        *&nbsp;<asp:Literal ID="Literal16" runat="server" Text="<%$ Resources:Content,GN0000569%>" />:
                                                    </div>
                                                    <div class="col-sm-3 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_Password" runat="server" TextMode="Password" ValidationGroup="SPUser"
                                                                    MaxLength="30" />
                                                                <asp:RequiredFieldValidator ID="RFV_Pass" runat="server" ControlToValidate="TxBx_Password"
                                                                    Display="None" SetFocusOnError="True" ValidationGroup="SPUser"></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                        <br />
                                                        <asp:CheckBox ID="CB_Show" runat="server" Text="<%$ Resources:Content,FAM0049 %>" />
                                                    </div>
                                                    <div class="col-sm-7 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:LinkButton ID="lb_Generate" runat="server" Text="<%$Resources:Content,SMI0195%>"
                                                                CausesValidation="false" TabIndex="-1" CssClass="btn btn-primary"></asp:LinkButton>
                                                        </div>
                                                        <div id="Div_PasswordPolicy" runat="server" class="help-text sm"></div>
                                                    </div>
                                                </div>

                                                <div class="col-xs-12" id="Tr_Pass2" runat="server">
                                                    <div class="col-sm-2 col-xs-12 row-label">
                                                        *&nbsp;<asp:Literal ID="Literal19" runat="server" Text="<%$ Resources:Content,GN0001196%>" />:
                                                    </div>
                                                    <div class="col-sm-3 col-xs-12">
                                                        <asp:RequiredFieldValidator ID="RFV_Pass2" runat="server" ControlToValidate="TxBx_ConfirmPassword"
                                                            Display="None" SetFocusOnError="True" ValidationGroup="SPUser"></asp:RequiredFieldValidator>
                                                        <asp:CompareValidator Display="None" ID="CV_Password" ValidationGroup="SPUser" runat="server"
                                                            ErrorMessage='<%$ Resources:Content,DGN1110005 %>' ControlToCompare="TxBx_Password"
                                                            ControlToValidate="TxBx_ConfirmPassword"></asp:CompareValidator>
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_ConfirmPassword" TextMode="Password" runat="server" MaxLength="30"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="col-xs-12">
                                                    <div class="col-sm-2 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal20" runat="server" Text="<%$Resources:Content,GN00001336%>" />:
                                                    </div>
                                                    <div class="col-sm-3 col-xs-12">
                                                        <asp:TextBox ID="TxBx_Notes" Columns="50" Rows="5" TextMode="MultiLine" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>

                                                <div class="col-xs-12">
                                                    <div class="col-sm-2 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,GN0000752%>">
                                                        </asp:Literal>:
                                                    </div>
                                                    <div class="col-sm-3 col-xs-12">
                                                        <asp:CheckBox ID="CB_AddUserSendEmail" Text=" " Checked="true" runat="server" />
                                                    </div>
                                                </div>

                                                <div class="col-xs-12" id="Tr_AddUserSendEmail" runat="server">
                                                    <div class="col-sm-2 col-xs-12 row-label">
                                                        *     
                                                        <asp:Literal ID="Literal25" runat="server" Text="<%$ Resources:Content,String389%>">
                                                        </asp:Literal>:
                                                    </div>
                                                    <div class="col-sm-3 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_AddUserSendSetupEmail" runat="server"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <asp:RequiredFieldValidator ID="RFV_TxBx_AddUserSendEmail" runat="server" ControlToValidate="TxBx_AddUserSendSetupEmail"
                                                            Display="None" SetFocusOnError="True" ValidationGroup="SPUser"></asp:RequiredFieldValidator>
                                                        <%--<asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ErrorMessage='<%$ Resources:Content,DEV1055%>'
                                                            ControlToValidate="TxBx_AddUserSendSetupEmail" Display="None" SetFocusOnError="True"
                                                            ValidationExpression="<%$ Resources:MPRegex,EmailAddress %>" ValidationGroup="MailBoxDetailVG"></asp:RegularExpressionValidator>--%>

                                                    </div>
                                                </div>

                                                <div class="col-xs-12">
                                                    <div class="col-sm-2 col-xs-12">
                                                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText='<%$ Resources:Content, EM000001 %>'
                                                            ShowMessageBox="True" ShowSummary="False" ValidationGroup="SPUser" />
                                                        <asp:Button ID="Btn_UserAdd" ValidationGroup="SPUser" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000281%>" />
                                                        <asp:Button ID="Btn_UserAddClose" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000572%>" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                </asp:Panel>
                                <%--Edit User form--%>
                                <UC:EditUser ID="EditUser1" runat="server" Visible="false" />
                                <%--Bulk User Start--%>
                                <asp:Panel ID="Pnl_BulkUser" runat="server" Visible="false">
                                    <UC:BulkUser ID="BulkUser01" runat="server" />
                                </asp:Panel>
                                <%--Group Operations --%>
                                <asp:Panel ID="Pnl_GroupOperation" runat="server" Visible="false">
                                    <div class="card">
                                        <div class="header">
                                            <div class="displayInlineBlock">
                                                <h2>
                                                    <asp:Literal ID="Literal115" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String7772%>" />
                                                </h2>
                                            </div>
                                            <asp:LinkButton ID="LB_GoBackGroupOperation" CssClass="btn btn-primary waves-effect pull-right m-t--4px" runat="server" Text="<%$ Resources:Content,DGN1110542%>" />

                                        </div>
                                        <div class="body">
                                            <UC:GroupOperations ID="GroupOperation1" runat="server" />
                                        </div>
                                    </div>

                                </asp:Panel>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <%--Group Actions tab--%>
                    <EM:TabPanel ID="Tab_GroupActions" runat="server" HeaderText="<%$ Resources:Content,strGroupActionsLog%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab6" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent6" runat="server" Visible="false">
                                <UC:GroupActions ID="GroupActions1" runat="server" />
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>

                </EM:TabContainer>

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

    <div class="ResourceQuota">
        <asp:Panel ID="Pnl_Resources" runat="server" BorderColor="ActiveBorder" BorderStyle="Groove"
            ScrollBars="Auto" CssClass="background-color-white width-auto height-auto" Style="display: none;">

            <table>
                <tr>
                    <td>
                        <asp:Label ID="Lbl_ResourceError" runat="server" ForeColor="red" Font-Bold="true" Visible="false"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:GridView ID="GV_Resources" runat="server" AllowPaging="true" CssClass="table table-bordered table-striped table-hover"
                            AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>" PageSize="500">
                            <Columns>
                                <asp:TemplateField HeaderText="<%$Resources:Content,DEV1008%>">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_ResourceID" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$Resources:Content,DEV1002%>">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_TotalResources" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$Resources:Content,DEV1003%>">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_UsedResources" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$Resources:Content,DEV1004%>">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_AvailableResources" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$Resources:Content,DEV1005%>">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_RequestedResources" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="Btn_Done" runat="server" Text="<%$Resources:Content,GN0000858%>" CssClass="btn btn-primary waves-effect" />

                        <asp:Button ID="Btn_Display" runat="server" Style="display: none;" CssClass="btn btn-primary waves-effect" />
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </div>
    <EM:ModalPopupExtender runat="server" ID="MPE_Resource" BackgroundCssClass="modalBackground"
        DropShadow="false" PopupControlID="Pnl_Resources" TargetControlID="Btn_Display"
        OkControlID="Btn_Done">
    </EM:ModalPopupExtender>
    <script type="text/javascript">
        function CopyEmail() {
            var parent = document.getElementById("<%=TxBx_Email.ClientID%>");
            var child = document.getElementById("<%=TxBx_AddUserSendSetupEmail.ClientID%>");
            /*alert('Parent : ' + parent + ' Child : ' + child + '\nParent2 : ' + parent2 + ' Child2 : ' + child2);*/
            if (parent != null && child != null) {
                if (document.getElementById('<%=CB_AddUserSendEmail.ClientID%>').checked == true) {
                    child.value = parent.value;
                }
                else {
                    child.value = '';
                }
            }
        }

        function CreatePrimaryEmail() {
            var txbx_user = document.getElementById('<%=TxBx_User.ClientID %>');
            var ddl_domain = document.getElementById('<%=DDL_Domain.ClientID %>');
            var domainname = '';
            if (txbx_user != null && ddl_domain != null)
                if (txbx_user.value.length > 0 && ddl_domain.options.length > 0) {
                    var username = txbx_user.value;
                    for (x = 0; x < ddl_domain.options.length; x++) {
                        if (ddl_domain.options[x].selected) {
                            domainname = ddl_domain.options[x].text;
                            break;
                        }
                    }
                    document.getElementById('<%=TxBx_Email.ClientID %>').value = username + domainname;
                }
                else
                    document.getElementById('<%=TxBx_Email.ClientID %>').value = '';
        }

        <%--/*function CopyUserAddRole() {
            var TxBx_UserRolesValidator = $get('<% = TxBx_UserRolesValidator.ClientID %>');
            var Lbx_UserRoles = $get('<% = Lbx_UserRoles.ClientID %>');
            TxBx_UserRolesValidator.value = Lbx_UserRoles.options[Lbx_UserRoles.selectedIndex].text;
        }*/--%>
    </script>

    <asp:Panel ID="Pnl_GroupActionsStatus" runat="server" BorderColor="ActiveBorder" BorderStyle="Groove"
        ScrollBars="Auto" Style="display: none" CssClass="GroupActionsStatus">
        <table width="100%">
            <tr>
                <td align="right">
                    <asp:LinkButton ID="LB_GroupActionsStatus" runat="server" Text="<%$ Resources:Content,GN000150%>"
                        Style="display: none;" />
                    <asp:ImageButton ID="IB_CloseGroupActionsStatus" runat="server" ImageUrl="~/App_Themes/Default/Images/icons/disabled-icon.gif"
                        AlternateText="<%$ Resources:Content,GN000150%>" />
                </td>
            </tr>
            <tr>
                <td>

                    <EM:AccountGroupActions ID="GA_GroupActionsStatus" runat="server" />
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Button ID="Btn_TargetGroupActionsStatus" runat="server" Text="<%$ Resources:Content,SMI0007%>"
        Style="display: none;" />
    <asp:Button ID="Btn_OkGroupActionsStatus" runat="server" Text="<%$ Resources:Content,SMI0007%>"
        Style="display: none;" />
    <EM:ModalPopupExtender runat="server" ID="MPE_GroupActionsStatus" BackgroundCssClass="modalBackground"
        DropShadow="false" PopupControlID="Pnl_GroupActionsStatus" TargetControlID="Btn_TargetGroupActionsStatus"
        OkControlID="Btn_OkGroupActionsStatus" CancelControlID="IB_CloseGroupActionsStatus">
    </EM:ModalPopupExtender>
    <script lang="javascript">
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender1.ClientID%>');
    </script>
</asp:Content>
