<%@ control language="VB" autoeventwireup="false" inherits="Admin_Hostmatic_CC_Scripting, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/ResourcesQuota.ascx" TagName='ResourceQuota' 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"
                 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_Scripting" runat="server">
                        <div class="col-xs-12">
                            <div class="card" id="FS_Grid" runat="server">
                                <div class="header">
                                    <h3><%= Resources.Content.String48%></h3>
                                </div>
                                <div class="body">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:GridView ID="Gv_Scripting" 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,SMI0580%>" HeaderStyle-CssClass="col-xs-6" ItemStyle-CssClass="col-xs-6">
                                                        <ItemTemplate>
                                                            <asp:Label ID="Lbl_ScriptingLang" runat="server"></asp:Label>
                                                            <asp:DropDownList ID="DDL_SFramework" AutoPostBack="true" runat="server" OnSelectedIndexChanged="DDL_SFramework_SelectedIndexChanged"
                                                                Visible="false">
                                                                <asp:ListItem Text="ASP 1.1" Value="1"></asp:ListItem>
                                                                <asp:ListItem Text="ASP 2.0" Value="2"></asp:ListItem>
                                                                <%--<asp:ListItem Text="ASP 3.0" Value="3"></asp:ListItem>--%>
                                                                <asp:ListItem Text="ASP 4.0" Value="4"></asp:ListItem>
                                                            </asp:DropDownList>
                                                            <asp:DropDownList ID="DDL_PHPVersion" AutoPostBack="true" runat="server" OnSelectedIndexChanged="DDL_PHPVersion_SelectedIndexChanged"
                                                                Visible="false">
                                                                <asp:ListItem Text="PHP 4" Value="1"></asp:ListItem>
                                                                <asp:ListItem Text="PHP 5" Value="2"></asp:ListItem>
                                                                <%--<asp:ListItem Text="ASP 3.0" Value="3"></asp:ListItem>--%>
                                                            </asp:DropDownList>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,SMI0581%>" HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                                                        <ItemTemplate>
                                                            <asp:Label ID="Lbl_Installed" runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="LB_Install" runat="server" CssClass="btn btn-primary waves-effect btnAction" ValidationGroup="Scripting"
                                                                CommandName="InstallScript" Text='<%$ Resources:Content, String40 %>'></asp:LinkButton>
                                                            <asp:LinkButton ID="LB_Remove" runat="server" CssClass="btn btn-primary waves-effect btnAction" CommandName="RemoveScript"
                                                                ValidationGroup="Scripting" Text='<%$ Resources:Content, GN0000278 %>'></asp:LinkButton>
                                                            <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$ Resources:Content,SMI0582%>"
                                                                TargetControlID="LB_Remove">
                                                            </EM:ConfirmButtonExtender>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <%--PagerTemplate Start--%>
                                                <PagerTemplate>
                                                    <EM:Pager ID="Pager1" runat="server" />
                                                </PagerTemplate>
                                                <%--PagerTemplate End--%>
                                            </asp:GridView>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row" id="FS_PHP" runat="server">
                        <div class="col-xs-12">
                            <div class="card">
                                <div class="header">
                                    <h3><%= Resources.Content.SMI0583%></h3>
                                </div>
                                <div class="body">
                                    <div class="row">
                                        <div class="col-sm-2 col-xs-12 row-label">
                                            <label>
                                                <asp:Literal ID="Literal14" runat="server" Text="<%$ Resources:Content,SPT002255%>" EnableViewState="false" /></label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <asp:DropDownList ID="DDL_SelectVersion" runat="server" AutoPostBack="true">
                                                    <asp:ListItem Text="<%$ Resources:Content,GN0000918%>" Value="0"></asp:ListItem>
                                                    <asp:ListItem Text="PHP4" Value="1"></asp:ListItem>
                                                    <asp:ListItem Text="PHP5" Value="2"></asp:ListItem>
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>


                </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 X="150" runat="server" ID="MPE_Resource" BackgroundCssClass="modalBackground"
    DropShadow="false" PopupControlID="Panel3" TargetControlID="Btn_Display">
</EM:ModalPopupExtender>
