<%@ Page Title="" Language="C#" MasterPageFile="~/SiteContent.master" AutoEventWireup="true" CodeBehind="UpdMan.aspx.cs" Inherits="NKC_WF.site.UpdMan" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">


    <div class="container">
        <div class="card">
            <div class="card-header">
                <div class="row" style="margin: 2px 4px;">
                    <h3 class="card-title text-uppercase"><%: traduci("SteamwareUpdManTitle") %></h3>
                </div>
            </div>
            <div class="card-body">
                <div class="row">
                    <div class="col-12 text-center">
                        <p><b><%: traduci("SteamwareUpdManDescr") %></b></p>
                    </div>
                    <div class="col-4 col-md-3">
                        <div class="card">
                            <div class="card-header">
                                <h2 class="text-center text-uppercase"><%: traduci("All") %> <i class="fa fa-download"></i></h2>
                            </div>
                            <div class="card-body">
                                <asp:LinkButton runat="server" ID="lbtDownloadAll" class="btn btn-success btn-lg btn-block text-uppercase" OnClientClick='<%: SteamWare.jsUtils.getCBE("DownloadConfirm")%>' OnClick="lbtDownload_Click" CommandArgument="ALL"><strong><%: traduci("LatestVers") %></strong></asp:LinkButton>
                            </div>
                        </div>
                    </div>
                    <asp:Repeater ID="repDownlLink" runat="server" DataSourceID="ods">
                        <ItemTemplate>
                            <div class="col-4 col-md-3">
                                <div class="card">
                                    <div class="card-header">
                                        <h2 class="text-center"><%# Eval("AppName") %> <i class="fa fa-download"></i></h2>
                                    </div>
                                    <div class="card-body">
                                        <asp:LinkButton runat="server" ID="lbtDownloadNKC" class="btn btn-info text-light btn-lg btn-block" OnClientClick='<%: SteamWare.jsUtils.getCBE("DownloadConfirm")%>' OnClick="lbtDownload_Click" CommandArgument='<%# Eval("AppName") %>'><strong><%# Version(Eval("AppName"), Eval("IsAuth")) %></strong></asp:LinkButton>
                                    </div>
                                </div>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                    <asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="AppData.DS_AppTableAdapters.UpdManTableAdapter"></asp:ObjectDataSource>

                    <%--<div class="col-4 col-md-3">
                        <div class="card">
                            <div class="card-header">
                                <h2 class="text-center">NKC <i class="fa fa-download"></i></h2>
                            </div>
                            <div class="card-body">
                                <asp:LinkButton runat="server" ID="lbtDownloadNKC" class="btn btn-info text-light btn-lg btn-block" OnClientClick='<%: SteamWare.jsUtils.getCBE("DownloadConfirm")%>' OnClick="lbtDownload_Click" CommandArgument="NKC"><strong><%: Version("NKC", true) %></strong></asp:LinkButton>
                            </div>
                        </div>
                    </div>
                    <div class="col-4 col-md-3">
                        <div class="card">
                            <div class="card-header">
                                <h2 class="text-center">ZCode <i class="fa fa-download"></i></h2>
                            </div>
                            <div class="card-body">
                                <asp:LinkButton runat="server" ID="lbtDownloadZCode" class="btn btn-info text-light btn-lg btn-block" OnClientClick='<%: SteamWare.jsUtils.getCBE("DownloadConfirm")%>' OnClick="lbtDownload_Click" CommandArgument="ZCODE"><strong><%: Version("ZCode", true) %></strong></asp:LinkButton>
                            </div>
                        </div>
                    </div>
                    <div class="col-4 col-md-3">
                        <div class="card">
                            <div class="card-header">
                                <h2 class="text-center">LPA <i class="fa fa-download"></i></h2>
                            </div>
                            <div class="card-body">
                                <asp:HyperLink runat="server" ID="hlLPA" class="btn btn-info text-light btn-lg btn-block text-uppercase" Target="_blank" NavigateUrl="http://nexus.steamware.net/repository/utility/LPA/LPA/stable/LPA-stable.zip" OnClientClick='<%: SteamWare.jsUtils.getCBE("DownloadConfirm")%>'><strong><%: traduci("stable") %></strong></asp:HyperLink>
                            </div>
                        </div>
                    </div>--%>
                </div>
                <div class="row">
                    <div class="col-12 text-center">
                        <asp:UpdateProgress ID="UpdateProgressDisplay" runat="server" DisplayAfter="5">
                            <ProgressTemplate>
                                <div class="btn btn-lg btn-primary btn-block text-center textBig">
                                    <i class="fa fa-download" aria-hidden="true"></i><%: traduci("TaskRunning") %> <i class="fa fa-circle-o-notch fa-spin" aria-hidden="true"></i>
                                </div>
                            </ProgressTemplate>
                        </asp:UpdateProgress>
                        <asp:Label runat="server" ID="lblOut"></asp:Label>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
