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

<asp:Panel ID="Pnl_Domain" runat="server">

    <div id="Div_OCSD" runat="server" class="QuotaCode">
    </div>

    <div class="row">
        <div class="col-xs-12">
            <EM:MPGridView ID="GV_Domains" DataKeyNames="DomainID,DomainName" AllowSorting="true"
                CssClass="table table-bordered table-striped table-hover" runat="server" AllowPaging="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>'
                AutoGenerateColumns="false" CurrentSortExpression="DomainName" CurrentSortDirection="Asc">
                <Columns>
                    <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000653%>' SortExpression="DomainName">
                        <ItemTemplate>
                            <%--<asp:Literal ID="Ltrl_DomainName" runat="server"></asp:Literal>--%>
                            <asp:HyperLink ID="HL_DomainName" Text='<%#DataBinder.Eval(Container, "DataItem.DomainName")%>' runat="server"></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText='<%$ Resources:Content,GN000171%>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2"
                        HeaderStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:Label ID="lbl_IsDefaultDomain" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText='<%$ Resources:Content,Verified%>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2"
                        HeaderStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:Label ID="Lbl_IsVerified" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000360%>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                        <ItemTemplate>
                            <asp:LinkButton ID="LB_SetDefault" Text='<%$ Resources:Content,GN000166%>' CssClass="btn btn-primary waves-effect btnAction"
                                CommandName="SetDefault" runat="server" />
                            <asp:LinkButton ID="LB_Delete" Text='<%$ Resources:Content,GN0000278%>' CssClass="btn btn-primary waves-effect btnAction"
                                CommandName="DeleteRow" runat="server" />
                            <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,CBE001%>"
                                TargetControlID="LB_Delete" runat="server">
                            </EM:ConfirmButtonExtender>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <PagerTemplate>
                    <EM:Pager ID="Pager" runat="server" />
                </PagerTemplate>
            </EM:MPGridView>
        </div>
    </div>


    <div class="card" id="Pnl_addDomain" runat="server">
        <div class="header">
            <h3>
                <asp:Label
                    ID="Label1" runat="server" Text='<%$ Resources:Content,String288%>' EnableViewState="false"></asp:Label>
            </h3>
        </div>

        <div class="body">
            <div class="row">
                <div class="col-sm-2 col-xs-12 row-label">
                    <asp:Literal ID="Literal26" runat="server" EnableViewState="false" Text='<%$ Resources:Content,DGN1110426%>'></asp:Literal>:
                </div>
                <div class="col-sm-3 col-xs-12">
                    <div class="form-group">
                        <div class="form-line">
                            <asp:TextBox ID="TxBx_DomainName" runat="server" MaxLength="250">
                            </asp:TextBox>
                            <asp:RequiredFieldValidator ID="RFV_DomainName" runat="server" ControlToValidate="TxBx_DomainName"
                                ValidationGroup="Dom" SetFocusOnError="true" Display="None" ErrorMessage="<%$ Resources:Content,String1039%>">
                            </asp:RequiredFieldValidator>
                        </div>
                    </div>
                  <%--  <asp:RegularExpressionValidator ID="REV_Domain" runat="server" ValidationGroup="Dom"
                        ControlToValidate="TxBx_DomainName" ErrorMessage="Please enter a valid domain name."
                        Display="None" ValidationExpression="<%$ Resources:Content,REV001 %>">
                    </asp:RegularExpressionValidator>--%>
                    <asp:ValidationSummary ID="VS_Domain" runat="server" ValidationGroup="Dom" ShowMessageBox="true"
                        ShowSummary="false" />
                </div>
                <div class="col-sm-7 col-xs-12">
                    <asp:CheckBox ID="ChBx_IsDefaultDomain" runat="server" Text='<%$ Resources:Content,GN000166%>' />
                </div>
            </div>
            <div class="row" style="display: none;">
                <div class="col-sm-2 col-xs-12">
                    <asp:Literal ID="Literal19" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN0000673%>'>
                    </asp:Literal>:
                </div>
                <div class="col-sm-10 col-xs-12">
                    <asp:DropDownList ID="DDL_DomainType" runat="server">
                        <asp:ListItem Text="<%$ Resources:Content,String438%>" Value="0" Selected="True">
                        </asp:ListItem>
                    </asp:DropDownList>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-4 col-xs-12">
                    <asp:Button ID="Btn_AddNewDmn" ValidationGroup="Dom" runat="server" Text="<%$ Resources:Content,DGN1110426%>"
                        class="btn btn-primary waves-effect btnAction" />
                </div>
            </div>
        </div>
    </div>

</asp:Panel>

