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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="Ajax" %>

<%@ Register TagPrefix="cc1" Namespace="System.Web.UI" Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" %>

<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">

    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h2>
                    <asp:Literal ID="Ltl_SubsInfo" runat="server" Text="<%$ Resources:Content,USM0068 %>" /></h2>
            </div>
            <div class="body">
                <ajax:TabContainer ID="TbCntr_ServerRoles" runat="server" OnActiveTabChanged="TbCntr_ServerRoles_ActiveTabChanged">
                    <ajax:TabPanel ID="Tab_PeerListing" runat="server" HeaderText="<%$ Resources:Content,USM0056 %>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent0" runat="server" DefaultButton="Btn_AddPeer">
                                <div class="row">
                                    <%--Start button--%>
                                    <div class="col-xs-12 Div_OpsRow" id="Div_OpsRow" runat="server">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <%= Resources.Content.GN00001320%>      <%--Operations--%>
                                                </h3>
                                            </div>
                                            <div class="body">
                                                <asp:Button ID="Btn_AddPeer" runat="server" Text="<%$ Resources:Content,USM0058%>" class="btn btn-primary waves-effect btnAction" />
                                            </div>
                                        </div>
                                    </div>
                                    <%--end button--%>
                                    <div class="col-xs-12">
                                        <asp:GridView ID="GV_ServerRoles" CssClass="table table-bordered table-striped table-hover" AllowSorting="true" AllowPaging="true"
                                            EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False"
                                            DataKeyNames="IsPrimary, AdminLogin, AdminPassword, ServerIP, Port, MPServerId">

                                            <Columns>
                                                <asp:TemplateField HeaderText='<%$Resources:content,USM0059%>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_PeerIP" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$Resources:content,USM0060%>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_PeerPort" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$Resources:content,USM0061%>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_UserName" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$Resources:content,USM0063%>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_serverRole" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="<%$Resources:Content,GN0000368 %>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="Lbtn_Modify" runat="server" Text="<%$Resources:Content,GN0000276 %>" CausesValidation="false" CommandName="modify" class="btn btn-primary waves-effect"></asp:LinkButton>
                                                        <asp:LinkButton ID="Lbtn_Remove" runat="server" Text="<%$Resources:Content,GN0000278 %>" CausesValidation="false" CommandName="remove" class="btn btn-primary waves-effect btnAction"></asp:LinkButton>
                                                        <asp:LinkButton ID="Lbtn_SetPrimary" runat="server" Text="<%$Resources:Content,USM0057 %>" CausesValidation="false" CommandName="primary" class="btn btn-primary waves-effect btnAction" Visible="false"></asp:LinkButton>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                </div>
                            </asp:Panel>
                        </ContentTemplate>
                    </ajax:TabPanel>
                    <ajax:TabPanel ID="Tab_PeerDetail" runat="server" Enabled="false" HeaderText="<%$ Resources:Content,SMI0260%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab1" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent1" runat="server">
                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3><%= Resources.Content.M0027%></h3>
                                            </div>
                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <label>
                                                            *
                                                            <asp:Literal ID="Ltrl_PeerServerIP" runat='server' Text='<%$Resources:Content,USM0059 %>'></asp:Literal>:</label>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_PeerIP" runat="server"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="RFV_PeerIP" runat="server" ControlToValidate="TxBx_PeerIP" Display="None" SetFocusOnError="true" ErrorMessage='<%$Resources:Content,USM0064 %>' ValidationGroup="SavePeer"></asp:RequiredFieldValidator>
                                                                <asp:RegularExpressionValidator ID="RE_PeerIP" runat="server" ControlToValidate="TxBx_PeerIP" Display="None" ErrorMessage='<%$Resources:Content,String176%>' SetFocusOnError="true" ValidationGroup="SavePeer"
                                                                    ValidationExpression="^([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])$"></asp:RegularExpressionValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <label>
                                                            *
                                                            <asp:Literal ID="Ltrl_PeerServerPort" runat='server' Text='<%$Resources:Content,USM0060 %>'></asp:Literal>:</label>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_PeerPort" runat="server"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="RFV_PeerPort" runat="server" ControlToValidate="TxBx_PeerPort" Display="None" SetFocusOnError="true" ErrorMessage='<%$Resources:Content,USM0065 %>' ValidationGroup="SavePeer"></asp:RequiredFieldValidator>
                                                                <asp:RegularExpressionValidator ID="REV_PeerPort" runat="server" ControlToValidate="TxBx_PeerPort" Display="None" ErrorMessage='<%$Resources:Content,USM0066 %>' SetFocusOnError="true" ValidationGroup="SavePeer"
                                                                    ValidationExpression="^[0-9]+$"></asp:RegularExpressionValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <label>
                                                            *
                                                            <asp:Literal ID="Ltrl_UserName" runat='server' Text='<%$Resources:Content,USM0061 %>'></asp:Literal>:</label>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_UserName" runat="server" Text="<%$ Resources:Content,SMI0261%>"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="RFV_UserName" runat="server" ControlToValidate="TxBx_UserName" Display="None" SetFocusOnError="true" ErrorMessage='<%$Resources:Content,USM0067 %>' ValidationGroup="SavePeer"></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <label>
                                                            *
                                                            <asp:Literal ID="Ltrl_UserPassword" runat='server' Text='<%$Resources:Content,USM0062 %>'></asp:Literal>:</label>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_Password" runat="server" TextMode="Password"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="RFV_Password" runat="server" ControlToValidate="TxBx_Password" Display="None" SetFocusOnError="true" ErrorMessage='<%$Resources:Content,GN00008028 %>' ValidationGroup="SavePeer"></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-sm-5 col-xs-12">
                                                        <asp:Literal ID="Ltl_LeaveBlank" runat="server" Text="<%$ Resources:Content,GN00001530%>"
                                                            EnableViewState="false"></asp:Literal>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <label>
                                                            *
                                                            <asp:Literal ID="Ltrl_ConfirmPassword" runat='server' Text='<%$Resources:Content,GN0001196 %>'></asp:Literal>:</label>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_CPassword" runat="server" TextMode="Password"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="RFV_CPassword" runat="server" ControlToValidate="TxBx_CPassword" Display="None" SetFocusOnError="true" ErrorMessage='<%$Resources:Content,GN00008028 %>' ValidationGroup="SavePeer"></asp:RequiredFieldValidator>
                                                                <asp:CompareValidator ID="CV_Password" runat="server" ControlToValidate="TxBx_CPassword" ControlToCompare="TxBx_Password" Display="None" SetFocusOnError="true" ErrorMessage='<%$Resources:Content,USM0076 %>' ValidationGroup="SavePeer"></asp:CompareValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>


                                                <div class="row" id="tr_serverrole" runat="server" visible="true">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <label>
                                                            *
                                                            <asp:Literal ID="Literal5" runat='server' Text='<%$Resources:Content,USM0062 %>'></asp:Literal>:</label>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:DropDownList ID="Ddl_PeerRole" runat="server">
                                                                <asp:ListItem Text='<%$Resources:Content,SPT002317 %>' Value="0" Selected="True"></asp:ListItem>
                                                                <asp:ListItem Text='<%$Resources:Content,SPT002316 %>' Value="1"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:Button ID="Btn_Save" runat="server" Text="<%$Resources:Content,GN0000281 %>" class="btn btn-primary waves-effect btnAction" CausesValidation="true" ValidationGroup="SavePeer" />
                                                        <asp:Button ID="Btn_Cancel" runat="server" Text="<%$Resources:Content,GN0000572 %>" class="btn btn-primary waves-effect" CausesValidation="false" />
                                                        <asp:ValidationSummary ID="vs_SavePeer" runat="server" ShowMessageBox="true" ShowSummary="false" DisplayMode="List" ValidationGroup="SavePeer" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </ContentTemplate>
                    </ajax:TabPanel>
                </ajax:TabContainer>
            </div>
        </div>
    </div>
</asp:Content>

