<%@ page language="C#" masterpagefile="~/MasterFile/TimeCheck.master" autoeventwireup="true" inherits="System_Settings_SystemSetting_LicenseUpdater, App_Web_i1ngvku3" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="BodyContentPH" runat="Server">
    <div class="content-header">
         <h1 style="background-image: url(../dist/img/license-update.png); background-repeat: no-repeat;
            padding-left: 35px">
            <asp:Label ID="lbl_Header" runat="server" Text="License File Upload"></asp:Label>
        </h1>
        <asp:SiteMapPath ID="site" runat="server" CssClass="breadcrumb">
            <NodeStyle CssClass="active" />
        </asp:SiteMapPath>
    </div>
    <div class="content">
        <div class="lce-part">
            <div class="lce-box1">
                <div class="row" style="height: 15px">
                    <div class="col-md-6">
                    </div>
                    <div class="col-md-6 pull-right">
                        <div class="lce-man">
                            <span>|</span>
                            <asp:Label ID="lbl_IndicatesMandatoryFields" runat="server" Text="Indicates mandatory fields" ForeColor="black"></asp:Label>
                            (1 No.)
                        </div>
                    </div>
                </div>
            </div>
            <div class="lce-box2">
                <div class="row">
                    <div class="form-horizontal">
                        <div class="col-md-6 leftside-box">
                            <div class="row" style="display: none">
                                <div class="col-md-12">
                                    *
                                    
                                    <asp:Label ID="lblError" runat="server" ForeColor="red"></asp:Label>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-12">
                                    <div class="lce-cus" align="center">
                                        <h3>
                                            <asp:Label ID="lblManual" runat="server" Text="Manual Updation" Style="font-size: 15px;
                                                font-weight: bold" class="ModuleTitle"></asp:Label></h3>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-4">
                                    <asp:Label ID="lblLicenseFile" runat="server" Text="Select License File"></asp:Label>
                                </div>
                                <div class="col-md-6">
                                    <asp:FileUpload ID="fp_ImportFilePath" runat="server" />
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-4">
                                </div>
                                <div class="col-md-6" align="left">
                                    <asp:LinkButton ID="btnUpload" CssClass="btn save-btn fa-upload" runat="server" Text="UPLOAD"
                                        OnClick="btnUpload_Click" Style="margin-left: 0px" />
                                    <asp:LinkButton ID="btnBack" CssClass="btn save-btn fa-hand-o-left" runat="server"
                                        Text="BACK" CausesValidation="false" OnClick="btnBack_Click" Visible="false" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6 rightside-box">
                            <div class="form-group">
                                <div class="col-md-12">
                                    <div class="lce-cus" align="center">
                                        <h3>
                                            <asp:Label ID="lblOnlineUpdate" runat="server" Text="Online Updation" class="ModuleTitle"
                                                Style="font-size: 15px; font-weight: bold">
                                            </asp:Label>
                                        </h3>
                                    </div>
                                </div>
                            </div>
                            <div class="row" id="trActive" runat="server" align="center">
                                <div class="col-md-12">
                                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                        <ContentTemplate>
                                            <asp:Panel ID="pnlActiveProgress" runat="server" Style="display: none;">
                                                <asp:Panel ID="pnlActiveLoading" runat="server" HorizontalAlign="center">
                                                    <div class="InsideProgressBar">
                                                        <div class="row" style="margin-top: 10px">
                                                            <img src="../dist/img/logo-Progress.png" />
                                                        </div>
                                                        <div class="row" style="min-width: 280px">
                                                            <img src="../dist/img/default.gif" style="width: 100px" />
                                                        </div>
                                                        <div class="row" style="margin-bottom: 10px">
                                                            <asp:Label ID="Label3" runat="server" ForeColor="black" Style="text-align: center"
                                                                Text="Please Wait..." Font-Bold="true" Font-Size="12px" Font-Italic="true" Font-Family="Arial"></asp:Label>
                                                        </div>
                                                        <div class="clear clearfix">
                                                        </div>
                                                    </div>
                                                </asp:Panel>
                                            </asp:Panel>
                                            <asp:HiddenField ID="hdnActiveProgress" runat="server" />
                                            <cc1:ModalPopupExtender ID="popupActiveProgress" runat="server" TargetControlID="hdnActiveProgress"
                                                BackgroundCssClass="ModalPopup" PopupControlID="pnlActiveProgress" BehaviorID="popupActiveProgress">
                                            </cc1:ModalPopupExtender>
                                        </ContentTemplate>
                                        <Triggers>
                                            <asp:PostBackTrigger ControlID="btnActivation" />
                                        </Triggers>
                                    </asp:UpdatePanel>
                                    <asp:LinkButton ID="btnActivation" CssClass="btn save-btn fa-toggle-on" runat="server"
                                        Text="&nbsp;&nbsp;Activate Now" OnClick="btnActivation_Click" OnClientClick="javascript:if(confirm('Are you sure internet connection is available and proceed?')) $find('popupProgress').show();else return false;" />
                                </div>
                            </div>
                            <div class="row" id="trReActive" runat="server" style="padding-top: 12px; display: none"
                                align="center">
                                <div class="col-md-12">
                                    <asp:UpdatePanel ID="upLeave" runat="server">
                                        <ContentTemplate>
                                            <asp:Panel ID="pnlProgress" runat="server" Style="display: none;">
                                                <asp:Panel ID="pnlLoading" runat="server" HorizontalAlign="center">
                                                    <div class="InsideProgressBar">
                                                        <div class="row" style="margin-top: 10px">
                                                            <img src="../dist/img/logo-Progress.png" />
                                                        </div>
                                                        <div class="row" style="min-width: 280px">
                                                            <img src="../dist/img/default.gif" style="width: 100px" />
                                                        </div>
                                                        <div class="row" style="margin-bottom: 10px">
                                                            <asp:Label ID="lblLoading" runat="server" ForeColor="black" Style="text-align: center"
                                                                Text="Please Wait..." Font-Bold="true" Font-Size="12px" Font-Italic="true" Font-Family="Arial"></asp:Label>
                                                        </div>
                                                        <div class="clear clearfix">
                                                        </div>
                                                    </div>
                                                </asp:Panel>
                                            </asp:Panel>
                                            <asp:HiddenField ID="hdnProgress" runat="server" />
                                            <cc1:ModalPopupExtender ID="popupProgress" runat="server" TargetControlID="hdnProgress"
                                                BackgroundCssClass="ModalPopup" PopupControlID="pnlProgress" BehaviorID="popupProgress">
                                            </cc1:ModalPopupExtender>
                                        </ContentTemplate>
                                        <Triggers>
                                            <asp:PostBackTrigger ControlID="btnReactivation" />
                                        </Triggers>
                                    </asp:UpdatePanel>
                                    <asp:LinkButton ID="btnReactivation" CssClass="btn save-btn fa-retweet" runat="server"
                                        Text="&nbsp;&nbsp Reactivation Now" CausesValidation="false" OnClick="btnReactivation_Click"
                                        OnClientClick="javascript:if(confirm('Are you sure internet connection is available and proceed?')) $find('popupProgress').show();else return false;" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
