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

<div class="col-xs-12">
    <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 %>" CssClass="pull-right" />
        </div>
        <div class="body">
            <div class="row">
                <div class="col-xs-12">
                    <asp:Panel ID="MainPanel" runat="server" DefaultButton="BTN_ProtectDirectory">
                        <asp:ValidationSummary ID="VS_ProtectValidation" runat="server" ShowMessageBox="true"
                            ShowSummary="false" ValidationGroup="Password" HeaderText="<%$ Resources:Content,EM000001%>" />
                        <div class="row Div_OpsRow" id="Panel1" runat="server">
                            <div class="card" id="TBL_Operations" runat="server" visible="false">
                                <div class="heading">
                                    <h3><%= Resources.Content.GN00001320%></h3>
                                </div>
                                <div class="body">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:Button ID="Btn_AddUser" runat="server" CausesValidation="false" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,DEV1101%>" UseSubmitBehavior="False" />
                                            <asp:Button ID="LB_ListUsers" runat="server" CausesValidation="false" Visible="false"
                                                class="btn btn-primary waves-effect" Text="<%$ Resources:Content,SMI0572%>"></asp:Button>
                                            <asp:Button ID="LB_ListWebSites" runat="server" CausesValidation="false" class="btn btn-primary waves-effect"
                                                Text="<%$ Resources:Content,L00137%>" UseSubmitBehavior="False" Visible="false"></asp:Button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="row" id="PNL_AddUser" runat="server">
                            <div class="card">
                                <div class="header">
                                    <h3>
                                        <asp:Literal ID="L_AddEditUser" runat="server" Text="<%$ Resources:Content,L00125%>" EnableViewState="false" /></h3>
                                </div>
                                <div class="body">
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>
                                                <asp:Label ID="LBL_VirtualFolderPath" runat="server" Text="<%$ Resources:Content,SMI0573%>"></asp:Label></label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TB_PhysicalFolderPath" runat="server" ReadOnly="True">\</asp:TextBox>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>
                                                *<asp:Label ID="LBL_UserName" runat="server" Text="<%$ Resources:Content,SMI0574%>"></asp:Label></label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TB_UserName" runat="server"></asp:TextBox>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>
                                                *<asp:Label ID="LBL_Pwd" runat="server" Text="<%$ Resources:Content,SMI0575%>"></asp:Label></label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TB_Pwd" runat="server" TextMode="Password">Passw0rd</asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RFV_PWD" runat="server" ControlToValidate="TB_Pwd"
                                                        ValidationGroup="Password" EnableClientScript="true" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>
                                                *<asp:Label ID="LBL_ConfirmPwd" runat="server" Text="<%$ Resources:Content,SMI0576%>"></asp:Label></label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TB_ConfirmPwd" runat="server" TextMode="Password">Passw0rd</asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RFV_ConfirmPwd" runat="server" ControlToValidate="TB_ConfirmPwd"
                                                        ValidationGroup="Password" EnableClientScript="true" Text="" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                    <asp:CompareValidator ID="CV_passwordValidator" runat="server" ControlToCompare="TB_Pwd"
                                                        ControlToValidate="TB_ConfirmPwd" ValidationGroup="Password" ErrorMessage="Passwords donot match"
                                                        SetFocusOnError="True"></asp:CompareValidator>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:Button ID="BTN_ProtectDirectory" runat="server" ValidationGroup="Password" OnClick="BTN_ProtectDirectory_Click"
                                                Text="<%$ Resources:Content,SMI0577%>" CausesValidation="true" class="btn btn-primary waves-effect" />
                                            <asp:Button ID="BTN_Cancel" runat="server" OnClick="BTN_Cancel_Click" CausesValidation="false"
                                                Text="<%$ Resources:Content,GN0000572%>" UseSubmitBehavior="False" class="btn btn-primary waves-effect" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <asp:Panel ID="pnl_MainContent" runat="server" DefaultButton="BTN_ProtectDirectory">
                            <div class="row">
                                <div class="col-xs-12">
                                    <div class="card">
                                        <div class="header" id="TBL_DomainFolder" runat="server">
                                            <h3><%= Resources.Content.L00122%></h3>
                                        </div>
                                        <div class="body">
                                            <div class="row" id="TBL_ViewFolders" runat="server">
                                                <div class="col-xs-12">
                                                    <asp:TreeView ID="TV_Browsers" runat="server" LineImagesFolder="~/TreeLineImages"
                                                        ShowLines="True" ExpandDepth="2" ImageSet="XPFileExplorer" NodeIndent="15" CssClass="table">
                                                        <ParentNodeStyle Font-Bold="False" />
                                                        <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
                                                        <SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" HorizontalPadding="0px"
                                                            VerticalPadding="0px" />
                                                        <NodeStyle Font-Names="Tahoma" Font-Size="8pt" ForeColor="Black" HorizontalPadding="2px"
                                                            NodeSpacing="0px" VerticalPadding="2px" />
                                                    </asp:TreeView>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <asp:GridView ID="GV_Users" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                                        CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content,SMI0578%>">
                                                        <Columns>
                                                            <asp:TemplateField HeaderText="<%$ Resources:Content,USM0061%>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="LBL_UserName" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.UserName") %>'>
                                                                    </asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="<%$ Resources:Content,L00129%>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="LBL_FolderProtected" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.ProtectedFolderPath") %>'>
                                                                    </asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="<%$ Resources:Content,L00128%>" Visible="False" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="LBL_WebSiteName" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.ProtectedFolderName") %>'
                                                                        Visible="false">
                                                                    </asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="<%$ Resources:Content,GN00001320%>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="LB_EditUser" runat="server" PostBackUrl="~/RCC/Hostmatic/ProtectedFolders.aspx?action=adduserPage&path="
                                                                        CausesValidation="false" ToolTip="Edit User" OnClick="LB_EditUser_Click" CssClass="btn btn-primary waves-effect">Change Password</asp:LinkButton>
                                                                    <asp:LinkButton ID="LB_RemoveUser" runat="server" CssClass="btn btn-primary waves-effect btnAction" PostBackUrl="~/RCC/Hostmatic/ProtectedFolders.aspx?action=removeuser&amp;user="
                                                                        CausesValidation="false" ToolTip="Remove User" OnClick="LB_RemoveUser_Click">Remove User</asp:LinkButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                    </asp:GridView>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <asp:GridView ID="GV_WebSites" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                                        EmptyDataText="<%$ Resources:Content,L00126%>" CssClass="table table-bordered table-striped table-hover">
                                                    </asp:GridView>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <asp:GridView ID="GV_WebFolders" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                                        CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content,SMI0579%>">
                                                        <Columns>
                                                            <asp:TemplateField HeaderText="<%$ Resources:Content,GN00001493%>" HeaderStyle-CssClass="col-xs-6" ItemStyle-CssClass="col-xs-6">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="LBL_Address" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.FolderPath") %>'>
                                                                    </asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000278%>" HeaderStyle-CssClass="col-xs-6" ItemStyle-CssClass="col-xs-6">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="LB_Remove" runat="server" OnClick="LB_Remove_Click" PostBackUrl="~/RCC/Hostmatic/ProtectedFolders.aspx?action=remove&amp;address="
                                                                        class="btn btn-primary waves-effect btnAction" CausesValidation="false" ToolTip="Remove Address">Remove</asp:LinkButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                    </asp:GridView>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </asp:Panel>

                        <div class="row">
                            <div class="col-xs-12" id="GoBackToFolders" runat="server">
                                <asp:Button ID="Btn_FoldersView" runat="server" CausesValidation="false" class="btn btn-primary waves-effect"
                                    Text="<%$ Resources:Content,L00127%>" UseSubmitBehavior="False" />
                            </div>
                        </div>
                    </asp:Panel>
                </div>
            </div>
        </div>
    </div>

</div>

