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

<div class="row">
    <div class="col-xs-9">
        <div class="card">
            <div class="body">
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Litteral1" runat="server" Text="<%$ Resources:Content,SMI0475%>" EnableViewState="false"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_TemplateTitle" runat="server" ValidationGroup="AddTemplate"
                                    Width="185"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_TempTitle" ValidationGroup="AddTemplate" runat="server"
                                    ControlToValidate="TxBx_TemplateTitle" Display="none" SetFocusOnError="true"
                                    ErrorMessage="<%$ Resources:Content,EM000001 %>"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RExpV" runat="server" ValidationExpression="^[a-zA-Z0-9 ]+$"
                                    ControlToValidate="TxBx_TemplateTitle" Display="none" ErrorMessage="<%$ Resources:Content,String316 %>"
                                    ValidationGroup="AddTemplate"></asp:RegularExpressionValidator>
                            </div>
                        </div>

                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Repeater ID="RP_DNSADD" runat="server">
                            <HeaderTemplate>
                                <table class="table table-bordered table-striped table-hover">
                                    <tr>
                                        <th class="col-sm-3 col-xs-12 row-label">Name
                                        </th>
                                        <th class="col-sm-1 col-xs-12 row-label">Class
                                        </th>
                                        <th class="col-sm-2 col-xs-12 row-label">Type
                                        </th>
                                        <th class="col-sm-1 col-xs-12 row-label">Priority
                                        </th>
                                        <th class="col-sm-1 col-xs-12 row-label">Weight
                                        </th>
                                        <th class="col-sm-1 col-xs-12 row-label">Port
                                        </th>
                                        <th class="col-sm-2 col-xs-12 row-label">Host
                                        </th>
                                        <th class="col-sm-1 col-xs-12 row-label">Options
                                        </th>
                                    </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr>
                                    <td class="col-sm-3 col-xs-12">
                                        <div id="Div_Service" runat="server">
                                            <asp:DropDownList ID="DDL_Service" runat="server">
                                                <asp:ListItem Text="_finger" Value="_finger" Selected="True"></asp:ListItem>
                                                <asp:ListItem Text="_ftp" Value="_ftp"></asp:ListItem>
                                                <asp:ListItem Text="_http" Value="_http"></asp:ListItem>
                                                <asp:ListItem Text="_kerberos" Value="_kerberos"></asp:ListItem>
                                                <asp:ListItem Text="_ldap" Value="_ldap"></asp:ListItem>
                                                <asp:ListItem Text="_msdcs" Value="_msdcs"></asp:ListItem>
                                                <asp:ListItem Text="_nntp" Value="_nntp"></asp:ListItem>
                                                <asp:ListItem Text="_sip" Value="_sip"></asp:ListItem>
                                                <asp:ListItem Text="_sipfederationtls" Value="_sipfederationtls"></asp:ListItem>
                                                <asp:ListItem Text="_sipinternaltls" Value="_sipinternaltls"></asp:ListItem>
                                                <asp:ListItem Text="_telnet" Value="_telnet"></asp:ListItem>
                                                <asp:ListItem Text="_whois" Value="_whois"></asp:ListItem>
                                                <asp:ListItem Text="_autodiscover" Value="_autodiscover"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                        <div id="Div_Protocol" runat="server">
                                            <asp:DropDownList ID="DDL_Protocol" runat="server">
                                                <asp:ListItem Text="_tcp" Value="_tcp" Selected="True"></asp:ListItem>
                                                <asp:ListItem Text="_tls" Value="_tls"></asp:ListItem>
                                                <asp:ListItem Text="_udp" Value="_udp"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_Name" runat="server" Text="@"></asp:TextBox></div>
                                        </div>
                                    </td>
                                    <td class="col-sm-1 col-xs-12">
                                        <asp:Label ID="Lbl_Class" runat="server"></asp:Label>
                                    </td>
                                    <td class="col-sm-2 col-xs-12">
                                        <asp:DropDownList ID="DDL_RecordType" runat="server">
                                            <asp:ListItem Text="<%$ Resources:Content,GN0000890%>" Value="0"></asp:ListItem>
                                            <asp:ListItem Text="NS" Value="1"></asp:ListItem>
                                            <asp:ListItem Text="A" Value="2"></asp:ListItem>
                                            <asp:ListItem Text="MX" Value="3"></asp:ListItem>
                                            <asp:ListItem Text="CNAME" Value="4"></asp:ListItem>
                                            <asp:ListItem Text="TXT" Value="5"></asp:ListItem>
                                            <asp:ListItem Text="SRV" Value="6"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td class="col-sm-1 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_Priority" runat="server"></asp:TextBox></div>
                                        </div>
                                    </td>
                                    <td class="col-sm-1 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_Weight" runat="server"></asp:TextBox></div>
                                        </div>
                                    </td>
                                    <td class="col-sm-1 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_Port" runat="server"></asp:TextBox></div>
                                        </div>
                                    </td>
                                    <td class="col-sm-2 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_Host" runat="server"></asp:TextBox></div>
                                        </div>
                                    </td>
                                    <td class="col-sm-1 col-xs-12">
                                        <asp:LinkButton ID="LB_Remove" runat="server" CssClass="btnAction" Text="<%$ Resources:Content,GN0000278%>"></asp:LinkButton>
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <AlternatingItemTemplate>
                                <tr>
                                    <td class="col-sm-3 col-xs-12">
                                        <div id="Div_Service" runat="server">
                                            <asp:DropDownList ID="DDL_Service" runat="server">
                                                <asp:ListItem Text="_finger" Value="_finger" Selected="True"></asp:ListItem>
                                                <asp:ListItem Text="_ftp" Value="_ftp"></asp:ListItem>
                                                <asp:ListItem Text="_http" Value="_http"></asp:ListItem>
                                                <asp:ListItem Text="_kerberos" Value="_kerberos"></asp:ListItem>
                                                <asp:ListItem Text="_ldap" Value="_ldap"></asp:ListItem>
                                                <asp:ListItem Text="_msdcs" Value="_msdcs"></asp:ListItem>
                                                <asp:ListItem Text="_nntp" Value="_nntp"></asp:ListItem>
                                                <asp:ListItem Text="_sip" Value="_sip"></asp:ListItem>
                                                <asp:ListItem Text="_sipfederationtls" Value="_sipfederationtls"></asp:ListItem>
                                                <asp:ListItem Text="_sipinternaltls" Value="_sipinternaltls"></asp:ListItem>
                                                <asp:ListItem Text="_telnet" Value="_telnet"></asp:ListItem>
                                                <asp:ListItem Text="_whois" Value="_whois"></asp:ListItem>
                                                <asp:ListItem Text="_autodiscover" Value="_autodiscover"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                        <div id="Div_Protocol" runat="server">
                                            <asp:DropDownList ID="DDL_Protocol" runat="server">
                                                <asp:ListItem Text="_tcp" Value="_tcp" Selected="True"></asp:ListItem>
                                                <asp:ListItem Text="_tls" Value="_tls"></asp:ListItem>
                                                <asp:ListItem Text="_udp" Value="_udp"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_Name" runat="server" Text="@"></asp:TextBox></div>
                                        </div>
                                    </td>
                                    <td class="col-sm-1 col-xs-12">
                                        <asp:Label ID="Lbl_Class" runat="server"></asp:Label>
                                    </td>
                                    <td class="col-sm-2 col-xs-12">
                                        <asp:DropDownList ID="DDL_RecordType" runat="server">
                                            <asp:ListItem Text="<%$ Resources:Content,GN0000890%>" Value="0"></asp:ListItem>
                                            <asp:ListItem Text="NS" Value="1"></asp:ListItem>
                                            <asp:ListItem Text="A" Value="2"></asp:ListItem>
                                            <asp:ListItem Text="MX" Value="3"></asp:ListItem>
                                            <asp:ListItem Text="CNAME" Value="4"></asp:ListItem>
                                            <asp:ListItem Text="TXT" Value="5"></asp:ListItem>
                                            <asp:ListItem Text="SRV" Value="6"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td class="col-sm-1 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_Priority" runat="server"></asp:TextBox></div>
                                        </div>
                                    </td>
                                    <td class="col-sm-1 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_Weight" runat="server"></asp:TextBox></div>
                                        </div>
                                    </td>
                                    <td class="col-sm-1 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_Port" runat="server"></asp:TextBox></div>
                                        </div>
                                    </td>
                                    <td class="col-sm-2 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_Host" runat="server"></asp:TextBox></div>
                                        </div>
                                    </td>
                                    <td class="col-sm-1 col-xs-12">
                                        <asp:LinkButton ID="LB_Remove" runat="server" Text="<%$ Resources:Content,GN0000278%>"></asp:LinkButton>
                                    </td>
                                </tr>
                            </AlternatingItemTemplate>
                            <FooterTemplate>
                                </table>
                            </FooterTemplate>
                        </asp:Repeater>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,SMI0476%>" EnableViewState="false"></asp:Literal></label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_Rows" runat="server" AutoPostBack="true">
                                <asp:ListItem Text="<%$ Resources:Content,GN0000890%>" Value="0"></asp:ListItem>
                                <asp:ListItem Text="5" Value="5"></asp:ListItem>
                                <asp:ListItem Text="6" Value="6"></asp:ListItem>
                                <asp:ListItem Text="7" Value="7"></asp:ListItem>
                                <asp:ListItem Text="8" Value="8"></asp:ListItem>
                                <asp:ListItem Text="9" Value="9"></asp:ListItem>
                                <asp:ListItem Text="10" Value="10"></asp:ListItem>
                                <asp:ListItem Text="15" Value="15"></asp:ListItem>
                                <asp:ListItem Text="20" Value="20"></asp:ListItem>
                            </asp:DropDownList>
                        </div>

                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:ValidationSummary ID="VS_AddTemplate" runat="server" ShowMessageBox="true" ShowSummary="false"
                            ValidationGroup="AddTemplate" />

                        <asp:Button ID="Btn_Add" runat="server" Text="<%$ Resources:Content,GN0000281%>" class="btn btn-primary waves-effect btnAction" ValidationGroup="AddTemplate"
                            CausesValidation="true" />
                        <asp:Button ID="Btn_Cancel" runat="server" Text="<%$ Resources:Content,GN0000572%>" class="btn btn-primary waves-effect" />
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-xs-3">
        <div class="card">
            <div class="header">
                <h3><%= Resources.Content.GN0000518 %></h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-xs-12 row-label">
                        <asp:Literal ID="Literal23" runat="server" Text="<%$ Resources:Content,SMI0477%>" EnableViewState="false" />
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,String186%>" EnableViewState="false" />
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12 row-label">
                        <asp:Literal ID="Literal25" runat="server" Text="<%$ Resources:Content,SMI0478%>" EnableViewState="false" />
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Literal ID="Literal26" runat="server" Text="<%$ Resources:Content,String187%>" EnableViewState="false" />
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12 row-label">
                        <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,FAM00251%>" EnableViewState="false" />
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,FAM00252%>" EnableViewState="false" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
