<%@ Page Title="" Language="C#" MasterPageFile="~/Application.Master" AutoEventWireup="true" CodeBehind="Backup.aspx.cs" Inherits="ICDAS_3_0_Web_App.ICDAS_3_0.Administrator.Backup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .hidden {
            display: none;
        }

        .visible {
            display: inline;
        }
    </style>

    <style type="text/css">
        body {
            margin: 0;
            padding: 0;
            font-family: Arial;
        }

        .loadingmodal {
            position: fixed;
            z-index: 999 !important;
            height: 100%;
            width: 100%;
            top: 0;
            background-color: white;
            filter: alpha(opacity=60);
            opacity: 0.8;
            -moz-opacity: 1;
        }

        .loadingcenter {
            z-index: 1000 !important;
            width: 200px;
            height: 100px;
            position: absolute;
            left: 45%;
            top: 60%;
            margin-left: -150px;
            margin-top: -150px;
            opacity: 1;
            /*-moz-opacity: 1;*/
            background: url("Images/loading.gif") no-repeat;
        }
    </style>


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="upnlwzBackUp">
        <ProgressTemplate>
            <div class="loadingmodal">
                <div class="loadingcenter">
                </div>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="upnlwzBackUp" UpdateMode="Always" runat="server">
        <ContentTemplate>
            <div class="row">
                <div class="col-md-12 col-sm-12 col-xs-12">
                    <div class="x_panel">
                        <div class="x_content">
                            <asp:HiddenField ID="hdnRecordId" Value="0" runat="server" />
                            <asp:HiddenField ID="hdnBackupPath" Value="" runat="server" />
                            <div class="x_title">
                                <h4>
                                    <asp:Label ID="lblFormTitle" runat="server"></asp:Label></h4>
                                <div class="clearfix"></div>
                            </div>
                            <div class="col-xs-12 col-sm-12 col-lg-12">
                                <asp:Wizard ID="wzMain" CssClass="col-sm-12" DisplaySideBar="false" OnActiveStepChanged="wzMain_ActiveStepChanged"
                                    runat="server" class="form_wizard wizard_horizontal">
                                    <WizardSteps>
                                        <asp:WizardStep ID="Step0" runat="server">
                                            <div class="col-xs-12 col-sm-12 col-lg-12">
                                                <div class="row">
                                                    <div class="col-xs-12 col-sm-12 col-lg-4 pull-left">
                                                        <h6>
                                                            <asp:Label runat="server" ID="lblFailedBackup" CssClass="text-center"></asp:Label>
                                                        </h6>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-xs-12 col-sm-12 col-lg-12">
                                                        <img src="Images/database-backup.jpg" class="img-responsive center-block" border="0">
                                                    </div>
                                                </div>

                                                <div class="row">
                                                    <h1>
                                                        <asp:Label runat="server" ID="Label2" Text="Last backup Process" CssClass="text-center word-wrap: break-word;"></asp:Label>
                                                    </h1>
                                                </div>

                                                <div class="row">

                                                    <div class="col-xs-12 col-sm-12 col-lg-12">
                                                        <table id="tblHeader0" runat="server" class="table table-bordered dt-responsive nowrap" style="background-color: lightgray;">
                                                            <tr>
                                                                <td style="width: 25%; text-align: center">DataBaseType</td>
                                                                <td style="width: 25%; text-align: center">LogDateTime</td>
                                                                <td style="width: 25%; text-align: center">ProcessDateTimes</td>
                                                                <td style="width: 25%; text-align: center">Status</td>


                                                            </tr>
                                                        </table>
                                                    </div>
                                                    <div class="col-xs-12 col-sm-12 col-lg-12">
                                                        <asp:GridView ID="grdBackupProcess" runat="server" ShowHeaderWhenEmpty="true" CellPadding="0" CellSpacing="0"
                                                            AllowPaging="false" AllowSorting="false" AutoGenerateColumns="False"
                                                            CssClass="table table-striped table-bordered dt-responsive nowrap"
                                                            ShowHeader="false">
                                                            <HeaderStyle CssClass="bg-success" />
                                                            <EmptyDataRowStyle HorizontalAlign="Center" />
                                                            <EmptyDataTemplate>
                                                                No Records Found
                                                            </EmptyDataTemplate>
                                                            <Columns>
                                                                <asp:BoundField DataField="DataBaseType" HeaderText="DataBaseType">
                                                                    <ItemStyle Width="25%" />
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="LogDateTime" HeaderText="LogDateTime">
                                                                    <ItemStyle Width="25%" />
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="ProcessDateTime" HeaderText="ProcessDateTime">
                                                                    <ItemStyle ForeColor="Black" />
                                                                    <ItemStyle Width="25%" />
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="Status" HeaderText="Status">
                                                                    <ItemStyle ForeColor="Black" />
                                                                    <ItemStyle Width="25%" />
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="UserName" HeaderText="User Name" Visible="false">
                                                                            <ItemStyle Width="0%" />
                                                                        </asp:BoundField>
                                                            </Columns>
                                                        </asp:GridView>

                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-xs-12 col-sm-12 col-lg-12">
                                                        <asp:Button ID="btnStepNext1" runat="server" Text="Take BackUp" ToolTip="TAKE BACKUP" CommandName="MoveNext" CssClass="btn btn-primary btn-sm  pull-right" />
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:WizardStep>
                                        <asp:WizardStep ID="Step1" runat="server">
                                            <div>
                                                <asp:Timer ID="Timer1" runat="server" Enabled="false" Interval="1000" OnTick="Timer1_Tick">
                                                </asp:Timer>
                                                <img class="img-responsive center-block" id="imgloading" src="Images/database-backup-processing.gif">
                                            </div>
                                        </asp:WizardStep>
                                        <asp:WizardStep ID="Step2" runat="server">
                                            <div class="col-xs-12 col-sm-12 col-lg-12">
                                                <div class="row">
                                                    <div class="col-xs-12 col-sm-12 col-lg-12 pull-left">
                                                        <h6>
                                                            <asp:Label runat="server" ID="lblBackupMsg" CssClass="text-center word-wrap: break-word;"></asp:Label>
                                                        </h6>
                                                        <h1>
                                                            <asp:Label runat="server" ID="lblMsg" Text="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" CssClass="text-center word-wrap: break-word;"></asp:Label>
                                                        </h1>

                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-xs-12 col-sm-12 col-lg-12">
                                                        <img src="Images/data-save.jpg" class="img-responsive center-block" border="0">
                                                    </div>
                                                </div>
                                                <div class="row" style="display: none;">
                                                    <div class="col-xs-12 col-sm-12 col-lg-12">
                                                        <div class="text-center">
                                                            <a id="btnDownload" type="button" runat="server" class="btn btn-primary btn-sm">Download</a>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:WizardStep>
                                    </WizardSteps>
                                    <StartNavigationTemplate>
                                        <asp:Button ID="StepNextButton" Visible="false" runat="server" Text="Take BackUp" CommandName="MoveNext" CssClass="btn btn-primary btn-sm" />
                                    </StartNavigationTemplate>
                                    <FinishNavigationTemplate>
                                        <br />
                                        <asp:Button ID="StepPreviousButton" Visible="false" runat="server" Text="Previous" CssClass="btn btn-success btn-sm" CommandName="MovePrevious" />
                                    </FinishNavigationTemplate>
                                </asp:Wizard>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
        <Triggers>
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
