<%@ control language="VB" autoeventwireup="false" inherits="RCC_Clients_CC_FileShare, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>


<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_AddNewFileShare" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,strAddNewFileShare%>" />
                    <asp:Button ID="Btn_SyncAllFileSharesUsage" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,strSyncFSUsage%>" />
                </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,strFileShareName%>" 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_FileShare" 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, strFileShareName %>'>
                        <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="editFile"></asp:LinkButton>                            
                            <asp:LinkButton ID="LB_RemoveFolder" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000377%>" CommandName="removeFile" 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_AddEditFileShare" 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_WFStorageStatus" runat="server" visible="false">
                <div class="col-sm-3 col-xs-12 row-label">
                    <label>
                        <asp:Literal ID="Literal11" runat="server" EnableViewState="false" Text="<%$ Resources:Content,CurrentWFStorageStatus%>" />:</label>
                </div>
                <div class="col-sm-9 col-xs-12">
                    <asp:Literal ID="Ltrl_CurrentWFStorageStatus" runat="server" Text="<%$ Resources:Content,StorageStats %>" />
                </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,strFileShareName%>" />:</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>
            <div class="row">
                <div class="col-sm-3 col-xs-12">
                    <asp:CheckBox ID="ChBx_EnableABE" runat="server" Text="<%$ Resources:Content,strEnableABE %>" />
                </div>
                <div class="col-sm-3 col-xs-12">
                    <asp:CheckBox ID="ChBx_AllowCaching" runat="server" Text="<%$ Resources:Content,strAllowCaching %>" />
                </div>
                <div class="col-sm-3 col-xs-12">
                    <asp:CheckBox ID="ChBx_EncryptDataAccess" runat="server" Text="<%$ Resources:Content,strEncryptDataAccess %>" />
                </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-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>

            <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>
