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

<%@ Register Assembly="obout_Editor" Namespace="OboutInc.Editor" TagPrefix="obout" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>

<div class="col-xs-12 file-manager">
    <div class="card">
        <div class="header">
            <div class="displayInlineBlock">
                <h2>
                    <asp:Literal ID="Ltl_SubsInfo" runat="server" /></h2>
            </div>
            <asp:LinkButton ID="Btn_GoBack" runat="server" Text="<%$ Resources:Content,String1045 %>" CausesValidation="false"
                CssClass="btn btn-primary waves-effect pull-right m-t--4px" />
        </div>
        <div class="body">
            <div class="row">
                <div class="col-xs-12">
                    <div id="Pnl_FM" runat="server" width="100%">
                        <div>
                            <div class="row" id="TR_Toolbar" runat="server" style="border-width: 1px;">
                                <div class="col-lg-2 col-md-3 col-sm-6 col-xs-12">
                                    <asp:LinkButton ID="IBtn_Refresh" runat="server">
                            <div class="info-box-4 hover-zoom-effect">
                                <div class="icon">
                                   <i class="material-icons icon-refresh col-blue"></i>
                                                    </div>
                                <div class="content">
                                    <div class="text"><%= Resources.Content.GN0000412%></div>
                                </div>
                            </div>
                                    </asp:LinkButton>
                                </div>
                                <div class="col-lg-2 col-md-3 col-sm-6 col-xs-12">
                                    <asp:LinkButton ID="IBtn_AddFolder" CssClass="btnAction" runat="server">
                            <div class="info-box-4 hover-zoom-effect">
                                <div class="icon">
                                   <i class="material-icons icon-add-folder col-green"></i>
                                </div>
                                <div class="content">
                                    <div class="text"><%= Resources.Content.FAM0028%></div>
                           
                                </div>
                            </div>
                                    </asp:LinkButton>
                                </div>
                                <div class="col-lg-2 col-md-3 col-sm-6 col-xs-12">
                                    <asp:LinkButton ID="IBtn_AddFile" CssClass="btnAction" runat="server">
                            <div class="info-box-4 hover-zoom-effect">
                                <div class="icon">
                                   <i class="material-icons icon-text-file col-lime"></i>
                                </div>
                                <div class="content">
                                    <div class="text"><%= Resources.Content.CreateFile%></div>
                             
                                </div>
                            </div>
                                    </asp:LinkButton>
                                </div>
                                <div class="col-lg-2 col-md-3 col-sm-6 col-xs-12">
                                    <asp:LinkButton ID="IBtn_Rename" CssClass="btnAction" runat="server">
                            <div class="info-box-4 hover-zoom-effect">
                                <div class="icon">
                                    <i class="material-icons icon-rename col-crm"></i>
                                </div>
                                <div class="content">
                                    <div class="text"><%= Resources.Content.SMI0543%></div>
                             
                                </div>
                            </div>
                                    </asp:LinkButton>
                                </div>
                                <div class="col-lg-2 col-md-3 col-sm-6 col-xs-12">
                                    <asp:LinkButton ID="IBtn_Delete" CssClass="btnAction" runat="server">
                            <div class="info-box-4 hover-zoom-effect">
                                <div class="icon">
                                    <i class="material-icons icon-delete col-red"></i>
                                </div>
                                <div class="content">
                                    <div class="text"><%= Resources.Content.GN0000377%></div>
                                  
                                </div>
                            </div>
                                    </asp:LinkButton>
                                    <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,FAM0041 %>" TargetControlID="IBtn_Delete"></EM:ConfirmButtonExtender>
                                </div>
                                <div class="col-lg-2 col-md-3 col-sm-6 col-xs-12">
                                    <asp:LinkButton ID="IBtn_UploadFile" CssClass="btnAction" runat="server">
                            <div class="info-box-4 hover-zoom-effect">
                                <div class="icon">
                                    <i class="material-icons icon-upload col-teal"></i>
                                </div>
                                <div class="content">
                                    <div class="text"><%= Resources.Content.DGN1110451%></div>
                                 
                                </div>
                            </div>
                                    </asp:LinkButton>
                                </div>
                                <div class="col-lg-2 col-md-3 col-sm-6 col-xs-12">
                                    <asp:LinkButton ID="IBtn_DownloadFile" CssClass="btnAction" runat="server">
                            <div class="info-box-4 hover-zoom-effect">
                                <div class="icon">
                                   <i class="material-icons icon-download col-dark-grey"></i>
                                </div>
                                <div class="content">
                                    <div class="text"><%= Resources.Content.SMI0547%></div>
                                 
                                </div>
                            </div>
                                    </asp:LinkButton>
                                </div>
                                <div class="col-lg-2 col-md-3 col-sm-6 col-xs-12">
                                    <asp:LinkButton ID="IBtn_Zip" CssClass="btnAction" runat="server">
                                        <div class="info-box-4 hover-zoom-effect">
                                            <div class="icon">
                                                <i class="material-icons icon-zip col-crm"></i>
                                            </div>
                                            <div class="content">
                                                <div class="text"><%= Resources.Content.SMI0545%></div>

                                            </div>
                                        </div>
                                    </asp:LinkButton>
                                </div>
                                <div class="col-lg-2 col-md-3 col-sm-6 col-xs-12">
                                    <asp:LinkButton ID="IBtn_UnZip" CssClass="btnAction" runat="server">
                                        <div class="info-box-4 hover-zoom-effect">
                                            <div class="icon">
                                                <i class="material-icons icon-un-zip col-red"></i>
                                            </div>
                                            <div class="content">
                                                <div class="text"><%= Resources.Content.FAM0031%></div>

                                            </div>
                                        </div>
                                    </asp:LinkButton>
                                </div>
                                <div class="col-lg-2 col-md-3 col-sm-6 col-xs-12">
                                    <asp:LinkButton ID="IBtn_CopyFile" CssClass="btnAction" runat="server">
                            <div class="info-box-4 hover-zoom-effect">
                                <div class="icon">
                                    <i class="material-icons icon-copy col-green"></i>
                                </div>
                                <div class="content">
                                    <div class="text"><%= Resources.Content.GN0001159%></div>
                               
                                </div>
                            </div>
                                    </asp:LinkButton>
                                </div>
                                <div class="col-lg-2 col-md-3 col-sm-6 col-xs-12">
                                    <asp:LinkButton ID="IBtn_MoveFile" CssClass="btnAction" runat="server">
                            <div class="info-box-4 hover-zoom-effect">
                                <div class="icon">
                                    <i class="material-icons icon-move col-light-blue"></i>
                                </div>
                                <div class="content">
                                    <div class="text"><%= Resources.Content.Move%></div>
                                  
                                </div>
                            </div>
                                    </asp:LinkButton>
                                </div>
                                <div class="col-lg-2 col-md-3 col-sm-6 col-xs-12 hide">
                                    <asp:LinkButton ID="IBtn_Properties" CssClass="btnAction" runat="server">
                            <div class="info-box-4 hover-zoom-effect">
                                <div class="icon">
                                    <i class="material-icons icon-download col-green"></i>
                                </div>
                                <div class="content">
                                    <div class="text"><%= Resources.Content.FAM0032%></div>
                                   
                                </div>
                            </div>
                                    </asp:LinkButton>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-3 col-xs-6">
                                    <asp:Panel ID="Pnl_Tree" runat="server" Width="100%" Height="400px" ScrollBars="Auto" BorderStyle="Groove" BorderWidth="1px">
                                        <asp:TreeView ID="TV_Browsers" runat="server" ExpandDepth="1" NodeIndent="15" NodeWrap="True">
                                            <NodeStyle HorizontalPadding="5px" />
                                            <SelectedNodeStyle BackColor="LightSteelBlue" />
                                        </asp:TreeView>
                                    </asp:Panel>
                                </div>
                                <div class="col-sm-9 col-xs-12">
                                    <asp:Panel ID="Pnl_Grid" runat="server" Height="400px" ScrollBars="Auto" Width="100%" BorderStyle="Groove" BorderWidth="1px">
                                        <asp:GridView ID="GV_Browsers" runat="server" AllowPaging="false" CssClass="table table-bordered table-striped table-hover"
                                            AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>"
                                            PageSize="500">

                                            <Columns>
                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                    <HeaderTemplate>
                                                        <asp:CheckBox CssClass="option-menu" runat="server" ID="ChkBx_All" onclick="SetCheckedaddon(this.checked, this, 'All');" Text=" " />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox CssClass="option-menu" ID="ChkBx_All" runat="server" onClick="SetCheckedaddon(this.checked, this,'1');" Text=" " />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="<%$ Resources:Content,GN000170%>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                    <ItemTemplate>
                                                        <asp:Image ID="img_Name" runat="server" />
                                                        <asp:LinkButton CausesValidation="false" ID="LB_Name" runat="server" CommandName="CName"></asp:LinkButton>
                                                        <asp:LinkButton CausesValidation="false" ID="LinkButton1" runat="server" Style="display: none;"></asp:LinkButton>
                                                        <div id="Div_menu" runat="server" class="options">
                                                            <EM:HoverMenuExtender ID="HME_options" TargetControlID="LinkButton1"
                                                                PopupControlID="options_Menu" PopupPosition="Left" OffsetX="0" OffsetY="0" PopDelay="50"
                                                                runat="server" HoverCssClass="clickto_options">
                                                            </EM:HoverMenuExtender>
                                                            <asp:Panel ID="options_Menu" runat="server" CssClass="clickto_optionsWrap width-120px" Style="display: none">
                                                                <ul>
                                                                    <li>
                                                                        <asp:LinkButton ID="LB_EditFile" runat="server" Text="<%$Resources:Content,GN0000276 %>" SkinID="linkButtonEdit"
                                                                            CommandName="EditFile"></asp:LinkButton></li>
                                                                    <li>
                                                                        <asp:LinkButton ID="LB_Preview" Text="<%$ Resources:Content,FAM0043%>" SkinID="LinkButtonPreview"
                                                                            CommandName="Preview" runat="server" /></li>
                                                                </ul>
                                                            </asp:Panel>
                                                        </div>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="<%$ Resources:Content,DGN1119982%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_Size" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000673%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_Type" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="<%$ Resources:Content,GN00001496%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_DateCreated" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="<%$ Resources:Content,SMI0439%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_DateModified" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            <PagerTemplate>
                                                <EM:Pager ID="Pager1" runat="server" />
                                            </PagerTemplate>
                                        </asp:GridView>
                                    </asp:Panel>
                                </div>
                            </div>
                        </div>
                    </div>

                    <asp:Label ID="Lbl_Test" runat="server" Visible="false"></asp:Label>

                    <div class="card" id="Pnl_Edit" runat="server" style="display: none;">
                        <div class="header">
                            <h3>
                                <asp:Label ID="Ltrl_Operation" runat="server" Text="<%$ Resources:Content,GN00001320 %>"></asp:Label></h3>
                        </div>
                        <div class="body">
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <label>
                                        <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,SMI0423 %>"></asp:Literal>:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <asp:DropDownList ID="DDL_Operations" runat="server" Enabled="false">
                                            <asp:ListItem Text="<%$ Resources:Content,FAM0028 %>" Value="1" />
                                            <asp:ListItem Text="<%$ Resources:Content,FAM0029 %>" Value="2" />
                                            <asp:ListItem Text="<%$ Resources:Content,CreateFile %>" Value="3" />
                                            <asp:ListItem Text="<%$ Resources:Content,FAM0035 %>" Value="4" />
                                            <asp:ListItem Text="<%$ Resources:Content,FAM0036 %>" Value="5" />
                                            <asp:ListItem Text="<%$ Resources:Content,SMI0543 %>" Value="6" />
                                            <asp:ListItem Text="<%$ Resources:Content,FAM0044 %>" Value="7" />
                                            <asp:ListItem Text="<%$ Resources:Content,FAM0043 %>" Value="8" />
                                        </asp:DropDownList>
                                        <asp:HiddenField ID="HF_Operations" runat="server" Value="1" />
                                    </div>
                                </div>
                            </div>
                            <div class="row" id="TR_Name" runat="server">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <label>*<asp:Label ID="Ltl_Name" runat="server" Text="<%$ Resources:Content,FAM0037 %>"></asp:Label>:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_Name" runat="server" />
                                            <asp:RequiredFieldValidator ID="RFV_TxBx_Name" runat="server" ControlToValidate="TxBx_Name"
                                                Display="None" SetFocusOnError="True" ValidationGroup="FM" Enabled="false"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="REV_TxBx_Name" runat="server" ControlToValidate="TxBx_Name"
                                                ValidationExpression="<%$ Resources:MPRegex,FileFolderName %>"
                                                ErrorMessage="Invalid file/folder name." Display="None" SetFocusOnError="true" ValidationGroup="FM"></asp:RegularExpressionValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row" id="TR_FileContents" runat="server" style="display: none;">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <label>*<asp:Label ID="Label2" runat="server" Text="<%$ Resources:Content,SMI0421 %>"></asp:Label>:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <obout:Editor ID="Editor1" Width="700" Submit="false" ShowWaitMessage="false" AjaxWait="false" runat="server" Appearance="custom" ShowQuickFormat="false">
                                        <Buttons>
                                            <obout:Select Name="FontName" />
                                            <obout:Select Name="FontSize" />
                                            <obout:HorizontalSeparator />
                                            <obout:Toggle Name="Bold" />
                                            <obout:Toggle Name="Italic" />
                                            <obout:Toggle Name="Underline" />
                                            <obout:Toggle Name="StrikeThrough" />
                                            <obout:Toggle Name="SuperScript" />
                                            <obout:Toggle Name="SubScript" />
                                            <obout:HorizontalSeparator />
                                            <obout:Method Name="ForeColor" />
                                            <obout:Method Name="ForeColorClear" />
                                            <obout:Method Name="BackColor" />
                                            <obout:Method Name="BackColorClear" />
                                            <obout:VerticalSeparator />
                                            <obout:Method Name="Redo" />
                                            <obout:Method Name="Undo" />
                                            <obout:HorizontalSeparator />
                                            <obout:Method Name="Cut" />
                                            <obout:Method Name="Copy" />
                                            <obout:Method Name="Paste" />
                                            <obout:Method Name="PasteText" />
                                            <obout:HorizontalSeparator />
                                            <obout:Method Name="Paragraph" />
                                            <obout:Method Name="GetFormat" />
                                            <obout:Method Name="ApplyFormat" />
                                            <obout:HorizontalSeparator />
                                            <obout:Method Name="JustifyLeft" />
                                            <obout:Method Name="JustifyCenter" />
                                            <obout:Method Name="JustifyRight" />
                                            <obout:Method Name="JustifyFull" />
                                            <obout:HorizontalSeparator />
                                            <obout:Method Name="OrderedList" />
                                            <obout:Method Name="BulletedList" />
                                            <obout:HorizontalSeparator />
                                            <obout:Method Name="InsertHR" />
                                            <obout:Method Name="CreateLink" />
                                            <obout:Method Name="InsertAnchor" />
                                            <obout:Method Name="InsertIMG" />
                                            <obout:HorizontalSeparator />
                                            <obout:Method Name="ClearStyles" />
                                        </Buttons>

                                    </obout:Editor>
                                </div>
                            </div>
                            <div id="TR_CopyMove" runat="server" style="display: none;">
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <label>
                                            <asp:Label ID="Label3" runat="server" Text="<%$ Resources:Content,USM0160 %>"></asp:Label>:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:CheckBox ID="CB_OverWrite" runat="server" Text=" " />
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <label>
                                            <asp:Label ID="Ltl_Folders" runat="server" Text="<%$ Resources:Content,SMI060 %>"></asp:Label>:</label>
                                    </div>
                                    <div class="col-sm-3 col-xs-12 hide">
                                        <div class="form-group">
                                            <asp:DropDownList ID="DDL_Folders" runat="server" Visible="false" />
                                        </div>
                                    </div>
                                    <div class="col-sm-6 col-xs-12">
                                        <asp:Panel ID="Panel1" runat="server" Width="100%" Height="400px" class="fm_tree" ScrollBars="Auto" BorderStyle="Groove" BorderWidth="1px">
                                            <ajax:UpdatePanel ID="UP_AvailableMBoxs" runat="server">
                                                <ContentTemplate>
                                                    <asp:TreeView ID="TV_Folders" runat="server" ExpandDepth="1" NodeIndent="15" NodeWrap="True" CssClass="table">
                                                        <NodeStyle HorizontalPadding="5px" />
                                                        <SelectedNodeStyle BackColor="LightSteelBlue" />
                                                    </asp:TreeView>
                                                </ContentTemplate>
                                            </ajax:UpdatePanel>
                                        </asp:Panel>
                                    </div>
                                </div>
                            </div>
                            <div class="row" id="TR_Upload" runat="server" style="display: none;">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <label>*<asp:Label ID="Label4" runat="server" Text="<%$ Resources:Content,FAM0038 %>"></asp:Label>:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="fileupload fileupload-new" data-provides="fileupload">
                                            <span class="btn btn-primary btn-file"><span class="fileupload-new"><%= Resources.Content.strSelectFile%></span>
                                                <span class="fileupload-exists"><%= Resources.Content.GN0000385%></span>
                                                <asp:FileUpload ID="FU_UploadFile" runat="server" />
                                                <asp:RequiredFieldValidator ID="RFV_FU_UploadFile" runat="server" ControlToValidate="FU_UploadFile"
                                                    Display="None" SetFocusOnError="True" ValidationGroup="FM" Enabled="false"></asp:RequiredFieldValidator>
                                            </span>
                                            <span class="fileupload-preview"></span>
                                            <a href="#" class="close fileupload-exists" data-dismiss="fileupload" style="float: none">×</a>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-5 col-xs-12">
                                    <asp:Literal ID="Ltl_DownLoadCSV" runat="server"></asp:Literal>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-xs-12">
                                    <asp:ValidationSummary ID="ValidationSummary3" runat="server" ShowMessageBox="true"
                                        ShowSummary="false" ValidationGroup="FM" HeaderText="<%$ Resources:Content,EM000001%>" />
                                    <asp:Button ID="Btn_Save" CausesValidation="true" ValidationGroup="FM"
                                        class="btn btn-primary waves-effect btnAction" runat="server" Text="<%$ Resources:Content,GN0000281%>" />
                                    <asp:Button ID="Btn_Cancel" CausesValidation="false"
                                        class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000572%>" />
                                </div>
                            </div>
                        </div>
                    </div>

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