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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="BodyContentPH" runat="Server">
    <style type="text/css">
        .ModalPopup {
            position: absolute !important;
            background-color: #7CA0DC;
            top: 0;
            bottom: 0px;
            left: 0px;
            right: 0px;
            padding: 0;
            filter: alpha(opacity=75);
            opacity: 0.5;
            z-index: 999999998;
        }

        .LeaveInsideProgressBar {
            position: absolute !important;
            z-index: 999999999;
            background-color: #eaeaea;
            border: solid 1px #105da4;
            top: 310px;
            margin-left: 450px;
        }
    </style>
    <div class="content-header">
        <h1>
            <asp:Label ID="lbl_Header" runat="server" Text="License Activation"></asp:Label>
        </h1>
        <asp:SiteMapPath ID="site" runat="server" CssClass="breadcrumb">
            <NodeStyle CssClass="active" />
        </asp:SiteMapPath>
    </div>
    <div class="content">
        <div class="box box-primary">
            <div class="panel panel-default">
                <div class="panel-body">
                    <div class="row" id="trActive" runat="server">
                        <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="Label1" 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 btn-primary fa fa-toggle-on" runat="server"
                                Text="&nbsp;&nbsp Activate Now" Width="110px" 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">
                        <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 btn-primary fa 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>
</asp:Content>
