<%@ control language="VB" autoeventwireup="false" inherits="Admin_Hostmatic_CC_CustomErrors, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" 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 %>" CausesValidation="false" 
                class="btn btn-primary waves-effect pull-right m-t--4px" />
        </div>
        <div class="body">
            <div class="row">
                <div class="col-xs-12">
                    <div class="card" id="Pnl_CustomErrors" runat="server">
                        <div class="header">
                            <h3><%= Resources.Content.SPT001053%></h3>
                        </div>
                        <div class="body">
                            <div class="row">
                                <div class="col-xs-12">
                                    <asp:GridView ID="GV_CustomErrors" runat="server" AllowPaging="true" DataSourceID=""
                                        CssClass="table table-bordered table-striped table-hover" AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>">
                                        <Columns>
                                            <asp:TemplateField HeaderText="<%$ Resources:Content,SMI0420%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                <ItemTemplate>
                                                    <asp:Label ID="Lbl_HttpError" runat="server" />
                                                </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" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="<%$ Resources:Content,SMI0421%>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                <ItemTemplate>
                                                    <asp:Label ID="Lbl_Contents" runat="server" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="<%$ Resources:Content,SMI0422%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                <ItemTemplate>
                                                    <asp:Label ID="Lbl_IsDefault" runat="server" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="<%$ Resources:Content,SMI0423%>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="LB_Edit" runat="server" CssClass="btn btn-primary waves-effect" CommandName="CErrEdit"
                                                        Text='<%$ Resources:Content, GN0000276 %>' CausesValidation="false"></asp:LinkButton>
                                                    <asp:LinkButton ID="LB_SetDefault" runat="server" CssClass="btn btn-primary waves-effect btnAction" CommandName="CErrSetDefault"
                                                        Text="<%$ Resources:Content,SMI0424%>" CausesValidation="false"></asp:LinkButton>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <%--PagerTemplate Start--%>
                                        <PagerTemplate>
                                            <EM:Pager ID="Pager1" runat="server" />
                                        </PagerTemplate>
                                        <%--PagerTemplate End--%>
                                    </asp:GridView>
                                </div>
                            </div>
                        </div>
                    </div>
                    <%--//Edit Custom Error--%>
                    <div class="card" id="Pnl_EditCustomErr" runat="server">
                        <div class="header">
                            <h3>
                                <%= Resources.Content.SPT001054%>
                            </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,SPT001055%>" EnableViewState="false" />:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_ErrorCode" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <label>
                                        <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,SPT001057%>" EnableViewState="false" />:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <asp:DropDownList ID="DDLMessageType" runat="server" AutoPostBack="True">
                                            <asp:ListItem Text="<%$ Resources:Content,GN000171%>" Value="0"></asp:ListItem>
                                            <asp:ListItem Text="<%$ Resources:Content,SPT002075%>" Value="1"></asp:ListItem>
                                            <asp:ListItem Text="<%$ Resources:Content,GN0000981%>" Value="2"></asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                </div>
                            </div>
                            <div class="row" id="Tr_FileURL" runat="server">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <label>*<asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content,SPT001055%>" EnableViewState="false" />:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_FileURL" runat="server" ValidationGroup="CustomError"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RFV_URL" runat="server" ControlToValidate="TxBx_FileURL"
                                                ValidationGroup="CustomError"
                                                SetFocusOnError="true" Display="None"></asp:RequiredFieldValidator>
                                            <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" TargetControlID="TxBx_FileURL"
                                                FilterType="Numbers,UppercaseLetters,LowercaseLetters,Custom" ValidChars="-.:\/_">
                                            </EM:FilteredTextBoxExtender>
                                            <asp:RegularExpressionValidator ID="REV_URL" runat="server" Display="None" ValidationGroup="CustomError"
                                                ErrorMessage='<% $Resources:Content,String309%>' ValidationExpression='^(ht|f)tp(s?)://([\w-]+\.)+[\w-]+(/[\w-./?%&=]*)?$'
                                                ControlToValidate="TxBx_FileURL"></asp:RegularExpressionValidator>
                                            <asp:Button ID="Btn_Browse" runat="server" Text="<%$ Resources:Content,SPT002093%>" Visible="false" class="btn btn-primary waves-effect" />
                                            <asp:RegularExpressionValidator ID="REV_File" runat="server" ErrorMessage='<%$ Resources:Content,String310%>'
                                                ControlToValidate="TxBx_FileURL" Display="None" SetFocusOnError="True"
                                                ValidationExpression="^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))(.htm|.html|.php|.asp)$" ValidationGroup="CustomError"></asp:RegularExpressionValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-xs-12">
                                    <asp:ValidationSummary ID="VS_CustomErros" runat="server" HeaderText='<%$ Resources:Content, EM000001 %>'
                                        ShowMessageBox="True" ShowSummary="False" ValidationGroup="CustomError" />

                                    <asp:Button ID="Btn_Save" runat="server" Class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000281%>" CausesValidation="true"
                                        ValidationGroup="CustomError" />
                                    <asp:Button ID="Btn_Cancel" runat="server" Class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000572%>"
                                        CausesValidation="false" />
                                </div>
                            </div>
                        </div>
                    </div>
                    <%--//Add Custom Error--%>
                    <div class="card" id="Pnl_EditIIS7" runat="server" visible="false">
                        <div class="header">
                            <h3>
                                <%= Resources.Content.SPT001054%>
                            </h3>
                        </div>
                        <div class="body">
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <label>*<asp:Literal ID="Ltl_StatusCode" runat="server" Text="<%$ Resources:Content,SMI0425%>" EnableViewState="false" />:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="Txt_StatusCode" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row" id="Tr_LanguageFilePath" runat="server">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <label>
                                        *<asp:Literal ID="Ltl_PrefixLanguageFilePath" runat="server" Text="<%$ Resources:Content,SMI0426%>" EnableViewState="false" />:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="Txt_PrefixLanguageFilePath" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <label>*<asp:Literal ID="Ltl_Path" runat="server" Text="<%$ Resources:Content,String162%>" EnableViewState="false" />:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="Txt_Path" runat="server" ValidationGroup='CustomErrorIIS7'></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RFV_IIS7" runat="server" Display="None" ControlToValidate="Txt_Path"
                                                ErrorMessage='<%$Resources:Content,EM000001%>' ValidationGroup="CustomErrorIIS7"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="REV_WebURL" Display="None" ControlToValidate="Txt_Path" runat="server"
                                                ErrorMessage='<%$Resources:Content,String309%>' ValidationExpression='^(ht|f)tp(s?)://([\w-]+\.)+[\w-]+(/[\w-./?%&=]*)?$'
                                                ValidationGroup='CustomErrorIIS7'></asp:RegularExpressionValidator>
                                            <asp:RegularExpressionValidator ID="REV_FileIIS7" runat="server" ErrorMessage='<%$ Resources:Content,String310%>'
                                                ControlToValidate="Txt_Path" Display="None" SetFocusOnError="True"
                                                ValidationExpression="^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))(.htm|.html|.php|.asp)$" ValidationGroup="CustomErrorIIS7"></asp:RegularExpressionValidator>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-5 col-xs-12">
                                    <asp:Literal ID="Ltl_Help" runat="server" Text="Example: c:\MyWebsite\MyErrors" EnableViewState="false"></asp:Literal>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <label>
                                        <asp:Literal ID="Ltl_ResponseMode" runat="server" Text="<%$ Resources:Content,SMI0427%>" EnableViewState="false" />:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <asp:DropDownList ID="Ddl_ResponseMode" runat="server" AutoPostBack="true">
                                            <asp:ListItem Text="<%$ Resources:Content,SMI0428%>" Value="0"></asp:ListItem>
                                            <asp:ListItem Text="<%$ Resources:Content,SMI0429%>" Value="1"></asp:ListItem>
                                            <asp:ListItem Text="<%$ Resources:Content,GN0000981%>" Value="2"></asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-xs-12">
                                    <asp:Button ID="Btn_IIS7Save" runat="server" Text="<%$ Resources:Content,GN0000281%>" class="btn btn-primary waves-effect btnAction" CausesValidation="true"
                                        ValidationGroup='CustomErrorIIS7' />
                                    <asp:Button ID="Btn_IIS7Cancel" runat="server" Text="<%$ Resources:Content,GN0000572%>" class="btn btn-primary waves-effect"
                                        CausesValidation="false" />
                                    <asp:ValidationSummary ID="VS_IIS7" runat="server" ValidationGroup="CustomErrorIIS7"
                                        ShowMessageBox="true" ShowSummary="false" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script lang="javascript">
    AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender3.ClientID%>');
</script>