<%@ control language="VB" autoeventwireup="false" inherits="Admin_Hostmatic_CC_ODBCDSN, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/ResourcesQuota.ascx" TagName='ResourceQuota' 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"
                 CssClass="btn btn-primary waves-effect pull-right m-t--4px" />
        </div>
        <div class="body">
            <div class="row">
                <div class="col-xs-12">
                    <div class="row" id="Pnl_DSNListing" runat="server">
                        <div class="col-xs-12 Div_OpsRow" id="Div_OpsRow" runat="server">
                            <div class="card">
                                <div class="header">
                                    <h3><%= Resources.Content.GN00001320%></h3>
                                </div>
                                <div class="body">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:Button ID="Btn_ODBCDSN" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,SPT002077%>" />
                                        </div>
                                    </div>

                                </div>
                            </div>
                        </div>
                        <div class="col-xs-12">
                            <asp:GridView ID="Gv_OdbcDsn" runat="server" AllowSorting="true" AllowPaging="true"
                                DataSourceID="" CssClass="table table-bordered table-striped table-hover" AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>">
                                <Columns>
                                    <asp:TemplateField SortExpression="DataSourceName" HeaderText="<%$ Resources:Content,SPT002071%>" HeaderStyle-CssClass="col-xs-5" ItemStyle-CssClass="col-xs-5">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_DataSrcName" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField SortExpression="Driver" HeaderText="<%$ Resources:Content,SPT002072%>" HeaderStyle-CssClass="col-xs-5" ItemStyle-CssClass="col-xs-5">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_Drive" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN00001320%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LB_Edit" runat="server" CommandName="dsnEdit" CssClass="btn btn-primary waves-effect"
                                                Text='<%$ Resources:Content, GN0000276 %>'></asp:LinkButton>
                                            <asp:LinkButton ID="LB_Remove" runat="server" CommandName="dsnRemove" CssClass="btn btn-primary waves-effect btnAction"
                                                Text='<%$ Resources:Content, GN0000278 %>'></asp:LinkButton>
                                            <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,CBE001%>"
                                                TargetControlID="LB_Remove">
                                            </EM:ConfirmButtonExtender>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                        </div>
                    </div>
                    <div class="row" id="Pnl_AddDSN" runat="server" visible="false">
                        <div class="col-xs-12">
                            <div class="card">
                                <div class="header">
                                    <h3>
                                        <asp:Literal ID="Ltl_AddHeading" runat="server" Text="<%$ Resources:Content,SPT002078%>" EnableViewState="false" /></h3>
                                </div>
                                <div class="body">
                                    <div class="row">
                                        <div class="col-sm-2 col-xs-12 row-label">
                                            <label>*<asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,SPT002072%>" EnableViewState="false" />:</label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <asp:DropDownList ID="Ddl_Driver" runat="server" AutoPostBack="True">
                                                    <asp:ListItem Text="<%$ Resources:Content,SMI0570%>" Value="0" Selected="True"></asp:ListItem>
                                                    <asp:ListItem Text="<%$ Resources:Content,SPT002306%>" Value="1"></asp:ListItem>
                                                    <asp:ListItem Text="<%$ Resources:Content,SMI0571%>" Value="3"></asp:ListItem>
                                                    <%--<asp:ListItem Text="Microsoft Access Driver(*.mdb)" Value="2"></asp:ListItem>
                                                    --%>
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-2 col-xs-12 row-label">
                                            <label>*<asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,SPT002071%>" EnableViewState="false" />:</label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_DSName" runat="server"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RFV_TxBx_DSName" runat="server" ControlToValidate="TxBx_DSName"
                                                        Display="None" ValidationGroup="OdbcDns" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                    <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender4" runat="server" TargetControlID="TxBx_DSName"
                                                        FilterType="Numbers,UppercaseLetters,LowercaseLetters,Custom" ValidChars="_-./ " />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div id="DIV_SQL" runat="server">
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,SPT002073%>" EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="Ddl_dbsName" runat="server" AutoPostBack="True">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,SPT002074%>" EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="Ddl_dbsUser" runat="server" AutoPostBack="True">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div id="DIV_MADB" runat="server">
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <label>*<asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,SPT002075%>" EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_File" runat="server" Enabled="false"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="RFV_TxBx_File" runat="server" ControlToValidate="TxBx_File"
                                                            Display="None" ValidationGroup="OdbcDns" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <asp:Button ID="btn_Browse" runat="server" Text="<%$ Resources:Content,SPT002093%>" CssClass="btn btn-primary waves-effect" />
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <label>*<asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,GN0000567%>" EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_UName" runat="server"></asp:TextBox>
                                                        <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="TxBx_UName"
                                                            FilterType="Numbers,UppercaseLetters,LowercaseLetters,Custom" ValidChars="_-" />
                                                        <asp:RequiredFieldValidator ID="RFV_TxBx_UName" runat="server" ControlToValidate="TxBx_UName"
                                                            Display="None" ValidationGroup="OdbcDns" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <label>*<asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,GN0000569%>" EnableViewState="false" />:</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"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="RFV_TxBx_Password" runat="server" ControlToValidate="TxBx_Password"
                                                            Display="None" ValidationGroup="OdbcDns" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:Button ID="Btn_CFEnabledSave" Text=" <%$ Resources:Content,GN0000281%>" class="btn btn-primary waves-effect btnAction" runat="server" ValidationGroup="OdbcDns" />
                                            <asp:Button ID="Btn_Cancel" Text="<%$ Resources:Content,GN0000572%>" runat="server" class="btn btn-primary waves-effect" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <asp:ValidationSummary ID="VS_OdbcDns" runat="server" HeaderText='<%$ Resources:Content, EM000001 %>'
                        ShowMessageBox="True" ShowSummary="False" ValidationGroup="OdbcDns" />

                </div>
            </div>
        </div>
    </div>
</div>

<%--Resources Grid Pannel--%>
<asp:Button ID="Btn_Display" runat="server" Style="display: none;" />
<asp:Panel ID="Panel3" runat="server" BorderColor="ActiveBorder" BorderStyle="Groove"
    ScrollBars="Auto" CssClass="width-modal-popup-auto" Style="display: none">
    <EM:ResourceQuota runat="server" ID="ResourceQuotaView" />
</asp:Panel>
<EM:ModalPopupExtender runat="server" ID="MPE_Resource" BackgroundCssClass="modalBackground"
    DropShadow="false" PopupControlID="Panel3" TargetControlID="Btn_Display">
</EM:ModalPopupExtender>

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