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

<%@ Register Src="~/RCC/Clients/CC/GetComments.ascx" TagName="GetComments" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/AccountStatment.ascx" TagName="AccountStatment" TagPrefix="EM" %>
<%@ Register Src="AccountAddons.ascx" TagName="AccountAddons" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/GenerateInvoice.ascx" TagName="GenerateInvoice" TagPrefix="EM" %>
<%@ Register Src="../CC/Notes.ascx" TagName="Notes" TagPrefix="EM" %>
<%@ Register Src="CC/WFH.ascx" TagName="WFH" TagPrefix="EM" %>
<%@ Register Src="CC/WFH_Resources.ascx" TagName="WFH_Resources" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/PackageSwitch.ascx" TagName="PackageSwitch" TagPrefix="EM" %>
<%@ Register Src="~/Template/ResourcesQuota.ascx" TagName='ResourceQuota' TagPrefix='EM' %>
<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI" TagPrefix="cc1" %>
<%@ Register Src="~/RCC/Clients/CC/CancelSubscription.ascx" TagName="CancelSubscription" TagPrefix="EM" %>
<%@ Register Src="~/PCC/DC/CC/ADOrgs.ascx" TagName="ADOrgs" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Content" runat="Server">    
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h2>
                    <asp:Literal ID="Ltl_SubsInfo" runat="server" /></h2>
            </div>
            <div class="body">
                <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Dummy" Style="display: none" runat="server" />

                <EM:TabContainer ID="TC_ADHosting" runat="server" OnClientActiveTabChanged="loadTabPanel">
                    <EM:TabPanel ID="Tab_GeneralInfo" runat="server" HeaderText="<%$ Resources:Content,GN0000578%>">
                        <ContentTemplate>
                            <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Tab0" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent0" runat="server">
                                <div class="row Div_OpsRow" id="Div_OpsRow" runat="server">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3><%= Resources.Content.GN00001320%>  </h3>
                                            </div>
                                            <div class="body">
                                                <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_PutOnHold" runat="server" Enabled="false" Text="<%$ Resources:Content,GN0000756%>" />
                                                <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_GenerateRenewalInvoice" runat="server"
                                                    Text="<%$ Resources:Content,GN00001482%>" />
                                                <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_CancelSub" runat="server" Text="<%$ Resources:Content,SPT002010%>" />
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <EM:WFH ID="WFH1" runat="server" />
                                <EM:Notes ID="Notes_ADAccount" runat="server" />

                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_Resources" runat="server" HeaderText="<%$ Resources:Content,DEV1008%>">
                        <ContentTemplate>
                            <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Tab1" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                                <div id="Tbl_Operations" runat="server" class="tblNewListing Div_OpsRow">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3><%= Resources.Content.GN00001320%>  </h3>
                                                </div>
                                                <div class="body">
                                                    <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_EditResources" runat="server" Text="<%$ Resources:Content,SPT002193%>" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <EM:WFH_Resources ID="WFH_Resources01" runat="server" />
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_Addons" runat="server" HeaderText="<%$ Resources:Content,GN00001489%>">
                        <ContentTemplate>
                            <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Tab2" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent2" runat="server" Visible="false">

                                <EM:AccountAddons ID="AA_Hosting" runat="server" />
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_Billing" runat="server" HeaderText="<%$ Resources:Content,GN00001490%>">
                        <ContentTemplate>
                            <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Tab3" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent3" runat="server" Visible="false">
                                <EM:AccountStatment ID="AS_Hosting" runat="server"></EM:AccountStatment>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_Organizations" runat="server" HeaderText="<%$ Resources:Content,DGN1110357%>">
                        <ContentTemplate>
                            <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Tab4" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent4" runat="server" Visible="false">
                                <EM:ADOrgs ID="ADOrgs1" runat="server" />
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_WorkFolders" runat="server" HeaderText="<%$ Resources:Content,Workfolders%>">
                        <ContentTemplate>
                            <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Tab5" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent5" runat="server" Visible="false">
                                <div id="Div_Listing" runat="server">
                                    <div class="row Div_OpsRow" id="Div_Operations" runat="server">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <%= Resources.Content.GN00001320%>                                                                                                                                 
                                                    </h3>
                                                </div>
                                                <div class="body">
                                                    <asp:Button ID="Btn_AddNewWorkfolder" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,strAddNewWorkfolder%>" />
                                                    <asp:Button ID="Btn_SyncAllWorkFoldersUsage" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,strSyncWFUsage%>" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <asp:Panel CssClass="row" ID="Pnl_Search" runat="server" DefaultButton="Btn_Search">
                                        <div class="panel-group search-panel" id="AS_WFHList" role="tablist" aria-multiselectable="true">
                                            <div class="col-xs-12" role="tab" id="SH_WFHList">
                                                <div class="card">
                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_WFHList" href="#<%= CSB_WFHList.ClientID%>" aria-expanded="true" aria-controls="SH_WFHList">
                                                        <h3>
                                                            <%= Resources.Content.GN0000395%>
                                                        </h3>
                                                    </div>
                                                    <div id="CSB_WFHList" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_WFHList" aria-expanded="false">
                                                        <div class="row">
                                                            <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="td_Server">
                                                                <div class="form-group form-float">
                                                                    <asp:DropDownList ID="DDl_Server" runat="server"></asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <asp:DropDownList ID="DDL_QuotaTemplateSearch" runat="server"></asp:DropDownList>
                                                                </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_SyncShareNameFilter" runat="server"></asp:TextBox>
                                                                        <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SyncShareName%>" class="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_PathFilter" runat="server"></asp:TextBox>
                                                                        <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String162%>" class="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_Status" runat="server">
                                                                        <asp:ListItem Text="<%$ Resources:Content, SelectStatus %>" Value="-1" Selected="True"></asp:ListItem>
                                                                        <asp:ListItem Text="<%$ Resources:Content, GN000195 %>" Value="1"></asp:ListItem>
                                                                        <asp:ListItem Text="<%$ Resources:Content, Disabled %>" Value="2"></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:Button ID="Btn_Search" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                                    <asp:Button ID="Btn_Clear" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                                                        Text="<%$ Resources:Content,String289 %>" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                                ID="GV_Workfolders" AllowPaging="true" AllowSorting="true" runat="server" AutoGenerateColumns="False"
                                                DataKeyNames="HostedOrgId,Name,OrgName,DomainName">
                                                <Columns>
                                                    <asp:TemplateField HeaderStyle-CssClass="col-sm-3" ItemStyle-CssClass="col-sm-3" HeaderText='<%$ Resources:Content, SyncShareName %>'>
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltl_SyncShareName" runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderStyle-CssClass="col-sm-5" ItemStyle-CssClass="col-sm-5" HeaderText='<%$ Resources:Content, strDetails %>'>
                                                        <ItemTemplate>
                                                            <table class="table small">
                                                                <tbody>
                                                                    <tr id="TR_Path" runat="server" visible="false">
                                                                        <td class="col-xs-4 row-label">
                                                                            <asp:Label ID="Literal6" runat="server"
                                                                                EnableViewState="false" Text='<%$ Resources:Content,String162%>'></asp:Label>:
                                                                        </td>
                                                                        <td class="col-xs-8">
                                                                            <asp:Literal ID="Ltl_Path" runat="server" />
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="col-xs-4 row-label">
                                                                            <asp:Label ID="Label5" runat="server"
                                                                                EnableViewState="false" Text='<%$ Resources:Content,MIR1112%>'></asp:Label>:
                                                                        </td>
                                                                        <td class="col-xs-8">
                                                                            <asp:Literal ID="Ltl_Allocated" runat="server" />
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="col-xs-4 row-label">
                                                                            <asp:Label ID="Label1" runat="server"
                                                                                EnableViewState="false" Text='<%$ Resources:Content,MIR1122%>'></asp:Label>:
                                                                        </td>
                                                                        <td class="col-xs-8">
                                                                            <asp:Literal ID="Ltl_SpaceUsedInMB" runat="server" />
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="col-xs-4 row-label">
                                                                            <asp:Label ID="Label6" runat="server"
                                                                                EnableViewState="false" Text='<%$ Resources:Content,QuotaTemplateName%>'></asp:Label>:
                                                                        </td>
                                                                        <td class="col-xs-8">
                                                                            <asp:Literal ID="Ltl_QuotaTemplateName" runat="server" />
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="col-xs-4 row-label">
                                                                            <asp:Label ID="Label3" runat="server"
                                                                                EnableViewState="false" Text='<%$ Resources:Content,LastSyncedAt%>'></asp:Label>:
                                                                        </td>
                                                                        <td class="col-xs-8">
                                                                            <asp:Literal ID="Ltl_SyncTimeStamp" runat="server"></asp:Literal>
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>

                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderStyle-CssClass="col-sm-1" ItemStyle-CssClass="col-sm-1" HeaderText='<%$ Resources:Content, String385 %>'>
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltl_Status" runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="LB_EditFolder" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$Resources:Content,Edit %>" CommandName="editFolder"></asp:LinkButton>
                                                            <asp:LinkButton ID="LB_EnableDisable" runat="server" CssClass="btn btn-primary waves-effect btnAction" CommandName="EnableDisableFolder"></asp:LinkButton>
                                                            <asp:LinkButton ID="LB_RemoveFolder" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000377%>" CommandName="removeFolder" runat="server" />
                                                            <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" TargetControlID="LB_RemoveFolder"></EM:ConfirmButtonExtender>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <%--PagerTemplate Start--%>
                                                <PagerTemplate>
                                                    <EM:Pager ID="Pager1" runat="server" />
                                                </PagerTemplate>
                                                <%--PagerTemplate End--%>
                                            </asp:GridView>
                                        </div>
                                    </div>
                                </div>
                                <div id="Div_AddEditWorkfolder" runat="server" visible="false">
                                    <div class="card">
                                        <div class="header">
                                            <h3>
                                                <asp:Literal ID="Ltl_Heading" runat="server" /></h3>
                                        </div>
                                        <div class="body">
                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <label>
                                                        <asp:Literal ID="Literal10" runat="server" EnableViewState="false" Text="<%$ Resources:Content,StorageStatus%>" />:</label>
                                                </div>
                                                <div class="col-sm-9 col-xs-12">
                                                    <asp:Literal ID="Ltrl_StorageStatus" runat="server" Text="<%$ Resources:Content,StorageStats %>" />
                                                </div>
                                            </div>
                                            <%--<div class="row" id="Div_Server" runat="server" visible="false">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <label>
                                                        <asp:Literal ID="Literal4" runat="server" EnableViewState="false" Text="<%$ Resources:Content,ServerFQDN%>" />:</label>
                                                </div>
                                                <div class="col-sm-9 col-xs-12">
                                                    <asp:Literal ID="Ltrl_ServerFQDN" runat="server" />
                                                </div>
                                            </div>--%>
                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <label>
                                                        *<asp:Literal ID="Literal1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SyncShareName%>" />:</label>
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_SyncShareName" runat="server" onChange="CopyToPath();" MaxLength="75" />
                                                        </div>
                                                    </div>
                                                    <asp:RequiredFieldValidator ID="RFV_TxBx_SyncShareName" runat="server" ControlToValidate="TxBx_SyncShareName"
                                                        Display="None" ValidationGroup="syncshare" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div class="row" id="Div_StorageLocation" runat="server" visible="false">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <label>
                                                        *<asp:Literal ID="Literal2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String162%>" />:</label>
                                                </div>
                                                <div class="col-sm-9 col-xs-12 break-word-all row-label">
                                                    <asp:Label ID="Lbl_StorageLocation" runat="server" />
                                                </div>
                                                <%--<div class="col-sm-5 col-xs-12 hide">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_Path" runat="server" placeholder="Work Folder Name here" />
                                                        </div>
                                                    </div>
                                                    <asp:RequiredFieldValidator ID="RFV_TxBx_Path" runat="server" ControlToValidate="TxBx_Path"
                                                        Display="None" ValidationGroup="syncshare" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                </div>--%>
                                            </div>
                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <label>
                                                        <asp:Literal ID="Literal3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,selectQuotaTemplate%>" />:</label>
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:DropDownList ID="DDL_QuotaTemplate" runat="server" AutoPostBack="true" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="row" id="Div_SizeCustom" runat="server" visible="false">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <label>
                                                        *<asp:Literal ID="Literal4" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strSpecifyCustomSize%>" />:</label>
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_SizeCustom" runat="server" Text="1" />
                                                        </div>
                                                    </div>
                                                    <asp:RequiredFieldValidator ID="RFV_TxBx_SizeCustom" runat="server" ControlToValidate="TxBx_SizeCustom"
                                                        Display="None" ValidationGroup="syncshare" SetFocusOnError="True" Enabled="false"></asp:RequiredFieldValidator>
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:DropDownList ID="DDL_SizeUnit" runat="server">
                                                            <asp:ListItem Text="MB" Value="MB"></asp:ListItem>
                                                            <asp:ListItem Text="GB" Value="GB"></asp:ListItem>
                                                            <asp:ListItem Text="TB" Value="TB"></asp:ListItem>
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <label>
                                                        <asp:Literal ID="Literal5" runat="server" EnableViewState="false" Text="<%$ Resources:Content,userFolderStructure%>" />:</label>
                                                </div>
                                                <div class="col-sm-9 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:Label ID="Label4" runat="server" Text="<%$ Resources:Content,userFolderStructureNotice%>" EnableViewState="false" /><br />
                                                        <br />
                                                        <asp:RadioButton ID="RB_Alias" runat="server" Text="<%$ Resources:Content,UserAlias%>" Checked="true" GroupName="FolderStructure" CssClass="row-label" /><br />
                                                        <asp:Label ID="Lbl_AliasNotice" runat="server" Text="<%$ Resources:Content,UserAliasNotice%>" EnableViewState="false" /><br />
                                                        <asp:RadioButton ID="RB_UserAliasAtDomain" runat="server" Text="<%$ Resources:Content,UserAliasAtDomain%>" GroupName="FolderStructure" CssClass="row-label" /><br />
                                                        <asp:Label ID="Lbl_UserAliasAtDomainNotice" runat="server" Text="<%$ Resources:Content,UserAliasAtDomainNotice%>" EnableViewState="false" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <label>
                                                        <asp:Literal ID="Literal9" runat="server" EnableViewState="false" Text="<%$ Resources:Content,maxFileUploadSize%>" />:</label>
                                                </div>
                                                <div class="col-sm-3 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:DropDownList ID="DDL_MaxFileUploadSize" runat="server" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <label>
                                                        <asp:Literal ID="Literal6" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Description%>" />:</label>
                                                </div>
                                                <div class="col-sm-9 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:TextBox ID="TxBx_Description" runat="server" TextMode="MultiLine" MaxLength="150" Columns="5" Rows="5" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-xs-12 row-label">
                                                    <label>
                                                        <asp:Literal ID="Literal7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SyncAccess%>" />:</label>
                                                </div>
                                                <div class="col-xs-12">
                                                    <EM:AddSelectableSelected ID="UCSyncShare" runat="server" />
                                                </div>
                                                <div class="col-xs-12 row-label">
                                                    <asp:CheckBox ID="CB_DisableInheritPerms" runat="server" Text="<%$ Resources:Content,disableInheritPerms %>" />
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <label>
                                                        <asp:Literal ID="Literal8" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DevicePolicies%>" />:</label>
                                                </div>
                                                <div class="col-sm-9 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:CheckBox ID="CB_EncryptWorkfolders" runat="server" Text="<%$ Resources:Content,encryptWorkfolders%>" /><br />
                                                        <br />
                                                        <asp:CheckBox ID="CB_AutoLockScreen" runat="server" Text="<%$ Resources:Content,autoLockScreen%>" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <asp:ValidationSummary ID="VS_SyncShare" runat="server" HeaderText='<%$ Resources:Content, EM000001 %>'
                                                        ShowMessageBox="True" ShowSummary="False" ValidationGroup="syncshare" />

                                                    <asp:Button ID="Btn_Save" Text="<%$ Resources:Content,GN0000281%>" class="btn btn-primary waves-effect btnAction" runat="server" ValidationGroup="syncshare" />
                                                    <asp:Button ID="Btn_Cancel" Text="<%$ Resources:Content,GN0000572%>" runat="server" class="btn btn-primary waves-effect" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                </EM:TabContainer>

                <ajax:UpdatePanel ID="UP_Resources" runat="server" UpdateMode="Always">
                    <ContentTemplate>
                        <div class="ResourceQuota">
                            <asp:Panel ID="Pnl_Resources" runat="server" BorderColor="ActiveBorder" BorderStyle="Groove"
                                ScrollBars="Auto" CssClass="ResourceQuota-panel" Style="display: none">
                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <%--<div class="header">
                                                <h3><%= Resources.Content.GN00001320%>  </h3>
                                            </div>--%>
                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-xs-12 row-label">
                                                        <asp:Label ID="Lbl_ResourceError" runat="server" ForeColor="red" Font-Bold="true" Visible="false"></asp:Label>
                                                    </div>
                                                </div>
                                                <asp:GridView ID="GV_Resources" runat="server" AllowPaging="true" CssClass="table table-bordered table-hove table-striped table-responsive"
                                                    AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>"
                                                    PageSize="500">

                                                    <Columns>
                                                        <asp:TemplateField HeaderText="<%$Resources:Content,DEV1008%>" HeaderStyle-CssClass="col-xs-4">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_ResourceID" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$Resources:Content,DEV1002%>" HeaderStyle-CssClass="col-xs-2">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_TotalResources" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$Resources:Content,DEV1003%>" HeaderStyle-CssClass="col-xs-2">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_UsedResources" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$Resources:Content,DEV1004%>" HeaderStyle-CssClass="col-xs-2">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_AvailableResources" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$Resources:Content,DEV1005%>" HeaderStyle-CssClass="col-xs-2">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_RequestedResources" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                </asp:GridView>

                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Done" runat="server" Text="<%$ Resources:Content,GN0000858%>" SkinID="okbutton" />
                                                        <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Display" runat="server" Style="display: none;" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </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>
                    </ContentTemplate>
                </ajax:UpdatePanel>

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

    <asp:Panel ID="Panel1" runat="server" Style="display: none" CssClass="width-modal-popup-auto">
        <EM:CancelSubscription ID="UCCancelSubscription" runat="server" />
    </asp:Panel>
    <EM:ModalPopupExtender runat="server" ID="MP1" BackgroundCssClass="modalBackground"
        DropShadow="false" PopupControlID="Panel1" TargetControlID="Btn_Dummy">
    </EM:ModalPopupExtender>

    <asp:Button CssClass="btn btn-primary waves-effect" ID="Button1" Style="display: none" runat="server" />
    <asp:Panel ID="Panel3" runat="server" CssClass="width-modal-popup-auto" Style="display: none">
        <EM:GetComments ID="GetComments" runat="server" />
    </asp:Panel>
    <EM:ModalPopupExtender runat="server" ID="MPE_GetReason" BackgroundCssClass="modalBackground"
        DropShadow="false" PopupControlID="Panel3" TargetControlID="Button1">
    </EM:ModalPopupExtender>


    <%--Resource Quota Window Starts--%>
    <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Dummy4" Style="display: none" runat="server" />
    <asp:Panel ID="Pnl_ResourceQuota" runat="server" Visible='false' CssClass="width-modal-popup-auto">
        <EM:ResourceQuota runat="server" ID="ResourceQuotaView" />
    </asp:Panel>
    <EM:ModalPopupExtender runat="server" ID="MPE_ResourceQuota" BackgroundCssClass="modalBackground"
        DropShadow="false" PopupControlID="Pnl_ResourceQuota" TargetControlID="Btn_Dummy4"
        Enabled='false'>
    </EM:ModalPopupExtender>
    <%--Resource Quota Window Ends--%>
    <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Dummy3" Style="display: none" runat="server" />
    <asp:Panel ID="Pnl_PackageSwitch" CssClass="width-modal-popup-auto" runat="server" Style="display: none">
        <EM:PackageSwitch runat="server" ID="PackageSwitch" OnPackageChange="PackageSwitchPopUpShow" />
    </asp:Panel>
    <EM:ModalPopupExtender runat="server" ID="MPE_PackageSwitch" BackgroundCssClass="modalBackground"
        DropShadow="false" PopupControlID="Pnl_PackageSwitch" TargetControlID="Btn_Dummy3">
    </EM:ModalPopupExtender>
    <ajax:UpdatePanel ID="UP_CRM" runat="server">
        <ContentTemplate>
            <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Dummy2" Style="display: none" runat="server" />
            <asp:Panel ID="Panel2" runat="server" CssClass="width-modal-popup-auto" Style="display: none">
                <EM:GenerateInvoice ID="GenerateInvoice" runat="server" />
            </asp:Panel>
            <EM:ModalPopupExtender runat="server" ID="MPE_Invoice" BackgroundCssClass="modalBackground"
                DropShadow="false" PopupControlID="Panel2" TargetControlID="Btn_Dummy2">
            </EM:ModalPopupExtender>
        </ContentTemplate>
    </ajax:UpdatePanel>
    <script type="text/javascript">

        function CopyToPath() {
            var oldPath = $('#<%= Lbl_StorageLocation.ClientID%>').html();
            $('#<%= Lbl_StorageLocation.ClientID%>').html(oldPath + '\\' + $get('<%=TxBx_SyncShareName.ClientID%>').value);
        }

        function onOk() {
            if (document.getElementById('ctl00_CPH_Content_TxBx_ItemComments').value != '') {
                __doPostBack('ctl00$CPH_Content$Btn_Pop_OK', '');
            }
            else {
                alert("Please enter comments.");
                $find('ctl00_CPH_Content_MP1').show();
            }

        }
        function onCancel() {
            //  __doPostBack('ctl00$RightContentPlaceHolder$Btn_Pop_Cancel','');
            //      __doPostBack('ctl00$RightContentPlaceHolder$GV_TicketList$ctl02$LBtn_Del','')
        }

    </script>
</asp:Content>
